pyDRESCALk package¶
Submodules¶
pyDRESCALk.config module¶
pyDRESCALk.data_generator module¶
-
class
pyDRESCALk.data_generator.
data_generator
(args)[source]¶ Bases:
object
Generates synthetic data in distributed manner where each MPI process generates a chunk from the data parallelly. The W matrix is generated with gaussian distribution whereas the H matrix is random.
- Parameters
args (class) -- Class which comprises following attributes
fpath (str) -- Directory path of file to be stored
p_r (int) -- Count of row processor in the cartesian grid
p_c (int) -- Count of column processor in the cartesian grid
m (int) -- row dimension of the data
n (int) -- Column dimension of the data
k (int) -- Feature count
-
determine_block_index_range_asymm
()[source]¶ Determines the start and end indices for the Data block for each rank
-
dist_fromfunction
(func, shape, pgrid, *args, unravel_index=<function unravel_index>, **kwargs)[source]¶ produces X_{i,j} = func(i,j) in a distributed manner, so that each processor has an array_split section of X according to the grid.
-
gauss_matrix_generator
(n, k, axis=0)[source]¶ Construct a matrix of dimensions n by k where the ith column is a Gaussian kernel corresponding to approximately N(i*n/k, 0.01*n^2)
- Parameters
n (int) -- the ambient space dimension
k (int) -- the latent space diemnsion
- Returns
W -- A matrix with Gaussian kernel columns of size n x k.
- Return type
ndarray
pyDRESCALk.data_io module¶
-
class
pyDRESCALk.data_io.
data_read
(args)[source]¶ Bases:
object
Class for reading data.
- Parameters
args (class) -- Class which comprises following attributes
fpath (str) -- Directory path of file to be read
pgrid (tuple) -- Cartesian grid configuration
ftype (str) -- Type of data to read(mat/npy/csv/folder)
fname (str) -- Name of the file to read
comm (object) -- comm object for distributed read
-
data_partition
()[source]¶ This function divides the input matrix into chunks as specified by grid configuration.
Return n array of shape (nrows_i, ncols_i) where i is the index of each chunk. Sum_i^n ( nrows_i * ncols_i ) = arr.size
If arr is a 2D array, the returned array should look like n subblocks with each subblock preserving the "physical" layout of arr.
-
class
pyDRESCALk.data_io.
data_write
(args)[source]¶ Bases:
object
Class for writing data/results.
- Parameters
args (class) -- class which comprises following attributes
results_path (str) -- Directory path of file to write
pgrid (tuple) -- Cartesian grid configuration
ftype (str) -- Type of data to read(mat/npy/csv/folder)
comm (object) -- comm object for distributed read
pyDRESCALk.dist_clustering module¶
-
class
pyDRESCALk.dist_clustering.
custom_clustering
(Wall, Hall, params)[source]¶ Bases:
object
Greedy algorithm to approximate a quadratic assignment problem to cluster vectors. Given p groups of k vectors, construct k clusters, each cluster containing a single vector from each of the p groups. This clustering approximation uses cos distances and mean centroids.
- Parameters
A_all (ndarray) -- Order three tensor of shape m by k by p, where m is the ambient dimension of the vectors, k is the number of vectors in each group, and p is the number of groups of vectors.
R_all (ndarray) -- Order three tensor of shape n by k by p, where n is the ambient dimension of the vectors, k is the number of vectors in each group, and p is the number of groups of vectors.
params (class) -- Class object with communication parameters which comprises of grid information (p_r,p_c) , commincator (comm) and epsilon (eps).
-
dist_custom_clustering
(centroids=None, vb=0)[source]¶ Performs the distributed custom clustering
- Parameters
centroids (ndarray, optional) -- The m by k initialization of the centroids of the clusters. None corresponds to using the first slice, A_all[:,:,0], as the initial centroids. Defaults to None.
vb (bool, optional) -- Verbose to display intermediate results
- Returns
centroids (ndarray) -- The m by k centroids of the clusters
A_all (ndarray) -- Clustered organization of the vectors A_all
R_all (ndarray) -- Clustered organization of the vectors R_all
permute_order (list) -- Indices of the permuted features
-
dist_silhouettes
()[source]¶ Computes the cosine distances silhouettes of a distributed clustering of vectors.
- Returns
sils -- The k by p array of silhouettes where sils[i,j] is the silhouette measure for the vector A_all[:,i,j]
- Return type
ndarray
-
fit
()[source]¶ Calls the sub routines to perform distributed custom clustering and compute silhouettes
- Returns
centroids (ndarray) -- The m by k centroids of the clusters
CentStd (ndarray) -- Absolute deviation of the features from the centroid
A_all (ndarray) -- Clustered organization of the vectors A_all
R_all (ndarray) -- Clustered organization of the vectors R_all
S_avg (ndarray) -- mean Silhouette score
permute_order (list) -- Indices of the permuted features
pyDRESCALk.dist_comm module¶
-
class
pyDRESCALk.dist_comm.
MPI_comm
(comm, p_r, p_c)[source]¶ Bases:
object
Initialization of MPI communicator to construct the cartesian topology and sub communicators
- Parameters
comm (object) -- MPI communicator object
p_r (int) -- row processors count
p_c (int) -- column processors count
pyDRESCALk.dist_rescal module¶
-
class
pyDRESCALk.dist_rescal.
rescal_algorithms_2D
(X_ijk, A_i, A_j, R_ijk, params=None)[source]¶ Bases:
object
Performs the distributed RESCAL operation along 2D cartesian grid
- Parameters
X_ijk (ndarray) -- Distributed Data
A_ij (ndarray) -- Distributed factor A
R_ijk (ndarray) -- Distributed factor R
params (class) -- Class which comprises following attributes
params.comm1 (object) -- Global Communicator
params.comm (object) -- Modified communicator object
params.k (int) -- Rank for decomposition
params.m (int) -- Global dimensions m
params.n (int) -- Global dimensions n
params.p_r (int) -- Cartesian grid row count
params.p_c (int) -- Cartesian grid column count
params.row_comm (object) -- Sub communicator along row
params.col_comm (object) -- Sub communicator along columns
params.W_update (bool) -- flag to set W update True/False
params.norm (str) -- NMF norm to be minimized
params.method (str) -- NMF optimization method
params.eps (float) -- Epsilon value
-
Fro_MU_update
(A_update=True)[source]¶ Frobenius norm based multiplicative update of A and R parameter Function computes updated A and R parameter for each mpi rank
- Parameters
self (object) --
- Returns
self.A_i (ndarray)
self.R_ijk (ndarray)
-
column_mm
(A, B)[source]¶ Distributed matrix multiplication along column of matrix
Computes the matrix multiplication of matrix A and B along column sub communicator .. math:: AB
- Parameters
A (ndarray) --
B (ndarray) --
- Returns
AB_glob
- Return type
ndarray
-
global_gram
(A)[source]¶ Distributed gram computation
Computes the global gram operation of matrix A .. math:: A^TA
- Parameters
A (ndarray) --
- Returns
A_TA_glob
- Return type
ndarray
pyDRESCALk.main module¶
pyDRESCALk.plot_results module¶
-
pyDRESCALk.plot_results.
box_plot
(dat, respath)[source]¶ Plots the boxplot from the given data and saves the results
-
pyDRESCALk.plot_results.
plot_W
(W)[source]¶ Reads a factor and plots into subplots for each component
-
pyDRESCALk.plot_results.
plot_err
(err)[source]¶ Plots the relative error for NMF decomposition as a function of number of iterations
-
pyDRESCALk.plot_results.
plot_results
(startProcess, endProcess, stepProcess, RECON, SILL_AVG, SILL_MIN, out_put, name)[source]¶ Plots the relative error and Silhouette results for estimation of k
-
pyDRESCALk.plot_results.
plot_results_paper
(startProcess, endProcess, stepProcess, RECON, SILL_AVG, SILL_MIN, out_put, name, k=-1)[source]¶
-
pyDRESCALk.plot_results.
plot_timing_stats
(fpath, respath)[source]¶ Plots the timing stats for the MPI operation. fpath: Stats data path respath: Path to save graph
pyDRESCALk.pyDRESCAL module¶
-
class
pyDRESCALk.pyDRESCAL.
pyDRESCAL
(X_ijk, factors=None, save_factors=False, params=None)[source]¶ Bases:
object
Performs the distributed NMF decomposition of given matrix X into factors W and H
- Parameters
A_ij (ndarray) -- Distributed Data
factors (tuple) -- Distributed factors W and H
params (class) -- Class which comprises following attributes
params.init (str) -- NMF initialization(rand/nnsvd)
params.comm1 (object) -- Global Communicator
params.comm (object) -- Modified communicator object
params.k (int) -- Rank for decomposition
params.m (int) -- Global dimensions m
params.n (int) -- Global dimensions n
params.p_r (int) -- Cartesian grid row count
params.p_c (int) -- Cartesian grid column count
params.row_comm (object) -- Sub communicator along row
params.col_comm (object) -- Sub communicator along columns
params.W_update (bool) -- flag to set W update True/False
params.norm (str) -- NMF norm to be minimized
params.method (str) -- NMF optimization method
params.eps (float) -- Epsilon value
params.verbose (bool) -- Flag to enable/disable display results
params.save_factors (bool) -- Flag to enable/disable saving computed factors
-
compute_global_dim
()[source]¶ Computes global dimensions m and n from given chunk sizes for any grid configuration
-
fit
()[source]¶ Calls the sub routines to perform distributed NMF decomposition with initialization for a given norm minimization and update method
- Returns
W_i (ndarray) -- Factor W of shape m/p_r * k
H_j (ndarray) -- Factor H of shape k * n/p_c
recon_err (float) -- Reconstruction error for NMF decomposition
pyDRESCALk.pyDRESCALk module¶
-
class
pyDRESCALk.pyDRESCALk.
pyDRESCALk
(X_ijk, factors=None, params=None)[source]¶ Bases:
object
Performs the distributed RESCAL decomposition with custom clustering for estimating hidden factors k
- Parameters
A_ij (ndarray) -- Distributed Data
factors (tuple) -- Distributed factors W and H
params (class) -- Class which comprises following attributes
params.init (str) -- RESCAL initialization(rand/nnsvd)
params.comm1 (object) -- Global Communicator
params.comm (object) -- Modified communicator object
params.k (int) -- Rank for decomposition
params.m (int) -- Global dimensions m
params.n (int) -- Global dimensions n
params.p_r (int) -- Cartesian grid row count
params.p_c (int) -- Cartesian grid column count
params.row_comm (object) -- Sub communicator along row
params.col_comm (object) -- Sub communicator along columns
params.A_update (bool) -- flag to set W update True/False
params.norm (str) -- RESCAL norm to be minimized
params.method (str) -- RESCAL optimization method
params.eps (float) -- Epsilon value
params.verbose (bool) -- Flag to enable/disable display results
params.save_factors (bool) -- Flag to enable/disable saving computed factors
params.perturbations (int) -- Number of Perturbations for clustering
params.noise_var (float) -- Set noise variance for perturbing the data
params.sill_thr (float) -- Set the sillhouette threshold for estimating K with p-test
params.start_k (int) -- Starting range for Feature search K
params.end_k (int) -- Ending range for Feature search K
-
class
pyDRESCALk.pyDRESCALk.
sample
(data, noise_var, method, params, seed=None)[source]¶ Bases:
object
Generates perturbed version of data based on sampling distribution.
- Parameters
data (ndarray, sparse matrix) -- Array of which to find a perturbation.
noise_var (float) -- The perturbation amount.
method (str) -- Method for sampling (uniform/poisson)
seed (float) -- Set seed for random data generation
-
fit
()[source]¶ Calls the sub routines to perform resampling on data
- Returns
X_per -- Perturbed version of data
- Return type
ndarry
pyDRESCALk.utils module¶
-
class
pyDRESCALk.utils.
comm_timing
[source]¶ Bases:
object
Decorator class for computing timing for MPI operations. The class uses the global variables flag and time initialized in config file and updates them for each call dynamically.
- Parameters
flag (bool) -- if Set true, enables the decorator to compute the timings.
time (dict) -- Dictionary to store timing for each function calls
-
class
pyDRESCALk.utils.
data_operations
(data)[source]¶ Bases:
object
Performs various operations on the data
- Parameters
data (ndarray) -- Data to operate on
-
class
pyDRESCALk.utils.
determine_block_params
(comm, pgrid, shape)[source]¶ Bases:
object
Computes the parameters for each chunk to be read by MPI process
- Parameters
comm (object) -- MPI communicator object
pgrid (tuple) -- Cartesian grid configuration
shape (tuple) -- Data shape
-
pyDRESCALk.utils.
norm
(X, comm, norm=2, axis=None, p=-1)[source]¶ Compute the data norm
- Parameters
X (ndarray) -- Data to operate on
comm (object) -- MPI communicator object
norm (int) -- type of norm to be computed
axis (int) -- axis of array for the norm to be computed along
p (int) -- Processor count
- Returns
norm -- Norm of the given data X
- Return type
float
-
class
pyDRESCALk.utils.
parse
[source]¶ Bases:
object
Define a class parse which is used for adding attributes


?0
1
2
3
4
6
7
8
9
10
.
.
.
.
The
New
York
Copyright
reserved
Botanical
Garden
m
9
I
m
m
YO,
B
O
T
A
N
I
C
A
L
.eAROt'
UNITED
STATES
NATIONAL
HERBARIUM
$HS0f/ofl
qetwrnĠX
(her
JSMpf
1?.D.
(AJekicr,
/??/
New
York
Botanical
Garden
NEW
YORK
BOTANICAL
GARDEN
CARNEGIE
INSTITUTION
OF
WASHINGTON
UNITED
STATES
NATIONAL
MUSEUM
WEST
INDIAN
EXPLORATION
1913
ST.
JAN
N.
L.
BRITTON
J.
A.
SHAFER
?
COLLECTORS
FEBRUARY
10-12
1913
IbOSltM
1605144
Legend -
Level of confidence that token is an accurately-transcribed word
extremely low
very low
low
undetermined
medium
high
very high


| About Dailyrotten |
|
Feedback
If you like this page, hate it, or would like to suggest changes,
<EMAIL_ADDRESS>is listening. This page
is experimental and somewhat different from what we usually offer, so please
do send your feedback.
Adding Stories
If you are a rotten newshound and you would like to suggest a story,
visit our submit page to
send us the URL. Stories that are accepted will have your name credited.
Posting Comments
In order to post comments to stories, you will have to
create an account.
Accounts will generally be validated within 24 hours, and of
course will be disabled if there is abuse.
Viewership
On the first full day this page went live, 100,000 people visited this Rotten
News page. Of course that was the day after the WTC attacks, so that number is
somewhat distorted. Right now this page gets between 50,000 and 75,000 people
every day.
Linking
We encourage everyone to link to this page; if you like it, others probably
will as well.
Other Rotten
Rotten
Gaping Maw
Celebrity Morgue
Mugshots
Rotten Store
Rate My Poo
Rate My Kitten
Penny Postcards
Phallic
Boners
Home
Make Dailyrotten your start page
|
|
|
October 23, 2001
Postal Worker jailed for flinging feces
Traverse City Record-Eagle | Submitted by: Mr. Ramon
"A disgruntled United States Postal worker was jailed in lieu of $1 million
bond Thursday after former co-workers told police he attacked them with three
buckets of animal feces." Holy... shit...
|
|
Read article...
|
|
Secrets of Doctor Germ
New York Post | Submitted by: Mr Ramon
Rihab Taha, an Iraqi woman whom U.N. weapons inspectors nicknamed "Dr. Germ",
is suspected by some of having masterminded the current anthrax terror
program. "In 1995, she admitted that a secret germ factory she set up near
Baghdad had made thousands of gallons of anthrax and botulism - enough to
kill millions."
|
|
Read article...
|
|
Businesses leaving Empire State Building
BBC | Submitted by: Soylent
Some businesses in New York City's Empire State Building, at 1250 feet
the tallest in the city, have decided the edifice is too much of a target.
Already 16 of the 180 tenants have left or are leaving.
|
|
Read article...
|
|
Youth hangs Self at Halloween party
Associated Press | Submitted by: LadyC
"A 14-year-old boy trying to make his role in a haunted hayride scarier
accidentally hanged himself in front of a group of people who thought he was
acting." Why didn't anyone help? "His feet were touching the ground."
|
|
Read article...
|
|
TV Commercials from Space
Japan Times | Submitted by: Soylent
Russian cosmonauts will film a commercial in space for the strange Japanese
beverage Pocari Sweat, aboard the International Space Station.
[According to the bottle: "At work, when playing sports, after bath and when
waking up, POCARI SWEAT is the most appropriate beverage to ease one's thirst
that the body needs in the varying scenes and situations in one's life."]
|
|
Read article...
|
|
United Nations wells poisoning 75 million
Nature | Submitted by: Useless
Waterwells sunk in the 70's and 80's by UNICEF and the United Nations
Childrens Fund are poisoning 75 million citizens of Bangladesh. The nation
will likely file a class action suit in Britain alleging the British Geological
Survey knew or should have known about unsafe levels of arsenic in the wells.
"Bangladesh makes Chernobyl look like a Sunday-school picnic." It is
certainly one of the largest mass poisonings in history.
|
|
Read article...
|
|
Bioterrorist Arrested in Frankfurt
Agence France Presse | Submitted by: Soylent
A Turkish man, Harun Aydin, was arrested in Frankfurt last Wednesday
with a bio suit and a training manual for Jihad. Aydin was a member of
a group that authorities suspect "was behind an uncovered plot to crash a
plane, laden with bombs, into the mausoleum of Turkey's founder, Mustafa
Kemal Ataturk, during the country's 75th anniversary
celebrations on Oct. 29, 1998."
|
|
Read article... and
This article...
|
|
|
|
|


Set Single Trigger
Set Burst Trigger
Time between bursts
Please enter a single decimal place
Number of shots per burst
{{ timerSettingsMode.controls.timerBurstNumber.value }}
Please enter a whole number between 2 and 50
Set Bulb Exposure
Exposure Time
{{ timerSettingsMode.controls.timerBulbExposureTime.value }}
Please enter a single decimal place
Set Video Mode
Duration of the video
{{ timerSettingsMode.controls.timerVideoDuration.value }}
Please enter a single decimal place
Extension time
{{ timerSettingsMode.controls.timerVideoExtension.value }}
Please enter a single decimal place
Set Focus Only


An emerging web developer from Nashville, TN.
I'm a recent graduate of Nashville Software School seeking employment in the Nashville area. As a member of Cohort 10, I worked with a variety of full stack technologies, including AngularJS, C#, and ASP.NET MVC. I also have experience scripting in Python, Java, R, and Tcl from my previous work as research scientist in Computational and Theoretical Biophysics. Demos and source code for some of my work can be found on my Portfolio page.


File: cpswarm_msgs/GetWaypoint.srv
Raw Message Definition
geometry_msgs/Point position # The current position to compare the waypoint against.
float64 tolerance # The distance to the current waypoint below which the next waypoint of the path is selected.
---
geometry_msgs/Point point # The waypoint to navigate to.
bool valid # Whether the waypoint is valid.
Compact Message Definition


WITNESS LIST
Nominations
April 4, 2011 9:00 AM
Court of Criminal Appeals
ON:
Alcala, Elsa R. The Honorable (Self), Houston, TX
Lower Colorado River Authority
ON:
Arbuckle, James S. (Self), El Campo, TX
Caylor, Janet E. (John Franklin) (Stakeholder Committee of LCRA), Austin, TX
Franklin, John M. (Self), Burnet, TX
Johnson, Jett Jay (Self), Goldthwaite, TX
Registering, but not testifying:
On:
Harrison, Tom (John Franklin) (Self), Austin, TX
Office of Inspector General, Health and Human Services Commission
ON:
Wilson, Douglas C. (Self), Pflugerville, TX
Office of State-Federal Relations
ON:
Roy, Charles E. (Self), McKinney, TX
1


Golden Boy on DAZN: Cancio vs. Alvarado II Picks
by Luke Irwin
WBA World Junior Lightweight Championship: Andrew Cancio (c) (21-4-2) vs. Rene Alvarado (31-8)
Luke Irwin: These two tangled in December of 2015, and it ended in eighth round with a KO win over Cancio. Since then, Alvarado has reeled off a couple decent wins, but Cancio has certainly not gotten any worse. For better or worse for themselves, these two tend to go for it. Cancio via R8 TKO.
WBA World Featherweight Championship: Can Xu (c) (17-2) vs. Manny Robles III (18-0)
Luke: On paper, neither of these two have eye-popping knockout numbers, but more recently, they’ve both been finding their hands heavier. I think we get a finish, here. Robles is also 25, same as Xu, but he doesn’t have any signature wins, and yes, he was a legit secondary champion in the NABF, he’ll bounce back from this. Xu via R8 TKO.
Welterweight Bout: Eddie Gomez (23-3) vs. Rashidi Ellis (21-0)
Luke: When they met in December of 2016, Ellis put down Gomez with a first-round knockout, dropping him twice. It might not end that suddenly, but I’ve got Ellis still coming out on top. Ellis via R4 TKO.


Points layout:
None
By economic
By geo
Cirle layout:
None
By population
By gdp
By continents
Foci layout:
None
In center
By continent


Impeachment hearings highlight immigrants’ stories
by Jill Colvin And Colleen Long, The Associated PressWASHINGTON — In their testimony in the House impeachment inquiry, a number of key witnesses have chosen to highlight a common trait: Their immigrant backgrounds.
One came from northeast England. Another came from the former Soviet Union. Another was born in Canada to parents who’d fled the Soviet Union and Nazi Germany.
Several chose to share details of their families’ stories as they testified in front of Congress this week.
Former National Security Council staffer Fiona Hill, for instance, said the U.S. offered opportunities she “never would have had in England” because of her working-class accent.
And Lt. Col. Alexander Vindman said he felt compelled to enlist to repay the U.S.
Their stories serve in contrast President Donald Trump, who has often depicted immigrants as a threat to national security.
Jill Colvin And Colleen Long, The Associated Press


This sample HTML and JavaScript can be used to create links that share the current page on either Facebook, Twitter, and LinkedIn. Usage notes:
Testing this from within CodePen will likely be unsuccessful as the page's META tags are undefined.
The JavaScript function setShareLinks()
should be called after the DOM has loaded.
This function creates sharing links on any object in the HTML that has the class social-share
and the name of a social media service see above HTML for an example.
Setting the variable params
to an empty string in the JavaScript function socialWindow()
will cause these links to launch in a new window or tab rather than a pop-up.


Robot Design | The Winter Soldiers
For the Rover Ruckus challenge, we created a robot named Black Widow, which won Winning Alliance at the Rover Ruckus Super Qualifier in DeWitt, Iowa, advancing us to the State Championship. At State, we were the 4th seed alliance captain, but we were defeated in the semi-finals due to a hardware malfunction. Despite this, we won Inspire Award, advancing us to the World Championship in Detroit where we competed with 160 teams from all over the world.
A rendering of Black Widow


Highstock 4.2.7 (2016-09-21)
- Most changes listed under Highcharts 4.2.7 above also apply to Highstock 4.2.7.
- Added
Series.dataGroupInfo
to allow accessing data grouping information from the approximation function.
- Added warning on trying to update grouped point.
- Fixed #5635, regression causing background images on flags to fail.
- Fixed #5493, hidden series with data grouping caused wrong extremes on xAxis.
- Fixed #2049, flags were misplaced when using more than one column-type series.
- Fixed #3228, inputs in range selector didn't allow to view the historical data in lazy loading.
- Fixed #3961, bubble series caused JavaScript errors in Highstock.
- Fixed #3111, column series were clipped off when resizing chart during initial animation.
- Fixed #3112, compare for candlestick.
- Fixed #5231, input fields not receiving focus after showing hidden chart
- Fixed #5600, YTD button was disabled when all the data was within the same year.
- Fixed #5686,
scrollbar.minWidth
option causes misplacement for a scrollbar bar.
- Fixed #5699, column series dissapeared when added after chart initialization and using navigator.
- Fixed #5702, crosshair label's anchor was misplaced during mouse move.


The Pokedex Database - Group 67 (CoE Group)
Home
Pokemon
Pokedex
Regions
Types
Teams
Team Links
Mofify Pokemon
This page will contain a rundown of possible pokemon abilities, as well as hidden abilities if any exist.


I am a passionate and high performing architecture student searching for a part time professional development opportunity in the field of customer service and networking.
Minor in Interactive Media, 3.2 Cumulative GPA, Member of Phi Sigma Pi National Honors Fraternity, Member of Alpha Rho Chi-Professional Architecture Fraternity, UM Presidential Scholarship recipient for academic achievement-based placement in applicant pool.
5.3 GPA, Member of English Honor Society, Mu Alpha Theta, Phi Beta Chi Honor Societies, Member of Distinction in the National Forensics League, Captain of Tennis Team, State Qualifier in Tennis – Double’s.
An introduction to working in STEM related fields, focused on biomedical engineering with a project focused on studying the resistance of staph infection in a college setting. Third place winner of STEM Summer Bridge Project Competition.
Maintains constant watch and safekeeping of swimmers and divers. Prevents injuries and administers life-saving care in case of emergency. Assists in everyday maintenance tasks of pool and facilities.
Assisted facility manager in daily tasks and staff control that included but are not limited to: administering first aid, replacing staff in case of emergency, helping staff with patron conflicts, and enforcement of facility policies. Assisted with training new staff with emphasis on a strong attention to policies and communication between the staff and patrons.
Maintained collection and documentation of multimillion-dollar inventory. Consistently conducted manual inventory counts. Inputted inventory into the Jewels 3000 program. Assisted sales associates in conducting sales and communicating with clients.
Assisted head coach with drills and training of children between the ages of 5 and 12. Trained students as head coach in case of head coach absence. Trained adults in the basics as well as advance skills in the sport during weekends.
Collected and passed balls to top ranked professionals in the sport of tennis. Maintained contact with teammates through specific signals as needed in game. Rotated positions and kept constant attention on match.
Interests include tennis, fitness, domestic and international travel, consumer technology, cooking. Enjoys creating digital logos and graphics in leisure.


◆ LEDPulseFrequency()
| frc.lib.drivers.ColorSensorV3.LEDPulseFrequency.LEDPulseFrequency |
( |
int |
i | ) |
|
◆ bVal
| final byte frc.lib.drivers.ColorSensorV3.LEDPulseFrequency.bVal |
◆ kFreq100kHz
| frc.lib.drivers.ColorSensorV3.LEDPulseFrequency.kFreq100kHz =(0x38) |
◆ kFreq60kHz
| frc.lib.drivers.ColorSensorV3.LEDPulseFrequency.kFreq60kHz =(0x18) |
◆ kFreq70kHz
| frc.lib.drivers.ColorSensorV3.LEDPulseFrequency.kFreq70kHz =(0x40) |
◆ kFreq80kHz
| frc.lib.drivers.ColorSensorV3.LEDPulseFrequency.kFreq80kHz =(0x28) |
◆ kFreq90kHz
| frc.lib.drivers.ColorSensorV3.LEDPulseFrequency.kFreq90kHz =(0x30) |
The documentation for this enum was generated from the following file:


Javier Cienfuegos Jr
"Senior Computer Science & Mathematics major at Berea College."
Gerardo Soto
"Sophomore Computer Science Major & Accounting Minor at Berea College."
Mayra Macias
"Senior Applied Science & Mathematics Major, & Chemistry Minor at Berea College."
{% endblock %}


{%extends "base.html"%} {%block title%}Team{%endblock%} {%block body%}
Professor of Computer Science
University of Notre Dame
Provide Reference Virtual Cluster Platform for Community Computation Adapting Existing Middleware to SelfConfigure on Virtual Clusters
Research Professor of Physics
University of Chicago
Providing reference virtual cluster platform for community computation; community experience portal (CX); service instances (SI)
Grid Group Leader & Experiment Services
Brookhaven National Laboratory
Adapt and Enhance Provisioning Factory (Lead)
Professor of Physics
University of Notre Dame
Community Engagements (CE)
Professor of Physics
University of Chicago
Community Engagements (CE)
Associate Director High Performance Computing
University of Notre Dame
Provide Reference Virtual Cluster Platform for Community Computation (Co-Lead) Adapting Middleware (Tech Co-Lead) Service Instances (Cluster Administration and Operations)
Professor of Physics
University of Notre Dame
Adapting Middleware (Lead) Service Instances (Lead)
Senior Technology Engineer
Brookhaven National Laboratory
Lead developer of resource provisioning tools for ATLAS experiment. Maintenance of some services for the scientific community at the BNL/SDCC. Developer of tools and techniques for new workflows, software distribution, etc. within the OSG Technology Investigation project. Factory developer for VC3.
Postdoctoral Research Associate
University of Notre Dame
Kenyi Hurtado is a Postdoctoral Research Associate at the University of Notre Dame in the Physics Department. He is a Level 3 manager in the CMS submission infrastructure team and the main developer and manager of CMS Connect. In his role, he is also part of the Notre Dame Tier 3 Center software infrastructure support.
Lead Research Software Engineer
University of Notre Dame
Benjamin Tovar is a research software engineer at the University of Notre Dame. In his current role, he is the lead maintainer of CCTools, a suite of tools to quickly enable scientist the use distributed, high-throughput computing. Prior to his position at Notre Dame, he was a Post-doctoral fellow in the area of control engineering in robotics at Northwestern University, and he received a Ph.D. in Computer Science, and a master in Electrical Engineering from the University of Illinois Urbana-Champaign (2009), where he studied algorithmic modeling for robotics.
Software Engineer
University of Chicago
Suchandra Thapa is a research software engineer at the University of Chicago. He works on a variety of projects including Open Science Grid where he works on site and user support, as part of the software team.
Systems Engineer
University of Chicago
Lincoln Bryant has been a staff member at the Computation and Enrico Fermi Institutes at the University of Chicago since 2012, working with the ATLAS Midwest Tier 2 Center and the Open Science Grid. His experience has primarily been in data center operations, batch systems, distributed storage, virtualization, containerization, automation and monitoring.
Scientific Programmer
University of Chicago
Benedikt Riedel is a scientific programmer in the OSG User Support team at the University of Chicago. In this role, he maintains OSG Connect software infrastructure and supports Xenon1T, VERITAS, and SPT-3G experiments on the OSG. Prior to this position, he was a member of the IceCube experiment as a postdoctoral fellow at the University of Alberta and graduate student at the University of Wisconsin--Madison, where he earned his Ph.D. in 2014.
Web Developer
University of Chicago
With a degree in Chemistry from the University of Illinois Urbana-Champaign, and a background in music production and audio engineering, Jeremy is a multi-faceted web developer on the VC3 Project team for the Computation Institute at the University of Chicago. Outside of work and coding, he spends his free time training for long distance races from the 5k up to the half-marathon.


Preparation time
less than 30 mins
Cooking time
10 to 30 mins
Serves
Serves 4-6
Dietary
For the sorbet, roughly chop one kilogram (2lb 2oz) of the watermelon and place into a food processor with the sugar and lemon juice. Blend until smooth.
Strain through a sieve into an ice cream machine and churn until frozen.
Cut the remaining watermelon into thin wedges and set aside.
For the gulab jamun, preheat a deep fat fryer to 170C/350F.
Place the powdered milk, flour, baking powder and bicarbonate of soda into a bowl and mix to combine. Add half the cream and mix well.
Add the butter and as much of the remaining cream as necessary to form a soft and slightly sticky dough.
 Fry for 2-3 minutes until golden and cooked through.
Remove with a slotted spoon and drain on kitchen paper.
Meanwhile, make the syrup. Place the water, sugar and rosewater into a pan and bring to a boil. Reduce the heat and simmer for 1-2 minutes.
Divide the syrup between two bowls. Place the fried jamun into one of the bowls and toss to cover with the syrup. Leave to absorb the syrup for 10 minutes.
Pour the remaining syrup over the reserved watermelon slices and the strawberry quarters and leave for 10 minutes.
To serve, place several slices of watermelon in the centre of a serving plate, then scatter with some of the strawberries. Top with a few gulab jamun and a scoop of watermelon sorbet. Garnish with a sprig of fresh mint.


Rate the song
Like them all!
First!
You're the first one using this app. Make sure to add some songs to the list!
Song
{{song.artist | titleize}}
{{song.title | titleize}}
Artist
Song
Add
GO


Class PathHelper
Helpers for working with file/folder paths.
Inheritance
Namespace: Kros.IO
Assembly: Kros.Utils.dll
Syntax
public static class PathHelper
Methods
BuildPath(String[])
Joins parts parts
to one string, representing path to a file/folder.
Declaration
public static string BuildPath(params string[] parts)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | parts | Path parts. |
Returns
| Type | Description |
|---|---|
| System.String | Created path. |
Remarks
The method works similarly as standard .NET method System.IO.Path.Combine(System.String[]), with some different details:
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | The value of |
| System.ArgumentException | Any of the item in |
GetTempPath()
Returns path to system temporary folder (System.IO.Path.GetTempPath) without trailing directory separator.
Declaration
public static string GetTempPath()
Returns
| Type | Description |
|---|---|
| System.String |
IsNetworkPath(String)
Checks, if specified path
is network share path. The path is considered network share path,
if it begins with \
.
Declaration
public static bool IsNetworkPath(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | Checked path. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if |
ReplaceInvalidPathChars(String)
Replaces invalid characters in pathName
with dash (-
). If there are
several succesive invalid characters, they all are replaced only by one dash.
Declaration
public static string ReplaceInvalidPathChars(string pathName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | pathName | Input path. |
Returns
| Type | Description |
|---|---|
| System.String |
Remarks
ReplaceInvalidPathChars(String, String)
Replaces invalid characters in pathName
with replacement
. If there are
several succesive invalid characters, they all are replaced only by one replacement
.
Declaration
public static string ReplaceInvalidPathChars(string pathName, string replacement)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | pathName | Input path. |
| System.String | replacement | Value, by which are replaced invalid path charactes. If the value is null, empty stirng is used, so invalid characters are removed. |
Returns
| Type | Description |
|---|---|
| System.String | String with invalid path characters replaced. If input |
Remarks
Replaced are all characters in System.IO.Path.GetInvalidFileNameChars and System.IO.Path.GetInvalidPathChars.


class PhpBridgeSessionStorage extends NativeSessionStorage
Allows session to be started by PHP and managed by Symfony.
protected SessionBagInterface[]
|
$bags |
from NativeSessionStorage | |
protected bool
|
$started |
from NativeSessionStorage | |
protected bool
|
$closed |
from NativeSessionStorage | |
protected AbstractProxy|SessionHandlerInterface
|
$saveHandler |
from NativeSessionStorage | |
protected MetadataBag
|
$metadataBag |
from NativeSessionStorage |
public
|
|
__construct(SessionHandlerInterface|null $handler = null, MetadataBag $metaBag = null)
|
No description | |
public
|
AbstractProxy|SessionHandlerInterface |
getSaveHandler()
|
Gets the save handler instance. | from NativeSessionStorage |
public
|
bool |
start()
|
Starts the session. | |
public
|
string |
getId()
|
Returns the session ID. | from NativeSessionStorage |
public
|
|
setId(string $id)
|
Sets the session ID. | from NativeSessionStorage |
public
|
mixed |
getName()
|
Returns the session name. | from NativeSessionStorage |
public
|
|
setName(string $name)
|
Sets the session name. | from NativeSessionStorage |
public
|
bool |
regenerate(bool $destroy = false, int $lifetime = null)
|
Regenerates id that represents this storage. | from NativeSessionStorage |
public
|
|
save()
|
Force the session to be saved and closed. | from NativeSessionStorage |
public
|
|
clear()
|
Clear all session data in memory. | |
public
|
|
registerBag(SessionBagInterface $bag)
|
Registers a SessionBagInterface for use. | from NativeSessionStorage |
public
|
SessionBagInterface |
getBag(string $name)
|
Gets a SessionBagInterface by name. | from NativeSessionStorage |
public
|
|
setMetadataBag(MetadataBag $metaBag = null)
|
No description | from NativeSessionStorage |
public
|
MetadataBag |
getMetadataBag()
|
Gets the MetadataBag. | from NativeSessionStorage |
public
|
bool |
isStarted()
|
Checks if the session is started. | from NativeSessionStorage |
public
|
|
setOptions(array $options)
|
Sets session.* ini variables. | from NativeSessionStorage |
public
|
|
setSaveHandler(SessionHandlerInterface|null $saveHandler = null)
|
Registers session save handler as a PHP session handler. | from NativeSessionStorage |
protected
|
|
loadSession(array $session = null)
|
Load the session with attributes. | from NativeSessionStorage |
__construct()
public __construct(SessionHandlerInterface|null $handler = null, MetadataBag $metaBag = null)
SessionHandlerInterface|null |
$handler |
|
MetadataBag |
$metaBag |
MetadataBag |
getSaveHandler()
public AbstractProxy|SessionHandlerInterface getSaveHandler()
start()
public bool start()
Starts the session.
bool |
True if started |
| RuntimeException | if something goes wrong starting the session |
getId()
public string getId()
Returns the session ID.
string |
The session ID or empty |
setId()
public setId(string $id)
Sets the session ID.
string |
$id |
getName()
public mixed getName()
Returns the session name.
mixed |
The session name |
setName()
public setName(string $name)
Sets the session name.
string |
$name |
regenerate()
public bool regenerate(bool $destroy = false, int $lifetime = null)
Regenerates id that represents this storage.
This method must invoke session_regenerate_id($destroy) unless this interface is used for a storage object designed for unit or functional testing where a real PHP session would interfere with testing.
Note regenerate+destroy should not clear the session data in memory only delete the session data from persistent storage.
Care: When regenerating the session ID no locking is involved in PHP's session design. See https://bugs.php.net/bug.php?id=61470 for a discussion. So you must make sure the regenerated session is saved BEFORE sending the headers with the new ID. Symfony's HttpKernel offers a listener for this. See Symfony\Component\HttpKernel\EventListener\SaveSessionListener. Otherwise session data could get lost again for concurrent requests with the new ID. One result could be that you get logged out after just logging in.
bool |
$destroy |
Destroy session when regenerating? |
int |
$lifetime |
Sets the cookie lifetime for the session cookie. A null value will leave the system settings unchanged, 0 sets the cookie to expire with browser session. Time is in seconds, and is not a Unix timestamp. |
bool |
True if session regenerated, false if error |
| RuntimeException | If an error occurs while regenerating this storage |
save()
public save()
Force the session to be saved and closed.
This method must invoke session_write_close() unless this interface is used for a storage object design for unit or functional testing where a real PHP session would interfere with testing, in which case it should actually persist the session data if required.
| RuntimeException | if the session is saved without being started, or if the session is already closed |
clear()
public clear()
Clear all session data in memory.
registerBag()
public registerBag(SessionBagInterface $bag)
getBag()
public SessionBagInterface getBag(string $name)
Gets a SessionBagInterface by name.
string |
$name |
SessionBagInterface |
| InvalidArgumentException | If the bag does not exist |
setMetadataBag()
public setMetadataBag(MetadataBag $metaBag = null)
MetadataBag |
$metaBag |
getMetadataBag()
public MetadataBag getMetadataBag()
isStarted()
public bool isStarted()
Checks if the session is started.
bool |
True if started, false otherwise |
setOptions()
public setOptions(array $options)
Sets session.* ini variables.
For convenience we omit 'session.' from the beginning of the keys. Explicitly ignores other ini keys.
array |
$options |
Session ini directives array(key => value) |
| http://php.net/session.configuration |
setSaveHandler()
public setSaveHandler(SessionHandlerInterface|null $saveHandler = null)
Registers session save handler as a PHP session handler.
To use internal PHP session save handlers, override this method using ini_set with session.save_handler and session.save_path e.g.
ini_set('session.save_handler', 'files');
ini_set('session.save_path', '/tmp');
or pass in a \SessionHandler instance which configures session.save_handler in the constructor, for a template see NativeFileSessionHandler or use handlers in composer package drak/native-session
SessionHandlerInterface|null |
$saveHandler |
| InvalidArgumentException |
| http://php.net/session-set-save-handler | |
| http://php.net/sessionhandlerinterface | |
| http://php.net/sessionhandler | |
| http://github.com/drak/NativeSession |
loadSession()
protected loadSession(array $session = null)
Load the session with attributes.
After starting the session, PHP retrieves the session from whatever handlers are set to (either PHP's internal, or a custom save handler set with session_set_save_handler()). PHP takes the return value from the read() handler, unserializes it and populates $_SESSION with the result automatically.
array |
$session |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier<EMAIL_ADDRESS>*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HttpFoundation\Session\Storage;
/**
* Allows session to be started by PHP and managed by Symfony.
*
* @author Drak<EMAIL_ADDRESS>*/
class PhpBridgeSessionStorage extends NativeSessionStorage
{
/**
* @param \SessionHandlerInterface|null $handler
* @param MetadataBag $metaBag MetadataBag
*/
public function __construct($handler = null, MetadataBag $metaBag = null)
{
$this->setMetadataBag($metaBag);
$this->setSaveHandler($handler);
}
/**
* {@inheritdoc}
*/
public function start()
{
if ($this->started) {
return true;
}
$this->loadSession();
return true;
}
/**
* {@inheritdoc}
*/
public function clear()
{
// clear out the bags and nothing else that may be set
// since the purpose of this driver is to share a handler
foreach ($this->bags as $bag) {
$bag->clear();
}
// reconnect the bags to the session
$this->loadSession();
}
}


A full-stack developer, designer, based in Guwahati, India.
I am a years old developer from Guwahati, Assam (India)
Here is some more information about this product that is only revealed once clicked on.


UK’s Lorry Death: Truck driver pleads guilty to lesser charges
by Rasheed SobowaleThe United Kingdom, UK lorry driver earlier reported by Vanguard to have been charged with manslaughter over the deaths of 39 Vietnamese migrants whose bodies were found in the back of a vehicle he had allegedly been driving pleaded guilty on Monday to lesser charges.
Maurice Robinson, who is accused of being part of an international people-smuggling ring, admitted plotting with others to assist illegal immigration and acquiring criminal property.
Robinson, 25, appeared at London’s Central Criminal Court by video link from prison. He wasn’t asked to enter pleas to 39 counts of manslaughter and conspiracy to traffic people, and he faces another court hearing on Dec. 13.
The bodies of 39 people were found Oct. 23 in the English town of Grays, east of London inside the UK lorry. Police say the victims were all from Vietnam and were aged between 15 and 44.
ALSO READ: UK’s Lorry Deaths: Suspect says he was transporting biscuit
The 31 men and eight women are believed to have paid people traffickers for their clandestine transit into England.
Prosecutors allege that Robinson drove the cab of the truck to Purfleet, England, where he picked up the container, which had arrived by ferry from Zeebrugge in Belgium.
Two other men have been arrested in Britain and Ireland in connection with the case, and several people have been arrested in Vietnam.


Bluemix Workshop
News Analyzer
Startdate:
Enddate:
Search for:
Number of results
1
5
25
100
500
1000
Submit


Minnow is written in C++14 and tested in a ubuntu server, please let us know if you have difficulty compiling it in your own machine.
git clone https://github.com/COMBINE-lab/minnow.git
cd minnow
mkdir build
cd build
cmake ..
make
Given the above steps run without error, the binary will be stored within the build/src
.
Minnow has many options some are basic and some are advanced, the most basic one would require to have a
transcript to gene map (a tsv
file) and the reference file in addition to that it needs three different
files to generate data from: quants_mat.csv
, a gene to cell count file (comma separated), quants_mat_rows.txt
,
and quants_mat_cols.txt
. To list the required files, a complete file tree would look like following,
+-- reference
| +-- transcript.fasta
| +-- t2g.tsv
+-- experiment
| +-- quants_mat.csv
| +-- quants_mat_rows.txt
| +-- quants_mat_cols.txt
The t2g.tsv file contains the transcript to gene information. The csv file is the main matrix file and assumed to be
in gene to cell format and comma separated of dimension m * n
where there are m
genes and n
cells. In the given setting
one must use a quants_mat_rows.txt
with m
lines and quants_mat_cols.txt
with n
lines. Not having this convention
might lead to failure and segmentation faults.
The matrix can be generated in many ways, like using splatter or any generative model user might want to implement. Given
the above format minnow will generate the reads keeping the matrix intact. If not specified otherwise minnow generates
100,000
molecules per cell after PCR, but this can be customized by passing the required flag with the program.
Below we will go over the options that can be provided to minnow in order to get different functionality. Minnow primarily works in two different modes. One where you can provide minnow with a simple matrix and it will with gene and cell information according to above format. Additional files can be obtained from https://github.com/COMBINE-lab/minnow
We have also linked different files in the main website.
In basic mode minnow takes a set of genes to assign them to whatever gene names that are provided to it. Please note that if you are using real gene names that are present in the reference then please don’t use this mode. Since in that case this mode would reassign those real gene names by it’s own algorithm and the purpose is defeated.
One the genes are assigned, minnow uses the weibull
distribution to assign reads to the candidate transcripts. A typical
command in normal mode might look as follows,
src/minnow simulate --normal-mode --g2t /mnt/scratch6/avi/data/cgat/references/metadata/hg_t2g.tsv -m example_data/normal_data_100_Cells_50K_Genes/ --PCR 7 -r /mnt/scratch6/avi/data/cgat/references/txome/hg_transcriptome.fasta -e 0.01 -p 25 -o /mnt/scratch1/avi/minnow/benchmark/ismb_19_runs/splatter_test/100_50K_Genes_pbmc/defaultnorm --useWeibull
Here the folder example_data/normal_data_100_Cells_50K_Genes/
contains the matrix and the corresponding gene names
and cell names in the format shown above.
The splatter-mode
is very similar to the normal-mode
except, the provided matrix comes from splatter
.
In either mode user can make use of the de-Bruijn
graph provided in the github repo in order to generate realistic reads
in the following way
src/minnow simulate --splatter-mode --g2t /mnt/scratch7/hirak/mm/mm_t2g.tsv -m /mnt/scratch7/hirak/descend_matrices/parametric_sim/ --PCR 7 -r /mnt/scratch7/hirak/mm/mm_transcriptome_fixed.dedup.fasta -e 0.01 -p 25 -o /mnt/scratch7/hirak/descend_matrices/parametric_sim/dbg2 --dbg --gfa /mnt/scratch7/hirak/mm/mm.gfa --bfh /mnt/scratch7/hirak/mm/bfh.txt --uniq /mnt/scratch7/hirak/mm/mm_101_stranded_gene_uniqueness.txt
Alternatively a gfa
file can be provided to represent de-Bruijn
file.
Without illumina model
src/minnow simulate --splatter-mode --g2t /mnt/scratch7/hirak/mm/mm_t2g.tsv -m /mnt/scratch7/hirak/descend_matrices/parametric_sim/ --PCR 7 -r /mnt/scratch7/hirak/mm/mm_transcriptome_fixed.dedup.fasta -e 0.01 -p 25 -o /mnt/scratch7/hirak/descend_matrices/parametric_sim/dbg2 --dbg --gfa /mnt/scratch7/hirak/mm/mm.gfa --bfh /mnt/scratch7/hirak/mm/bfh.txt --uniq /mnt/scratch7/hirak/mm/mm_101_stranded_gene_uniqueness.txt
With illumina model
src/minnow simulate --splatter-mode --g2t /mnt/scratch7/hirak/mm/mm_t2g.tsv -m /mnt/scratch7/hirak/descend_matrices/parametric_sim/ --PCR 7 -r /mnt/scratch7/hirak/mm/mm_transcriptome_fixed.dedup.fasta -e 0.01 -p 25 -o /mnt/scratch7/hirak/descend_matrices/parametric_sim/dbg2 --dbg --gfa /mnt/scratch7/hirak/mm/mm.gfa --bfh /mnt/scratch7/hirak/mm/bfh.txt --uniq /mnt/scratch7/hirak/mm/mm_101_stranded_gene_uniqueness.txt --illum ../data/illumina_error_models/ill100v5_mate2


A rule for the politically correct... we don't want to offend anyone.


Help
- Basic mvc structure
- Configuration, helper and model autoloading
- Basic debugging
- Url routing
Installation
How to get a copy of StaticPHP?
Download or clone it from GitHubHow to install it?
- Extract the archive (skip it if you cloned git repository)
- Point webserver's root directory to the application/public directory
- Set directory index file to index.php
Usage
Framework base is built using php static methods
Document root (application/public) Configuration (application/config) All configuration files are put in application/config directory. config.php is the main application config file and is loaded automatically. routing.php is where application routes are set. View each configuration file for more details. Controllers (application/controllers) Models (application/models) Helpers (application/helpers) Views / Templates (application/views) StaticPHP uses default php templating system, which means no parsing to views is done to improve its performance.
Controller:
Document root (application/public) Configuration (application/config) All configuration files are put in application/config directory. config.php is the main application config file and is loaded automatically. routing.php is where application routes are set. View each configuration file for more details. Controllers (application/controllers) Models (application/models) Helpers (application/helpers) Views / Templates (application/views) StaticPHP uses default php templating system, which means no parsing to views is done to improve its performance.
Controller:
$data = ['msg' => 'Important message']; \load::view(['header', 'home/index', 'footer']);View: (application/views/home/index)
'); ?>
System
bootstrap.php
router.php
Function Reference
- public static function base_uri($url = '')
- public static function site_uri($url = '', $prefix = NULL, $current_prefix = TRUE)
- public static function make_path_string($string)
- public static function redirect($url = '', $site_uri = TRUE, $e301 = FALSE, $type = 'http')
- public static function have_prefix($p)
- public static function segment($index)
- public static function error($error_code, $error_string, $data = NULL)
- public static function url_to_file($url)
- public static function init()
- public static function split_segments($force = FALSE)
- public static function load_controller()
- public static function _load_controller($file, &$class, &$method)
load.php
Function Reference
- public static function &get($name)
- public static function set($name, $value)
- public static function merge($name, $value, $owerwrite = TRUE)
- public static function config($files, $project = NULL)
- public static function controller($files, $project = NULL)
- public static function model($files, $project = NULL)
- public static function view($files, &$data = [], $return = FALSE, $project = NULL)
- public static function helper($files, $project = NULL)
- public static function start_timer()
- public static function stop_timer($name)
- public static function mark_time($name)
- public static function execution_time()
- function __autoload($classname)
Models
To load in-built models use \load::model('model name', 'system');
system/models/db.php
Simple pdo wrapper
Connecting to the database
Connecting to the database
\load::model('db', 'system'); \models\db::init([ 'string' => 'mysql:host=localhost;dbname=', 'username' => '', 'password' => '', 'charset' => 'UTF8', 'persistent' => TRUE, 'wrap_column' => '`', // ` - for mysql, " - for postgresql 'debug' => FALSE, ]); // or \models\db::init(); // database class will load default configuration, assuming that database model and configuration files were auto-loadedSelecting
\models\db::fetchAll('SELECT * FROM users WHERE user_type = ?', 1); \models\db::fetch('SELECT * FROM users WHERE user_id = ?', $user_id);Inserting
\models\db::query('INSERT INTO users SET name = ?, email = ?', ['Gints', 'gm@gm.lv']); \models\db::insert('users', [ 'name' => 'Gints', 'email' =><EMAIL_ADDRESS>]);Updating
\models\db::query('UPDATE users SET name = ?, email = ? WHERE user_id = ?', ['Gints'<EMAIL_ADDRESS>$user_id]); \models\db::update('users', [ 'name' => 'Gints', 'email' =><EMAIL_ADDRESS>], ['user_id' => $user_id]);Function Reference
- (PDO) public static function init($config, $name = 'default')
- (PDOStatement) public static function query($query, $data = NULL, $name = 'default')
- (object) public static function fetch($query, $data = [], $name = 'default')
- (array) public static function fetchAll($query, $data = [], $name = 'default')
- (PDOStatement) public static function update($table, $data, $where, $name = 'default')
- (PDOStatement) public static function insert($table, $data, $name = 'default')
- (PDO) public static function &db_link($name = 'default')
- (PDOStatement) public static function &last_statement()
- (string) public static function last_query()
- (mixed) public static function last_insert_id($sequence_name = '', $sql = FALSE, $name = 'default')
Helpers
To load in-built models use \load::helper('helper name', 'system');
Nginx configuration example
/etc/nginx/sites-enabled/gm.lv
server { listen 80; server_name staticphp.gm.lv; root /www/sites/gm.lv/staticphp/application/public; index index.php index.html index.htm; location / { if (!-e $request_filename) { rewrite . /index.php last; } } location ~ \.php$ { if (!-f $request_filename) { return 404; } fastcgi_pass <IP_ADDRESS>:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /etc/nginx/fastcgi_params; } location ~ /\.ht { return 404; } }/etc/nginx/fastcgi_params
fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; fastcgi_param HTTPS $https; # PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200;
Example application
This Page
Some variables and definitions:
All included files:
- BASE_URI:
- \router::site_uri():
- BASE_PATH:
- APP_PATH:
- PUBLIC_PATH:
- Controller:
- View:
- CSS:


| Package | Description |
|---|---|
| org.threeten.bp |
The main API for dates, times, instants, and durations.
|
| org.threeten.bp.format |
Provides classes to print and parse dates and times.
|
| Modifier and Type | Field and Description |
|---|---|
static Period |
Period.ZERO
A constant for a period of zero.
|
| Modifier and Type | Method and Description |
|---|---|
static Period |
Period.between(LocalDate startDate,
LocalDate endDate)
Obtains a
Period consisting of the number of years, months,
and days between two dates. |
static Period |
Period.from(TemporalAmount amount)
Obtains an instance of
Period from a temporal amount. |
Period |
Period.minus(TemporalAmount amountToSubtract)
Returns a copy of this period with the specified amount subtracted.
|
Period |
Period.minusDays(long daysToSubtract)
Returns a copy of this period with the specified days subtracted.
|
Period |
Period.minusMonths(long monthsToSubtract)
Returns a copy of this period with the specified months subtracted.
|
Period |
Period.minusYears(long yearsToSubtract)
Returns a copy of this period with the specified years subtracted.
|
Period |
Period.multipliedBy(int scalar)
Returns a new instance with each element in this period multiplied
by the specified scalar.
|
Period |
Period.negated()
Returns a new instance with each amount in this period negated.
|
Period |
Period.normalized()
Returns a copy of this period with the years and months normalized
using a 12 month year.
|
static Period |
Period.of(int years,
int months,
int days)
Obtains a
Period representing a number of years, months and days. |
static Period |
Period.ofDays(int days)
Obtains a
Period representing a number of days. |
static Period |
Period.ofMonths(int months)
Obtains a
Period representing a number of months. |
static Period |
Period.ofWeeks(int weeks)
Obtains a
Period representing a number of weeks. |
static Period |
Period.ofYears(int years)
Obtains a
Period representing a number of years. |
static Period |
Period.parse(CharSequence text)
Obtains a
Period from a text string such as PnYnMnD . |
Period |
Period.plus(TemporalAmount amountToAdd)
Returns a copy of this period with the specified amount added.
|
Period |
Period.plusDays(long daysToAdd)
Returns a copy of this period with the specified days added.
|
Period |
Period.plusMonths(long monthsToAdd)
Returns a copy of this period with the specified months added.
|
Period |
Period.plusYears(long yearsToAdd)
Returns a copy of this period with the specified years added.
|
Period |
LocalDate.until(ChronoLocalDate endDate)
Calculates the period between this date and another date as a
Period . |
Period |
Period.withDays(int days)
Returns a copy of this period with the specified amount of days.
|
Period |
Period.withMonths(int months)
Returns a copy of this period with the specified amount of months.
|
Period |
Period.withYears(int years)
Returns a copy of this period with the specified amount of years.
|
| Modifier and Type | Method and Description |
|---|---|
static TemporalQuery<Period> |
DateTimeFormatter.parsedExcessDays()
A query that provides access to the excess days that were parsed.
|
Copyright © 2007–2017 ThreeTen.org. All rights reserved.


Head
x
Simulate
View Report
Start
Rocket
Mass
Kilograms (Kg)
Grams (g)
Pounds (lbs)
Cross sectional area
Square Meters (m^2)
Square Centimeters (cm^2)
Coefficient of Drag
Motor
Load Motor
Name
Manufacturer
Diameter (mm)
Length (mm)
Delay
Seconds (s)
Miliseconds (ms)
Mass
Kilograms (Kg)
Grams (g)
Pounds (lbs)
Thrust curve
Time
Thrust
Quality Settings
Timestep (s)


Element index for package GoogleApiAdsCommon
[ a ]
[ c ]
[ d ]
[ e ]
[ f ]
[ g ]
[ h ]
[ i ]
[ l ]
[ m ]
[ o ]
[ p ]
[ r ]
[ s ]
[ u ]
[ v ]
[ x ]
[ _ ]
_
- __construct
- in file ReportDownloadException.php, method ReportDownloadException::__construct()
Constructor for ReportDownloadException.
- __construct
- in file SoapClientFactory.php, method SoapClientFactory::__construct()
The constructor called by any sub-class.
- __construct
- in file ValidationException.php, method ValidationException::__construct()
Constructor for ValidationException where the exception will appear as "Validation failed for [$trigger] with value [$value]: $message".
- __construct
- in file AuthTokenException.php, method AuthTokenException::__construct()
Constructor for AuthTokenException.
- __construct
- in file AdsUser.php, method AdsUser::__construct()
Constructor for AdsUser.
- __construct
- in file AdsSoapClient.php, method AdsSoapClient::__construct()
The constructor intended to be called by all sub-classes.
- __doRequest
- in file AdsSoapClient.php, method AdsSoapClient::__doRequest()
Overrides the method SoapClient.__doRequest() to perform a clean up of the request XML before marshalling.
- __soapCall
- in file AdsSoapClient.php, method AdsSoapClient::__soapCall()
Overrides the method SoapClient.__soapCall() to process the response from the SOAP call.
- __construct
- in file SoapRequestXmlFixer.php, method SoapRequestXmlFixer::__construct()
Constructor to determine how the XML should be fixed.
- __construct
- in file AuthToken.php, method AuthToken::__construct()
Constructor for the authentication token.
top
a
- AdsSoapClient
- in file AdsSoapClient.php, class AdsSoapClient
An extension of the SoapClient class intended to prepare the XML before making a request as well as perform any book-keeping on the response.
- AdsUser
- in file AdsUser.php, class AdsUser
User class for all API modules using the Ads API.
- AuthTokenException
- in file AuthTokenException.php, class AuthTokenException
Exception class for any AuthToken (ClientLogin) error.
- AdsSoapClient.php
- procedural page AdsSoapClient.php
- AdsUser.php
- procedural page AdsUser.php
- AuthTokenException.php
- procedural page AuthTokenException.php
- AuthToken
- in file AuthToken.php, class AuthToken
Client used to retrieve an authentication token for the supplied credentials with the client login API.
- AuthToken.php
- procedural page AuthToken.php
top
c
- CreateSoapHeader
- in file AdsSoapClient.php, method AdsSoapClient::CreateSoapHeader()
Creates a SOAP header for the client given the user. It assumes that each element within the header to be filled in is a publicly acessible feild of the SOAP header element.
- ChoiceUtils
- in file ChoiceUtils.php, class ChoiceUtils
A collection of utility methods for working with choices. Choices are objects which contain many fields, but any time only one of which will contain a value.
- ChoiceUtils.php
- procedural page ChoiceUtils.php
top
top
e
- $ERROR
- in file Logger.php, variable Logger::$ERROR
ERROR level.
- ErrorUtils.php
- procedural page ErrorUtils.php
- ErrorUtils
- in file ErrorUtils.php, class ErrorUtils
A collection of utility methods for working with errors.
top
top
g
- GenerateRequestInfoMessage
- in file AdsSoapClient.php, method AdsSoapClient::GenerateRequestInfoMessage()
Generates the request information using the request and response. This method is called after the request has been made and RemoveSensitiveInfo() has been called as well.
- GenerateServiceClient
- in file SoapClientFactory.php, method SoapClientFactory::GenerateServiceClient()
Generates the SOAP service client without the proper headers set yet.
- GenerateSoapClient
- in file SoapClientFactory.php, method SoapClientFactory::GenerateSoapClient()
Generates a SOAP client for the given service name. Generates a user level error if this instalation of PHP does not have the extension for SOAP installed.
- GenerateSoapHeader
- in file AdsSoapClient.php, method AdsSoapClient::GenerateSoapHeader()
Generates the SOAP header for the client.
- GetAdsUser
- in file SoapClientFactory.php, method SoapClientFactory::GetAdsUser()
Gets the user associated with this factory.
- GetAdsUser
- in file AdsSoapClient.php, method AdsSoapClient::GetAdsUser()
Gets the user for this client.
- GetAuthServer
- in file AdsUser.php, method AdsUser::GetAuthServer()
Gets the server used for authentication.
- GetAuthVarValue
- in file AdsUser.php, method AdsUser::GetAuthVarValue()
Gets the authenticaiton value for the $authVar supplied. If the $authVar is set, it is is used. Otherwirse, the supplied $authenticationIni is queired for the variable. If none is found NULL is returned.
- GetCaptchaToken
- in file AuthTokenException.php, method AuthTokenException::GetCaptchaToken()
Gets the CATPCHA token for the error.
- GetCaptchaUrl
- in file AuthTokenException.php, method AuthTokenException::GetCaptchaUrl()
Gets the CAPTCHA URL for the error.
- GetClientLibraryIdentifier
- in file AdsUser.php, method AdsUser::GetClientLibraryIdentifier()
Gets the client library identifier used for user-agent fields.
- GetDefaultServer
- in file AdsUser.php, method AdsUser::GetDefaultServer()
Gets the default server.
- GetDefaultVersion
- in file AdsUser.php, method AdsUser::GetDefaultVersion()
Gets the default version.
- GetEmail
- in file AdsSoapClient.php, method AdsSoapClient::GetEmail()
Gets the email of the user making the request.
- GetError
- in file AuthTokenException.php, method AuthTokenException::GetError()
Gets the error that caused the exception.
- GetHeaderNames
- in file AdsUser.php, method AdsUser::GetHeaderNames()
Gets the names of all registered request header elements.
- GetHeaderNames
- in file AdsSoapClient.php, method AdsSoapClient::GetHeaderNames()
Gets the names of all registered request header elements.
- GetHeaderValue
- in file AdsUser.php, method AdsUser::GetHeaderValue()
Gets the value for a registered request header element.
- GetHeaderValue
- in file AdsSoapClient.php, method AdsSoapClient::GetHeaderValue()
Gets the value for a registered request header element.
- GetLastFaultMessage
- in file AdsSoapClient.php, method AdsSoapClient::GetLastFaultMessage()
Returns the SOAP fault message if there was any
- GetLastMethodName
- in file AdsSoapClient.php, method AdsSoapClient::GetLastMethodName()
Gets the method name for the last method called.
- GetLastRequestDom
- in file AdsSoapClient.php, method AdsSoapClient::GetLastRequestDom()
Get the DOMDocument representing the last request from this client.
- GetLastRequestId
- in file AdsSoapClient.php, method AdsSoapClient::GetLastRequestId()
Gets the request ID for the last call
- GetLastResponseDom
- in file AdsSoapClient.php, method AdsSoapClient::GetLastResponseDom()
Gets the DOMDocument representing the last response from this client.
- GetLastResponseTime
- in file AdsSoapClient.php, method AdsSoapClient::GetLastResponseTime()
Gets the response time for the last call
- GetLogsDirectory
- in file AdsUser.php, method AdsUser::GetLogsDirectory()
Gets the logs directory.
- GetOAuthAuthorizationUrl
- in file AdsUser.php, method AdsUser::GetOAuthAuthorizationUrl()
Gets the OAuth authorization URL for the OAuth token.
- GetOAuthInfo
- in file AdsUser.php, method AdsUser::GetOAuthInfo()
Gets the OAuth info for this user.
- GetOAuthScope
- in file AdsUser.php, method AdsUser::GetOAuthScope()
Gets the OAuth scope for this user.
- GetProductName
- in file SoapClientFactory.php, method SoapClientFactory::GetProductName()
Gets the product name associated with this factory.
- GetServer
- in file AdsSoapClient.php, method AdsSoapClient::GetServer()
Gets the server that the request was made to.
- GetServer
- in file SoapClientFactory.php, method SoapClientFactory::GetServer()
Gets the server associated with this factory.
- GetServiceLocation
- in file SoapClientFactory.php, method SoapClientFactory::GetServiceLocation()
Gets the end-point location of the service.
- GetServiceName
- in file AdsSoapClient.php, method AdsSoapClient::GetServiceName()
Gets the service name for this client.
- GetServiceSoapClient
- in file AdsUser.php, method AdsUser::GetServiceSoapClient()
Gets the service by its service name.
- GetSoapCompressionLevel
- in file AdsUser.php, method AdsUser::GetSoapCompressionLevel()
Gets the SOAP compression level.
- GetUrl
- in file AuthTokenException.php, method AuthTokenException::GetUrl()
Gets the URL associated with the error.
- GetVersion
- in file SoapClientFactory.php, method SoapClientFactory::GetVersion()
Gets the version associated with this factory.
- GetWsdlCacheType
- in file AdsUser.php, method AdsUser::GetWsdlCacheType()
Gets the type of WSDL caching in use.
- GetAccessToken
- in file OAuthUtils.php, method OAuthUtils::GetAccessToken()
Gets the access token for an authorized request token.
- GetApiErrors
- in file ErrorUtils.php, method ErrorUtils::GetApiErrors()
Gets the ApiErrors in the SOAP fault, if any.
- GetAuthorizationUrl
- in file OAuthUtils.php, method OAuthUtils::GetAuthorizationUrl()
Gets the authorization URL for a request token.
- GetAuthToken
- in file AuthToken.php, method AuthToken::GetAuthToken()
Peforms a POST to get the auth token and then parses the result.
- GetBase64Data
- in file MediaUtils.php, method MediaUtils::GetBase64Data()
Gets the base64 encoded data from an asset located at path for use with the API where <x>Data is needed.
- GetDomFromXml
- in file XmlUtils.php, method XmlUtils::GetDomFromXml()
Gets the DOMDocument of the $xml.
- GetMap
- in file MapUtils.php, method MapUtils::GetMap()
Gets a map (associative array) from an array of map entries. A map entry is any object that has a key and value field.
- GetMapEntries
- in file MapUtils.php, method MapUtils::GetMapEntries()
Gets an array of map entries from a map (associative array). A map entry is any object that has a key and value field. An optional map entry class name can be specified for constructing the entries, otherise the stdClass is used.
- GetRequestToken
- in file OAuthUtils.php, method OAuthUtils::GetRequestToken()
Gets a request token.
- GetServer
- in file AuthToken.php, method AuthToken::GetServer()
Returns the server to make requests to.
- GetSignedRequestParameters
- in file OAuthUtils.php, method OAuthUtils::GetSignedRequestParameters()
Gets the signed OAuth parameters needed to make a request against the given URL.
- GetSourceOperationIndex
- in file ErrorUtils.php, method ErrorUtils::GetSourceOperationIndex()
Gets the index of the operation that was the source of an error.
- GetValue
- in file OgnlUtils.php, method OgnlUtils::GetValue()
Gets the value of an OGNL expression in the given context.
- GetValue
- in file ChoiceUtils.php, method ChoiceUtils::GetValue()
Gets the value of a choice object.
top
h
- $headers
- in file AdsSoapClient.php, variable AdsSoapClient::$headers
The header values.
- HandleXmlError
- in file XmlUtils.php, function HandleXmlError()
Caputures the warnings thrown by the loadXML function to create a proper DOMException.
top
top
l
- $lastArguments
- in file AdsSoapClient.php, variable AdsSoapClient::$lastArguments
The last arguments passed to the called SOAP method
- $lastMethodName
- in file AdsSoapClient.php, variable AdsSoapClient::$lastMethodName
The name of the last method called from this client.
- $lastRequest
- in file AdsSoapClient.php, variable AdsSoapClient::$lastRequest
The last SOAP XML request made to the server after PrepareRequest() and RemoveSensitiveInfo() have been called on it.
- $lastResponse
- in file AdsSoapClient.php, variable AdsSoapClient::$lastResponse
The last SOAP XML response from the server.
- $lastSoapFault
- in file AdsSoapClient.php, variable AdsSoapClient::$lastSoapFault
The last SOAP fault generated from the server. NULL if none.
- LoadSettings
- in file AdsUser.php, method AdsUser::LoadSettings()
Loads the settings for this client library. If the settings INI file located at $settingsIniPath cannot be loaded, then the parameters passed into this method are used.
- LogDefaults
- in file AdsUser.php, method AdsUser::LogDefaults()
Initiates the default logging behavior of logging all HTTP headers and SOAP XML to the soap_xml.log file and all request information to the request_info.log file under the logs directory.
- Logger.php
- procedural page Logger.php
- Log
- in file Logger.php, method Logger::Log()
Logs a message to the log at a specific level.
- Logger
- in file Logger.php, class Logger
A logger class which registers appenders (any writable handle location which can be fopen'ed) with a unique name for that log. The library will write all incoming/outgoing SOAP XML to SOAP_XML_LOG and all records of requests to REQUEST_INFO_LOG.
- LogToFile
- in file Logger.php, method Logger::LogToFile()
Logs the given log to a file at the file path.
- LogToStream
- in file Logger.php, method Logger::LogToStream()
Logs the given log to a stream represented by $phpIoStream. The availble streams are listed here:
top
m
- MapUtils.php
- procedural page MapUtils.php
- MediaUtils.php
- procedural page MediaUtils.php
- MapUtils
- in file MapUtils.php, class MapUtils
A collection of utility methods for working with maps (associative arrays).
- MediaUtils
- in file MediaUtils.php, class MediaUtils
A utility class to handle data of media assets (such as image, SWF, or video files).
top
o
- OAuthUtils.php
- procedural page OAuthUtils.php
- OgnlUtils.php
- procedural page OgnlUtils.php
- OAuthUtils
- in file OAuthUtils.php, class OAuthUtils
A utility class for working with OAuth.
- OgnlUtils
- in file OgnlUtils.php, class OgnlUtils
A collection of utility methods for working with OGNL paths.
top
p
- PrepareRequest
- in file AdsSoapClient.php, method AdsSoapClient::PrepareRequest()
Depending on the version of PHP, the xsi:types need to be added and empty tags may need to be removed. The SoapRequestXmlFixer class can facilitate these changes.
- PrettyPrint
- in file XmlUtils.php, method XmlUtils::PrettyPrint()
Returns a pretty printed XML. If the XML cannot be loaded a string stripped of any newlines is returned.
top
top
s
- $serviceName
- in file AdsSoapClient.php, variable AdsSoapClient::$serviceName
The name of the service this client is accessing.
- $serviceNamespace
- in file AdsSoapClient.php, variable AdsSoapClient::$serviceNamespace
The namespace of the service this client is accessing.
- SoapClientFactory.php
- procedural page SoapClientFactory.php
- SetDefaultServer
- in file AdsUser.php, method AdsUser::SetDefaultServer()
Sets the default server.
- SetDefaultVersion
- in file AdsUser.php, method AdsUser::SetDefaultVersion()
Sets the default version.
- SetHeaderValue
- in file AdsUser.php, method AdsUser::SetHeaderValue()
Sets the value for a request header.
- SetHeaderValue
- in file AdsSoapClient.php, method AdsSoapClient::SetHeaderValue()
Sets the value for a request header.
- SetOAuthInfo
- in file AdsUser.php, method AdsUser::SetOAuthInfo()
Sets the OAuth info for this user.
- SoapClientFactory
- in file SoapClientFactory.php, class SoapClientFactory
Base class for all SOAP client factories of Ads client libraries.
- $SOAP_XML_LOG
- in file Logger.php, variable Logger::$SOAP_XML_LOG
Logs all incomming and outgoing SOAP XML.
- $STD_ERR_STREAM
- in file Logger.php, variable Logger::$STD_ERR_STREAM
Standard error stream for use with the LogToStream method.
- $STD_OUT_STREAM
- in file Logger.php, variable Logger::$STD_OUT_STREAM
Standard out stream for use with the LogToStream method.
- SoapRequestXmlFixer.php
- procedural page SoapRequestXmlFixer.php
- SoapRequestXmlFixer
- in file SoapRequestXmlFixer.php, class SoapRequestXmlFixer
The SOAP XML request fixer used to fix some inconsistencies among the different versions of the PHP SoapClient.
top
top
top
x
- XmlUtils.php
- procedural page XmlUtils.php
- XmlUtils
- in file XmlUtils.php, class XmlUtils
A collection of utility methods for working with XML.
top
|
|


{{! currently inside currentlist, ../ to go back to top level but if tag creates one more stack hence we use ../../ (in our case we have each if each == ../../) }}
{{#each ../rooms}}
{{! current data is rooms, ../../RECNO.value = currentlist.RECNO.value , RECNO.value = rooms.RECNO.value }}
{{ ROOMID.value }}


| dayOfWeek, hour, minute, second : int) |
The dayOfWeek parameter is 1 for Monday, 2 for Tuesday through 7 for Sunday.
If the sec parameter doesn't make any sense or can't be interpreted, then Time.PartsSec will set all the var parameters to 1 and Error.Last and Error.LastMsg will be set to the appropriate error.
var year, month, day, dayOfWeek, hour, minute, second : int
Time.SecParts (Time.Sec, year, month, day, dayOfWeek,
hour, minute, second )
var days : array 1 .. 7 of string (10) := init ("Monday", "Tuesday",
"Wednesday", "Thursday", "Friday", "Saturday", "Sunday")
put "The current day of the week is ", days (dayOfWeek)
This means that you can only call the function by calling Time.SecParts , not by calling SecParts .
| See also | Time.PartsSec, Time.Date and Time.Sec functions. |


After you have installed ConfigZilla and started to use it to generate your config files you will want to stop Git (or TFS) from tracking the config files because they are now build products rather than source files. Furthermore, their contents will be changing every time you do a build because the current time is included in the document comment. So you should add web.config, app.config or whatever.config to your .gitignore file.
[Aa]pp.config
[Aa]ppSettings.config
[Cc]onnectionStrings.config
[Ll]og4net.config
[Rr]eportingSettings.config
[Ss]omething.config
# Care! MVC has nested web.configs int its views folder.
# Only ignore the one in the root
/MyWebApp/[Ww]eb.config
Care needed! As the comment in the file shows, there can be web.configs in folders other than the root. If you aren't generating them from templates then you should continue to track them. Web applications are the only ones I know of where this happens : a newly created MVC 4 app has a Web.config under its Views folder and the application won't run without it. After setting up your .gitignore it is a good idea to commit everything and clone your repo to a new location and check that everything is still working.
If your config files have already gotten into your git repository then you will need to add them .gitignore as above and stop tracking them. Issue the following command:
git rm --cached <filename>


Since using I2P for a few years, and dealing with SAM and all it's problems I realized very quickly that something different was needed. This is what I came up with.
Separate the commands from the data channels. To do this, Two things are needed:
One, an application command channel socket to router.
Two, the application data sockets to/from router that carry only data.
The command channel is only needed for making or setting the initial destination key, and to set the destination key to port bindings. That is how SAM should have been done in the first place, but was not! :-)
Note that YOUR application holds the keypair values, NOT the router. This is to reduce any extra complexity in the router code.
KEYS = keypair public+private, these are BASE64
KEY = public key, BASE64
ERROR as is implied returns the message "ERROR "+DESCRIPTION+"\n", where the DESCRIPTION is what went wrong.
OK returns "OK", and if data is to be returned, it is on the same line. OK means the command is finished.
DATA lines contain information that you requested. There may be multiple DATA lines per request.
NOTE: The help command is the ONLY command that has an exception to the rules... it can actually return nothing! This is intentional, since help is a HUMAN and not an APPLICATION command.
For CURRENT details on the commands PLEASE use the built-in help command. Here are the commands we have as of this writing (Dec 2008).
COMMAND OPERAND RETURNS help (optional command to get help on) NOTHING or OK and description of the command clear ERROR or OK getdest ERROR or OK and KEY getkeys ERROR or OK and KEYS getnick tunnelname ERROR or OK inhost hostname or IP address ERROR or OK inport port number ERROR or OK list ERROR or DATA lines and final OK newkeys ERROR or OK and KEY option ERROR or OK outhost hostname or IP address ERROR or OK outport port number ERROR or OK quiet ERROR or OK quit OK and terminates the command connection setkeys KEYS ERROR or OK setnick tunnel nickname ERROR or OK show ERROR or OK and information start ERROR or OK status tunnel nickname ERROR or OK and information stop ERROR or OK verify KEY ERROR or OK
Once set up, all TCP sockets can and will block as needed, and there is no need for any additional messages to/from the command channel. This allows the router to pace the stream without exploding with OOM like SAM does as it chokes on attempting to shove many streams in or out one socket -- that can't scale when you have alot of connections!
What is also nice about this particular interface is that writing anything to interface to it, is much much easier than SAM. There is no other processing to do after the set up. It's configuration is so simple, that very simple tools, such as nc (netcat) can be used to point to some application. The value there is that one could schedule up and down times for an application, and not have to change the application to do that, or to even have to stop that application. Instead, you can litterally "unplug" the destination, and "plug it in" again. As long as the same IP/port addresses and destination keys are used when bringing the bridge up, the normal TCP application won't care, and won't notice. It will simply be fooled -- the destinations are not reachable, and that nothing is coming in.
For the following example, we'll setup a very simple local loopback connection, with two destinations. Destination "bitch" will be the CHARGEN service from the INET superserver daemon. Destination "ear" will be a local port that you can telnet into, and watch the pretty ASCII test puke forth.
EXAMPLE SESSION DIALOGUE -- simple telnet <IP_ADDRESS> 2827 works A = Application C = BOB's Command response.
FROM TO DIALOGUE A C outhost <IP_ADDRESS> C A OK outhost set A C outport 19 C A OK outbound port set A C start C A OK tunnel starting
At this point, there was no error, a destination with a nickname of "bitch" is set up. When you contact the destination provided, you actually connect to the CHARGEN service on 19/TCP.
Now for the other half, so that we can actually contact this destination.
FROM TO DIALOGUE A C setnick ear C A OK Nickname set to ear A C newkeys C A OK 8SlWuZ6QNKHPZ8KLUlExLwtglhizZ7TG19T7VwN25AbLPsoxW0fgLY8drcH0r8Klg~3eXtL-7S-qU-wdP-6VF~ulWCWtDMn5UaPDCZytdGPni9pK9l1Oudqd2lGhLA4DeQ0QRKU9Z1ESqejAIFZ9rjKdij8UQ4amuLEyoI0GYs2J~flAvF4wrbF-LfVpMdg~tjtns6fA~EAAM1C4AFGId9RTGot6wwmbVmKKFUbbSmqdHgE6x8-xtqjeU80osyzeN7Jr7S7XO1bivxEDnhIjvMvR9sVNC81f1CsVGzW8AVNX5msEudLEggpbcjynoi-968tDLdvb-CtablzwkWBOhSwhHIXbbDEm0Zlw17qKZw4rzpsJzQg5zbGmGoPgrSD80FyMdTCG0-f~dzoRCapAGDDTTnvjXuLrZ-vN-orT~HIVYoHV7An6t6whgiSXNqeEFq9j52G95MhYIfXQ79pO9mcJtV3sfea6aGkMzqmCP3aikwf4G3y0RVbcPcNMQetDAAAA A C inhost <IP_ADDRESS> C A OK inhost set A C inport 37337 C A OK inbound port set A C start C A OK tunnel starting A C quit C A OK Bye!
Now all we need to do is telnet into <IP_ADDRESS>, port 37337, send the destination key or host address from addressbook we want to contact. In this case, we want to contact "bitch", all we do is paste in the key and it goes.
NOTE: The "quit" command in the command channel does NOT disconnect the tunnels like SAM.
# telnet <IP_ADDRESS> 37337 Trying <IP_ADDRESS>... Connected to <IP_ADDRESS>. Escape character is '^]'. ZMPz1zinTdy3~zGD~f3g9aikZTipujEvvXOEyYfq4Su-mNKerqG710hFbkR6P-xkouVyNQsqWLI8c6ngnkSwGdUfM7hGccqBYDjIubTrlr~0g2-l0vM7Y8nSqtFrSdMw~pyufXZ0Ys3NqUSb8NuZXpiH2lCCkFG21QPRVfKBGwvvyDVU~hPVfBHuR8vkd5x0teMXGGmiTzdB96DuNRWayM0y8vkP-1KJiPFxKjOXULjuXhLmINIOYn39bQprq~dAtNALoBgd-waZedYgFLvwHDCc9Gui8Cpp41EihlYGNW0cu0vhNFUN79N4DEpO7AtJyrSu5ZjFTAGjLw~lOvhyO2NwQ4RiC4UCKSuM70Fz0BFKTJquIjUNkQ8pBPBYvJRRlRG9HjAcSqAMckC3pvKKlcTJJBAE8GqexV7rdCCIsnasJXle-6DoWrDkY1s1KNbEVH6i1iUEtmFr2IHTpPeFCyWfZ581CAFNRbbUs-MmnZu1tXAYF7I2-oXTH2hXoxCGAAAA !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefg !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk ... After a few virtual miles of this spew, press Control-] ... cdefghijklmnopqrstuvwxyz{|}~ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJK defghijklmnopqrstuvwxyz{|}~ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKL efghijklmnopqrstuvwxyz{|}~ !"#$%&'()*+,-./0123456789:;<= telnet> c Connection closed.  Connected to <IP_ADDRESS>. Escape character is '^]'. i2host.i2p GET / HTTP/1.1 HTTP/1.1 200 OK Date: Fri, 05 Dec 2008 14:20:28 GMT Connection: close Content-Type: text/html Content-Length: 3946 Last-Modified: Fri, 05 Dec 2008 10:33:36 GMT Accept-Ranges: bytes   <title>I2HOST</title> <link rel="shortcut icon" href="favicon.ico">  ... --Sponge.
  visitors.   Connection closed by foreign host. #
Pretty cool isn't it? Try some other well known EEPSITES if you like, nonexistant ones, etc, to get a feel for what kind of output to expect in different situations. For the most part, I suggest that you ignore any of the error messages. They would be meaningless to the application, and are only presented for human debugging.
Let's put down our destinations now that we are all done with them.
First, lets see what destination nicknames we have.
 First, let's remove "bitch".

FROM TO DIALOGUE A C getnick ear C A OK Nickname set to ear A C stop C A OK tunnel stopping A C clear C A ERROR tunnel is active A C clear C A OK cleared A C quit C A OK Bye!
I won't bother to show an example of the receiver end of a bridge because it is very simple. There are two possible settings for it, and it is toggled with the "quiet" command.
The default is NOT quiet, and the first data to come into your listening socket is the destination that is making the contact. It is a single line consisting of the BASE64 address followed by a newline. Everything after that is for the application to actually consume.
In quiet mode, think of it as a regular internet connection. No extra data comes in at all. It's just as if you are plain connected to the regular internet. This mode allows a form of transparency much like is available on the router console tunnel settings pages, so that you can use BOB to point a destination at a web server, for example, and you would not have to modify the web server at all.
The advantage with using BOB for this is as discussed previously. You could schedule random uptimes, etc for the application, redirect to a different machine, etc. One use of this may be something like wanting to try to goof up router-to-destination upness guessing. You could stop and start the destination with a totally different process to make random up and down times on services. That way you would only be stopping the ability to contact such a service, and not have to bother shutting it down and restarting it. You could redirect and point to a different machine on your lan while you do updates, or point to a set of backup machines depending on what is running, etc, etc. Only your imagination limits what you could do.
I realize that this really isn't looking like a full blown "API spec", however it's so simple that this is really, honestly, the entire API. The "PROTOCOL" is quite tiny, and there are only Three possible replies to the commands.


?6
7
8
9
10
L
^
.
,.
The
New
York
copyright
reserved
Botanical
Garden
Chionanthus
compactus
Sw.
DET.
RICHARD
A.
HOWARD
NEW
YORK
BOTANICAL
GARDEN
CARNEGIE
INSTITUTION
OF
WASHINGTON
UNITED
STATES
NATIONAL
MUSEUM
WEST
INDIAN
EXPLORATION
1913
WM.
R.
fitch.
Assistant
PAUL
G.
RUSSELL,
ASSISTANT
/š
FEBRUARY
4-16,
1913
01497528
Legend -
Level of confidence that token is an accurately-transcribed word
extremely low
very low
low
undetermined
medium
high
very high