import base64
from .webgme import WebGME
from .exceptions import JSError, CoreIllegalArgumentError, CoreIllegalOperationError, CoreInternalError
[docs]class PluginBase(object):
"""
This is the base-class for webgme-plugins in Python. Use `webgme-cli <https://github.com/webgme/webgme-cli>`_ \
for generating the boiler-plate code for a python-plugin.
"""
def __init__(self, webgme, commit_hash, branch_name=None, active_node='', active_selection=None, nsp=''):
"""
:param webgme: An instance of an already connected WebGME class
:type webgme: WebGME
:param commit_hash: The commit-hash of the current invocation
:type commit_hash: str
:param branch_name: The branch of the current invocation
:type branch_name: str or None
:param active_node: Path to the active-node of the current invocation
:type active_node: str
:param active_selection: List of paths to the active-selection of the current invocation
:type active_selection: list of str or None
:param nsp: The namespace the plugin is running under
:type nsp: str
"""
self._webgme = webgme
#: Instance of logger (regular python logger)
self.logger = webgme.logger
#: An instance of webgme_bindings.Core
self.core = webgme.core
#: An instance of webgme_bindings.Project
self.project = webgme.project
#: An instance of webgme_bindings.Util
self.util = webgme.util
self._META = None
#: The current commit-hash (str)
self.commit_hash = commit_hash
#: The current branch (str or None)
self.branch_name = branch_name
#: The namespace the plugin is running under (str)
self.namespace = nsp
root_hash = self.project.get_root_hash(commit_hash)
#: The root-node of the current invocation (dict)
self.root_node = self.core.load_root(root_hash)
#: The active-node of the current invocation (dict)
self.active_node = self.core.load_by_path(self.root_node, active_node)
#: The active-selection nodes of the current invocation (list of dict)
self.active_selection = []
if active_selection is not None:
for as_path in active_selection:
self.active_selection.append(self.core.load_by_path(self.root_node, as_path))
[docs] def main(self):
"""
Main invocation point for a plugin. This must be implemented in the derived classes.
"""
raise NotImplementedError('plugin.main must be implemented in derived class!')
@property
def gme_config(self):
"""
A nested dictionary with `configuration parameters for webgme <https://github.com/webgme/webgme/tree/master/config>`_.
"""
return self.util.gme_config
@property
def META(self):
"""
Dictionary from name of meta-node to node dict.
"""
if self._META is None:
self._META = self.util.META(self.root_node, self.namespace)
return self._META
def _send(self, payload):
payload['type'] = 'plugin'
self._webgme.send_request(payload)
return self._webgme.handle_response()
[docs] def add_artifact(self, name, files):
"""
Adds multiple files to the blob storage and bundles them as an artifact of which the hash is added to the\
plugin-result.
:param name: name of the file bundle.
:type name: str
:param files: Keys are file names and values the content (as strings or bytes).
:type files: dict
:returns: The metadata-hash (the "id") of the uploaded artifact.
:rtype: str
:raises JSError: The result of the execution.
"""
extendedDict = {}
for key in files:
content = files[key];
is_bytes = False
if isinstance(content, bytes):
content = base64.b64encode(content).decode("UTF-8")
is_bytes = True
extendedDict[key] = {content: content, bytes: is_bytes}
return self._send({'name': 'addArtifact', 'args': [name, extendedDict]})
[docs] def add_file(self, name, content):
"""
Adds a file to the blob storage and adds it to the plugin-result.
:param name: The name the file should be uploaded as.
:type name: str
:param content: The file content.
:type content: Union[str, bytes]
:returns: The metadata-hash (the "id") of the uploaded file.
:rtype: str
:raises JSError: The result of the execution.
"""
if isinstance(content, bytes):
content = base64.b64encode(content).decode("UTF-8")
is_bytes = True
else:
is_bytes = False
return self._send({'name': 'addFile', 'args': [name, content, is_bytes]})
[docs] def create_message(self, node, message, severity='info'):
"""
Creates a new message for the user and adds it to the result.
:param node: The node related to the message.
:type node: dict
:param message: The feedback to the user.
:type message: str
:param severity: Severity level of the message: 'debug', 'info' (default), 'warning', 'error'.
:type severity: str
:returns: Nothing is returned by the function.
:rtype: None
:raises CoreIllegalArgumentError: If some of the parameters don't match the input criteria.
:raises CoreIllegalOperationError: If the context of the operation is not allowed.
:raises CoreInternalError: If some internal error took place inside the core layers.
:raises JSError: The result of the execution.
"""
return self._send({'name': 'createMessage', 'args': [node, message, severity]})
[docs] def get_artifact(self, metadata_hash):
"""
Retrieves all the files in the artifact from the blob storage.
:param metadata_hash: the "id" of the artifact to retrieve.
:type metadata_hash: str
:returns: Keys are file names, and values the file content (as strings).
:rtype: dict
:raises JSError: The result of the execution.
"""
return self._send({'name': 'getArtifact', 'args': [metadata_hash]})
[docs] def get_file(self, metadata_hash):
"""
Retrieves the file from blob storage.
:param metadata_hash: the "id" of the file to retrieve.
:type metadata_hash: str
:returns: The file content.
:rtype: str
:raises JSError: The result of the execution.
"""
return self._send({'name': 'getFile', 'args': [metadata_hash]})
[docs] def get_bin_file(self, metadata_hash, sub_path = None):
"""
Retrieves the file from blob storage.
:param metadata_hash: the "id" of the file to retrieve.
:type metadata_hash: str
:param sub_path: the path of the file to retrieve if it is inside an artifact/complex blob.
:type sub_path: str
:returns: The file content.
:rtype: bytes
:raises JSError: The result of the execution.
"""
content_as_string = self._send({'name': 'getBinFile', 'args': [metadata_hash, sub_path]})
return base64.decodebytes(content_as_string.decode('UTF-8'))
[docs] def get_current_config(self):
"""
Gets the current configuration of the plugin that was set by the user and plugin manager.
:returns: A dictionary with the plugin config for the current execution.
:rtype: dict
:raises JSError: The result of the execution.
"""
return self._send({'name': 'getCurrentConfig', 'args': []})
[docs] def send_notification(self, message):
"""
Sends a notification back to the invoker of the plugin, can be used to notify about progress.\
Message can either be a string or a dictionary with keys, 'message', 'progress', 'severity'\
and 'toBranch'. If an object is passed 'message' must be provided - all other are optional.\
'progress' - Approximate progress (in %) of the plugin at time of sending.\
'severity' - Severity level ('success', 'info', 'warn', 'error')\
'toBranch' - If true, and the plugin is running on the server on a branch the notification will be\
broadcast to all sockets in the branch room.
:param message: Message string or object containing message.
:type message: str or dict
:returns: A dictionary with the plugin config for the current execution.
:rtype: dict
:raises JSError: The result of the execution.
"""
return self._send({'name': 'sendNotification', 'args': [message]})
[docs] def result_set_success(self, success):
"""
Sets the the result value of the execution of the plugin. In python, if the plugin exits with 0,\
the value will be true.
:param success: The value to be set for the success of the plugin.
:type success: bool
:returns: Nothing is returned by the function.
:rtype: None
"""
return self._send({'name':'resultSetSuccess', 'args':[success]})
[docs] def result_set_error(self, message):
"""
Sets the error reason for the failure of the plugin. Should be used together with result_set_success\
as in case of successfull execution, this message is ignored. Also, only the first message will be visible\
for the user.
:param message: Textual description of the cause of the failure.
:type message: str
:returns: Nothing is returned by the function.
:rtype: None
"""
return self._send({'name':'resultSetError', 'args':[message]})


Basalt
/
basalt.server
/
ErrorResponses
/
TRACK_NOT_SEEKABLE
TRACK_NOT_SEEKABLE
TRACK_NOT_SEEKABLE
Returned if the currently playing track isn't seekable upon attempting to seek.


| goog.testing.MockClassRecord |
|
namespace
:
The namespace in which the mocked class resides.
|
|
className
:
The name of the class within the namespace.
|
|
originalClass
:
The original class implementation before it was replaced by a proxy.
|
|
proxy
:
The proxy that replaced the original class.
|
|
addMockInstance(args, mock)
Adds a new mock instance mapping. The mapping connects a set of function
arguments to a specific mock instance.
Arguments:
|
code » | |||
|
findMockInstance(args)
⇒
Finds the mock corresponding to a given argument set. Throws an error if
there is no appropriate match found.
Arguments:
Returns:
The mock corresponding to a given argument set.
|
code » | |||
|
getClassName()
⇒
A getter for this record's class name.
Returns:
The name of the class referenced by this record.
|
code » | |||
|
getNamespace()
⇒
A getter for this record's namespace.
Returns:
The namespace.
|
code » | |||
|
getOriginalClass()
⇒
A getter for the original class.
Returns:
The original class implementation before mocking.
|
code » | |||
|
getProxy()
⇒
A getter for the proxy being used as a replacement for the original class.
Returns:
The proxy.
|
code » | |||
|
getStaticMock()
⇒
A getter for the static mock.
Returns:
The static mock associated with this record.
|
code » | |||
|
reset()
No description.
|
code » | |||
|
setStaticMock(staticMock)
A setter for the static mock.
Arguments:
|
code » |
|
staticMock_
:
A mock associated with the static functions for a given class.
|
Code » |


View Young Shiau's professional profile on LinkedIn. Linked in is the world's largest
business network, helping professionals like Young Shiau discover inside...
Young Shiau
Software Engineer
Young Shiau was created when Satan downed a cup of black coffee and
spit it out because it was too hot. The coffee fused with the soul of a
newly-born child in Taiwan, and Young came into existence. He is currently
a student studying Computer Science at the UCSD.


Relics from World War II recovered from Bengawan Solo River
by Asip HasaniThe recent discovery of boat-shaped artifacts assumed to be part of a pontoon bridge left by the Dutch East Indies colonial government in the Bengawan Solo River in Lamongan, East Java, are reminders of how Allied forces were initially defeated in the Southeast Asian theater during World War II. The sunken pontoons had been found by sand miners in Mertani village, Lamongan regency, East Java in early October after a prolonged dry season led to an unusual drop of water levels in the river. Archaeologists said the American-British-Dutch-Australian (ABDA) Command, which was attempting to prevent the southward advance of Japanese forces, probably ordered the sinking of the pontoon bridge shortly after the Japanese began their invasion of Java in early 1942. The three boat-shaped pontoons pulled from the longest river on Java would have served to support the bridge's platfor...
LOG IN
Don't have an account? Register here
Forgot Password ?
Log in with your social account


