Welcome to ERNIE
Enhanced Research Network Informatics Environment (ERNIE) originates from a thought experiment that has since evolved into an accessible knowledge platform for research assessment. ERNIE enables the discovery of collaboration networks in scientific research and influential nodes within them.
Emphasis is placed on the use of Open Source technologies. At present, ERNIE resides in a PostgreSQL 9.6 database in a Centos 7.4 VM in the Microsoft Azure cloud. Data in ERNIE are drawn through a variety of custom ETL processes from both publicly available and commercial sources. Addiional servers provide Solr, Neo4J, and Spark support. ERNIE is being developed by NET ESolutions Corporation (NETE). This project has been funded in part as a Fast Track Small Business Innovative Research award with Federal funds from the National Institute on Drug Abuse, National Institutes of Health, US Department of Health and Human Services. In Feb 2018, Phase I was completed on Feb 15, 2018. Phase II funding has since been awarded and will commence on Sept 30, 2018. Initial server infrastructure has been set up, core data have been scraped, leased, parsed, loaded, and partially curated. Case studies spanning drug development, medical devices/diagnostics, behavioral interventions, and solutions for drug discovery were used in Phase I to validate content and test workflows. The project team will add additional data sources as and when they become available.


2015: A Year in Resolutions
04 Jan 2015 tagged in goals, new years, resolutionsI love the concept of New Years’ resolutions. I like using the beginning of anything – years, semesters, weeks – as a chance to review what I’ve accomplished and what I want going forward. Here’s what I’m hoping to do in 2015:
- School: Choose a topic for my honors thesis, which I’ll be starting in the fall. Take more awesome classes for my majors and minor. Learn cool stuff. Write a lot of papers. Read a lot of articles. Get good grades. Repeat.
- Digital Humanities: Attend a 5CollDH Speaker Series (because I couldn’t this semester.) Discover more awesome DH projects. Finish my own. Start another one. Meet more DH enthusiasts. Pick up more skills and explore using tools. Read more into the debates of new media. Push for more undergraduate DH education. Educate myself.
- Museums: Finish visiting the Museums10 in Western MA. Go to small, weird museums. Go to large, famous ones. Check out online exhibitions and digital museums, and experience the interactive options these places have to offer.
- Visit a Presidential Library: Somewhat random, but I’ve visited two so far (George W. Bush’s library in Dallas and Bill Clinton’s library in Little Rock), one each year for the past two years, so I might as well keep the streak going.
- Read: Read the stack of history books by my bedside at home about the height of a nightstand. Read the bookshelf of non-history books that is overflowing onto the floor. Read the bookshelf dedicated to fiction. Read the list of books I would like to reread. That should keep me busy in my spare time.
- Adventures: In addition to visiting museums and libraries, I hope to go on some sort of exciting non-history related adventures as well. Go to events. Go on vacation. Visit new places. Revisit old places. Take lots of pictures and document the journey.
- Social Media: Keep it going. Use Twitter to learn more about what’s going on in the world. Use Tumblr to share what I learn. But also spend less time on it? I am obsessed with the world of the Internet, and I should probably take a step back every once in awhile.
- Watch: Keep watching YouTube. Watch Ken Burns’ documentaries (like all of them). Watch history shows like TURN or Sons of Liberty. Watch movies like In The Heart of the Sea. Finally watch Lincoln. Watch all those Netflix movies in queue instead of rewatching HIMYM to find out where it all went wrong.
- Public History: Read about it. Talk about it. Write about it. Follow it. Engage in it. Participate in it. Look into local projects. Look into digital projects. Look into the work in the UMass department. Basically, work hard to make myself an expert on the subject.
- Events: Try and see Hamilton on Broadway. Attend conferences? Go to the Paper Towns early release. Go to shows. Go to openings. Go to events.
- Write: Write short papers. Write long papers. Write articles. Write blog posts. Write to be published.  Write. Write. Write. Write. Write. Write.
- Friends and Family: Spend time with them. Make time for them. Keep in touch with home as often as possible. Check in on my siblings. Check in on my friends. Comfort friends and family. Support them.
- Me, Myself, and I: As always,New Years’ is a time to focus on one’s health and overall well-being. So: Schedule workouts. Go to the gym. Eat well. Eat clean. Take care of myself. Work hard without overworking. Meditate. Alleviate stress. Be happy.
- Future: As always, I’ll be thinking about my career. Complete an internship. Start another one. Investigate summer opportunities. Have a great summer doing something I love. Look into grad school programs. Apply to grad school? Keep moving forward.
- Blog: Of course, no matter what I do this year, I plan to keep blogging about my experiences or what I’m learning or whatever happens to be on my mind. Blogging is self-indulgent, but I love it. In the past year, I’ve discovered so many new historical tidbits as well as how to I’m not quite sure what 2015 will bring, but I know that She Is Historic will be a part of it.


The email address cannot be empty.
The eligibility requirements for this service have changed. Review the changes before continuing.
The deadline for submission has been extended to March 1, 2020.
Your application has been successfully submitted.


