module Scanning: sig .. end
type in_channel;
Scanf
module:
those channels provide all the machinery necessary to read from a given
Pervasives.in_channel
value.
A Scanf.Scanning.in_channel
value is also called a formatted input
channel or equivalently a scanning buffer.
The type scanbuf
below is an alias for in_channel
.type scanbuf = in_channel;
Note: a scanning action may often require to examine one character in
advance; when this 'lookahead' character does not belong to the token
read, it is stored back in the scanning buffer and becomes the next
character yet to be read.
let stdin: in_channel;
Scanf
module.
Scanning.stdin
is the formatted input channel attached to
Pervasives.stdin
.
Note: in the interactive system, when input is read from stdin
, the
newline character that triggers the evaluation is incorporated in the
input; thus, the scanning specifications must properly skip this
additional newline character (for instance, simply add a '\n'
as the
last character of the format string).
Since 3.12.0
type file_name = string;
let open_in: file_name => in_channel;
Scanning.open_in fname
returns a formatted input channel for bufferized
reading in text mode from file fname
.
Note:
open_in
returns a formatted input channel that efficiently reads
characters in large chunks; in contrast, from_channel
below returns
formatted input channels that must read one character at a time, leading
to a much slower scanning rate.
Since 3.12.0
let open_in_bin: file_name => in_channel;
Scanning.open_in_bin fname
returns a formatted input channel for
bufferized reading in binary mode from file fname
.let close_in: in_channel => unit;
Pervasives.in_channel
associated with the given
Scanning.in_channel
formatted input channel.let from_file: file_name => in_channel;
open_in
above.let from_file_bin: string => in_channel;
open_in_bin
above.let from_string: string => in_channel;
Scanning.from_string s
returns a formatted input channel which reads
from the given string.
Reading starts from the first character in the string.
The end-of-input condition is set when the end of the string is reached.let from_function: (unit => char) => in_channel;
Scanning.from_function f
returns a formatted input channel with the
given function as its reading method.
When scanning needs one more character, the given function is called.
When the function has no more character to provide, it must signal an
end-of-input condition by raising the exception End_of_file
.
let from_channel: Pervasives.in_channel => in_channel;
Scanning.from_channel ic
returns a formatted input channel which reads
from the regular input channel ic
argument, starting at the current
reading position.let end_of_input: in_channel => bool;
Scanning.end_of_input ic
tests the end-of-input condition of the given
formatted input channel.let beginning_of_input: in_channel => bool;
Scanning.beginning_of_input ic
tests the beginning of input condition of
the given formatted input channel.let name_of_input: in_channel => string;
Scanning.name_of_input ic
returns the name of the character source
for the formatted input channel ic
.let stdib: in_channel;
Scanning.stdin
, the scanning buffer reading from
Pervasives.stdin
.


# Archiver v0.8.1 [![Build Status](https://travis-ci.org/ctalkington/node-archiver.svg?branch=master)](https://travis-ci.org/ctalkington/node-archiver)
Creates Archives (Zip, Tar) via Node Streams.
[![NPM](https://nodei.co/npm/archiver.png)](https://nodei.co/npm/archiver/)
## Install
`bash
npm install archiver --save
`
You can also use npm install https://github.com/ctalkington/node-archiver/archive/master.tar.gz to test upcoming versions.
## Archiver
#### create(format, options)
Creates an Archiver instance based on the format (zip, tar, etc) passed. Parameters can be passed directly to Archiver constructor for convenience.
#### registerFormat(format, module)
Registers an archive format. Format modules are essentially transform streams with a few required methods. They will be further documented once a formal spec is in place.
### Instance Methods
Inherits [Transform Stream](http://nodejs.org/api/stream.html#stream_class_stream_transform) methods.
#### append(input, data)
Appends an input source (text string, buffer, or stream) to the instance. When the instance has received, processed, and emitted the input, the entry event is fired.
Replaced #addFile in v0.5.
`js
archive.append('string', { name:'string.txt' });
archive.append(new Buffer('string'), { name:'buffer.txt' });
archive.append(fs.createReadStream('mydir/file.txt'), { name:'stream.txt' });
`
#### bulk(mappings)
Appends multiple entries from passed array of src-dest mappings, based on [Grunt’s “Files Array” format](http://gruntjs.com/configuring-tasks#files-array-format). A lazystream wrapper is used to prevent issues with open file limits.
[Globbing patterns](http://gruntjs.com/configuring-tasks#globbing-patterns) and [multiple properties](http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically) are supported through use of the [file-utils](https://github.com/SBoudrias/file-utils) package, based on Grunt’s file utilities. Please note that multiple src files to single dest file (ie concat) is not supported.
The data property can be set (per src-dest mapping) to define data for matched entries.
{ src: [‘mydir/‘], data: { date: new Date() } }, { expand: true, cwd: ‘mydir’, src: [‘‘], dest: ‘newdir’ }
]);¶
#### file(filepath, data)
Appends a file given its filepath. Uses a lazystream wrapper to prevent issues with open file limits. When the instance has received, processed, and emitted the file, the entry event is fired.
`js
archive.file('mydir/file.txt', { name:'file.txt' });
`
#### finalize()
Finalizes the instance. You should listen for the end/close/finish of the destination stream to properly detect completion.
#### pointer()
Returns the current byte length emitted by archiver. Use this in your end callback to log generated size.
## Events
Inherits [Transform Stream](http://nodejs.org/api/stream.html#stream_class_stream_transform) events.
#### entry
Fired when the input has been received, processed, and emitted. Passes entry data as first argument.
## Zip
### Options
#### comment string
Sets the zip comment.
#### forceUTC boolean
If true, forces the entry date to UTC. Helps with testing across timezones.
#### store boolean
If true, all entry contents will be archived without compression by default.
#### zlib object
Passed to node’s [zlib](http://nodejs.org/api/zlib.html#zlib_options) module to control compression. Options may vary by node version.
### Entry Data
#### name string required
Sets the entry name including internal path.
#### date string|Date
Sets the entry date. This can be any valid date string or instance. Defaults to current time in locale.
#### store boolean
If true, entry contents will be archived without compression.
#### comment string
Sets the entry comment.
#### mode number
Sets the entry permissions. (experimental)
## Tar
### Options
#### recordSize number
Sets the size (in bytes) of each record in a block, default is 512 (for advanced users only).
#### recordsPerBlock number
Sets the number of records in a block, default is 20 (for advanced users only).
#### gzip boolean
Compresses the tar archive using gzip, default is false.
#### gzipOptions object
Passed to node’s [zlib](http://nodejs.org/api/zlib.html#zlib_options) module to control compression. Options may vary by node version.
### Entry Data
#### name string required
Sets the entry name including internal path.
#### date string|Date
Sets the entry date. This can be any valid date string or instance. Defaults to current time in locale.
#### mode number
Sets the entry permissions. Defaults to octal 0664.
## Things of Interest
- [Examples](https://github.com/ctalkington/node-archiver/blob/master/examples)
- [Changelog](https://github.com/ctalkington/node-archiver/releases)
- [Archive Formats](https://github.com/ctalkington/node-archiver/blob/master/formats)
- [Contributing](https://github.com/ctalkington/node-archiver/blob/master/CONTRIBUTING.md)
- [MIT License](https://github.com/ctalkington/node-archiver/blob/master/LICENSE-MIT)
## Credits
Concept inspired by Antoine van Wel’s [node-zipstream](https://github.com/wellawaretech/node-zipstream).
Tar inspired by isaacs’s [node-tar](https://github.com/isaacs/node-tar).


Cancel
The Name of the New Channel
Create Channel
Create a New Channel
Default Channel
Click on a Channel
send a message to the channel
Send


Wayne, Alberta
Last Chance Saloon
This ghost town's watering hole has bullet holes and plenty of stories lurking within its walls.
by jennamnemonicLocated in the ghost town of Wayne, Alberta, the Last Chance Saloon has been the stuff of local legend for over a century.
Favorite tales about the saloon include the time a bartender fired a few warning shots at customers who refused to pay for their drinks; those bullet holes are now framed on the wall. There’s also the story of the owner’s horse, Tinkerbell, who was a regular “long” face at the bar until local health inspectors banned the popular equine customer. In the 1970s, the bar’s owner successfully lobbied for allowing dancing in taverns, something that had been banned in Alberta.
Wayne has its own fascinating history. Part of the Drumheller Valley’s coal boom in the early 20th century, the town was one of many in the area that attracted thousands of workers to the coal mines, including the nearby Rosedeer Mine (the Rosedeer Hotel adjoining the saloon is named in its honor). The work was dangerous, and living conditions were poor for the local miners, which led to the establishment of miners’ unions. Violence—both as part of anti-union intimidation tactics and simply between overworked, intoxicated miners—abounded in the valley. The Last Chance Saloon was no exception: The bar’s nickname in the 1920s was the “Bucket of Blood.” The Rosedeer Hotel’s third floor is even rumored to be haunted by a former pro-union coal miner.
After the mines shut down in the 1950s, the town’s population dwindled from 2,000 to fewer than 300 residents. Today, the population hovers around 30 remaining residents. But the Last Chance Saloon still stands, serving locals and visitors with beer, burgers, and a side of history.
Know Before You Go
To reach the town from Drumheller, you must drive over 9 of the famed "11 Bridges of Wayne," a series of single-lane bridges criss-crossing the Rosebud River.
Community Discussion
-
No Comments Yet
Start the discussion. forum Visit our forums.
Sources
- http://history.alberta.ca/energyheritage/coal/reinvention-1950-onwards/the-decline-of-albertas-mining-communities/the-fate-of-east-coulee-and-atlas-coal-mine.aspx
- https://traveldrumheller.com/daytrips/heritage-ghosts-folklore/
- https://briarpatchmagazine.com/articles/view/remembering-the-1919-drumheller-strike
- https://traveldrumheller.com/attractions/11-bridges-of-wayne/


|
|
Validate GSA Kerberos Configuraton
This utility validates various GSA-related kerberos infrastructure and configuration options for Secure Serving. Please run this script on any windows system that has the MIT Kerberos client installed. It is assumed the user ran through the GSA Kerberos Setup. This script also tests the IE version and Zone settings for the current user. Additional Kerberos Troubleshooting link on the GSA: |


Description of the Problem
https://www.lintcode.com/problem/singleton/description
204. Singleton Singleton is a most widely used design pattern. If a class has and only has one instance at every moment, we call this design as singleton. For example, for class Mouse (not a animal mouse), we should design it in singleton. You job is to implement a getInstance method for given class, return the same instance of this class every time you call this method. Example In Java: A a = A.getInstance(); A b = A.getInstance(); a should equal to b. Challenge If we call getInstance concurrently, can you make sure your code could run correctly?
Idea to solve the problem
Design pattern/Concurrency
My codes
class Solution {
private static Solution single = null;
/**
* @return: The same instance of this class every time
*/
// Total runtime 151 ms. Your submission beats 100.00% Submissions!
public static Solution getInstance() {
if ( single == null ) {
synchronized (Solution.class) {
if ( single == null ) {
single = new Solution();
}
}
}
return single;
}
};


Title
Organization
Occurrences
Type
Source
Created
Modified
{{#datasets}}
{{title}}
{{organization}}
{{occurrenceCount}}
{{type}}
{{installation}}
{{created}}
{{modified}}
{{/datasets}}


{% extends 'base.html' %} {% load static %} {% block stylesheet %} {% endblock %} {% block breadcrumb %}
The RRSM portal allows users to query earthquake information, peak ground motion parameters, response spectral amplitudes and to select and download earthquake waveforms within minutes after an earthquake with magnitude ≥ 3.5 occurring in the European-Mediterranean region. Earthquake information is provided by the EMSC and all on-scale seismic waveform data available from ORFEUS EIDA is considered for fully automated processing. Realtime RRSM processing started in June 2014. Offline reprocessing was carried out for all M ≥ 4.5 events that occurred since January 2005, and all M ≥ 3.5 events since January 2012.
The RRSM is the first European system that delivers strong motion products close to realtime for earthquake scientists and earthquake engineers.
Key features of the RRSM:
The RRSM is significantly different from traditional dissemination systems of strong motion earthquake data in Europe, which have been characterised for decades by (large) delays in availability of reviewed, processed data. The RRSM concept reflects the current status in seismic monitoring where data users require rapid access to raw waveform data and metadata and do not necessarily rely on delayed processed waveforms.
With this background, the RRSM is particularly targeted towards rapid data access for:
Raw waveform data and basic station information are available from the European Integrated waveform Data Archive (EIDA). The ORFEUS Data Center (ODC) is a primary EIDA node.
The RRSM database is populated via a strong motion processing module "scwfparam" which is integrated in SeisComP3 (SC3).
The RRSM "scwfparam" processing is triggered by an earthquake alert dissemination by the EMSC. These alerts are typically available 5-20 minutes after earthquake origin time.
Earthquake data is being processed if it meets the following criteria:
Waveform data are collected from seismic stations within magnitude dependent maximum epicentral distance. The length of the requested time windows as well as the corner frequencies of the filter depend also on the magnitude:
| Magnitude | Stations within | Filter frequencies | Requested time window |
|---|---|---|---|
| ≥ 3.5 | 100 km | 0.3 Hz - 0.8 * Nyquist | 70 s |
| ≥ 4.0 | 125 km | 0.3 Hz - 0.8 * Nyquist | 85 s |
| ≥ 4.5 | 150 km | 0.3 Hz - 0.8 * Nyquist | 100 s |
| ≥ 5.0 | 175 km | 0.2 Hz - 0.8 * Nyquist | 115 s |
| ≥ 5.5 | 200 km | 0.2 Hz - 0.8 * Nyquist | 125 s |
| ≥ 6.0 | 225 km | 0.2 Hz - 0.8 * Nyquist | 140 s |
| ≥ 6.5 | 250 km | 0.1 Hz - 0.8 * Nyquist | 155 s |
| ≥ 7.0 | 300 km | 0.05 Hz - 0.8 * Nyquist | 175 s |
| ≥ 7.5 | 400 km | 0.05 Hz - 0.8 * Nyquist | 205 s |
Disclaimer: Spectral ordinates computed at frequencies lower than the low-cut should not be used. Please see Akkar and Bommer (2006) for more details.
Each earthquake is reprocessed after some time to ensure all available data in EIDA to be included. Current scheduling is:
The database is filled with data since January 1st, 2005.
Only the stations and streams that match the RRSM quality criteria are show in this interface. For instance, tables and charts only display data within certain limits:
The user interface allows users to access both raw waveform data and peak ground-motion values as well as response spectral ordinates of engineering interest.
The RRSM Interface supports following request types:
After submitting the search criteria, the earthquakes/waveforms are shown in the Results page. From there, the user can navigate through the Event detail page and/or the Station detail page.
Peak ground-motion values are shown on all page levels. The interface provides plots of peak amplitude versus distance for a selected earthquake, and response spectra for selected stations. In addition, the user can select a set of events/stations/streams to download raw waveforms using standard FDSN EIDA webservices.
The information provided by this portal has been automatically processed and it is intended only for research usage. The results are NOT reviewed by a seismologist. ORFEUS declines any responsibility from any improper use of the information therein represented.
All waveform data within the RRSM are subject to the EIDA disclaimer (http://orfeus-eu.org/data/eida/acknowledgements/).
The RRSM interface was designed and implemented by ORFEUS Data Center (ODC) and ETH Zurich, using funding from NERA and SERA. The waveform processing tool "scwfparam" within SeisComP3 was designed by ETH Zurich and implemented by Gempa GmBH. Funding for "scwfparam" development came from ETH Zurich, GNS New Zealand and Geoscience Australia. Details on "scwfparam" processing options can be found here.
SeisComP3 is an earthquake monitoring software developed by GFZ Potsdam and Gempa GmbH, largely used in Europe and worldwide.
The data user is kindly requested to provide proper reference to the data suppliers: http://orfeus-eu.org/eida/eida_acknowledgement.html
Where appropriate, citing the RRSM reference journal article is appreciated: https://pubs.geoscienceworld.org/ssa/srl/article/87/4/977/314137/Introducing-the-European-Rapid-Raw-Strong-Motion
Mini-SEED data can be read in Matlab by means of a variety of scripts prepared by Matlab users and available on the Web. One example is the miniSeedToolbox, that uses the IRIS libmseed library to read and write Mini-SEED formatted files in Matlab. If Matlab and the miniSeedToolbox are properly installed on your computer, this sample script can be used as a starting point for reading and displaying Mini-SEED data files.
A powerful tool for Mini-SEED data visualisation and basic processing is PQLII, free software available from IRIS Passcal. Further, the reader is invited to evaluate the variety of free software resources provided by Passcal here.
Other free software tools that can deal with Mini-SEED are Geopsy and Obspy.
As to data conversion, the reader is referred to the exhaustive list of tools provided by ORFEUS and IRIS. This list includes software packages for conversion from Mini-SEED to ascii and SAC, the standard package for seismic data processing in many regions, in particular the US.
In particular, rdseed
can be used to convert SEED volumes into SAC compatible data.
As exhaustively documented in the rdseed manual, several options can be used when reading SEED volumes. In particular, the
-d read data from tape
option can be used to read the waveforms from full SEED data and subsequently convert into different formats:
-o specify output format (1=SAC, 2=AH, 3=CSS, 4=miniSEED, 5=SEED [default=1])
When Mini-SEED data are used, the user should specify that station configuration and responses be taken from another SEED volume, for example a data-less SEED volume. The environment variable ALT_RESPONSE_FILE should be defined with its value being the path name of the SEED volume (be it full or data-less SEED) from which responses should be taken. If Mini-SEED is being used, enter the Mini-SEED file name into the rdseed prompt as you would a normal seed volume, as following:
rdseed -d -f yourminiseedfile -o 1 -g yourdatalessfile
The following files can be used as 'fake' data-less for rapid conversion into sac:
The user should modify the station and network name using e.g. PDCC.
Users might be interested in processing waveform data with start and end time that exactly match the start / end time of the requested time windows. Time sichronisation tipically does not occur automatically because - as SEED format is block-oriented - it is possible to have incomplete blocks in the waveforms retrieved from ArcLink.
One possibility is to sychronise the waveforms later in SAC, using the SYNCHRONIZE command.
Another possibility is to fill in the incomplete blocks with padding, so that the data starts and ends as close as possible to the specified time. qmerge for example has an option -T: Exact trim -- trim data to closest specified time. Default is to trim to nearest inclusive block boundary.
Other websites related to the RRSM Interface.
European Station Book interface: http://orfeus-eu.org/stationbook/
Engineering Strong Motion (ESM) interface: https://esm-db.eu
NERA project: http://nera-eu.org/
SERA project: http://sera-eu.org/
EIDA data access: http://orfeus-eu.org/data/eida/
SeisComP3 scwfparam module: https://docs.gempa.de/seiscomp3/current/apps/scwfparam.html
SeismicPortal: http://seismicportal.eu/


Country : Jordan
City : Amman
Address, zip : Al-Yasmeen Suburb, Arafat Street, Al-Sarkhi Complex, 1st floor,
Country : Jordan
City : Amman
Address, zip : Al-Yasmeen Suburb, Arafat Street, Al-Sarkhi Complex, 1st floor,
phone : +962787273909
phone : +962787652297
email : talalwissam5@gmail.com


We pride ourselves on offering affordable dance lessons taught by professional instructors. They are unmatched in their dance education expertise as well as their national and international championship performance skills. With more than five affiliate instructors, we have a good match for you.
We promote and expand ballroom dance opportunities for beginner and experienced dancers through:
Affordable Group Classes for Newcomers and Beginners (and dancers that want to refine their foundational technique).
Beyond Basics Classes for dancers that are ready to take the next step in their dance education.
Party Dances Monthly social events where everyone at any skill level can meet and enjoy dancing together. See our calendar section for more information.
Formal Dances Elegant evenings of dinner, live music and dancing (of course). See our calendar section for more information.
Workshops Workshops designed to enhance technique and add a few new steps and learning amalgamations (putting steps together).
Showcase Annual event for dancers to perform and receive feedback from professional instructors and adjudicators.
Check out our upcoming events, plan your month of dance, and get connected to the most exciting dance events. Professional instructors and lessons in Southwest Florida.
Below you will find information about upcoming events, calendar of all activities, information about local dance resources, how to contact us and more!
At Southwest Florida USA Dance, we value the skill and expertise of professional instructors. Because we utilize a pool of local professional instructors, when you are ready for private lessons you will have the experience to choose an instructor that best fits your needs and teaching style.
Below are professional instructors and local dance venues that provide private lessons to complement our events and classes.


|
GPGPU-Sim
|
#include <arbiter.hpp>
Classes | |
| struct | entry_t |
Public Member Functions | |
| Arbiter (Module *parent, const string &name, int size) | |
| virtual void | PrintState () const =0 |
| virtual void | AddRequest (int input, int id, int pri) |
| virtual void | UpdateState ()=0 |
| virtual int | Arbitrate (int *id=0, int *pri=0) |
| virtual void | Clear () |
| int | LastWinner () const |
| Public Member Functions inherited from Module | |
| Module (Module *parent, const string &name) | |
| virtual | ~Module () |
| const string & | Name () const |
| const string & | FullName () const |
| void | DisplayHierarchy (int level=0, ostream &os=cout) const |
| void | Error (const string &msg) const |
| void | Debug (const string &msg) const |
| virtual void | Display (ostream &os=cout) const |
Static Public Member Functions | |
| static Arbiter * | NewArbiter (Module *parent, const string &name, const string &arb_type, int size) |
Public Attributes | |
| int | _num_reqs |
Protected Attributes | |
| vector< entry_t > | _request |
| int | _size |
| int | _selected |
| int | _highest_pri |
| int | _best_input |
Additional Inherited Members | |
| Protected Member Functions inherited from Module | |
| void | _AddChild (Module *child) |
Definition at line 41 of file arbiter.hpp.
Definition at line 44 of file arbiter.cpp.
Reimplemented in MatrixArbiter, TreeArbiter, and RoundRobinArbiter.
Definition at line 54 of file arbiter.cpp.
Reimplemented in MatrixArbiter, TreeArbiter, and RoundRobinArbiter.
Definition at line 65 of file arbiter.cpp.
|
virtual |
Reimplemented in MatrixArbiter, TreeArbiter, and RoundRobinArbiter.
Definition at line 79 of file arbiter.cpp.
|
inline |
Definition at line 78 of file arbiter.hpp.
|
static |
Definition at line 91 of file arbiter.cpp.
|
pure virtual |
Implemented in MatrixArbiter, TreeArbiter, and RoundRobinArbiter.
|
pure virtual |
Implemented in MatrixArbiter, TreeArbiter, and RoundRobinArbiter.
|
protected |
Definition at line 56 of file arbiter.hpp.
|
protected |
Definition at line 55 of file arbiter.hpp.
| int Arbiter::_num_reqs |
Definition at line 59 of file arbiter.hpp.
|
protected |
Definition at line 51 of file arbiter.hpp.
|
protected |
Definition at line 54 of file arbiter.hpp.
|
protected |
Definition at line 52 of file arbiter.hpp.


- packetID() - Method in class lx4p.LXDNSReplyRecord
-
Reply records may belong to the question, answer, authority, or additional sections of the message.
- packetPriorty() - Method in class lx4p.LXSACN
-
packet priority
- params2json(String, String, String, String) - Method in class lx4p.LXHueInterface
-
params2json assembles a JSON String from individual parameters to pass to setLight
- params2json(boolean, int, int, int) - Method in class lx4p.LXHueInterface
-
params2json assembles a JSON String from individual parameters to pass to setLight
- parent - Variable in class lx4p.LXJSONElement
-
- parseArtAddress() - Method in class lx4p.LXArtNet
-
parses and ArtAddress type packet
- parseBuffer(byte[], int) - Method in class lx4p.LXOSCPacketReader
-
This is the main outer loop for reading a message or messages
- parseDMPLayer(int, byte) - Method in class lx4p.LXSACN
-
parses and checks DMP portion of packet and extracts dmx from DMP layer
- parseFramingLayer(int) - Method in class lx4p.LXSACN
-
parses packet and checks framing layer data
- parseHeader() - Method in class lx4p.LXArtNet
-
utility for testing Art-Net packet header
- parseRootLayer(int) - Method in class lx4p.LXSACN
-
parses packet and checks root layer data
- parseString(String) - Method in class lx4p.LXJSONParser
-
- partOfPatternMatchesAddressString(int, String) - Method in class lx4p.LXOSCMessage
-
compare specific part of address pattern against part of an address string
- pick(PApplet) - Method in class lx4p.LXPColorPicker
-
Updates the color selected if the mouse is down inside the picker.
- pollReplyReceived(LXArtNetPollReplyInfo) - Method in interface lx4p.LXArtNetPollReplyListener
-
called when ArtPollReply is received
- portOneUniverse() - Method in class lx4p.LXArtNetPollReplyInfo
-
- print() - Method in class lx4p.LXJSONElement
-
prints the element and sub-elements, indenting to show the structure
- print(int) - Method in class lx4p.LXJSONElement
-
prints the element and sub-elements, indenting to show the structure
- printError(String) - Method in class lx4p.LXmDNSDiscoverer
-
- printError(int, String) - Static method in class lx4p.LXmDNSDiscoverer
-
- printMessage(String) - Method in class lx4p.LXmDNSDiscoverer
-
- processDatagramPacket(DatagramSocket, DatagramPacket) - Method in class lx4p.LXArtNet
-
parses DatagramPacket for Art-Net content
- processDatagramPacket(DatagramSocket, DatagramPacket) - Method in class lx4p.LXSACN
-
parses DatagramPacket for sACN E1.31 content
- processMessageAt(byte[], int, int) - Method in class lx4p.LXOSCPacketReader
-
Process a number of bytes of a message (a bundle can contain more than one message in a single packet)


黒の手番です。53 はどう動かしますか？
Unlimited
pips Black=166 White=136
(CorrectAnswer= 0/0, ErrorScore= 0)
1. Bar/22 17/12 eq:+0.396 61.08% (G:18.50% B:1.08%) 38.92% (G:15.18% B:0.51%) 2. Bar/17 eq:+0.285 (-0.111) 59.64% (G:17.03% B:0.94%) 40.36% (G:18.08% B:0.42%) 3. Bar/22 18/13 eq:-0.124 (-0.520) 50.64% (G:15.11% B:1.06%) 49.36% (G:24.68% B:0.70%) 4. Bar/22 13/8 eq:-0.171 (-0.567) 49.65% (G:15.17% B:1.02%) 50.35% (G:28.87% B:1.37%) 5. Bar/22 6/1* eq:-1.000 (-1.396) 32.86% (G: 7.97% B:0.39%) 67.14% (G:42.22% B:3.33%)


2020 Presidential Election
The 2020 elections may seem far away, but the primaries are already in full swing. Who are your favorites?
Phillips Academy is a complex place. PollPA let you share your voice — and didn't take itself too seriously. Entirely student-run. As of June 11, 2019, the site has been archived into a read-only form and no new polls will be published.
Most Recent PollAnonymous
Your vote isn't tied to your account, so there is no way for anyone — even the site operators — to know how you voted. And if you don't believe us, you can read the code yourself.
Instant
The polls can be completed in seconds, and you can see the preliminary results immediately. With frequent polls, there's no need to wait weeks for answers.
Informative
With frequent all-school polls, you can get useful data about the current climate on campus — as told by the students themselves. And it's all fully transparent.
The 2020 elections may seem far away, but the primaries are already in full swing. Who are your favorites?
Finals week is around the corner. Let’s talk about work at PA.
We've all heard rumors about secret societies on campus. But how much do we really know about them?
Written by Nick Demetroulakos, this poll tries to better understand the relationship between faculty and students. The PollPA team did not write this poll.
Sign-in wasn’t always at 9:30pm (and 8pm on Sundays). Was the change effective?
Just a few days ago, seniors made their final college decisions. What are PA’s social norms around discussing them?
The administration has recently proposed discontinuing personal time. What do you think?
On Friday (April 27th), students protested after administrators removed two female students from a dance due to their clothing. What’s your take?
Graduation at PA is iconic. But how can we ensure that all students feel included?
AirPods have taken off on campus. What’s the message they send?
'Non Sibi' is a fundamental value of our school community. But how well do we live up to it?
Everyone seems to be talking about PA's room visitation policies. What's your opinion?


In a previous life I worked in a biochemistry research lab at Johns Hopkins University. Now I'm training to be a full stack web developer at Lambda Schools.
I look forward to hearing from you!


I decided to experiment with legal herbal drugs fairly recently. After much research I found several herbs which seemed to have real effects that are not just minor or placebo feelings. The one which I enjoyed the most happened to be Kratom.
I decided to buy a type of 'super kratom' powder which is supposed to have 300 mg of the active chemical per 25 grams of leaf. This concentration is signifigantly higher than the standard leaf according to my research. I attempted taking this powder by several methods in incremental doses. I started off with just a pinch in water, which was approximatly 1-2 grams and felt nothing noticable. The next attempt I used about 1.5 times as much and placed it in peanut butter. From this I only felt a minor euphoria, however at the time I attributed it to placebo effect. The most recent time I attempted to take kratom I used about 3 grams in a tea format with the leaf material still in the liquid. I followed this dose with a similar sized dose in the same method.
The experience I recieved from taking two doses of 3 grams in tea was very pleasurable. It tasted similar to green tea, which is probably due to the fact that it takes less super kratom than standard leaf for the same effects. The tea numbed my tongue and throat very slightly, furthermore, my senses numbed, as did my toes. I felt moderate euphoria and relaxation, as well as a lack of stress. Furthermore, I felt absolutely no nausea or dizziness, nor any of the itchyness associated with this herb.
I am unsure of the reason why I felt a lack of nausea and itchyness. Either the consumption of relatively small amount of powder needed to get noticable effects also means consuming less of a particular toxin, or my own biochemistry is efficient at removing or unresponsive to said toxin. My father and I are very resiliant to sickness and effects of narcotics (my father needed twice the anaesthesia for his body weight when he had a recent surgery). The aforementioned condition probably has something to do with the fact that I reacted so well to the kratom.
I plan on using kratom regularly due to the utter calm it infused within me. It would be very good to take after a hard day or in small doses to relax me before a long college assignment. If experimenting, do not start off with very much, i.e. work your way up. Though my experience may have been very good, my biochemistry and methods probably contributed to this. Since all readers will not use the same methods nor have the same biochemistry, the reader cannot assume that they will have a similar experience.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


R/utils.R
relatednessFilter.Rd
relatednessFilter
takes a data.frame with pair-wise relatedness
measures of samples and returns pairs of individual IDs that are related as
well as a list of suggested individual IDs to remove.
relatednessFilter
finds pairs of samples whose relatedness estimate
is larger than the specified relatednessTh. Subsequently, for pairs of
individual that do not have additional relatives in the dataset, the
individual with the worse otherCriterionMeasure (if provided) or arbitrarily
individual 1 of that pair is selected and returned as the individual failing
the relatedness check. For more complex family structures, the unrelated
individuals per family are selected (e.g. in a simple case of a
parents-offspring trio, the offspring will be marked as fail, while the
parents will be kept in the analysis). Selection is achieved by constructing
subgraphs of clusters of individuals that are related.
relatednessFilter
then finds the maximum independent set of vertices
in the subgraphs of related individuals. If all individuals are related (i.e.
all maximum independent sets are 0), one individual of that cluster will be
kept and all others listed as failIDs.
relatednessFilter( relatedness, otherCriterion = NULL, relatednessTh, otherCriterionTh = NULL, otherCriterionThDirection = c("gt", "ge", "lt", "le", "eq"), relatednessIID1 = "IID1", relatednessIID2 = "IID2", relatednessFID1 = NULL, relatednessFID2 = NULL, relatednessRelatedness = "PI_HAT", otherCriterionIID = "IID", otherCriterionMeasure = NULL, verbose = FALSE )
| relatedness | [data.frame] containing pair-wise relatedness estimates (in column [relatednessRelatedness]) for individual 1 (in column [relatednessIID1] and individual 2 (in column [relatednessIID1]). Columns relatednessIID1, relatednessIID2 and relatednessRelatedness have to present, while additional columns such as family IDs can be present. Default column names correspond to column names in output of plink --genome (https://www.cog-genomics.org/plink/1.9/ibd). All original columns for pair-wise highIBDTh fails will be returned in fail_IBD. |
|---|---|
| otherCriterion | [data.frame] containing a QC measure (in column [otherCriterionMeasure]) per individual (in column [otherCriterionIID]). otherCriterionMeasure and otherCriterionIID have to present, while additional columns such as family IDs can be present. IIDs in relatednessIID1 have to be present in otherCriterionIID. |
| relatednessTh | [double] Threshold for filtering related individuals. Individuals, whose pair-wise relatedness estimates are greater than this threshold are considered related. |
| otherCriterionTh | [double] Threshold for filtering individuals based on otherCriterionMeasure. If related individuals fail this threshold they will automatically be excluded. |
| otherCriterionThDirection | [character] Used to determine the direction for failing the otherCriterionTh. If 'gt', individuals whose otherCriterionMeasure > otherCriterionTh will automatically be excluded. For pairs of individuals that have no other related samples in the cohort: if both otherCriterionMeasure < otherCriterionTh, the individual with the larger otherCriterionMeasure will be excluded. |
| relatednessIID1 | [character] Column name of column containing the IDs of the first individual. |
| relatednessIID2 | [character] Column name of column containing the IDs of the second individual. |
| relatednessFID1 | [character, optional] Column name of column containing the family IDs of the first individual; if only relatednessFID1 but not relatednessFID2 provided, or none provided even though present in relatedness, FIDs will not be returned. |
| relatednessFID2 | [character, optional] Column name of column containing the family IDs of the second individual; if only relatednessFID2 but not relatednessFID1 provided, or none provided even though present in relatedness, FIDs will not be returned. |
| relatednessRelatedness | [character] Column name of column containing the relatedness estimate. |
| otherCriterionIID | [character] Column name of column containing the individual IDs. |
| otherCriterionMeasure | [character] Column name of the column containing the measure of the otherCriterion (for instance SNP missingness rate). |
| verbose | [logical] If TRUE, progress info is printed to standard out. |
named [list] with i) relatednessFails, a [data.frame] containing the data.frame relatedness after filtering for pairs of individuals in relatednessIID1 and relatednessIID2, that fail the relatedness QC; the data.frame is reordered with the fail individuals in column 1 and their related individuals in column 2 and ii) failIDs, a [data.frame] with the [IID]s (and [FID]s if provided) of the individuals that fail the relatednessTh.


Welcome to Motor Teststand SerialComm’s documentation!¶
- Author: Austin Stover
- Date: July-August 2017
- This program performs transmission and reception of serial data from the SerialComm class with the stated protocol
- Useful Links:
-
class
SerialComm.
SerialComm
(serialPort, dictLength=100)[source]¶ A Serial Communication Class to communicate with an Arduino
Parameters: - serialPort – A PySerial object
- dictLength – The max # of messages of each type to store
This class receives and transmits messages with the following protocol:
Protocol Byte number: … Description: [ Magic Number ] [ Type Identifier Key ] [ Data Payload ] [ Data Payload ] etc [ Error Check (LRC) Byte ] To Use:
- Send messages with the send…() methods
- Receive messages by putting processData() in a loop–This data will be stored in the dict variable, with a key for each message type and a deque with the messages for each key
-
dict
= None¶ A Dictionary to hold messages
Each key is a message type which holds a fixed-length deque with recent messages of that type
-
processData
(numLoops=1)[source]¶ Processes the next byte of data received; if this byte is the beginning of a message, adds the message to dict
Parameters: numLoops – The # of times to do this
-
sendMaxCurrent
(floatToSend)[source]¶ Sends the max current
Parameters: floatToSend – The max current as a floating-point # in the range of an Arduino double/float
-
sendMaxVoltage
(floatToSend)[source]¶ Sends the max voltage
Parameters: floatToSend – The max current as a floating-point # in the range of an Arduino double/float
-
sendPowerSetting
(boolToSend)[source]¶ Sends the power-setting
Parameters: boolToSend – True for on, False for off Raises: ValueError


{% if not feedback %}
Success!
Your survey has been created and is
ready to be sent to students.
{% endif %}
Your Survey Code:
{{ code }}
link to survey
{% if feedback %}
Student Feedback
Question 1: {{ question }}
{% for f in feedback %}
{{ f[0] }}
{% endfor %}
{% endif %}


Vettel admits it was tough to watch Mercedes being dominant at start of the season
by Tom MasonSebastian Vettel found it tough at the beginning of this season and he has admitted that it was difficult to watch how good a start Mercedes had to the season.
Mercedes secured both titles after being utterly dominant in the opening races of the season, winning all of the first eight races.
Only Max Verstappen away from Mercedes was able to win a race before the summer break.
"At that moment you do not give up, but you realize that you are not in the position where you want to be," Vettel told Autosport.
"You fight with yourself first, because you are too far away to fight with others or fight with Mercedes, that race after race got stronger.
"We first tried to find our shape and when we found it, we realized that we When it turned out that we were unable to reverse everything quickly, it became clear that it would be difficult during the European races."


MinePortal is the groundbreaking cloud-based intelligent platform that powers geotechnical knowhow of the rock in the mining industry for operational intelligence. Our mission is to push the envelope in Artificial Intelligence (AI), Geostatistics, Geophysical IoT sensors, Machine Learning (ML), Data Management, Automatic Blast Loading, and Signal Processing, in order to provide the best-possible blast outcomes for our customers. We’re looking for a Senior GeoStatistics Engineer to help build industry-leading analytics technologies that the world’s largest mines will adopt.
Reporting to the CTO, the Principal GeoStatistics role will include following broad responsibilities and any other assigned work from time to time.
Undertake innovative applied research and application of model based geostatistics, addressing abilities and limitations of geostatistics through innovative use of machine learning techniques. Advise and augment ML and AI capabilities to achieve best possible results to be delivered via MinePortal
Develop and implement new computational and statistical methods. Create, test, and use relevant code (R, Java, C, C++, or Python). Maintain and distribute completed software.
Evaluate and analyze Model-Mine-Mill processes and deliver quantifiable insights using existing and new sensor based data integrated with existing data from customers
Review and assess data sources in order to determine their relevance and utility for ongoing analyses. Become expert in understanding key data sources and, in particular, variations in these across and within different geologies.
Communicate with external collaborators in order to best understand the nature, key characteristics, and context of the data, engage in critiques of the analytic results, and disseminate findings.
Assess and coordinate with others on the integration of analytic methods into computational machinery and with evolving databases so that the results can be produced as part of an overall system supporting the geospatial analyses portfolio and be used in conjunction with results from other output streams of MinePortal.
Contribute and develop ideas for new research and commercially viable analytics.
PhD or master’s degree in geostatistics, statistics, mathematics, applied physics, geosciences, or a related field.
Comprehensive knowledge of programming and experience in C, C++, Matlab, Python, Golang, R, or similar language used in geostatistics.
HW Board-level debug of analog and digital CPU/MCU systems
Experience with machine learning techniques, methodology, algorithms, and applications
Proficient verbal and written communication skills necessary to effectively collaborate in a team environment and present and explain technical information.
Experience in leading teams in the research, development, and implementation of signal and image processing algorithms.
Takes initiative, independent worker
Can effectively assume an array of roles as appropropriate in various kinds of organizations. These may entail different responsibilities, forms of leadership, team work, and project management.
Ability to manage multiple concurrent major projects with different tactical and strategic objectives
Full time, Flexible working hours, 15 days/year vacation
Work from Palo Alto offices, with travel to Seattle and Client offices world wide
DataCloud is an Equal Opportunity Employer. Qualified applicants will receive consideration for employment without regard to race, color, religion, sex, age, disability, military status, or national origin or any other characteristic protected under applicable local law. The Candidate must be authorized to work in USA.
Founded in 2016, DataCloud delivers high-resolution rock mass characterization data to our clients in real-time. Our innovative measurement and analysis platform provides invaluable orebody insights during drill and blast operations. Our technologies help mine planning teams to dramatically improve their extraction efficiencies.
With our unique combination of skills in both mining and technology, DataCloud is helping to solve many of the problems that have challenged the mining industry for decades. Our founders come from institutions such as Stanford, UC-Berkeley and Cambridge, who have expertise in geosciences and cloud architecture.
Our portfolio of products and services span the latest in Geo-Statistics, Geo-Physics, and advanced digital and artificial intelligence technologies, including cloud computing, machine learning, advanced visualization, and new sensor technology enabled by IoT systems.


Current context: {{currentContext}}. Available commands:
-
menus:
Shows the available menus:
-
menu <choice>:
Open the menu of choice. The menu index can be used:
-
actions:
Show the available actions:
-
action <choice>:
Invoke the action of choice:
-
field <choice> <value>:
Fill out action parameter field of choice with value:
-
submit:
Submit action parameters:
-
show <next/previous>:
Show paginated contents of a collection. Include next or previous to switch page:
-
get <choice>:
Get the object or collection of choice. On collections the index can be used:
-
properties:
Show the available properties:
-
collections:
Show the available collections:
-
back:
-
help:
Shows this help menu:
-
quit:
Exit the application:


|
RTMHA Library
2020a
The Master Hearing Aid Algorithms for the OSP System.
|
| Cadaptive_filter | Adaptive Filter Class |
| Cafc | Adaptive Feedback Cancellation (AFC) Class |
| Carray_file | Array File Class |
| CAudioFile | |
| Cbeamformer | Beamformer Class |
| Ccircular_buffer | Circular Buffer Class |
| ▼Cfile_play | |
| Cplayfile_param_t | |
| Cfile_record | |
| Cfilter | Filter Class |
| Cfir_formii | Filter Class |
| Cfreping | Freping Class |
| CGarbageCollector | |
| ClibModule | A template for library modules |
| Cnoise_management | Noise Management Class |
| Cpeak_detect | Peak Detector Class |
| Cpolyphase_hb_downsampler | |
| Cpolyphase_hb_upsampler | |
| Cresample | Resample Class |
| Crk_sema | |
| Ctenband_filterbank | The Ten Band Filter bank is a 10 Band Multirate Filter Bank with its center frequencies located at 250Hz, 500Hz, 750Hz, 1kHz, 1.5kHz, 2kHz, 3kHz, 4kHz, 6kHz, 8kHz |
| Cwdrc | Wide Dynamic Range Compression (WDRC) Class |


50% cytotoxicity concentration (CC 50), 50% antiviral efficacy concentration (EC 50), and selectivity index (SI) of identified anti-CPV drugs.


Torso.behaviors.DataBehavior Class
This behavior implements simplified interaction with data sources (i.e. TorsoCollection). This behavior manages re-rendering when data changes and automatically adding the returned data to the view's context. This behavior also manages dependencies between data and other objects to allow intelligent re-fetching when data changes.
See https://tonicdev.com/torso/databehavior for more in-depth documentation and details.
Item Index
Methods
- __completeLoadingIds
- __fetchFailed
- __fetchSuccess
- __getIds
- __normalizeAndValidateIds
- __normalizeAndValidateIds
- __normalizeAndValidateIds
- __normalizeAndValidateUpdateEvents
- __parseIdsPropertyNameAndIdContainer
- __skipRetrieveOnEmptyTrackedIdsAndNewIds
- __validateCache
- _activate
- _deactivate
- _delegateUpdateEvents
- _undelegateEvents
- constructor
- fetch
- isLoading
- isLoadingIds
- isLoadingObjects
- listenToIdsPropertyChangeEvent
- prepare
- pull
- retrieve
- retrieveOncePromise
- stopListeningToIdsPropertyChangeEvent
Methods
__completeLoadingIds
()
private
Sets the loading ids property to false (loading completed).
__fetchFailed
-
[response]
Triggers a 'fetched' event with the payload { status: 'failed' } when the fetch fails.
Parameters:
-
[response]
Object optionalthe response from the server.
__fetchSuccess
-
response
Triggers a 'fetched' event with the payload { status: 'success' } when the fetch completes successfully.
__getIds
()
$.Deferred.Promise
private
Returns:
A jquery deferred promise that resolves to the ids to track in the private collection or rejects with the error message. It can also return an object that prevents object retrieval ({ skipObjectRetrieval: true }).
__normalizeAndValidateIds
()
private
Validates that the ids property is valid and if not throws an error describing why its not valid. A side effect of this method is copying id into the ids location (if id is set). Ids is what is used by the rest of the code. This is done as part of validation because we first validate that both are not set.
__normalizeAndValidateIds
()
private
Validates that the updateEventConfiguration is valid and if not throws an error describing why its not valid.
__normalizeAndValidateIds
()
private
Validates that the ids property is valid and if not throws an error describing why its not valid. A side effect of this method is copying id into the ids location (if id is set). Ids is what is used by the rest of the code. This is done as part of validation because we first validate that both are not set.
__normalizeAndValidateUpdateEvents
()
private
Validates that the updateEvents property is valid and if not throws an error describing why its not valid.
__parseIdsPropertyNameAndIdContainer
()
IdsPropertyName: String, idContainer: Object
private
Converts the definition into the actual idContainer object and property name to retrieve off of that idContainer.
Returns:
} the name of the ids property and the actual object to use as the idContainer.
__skipRetrieveOnEmptyTrackedIdsAndNewIds
-
idsResult
Skip retrieving objects if new ids list is empty and existing ids list is empty.
__validateCache
()
private
Validates that the cache property is valid and if not throws an error describing why its not valid.
_activate
()
private
Adds listeners when the view is activated.
_deactivate
()
private
Stops listening when the view is deactivated.
_delegateUpdateEvents
()
private
Removes existing listeners and adds new ones for all of the updateEvents configured.
_undelegateEvents
()
private
Removes existing event listeners.
constructor
-
[behaviorState]
-
behaviorOptions
-
[viewOptions]
Parameters:
-
[behaviorState]
Object optionalthe initial state of the behavior.
-
behaviorOptions
Object-
cache
Collectionsee cache property.
-
[renderOnFetch=false]
Boolean optionalsee renderOnFetch property.
-
[skipInitialLoad=false]
Boolean optionalsee skipInitialLoad property.
-
[returnSingleResult=false]
Boolean optionalsee returnSingleResult property.
-
[alwaysFetch=false]
Boolean optionalsee alwaysFetch property.
-
[id=behaviorOptions.ids]
String | Number | String[] | Number[] | Property: String, idContainer: Object optional|Function} see id property.
-
[ids=behaviorOptions.id]
String | Number | String[] | Number[] | Property: String, idContainer: Object optional|Function} see ids property.
-
[updateEvents]
String | String[] | Object | Object[] optionalsee updateEvents property.
-
-
[viewOptions]
Object optionaloptions passed to View's initialize
fetch
()
$.Deferred.Promise
Retrieves the ids for this data object and passes them off to the private collection's trackAndFetch() method.
Returns:
a jquery deferred promise that resolves to the retrieved models.
isLoading
()
Boolean
Determine if the behavior is loading objects or ids.
Returns:
true - the behavior is currently loading objects or ids. false - the behavior is not currently loading objects or ids.
isLoadingIds
()
Boolean
Determine if the behavior is loading ids.
Returns:
true - the behavior is currently loading ids. false - the behavior is not currently loading ids.
isLoadingObjects
()
Boolean
Determine if the behavior is loading objects.
Returns:
true - the behavior is currently loading objects. false - the behavior is not currently loading objects.
listenToIdsPropertyChangeEvent
()
Listens for the change event on the ids property and, if triggered, re-fetches the data based on the new ids.
prepare
()
Adds the toJSON of the data represented by this behavior to the context.
pull
()
$.Deferred.Promise
Retrieves the ids for this data object and passes them off to the private collection's trackAndPull() method.
Returns:
a jquery deferred promise that resolves to the retrieved models.
retrieve
()
$.Deferred.Promise
Retrieves the ids for this data object and passes them off to the private collection to track and then does a pull or a fetch based on the alwaysFetch property. (pull is default if always fetch is true then it fetches instead).
Returns:
a jquery deferred promise that resolves to the retrieved models.
retrieveOncePromise
()
jQuery.Promise
This is a good way to have something be called after at least one retrieve (pull or fetch) has completed. This is especially useful if you don't care if the fetch has already happen you just want to do something once the data is loaded.
This can also be done purely by listening for the 'fetched' event, but you might miss the event if it is fired before you start listening. This gives a structure for handling that case so that your methods are called if the event is fired and if it is not fired.
This also gives the ability to distinguish between a successful and failed fetch easily using the promises resolve/reject handlers.
Usage:
someDataBehavior.retrieveOncePromise() .then(view.doSomethingWithTheData, view.handleFiledFetch);
Returns:
that resolves when the data is successfully fetched and rejects when the fetch fails.
stopListeningToIdsPropertyChangeEvent
()
Removes the listener added by listenToIdsPropertyChangeEvent().
Properties
alwaysFetch
Boolean
Determines whether pull()
or fetch()
is called when using retrieve()
.
true - Use fetch() by default on the private collection.
false (default) - Use pull() by default on the private collection.
True will query the server more often, but will provide more up-to-date data.
False will only query the server if the model hasn't already been retrieved.
This property will be ignored if fetch()
or pull()
is called directly.
Default: false
cache
Collection
The torso collection that is acting as a cache used to create the private collections. This property/option is required. Instantiation will fail if it is not set.
data
Torso.behaviors.DataBehavior.Data
Object that manages interaction with the data. Contains the privateCollection, proxies all events from the privateCollection, and has get('...') and .toJSON() methods that access the private collection data.
FETCHED_STATUSES { SUCCESS: 'SUCCESS', FAILURE: 'FAILURE' }
Object
The possible fetched statuses. This is the status value of the fetched event payload.
ids
String | Number | String[] | Number[] | Object | Function
Duck-typed property that identifies the ids to use. id or ids is required (either by behavior options or as properties).
-
{String|Number} - the id to use directly (equivalent to an array of a single id).
-
{String[]|Number[]} - the ids to use directly.
-
{Object} - more complex configuration that identifies a model-like object that fires a change event and the property on that object to use. The object can fire the change event for the given property and have a .get('propertyName') method, or it can define the property directly on the idContainer. Only one property can be identified as supplying the id for this data model. If the identified object does not fire a change event then the id(s) will never be refreshed for this behavior. The idContainer can also fire a 'fetched:ids' event on itself to signal to this data behavior that the ids have been fetched for the first time. Then a 'change:
' event can be used to notify this data behavior that the property has been modified. - property {String} - the name of the property that defines the ids. The root object is assumed to be the view unless
idContainer is defined. The idContainer is the object that fires a change event for the given property name.
Uses the view or the idContainer as the root to get the identified property (i.e. 'viewState.', 'model.', etc).
Will get the property before the first '.' from the view and if it is an object will try to use a
.get('
') on it and set a 'change: ' listener on it. If it is a string/number or array of string/number, then it will use that as the ids. Triggering a 'id-container-updated' event on the behavior will cause it to stop listing to the old idContainer and start listening to the new one defined by this property. - idContainer {Cell|Backbone.Model|Function} - object (or a function that returns an object) that fires change
events and has a .get('propertyName') function. It isn't required to fire events -
the change event is only required if it needs to re-fetch when the id property value changes.
Examples:
- { property: '_patientId' }
- { property: 'viewState.appointmentId' }
- { property: 'model.type' }
- { property: 'behaviors.demographics.data.appointments' }
- { property: 'id', idContainer: userService }
- { property: 'username', idContainer: function() { application.getCurrentUser() } }
- property {String} - the name of the property that defines the ids. The root object is assumed to be the view unless
idContainer is defined. The idContainer is the object that fires a change event for the given property name.
Uses the view or the idContainer as the root to get the identified property (i.e. 'viewState.', 'model.', etc).
Will get the property before the first '.' from the view and if it is an object will try to use a
.get('
-
{Function(cache)} - expected to return the ids (either array, jquery deferred that resolves to the ids or single primitive) to track with the private collection. Cache is passed in as the first argument so that the behavior can be defined and the cache can be overridden later. 'this' is the behavior (from which you can get the view if needed). What was criteria should use this instead:
function(cache) { var thisBehaviorInstance = this; var view = this.view; var criteria = { ... some criteria ... }; return cache.fetchIdsByCriteria(criteria); }
renderOnFetch
Boolean
Adds a listener on the Behavior for the fetched
event that triggers a render on the view.
true - A listener is added to the behavior that re-renders the view when a 'fetched' event is triggered.
false (default) - no listeners are added.
Default: false
returnSingleResult
Boolean
Determines the result of view.getBehavior('thisBehaviorAlias').toJSON()
.
true - a single model result is returned.
false (default) - an array of model results are returned.
Default: false
skipInitialLoad
Boolean
Skip triggering a load of this data behavior when the view completes initializing. true - no load after the view is initialized. false (default) - trigger a .retrieve() on this data behavior when the view completes initialization.
Default: false
updateEvents
String | String[] | Object | Object[]
cause this behavior to re-calculate its ids and refetch them from the server if the given events are triggered (space separated if string, single item is equivalent to array of single item).
- 'view:eventName' - arbitrary event triggered on the view (eventName can be a change:propertyName event).
- 'viewState:eventName' - arbitrary event triggered on the viewState (eventName can be a change:propertyName event).
- 'model:eventName' - arbitrary even triggered on the view's model (eventName can be a change:propertyName event).
- 'this:eventName' - arbitrary event triggered by this behavior (eventName can be a change:propertyName event).
- 'behaviorAlias:eventName' - arbitrary event triggered by another data behavior on this view (eventName can be a change:propertyName event).
- 'behaviorAlias.data:eventName' - arbitrary event triggered by the data of another DataBehavior on this view (eventName can be a change:propertyName event).
- { '
': < object (or function returning an object) that the event is triggered on > } - arbitrary (' ') triggered on the supplied object.


---
layout: post
title: The Bible on Friends
date: '2009-11-25T18:22:00.005-06:00'
author: Jabell
tags:
- Affections
- Bible
- Friendship
- Christian Living
modified_time: '2010-02-20T20:26:17.993-06:00'
blogger_id: tag:blogger.com,1999:blog-19739956.post-1597387389875040319
blogger_orig_url: http://theabellsix.blogspot.com/2009/11/bible-on-friends.html
---
A friend speaks face-to-face. (Exo 33:11)
A close friend can be described as one “who is as your own soul.” (Deut 13:6)
A friend is expected to be loyal. (2 Sam 16:17)
A friend is expected to be loyal. (2 Chr 20:7)
Withholding kindness from a friend is as forsaking the fear of the Lord. (Job 6:14)
Bargaining over your friend is a bad thing. (Job 6:27)
Grieving for a friend is like lamenting one’s mother. (Psa 35:14)
A close friend is trusted, one who you eat bread with. (Psa 41:9)
A friend loves at all times. (Prov 17:17)
A friend sticks closer than a brother. (Prov 18:24)
Faithful are the wounds of a friend. (Prov 27:6)
A friend gives earnest counsel. (Prov 27:9)
A friend is not to be forsaken. (Prov 27:10)
A friend is the opposite of an enemy. (James 4:4)


{% extends "saas/base_dashboard.html" %} {% block saas_title %}Accessible by {{user}}{% endblock %} {% block saas_content %} Filter Name[[sortDir('full_name') ? sortDir('full_name') : 'sort']] Role[[sortDir('role_name') ? sortDir('role_name') : 'sort']] Loading... No profile accessible for {{user}} [[entry.profile.printable_name]] [[entry.request_key ? "requested" : entry.role_description.title]] accept remove {% include "saas/_paginator.html" %} Request access ... Add [[unregistered.full_name]] was not found. This is an opportunity to invite a manager for [[unregistered.full_name]] to join {{organization.printable_name}}. To The following invite message will be sent: Hello, I would like to request access to [[unregistered.full_name]]. Thank you, - {{request.user.first_name}} Request access {% endblock %}
[[unregistered.full_name]] was not found. This is an opportunity to invite a manager for [[unregistered.full_name]] to join {{organization.printable_name}}.


This page demonstrates audit functionality.
Using pgAdmin you can track changes made by the app. We are dealing with Items table.
Create record and have a look at CreationTime, CreatorID and TenantID.
Modify record and have a look at ModificationTime and ModifierID.
Try switching between tenants ('subdomain1' and 'subdomain2') and see that the app only pulls records which belong to current tenant.
| ID | Name | Description | ||
|---|---|---|---|---|
| {{item.id}} | {{item.name}} | {{item.description}} |


@* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import play.api.Play @import uk.gov.hmrc.http.SessionKeys @import config.AppConfig @import config.PbikContext @import config.LocalFormPartialRetriever @this(main: MainTemplate, context: PbikContext, config: AppConfig, localFormPartialRetriever: LocalFormPartialRetriever) @(pageTitle: String, taxYearRange:Option[models.TaxYearRange] = None, empref:Option[String], showYTAlink:Boolean = false, hNav: Option[views.helpers.HeaderNav] = None, sidebarLinks: Option[Html] = None, contactSupportLinkEnabled: Boolean = true, timeoutActive: Boolean = true, signedIn: Boolean = true )(mainContent: Html)(implicit request : Request[_], messages: Messages) @logout = @{ new Call("GET", config.authSignOut) } @genericLinks = { @if(signedIn) {
@messages("Service.paye.label") @empref


Dearly Departed
Deaths in Louth - Friday November 22, 2019
RIP
by Donard McCabeThe death has occurred of Georgie Becton (née Clarke) of Killalane, Balbriggan and formerly of Piltown, Co. Kilkenny and Yellowbatter, Drogheda, Co Louth
On November 20, 2019, peacefully at Our Lady of Lourdes Hospital. Georgie, pre deceased by her husband Pierce, granddaughter Ella and brother Pat.
Sadly missed by her loving son Alan, daughter Tara, son-in-law Anthony, granddaughter Alanná, brothers Shane, Noel, Al and Gerard, sisters-in-law, brothers-in-law, nephews, nieces, relatives and friends.
Reposing at Townley’s Funeral Home, Crosslanes on Friday from 5pm until 7pm.
Removal on Saturday morning at 10.30am arriving to Our Lady of Lourdes Church for Funeral Mass at 11am. Burial afterwards in St. Peter’s Cemetery.
May she rest in peace
The death has occurred of Genevieve (Genny) McGuire (née Braganza) of Shanlis, Ardee, Co. Louth
On November 21, 2019, peacefully at Our Lady of Lourdes Hospital, Drogheda surrounded by her loving family. Genny will be sadly missed by her loving husband John, daughters Michelle, Karen, Aisling and son Jonathan, 5 grandchildren Conor, Cian, Shane, Éabha, Benjamin, sisters Giovi and Nivette, sons-in-law Alan and Des, sisters-in-law, brothers-in-law, nieces, nephews, relatives, neighbours and friends.
Funeral arrangements later.
May she rest in peace
The death has occurred of Rita Molloy (née Mc Grath) of Drumnacarra, Ravensdale, Dundalk
Peacefully in the exceptional care of the staff of Moorehall Lodge, Ardee on November 21, 2019. Rita beloved wife of the late Henry James (formerly of P.J. Carrolls) much adored mother of Peter, Stephanie, John, Donal, Kenneth and Marie Thérèse, and loving granny of Joe, Sarah, Daniel, Anna, Philip, Rebecca, Keith, Colin, Dylan, Holly, Henry, Alex, and Amy Jane, and sister of the late Edmund.
Rita will be sadly missed by her sons, daughters, grandchildren, sons-in-law Adrian Ledwith and Shane O’ Boyle daughters-in-law Mary-Pat, Ann, Aoife, and Helen, nephews, nieces, relatives and friends.
Reposing at her home A91W271, from 4pm until 8pm on Friday.
Removal on Saturday to St. Mary’s Church, Ravensdale arriving for Mass at 2pm. Burial afterwards in Calvary Cemetery.
May she rest in peace


Annotations Tutorial
The problem
Sometimes it gets ugly to call all those xstream aliases/register converter methods or you might simply like the new trend on configuring pojos: java annotations.
This tutorial will show you how to use some of the annotations provided by XStream in order to make configuration easier. Let's start with a custom Message class:
package com.thoughtworks.xstream; package com.thoughtworks.xstream; public class RendezvousMessage { private int messageType; public RendezvousMessage(int messageType) { this.messageType = messageType; } }
Let's code the xstream calls which generate the xml file:
package com.thoughtworks.xstream; public class Tutorial { public static void main(String[] args) { XStream stream = new XStream(new DomDriver()); RendezvousMessage msg = new RendezvousMessage(15); System.out.println(stream.toXML(msg)); } }
Results in the following xml:
<com.thoughtworks.xstream.RendezvousMessage> <messageType>15</messageType> </com.thoughtworks.xstream.RendezvousMessage>
Aliasing annotations
The most basic annotation is the one responsible for type and field aliasing: @XStreamAlias. Let's annotate both our type and field and run the tutorial method again.
@XStreamAlias("message") class RendezvousMessage { @XStreamAlias("type") private int messageType; public RendezvousMessage(int messageType) { this.messageType = messageType; } }
In some strange way, the result is the same. What happened here? XStream does not read this annotation by default until now as it would be hard (impossible?) to unserialize the xml code. We need to tell xstream to read the annotations from this type:
public static void main(String[] args) { XStream stream = new XStream(new DomDriver()); Annotations.configureAliases(stream, RendezvousMessage.class); RendezvousMessage msg = new RendezvousMessage(15); System.out.println(stream.toXML(msg)); }
Note that we have called the configureAliases static method in the Annotations class. This method registers all aliases annotations in the xstream instance passed as first argument. This method uses the var-args technique in order to provide a faster way to register many types. The resulting xml is what we have expected:
<message> <type>15</type> </message>
Implicit collections
Let's add a List of content to our RendezvousMessage. We desire the same functionality obtained with implicit collections.
@XStreamAlias("message") class RendezvousMessage { @XStreamAlias("type") private int messageType; private List<String> content; public RendezvousMessage(int messageType, String ... content) { this.messageType = messageType; this.content = Arrays.asList(content); } }
public static void main(String[] args) { XStream stream = new XStream(new DomDriver()); Annotations.configureAliases(stream, RendezvousMessage.class); RendezvousMessage msg = new RendezvousMessage(15, "firstPart","secondPart"); System.out.println(stream.toXML(msg)); }
The resulting xml shows the collection name before its elements:
<message> <type>15</type> <content class="java.util.Arrays$ArrayList">  <string>firstPart</string> <string>secondPart</string>  </content> </message>
This is not what we desire therefore we will annotate the content list to be recalled as an implicit collection:
@XStreamAlias("message") @XStreamImplicitCollection(value="content") class RendezvousMessage { @XStreamAlias("type") private int messageType; private List<String> content; public RendezvousMessage(int messageType, String... content) { this.messageType = messageType; this.content = Arrays.asList(content); } }
Resulting in an xml which ignores the field name (content):
<message> <type>15</type>  <string>firstPart</string> <string>secondPart</string>  </message>
We are almost there... we still want to remove the 'a' tag, and define each content part with the tag 'part'. In order to do so, let's add another attribute to our implicit collection annotation. The attribute field defines the name of the tag used for data contained inside this collection:
@XStreamAlias("message") @XStreamImplicitCollection(value="content",item="part") class RendezvousMessage { @XStreamAlias("type") private int messageType; private List<String> content; public RendezvousMessage(int messageType, String... content) { this.messageType = messageType; this.content = Arrays.asList(content); } }
Resulting in a cleaner xml:
<message> <type>15</type> <part>firstPart</part> <part>secondPart</part> </message>
Custom converters
Let's create another attribute which defines the timestamp when the message was created:
@XStreamAlias("message") @XStreamImplicitCollection(value="content",item="part") class RendezvousMessage { @XStreamAlias("type") private int messageType; private List<String> content; private Calendar created = new GregorianCalendar(); public RendezvousMessage(int messageType, String... content) { this.messageType = messageType; this.content = Arrays.asList(content); } }
Resulting in the following xml:
<message> <type>15</type> <part>firstPart</part> <part>secondPart</part> <created> <time>1154097812245</time> <timezone>America/Sao_Paulo</timezone> </created> </message>
Now we face the following problem: we want to use a custom converter for this Calendar, but only for this Calendar, this exact field in this exact type. Easy... let's annotate it with the custom converter annotation:
@XStreamAlias("message") @XStreamImplicitCollection(value="content",item="part") class RendezvousMessage { @XStreamAlias("type") private int messageType; private List<String> content; @XStreamConverter(SingleValueCalendarConverter.class) private Calendar created = new GregorianCalendar(); public RendezvousMessage(int messageType, String... content) { this.messageType = messageType; this.content = Arrays.asList(content); } }
Let's create the custom converter:
public class SingleValueCalendarConverter implements Converter { public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) { Calendar calendar = (Calendar) source; writer.setValue(String.valueOf(calendar.getTime().getTime())); } public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { GregorianCalendar calendar = new GregorianCalendar(); calendar.setTime(new Date(Long.parseLong(reader.getValue()))); return calendar; } public boolean canConvert(Class type) { return type.equals(GregorianCalendar.class); } }
And we end up with the converter being used and generating the following xml:
<message> <type>15</type> <part>firstPart</part> <part>secondPart</part> <created>1154097812245</created> </message>
Note that the @XStreamConverter annotation on fields is automatically read, without the need for calling any Annotations static method. XStream can easily check for Java 1.5 support during runtime and load its parts accordingly.
Summing up
The XStream annotations support might help you configuring your class mappings in some ways, as the custom configuration will appear in your types, but might not be the solution for other problems, i.e. when you need to map the same type to two different xml 'standards'. Others might claim that the configuration should be clearly stated in a java class and not mixed with your model, its up to you to pick the best approach in your case: annotations or direct method calls to the XStream instance.