About
Blog
Help
Login
Learn More
Dashboard
Marcus Doe
Profile
Logout
Dashboard
Projects
Contracts Management
Case Studies
Tax Reciepts
Reviews
Logout
Dashboard
Dashboard
Total Projects
56
Ongoing Projects
26
Completed Projects
30
Project wise Progress Report


| Status | Order Number | Client | Invoice | Amount to pay | Amount paid | Payments |
|---|---|---|---|---|---|---|
| {{order.status}} | Order {{order.id}} | {{order.names}} {{order.surnames}} | {{order.invoice_id}} | {{order.amounttopay}} | {{order.amountpaid}} | Payments |
| Amount | Date |
|---|---|
| {{payment.amount | currency }} | {{payment.date | date}} |


Center for Performing Arts
Rent Space
Two spaces are available for rent on an hourly or weekly basis.
The Sunroom
22 x 50, mirrors, hardwood sprung floor.
The Chapel
22 x 34, mirrors, barres, hardwood sprung floor.
Rates
Classes / Workshops:
$17 per hour for the Chapel
$18 per hour for the Sunroom
Rehearsals & Auditions:
$15 per hour in either studio
Private Offices & Studios:
Available on a more long-term lease basis.
Studios range in size from 100 sq.ft. to 600 sq.ft.
Email<EMAIL_ADDRESS>for private studio space requests.


Loading...
Receive
logog::Target::Receive()
logog::Topic::Receive()
ReportMemoryAllocations
logog
Republish
logog::Message
reserve
logog::String
reserve_for_int
logog::String
Reset
logog::Statics
reverse
logog::String
RunAllTests
logog
RunTest
logog::UnitTest
Searching...
No Matches


NZ unions condemn arrests in Philippines
by New Zealand Council of Trade UnionsNZ unions condemn arrests in Philippines
The Council of Trade Unions (CTU) is condemning the All Saints Day evening raid on 31 October. With the arrest of over 60 union organisers, human rights defenders and activists in the Philippines province of Negros. The 16th of November is an international day of action to draw attention to the actions of the Filipino government.
"It appears that the arrests are politically motivated as many of those arrested have questioned publicly President Duterte’s hostile anti-worker policies," CTU President Richard Wagstaff said.
"We know that one of those arrested, Anne Krueger, regional organiser for the BPO Industry Employee Network (BIEN) - the union for call centre workers - was among one of those arrested on false pretenses. Krueger has spoken out publicly about the human rights abuses happening under President Duterte’s administration."
"The New Zealand union movement is asking Kiwis to show international solidarity by chipping in to assist these human rights defenders with their legal costs," Wagstaff said.
ENDS


Team {{home_team$.team_number}} ({{home_team$.nickname}})
From {{home_team$.city}}, {{home_team$.state_prov}}, {{home_team$.country}}
Current Event {{current_event$.name}}
This will display:
- Name of the home team and basic competition info
- Current Event and our stats in it
- Upcoming matches for the current event with teammates and opponents ranked
- Short list of the this year's past events


Field Initialisation in Fixtures
When running a specification without examples, fields should only be created
1
time.


The amplitude of the wave, if this projectile is wavy
.
Whether or not this projectile changes direction during it's lifetime.
A list of condition effects applied by this projectile.
Note that effects are applied by the server independently of this list, and modifying this list will not change the effects applied.
The damage applied by this projectile, if it is not given by a range.
The frequency of the wave, if this projectile is wavy
.
A local identifier for the projectile if this projectile is part of a list.
The lifetime of this projectile, in milliseconds.
Unknown.
The maximum damage applied by this projectile, if it is not given by the damage
.
The minimum damage applied by this projectile, if it is not given by the damage
.
Whether or not this projectile hits multiple entities.
The name of the projectile.
Whether or not this projectile follows a parametric path (like Bulwark projectiles do).
Whether or not this projectile passes through obstacles.
The speed of this projectile. Units are unknown, but most likely tiles/second
Whether or not this projectile follows a wavy path (like staff projectiles do).
Generated using TypeDoc
The properties of a projectile loaded from the Objects resource.


--- layout: post authors: ["Greg Wilson"] title: A Bootcamp in Toronto May 9-10, 2013 date: 2013-04-08 time: "09:00:00" tags: ["Mozilla (Toronto)"] ---
We are offering a bootcamp at Mozilla's Toronto office on May 9-10, 2013. Please register here if you would like to take part.


Can you think of an analogy to describe HTML, CSS, and DOM?
- HTML is like the structure of a house. The foundations, frame, walls, roof, etc hold a house together, giving it structure in the same way HTML gives a website structure.
- CSS can be thought of as the decorataions of the house. The colour of the paint, style of the curtains, where the furniture is placed. That sort of thing. CSS allows you to style the HTML in whichever way you like.
- DOM can be compared to the blueprint of a house. It shows where things can be built and installed. DOM is a tree model, where the branches show the relationships of HTML tags.
What is meant by boxifying design?
Boxifying design refers to the fact that all elements in a webpage are contained within boxes. These boxes are rectangular in shape and regardless of what shapes are displayed on a website, they will fit into a rectangular box of their own. This makes it easier for designers to visualise how different elements will fit together and how to manipulate them.
What is the Box Model?
The Box Model is a CSS term describing the invisible box that surrounds each element. The Box Model consists of the outer-most margins, the borders, the padding, and the inner-most content. These components can all be manipulated using CSS.
Wishlist:
- Get a background image that I can make more transparent without causing the text to become transparent too.
- Create side columns.
- Have the elements of my website interact in more creative ways.
- Experiment with different colours and fonts.


isometric-features!
This game toolkit is robust, with many available features and integrations. Make sure to check the
documentation out.
Movement
The main character is moved around by the arrow keys: ←, ↑, →, and ↓.
Items
Items aren't critical and definitely don't have to be in your game, but they are a good addition to any. Building
a working inventory for any game is tough, let alone building it so that your items can interact in a 3d world.
The
Inventory
class allows for a fully-functional fillable inventory with custom items. Provided
(as part of the toolkit) is an
Item
class that can be extended.
Importance
This game system is important for those that want to create highly interactive games with the Phaser platform,
but want the isometric library to be a part of their system.


(PECL getdns >= 0.11.0)
php_getdns_dict_get_names — Get a list of all names in a dictionary.
$dict
, int &$names
)This function gets a list of names from a dictionary. The dictionary type is used to manage name/value pairs in which the names are strings and the data types of the values are heterogeneous and include bindata, dictionaries, lists, and integers.
dict
The previously created dictionary that is to be used with this request.
names
A reference to the list of names (contained within the dictionary) to be returned. Note that this argument is passed by reference and any existing value will be overwritten. The list must eventually be destroyed using php_getdns_list_destroy().
This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.


Name: Ron
Manager
- ID: 123
- Email<EMAIL_ADDRESS>- Office Number: 567
Name: Charles
Engineer
- ID: 43534
- Email<EMAIL_ADDRESS>- GitHub: cdfishe1
Name: David
Engineer
- ID: 5463453
- Email<EMAIL_ADDRESS>- GitHub: gloriousLoaf
Name: Maya
Intern
- ID: 234234
- Email<EMAIL_ADDRESS>- School: Northwestern University


import math from itertools import permutations
def main(x):
for p in permutations(x): print(p)
main("ROMA")
Run with input x = "ROMA"
Run with input x = 10


Page
Refresh
Add Page
Delete
Search
{{template "_miniloader.html"}}
Please click row to edit!
Back
Save
page
ID
Title
URL
Page Data Sources


Eco-friendly earbuds
by Manila Standard LifestyleThis pair of earbuds sound great for the environment.
House of Marley’s (HOM) Liberate Air True Wireless Earphones, made from sustainable materials such as bamboo, recycled silicone, and fabric, are now available in the Philippines.
Liberate Air is the audio brand’s answer to better-for-the-planet alternatives that offer quality audio that doesn’t come at the expense of the environment.
“We strive to reduce our environmental impact by using materials such as non-toxic silicone, wood-fiber composite resin, and ground plastic. From sustainably harvested materials to upcycled fabrics, our products are eco-friendly, including the packaging,” said Sunil Karamchandani, chief operating officer of Innovee Trading, the exclusive distributor of House of Marley in the Philippines.
Each pair of Liberate Air was engineered with audio systems that deliver HOM’s “signature sound” that highlights the energy, emotion, and detail of every recording. It is resistant to sweat and water droplets, and has a sensor-activated touch control technology feature for easy use.
The wireless pair’s two-hour charging time offers a nine-hour onboard battery life and an additional 32-hour playtime stored in its case for another two hours of charging. It uses Bluetooth 5.0 that easily pairs with any device with Bluetooth connectivity within a 10-meter range
Now available at Power Mac Center, Liberate Air is welcomed into the store’s comprehensive list of audio tech offerings through “Sounds Good! Coastal Cleanup,” a 100 percent sustainable event done in partnership with HOM and non-profit organization CORA (Communities Organized for Resource Allocation) Philippines, held at the Las Piñas-Parañaque Critical Habitat and Ecotourism Area.
“With the recent ‘Sounds Good!’ coastal cleanup, our goal is to not only support HOM and its strong commitment to its advocacy, but also give back for the protection of the environment,” said Joey Alvarez, PMC director of product management, marketing, and space planning.


The control which designers know in the print medium... is simply a function of the limitation of the printed page.
We should embrace the fact that the web doesn't have the same constraints, and design for this flexibility.
~ John Allsopp, A Dao of Web Design
First there was desktop...
then there was mobile...
and now watches, widescreens, etc.
Each device has different dimensions and capabilities
Fully-capable browsers have become pervasive
Changing perceptions regarding how mobile is used
target ÷ context = result
|
|
Still has limits
Small screen
constricts content
Large screen
isolates content
|
|
Images and video have explicit pixel sizes
img { max-width: 100%; }
img, embed, object, video { max-width: 100%; }
Art Direction Use Case
<picture>

<source media="(min-width: 45em)" srcset="large.jpg">
<source media="(min-width: 32em)" srcset="med.jpg">
</picture>
Variable Sized Use Case