{% if service_name %}{{ service_name }} {% if title %}- {% endif %}{% endif %}{% if title %}{{ title }}{% endif %}
{% block meta %}{% endblock %}
{#
Allow css and js to be loaded in seperate files
during development, but compress / minify everything
to single file on production and test. Remember to keep
namespaces clear to avoid conflicts.
MAYBE: Also use CDN on production (and tests).
#}
{% if app.dev || true %}
{% block css %}{% endblock %}
{% else %}
{# minified version (one js and one css) would be loaded here) #}
{% endif %}
{% block body %}{% endblock %}
{% block js %}{% endblock %}
{% if env == "production" %}
{% endif %}


{% extends "base.html" %} {% block title %}
{{ desc | first }}
V{{ version | first }} {% for email in authors %} {% endfor %} last updated on {{ date | first }}
{% if percent and percent != ['100'] %}This document is approximately {{ percent | first }}% complete.


{{ inst }}
Archive
Access available images for {{ inst }} here.
Monitors
Explore the {{ inst }} instrument monitoring suite.
{% extends "base.html" %} {% block preamble %}
Access available images for {{ inst }} here.
Explore the {{ inst }} instrument monitoring suite.


This is where Dependency Injection comes into play. Dependency Injection (DI) is a software design pattern that deals with how objects and functions get created and how they get a hold of their dependencies. Everything within Angular (directives, filters, controllers, services, ...) is created and wired using dependency injection. Within Angular, the DI container is called the injector.
To use DI, there needs to be a place where all the things that should work together are registered. In Angular, this is the purpose of the modules. When Angular starts, it will use the configuration of the module with the name defined by the ng-app directive, including the configuration of all modules that this module depends on.
Some other content
Just apply a class="clearfix" to the parent element. This is an improved version of the original, and documented here.
Updated by Jeff Starr to be cleaner, based on the fact that nobody uses IE for Mac, which is what the backslash hack was all about.
This looks like normal HTML, with some new markup. In Angular, a file like this is called a template. When Angular starts your application, it parses and processes this new markup from the template using the compiler. The loaded, transformed and rendered DOM is then called the view.
The first kind of new markup are the directives. They apply special behavior to attributes or elements in the HTML. In the example above we use the ng-app attribute, which is linked to a directive that automatically initializes our application. Angular also defines a directive for the input element that adds extra behavior to the element. The ng-model directive stores/updates the value of the input field into/from a variable.


Employee Search
Master Detail Example - With repeat container.
Search Results for term: Engineers
Name:
Details
Details for result index:
First Name:
Last Name:
Location:
Office:
Email:
Telephone:
Fax:


1. Creation of a submission and peer reviewed system
@pbellec @rstones @glatard @emdupre @ltetrel and many others .. !
2. Boutiques tutorial
@glatard @ltetrel
3. (in progress) Brainiak tutorial
@manojneuro @ltetrel
4. Binder and neurolibre traintrack
~50 people
What's next?
- More automatic submission and peer-reviewed system
- Improve our server ressources (internet speed)
- Partner with Aperture? Other journals?
- Access CONP data directly through NeuroLibre
- Create a private, uncurated cloud for authentificated CONP members


|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ar.com.hjg.pngj.chunks.ChunkCopyBehaviour
public class ChunkCopyBehaviour
Chunk copy policy to apply when copyng from a pngReader to a pngWriter.
http://www.w3.org/TR/PNG/#14
These are masks, can be OR-ed
| Field Summary | |
|---|---|
static int |
COPY_ALL
|
static int |
COPY_ALL_SAFE
copy all 'safe to copy' chunks |
static int |
COPY_ALMOSTALL
|
static int |
COPY_NONE
dont copy anywhing |
static int |
COPY_PALETTE
copy the palette |
static int |
COPY_PHYS
|
static int |
COPY_TEXTUAL
|
static int |
COPY_TRANSPARENCY
|
static int |
COPY_UNKNOWN
|
| Constructor Summary | |
|---|---|
ChunkCopyBehaviour()
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COPY_ALL
public static final int COPY_ALL_SAFE
public static final int COPY_ALMOSTALL
public static final int COPY_NONE
public static final int COPY_PALETTE
public static final int COPY_PHYS
public static final int COPY_TEXTUAL
public static final int COPY_TRANSPARENCY
public static final int COPY_UNKNOWN
| Constructor Detail |
|---|
public ChunkCopyBehaviour()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


All devices and their attributes are listed in the table below. Sort columns by clicking on the column name.
| Owner | Manufacturer | Model | Type | IP Address | Serial | Processor | RAM | Location |
| Ray | Dell | Lattitude E6540 | Laptop | <IP_ADDRESS> | JT8001 | Intel Quadcore i7 | 16 | 300 |
| David | Apple | MacBook | Laptop | <IP_ADDRESS> | C0003F93982 | Intel Quadcore i7 | 16 | 734 |
| Helen | Dell | Lattitude E5540 | Laptop | <IP_ADDRESS> | LB98YN | Intel Quadcore i7 | 16 | 123 |
| Ryan | Dell | Optiplex 9020 | Desktop | <IP_ADDRESS> | 87HJ98 | Intel Quadcore i5 | 8 | 310 |
| Mike | Dell | Optiplex 990 | Desktop | <IP_ADDRESS> | 90LI09 | Intel Quadcore i7 | 16 | 309 |
| Kristen | Dell | Lattitude E6540 | Laptop | <IP_ADDRESS> | 12OP12 | Intel Quadcore i7 | 16 | 305 |
| Amy | Dell | Lattitude E6540 | Laptop | <IP_ADDRESS> | 23WE23 | Intel Quadcore i7 | 8 | Boulder 215 |
| Richard | Apple | iMac | Desktop | <IP_ADDRESS> | C97987JH876 | Intel Quadcore i7 | 16 | 105 |
| Alfred | Dell | Lattitude E6540 | Laptop | <IP_ADDRESS> | UY78UY | Intel Quadcore i5 | 8 | 305 |
| Joe | Dell | Lattitude E6540 | Laptop | <IP_ADDRESS> | 09JF54 | Intel Quadcore i7 | 16 | 308 |


Pro Micro Web Updater
eeprom option:
none
split-left
split-right
Open firmware hex file
Click flash button
Reset your Pro Micro to enter bootloader
Select serial port appeared
Wait flashing complete
Copyright (c) 2021
のぎけす屋


THE LITTLE MERMAID (1989) (Disney) Voices: Samuel E. Wright, Jodi Benson, Pat Carroll, Christopher Daniel Barnes, Buddy Hackett, Kenneth Mars, Jason Marin. Screenplay: John Musker and Ron Clements, from the story by Hans Christian Andersen. Producers: Howard Ashman and John Musker. Directors: John Musker and Ron Clements. MPAA Rating: G. Running Time: 82 minutes. Reviewed by Scott Renshaw.
It may be an exaggeration to say that THE LITTLE MERMAID saved feature animation from extinction. If so, it's not much of one. In 1989, when MERMAID was first released, only one man in Hollywood seemed to believe that family films weren't inevitably box office poison: Disney's Jeffrey Katzenberg, who re-committed Disney to its historical life's-blood after costly flops like THE BLACK CAULDRON. His vision was rewarded with $90 million in U.S. grosses, at the time the highest total ever for an animated film. And THE LITTLE MERMAID begat a feature animation renaissance, which begat box office giants like BEAUTY AND THE BEAST, ALADDIN and THE LION KING, which begat billions in merchandise and video sales, which begat a desire in other studios to get their fingers in the lucrative animation pie.
The wonderful thing about THE LITTLE MERMAID is the wonderful thing about most unwitting trend-setters: it was made not to set trends, but to be an entertaining film. That's certainly what it turned out to be, telling the story of a teenage mermaid named Ariel (voice of Jodi Benson) fascinated with the surface world. That fascination only intensifies one day when she saves the life of a human prince named Eric (Christopher Daniel Barnes), with whom whe instantly falls in love. Determined to join her true love despite the objections of her father King Triton (Kenneth Mars), Ariel finds a willing assistant in the sea-witch Ursula (Pat Carroll), who offers the Faustian trade of Ariel's voice for the chance to become human. Thus begins Ariel's quest to win Eric's heart, ably assisted by her guardian crab Sebasian (Samuel E. Wright).
To their everlasting credit, writer/directors John Musker and Ron Clements weren't looking forward to LITTLE MERMAID coloring books or sing-along tapes when they put together their narrative. The were looking _backward_, to the reasons Disney's classic cartoons endured, beginning with a timeless story (Hans Christian Andersen's fairy tale, tweaked for an appropriately happy ending). Musker and Clements crafted THE LITTLE MERMAID with attention to the fundamentals of storytelling, little things like coherent plotting, charming characterizations and clever writing. They made sure they had key elements like an appropriately loathsome villain and sharp comic relief, applied the talents of a gifted group of character animators and voice actors, and ended up with a minor gem on their hands.
They also realized the crucial role of music in the Disney animated canon, so they made the smartest of all the decisions which went into THE LITTLE MERMAID: they got Alan Menken and Howard Ashman to score it. The talented composing team behind LITTLE SHOP OF HORRORS turned the film into a full-fledged musical, establishing the fundamental song requirements for all the successful Disney features to come: a song for the hero/heroine ("Part of Your World"), a song for the villain ("Poor Unfortunate Souls"), a love theme ("Kiss the Girl") and a grand, show-stopping production number ("Under the Sea"). The latter two proved to be among Disney's most delightful tunes ever, adding the special spark which turned Samuel E. Wright's already-exceptional vocal performance as Sebastian into the stuff of classics. In fact, even the minor numbers in THE LITTLE MERMAID were strong enough to re-surface later (listen again to "Les Poissons," and tell me you don't hear the beta version of BEAUTY AND THE BEAST's "Be Our Guest").
Disney has re-released many of its animated films to theaters in recent years, but there's something special about the return of THE LITTLE MERMAID. It's not that it's the best of Disney's New Wave, not even with digitally improved prints and multi-track sound. BEAUTY AND THE BEAST provided richer characters, ALADDIN was more energetic, and THE HUNCHBACK OF NOTRE DAME was more emotionally resonant. THE LITTLE MERMAID, however, was the most innocent, and perhaps the most purely enchanting. Its exuberance and humor made animation hip again, which may be why THE LITTLE MERMAID marked the turning point for feature animation as a viable commercial entity. 20th Century Fox should consider that history in all the release-date jockeying between MERMAID and their own ANASTASIA. A trail-blazer deserves some respect.
On the Renshaw scale of 0 to 10 parts of your world: 9.
Visit Scott Renshaw's MoviePage http://www.inconnect.com/~renshaw/ *** Subscribe to receive new reviews directly by email! See the MoviePage for details, or reply to this message with subject line "Subscribe".
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


You can set the margin property to auto to horizontally center the element within its container. The element will then take up the specified width, and the remaining space will be split equally between the left and right margins. It does not work without width specification.


Wanting to propel my career in computer-related development, I decided to step into the world of web-development in order to push myself and further my education
Through these first few days, with help from a programming friend, I learned what HTML and CSS were all about and even learned what some of the tags did. It was really rewarding to see my code immediately turn into a visual output.
I understood the basic tags when starting a new HTML and what each tag should hold.
This also means I learned proper styling of my code and when to indent (based on child, parent, sibling relationships).
I strive to make my code understandable and organized.
I jumped the gun to learn CSS, so I decided to put the style in the HTML file. I didn't realize the styling changes are best left to a separate CSS file.
When I get to JavaScript I should try and do the same for that.


---
layout: post
title: Adam.JSGenerator
date: '2010-08-06T11:56:00.000+02:00'
author: Dave Van den Eynde
tags:
modified_time: '2010-08-06T11:56:42.847+02:00'
blogger_id: tag:blogger.com,1999:blog-10546079.post-3098521211559674383
blogger_orig_url: http://www.groovbird.com/2010/08/adamjsgenerator.html
---
Over the past few months I've been working on a side project at work, that my employer has now allowed me to publish as my very first open source project. I'm very excited.
Read more about it here.


Written a game?
Then why not send it to Guildhall Leisure for evaluation - where we will give you an honest opinion
and if it fits into our games portfolio we will offer you an excellent royalty rate for your game. We are really looking
forward to all your efforts.
Send demo/full game to:
Attn: George Bray
C/o: Guildhall Leisure
Ashfield House
Ashfield Road
Balby
DONCASTER
DN3 8QD
Tel: (01302) 310800
Fax: (01302) 314001
Email: george@guildhallleisure.com


Class: Aws::DynamoDB::Types::BatchGetItemInput
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Struct
|
|
|
Instance Chain:
self,
::Aws::Structure ,
Struct
|
|
| Inherits: |
Struct
|
| Defined in: | gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb |
Overview
Represents the input of a BatchGetItem
operation.
Constant Summary
Instance Attribute Summary
-
#request_items ⇒ Hash<String,Types::KeysAndAttributes>
rw
A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table.
-
#return_consumed_capacity ⇒ String
rw
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
Instance Method Summary
::Aws::Structure
- Included
| #to_hash | Alias for Structure#to_h. |
Instance Attribute Details
#request_items ⇒ Hash
<String
,Types::KeysAndAttributes> (rw)
A map of one or more table names and, for each table, a map that
describes one or more items to retrieve from that table. Each table
name can be used only once per BatchGetItem
request.
Each element in the map of items to retrieve consists of the following:
ConsistentRead
- Iftrue
, a strongly consistent read is used; iffalse
(the default), an eventually consistent read is used.ExpressionAttributeNames
- One or more substitution tokens for attribute names in theProjectionExpression
parameter. The following are some use cases for usingExpressionAttributeNames
:- To access an attribute whose name conflicts with a DynamoDB reserved word.
- To create a placeholder for repeating occurrences of an attribute name in an expression.
- To prevent special characters in an attribute name from being misinterpreted in an expression.
Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:
Percentile
^
The name of this attribute conflicts with a reserved word, so it
cannot be used directly in an expression. (For the complete list
of reserved words, see Reserved Words in the Amazon DynamoDB
Developer Guide). To work around this, you could specify the
following for ExpressionAttributeNames
:
\{"#P":"Percentile"\}
^
You could then use this substitution in an expression, as in this example:
#P = :val
^
For more information about expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.
Keys
- An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key value. For a composite key, you must provide both the partition key value and the sort key value.ProjectionExpression
- A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.
If no attribute names are specified, then all attributes are returned. If any of the requested attributes are not found, they do not appear in the result.
For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.
AttributesToGet
- This is a legacy parameter. UseProjectionExpression
instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 850
class BatchGetItemInput < Struct.new( :request_items, :return_consumed_capacity) SENSITIVE = [] include Aws::Structure end
#return_consumed_capacity ⇒ String
(rw)
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
INDEXES
- The response includes the aggregateConsumedCapacity
for the operation, together withConsumedCapacity
for each table and secondary index that was accessed.
Note that some operations, such as GetItem
and BatchGetItem
,
do not access any indexes at all. In these cases, specifying
INDEXES
will only return ConsumedCapacity
information for
table(s).
TOTAL
- The response includes only the aggregateConsumedCapacity
for the operation.NONE
- NoConsumedCapacity
details are included in the response.
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 850
class BatchGetItemInput < Struct.new( :request_items, :return_consumed_capacity) SENSITIVE = [] include Aws::Structure end


source file: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/botocore/vendored/requests/packages/urllib3/util/timeout.py
file stats: 67 lines, 41 executed: 61.2% covered
1. # The default socket timeout, used by httplib to indicate that no timeout was 2. # specified by the user 3. from socket import _GLOBAL_DEFAULT_TIMEOUT 4. import time 5. 6. from ..exceptions import TimeoutStateError 7. 8. # A sentinel value to indicate that no timeout was specified by the user in 9. # urllib3 10. _Default = object() 11. 12. def current_time(): 13. """ 14. Retrieve the current time. This function is mocked out in unit testing. 15. """ 16. return time.time() 17. 18. 19. class Timeout(object): 20. """ Timeout configuration. 21. 22. Timeouts can be defined as a default for a pool:: 23. 24. timeout = Timeout(connect=2.0, read=7.0) 25. http = PoolManager(timeout=timeout) 26. response = http.request('GET', 'http://example.com/') 27. 28. Or per-request (which overrides the default for the pool):: 29. 30. response = http.request('GET', 'http://example.com/', timeout=Timeout(10)) 31. 32. Timeouts can be disabled by setting all the parameters to ``None``:: 33. 34. no_timeout = Timeout(connect=None, read=None) 35. response = http.request('GET', 'http://example.com/, timeout=no_timeout) 36. 37. 38. :param total: 39. This combines the connect and read timeouts into one; the read timeout 40. will be set to the time leftover from the connect attempt. In the 41. event that both a connect timeout and a total are specified, or a read 42. timeout and a total are specified, the shorter timeout will be applied. 43. 44. Defaults to None. 45. 46. :type total: integer, float, or None 47. 48. :param connect: 49. The maximum amount of time to wait for a connection attempt to a server 50. to succeed. Omitting the parameter will default the connect timeout to 51. the system default, probably `the global default timeout in socket.py 52. <http://hg.python.org/cpython/file/603b4d593758/Lib/socket.py#l535>`_. 53. None will set an infinite timeout for connection attempts. 54. 55. :type connect: integer, float, or None 56. 57. :param read: 58. The maximum amount of time to wait between consecutive 59. read operations for a response from the server. Omitting 60. the parameter will default the read timeout to the system 61. default, probably `the global default timeout in socket.py 62. <http://hg.python.org/cpython/file/603b4d593758/Lib/socket.py#l535>`_. 63. None will set an infinite timeout. 64. 65. :type read: integer, float, or None 66. 67. .. note:: 68. 69. Many factors can affect the total amount of time for urllib3 to return 70. an HTTP response. 71. 72. For example, Python's DNS resolver does not obey the timeout specified 73. on the socket. Other factors that can affect total request time include 74. high CPU load, high swap, the program running at a low priority level, 75. or other behaviors. 76. 77. In addition, the read and total timeouts only measure the time between 78. read operations on the socket connecting the client and the server, 79. not the total amount of time for the request to return a complete 80. response. For most requests, the timeout is raised because the server 81. has not sent the first byte in the specified time. This is not always 82. the case; if a server streams one byte every fifteen seconds, a timeout 83. of 20 seconds will not trigger, even though the request will take 84. several minutes to complete. 85. 86. If your goal is to cut off any request after a set amount of wall clock 87. time, consider having a second "watcher" thread to cut off a slow 88. request. 89. """ 90. 91. #: A sentinel object representing the default timeout value 92. DEFAULT_TIMEOUT = _GLOBAL_DEFAULT_TIMEOUT 93. 94. def __init__(self, total=None, connect=_Default, read=_Default): 95. self._connect = self._validate_timeout(connect, 'connect') 96. self._read = self._validate_timeout(read, 'read') 97. self.total = self._validate_timeout(total, 'total') 98. self._start_connect = None 99. 100. def __str__(self): 101. return '%s(connect=%r, read=%r, total=%r)' % ( 102. type(self).__name__, self._connect, self._read, self.total) 103. 104. @classmethod 105. def _validate_timeout(cls, value, name): 106. """ Check that a timeout attribute is valid. 107. 108. :param value: The timeout value to validate 109. :param name: The name of the timeout attribute to validate. This is 110. used to specify in error messages. 111. :return: The validated and casted version of the given value. 112. :raises ValueError: If the type is not an integer or a float, or if it 113. is a numeric value less than zero. 114. """ 115. if value is _Default: 116. return cls.DEFAULT_TIMEOUT 117. 118. if value is None or value is cls.DEFAULT_TIMEOUT: 119. return value 120. 121. try: 122. float(value) 123. except (TypeError, ValueError): 124. raise ValueError("Timeout value %s was %s, but it must be an " 125. "int or float." % (name, value)) 126. 127. try: 128. if value < 0: 129. raise ValueError("Attempted to set %s timeout to %s, but the " 130. "timeout cannot be set to a value less " 131. "than 0." % (name, value)) 132. except TypeError: # Python 3 133. raise ValueError("Timeout value %s was %s, but it must be an " 134. "int or float." % (name, value)) 135. 136. return value 137. 138. @classmethod 139. def from_float(cls, timeout): 140. """ Create a new Timeout from a legacy timeout value. 141. 142. The timeout value used by httplib.py sets the same timeout on the 143. connect(), and recv() socket requests. This creates a :class:`Timeout` 144. object that sets the individual timeouts to the ``timeout`` value 145. passed to this function. 146. 147. :param timeout: The legacy timeout value. 148. :type timeout: integer, float, sentinel default object, or None 149. :return: Timeout object 150. :rtype: :class:`Timeout` 151. """ 152. return Timeout(read=timeout, connect=timeout) 153. 154. def clone(self): 155. """ Create a copy of the timeout object 156. 157. Timeout properties are stored per-pool but each request needs a fresh 158. Timeout object to ensure each one has its own start/stop configured. 159. 160. :return: a copy of the timeout object 161. :rtype: :class:`Timeout` 162. """ 163. # We can't use copy.deepcopy because that will also create a new object 164. # for _GLOBAL_DEFAULT_TIMEOUT, which socket.py uses as a sentinel to 165. # detect the user default. 166. return Timeout(connect=self._connect, read=self._read, 167. total=self.total) 168. 169. def start_connect(self): 170. """ Start the timeout clock, used during a connect() attempt 171. 172. :raises urllib3.exceptions.TimeoutStateError: if you attempt 173. to start a timer that has been started already. 174. """ 175. if self._start_connect is not None: 176. raise TimeoutStateError("Timeout timer has already been started.") 177. self._start_connect = current_time() 178. return self._start_connect 179. 180. def get_connect_duration(self): 181. """ Gets the time elapsed since the call to :meth:`start_connect`. 182. 183. :return: Elapsed time. 184. :rtype: float 185. :raises urllib3.exceptions.TimeoutStateError: if you attempt 186. to get duration for a timer that hasn't been started. 187. """ 188. if self._start_connect is None: 189. raise TimeoutStateError("Can't get connect duration for timer " 190. "that has not started.") 191. return current_time() - self._start_connect 192. 193. @property 194. def connect_timeout(self): 195. """ Get the value to use when setting a connection timeout. 196. 197. This will be a positive float or integer, the value None 198. (never timeout), or the default system timeout. 199. 200. :return: Connect timeout. 201. :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None 202. """ 203. if self.total is None: 204. return self._connect 205. 206. if self._connect is None or self._connect is self.DEFAULT_TIMEOUT: 207. return self.total 208. 209. return min(self._connect, self.total) 210. 211. @property 212. def read_timeout(self): 213. """ Get the value for the read timeout. 214. 215. This assumes some time has elapsed in the connection timeout and 216. computes the read timeout appropriately. 217. 218. If self.total is set, the read timeout is dependent on the amount of 219. time taken by the connect timeout. If the connection time has not been 220. established, a :exc:`~urllib3.exceptions.TimeoutStateError` will be 221. raised. 222. 223. :return: Value to use for the read timeout. 224. :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None 225. :raises urllib3.exceptions.TimeoutStateError: If :meth:`start_connect` 226. has not yet been called on this object. 227. """ 228. if (self.total is not None and 229. self.total is not self.DEFAULT_TIMEOUT and 230. self._read is not None and 231. self._read is not self.DEFAULT_TIMEOUT): 232. # In case the connect timeout has not yet been established. 233. if self._start_connect is None: 234. return self._read 235. return max(0, min(self.total - self.get_connect_duration(), 236. self._read)) 237. elif self.total is not None and self.total is not self.DEFAULT_TIMEOUT: 238. return max(0, self.total - self.get_connect_duration()) 239. else: 240. return self._read


My Signal is a...
Code Green
EX: I need a buddy to walk me home
Code Yellow
EX: I need a safe ride home
Code Red
Ex: I am being followed
Call 9-1-1
Rhea’ Ice Cream
Code: 32445
Rhea’s Ice Cream
318 N LBJ Dr.
San Marcos, TX
2 Free Scoops
Redeem Coupon
Home
News
Signal
Zones
Store


I am currently recruiting graduate and undergraduate students from diverse disciplinary backgrounds: computer science, information science, health sciences, AI, NLP, game design, and interactive media. If you are interested in working with me, even if you do not fit into one of the categories mentioned above, please feel free to send me an email using the instructions below.
Please feel free to call me "Janice" (e.g., in your email, you may simply say "Dear Janice" or "Hi Janice").
For new Ph.D students, please read about the doctoral programs at William & Mary.
Please note that I do not respond to generic emails asking for a funded assistantship or to be a part of my research group as I receive many generic emails every day. I may not be able to respond to all these emails in a timely manner though I try my best.
I sometimes write posts regarding how to pursue a Ph.D. degree effectively (e.g., time management, job application, what I asked during a Zoom interview) on social media (written in Mandarin)-- you may find these notes helpful.


Making a mobile app? Something for the desktop? Internet connected toaster? Doesn't matter. Easily build for all platforms with our open source SDKs. Choose from over thirteen native SDKs for mobile, desktop, and Internet of Things devices.
Every time your app stores or retrieves some data, that’s a request. We start you out with 30 requests every second (that’s 1,800 a minute), all for free. Need to scale? No problem — you can change your plan at any time.
This is what 30 requests per second looks like.
You could’ve sent a ton of requests for free
in the
amount of time you’ve been on this page.
Keep your users coming back with engaging push notifications. Our free plan gives you unlimited pushes to a million unique devices every single month. Creating, segmenting, and sending push notifications has never been easier.
Explore resources including best practices, our monthly Ask Parse Anything video series, talks from our engineers and developer advocates, and much more. Meet us in person at one of our global meetups, or host one of your own.


new BlueInkEmbed(publicAPIKey)
Create a new BlueInkEmbed instance, which you can use to mount and unmount embedded signing iFrames.
Parameters:
| Name | Type | Description |
|---|---|---|
publicAPIKey |
string | the public API key for your BlueInk API App. This can be obtained by logging into your BlueInk Dashboard, or via the BlueInk API at /account/ |
Extends
- EventEmitter
Members
Methods
-
mount(container, embeddedSigningURL, options)
-
Parameters:
Name Type Default Description container
string body the css selector of the container into which the embedded signing iFrame will be injected embeddedSigningURL
string the embedded signing URL, as returned by an API call to /packets/ /embed_url/ options
object optional arguments Properties
Name Type Description debug
boolean if true, additional information will be printed to the console and displayed in the iFrame (if there is an error) isTest
boolean set to true when testing in a development environment (or locally), to turn off verification of the referring domain. This is only valid for embedded signing of test Bundles (which were created with is_test set to true) locale
string set the initial language / locale for the embedded signature iFrame redirectURL
string If provided, the parent page (not the iFrame) will be redirected to this URL upon successful completion of a signing replace
string If true, the signing iFrame replaces the contents of container, instead of being appended to the contents Throws:
-
when (1) there is already a mounted BlueInkEmbed iFrame instance, (2) the container element does not exist, or (3) the container selector corresponds to more than one element.
- Type
- BlueInkEmbedError
-
-
unmount()
-
Remove the BlueInk eSignature iFrame. If there is no iFrame (ie, mount(...) was not called previously), this is a noop.
Type Definitions
-
eventCallback(eventData)
-
A callback function that will be invoked with event data.
Parameters:
Name Type Description eventData
EventAnyData | EventErrorData | null depending on the event type


AgroCulture
Home
MyCart
My Profile: Afifa Nowreen Akhter
Digital-Market
BLOG
Write a Blog
Blog Title
= $row['blogContent']; ?>
Admin
10.00 AM,Friday
Like
105
Comments :
Afifa
10.20 AM. Friday


Kotlin is a typed programming language, whose datatype of every experession is known at compile time. Kotlin developed by JetBrains. It is interoperable with Java, which means all Java libraries and frameworks could be used in Kotlin, and vice versa. The major usage is for Android application development.
Mutable: variable can be changed to a different value after initialized.
var num = 8
println("number = $number")
Read-only: means variable cann't be reassigned once initialized.
val num = 9
num = 10 // throws an exception
// the type reference are optional, when declare the variables.
val byte: Byte = 127
val short: Short = 32767
val int: Int =<PHONE_NUMBER>
val long: Long =<PHONE_NUMBER>854775807
val float: Float = 3.4028235e38f //with f
val double: Double = 1.7976931348623157e308
val character: Char = '#'
val text: String = "Learning about Kotlin's data types"
val yes: Boolean = true
val no: Boolean = false
val input: String? = null
val output = input.toUpperCase() // Compile-time error: unsafe call on nullable object
val output = input?.toUpperCase() // Works and returns null
val name: String? = null
val chatName = name ?: "Anonymous" // Elvis operator
val displayName = chatName.toUpperCase()
val input: String? = null
val output = input!!.toUpperCase()
== : Structural euqality != : Structural inequality ===: Referential equality !==: Referential inequality
when (planet) {
"Jupiter" -> println("Radius of Jupiter is 69,911km")
"Saturn" -> println("Radius of Saturn is 58,232km")
else -> println("No data for planet $planet")
}
| val | var | |
|---|---|---|
| Read-only collection | Canot reassign variable or change values stored in variable("immutable") | Can reassign the variable(to a whole different collection) but can't overwrite the values in the original collection |
| Mutable collection | Cannot reassign variable but can freely change the values stored in the variable | Can both reassign the variable and change values in the collection it stores |
In Kotlin, every collection type has a mutable and read-only variant, as portaryed in the following diagram.
val siUnits = listOf("s", "m", "kg", "A", "K", "mol", "cd") // Creates readonly list List<String>
val quarks = mutableListOf("up", "down", "charm", "strange", "top", "bottom") // Creates mutable list MutableList<String>
val physicists = arrayListOf("Albert Einstein", "Isaac Newton") // Creates mutable list ArrayList<String>
//Accessing the elements
val siUnit = siUnit[2] // Gets 3rd element of siUnits
val quark = quarks[0] // Gets 1st element of quarks
// val physicist = physicists[3] // Would cause an error because there is no 4th element in the physicists
//Manipulating Elements
// siUnit[1] = "meter" // Would cause error because siUnits is readonly
quarks[2] = "CHARM" // Overwrites 3rd element of quarks
physicists[1] = "Marie Curie" // Overwrites 2nd element of physicists
//create a set
val awards = setOf("World's Best Programmer 2019", "Best Programming Language 2020")
val members = mutableSetOf("Susan", "Jake", "Jenny")
// other APIs
<!-- hashSetOf(...)
linkedSetOf(...)
sortedSetOf(...) -->
//Accessing elements in a set
val members = mutableSetOf("Susan", "Jake", "Jenny")
println(members[0]) // Causes compile-time error
members.add("Greg")
members.remove("Jake")
members.clear()
members.addAll(setOf("Adam", "Eve"))
val priorities = arrayOf("HIGH", "MEDIUM", "LOW")
println(priorities[1])
priorities[1] = "NORMAL"
println(priorities[1])
println(priorities.size)
val grades = mapOf(
"Kate" to 3.9,
"Jake" to 3.4,
"Susan" to 3.5
)
val grades = mapOf(
Pair("Kate", 3.9),
Pair("Jake", 3.4),
Pair("Susan", 3.5)
)
//creating a mutable map
val enrollments = mutableMapOf(
"Kate" to listOf("Maths", "Engineering"),
"Jake" to listOf("CS", "Bioengineering", "Psychology"),
"Susan" to listOf("Engineering", "Psychology")
)
val marcusClasses = enrollments.getOrDefault("Marcus", emptyList())
println(marcusClasses) // [], not null
val simonsClasses = enrollments.getOrElse("Simon", {
/* compute... */
emptyList()
})
println(simonsClasses) // [], not null
enrollments.put("Marcus", listOf("Maths", "CS"))
// Can be written more idiomatically as:
enrollments["Marcus"] = listOf("Maths", "CS")
enrollments.remove("Jake")
enrollments["Susan"] = listOf("CS", "Psychology")
for (number in 1..5) println(number) // 1, 2, 3, 4, 5
for (number in 1 until 5) println(number) // 1, 2, 3, 4
for (number in 1..5 step 2) println(number) // 1, 3, 5
for (number in 5 downTo 1) println(number) // 5, 4, 3, 2, 1
for (number in 5 downTo 1 step 2) println(number) // 5, 3, 1
for (char in 'a'..'c') println(char) // 'a', 'b', 'c'
for (planet in planets) println(planet) // "Jupiter", "Saturn", ...
for (char in "Venus") println(char) // 'V', 'e', 'n', 'u', 's'
//function signatures
fun fibonacci(index: Int): Long
//declaring a function
fun fibonacci(index: Int): Long {
return if (index < 2) {
1
} else {
fibonacci(index-2) + fibonacci(index-1) // Calls `fibonacci` recursively
}
}
//call a function
val output = fibonacci(6)
println(output);
fun main() {
// Your code here...
}
fun main(args: Array<String>) {
// Your code here...
}
fun isValidUsername(username: String): Boolean {
return username.length >= 3
}
fun isValidUsername(username: String): Boolean = username.length >= 3
//Default Parameter Values
fun join(strings: Collection<String>, delimiter: String = ", ") = strings.joinToString(delimiter)
//Named Parameters
fun join(strings: Collection<String>, delimiter: String = ", ") = strings.joinToString(delimiter)
fun main() {
val planets = listOf("Saturn", "Jupiter", "Earth", "Uranus")
val joined1 = join(planets, delimiter = " - ")
val joined2 = join(strings = planets)
val joined3 = join(strings = planets, delimiter = " - ")
val joined4 = join(delimiter = ", ", strings = planets)
println(joined1)
println(joined2)
println(joined3)
println(joined4)
}
fun Number.print() = println("$this is a Number")
fun Int.print() = println("$this is an Int")
val num: Number = 17
num.print() // Prints "17 is a Number"
val str = "Ho "
str.repeat(3)
infix fun Int.times(str: String) = str.repeat(this)
val greeting = 3 times "Ho "
println(greeting)
<!--
Infix functions must…
be either member functions or extension functions.
have exactly one additional parameter in the function signature (in addition to the extended class, which acts as the first parameter’s type).
not have varargs or default values. -->
operator fun Int.times(str: String) = str.repeat(this)
val greeting = 3 * "Ho "
Reference: Education.io


https://docs.pytest.org/
https://www.python-course.eu/python3_pytest.php
https://realpython.com/pytest-python-testing/
Effective Python Testing With Pytest
https://stackoverflow.com/questions/41304311/running-pytest-test-functions-inside-a-jupyter-notebook
https://semaphoreci.com/blog/test-jupyter-notebooks-with-pytest-and-nbmake
https://docs.next.tech/creator/how-tos/testing-techniques/testing-jupyter-notebook-code-with-pytest
PIP (in a virtual environment) python -m pip install pytest APT Debian packages: python-pytest, python3-pytest
The 'pytest' (Py3.6+) framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.
Names for test files (spam.py is a tested module): test_spam.py or spam_test.py.
# Content of the file test_sample.py def inc(x): return x + 1 def test_answer(): assert inc(3) == 5 # intentional error, 'assert' is used
# To execute tests: $ pytest ============================= test session starts ============================== platform linux2 -- Python 2.7.16, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 rootdir: .../week12/pytest1, inifile: collected 1 item test_sample.py F [100%] =================================== FAILURES =================================== _________________________________ test_answer __________________________________ def test_answer(): > assert inc(3) == 5 E assert 4 == 5 E + where 4 = inc(3) test_sample.py:8: AssertionError =========================== 1 failed in 0.02 seconds ===========================
# Errors were corrected. $ pytest ============================= test session starts ============================== platform linux2 -- Python 2.7.16, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 rootdir: .../week12/pytest1, inifile: collected 1 item test_sample.py . [100%] =========================== 1 passed in 0.01 seconds =========================== # In Debian 10, 'python3 -m pytest' will use Python 3.7.
The 'pytest' report shows:
(1) the system state,
(2) the directory to search under for configuration and tests,
(3) the number of tests the runner discovered.
The output then indicates the status of each test using a syntax
similar to 'unittest':
(1) a dot (.) means that the test passed,
(2) an 'F' means that the test has failed,
(3) an 'E' means that the test raised an unexpected exception.
# Content of the file test_set.py import pytest def test_union(): setA = set([1, 3, 5]) setB = set([2, 3]) assert setA | setB == set([1, 2, 3, 5]) assert setA.union(setB) == set([1, 2, 3, 5]) def test_intersection(): setA = set([1, 3, 5]) setB = set([2, 3]) assert setA & setB == set([3]) assert setA.intersection(setB) == set([3]) def test_difference(): setA = set([1, 3, 5]) setB = set([2, 3]) assert setA - setB == set([1, 5]) assert setA.difference(setB) == set([1, 5]) if __name__ == "__main__": pytest.main()
# To execute tests: $ python test_set.py
You can think of a test as being broken down into four steps:
(1) Arrange - preparing everything for tests.
(2) Act - the action that kicks off
the 'behavior' we want to test.
(3) Assert - checking the results.
(4) Cleanup.
'Fixtures' are for the 'Arrange' step.
@pytest.fixture # decorator def setA(): return set([1, 3, 5]) @pytest.fixture def setB(): return set([2, 3]) def test_union(setA, setB): assert setA | setB == set([1, 2, 3, 5]) assert setA.union(setB) == set([1, 2, 3, 5]) def test_intersection(setA, setB): assert setA & setB == set([3]) assert setA.intersection(setB) == set([3]) def test_difference(setA, setB): assert setA - setB == set([1, 5]) assert setA.difference(setB) == set([1, 5])
Test functions can be marked by decorating them with 'pytest.mark'. It is possible to create custom markers (markers have to be registered).
$ pytest --markers # list of existing markers @pytest.mark.filterwarnings(warning): add a warning filter to the given test. see https://docs.pytest.org/en/latest/warnings.html#pytest-mark-filterwarnings @pytest.mark.skip(reason=None): skip the given test function with an optional reason. Example: skip(reason="no way of currently testing this") skips the test. ...
# Exemplary markers @pytest.mark.skip("no way of currently testing this") @pytest.mark.skipif('sys.platform == "win32"') @pytest.mark.xfail() @pytest.mark.xfail(raises=IndexError) # why the test is failing @pytest.mark.parametrize(argnames, argvalues) @pytest.mark.tryfirst @pytest.mark.trylast
# Content of the file fib2.py def fibonacci(n): old, new = 0, 1 for _ in range(n): old, new = new, old + new return old
# Content of the file test_fib2.py import pytest from fib2 import fibonacci @pytest.mark.parametrize('n, res', [(0, 0), (1, 1), (2, 1), (3, 2), (4, 3), (5, 5), (6, 8)]) def test_fibonacci(n, res): assert fibonacci(n) == res
Grouping tests in classes can be beneficial for the following reasons:
(1) test organization,
(2) sharing fixtures for tests only in that particular class,
(3) applying marks at the class level and having them implicitly
apply to all tests.
Each test has a unique instance of the class.
import pytest class TestSets: # 'Test' prefix is important # scope: the scope for which this fixture is shared; # "function" (default), "class", "module", "package", "session" @pytest.fixture(scope="class") def setA(self): # 'self' is the first argument in methods return set([1, 3, 5]) @pytest.fixture(scope="class") def setB(self): return set([2, 3]) def test_union(self, setA, setB): assert setA | setB == set([1, 2, 3, 5]) assert setA.union(setB) == set([1, 2, 3, 5]) def test_intersection(self, setA, setB): assert setA & setB == set([3]) assert setA.intersection(setB) == set([3]) def test_difference(self, setA, setB): assert setA - setB == set([1, 5]) assert setA.difference(setB) == set([1, 5])