Mobile browsers assume desktop pages
but the viewport tag lets us specify otherwise
<meta name="viewport" content="width=device-width,initial-scale=1">
Flexible Grid
Proportional design with percentages, not pixels
Media Queries
Application of styles at particular dimensions
Responsive Media
Images and video that scale to fit their container
Viewport Definition
Specify dimensions for the viewport
Website transforms to fit the user's
needs and capabilities
Up to this point, a focus on the viewport
But many other factors to consider
Context
Network
Resolution
Battery
Light
CSS Media Queries Level 3
@media (max-width: 480px) { /* ... */ }
@media (min-width: 481px) { /* ... */ }
@media (max-resolution: 299dpi) { /* ... */ }
@media (min-resolution: 300dpi) { /* ... */ }
@media (max-height: 800p1px) { /* ... */ }
@media (min-height: 800px) { /* ... */ }
@media (max-aspect-ratio: 1/1) { /* ... */ }
@media (orientation: portrait) { /* ... */ }
@media (min-aspect-ratio: 1/1) { /* ... */ }
@media (orientation: landscape) { /* ... */ }
CSS Media Queries Level 4
@media (light-level: normal) { /* ... */ }
@media (light-level: dim) { /* ... */ }
@media (light-level: washed) { /* ... */ }
@media (pointer: fine) { /* ... */ }
@media (hover: hover) { /* ... */ }
@media (scripting: enabled) { /* ... */ }
Ambient Light
window.addEventListener('devicelight', function(e) {
/** change environment based on e.value from [0,100] **/
});
Battery
navigator.battery || navigator.webkitBattery || navigator.mozBattery
Network Performance
window.performance.navigation
window.performance.getEntriesByType("resource")[5]
Quota Management API
navigator.storageQuota.queryInfo("temporary").then(function(storageInfo) {
initializeCache(storageInfo.usage, storageInfo.quota - storageInfo.usage);
});
CSS Conditional Rules Module Level 3
@supports (display: flex) {
div { display: flex; }
}
@supports (-webkit-box-shadow: 0 0 2px #000) or
( -moz-box-shadow: 0 0 2px #000) or
( box-shadow: 0 0 2px #000) {
div { /* .. */ }
}
CSS.supports("display", "flex");
CSS.supports("(transform-origin: 5% 5%)");
CSS.supports("(transform-origin: 5% 5%) and (display:flex)");
Available in Chrome 28, Firefox 17 and Opera 12.1
and polyfill github.com/kjarmicki/fq-polyfill
Spin a scroll wheel
Drag a scroll bar
Press a scroll arrow
Slide a finger across the screen
Verbally state "scroll" and a direction
CTRL + Z
CMD + Z
Press down and select action
Shake or swipe
document.addEventListener('keydown', function(e){
if(navigator.userAgent.match(/Macintosh/g) && e.which === 90 && e.metaKey)
doUndo();
else if(e.which === 90 && e.ctrlKey)
doUndo();
});
if(navigator.userAgent.match(/(iPad|iPhone|iPod)/g))
window.addEventListener('shake', function(e){
doUndo();
});
(function (window, document) {
function Shake() {
this.hasDeviceMotion = 'ondevicemotion' in window;
this.threshold = 15;
this.lastTime = new Date();
this.lastX = null;
this.lastY = null;
this.lastZ = null;
if (typeof document.CustomEvent === "function") {
this.event = new document.CustomEvent('shake', {
bubbles: true,
cancelable: true
});
} else if (typeof document.createEvent === "function") {
this.event = document.createEvent('Event');
this.event.initEvent('shake', true, true);
} else {
return false;
}
}
Shake.prototype.reset = function () {
this.lastTime = new Date();
this.lastX = null;
this.lastY = null;
this.lastZ = null;
};
Shake.prototype.start = function () {
this.reset();
if (this.hasDeviceMotion) { window.addEventListener('devicemotion', this, false); }
};
Shake.prototype.stop = function () {
if (this.hasDeviceMotion) { window.removeEventListener('devicemotion', this, false); }
this.reset();
};
Shake.prototype.devicemotion = function (e) {
var current = e.accelerationIncludingGravity,
currentTime,
timeDifference,
deltaX = 0,
deltaY = 0,
deltaZ = 0;
if ((this.lastX === null) && (this.lastY === null) && (this.lastZ === null)) {
this.lastX = current.x;
this.lastY = current.y;
this.lastZ = current.z;
return;
}
deltaX = Math.abs(this.lastX - current.x);
deltaY = Math.abs(this.lastY - current.y);
deltaZ = Math.abs(this.lastZ - current.z);
if (((deltaX > this.threshold) && (deltaY > this.threshold)) || ((deltaX > this.threshold) && (deltaZ > this.threshold)) || ((deltaY > this.threshold) && (deltaZ > this.threshold))) {
//calculate time in milliseconds since last shake registered
currentTime = new Date();
timeDifference = currentTime.getTime() - this.lastTime.getTime();
if (timeDifference > 1000) {
window.dispatchEvent(this.event);
this.lastTime = new Date();
}
}
this.lastX = current.x;
this.lastY = current.y;
this.lastZ = current.z;
};
Shake.prototype.handleEvent = function (e) {
if (typeof (this[e.type]) === 'function') {
return this[e.type](e);
}
};
var myShakeEvent = new Shake();
myShakeEvent && myShakeEvent.start();
}(window, document));
And how about tap highlight undo?
Make it easier for web developers to author consistently usable interfaces that are input-agnostic and independent of a user's particular platform, hardware, locale, and preferences.
Enable every type of control in these interfaces to be programmatically determinable and controllable by both mainstream and alternate forms of user input, including assistive technologies.
Provide a clear path for web developers to smoothly transition from currently existing physical events to IndieUI events, during the period when implementations of IndieUI are incomplete.
element.addEventListener('undorequest', function(){
doUndo();
});
No keypress detection
No UA sniffing or OS consideration
No complex hacks to detect interaction
No undetectable actions
Unfortunately, IndieUI is not really supported yet
For now, just be congnizant of the variety...
Not everyone has hover state
Not everyone interacts with keypresses
Mouse events and touch events are different
Not everyone interacts with our site the same way
Assistive Technologies
Computer Comprehension
These are needs to which we should be responsive
For more than a decade, HTML has supported...
alt attributes
label tags
tabindex attribute
h1-6 tags
Also good practices like captioning and skip navs
However, these are not enough for modern applications

And this is a "sensical" markup
What about absolute positioning, interactive components, etc.?
|
|
Landmarks
header, footer, main, nav
Sections
header, footer, main, nav, article, aside, section
Widgets
figure + figcaption, details + summary, time, progress, audio/video + track
Play by the rules, and you'll be pretty accessible without extra work!

Reading 1

Reading 2

This doesn't express...
which nav is the site nav
that the nav and articles relate
And this isn't even a bad one!
Built to map to OS native accessibility APIs
Roles
Properties
States

Reading 1

Reading 2

HTML 5
CSS 3
Javascript
All modern browsers support responsive layouts
Some of us still have to support aging browsers
Other responsive techniques are much less supported
Polyfills enable features in browsers that don't support them
Modernizr (modernizr.com)
Respond.js (github.com/scottjehl/Respond)
Selectivizr (selectivizr.com)
Normalize.css (necolas.github.io/normalize.css)
For more...
github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills
Twitter Bootstrap
getbootstrap.com
Zurb Foundation
foundation.zurb.com
UIKit
http://getuikit.com
PureCSS
purecss.io
WebBlocks 1
ucla.github.io/WebBlocks
Skeleton
getskeleton.com
Responsive Grid System
responsive.gs
Grid Syle Sheets *
gridstylesheets.org
* Not actually CSS but rather a language based on the Cassowary Constraint Solver
Use specialized components, not all-in-one frameworks
CSS Precompilers
sass-lang.com / lesscss.org
Component Libraries & Compilers
bower.io
compass-style.org / bourbon.io
gruntjs.com / github.com/WebBlocks/WebBlocks
Keep it simple and focus on your use cases!
HTML.next
w3.org/wiki/HTML/next
Web Components
webcomponents.org
ECMAScript 6
people.mozilla.org/~jorendorff/es6-draft.html
CSS 4
Media Queries Level 4, Selectors Level 4, Variables, etc.
Take these with a grain (or two) of salt!!!


Data Platform Demo
A demonstration of various open source components of the Linkedin data platform.
Pinot
Analytics serving at scale.
Query console
REST API
Azkaban
Hadoop job scheduling and management.
Azkaban web UI
Gobblin
ETL and data transformation for big data.
Hadoop
The classic big data processing framework.
Resource manager web UI
Dr. Elephant
Tuning advice for your Hadoop jobs.
Dr. Elephant web UI
Wherehows
Lineage information and search for data sets.
Wherehows web UI
Jupyter notebooks
Analyze and interact with data easily.
Jupyter web UI
Kafka
A flexible data streaming system.


The Google Maps API provides one method for presenting an interactive mapping tool within a web browser, but there are restrictions for free use based upon Google's license agreement, and the API is completely controlled by Google - changes are limited to those that Google enables. The OpenLayers Javascript framework which (as quoted from the OpenLayers 2 project home page)
has been developed to further the use of geographic information of all kinds. OpenLayers is completely free, Open Source JavaScript, released under the 2-clause BSD License (also known as the FreeBSD).
Given its Open Source model, OpenLayers is managed as a community software project, with the development of specific capabilities driven by particular project or functionality needs that come out of the community.
This week's class focuses on the basics of designing an OpenLayers interactive mapping client, including
At the end of this class the students will be able to:
At the end of this class students will understand that
Gratier, T., Spencer, P., & Hazzard, E. (2015). Openlayers 3 beginner's guide : Get started with openlayers 3 and enhance your web pages by creating and displaying dynamic maps. Birmingham, England: Packt Publishing. eBook Chapters 1-3.
Following the model used in Milestone 3 for your first Google Map web page, you should first answer the following questions about what and how you want to map - relating to a different focus than you have used in your previous assignments. As you define the type of map you want to build, think about a specific problem or topic that you would like to address with your map.
In this exercise you will be generating the configuration for the base map (i.e. including one or more OpenLayer enabled background layers), adding controls, and defining an appropriate map center and zoom level for the map. You will add your own custom content (i.e. the answers to the following questions) to a free-standing web page that include an interactive mapper and the reasoning behind the design of the map.
Create a web page that contains your milestone assignment writeup (including the embedded OpenLayers map required by question 5), and link it to your home page (index.html).
Respond to Question 1-4 with an understanding that you are generating a web page that should be clear, complete, well-formatted, and reasonably styled.
Now that you have answered these questions about the map that you want to create, refer to the examples in the lecture notes, the OpenLayers Examples (http://openlayers.org/en/v3.2.1/examples/), and this week's reading assignment to create a custom OpenLayers map.
Peer Review: This week's assignment will include a peer review component. Specifically, 1/3 of your 20-point peer review score will be based upon your peer-review of two other web pages generated by the students in the class. The required peer-review will consist of two steps:
Create a new Discussion Thread in Learn entitled: "Page for Peer-Review <Your Name>" at the same time you link your milestone to your homepage. Include in the post the GitHub address of your Week 10 milestone that you created for this assignment.
Provide a substantive, constructive, and civil comment (through the "reply" option for a posted thread) to two of the posted discussion threads posted for peer-review. Please complete the peer-review as soon as possible so that your colleagues can benefit most from your input. Complete the peer-review no later than the required end-of-term portfolio review deadline. Think about the following ideas for your review: what did I learn from this page, what was done well, what could be improved


moderit pain
- test question =
- i think im codeing this right
- worst pizza toping =
- i dont know what to put here
- open for a video in html
- closing for a video in html
- the hight of this video
- the with of the video
- i tryed to get it to work for hurs
- but you have to name a mp4 the right thing for it to work


Checks if two numbers are approximately equal to each other.
Math.abs()
epsilon
0.001
const approximatelyEqual = (v1, v2, epsilon = 0.001) => Math.abs(v1 - v2) < epsilon;
approximatelyEqual(Math.PI / 2.0, 1.5708); // true


| File | Statements | Branches | Functions | Lines | |||||
|---|---|---|---|---|---|---|---|---|---|
| collaborations.js | 100% | 34/34 | 100% | 0/0 | 100% | 10/10 | 100% | 34/34 | |
| collections.js | 100% | 11/11 | 100% | 0/0 | 100% | 3/3 | 100% | 11/11 | |
| comments.js | 100% | 22/22 | 100% | 0/0 | 100% | 6/6 | 100% | 22/22 | |
| device-pins.js | 90.48% | 19/21 | 83.33% | 5/6 | 100% | 4/4 | 90.48% | 19/21 | |
| enterprise.js | 100% | 21/21 | 100% | 0/0 | 100% | 5/5 | 100% | 21/21 | |
| events.js | 100% | 49/49 | 100% | 14/14 | 100% | 10/10 | 100% | 49/49 | |
| files.js | 100% | 189/189 | 91.11% | 41/45 | 100% | 41/41 | 100% | 185/185 | |
| folders.js | 100% | 108/108 | 91.67% | 22/24 | 100% | 23/23 | 100% | 104/104 | |
| groups.js | 100% | 42/42 | 100% | 2/2 | 100% | 12/12 | 100% | 42/42 | |
| legal-hold-policies.js | 100% | 41/41 | 100% | 4/4 | 100% | 12/12 | 100% | 41/41 | |
| metadata.js | 100% | 15/15 | 100% | 0/0 | 100% | 5/5 | 100% | 15/15 | |
| retention-policies.js | 100% | 36/36 | 100% | 0/0 | 100% | 10/10 | 100% | 36/36 | |
| search.js | 100% | 16/16 | 83.33% | 5/6 | 100% | 2/2 | 100% | 15/15 | |
| shared-items.js | 100% | 21/21 | 100% | 7/7 | 100% | 3/3 | 100% | 21/21 | |
| tasks.js | 100% | 37/37 | 100% | 0/0 | 100% | 11/11 | 100% | 37/37 | |
| trash.js | 100% | 8/8 | 100% | 0/0 | 100% | 2/2 | 100% | 8/8 | |
| users.js | 100% | 27/27 | 100% | 0/0 | 100% | 8/8 | 100% | 27/27 | |
| web-links.js | 100% | 18/18 | 100% | 0/0 | 100% | 5/5 | 100% | 18/18 | |
| webhooks.js | 100% | 62/62 | 100% | 22/22 | 100% | 10/10 | 100% | 62/62 |


You've successfully started the Nginx Proxy Manager.
If you're seeing this site then you're trying to access a host that isn't set up yet.
Log in to the Admin panel to get started.
Powered by Home Assistant Community Add-on: Nginx Proxy Manager


HTML Markup
You can make text bold and italics by using either a b or em with the contents in the middle.
HTML Attributes
Here you can add links to a website by using a tag ATTR="value" the text and close it.
HTML Images
Images do not have closing tags. They can be added by doing the following (img src="URL"atl=text)
Inline vs. Block
Inline is more focused on the break and includes a, span, strong, img, br.
Block is a parapgraph with invisible boxes around the text. This includes div, form, and p.
3 Key Things to Remember
Tag: Anything with angeled brackets.
Element: Everything within a tag.
Attribute: Property of HTML. For example, HREF.


Binary search tree
Easy-to-state algorithm that adapts well to random data
Home Searching
Easy-to-state algorithm that adapts well to random data
Uses rebalancing to guarantee good performance in worst case
Implements hashing technique to ensure constant time worst case performance
Uses a clever approach to effectively address string searching problem
| # | Data structure | Query time (worst case) |
|---|---|---|
| 1 | Binary search tree | θ(n) |
| 2 | Red-black tree | θ(ln(n)) |
| 3 | Hash table | θ(n)* |
| 4 | Trie | θ(m)** |
* worst case - very unlikely
** m - string length


The bucket {{fromBucket}}
will be replicated to the bucket
{{toBucket}} on the remote cluster
{{toCluster}}.
Missing targets on the remote will be ignored and that data will not be replicated.
The bucket {{fromBucket}} will be replicated to the
bucket {{toBucket}} on the remote cluster
{{toCluster}}.
Missing targets on the remote will be ignored and that data will not be replicated.


loading...
Example from
TLatex
docu
Examples from
TLatex
docu
Example from
TMathText
docu
Always drawn with MathJax


Never Enough
Most of the times I don’t know how to pray.
How would a mere man like me choose the right words to address the Creator of the Universe?
Despite my limitation to do so, the Christian #FAITH is that, in knowing that we could never build ourselves to His level, God himself chose to be like us.
For thousands of years, The Torah and the Prophets spoke about the day it would happen. The Day when YWHW would break out the limits of the Tabernacle and fill the earth as water fills the ocean.
John believed that Jesus was God moving at our pace so we could walk with Him and see Him face to face.
John, a Jew poet, would use all the beauty of the ancient Hebrew culture blended with Greek reason to say that “The Word became flesh and made his dwelling among us, and we have seen his glory”;
Today, he could say: “God became flesh and blood, and moved into the neighborhood. We saw His glory with our own eyes.”
Jesus’ core message is that the Glory seen by John and his contemporaneous was just a glimpse of the future when Heaven and Earth would finally be one again. Thus, he taught us to pray: for “The Kingdom to Come”
I find myself going back to the Lord’s prayer every other day. I pray it slowly; I breathe each of those sentences; I cry out my heart and my despair, calm in the morning or intense at night. And then, sometimes, when I am fortunate, it happens…
For a flash of time, without my outlining, with no model or plan, I can taste it. He listens to me, and if I may dare… He answers me back.
I can’t describe it. It goes way beyond my comprehension and my reasoning. There is no other experience like that, and I can’t share that with you, even if I used all my vocabulary.
In times like that music saves me. Through music, I may join the prayer of someone else so we can pray together; Music communicates feelings; Music makes it possible for me to pray in movement.
Today I prayed this song; I wept this song; I danced this song; I bowed down during the song; I found the words and the rhythm to explain the lament of my heart.
If you, like me, can’t find the right words to pray or find yourself unworthy of addressing the Almighty, close your eyes and join me and all those that for two thousand years have been praying for his Kingdom to Come.
And if you want to sing it, you may read John’s words, be amazed about everything he saw and testified to us, then, turn your radio on and sing:
I’m trying to hold my breath
Let it stay this way
Can’t let this moment end
You set off a dream with me
Getting louder now
Can you hear it echoing?
Take my hand
Will you share this with me?
‘Cause darling without you
All the shine of a thousand spotlights
All the stars we steal from the night sky
Will never be enough
Towers of gold are still too little
These hands could hold the world but it’ll
Never be enough
For me


×
How to Play
Challenge yourself as you race against the clock to type the randomly displayed words as quickly as you possibly can. For each accurate word that you type, a new word will appear and additional time will be added to the clock.
Accumulate points for each accurately typed word, but don't let the time run out or it'll be game over. It's a fun and exciting way to practice your typing skills that will have you hooked.
Want more of a challenge? Click on the settings icon on the bottom left to toggle between Easy, Normal, and Hard.


| File | Statements | Branches | Functions | Lines | |||||
|---|---|---|---|---|---|---|---|---|---|
| create.js | 78.95% | 30/38 | 76% | 19/25 | 60% | 3/5 | 85.29% | 29/34 | |
| destroy.js | 90% | 18/20 | 75% | 6/8 | 100% | 1/1 | 94.74% | 18/19 | |
| info.js | 81.18% | 69/85 | 52.63% | 20/38 | 100% | 5/5 | 92.96% | 66/71 | |
| open.js | 83.33% | 10/12 | 0% | 0/2 | 0% | 0/1 | 83.33% | 10/12 | |
| rename.js | 81.82% | 18/22 | 66.67% | 4/6 | 100% | 1/1 | 81.82% | 18/22 |


Male
Female
Tall
Short
Chubby
Light
Fare
Dark
Gorgeous
Cute
Ugly
Arlo
John
Joe
Robert
Elvis
Erick
Beth
Susan
Courtney
Kathy
Amy
Dianne
Bob
Ivan
Richard
Berta
Claudia
Erika


{% extends "layout.html" %} {% block content %}
In just 5 minutes you can reset your day in a positive way
Feel better, be better, and do better.


Connect - Discover - Learn
Have you ever wanted to learn more about the environment you live in? The stores aroun you. What lurks behind the street corners? Well now you can. Introducing GeoQuest, the new way to explore the world around you. No matter where you go, GeoQuest connects you with local tenants and past explorers to help your journey. The app is tailored to your preference, favorites and enviornment. Sign up to get started!
Quest Search
Recent Groups
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore delectus minus rerum.
Local Map
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda error repellendus ut odit.


| Opcode/Instruction | Op/En | 64/32 bit Mode Support | CPUID Feature Flag | Description |
|---|---|---|---|---|
|
0F D7 /r1 PMOVMSKB reg, mm |
RM | V/V | SSE | Move a byte mask of mm to reg. The upper bits of r32 or r64 are zeroed |
|
66 0F D7 /r PMOVMSKB reg, xmm |
RM | V/V | SSE2 | Move a byte mask of xmm to reg. The upper bits of r32 or r64 are zeroed |
|
VEX.128.66.0F.WIG D7 /r VPMOVMSKB reg, xmm1 |
RM | V/V | AVX | Move a byte mask of xmm1 to reg. The upper bits of r32 or r64 are filled with zeros. |
|
VEX.256.66.0F.WIG D7 /r VPMOVMSKB reg, ymm1 |
RM | V/V | AVX2 | Move a 32-bit mask of ymm1 to reg. The upper bits of r64 are filled with zeros. |
NOTES:
1. See note in Section 2.4, “AVX and SSE Instruction Exception Specification” in the Intel® 64 and IA-32 Architectures Software Developer’s Manual, Volume 2A and Section 22.25.3, “Exception Conditions of Legacy SIMD Instructions Operating on MMX Registers” in the Intel® 64 and IA-32 Architectures Software Developer’s Manual, Volume 3A.
| Op/En | Operand 1 | Operand 2 | Operand 3 | Operand 4 |
| RM | ModRM:reg (w) | ModRM:r/m (r) | NA | NA |
Creates a mask made up of the most significant bit of each byte of the source operand (second operand) and stores the result in the low byte or word of the destination operand (first operand).
The byte mask is 8 bits for 64-bit source operand, 16 bits for 128-bit source operand and 32 bits for 256-bit source operand. The destination operand is a general-purpose register.
In 64-bit mode, the instruction can access additional registers (XMM8-XMM15, R8-R15) when used with a REX.R prefix. The default operand size is 64-bit in 64-bit mode.
Legacy SSE version: The source operand is an MMX technology register.
128-bit Legacy SSE version: The source operand is an XMM register.
VEX.128 encoded version: The source operand is an XMM register.
VEX.256 encoded version: The source operand is a YMM register.
Note: VEX.vvvv is reserved and must be 1111b.
PMOVMSKB (with 64-bit source operand and r32)
r32[0] ← SRC[7]; r32[1] ← SRC[15]; (* Repeat operation for bytes 2 through 6 *) r32[7] ← SRC[63]; r32[31:8] ← ZERO_FILL; (V)PMOVMSKB (with 128-bit source operand and r32) r32[0] ← SRC[7]; r32[1] ← SRC[15]; (* Repeat operation for bytes 2 through 14 *) r32[15] ← SRC[127]; r32[31:16] ← ZERO_FILL;
VPMOVMSKB (with 256-bit source operand and r32)
r32[0] (cid:197) SRC[7]; r32[1] (cid:197) SRC[15]; (* Repeat operation for bytes 3rd through 31*) r32[31] (cid:197) SRC[255];
PMOVMSKB (with 64-bit source operand and r64)
r64[0] ← SRC[7]; r64[1] ← SRC[15]; (* Repeat operation for bytes 2 through 6 *) r64[7] ← SRC[63]; r64[63:8] ← ZERO_FILL;
(V)PMOVMSKB (with 128-bit source operand and r64)
r64[0] ← SRC[7]; r64[1] ← SRC[15]; (* Repeat operation for bytes 2 through 14 *) r64[15] ← SRC[127]; r64[63:16] ← ZERO_FILL;
VPMOVMSKB (with 256-bit source operand and r64)
r64[0] (cid:197) SRC[7]; r64[1] (cid:197) SRC[15]; (* Repeat operation for bytes 2 through 31*) r64[31] (cid:197) SRC[255]; r64[63:32] (cid:197) ZERO_FILL;
PMOVMSKB:
int _mm_movemask_pi8(__m64 a)
(V)PMOVMSKB:
int _mm_movemask_epi8 ( __m128i a)
VPMOVMSKB:
int _mm256_movemask_epi8 ( __m256i a)
None.
None.
See Exceptions Type 7; additionally
| #UD | If VEX.vvvv ≠ 1111B. |


{% extends "base.html" %} {% block title %} MotioSecure Monitor {% endblock %} {% block content %} Monitoring has started successfully. Notifications will be sent to your phone if motion is detected. « Stop Monitoring {% endblock %}
Monitoring has started successfully. Notifications will be sent to your phone if motion is detected.
« Stop Monitoring


class Mandrill::Ips
- Mandrill::Ips
- Reference
- Object
Defined in:
mandrill/api.crConstructors
Instance Method Summary
-
#cancel_warmup(ip)
Cancels the warmup process for a dedicated IP.
-
#check_custom_dns(ip, domain)
Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
-
#create_pool(pool)
Creates a pool and returns it.
-
#delete(ip)
Deletes a dedicated IP.
-
#delete_pool(pool)
Deletes a pool.
-
#info(ip)
Retrieves information about a single dedicated ip.
-
#list
Lists your dedicated IPs.
-
#list_pools
Lists your dedicated IP pools.
-
#pool_info(pool)
Describes a single dedicated IP pool.
-
#provision(warmup = false, pool = nil)
Requests an additional dedicated IP for your account.
-
#set_custom_dns(ip, domain)
Configures the custom DNS name for a dedicated IP.
-
#set_pool(ip, pool, create_pool = false)
Moves a dedicated IP to a different pool.
-
#start_warmup(ip)
Begins the warmup process for a dedicated IP.
Constructor Detail
Instance Method Detail
Cancels the warmup process for a dedicated IP. @param [String] ip a dedicated ip address @return [Hash] Information about the dedicated IP
- [String] ip the ip address
- [String] created_at the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format
- [String] pool the name of the pool that this dedicated IP belongs to
- [String] domain the domain name (reverse dns) of this dedicated IP
- [Hash] custom_dns information about the ip
Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP. @param [String] ip a dedicated ip address @param [String] domain the domain name to test @return [Hash] validation results for the domain
- [String] valid whether the domain name has a correctly-configured A record pointing to the ip address
- [String] error if valid is false, this will contain details about why the domain
Creates a pool and returns it. If a pool already exists with this name, no action will be performed. @param [String] pool the name of a pool to create @return [Hash] Information about the dedicated ip pool
- [String] name this pool
Deletes a dedicated IP. This is permanent and cannot be undone. @param [String] ip the dedicated ip to remove from your account @return [Hash] a description of the ip that was removed from your account.
- [String] ip the ip address
- [String] deleted a boolean indicating whether the ip was successfully deleted
Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool. @param [String] pool the name of the pool to delete @return [Hash] information about the status of the pool that was deleted
- [String] pool the name of the pool
- [Boolean] deleted whether the pool was deleted
Retrieves information about a single dedicated ip. @param [String] ip a dedicated IP address @return [Hash] Information about the dedicated ip
- [String] ip the ip address
- [String] created_at the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format
- [String] pool the name of the pool that this dedicated IP belongs to
- [String] domain the domain name (reverse dns) of this dedicated IP
- [Hash] custom_dns information about the ip
Lists your dedicated IPs. @return [Array] an array of structs for each dedicated IP
- [Hash] return[] information about a single dedicated IP
- [String] ip the ip address
- [String] created_at the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format
- [String] pool the name of the pool that this dedicated IP belongs to
- [String] domain the domain name (reverse dns) of this dedicated IP
- [Hash] custom_dns information about the ip
Lists your dedicated IP pools. @return [Array] the dedicated IP pools for your account, up to a maximum of 1,000
- [Hash] return[] information about each dedicated IP pool
- [String] name this pool
Describes a single dedicated IP pool. @param [String] pool a pool name @return [Hash] Information about the dedicated ip pool
- [String] name this pool
Requests an additional dedicated IP for your account. Accounts may have one outstanding request at any time, and provisioning requests are processed within 24 hours. @param [Boolean] warmup whether to enable warmup mode for the ip @param [String] pool the id of the pool to add the dedicated ip to, or null to use your account's default pool @return [Hash] a description of the provisioning request that was created
- [String] requested_at the date and time that the request was created as a UTC timestamp in YYYY-MM-DD HH:MM:SS format
Configures the custom DNS name for a dedicated IP. @param [String] ip a dedicated ip address @param [String] domain a domain name to set as the dedicated IP's custom dns name. @return [Hash] information about the dedicated IP's new configuration
- [String] ip the ip address
- [String] created_at the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format
- [String] pool the name of the pool that this dedicated IP belongs to
- [String] domain the domain name (reverse dns) of this dedicated IP
- [Hash] custom_dns information about the ip
Moves a dedicated IP to a different pool. @param [String] ip a dedicated ip address @param [String] pool the name of the new pool to add the dedicated ip to @param [Boolean] create_pool whether to create the pool if it does not exist; if false and the pool does not exist, an Unknown_Pool will be thrown. @return [Hash] Information about the updated state of the dedicated IP
- [String] ip the ip address
- [String] created_at the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format
- [String] pool the name of the pool that this dedicated IP belongs to
- [String] domain the domain name (reverse dns) of this dedicated IP
- [Hash] custom_dns information about the ip
Begins the warmup process for a dedicated IP. During the warmup process, Mandrill will gradually increase the percentage of your mail that is sent over the warming-up IP, over a period of roughly 30 days. The rest of your mail will be sent over shared IPs or other dedicated IPs in the same pool. @param [String] ip a dedicated ip address @return [Hash] Information about the dedicated IP
- [String] ip the ip address
- [String] created_at the date and time that the dedicated IP was created as a UTC string in YYYY-MM-DD HH:MM:SS format
- [String] pool the name of the pool that this dedicated IP belongs to
- [String] domain the domain name (reverse dns) of this dedicated IP
- [Hash] custom_dns information about the ip


The People Advisory Services (PAS) Learning suite is designed to take you from the beginning of your career through to mastery as a practitioner and leader. Each of the pillars of the PAS practice is catered for, providing continuous professional development through instructor led training, Web Based Learning (WBL), and simulations as well as virtual and blended solutions.
Take charge of your learning and drive your own development! For classroom training please see your local Talent Development team for how to register.


smoke test
`Prev `__
S
`Next `__
--------------
**smoke test**: n.
1. A rudimentary form of testing applied to electronic equipment
following repair or reconfiguration, in which power is applied and the
tester checks for sparks, smoke, or other dramatic signs of fundamental
failure. See `*magic smoke* <../M/magic-smoke.html>`__.
2. By extension, the first run of a piece of software after construction
or a critical change. See and compare `*reality
check* <../R/reality-check.html>`__.
There is an interesting semi-parallel to this term among typographers
and printers: When new typefaces are being punch-cut by hand, a smoke
test (hold the letter in candle smoke, then press it onto paper) is used
to check out new dies.
--------------
+--------------------------------------+----------------------------+-----------------------------------+
| `Prev `__ | `Up <../S.html>`__ | `Next `__ |
+--------------------------------------+----------------------------+-----------------------------------+
| smoke and mirrors | `Home <../index.html>`__ | smoking clover |
+--------------------------------------+----------------------------+-----------------------------------+


HTML This is the first part of the article This is the second part of the article This is the basic example of the elements organization in html


Actions, resources, and condition keys for Amazon Comprehend
Amazon Comprehend (service prefix:
comprehend
) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.
References:
-
Learn how to configure this service .
-
View a list of the API operations available for this service .
-
Learn how to secure this service and its resources by using IAM permission policies.
Topics
Actions defined by Amazon Comprehend
You can specify the following actions in the
Action
element of an IAM policy statement. Use policies to grant permissions to perform an operation in AWS. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.
The
Resource types
column of the Actions table indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("*") to which the policy applies in the
Resource
element of your policy statement. If the column includes a resource type, then you can specify an ARN of that type in a statement with that action. If the action has one or more required resources, the caller must have permission to use the action with those resources. Required resources are indicated in the table with an asterisk (*). If you limit resource access with the
Resource
element in an IAM policy, you must include an ARN or pattern for each required resource type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one of the optional resource types.
The
Condition keys
column of the Actions table includes keys that you can specify in a policy statement's
Condition
element. For more information on the condition keys that are associated with resources for the service, see the
Condition keys
column of the Resource types table.
For details about the columns in the following table, see Actions table .
| Actions | Description | Access level | Resource types (*required) | Condition keys | Dependent actions |
|---|---|---|---|---|---|
| BatchDetectDominantLanguage | Grants permission to detect the language or languages present in the list of text documents | Read | |||
| BatchDetectEntities | Grants permission to detect the named entities ("People", "Places", "Locations", etc) within the given list of text documents | Read | |||
| BatchDetectKeyPhrases | Grants permission to detect the phrases in the list of text documents that are most indicative of the content | Read | |||
| BatchDetectSentiment | Grants permission to detect the sentiment of a text in the list of documents (Positive, Negative, Neutral, or Mixed) | Read | |||
| BatchDetectSyntax | Grants permission to detect syntactic information (like Part of Speech, Tokens) in a list of text documents | Read | |||
| BatchDetectTargetedSentiment | Grants permission to detect the sentiments associated with specific entities (such as brands or products) within the given list of text documents | Read | |||
| ClassifyDocument | Grants permission to create a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint | Read | |||
| ContainsPiiEntities | Grants permission to classify the personally identifiable information within given documents in real-time | Read | |||
| CreateDataset | Grants permission to create a new dataset within a flywheel | Write | |||
| CreateDocumentClassifier | Grants permission to create a new document classifier that you can use to categorize documents | Write | |||
| CreateEndpoint | Grants permission to create a model-specific endpoint for synchronous inference for a previously trained custom model | Write | |||
| CreateEntityRecognizer | Grants permission to create an entity recognizer using submitted files | Write | |||
| CreateFlywheel | Grants permission to create a new flywheel that you can use to train model versions | Write | |||
| DeleteDocumentClassifier | Grants permission to delete a previously created document classifier | Write | |||
| DeleteEndpoint | Grants permission to delete a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted | Write | |||
| DeleteEntityRecognizer | Grants permission to delete a submitted entity recognizer | Write | |||
| DeleteFlywheel | Grants permission to Delete a flywheel | Write | |||
| DeleteResourcePolicy | Grants permission to remove policy on resource | Write | |||
| DescribeDataset | Grants permission to get the properties associated with a dataset | Read | |||
| DescribeDocumentClassificationJob | Grants permission to get the properties associated with a document classification job | Read | |||
| DescribeDocumentClassifier | Grants permission to get the properties associated with a document classifier | Read | |||
| DescribeDominantLanguageDetectionJob | Grants permission to get the properties associated with a dominant language detection job | Read | |||
| DescribeEndpoint | Grants permission to get the properties associated with a specific endpoint. Use this operation to get the status of an endpoint | Read | |||
| DescribeEntitiesDetectionJob | Grants permission to get the properties associated with an entities detection job | Read | |||
| DescribeEntityRecognizer | Grants permission to provide details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on | Read | |||
| DescribeEventsDetectionJob | Grants permission to get the properties associated with an Events detection job | Read | |||
| DescribeFlywheel | Grants permission to get the properties associated with a flywheel | Read | |||
| DescribeFlywheelIteration | Grants permission to get the properties associated with a flywheel iteration for a flywheel | Read | |||
| DescribeKeyPhrasesDetectionJob | Grants permission to get the properties associated with a key phrases detection job | Read | |||
| DescribePiiEntitiesDetectionJob | Grants permission to get the properties associated with a PII entities detection job | Read | |||
| DescribeResourcePolicy | Grants permission to read attached policy on resource | Read | |||
| DescribeSentimentDetectionJob | Grants permission to get the properties associated with a sentiment detection job | Read | |||
| DescribeTargetedSentimentDetectionJob | Grants permission to get the properties associated with a targeted sentiment detection job | Read | |||
| DescribeTopicsDetectionJob | Grants permission to get the properties associated with a topic detection job | Read | |||
| DetectDominantLanguage | Grants permission to detect the language or languages present in the text | Read | |||
| DetectEntities | Grants permission to detect the named entities ("People", "Places", "Locations", etc) within the given text document | Read | |||
| DetectKeyPhrases | Grants permission to detect the phrases in the text that are most indicative of the content | Read | |||
| DetectPiiEntities | Grants permission to detect the personally identifiable information entities ("Name", "SSN", "PIN", etc) within the given text document | Read | |||
| DetectSentiment | Grants permission to detect the sentiment of a text in a document (Positive, Negative, Neutral, or Mixed) | Read | |||
| DetectSyntax | Grants permission to detect syntactic information (like Part of Speech, Tokens) in a text document | Read | |||
| DetectTargetedSentiment | Grants permission to detect the sentiments associated with specific entities (such as brands or products) in a document | Read | |||
| ImportModel | Grants permission to import a trained Comprehend model | Write | |||
| ListDatasets | Grants permission to get a list of the Datasets associated with a flywheel | Read | |||
| ListDocumentClassificationJobs | Grants permission to get a list of the document classification jobs that you have submitted | Read | |||
| ListDocumentClassifierSummaries | Grants permission to get a list of summaries of the document classifiers that you have created | Read | |||
| ListDocumentClassifiers | Grants permission to get a list of the document classifiers that you have created | Read | |||
| ListDominantLanguageDetectionJobs | Grants permission to get a list of the dominant language detection jobs that you have submitted | Read | |||
| ListEndpoints | Grants permission to get a list of all existing endpoints that you've created | Read | |||
| ListEntitiesDetectionJobs | Grants permission to get a list of the entity detection jobs that you have submitted | Read | |||
| ListEntityRecognizerSummaries | Grants permission to get a list of summaries for the entity recognizers that you have created | Read | |||
| ListEntityRecognizers | Grants permission to get a list of the properties of all entity recognizers that you created, including recognizers currently in training | Read | |||
| ListEventsDetectionJobs | Grants permission to get a list of Events detection jobs that you have submitted | Read | |||
| ListFlywheelIterationHistory | Grants permission to get a list of iterations associated for a flywheel | Read | |||
| ListFlywheels | Grants permission to get a list of the flywheels that you have created | Read | |||
| ListKeyPhrasesDetectionJobs | Grants permission to get a list of key phrase detection jobs that you have submitted | Read | |||
| ListPiiEntitiesDetectionJobs | Grants permission to get a list of PII entities detection jobs that you have submitted | Read | |||
| ListSentimentDetectionJobs | Grants permission to get a list of sentiment detection jobs that you have submitted | Read | |||
| ListTagsForResource | Grants permission to list tags for a resource | Read | |||
| ListTargetedSentimentDetectionJobs | Grants permission to get a list of targeted sentiment detection jobs that you have submitted | Read | |||
| ListTopicsDetectionJobs | Grants permission to get a list of the topic detection jobs that you have submitted | Read | |||
| PutResourcePolicy | Grants permission to attach policy to resource | Write | |||
| StartDocumentClassificationJob | Grants permission to start an asynchronous document classification job | Write | |||
| StartDominantLanguageDetectionJob | Grants permission to start an asynchronous dominant language detection job for a collection of documents | Write | |||
| StartEntitiesDetectionJob | Grants permission to start an asynchronous entity detection job for a collection of documents | Write | |||
| StartEventsDetectionJob | Grants permission to start an asynchronous Events detection job for a collection of documents | Write | |||
| StartFlywheelIteration | Grants permission to start a flywheel iteration for a flywheel | Write | |||
| StartKeyPhrasesDetectionJob | Grants permission to start an asynchronous key phrase detection job for a collection of documents | Write | |||
| StartPiiEntitiesDetectionJob | Grants permission to start an asynchronous PII entities detection job for a collection of documents | Write | |||
| StartSentimentDetectionJob | Grants permission to start an asynchronous sentiment detection job for a collection of documents | Write | |||
| StartTargetedSentimentDetectionJob | Grants permission to start an asynchronous targeted sentiment detection job for a collection of documents | Write | |||
| StartTopicsDetectionJob | Grants permission to start an asynchronous job to detect the most common topics in the collection of documents and the phrases associated with each topic | Write | |||
| StopDominantLanguageDetectionJob | Grants permission to stop a dominant language detection job | Write | |||
| StopEntitiesDetectionJob | Grants permission to stop an entity detection job | Write | |||
| StopEventsDetectionJob | Grants permission to stop an Events detection job | Write | |||
| StopKeyPhrasesDetectionJob | Grants permission to stop a key phrase detection job | Write | |||
| StopPiiEntitiesDetectionJob | Grants permission to stop a PII entities detection job | Write | |||
| StopSentimentDetectionJob | Grants permission to stop a sentiment detection job | Write | |||
| StopTargetedSentimentDetectionJob | Grants permission to stop a targeted sentiment detection job | Write | |||
| StopTrainingDocumentClassifier | Grants permission to stop a previously created document classifier training job | Write | |||
| StopTrainingEntityRecognizer | Grants permission to stop a previously created entity recognizer training job | Write | |||
| TagResource | Grants permission to tag a resource with given key value pairs | Tagging | |||
| UntagResource | Grants permission to untag a resource with given key | Tagging | |||
| UpdateEndpoint | Grants permission to update information about the specified endpoint | Write | |||
| UpdateFlywheel | Grants permission to Update a flywheel's configuration | Write | |||
Resource types defined by Amazon Comprehend
The following resource types are defined by this service and can be used in the
Resource
element of IAM permission policy statements. Each action in the
Actions table
identifies the resource types that can be specified with that action. A resource type can also define which condition keys you can include in a policy. These keys are displayed in the last column of the Resource types table. For details about the columns in the following table, see
Resource types table
.
| Resource types | ARN | Condition keys |
|---|---|---|
| targeted-sentiment-detection-job |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:targeted-sentiment-detection-job/$
{
JobId}
|
|
| document-classifier |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:document-classifier/$
{
DocumentClassifierName}
|
|
| document-classifier-endpoint |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:document-classifier-endpoint/$
{
DocumentClassifierEndpointName}
|
|
| entity-recognizer |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:entity-recognizer/$
{
EntityRecognizerName}
|
|
| entity-recognizer-endpoint |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:entity-recognizer-endpoint/$
{
EntityRecognizerEndpointName}
|
|
| dominant-language-detection-job |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:dominant-language-detection-job/$
{
JobId}
|
|
| entities-detection-job |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:entities-detection-job/$
{
JobId}
|
|
| pii-entities-detection-job |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:pii-entities-detection-job/$
{
JobId}
|
|
| events-detection-job |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:events-detection-job/$
{
JobId}
|
|
| key-phrases-detection-job |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:key-phrases-detection-job/$
{
JobId}
|
|
| sentiment-detection-job |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:sentiment-detection-job/$
{
JobId}
|
|
| topics-detection-job |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:topics-detection-job/$
{
JobId}
|
|
| document-classification-job |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:document-classification-job/$
{
JobId}
|
|
| flywheel |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:flywheel/$
{
FlywheelName}
|
|
| flywheel-dataset |
arn:$
{
Partition}:comprehend:$
{
Region}:$
{
Account}:flywheel/$
{
FlywheelName}/dataset/$
{
DatasetName}
|
Condition keys for Amazon Comprehend
Amazon Comprehend defines the following condition keys that can be used in the
Condition
element of an IAM policy. You can use these keys to further refine the conditions under which the policy statement applies. For details about the columns in the following table, see
Condition keys table
.
To view the global condition keys that are available to all services, see Available global condition keys .
| Condition keys | Description | Type |
|---|---|---|
| aws:RequestTag/${TagKey} | Filters access by requiring tag values present in a resource creation request | String |
| aws:ResourceTag/${TagKey} | Filters access by requiring tag value associated with the resource | String |
| aws:TagKeys | Filters access by requiring the presence of mandatory tags in the request | ArrayOfString |
| comprehend:DataLakeKmsKey | Filters access by the DataLake Kms Key associated with the flywheel resource in the request | ARN |
| comprehend:FlywheelIterationId | Filters access by particular Iteration Id for a flywheel | String |
| comprehend:ModelKmsKey | Filters access by the model KMS key associated with the resource in the request | ARN |
| comprehend:OutputKmsKey | Filters access by the output KMS key associated with the resource in the request | ARN |
| comprehend:VolumeKmsKey | Filters access by the volume KMS key associated with the resource in the request | ARN |
| comprehend:VpcSecurityGroupIds | Filters access by the list of all VPC security group ids associated with the resource in the request | ArrayOfString |
| comprehend:VpcSubnets | Filters access by the list of all VPC subnets associated with the resource in the request | ArrayOfString |


nips nips2001 nips2001-177 nips2001-177-reference knowledge-graph by maker-knowledge-mining
Source: pdf
Author: Timothy X. Brown
Abstract: In packet switches, packets queue at switch inputs and contend for outputs. The contention arbitration policy directly affects switch performance. The best policy depends on the current state of the switch and current trafﬁc patterns. This problem is hard because the state space, possible transitions, and set of actions all grow exponentially with the size of the switch. We present a reinforcement learning formulation of the problem that decomposes the value function into many small independent value functions and enables an efﬁcient action selection.
[1] Boyan, J.A., Littman, M.L., “Packet routing in dynamically changing networks: a reinforcement learning approach,” in Cowan, J.D., et al., ed. Advances in NIPS 6, Morgan Kauffman, SF, 1994. pp. 671–678.
[2] Brown, T.X, Lui, K.H., “Neural Network Design of a Banyan Network Controller,” IEEE JSAC, v. 8, n. 8, pp. 1428–1438, Oct., 1990.
[3] Brown, T.X, Tong, H., Singh, S., “Optimizing admission control while ensuring quality of service in multimedia networks via reinforcement learning,” in Advances NIPS 11, ed. M. Kearns et al., MIT Press, 1999.
[4] Brown, T.X, Gabow, H.N., “Future Information in Input Queueing,” submitted to Computer Networks, April 2001.
[5] Gabor, Z., Kalmar, Z., Szepesvari, C., “Multi-criteria Reinforcement Learning,” International Conference on Machine Learning, Madison, WI, July, 1998. (¢1
[6] J. Hopcroft and R. Karp, “An algorithm for maximum matchings in bipartite graphs”, SIAM J. Computing 2, 4, 1973, pp 225-231.
[7] Marbach, P., Mihatsch, M., Tsitsiklis, J.N., “Call admission control and routing in integrated service networks using neuro-dynamic programming,” IEEE J. Selected Areas in Comm., v. 18, n. 2, pp. 197–208, Feb. 2000.
[8] McKeown, N., Anantharam, V., Walrand, J., “Achieving 100% Throughput in an Input-Queued Switch,” Proc. of IEEE INFOCOM ’96, San Francisco, March 1996.
[9] Park, Y.-K., Lee, G., “NN Based ATM Scheduling with Queue Length Based Priority Scheme,” IEEE J. Selected Areas in Comm., v. 15, n. 2 pp. 261–270, Feb. 1997.
[10] Pattavina, A., Switching Theory: Architecture and Performance in Broadband ATM Networks, John Wiley and Sons, New York, 1998.
[11] Singh, S.P., Bertsekas, D.P., “Reinforcement learning for dynamic channel allocation in cellular telephone systems,” in Advances in NIPS 9, ed. Mozer, M., et al., MIT Press, 1997. pp. 974–980.
[12] Sutton, R.S., Barto, A.G., Reinforcement Learning: an Introduction, MIT Press, 1998.
[13] Tarjan, R.E., Data Structures and Network Algorithms, Soc. for Industrial and Applied Mathematics, Philidelphia, 1983.


October 22, 2018
Jeff Goldstein, Warner Bros.’ president of domestic distribution, said, ’We had tremendous success releasing the first ’Wonder Woman’ film during the summer so when we saw an opportunity to take advantage of the changing competitive landscape, we did. This move lands the film exactly where it belongs.’
’Wonder Woman 1984’ is the eighth installment in the DC Universe, and the fourth movie featuring Gadot’s Wonder Woman. The first pic earned $821.8 million worldwide, including $412.6 million in North America. The movie is the highest-grossing film with a female director, as well as the 25th-highest-grossing movie of all time in North America.
Patty Jenkins is returning to direct. The film was originally dated on Dec. 13, 2019, but was moved forward to Nov. 1 to avoid being just a single week ahead of Disney-Lucasfilm’s ’Star Wars: Episode IX,’ which opens on Dec. 20, 2019. Chris Pine is also back and Kristen Wiig joins as the villainous Cheetah. Gadot and Jenkins are producing along with Charles Roven, Deborah Snyder, Zack Snyder and Stephen Jones.
Warner Bros. bought the rights to ’Six Billion Dollar Man’ late last year from the Weinstein Company, which had been developing the movie with Damian Szifron — best known for directing the Argentinian drama ’Wild Tales.’ The studio had already pushed back the release date for the sci-fi action film by a year, moving the opening from May 31, 2019, to June 5, 2020, in the wake of Szifron departing as director in early May of this year.
’Wonder Woman 1984’ is currently the only film dated for June 5, 2020. Gadot made the announcement Monday on her Twitter account.
Consider sharing the article if you enjoyed reading it!


Codeception\Stub ¶
public static make($class, $params = null, $testCase = null) ¶
Instantiates a class without executing a constructor. Properties and methods can be set as a second parameter. Even protected and private properties can be set.
<?php
Stub::make('User');
Stub::make('User', ['name' => 'davert']);
?>
Accepts either name of class or object of that class
<?php
Stub::make(new User, ['name' => 'davert']);
?>
To replace method provide it's name as a key in second parameter and it's return value or callback function as parameter
<?php
Stub::make('User', ['save' => function () { return true; }]);
Stub::make('User', ['save' => true]);
?>
To create a mock, pass current testcase name as last argument:
<?php
Stub::make('User', [
'save' => \Codeception\Stub\Expected::once()
], $this);
param mixed
$class - A class to be mockedparam array
$params - properties and methods to setparam bool|\PHPUnit\Framework\TestCase
$testCase- return object - mock
- throws \RuntimeException when class does not exist
- throws \Exception
public static factory($class, $num = null, $params = null) ¶
Creates $num instances of class through Stub::make
.
param mixed
$classparam int
$numparam array
$params- return array
- throws \Exception
public static makeEmptyExcept($class, $method, $params = null, $testCase = null) ¶
Instantiates class having all methods replaced with dummies except one. Constructor is not triggered. Properties and methods can be replaced. Even protected and private properties can be set.
<?php
Stub::makeEmptyExcept('User', 'save');
Stub::makeEmptyExcept('User', 'save', ['name' => 'davert']);
?>
Accepts either name of class or object of that class
<?php
* Stub::makeEmptyExcept(new User, 'save');
?>
To replace method provide it's name as a key in second parameter and it's return value or callback function as parameter
<?php
Stub::makeEmptyExcept('User', 'save', ['isValid' => function () { return true; }]);
Stub::makeEmptyExcept('User', 'save', ['isValid' => true]);
?>
To create a mock, pass current testcase name as last argument:
<?php
Stub::makeEmptyExcept('User', 'validate', [
'save' => \Codeception\Stub\Expected::once()
], $this);
param mixed
$classparam string
$methodparam array
$paramsparam bool|\PHPUnit\Framework\TestCase
$testCase- return object
- throws \Exception
public static makeEmpty($class, $params = null, $testCase = null) ¶
Instantiates class having all methods replaced with dummies. Constructor is not triggered. Properties and methods can be set as a second parameter. Even protected and private properties can be set.
<?php
Stub::makeEmpty('User');
Stub::makeEmpty('User', ['name' => 'davert']);
Accepts either name of class or object of that class
<?php
Stub::makeEmpty(new User, ['name' => 'davert']);
To replace method provide it's name as a key in second parameter and it's return value or callback function as parameter
<?php
Stub::makeEmpty('User', ['save' => function () { return true; }]);
Stub::makeEmpty('User', ['save' => true));
To create a mock, pass current testcase name as last argument:
<?php
Stub::makeEmpty('User', [
'save' => \Codeception\Stub\Expected::once()
], $this);
param mixed
$classparam array
$paramsparam bool|\PHPUnit\Framework\TestCase
$testCase- return object
- throws \Exception
public static copy($obj, $params = null) ¶
Clones an object and redefines it's properties (even protected and private)
param
$objparam array
$params- return mixed
- throws \Exception
public static construct($class, $constructorParams = null, $params = null, $testCase = null) ¶
Instantiates a class instance by running constructor. Parameters for constructor passed as second argument Properties and methods can be set in third argument. Even protected and private properties can be set.
<?php
Stub::construct('User', ['autosave' => false]);
Stub::construct('User', ['autosave' => false], ['name' => 'davert']);
?>
Accepts either name of class or object of that class
<?php
Stub::construct(new User, ['autosave' => false), ['name' => 'davert']);
?>
To replace method provide it's name as a key in third parameter and it's return value or callback function as parameter
<?php
Stub::construct('User', [], ['save' => function () { return true; }]);
Stub::construct('User', [], ['save' => true]);
?>
To create a mock, pass current testcase name as last argument:
<?php
Stub::construct('User', [], [
'save' => \Codeception\Stub\Expected::once()
], $this);
param mixed
$classparam array
$constructorParamsparam array
$paramsparam bool|\PHPUnit\Framework\TestCase
$testCase- return object
- throws \Exception
public static constructEmpty($class, $constructorParams = null, $params = null, $testCase = null) ¶
Instantiates a class instance by running constructor with all methods replaced with dummies. Parameters for constructor passed as second argument Properties and methods can be set in third argument. Even protected and private properties can be set.
<?php
Stub::constructEmpty('User', ['autosave' => false]);
Stub::constructEmpty('User', ['autosave' => false), ['name' => 'davert']);
Accepts either name of class or object of that class
<?php
Stub::constructEmpty(new User, ['autosave' => false], ['name' => 'davert']);
To replace method provide it's name as a key in third parameter and it's return value or callback function as parameter
<?php
Stub::constructEmpty('User', [], ['save' => function () { return true; }]);
Stub::constructEmpty('User', [], ['save' => true]);
To create a mock, pass current testcase name as last argument:
<?php
Stub::constructEmpty('User', [], [
'save' => \Codeception\Stub\Expected::once()
], $this);
param mixed
$classparam array
$constructorParamsparam array
$paramsparam bool|\PHPUnit\Framework\TestCase
$testCasereturn object
public static constructEmptyExcept($class, $method, $constructorParams = null, $params = null, $testCase = null) ¶
Instantiates a class instance by running constructor with all methods replaced with dummies, except one. Parameters for constructor passed as second argument Properties and methods can be set in third argument. Even protected and private properties can be set.
<?php
Stub::constructEmptyExcept('User', 'save');
Stub::constructEmptyExcept('User', 'save', ['autosave' => false], ['name' => 'davert']);
?>
Accepts either name of class or object of that class
<?php
Stub::constructEmptyExcept(new User, 'save', ['autosave' => false], ['name' => 'davert']);
?>
To replace method provide it's name as a key in third parameter and it's return value or callback function as parameter
<?php
Stub::constructEmptyExcept('User', 'save', [], ['save' => function () { return true; }]);
Stub::constructEmptyExcept('User', 'save', [], ['save' => true]);
?>
To create a mock, pass current testcase name as last argument:
<?php
Stub::constructEmptyExcept('User', 'save', [], [
'save' => \Codeception\Stub\Expected::once()
], $this);
param mixed
$classparam string
$methodparam array
$constructorParamsparam array
$paramsparam bool|\PHPUnit\Framework\TestCase
$testCasereturn object
public static update($mock, array $params) ¶
Replaces properties of current stub
param \PHPUnit\Framework\MockObject\MockObject
$mockparam array
$params- return mixed
- throws \LogicException
public static consecutive() ¶
Stubbing a method call to return a list of values in the specified order.
<?php
$user = Stub::make('User', array('getName' => Stub::consecutive('david', 'emma', 'sam', 'amy')));
$user->getName(); //david
$user->getName(); //emma
$user->getName(); //sam
$user->getName(); //amy
?>
- return ConsecutiveMap


JobSeeker
Add Job
Filters
From
to
Applied
Interviewed
Offered
Rejected
×
Date Applied:
Status:
Applied
Interviewed
Offered
Rejected
Job Title:
Company:
Location:
Applied via:
{{ notify.loginModal.message }}
Username
Password
Status
Date
Job Title
Company
Location
Applied Via
{{ notify.table.message }}
{{ job.status | capitalize }}
Applied
Interviewed
Offered
Rejected
{{ job.date | date: 'shortDate' }}
{{ job.title }}
{{ job.company }}
{{ job.location }}
{{ job.via }}


This is a conductivity class.
Public Functions
Constructor
Constructor of conductivity class
Deconstructor of conductivity class
Subroutine which generates conductivity
Outputs int, index conductivity in specific direction
Outputs double of conductivity in specific direction
Outputs double of dist conductivity in specific direction


--- title: Test data loaders keywords: fastai sidebar: home_sidebar ---
These functions load test data located in the files folder. The test data is used throughout the notebooks to test and demonstrate the use of the functions.
from nbdev.export import *
notebook2script()


mygarments.com
ABOUT US
CONTACT US
BRANDED SHIRTS
Formal shirts
Causual shirts
T-shirts
BOTTOM WEAR
Trousers
Jeans
Trackpants
{% block content %} {% endblock %}


Hello Admin,
Your Email Verification Code is:
135468
Or you can just click the link below:
Click here to auto verify


{{ form.media }}
{{message}}
{%endif%}import django_filepicker class TestModel(models.Model): text = models.CharField(max_length=64) fpfile = django_filepicker.models.FPFileField(upload_to='uploads')
form = models.TestModelForm(request.POST, request.FILES) if form.is_valid(): #Save will read the data and upload it to the location defined in TestModel form.save()
Code available on GitHub at https://github.com/Filepicker/django-filepicker.
For more info and to get an api key, check out Filepicker.io.


Man in hospital following shooting in Tallaght
by By Digital Desk staffA man is being treated in hospital after being shot in Tallaght in Dublin.
The shooting happened at Mac Uilliam Estate on Fortunestown Lane in Tallaght at around 6.20pm yesterday evening.
Shots were fired at a house and gardaí were called to the scene.
When they got there, they discovered a man in his 30s with apparent pellet wounds to his legs.
He was taken to Tallaght Hospital for treatment, where his injuries are not thought to be life threatening.
No arrests have been made and gardaí are appealing for witnesses.
Anyone with information is asked to contact Tallaght Garda Station or the garda confidential line on 1800 666 111.
READ MORE
Gardaí questioning man, 27, after body of boy found in Limerick


CONTAINS()
CONTAINS(text, search, returnIndex) → match
Check whether the string search is contained in the string text.
The string matching performed by CONTAINS is case-sensitive.
- text (string): the haystack
- search (string): the needle
- returnIndex (bool, optional): if set to true, the character position
of the match is returned instead of a boolean. The default is false.
The default is false.
- returns match (bool|number): by default, true is returned if search
is contained in text, and false otherwise. With returnIndex set to true,
the position of the first occurrence of search within text is returned
(starting at offset 0), or -1 if search is not contained in text.
CONTAINS("foobarbaz", "bar") // true
CONTAINS("foobarbaz", "horse") // false
CONTAINS("foobarbaz", "ba", true) // 3
CONTAINS("foobarbaz", "horse", true) // -1
To determine if or at which position a value is included in an array, see the
POSITION() array function.


Shuhbang
Stop looking ahead.
focus on today
Start Now
Sign in
Username:
Password:
Sign in
Username:
Password:
Email:
Register


|
|||||||||
| PREV NEXT | FRAMES NO FRAMES |
| Deprecated Fields | |
|---|---|
| android.support.v4.widget.CursorAdapter.FLAG_AUTO_REQUERY
This option is discouraged, as it results in Cursor queries being performed on the application's UI thread and thus can cause poor responsiveness or even Application Not Responding errors. As an alternative, use android.app.LoaderManager with a android.content.CursorLoader . |
|
| android.support.v4.app.NotificationCompat.FLAG_HIGH_PRIORITY
Use NotificationCompat.Builder.setPriority(int) with a positive value. |
| Deprecated Constructors | |
|---|---|
| android.support.v4.view.accessibility.AccessibilityRecordCompat(Object)
This is not type safe. If you want to modify an AccessibilityEvent 's properties defined in
android.view.accessibility.AccessibilityRecord use
AccessibilityEventCompat.asRecord(AccessibilityEvent) . This method will be removed
in a subsequent release of the support library. |
|
| android.support.v4.widget.CursorAdapter(Context, Cursor)
This option is discouraged, as it results in Cursor queries being performed on the application's UI thread and thus can cause poor responsiveness or even Application Not Responding errors. As an alternative, use android.app.LoaderManager with a android.content.CursorLoader . |
|
| android.support.v4.widget.ResourceCursorAdapter(Context, int, Cursor)
This option is discouraged, as it results in Cursor queries being performed on the application's UI thread and thus can cause poor responsiveness or even Application Not Responding errors. As an alternative, use android.app.LoaderManager with a android.content.CursorLoader . |
|
| android.support.v4.widget.SimpleCursorAdapter(Context, int, Cursor, String[], int[])
This option is discouraged, as it results in Cursor queries being performed on the application's UI thread and thus can cause poor responsiveness or even Application Not Responding errors. As an alternative, use android.app.LoaderManager with a android.content.CursorLoader . |
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES |