|
ARK2D
1.0
Game development framework for Windows, Mac OS X and Android.
|
String utility functions that affect primitive string types. More...
#include <StringUtil.h>
Static Public Member Functions | |
| static string | prepend (string str, int i) |
| static string | append (string str, int i) |
| static string | appendf (string str, float i) |
| static string | append (string str, string str2) |
| static string | pathToFile (string file) |
| static bool | is_base64 (unsigned char c) |
| static string | encodeBase64 (unsigned char const *, unsigned int len) |
| static string | decodeBase64 (string const &s) |
| static bool | file_exists (const char *filename) |
| static string | file_get_contents (const char *fileName) |
| static void | toUpper (string &str) |
| static void | toLower (string &str) |
| static string | urlencode (const string &s) |
| static string | char2hex (char dec) |
| static string | zeropad (int number, int digits) |
| static void | trimLeft (string &str, const char *chars2remove) |
| static void | trimRight (string &str, const char *chars2remove) |
| static void | trim (string &str, const char *chars2remove) |
| static string | trimret (string str, string charsToRemove) |
| static void | trimAll (vector< ARK::Core::String > &strings, std::string chars2remove) |
| static bool | str_contains (const string &haystack, const string &needle) |
| static string & | str_replace (const string &search, const string &replace, string &subject) |
| static string | str_replace_copy (string search, string replace, string subject) |
| static vector< string > | split (string s, const char *delimiter) |
| static vector< string > | getLinesForWordWrap (string str, int maxWidth) |
| static string | getExtension (string s) |
| static string | caesarShift (const string &s, int amount) |
| static string | getOrdinal (int i) |
| static string | ordinalise (int i) |
| static string | getMinuteSecondsFormatFromSeconds (float seconds) |
| static string | getMinuteSecondsLongFormatFromSeconds (float seconds) |
| static string | restrictToAlphanumericsSpaces (string str) |
| static string | restrictToCharset (string str, vector< char > chars) |
| template<class T > | |
| static string | getDenomination (T value) |
| static string | internalOSAppends (string strFilename) |
Static Public Attributes | |
| static const string | base64_chars |
Friends | |
| class | ARK::Graphics::SpriteSheetDescription |
String utility functions that affect primitive string types.
Definition at line 40 of file StringUtil.h.
|
static |
Definition at line 78 of file StringUtil.cpp.
|
static |
Definition at line 91 of file StringUtil.cpp.
|
static |
Definition at line 84 of file StringUtil.cpp.
|
static |
Definition at line 545 of file StringUtil.cpp.
|
static |
Definition at line 490 of file StringUtil.cpp.
|
static |
Definition at line 278 of file StringUtil.cpp.
|
static |
Definition at line 238 of file StringUtil.cpp.
|
static |
Definition at line 319 of file StringUtil.cpp.
|
static |
Definition at line 359 of file StringUtil.cpp.
|
inlinestatic |
Definition at line 92 of file StringUtil.h.
|
static |
Definition at line 554 of file StringUtil.cpp.
|
static |
Definition at line 162 of file StringUtil.cpp.
|
static |
Definition at line 55 of file StringUtil.cpp.
|
static |
Definition at line 66 of file StringUtil.cpp.
|
static |
Definition at line 559 of file StringUtil.cpp.
|
static |
Definition at line 346 of file StringUtil.cpp.
|
static |
Definition at line 233 of file StringUtil.cpp.
|
inlinestatic |
Definition at line 83 of file StringUtil.h.
|
static |
Definition at line 189 of file StringUtil.cpp.
|
static |
Definition at line 94 of file StringUtil.cpp.
|
static |
Definition at line 580 of file StringUtil.cpp.
|
static |
Definition at line 621 of file StringUtil.cpp.
|
static |
Definition at line 138 of file StringUtil.cpp.
|
static |
Definition at line 102 of file StringUtil.cpp.
|
static |
Definition at line 106 of file StringUtil.cpp.
|
static |
Definition at line 132 of file StringUtil.cpp.
|
static |
int leng=str.length();
Definition at line 442 of file StringUtil.cpp.
|
static |
Definition at line 431 of file StringUtil.cpp.
|
static |
Definition at line 530 of file StringUtil.cpp.
|
static |
Definition at line 538 of file StringUtil.cpp.
|
static |
Definition at line 507 of file StringUtil.cpp.
|
static |
Definition at line 534 of file StringUtil.cpp.
|
static |
Definition at line 518 of file StringUtil.cpp.
|
static |
Definition at line 468 of file StringUtil.cpp.
|
static |
Definition at line 37 of file StringUtil.cpp.
|
friend |
Definition at line 41 of file StringUtil.h.
|
static |
Definition at line 50 of file StringUtil.h.


same photo but it's drawn on, so it looks like drawings magically appear
baby photo
photo of your favorite food, flower, activity, cartoon character, emoji, etc.
Ideas for meaningful on hover changes
Incorporate your pet
Favorite movie
Sport your love
Different moods you have
An animal you love
Your favorite food pops up
Favorite setting
Generating Ideas
Interview partner (~3m each) about what they like to eat, hidden talents, books and shows they like, etc. and each work on mocking up a person card. You can do it for each other or for yourselves
Slack your image of your mock up to me
Download slack from the dalton software center and sign in through your dalton.org gmail
Download slack on your phone and also sign in through your dalton email.
Take a picture and slack it directly to molly josephs with the 📝
Person Card template!
go to github.com and create username with c25 or c24 username
Fork this card or go to this slide at bit.ly/cs1-personcard2021


Preparation time
over 2 hours
Cooking time
10 to 30 mins
Serves
Serves 4
Sweet and salty quick-pickled mackerel is married with a simple potato salad flavoured with coriander and lime for a swimmingly good lunch.
For the salad, heat a frying pan over a medium heat. Add the coriander seeds and toast for 1 minute, shaking them occasionally, until aromatic. Tip them on to a plate and lightly crush using a knife blade.
Pour both vinegars into a small saucepan, add the sugar and cook over a medium heat for 2-3 minutes, or until the sugar is dissolved, stirring occasionally. Remove from the heat and stir in the coriander seeds, then leave until cold.
Put the mackerel fillets in a shallow, non-metallic dish, skin-side-down, and sprinkle with the salt. Pour over the vinegar mixture and top with three-quarters of the red onion. Cover with cling film and marinate in the refrigerator for 6 hours, or until pickled, turning the fish over halfway through.
Just before the mackerel is ready, fill a saucepan one-third full with water, place a steamer on top and bring to a simmer. Put the remaining red onion, the coriander sprigs and garlic in the water. Put the potatoes in the steamer, cover and cook for 12-18 minutes, or until just tender. Turn the heat off and steam them in the residual heat for a further 5 minutes, then leave to cool.
For the French dressing, whisk the Dijon mustard, vinegar and 2 tablespoons of water together in a small bowl. Whisk in both olive oils until thick and glossy. Season with salt and pepper.
For the mayonnaise, beat the egg yolks and French mustard together in a large bowl. Add a few drops of lemon juice and season with salt and pepper. Drizzle in the oil a little at a time, whisking continuously with a hand-held electric whisk, until thickened.
Whisk together 3 tablespoons of the French dressing, 2 tablespoons of the mayonnaise and the yoghurt in a bowl. Stir in the lime zest and juice and season with salt and pepper.
Cut the potatoes into 5mm/¼in slices and put them in a large salad bowl. Add the radishes and chopped coriander leaves, then drizzle with the dressing and toss gently. Scatter over the spring onion. Lift the mackerel out of the pickling liquor and put it on serving plates. Scatter over some pickled red onion and serve with the potato salad.


./komodo-cli -ac_name=DEXP2P DEX_broadcast "TonyL" 0 "BTC" "KMD" "028a45fb6ab295576ccf963371c701776900c15b2583608427c616e2316ef39740" "0.1" "100"
./komodo-cli -ac_name=DEXP2P DEX_broadcast "TonyL" 1 "BTC" "KMD" "028a45fb6ab295576ccf963371c701776900c15b2583608427c616e2316ef39740" "0.1" "100"
./komodo-cli -ac_name=DEXP2P DEX_broadcast "TonyL" 2 "BTC" "KMD" "028a45fb6ab295576ccf963371c701776900c15b2583608427c616e2316ef39740" "0.1" "100"
./komodo-cli -ac_name=DEXP2P DEX_broadcast "TonyL" 3 "BTC" "KMD" "028a45fb6ab295576ccf963371c701776900c15b2583608427c616e2316ef39740" "0.1" "100"
./komodo-cli -ac_name=DEXP2P DEX_broadcast "TonyL" 4 "BTC" "KMD" "028a45fb6ab295576ccf963371c701776900c15b2583608427c616e2316ef39740" "0.1" "100"
./komodo-cli -ac_name=DEXP2P DEX_broadcast "TonyL" 5 "BTC" "KMD" "028a45fb6ab295576ccf963371c701776900c15b2583608427c616e2316ef39740" "0.1" "100"
./komodo-cli -ac_name=DEXP2P DEX_list "" 3 "BTC"


New Media Artist//Environmentalist
Languages
English
Spanish
Portuguese
Education
2020 BFA Art & Technology and Sculpture, School of the Art Institute of Chicago, Chicago, IL
2015-16 Environmental Studies Program, Evergreen State College, Olympia, WA
2013-15 Global Citizenship Experience, Chicago, IL
2011-13 Alpha Program, Lane Tech High School, Chicago, IL
2002-11 Inter-American Magnet School
Job Experience
2022 Exhibitions Preparator II (Mount Maker), The Field Museum of Natural History, Chicago, IL
2021 Apprentice Mechanic, Uptown Bikes, Chicago, IL
2021 Bicycle Courier, Cut Cats Courier, Chicago, IL
2020 Studio Assistant, Cracked Ray Tube (James Connolly and Kyle Evans), Chicago, IL
2019 Festival Production Intern, CURRENTS New Media Festival, Santa Fe, New Mexico
2019 Media Production Intern, Envisioning Justice, Illinois Humanities Council
2016-20 Bicycle Courier, Foxtrot & Postmates & UberEats & Flaco's Tacos, Chicago, IL
2016 Ecological Restoration Intern, Audubon Great Lakes, Chicago, IL
2015 Multimedia Gallery Intern, 6018 North, Chicago IL
2012 Commissioned Artist, After School Matters, Chicago IL
Shows
2020
SAIC Undergrad Thesis Show // installation
Elastic Arts // interactive installation
2019
Playground Social // realtime visuals
Empty Bottle // realtime visuals
Decibel Crawl at Observatory // realtime visuals
2018
Hostel Earphoria // realtime visuals
Co-prosperity Sphere // realtime visuals
Evergreen Manor // realtime visuals
Emporium // realtime visuals
Workshop 4200 // realtime visuals
The Owl // realtime visuals
Skills
Audio/Visual systems
Adobe Creative Suite (Premiere Pro/Illustrator/Photoshop)
Web development (HTML/CSS/JS/select open-source libraries/APIs)
Audio production (Logic Pro X/Audacity/Ableton/analog systems)
Fundamental understanding of electronic engineering
Physical computing (Arduino/Raspberry Pi)
Photography/videography
Social media management
Max/MSP/Jitter
Virtual reality (WebVR/A-frame/3-D scanning/360 video/Blender/Mixamo)
UI/UX
Circuit design and PCB printing
DIY radio broadcasting (DIY broadcasting circuits/SDR/GQRX)
iOS app development (Xcode/Objective-C)
Github & involvement in open-source community
Microsoft Office (Word, Excel, PowerPoint)
Resolume
Processing
Extracurricular Programs & Residencies
2023 Ecolectivo Permaculture Youth Exchange
2023 TTTfellows: Art and Science Residency
2015 Sierra Club Environmental/Social Activist Training (SPROG)
2014 University of Illinois Prairie Science Camp
2011-14 Marwen Art School
2011-13 Camp Counselor at Berger Park
2009 Lincoln Park Conservation Camp
Awards
2020 SAIC Student Leadership Award
2016-2019 SAIC Distinguished Scholar Merit Award
2013 1st Place for Design Makes Change, Austin Design Competition
2013 Totem Pole Award at Lane Tech (Student of the Month)
2013 1st Place Marwen brochure design competition
2012 1st place for the Edgewater Beach Sand Castle Competition ($500 award)
2012 Gold Award for All-City CPS Art Competition
2010 Kuumba Lynx Spoken Word, 1st Place with “Nuestra Mezcla”
2008 1st place in regional Judo competitions
Publications
Music Video for "Que Importa Que Nos Craven As Cadeas" by Dioivo
FNews Magazine
Music Video for "Diluvian" by Cordoba


Call Us Now +91-9930068245
Toggle Navigation
Home
About Us
Events
Menus
Gallery
Contact Us
Download Menu
Contact Us
Let's Talk Today!
Call Us Now +91-9930068245


| File | Statements | Branches | Functions | Lines | |||||
|---|---|---|---|---|---|---|---|---|---|
| cache.js | 36.73% | 18/49 | 16.67% | 4/24 | 78.57% | 11/14 | 12.5% | 4/32 | |
| changetracker.js | 36.17% | 17/47 | 25% | 4/16 | 50% | 5/10 | 7.14% | 2/28 | |
| client.js | 6.13% | 28/457 | 1.81% | 4/221 | 35.21% | 25/71 | 3.98% | 7/176 | |
| clientInfo.js | 31.25% | 5/16 | 100% | 4/4 | 50% | 1/2 | 8.33% | 1/12 | |
| configuration.js | 29.73% | 11/37 | 23.53% | 4/17 | 84.62% | 11/13 | 10.71% | 3/28 | |
| entitiesCache.js | 37.5% | 12/32 | 23.53% | 4/17 | 85.71% | 6/7 | 9.52% | 2/21 | |
| entity.js | 44.74% | 17/38 | 50% | 4/8 | 88.89% | 8/9 | 10% | 2/20 | |
| index.js | 0% | 0/16 | 100% | 0/0 | 100% | 0/0 | 0% | 0/16 | |
| listitem.js | 35.71% | 10/28 | 100% | 4/4 | 91.67% | 11/12 | 10.53% | 2/19 | |
| logger.js | 20% | 5/25 | 100% | 4/4 | 12.5% | 1/8 | 16.67% | 2/12 | |
| mapitem.js | 35.71% | 10/28 | 100% | 4/4 | 91.67% | 11/12 | 10.53% | 2/19 | |
| mergingqueue.js | 23.71% | 23/97 | 11.76% | 4/34 | 33.33% | 10/30 | 11.76% | 6/51 | |
| network.js | 17.76% | 19/107 | 8.89% | 4/45 | 37.5% | 9/24 | 5.95% | 5/84 | |
| paginator.js | 29.31% | 17/58 | 16% | 4/25 | 35.29% | 6/17 | 26.32% | 5/19 | |
| router.js | 24.29% | 17/70 | 17.39% | 4/23 | 31.58% | 6/19 | 14.71% | 5/34 | |
| subscriptions.js | 7.85% | 30/382 | 2.25% | 4/178 | 56.36% | 31/55 | 2.87% | 7/244 | |
| syncNetworkError.js | 56% | 14/25 | 28.57% | 4/14 | 66.67% | 2/3 | 28.57% | 2/7 | |
| syncdocument.js | 11.56% | 26/225 | 4.55% | 4/88 | 43.64% | 24/55 | 5.1% | 5/98 | |
| syncerror.js | 53.85% | 14/26 | 28.57% | 4/14 | 66.67% | 2/3 | 22.22% | 2/9 | |
| synclist.js | 7.54% | 26/345 | 2.67% | 4/150 | 46.91% | 38/81 | 3.07% | 5/163 | |
| syncmap.js | 8.01% | 27/337 | 2.78% | 4/144 | 43.21% | 35/81 | 3.7% | 6/162 | |
| utils.js | 35.19% | 19/54 | 15.38% | 4/26 | 38.46% | 5/13 | 20.93% | 9/43 |


Ronald Wilson Reagan
Before Donald Trump, Ronald Reagan was the oldest person to assume U.S. presidency. He is also the only actor to become president. His remarkable skill as a charming orator earned him the title "The Great Communicator." People credit his policies for contributing to the demise of Soviet communism. His anti-communism sentiment was certainly a factor to the worsening of relations with the Soviet Union during the beginning of his presidency. U.S.-Soviet relations did improve, however, during Reagan's second term in office. In terms of domestic policies, Reagan proposed massive tax cuts (up to 30%) in both individual and corporate income taxes, massive increase in military expenditures, and significant funding cuts in social-welfare programs such as food stamps, low-income housing, education, Medicaid, etc. It's interesting to note that Reagan himself was raised in a poor family.
Key Events
- January 20, 1981: Reagan is inaugurated.
- January 20, 1981: 52 Americans held hostage in Iran are released (444 days)
- February 18, 1981: Reagan proposes increased defense spending and decreased taxes and dosmetic spending in a speech to Congress.
- March 30, 1981: Reagon is shot by John Warnock Hinckley Jr.
- April 11, 1981: Reagan leaves the hospital. However, it would take months until Reagan fully recovered.
- April 24, 1981: Reagan nominates Sandra Day O' Connor, the first woman on the Supreme Court.
- August 13, 1981: Reagan signs a tax cut into law
- September 3, 1982: Reagan signs the Tax Equity & Fiscal Responsibility Act.
- January 5, 1983: Reagan signs a law that increased the gasoline tax by 5 cents per gallon.
- April 20, 1983: End of the recession with the US GNP showing dramatic growth in the first quarter of 1983.
- April 20, 1983: Reagan signs the Social Security Reform Bill
- October 25, 1983: US forces invade Grenada in order to overthrow the military government that had taken over several days prior. US easily won.
- August 22, 1984: Reagan is renomiated for the 1984 presidential election by the Republican Party.
- November 6, 1984: Reagan is reelected as President. He defeated Democratic candidate Walter Mondale.
- January 20, 1985: Reagan is inaugurated for a second term.
- July 13, 1985: Bush is acting President for 8 hours while a malignant polyp is removed from Reagan's colon.
- November 19, 1985: Reagan and Mikhail Gorbachev hold a summit meeting in Switzerland.
- December 12, 1985: Reagan signs the Gramm-Rudman deficit reduction bill.
- October 22, 1986: Reagan signs a tax code revision into law.
- November 13, 1986: Reagan tells Congress that the US has been secretly selling arms to Iran, which violated federal laws against arms deal with Iran.
- November 25, 1986: Reagan admits that the $10 million to $30 million in arms sales were diverted from Iran to the Nicaraguan contras (Iran-Contra affair)
- February 3, 1987: Reagan vetoed the Water Quality Control Act but is overriden by Congress. EPA is allowed to regulate pollutants in US waters.
- March 4, 1987: Reagan openly takes reponsibility for US actions in the Iran-Contra affair in a televised speech. He claims it happened without his knowledge.
- December 7, 1987: Reagan meets with Gorbachev in Washington D.C. to sign the Intermediate Range Nuclear Forces Treaty.
- January 29, 1988: Reagan prohibits federal abortion assistance. It was illegal for federally-funded family-planning centers to provide assistance to women seeking abortions.
- November 8, 1988: VP George HW Bush is elected President. He won against Michael Dukakis.
- January 11, 1989: Reagan says bye.
After his second term, Reagan and his second wife Nancy moved back to Los Angeles, California. In 1994, Reagan himself revealed that he was recently diagnosed with the Alzheimer's disease. He died on June 5, 2004 at the age of 93.
View more information on Ronald Reagan here!


Toggle navigation
Post
It
Home
Design
Games
alpha releases
Top down shooter
beta releases
Catch it
Jump'n'run
Contact
login


Dana's Nails
Home
Galleries
Price list
More
Dana's Nails
The passion for perfection !!
Dana's nails is mobile nail technician service that busy stylish people of Bedford and surrounding area allways have their nails in perfect shape.


{% extends "base.html" %} {% block title %}
Medieval catalogues > SECULAR INSTITUTIONS: Secular Colleges > London, St Peter-upon-Cornhill > Memoranda, Michaelmas 1548 to Michaelmas 1551
{% endif %}5 identified entries found.
All data was derived from the List of Identifications by Professor Richard Sharpe.
{% if not printing %}
A key to codes used in the List is available (opens in new tab).{% endif %}


{%extends "registration/base.html"%} {% load bootstrap3 %} {% block content %}
Do you already have an account?Sign In


|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.AsyncBoxView.ChildLocator
public class AsyncBoxView.ChildLocator
A class to manage the effective position of the child views in a localized area while changes are being made around the localized area. The AsyncBoxView may be continuously changing, but the visible area needs to remain fairly stable until the layout thread decides to publish an update to the parent.
| Field Summary | |
|---|---|
protected Rectangle |
childAlloc
A shape to use for the child allocation to avoid creating a lot of garbage. |
protected Rectangle |
lastAlloc
The last seen allocation (for repainting when changes are flushed upward). |
protected AsyncBoxView.ChildState |
lastValidOffset
The location of the last offset calculation that is valid. |
| Constructor Summary | |
|---|---|
AsyncBoxView.ChildLocator()
construct a child locator. |
| Method Summary | |
|---|---|
void |
childChanged(AsyncBoxView.ChildState cs)
Notification that a child changed. |
protected Shape |
getChildAllocation(int index)
Fetch the allocation to use for a child view. |
Shape |
getChildAllocation(int index,
Shape a)
Fetch the allocation to use for a child view. |
int |
getViewIndexAtPoint(float x,
float y,
Shape a)
Fetches the child view index at the given point. |
protected int |
getViewIndexAtVisualOffset(float targetOffset)
Locate the view responsible for an offset into the box along the major axis. |
void |
paintChildren(Graphics g)
Paint the children that intersect the clip area. |
protected void |
setAllocation(Shape a)
Copy the currently allocated shape into the Rectangle used to store the current allocation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AsyncBoxView.ChildState lastValidOffset
protected Rectangle lastAlloc
protected Rectangle childAlloc
| Constructor Detail |
|---|
public AsyncBoxView.ChildLocator()
| Method Detail |
|---|
public void childChanged(AsyncBoxView.ChildState cs)
public void paintChildren(Graphics g)
public Shape getChildAllocation(int index, Shape a)
public int getViewIndexAtPoint(float x, float y, Shape a)
x
- the X coordinate >= 0y
- the Y coordinate >= 0a
- the allocation to the View
protected Shape getChildAllocation(int index)
protected void setAllocation(Shape a)
protected int getViewIndexAtVisualOffset(float targetOffset)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.


My current day job is working for Twistle in the healthcare space in Seattle. We are on a mission to improve patient outcomes and increase quality of care across the board. We do this with our automated messaging platform that pushes personalized information at just the right times, and promotes patient adherance to prep instructions, appointments, therapies, and medication. Before joining Twistle, I spent a number of years at Microsoft building a lot of really cool stuff, helping run the open source programs office (OSPO) and building out the Azure cloud business in it's early years.
I've been working professionally as a software developer for about 10 years, but before I fell in love with coding I got a degree from Penn State in Electrical Engineering. As amazing as it is to build things in the physical world with electronics and signals, there is nothing quite like the limitless possibilities of building with code.
I'm almost always making something and I have had more failed ideas than I can keep track of, but plenty of successes too! If you want to know more about what I'm up to right now, please feel free to reach out.


Developed with the sponsorship of Defense Advanced Research Projects Agency (DARPA).
Permission is hereby granted, free of charge, to any person obtaining a copy of this data, including any software or models in source or binary form, as well as any drawings, specifications, and documentation (collectively “the Data”), to deal in the Data without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Data, and to permit persons to whom the Data is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Data.
 IN NO EVENT SHALL THE AUTHORS, SPONSORS, DEVELOPERS, CONTRIBUTORS, OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE DATA OR THE USE OR OTHER DEALINGS IN THE DATA. )
A simplified description of the set of expressions for AGREE is presented below.
RelateOp::=
'<' | '<=' | '>' | '>=' | '=' | '<>' | '!=';
QID::= ID '::' ID ;
NestedDotID ::= ID ('.' NestedDotID)? ;
Literal :: = Boolean_literal | Integer_literal | Real_literal ;
Expr ::= Literal
| ID
| QID
| NestedDotId
| ID '(' Expr_List ')'
| 'pre' '(' Expr ')'
| 'prev' '(' Expr ',' Expr ')'
| 'event' '(' NestedDotID ')'
| 'floor' '(' Expr ')'
| 'real' '(' Expr ')'
| 'Get_Property' '(' Expr ',' AADL_Property ')'
| 'this' ('.' NestedDotId)?
| '(' Expr ')'
| RecordUpdateExpr
| ArrayUpdateExpr
| ('-' | 'not') Expr
| Expr ('+' | '-' | '\*' | '/' | 'div'| 'mod') Expr
| Expr RelateOp Expr
| Expr ('and' | 'or' ) Expr
| Expr ('->' | '=>' | '<=>' ) Expr
| 'if' Expr 'then' Expr 'else' Expr ;
Expr_List ::= Expr ',' Expr_List | Expr ;
The order of precedence (from lowest to highest) is as follows:
->
=>
<=>
or
and
< | <= | > | >= | = | <> |!=
+ | -
* | / | div | mod
unary minus | not
if then else
prev | next | Get_Property
ID | QID | NestedDotID | Literal | pre | this | ()
Therefore, x + if y then a else b * prev(z.f - 1, 0)
would be parsed as follows:
x + (if y then a else (b * (prev((z.f) – 1, 0))))
The meaning of the arithmetic, relational, and Boolean operators is straightforward. If/then/else is an expression, not a statement; it behaves like the ?
operator in Java. So, users can write:
x = if (b) then y else z ;
Expressions reason about the current state or past states of variables and can reference variables defined in equation statements or other identifiers in the AADL model. In the rest of this section, we describe different types of expressions in the order they are listed as alternatives to the grammar rule for Expr.
ID expressions are used to reference different AADL objects as well as AGREE variables and constants. Constants or variables must be defined locally (in the AGREE annex block or the enclosing definition), and they can be referred to by a single identifier ID.
Enumerator expressions are ID expressions referencing an enumerator literal. However, the syntax differs between enumerations defined in AADL and enumerations defined in AGREE. For AGREE enumerations, enumerator expressions are merely ID expressions naming enumerator values. Using the types defined in Enumeration Types the use of spade
, heart
, club
, and diamond
as identifiers are all valid AGREE enumeration expressions.
For AADL enumerations a special syntax is required. The enum
keyword followed by the enumeration type and enumerator name is used as follows:
enum(Package::Color, Red)
A NestedDotID expression can have dots in between ID expressions, e.g., food.bar.biz
. It can be used to refer to record types or variables of a subcomponent. For example, one could use the NestedDotID expression foo.bar to reference the input, output, or equation variable bar
of subcomponent food
within the implementation of some AADL component. A NestedDotID expression can also be used for inputs and outputs that are of record type: if x
is a record type containing field y
, then the notation x.y
is used.
Elements of arrays can be accessed by appending square brackets to an expression with array type and containing an integer-typed expression. For example:
eq arr : int[3];
eq n : int = arr[1];
Here the local variable n
takes the value of the first element of the array local variable arr
.
Note: For consistency with AADL, array index values are 1-based rather than zero based.
A node call expression is an ID of a defined node followed by parenthesis. If the node is defined in an AADL Package, then the ID should be the AADL Package name followed by a dot (.) and then the node name.
A Linearization Call Expression is an ID of a defined linearization expression followed by parenthesis. If the linearization expression is defined in an AADL Package, then the ID should be the AADL Package name followed by a dot (.) and then the ID for the expression. For the example linearization expression provided in Linearization Definitions, its ID “sq” can be used in other expressions like a non-recursive, pure function call. The following lemma statement provides one such example.
eq y : real;
lemma "sq() range positive" : sq(y) <= -0.10;
Arrow Expression. The arrow expression evaluates to the value of the expression of the left hand side of the arrow on the initial step. Otherwise it evaluates to the value of the expression on the right hand side of the arrow. The arrow expression is used with the pre expression to reason about past values of variables. For example, we can define a variable in an AGREE contract that starts at zero and increments by one each step in time using an equation statement:
eq count: int = 0 -> pre(count) + 1;
Previous Value Expression. A previous value expression evaluates to the value of its argument on the previous time frame. It should that it be guarded by an arrow expressions as its value is undefined on the initial step.
The previous value expression defines an initialized stream. So, if we write:
eq x : int = prev(y + 1, 0);
In the initial instant, x
is equal to 0. In all subsequent instants, x
is equal to the previous value of y + 1
. If we examine the evolution of x
and y
over a time window of ten steps, it is relatively straightforward to see.
| Time Instant | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| y | 4 | 5 | 8 | 7 | 3 | 12 | 6 | 9 | 1 | 3 |
| y+1 | 5 | 6 | 9 | 8 | 4 | 13 | 7 | 10 | 2 | 4 |
| x | 0 | 5 | 6 | 9 | 8 | 4 | 13 | 7 | 10 | 2 |
The arrow (->
) operator is the stream initialization operator. Given an expression x -> y
, in the initial instant in time, the value is equal to x
. In all subsequent instants, it is equal to y
. So, suppose we have:
eq x : bool = (false -> a);
Then, in the first instant in time, x
will be assigned “false” and in every other instant in time, it will be assigned “a”.
Note: A common mistake is to mis-type ->
for =>
(and vice-versa). This will often cause your model to return incorrect results. Please check for this error.
The =>
operator is the implication operator: if you write:
a => b
then a
and b
are expected to be Boolean expressions and the meaning of the operator is equivalent to (not a) or b
. So, writing:
x = (false => a)
Will assign x
to true in all time instants.
The pre expression is an uninitialized pre expression. Its value is undefined in the initial instant. This expression is expected to be used in combination with the arrow expression; this can yield expressions that are, on occasional, more terse than using the prev expression. However, the following equivalence always holds for arbitrary expressions x
and y
:
prev(x, y) <=> (y -> pre(x))
For novice users, we recommend using the initialized prev expression as it is less error prone than the ->
pre combination.
An event expression is a special predicate that is used to reason about AADL event data ports. For an input event data port, its semantics are such that it evaluates to true if a value is present on the event port and false otherwise. For an output event data port, its semantics are such that it evaluates true if data is being sent on the port and false otherwise.
A floor expression takes an expression of type real as an argument and returns an int equal to the floor of the number.
A real expression takes an expression of type int as argument and returns a real equal to its value.
A get property expression allows a user to reason about values of AADL properties in the model. The first argument is the relative path to an AADL component in the instance model or ‘this’ if the property exists in the component in which get property statement lives. The second argument is the name of the AADL property.
AGREE can reason over properties with unspecified values and of type AadlBoolean, AadlInteger, and AadlReal. Properties of other types (e.g. AadlString and AadlEnumeration) are not supported.
For properties where a value is associated, AGREE applies that value in analysis. For properties where a value is not associated, AGREE treats these as an unbound input and generates a constraint that the value does not change from step to step in the analysis. Further, for the AadlInteger and AadlReal types AGREE recognizes range constraints and generate range constraint assertions into the logic.
An Unary Minus expression is used to negate integer or real valued expressions.
A Not Expression is used to negate boolean valued expressions.
In AGREE a record type is either an AADL Data Type Implementation containing Data subcomponents or may be defined directly in the AGREE annex as follows:
type foo = struct {a : bool, b : int};
eq bar : foo;
A record expression constructs a value that may be assigned to a variable of record type.
eq bar2 : foo = foo { a = true; b = 6 };
Record Update Expression are assignments to all or a specific field of a record type variable. For example, bar2 {a := false}
is a valid Record Update Expression, given definition for type foo
and variable bar2
as above.
The record update expression expects an expression of record type on the left hand side of the curly braces. It returns the same record as the left hand side expression except with its member IDs set to the value of the expression on the right hand side of the :=
;
An array expression constructs a value that may be assigned to a variable of matching array type or as an actual parameter in a node or function call. Value expressions must be provided for all elements of the array and be of type corresponding to the array element type.
eq a : int[3] = [| 1, 2, 3 |];
Array Update Expressions are assignments to all or specific elements of an array typed variable. Array update expressions have form similar to a
For example, arr [| 2 := 6, 3 := 12 |]
is a valid array update expression given that arr
is an array as defined above.
The array update expression expects an expression of array type on the left hand side of the [|
… |]
braces. It returns the same array as the left hand side expression except with its member elements at the index values to the left of the :=
are set to the values of the expressions on the right hand side of the :=
;
Note: For consistency with AADL, array index values are 1-based rather than zero based.
Arithmetic operations must be performed on expressions of the same type. They follow the standard order of precedence.  Some theorem provers do not reason about non-linear expressions. Non-linear integer arithmetic is undecidable and most theorem provers do not use a decidable decision procedure for non-linear real arithmetic. So it is recommended that you only use linear expressions.
Relation expressions can be performed on integers or reals, but not a combination of both. Equality can be used on Booleans as well.
Boolean expressions have the standard associative properties and order of precedence.


An intelligent analytics product for a complete reporting into enterprise hospital performance.
The product helps to consolidate, analyse both clinical as well as administrative and financial information across multiple facilities in different locations.
The inbuilt data warehouse solution acts as a central repository for all metrics, calculations and dashboard which helps to make informed decisions for planning, delivering better quality of care and increase operational performance.
To comply the non-disclosure agreement, have been limited with few designs and some of my work on—concept analysis, wireframes, prototypes, usability testing, design patterns and UI Specifications will be update upon receiving the approval!
User Experience (UX) Design including Concept Designs, User Research, Interaction Design, Usability and Information Architecture.


Automated Generation of LAT CAL DAC Settings XML Files
Early in the multi-tower I&T process, we realized that generating DAC settings for multiple towers was a tedious and possibly error-prone process if done by hand. In particular, 4 separate DAC settings files had to be generated for each of up to 16 towers. Even the advent of the genXXXsettings.py scripts created by Dan Wood, which performed the calculations and wrote the XML output for each of the settings files, did not relieve the tedium, as each script run requires a configuration file and command line to be set up. Clearly, a higher level of automation was required.
The four scripts get_slac_calibdac.py, build_acdsmooth.py, build_gensettings_cfg.py and gensettings.py automate the process of generating DAC settings using the genXXXsettings.py (genFLEsettings.py, genFHEsiettings.py, genLACsettings.py and genULDsettings.py) scripts. They are meant to operate in the LAT I&T environment, in that they assume run numbers and file names as generated by the I&T version of the calibDAC suite and subsequent pipeline analyses.
Note that three of these scripts (get_slac_calibdac.py, build_acdsmooth.py and gensettings.py) build a batch file of commands to execute. In the case of get_slac_calibdac.py, the commands are not part of the SAS software install (other than SSH/SCP), and can be run from anywhere if paths are set up to recognize SCP. The other batch files (generated by build_acdsmooth.py and gensettings.py) execute calibGenCAL python scripts and must be run from an environment in which the CALIBGENCALROOT environment variable is defined. The easiest way to do this is to â€œspawnâ€ a command prompt window from MRvcmt while calibGenCAL is selected as the current package. In order to avoid having to run any of these scripts in this environment, batch files that use calibGenCAL routines and hence require CALIBGENCALROOT to be set are not executed from within the Python scripts that produce them (i.e. build_acdsmooth.py and gensettings.py)
The scripts are run sequentially: get_slac_calibdac.py takes as input run numbers of â€œsuite summaryâ€ runs associated with the execution of the calibDAC suite. One run number is required for each module for which settings are to be generated. The script then builds a batch file of SCP commands that copy the relevant files (relgain and characterization files) from the SLAC archive to the local computer on which the genXXXsettings scripts will be run. Finally, the script executes the batch file.
build_acdsmooth.py identifies files required for each module using the file names and creates and executes a batch file with adcsmooth commands to produce â€œfilteredâ€ characterization files for fle, fhe, lac and uld. The filtered files have â€œ_filteredâ€ postpended to the filename. build_adcsmooth.py also generates validation plots & logs using charPlot.py & charVal.py scripts.
build_gensettings_cfg.py identifies the files for each module and, using the file names, builds a configuration file for gensettings.py, containing the file names and module configuration information for each module and genXXXsettings.py script.
gensettings.py uses the configuration file built by build_gensetting_cfg.py (or by hand) to generate separate config files for each genXXXsettings.py run (one per desired settings table and module). It also builds a batch file of the commands that will run the genXXXsettings.py scripts. This batch file will also generate validation plots & logs for the new dac settings scripts by invoking the dacVal.py script.
Note: filename conventions unfortunately change from time to time. We try to keep the scripts working w/ current conventions. You may need to edit the glob patterns by hand (or rename your input files) if working on older data.
Command Line Usage: Most calibGenCAL python scripts will print a usage/help statement to screen if they are invoked with no arguments.
Launcher Scripts:
For each calibGenCAL python script XYZ.py there exists on XYZ.bat
script for windows shell use and one XYZ.sh launcher script for Linux
shell use. The 'xxx.sh' scripts have UNIX executable permission
bit set and CMT setup of calibGenCAL package will put these launcher
scripts in the system path. The user can launch any calibGenCAL
python script simply by typing the name of the appropriate
launcher script into the shell. All commandline paramters to the
launcher script will be passeed directly onto the python script.
End2End Run-Thru quick reference:
the file $CALIBGENCALROOT/doc/calibGenCAL_configurationRecord_howto.txt
contains minimal instructions for a basic runthrough of the gensettings
script suite.
get_slac_calibdac.py is controlled by a config file and run without any command line arguments. The following is a sample config file, which must be named get_slac_calibdac.cfg and must be located in the current folder:
[SETUP]
slacuser=strickmn
batfileroot=str34_scp
[FM112]
summary=139005695
disk=u19
[FM117]
summary=135006789
fle2adcrun=138001234
lac2adcrun=138001236
disk=u21
The config file items are described below:
[SETUP]
Required section
Options
slacuser - (required) specifies username for SSH logon to slac unix cluster. Note that user must have the standard GLAST/SAS software environment SSH setup installed, which allows SSH login via public/private key rather than passwords
batfileroot - (optional) specifies the filename root for the batch file output which contains the SCP commands to execute. If not present, default of scpcmds is used. batfileroot can contain path information as well as a filename root, but should use forward slashes (/) to separate folders
[FMXXX]
At least one section required
Each section contains information for one module (XXX is the module serial number, 112 and 117 in the sample)
Options
summary - (required unless all other run numbers are set) specifies the I&T pipeline run number of the â€œsuite summaryâ€ for the desired calibDAC run. If summary is specified, and no individual run numbers are included, the run numbers of the scripts that produce the desired products are constructed from the summary run number as follows:
|
Script |
Product |
Run |
|
calu_pedestals_ci |
pedestals |
summary - 6 |
|
Calf_gain_p01 |
relgain |
summary - 5 |
|
Calf_trg_p03 |
fle2adc |
summary - 4 |
|
Calf_trg_p03 |
fhe2adc |
summary - 3 |
|
Calf_supp_p01 |
lac2adc |
summary - 2 |
|
Calf_rng_p01 |
uld2adc |
summary - 1 |
Note that very early calibDAC runs had calu_init runs interspersed, resulting in a different relationship of script run number to summary. These are not currently handled correctly.
relgainrun, fle2adcrun, fhe2adcrun, lac2adcrun, uld2adcrun, pedestalrun - (optional) allow the default run numbers derived from summary to be overridden or skipped altogether. If any of these options is set to a run number, that run is used in lieu of that derived from summary. If the option is set to â€˜skipâ€™, that product is not copied
disk - (optional) specifies the name of the disk on which all the products for the module can be found (they all must be on the same disk). Defaults to u21. The path used to point at to products at SLAC is /nfs/garm/g/glast/DDD/Integration/rawData/RRRRRRRRR where DDD is the disk name and RRRRRRRRR is the run number
Outputs from get_slac_calibdac.py include the batch file of SCP commands, the downloaded files that result from execution of the batch file, and a log file from the batch file execution. This batch file may be run either in Windows or Linux/UNIX.
build_acdsmooth.py is controlled by a configuration file and a command line parameter. The command line parameter looks like -f fileroot or --file fileroot where fileroot is the path and root of the input configuration file. If the command line argument is not present, the input configuration filename defaults to build_adcsmooth.cfg in the current folder. The following is a sample config. File:
[FM104]
[FM103]
flename = skip
fhename = test123.xml
[FM105]
[FM102]
[FM107]
[FM106]
[FM110]
[FM108]
Note that most of the module sections are empty. This is the normal mode of operation, in which build_adcsmooth.py finds the required characterization files to filter using pattern matching on the file names. If it finds more than one file matching the pattern, it terminates with an error. Options include adding filenames to override the automatic filename determination or adding â€œskipâ€ to not process that particular file. These are shown in the [FM103] section.
The patterns used by the automatic pattern matching default are shown in the following table:
|
Type of Characterization File |
Pattern matching code (matched using glob)) |
|
FLE (option flename) |
'/*fle2adc_*'+idet+'*_filtered*.xml' |
|
FHE (option fhename) |
'/*fhe2adc_*'+idet+'*_filtered*.xml' |
|
LAC (option lacname) |
'/*lac2adc_*'+idet+'*_filtered*.xml' |
|
ULD (option uldname) |
'/*uld2adc_*'+idet+'*_filtered*.xml' |
Outputs from build_acdsmooth.py include a Windows batch file (adcsmooth.bat) and a UNIX .sh script (adcsmooth.sh) both containing acdsmooth.py run commands. When executed (outside of the script), these result in filtered characterization files, with â€œ_filteredâ€ added to the end of each file name.
build_gensettings_cfg.py is controlled by a configuration file and a command line parameter. The latter must look like -f fileroot or --file fileroot, where fileroot is the path and name root of the input configuration file. If the command line argument is not present, the input configuration filename defaults to build_gensettings_cfg.cfg in the current folder. The following is a sample config file:
[FM105]
filepath=.
config=1
tower=4
[FM102]
filepath=.
config=1
tower=5
[CFG1]
legain=5
hegain=15
hegainmu=0
lac=2
fle=100
fhe=1
adcmargin=50
[OUTPUT]
outputpath=./mydir
outfilename=gensettings_str34_8twr_flight.cfg
The config. Items are described below:
[FMXXX]
At least one section required
Options:
filepath - [required] specifies the path to the files to be searched (without a trailing slash). If the current directory is desired, enter â€œ.â€
config - [optional; defaults to 1] specifies configuration section to be used to define settings for this module. If set to 1, configuration section is labeled [CFG1], etc.
tower - [required] specifies the tower number to be used as both source and destination towers in the genXXXsettings configurations. Note that genXXXsettings.py currently requires all files for a given run have the same source tower value. If this is not the case (typically for relgain files), the file in question must be edited and the TEM ID or GEM ID tag (depending on file type) altered to be the same as the rest of files.
[CFGX]
At least one section required
Options
legain - [required] LE gain setting
hegain - [required] HE gain setting (flight mode)
hegainmu - [required] HE gain setting (muon mode)
lac - [required] LAC threshold setting in MeV
fle - [required] FLE threshold setting in MeV
fhe - [required] FHE threshold setting in GeV
adcmargin - [required] adcmargin setting for ULD setting calculation (ADC units)
[OUTPUT]
Optional section
Options
outfilepath - [optional; defaults to â€œ.â€] specifies path to output gensettings config file.
outfilename - [optional; defaults to â€œgensettings.cfgâ€] specifies name of output gensettings config file.
Output of build_gensettings_cfg.py includes a single configuration file for gensettings.py.
gensettings.py is controlled by a configuration file as produced by build_gensettings.py and optional command line parameters. The latter may be -f fileroot or --file fileroot where fileroot is the path and root of the input configuration file. Also accepted as an option is -m or --muon, which specifies that muon gain settings should be produced for FHE DAC files in addition to the nominal flight gain settings. If the --file command line parameter is not specified, the input configuration file name defaults to gensettings.cfg. A sample configuration file looks like:
[FM108]
adc2nrgname = .\135004384_T13_FM108_cal_adc2nrg.xml
biasname = .\135004348_T13_FM108_cal_bias.xml
relgainname = .\050817174256_FM108_CAL_relgain.xml
flename = .\050817174720_G5_FM108_CAL_fle2adc_filtered.xml
fhename = .\050817200154_G13_FM108_CAL_fhe2adc_filtered.xml
lacname = .\050817213823_G5_FM108_CAL_lac2adc_filtered.xml
uldname = .\050817214637_G5_FM108_CAL_uld2adc_filtered.xml
src = 13
dest = 13
config = 1
.
.
.
[CFG1]
legain = 5
hegain = 15
fhe = 1
lac = 2
adcmargin = 50
hegainmu = 0
fle = 100
Note that the config file can have as many [FMXXX] sections as required for the number of modules for which settings are being generated, and can have up to 10 [CFGX] sections. In real life, most applications will only require one [CFGX] section for all modules.
The config. Items are described below:
[FMXXX]
At least one section required
Options:
*name - [required] specifies the adc2nrg, bias,relgain, fle2adc, fhe2adc, lac2adc and uld2adc xml file path and name (current directory if no path specified). If fle, fhe, lac or uld is set to â€œskipâ€, a genXXXsettings config and batch command are not generated for that quantity.
src - [required] specifies source tower number. Must match the TEMID or GEMID tags in the source (i.e. adc2nrg, bias, etc.) files. All files must have the same source tower number. If they donâ€™t, they must be edited to be the same.
dest - [required] specifies the destination tower number to be used in the output DAC settings xml files
config - [required] specifies configuration section to be used to define settings for this module. If set to 1, configuration section is labeled [CFG1], etc.
[CFGX]
At least one section required
Options
legain - [required] LE gain setting
hegain - [required] HE gain setting (flight mode)
hegainmu - [required] HE gain setting (muon mode)
lac - [required] LAC threshold setting in MeV
fle - [required] FLE threshold setting in MeV
fhe - [required] FHE threshold setting in GeV
adcmargin - [required] adcmargin setting for ULD setting calculation (ADC units)
Output of gensettings.py includes a configuration file and command line in a batch file for each DAC settings xml file (fle, fhe, lac and uld) and module as specified by the gensettings configuration file. If all four settings files are requested for 16 modules, the output would consist of 64 configuration files (4 x 16) and one batch file with 64 command lines. As mentioned above, the batch file must be executed from an environment in which the CALIBGENCAL environment variable is defined.
Note: A sh script is generated in parallel w/ the batch file for use on Linux
The output configuration files are defined (for example, in the case of an FLE file) by the Python code fragment: fileroot+'_'+idet+"genFLE.cfg" where fileroot is the variable passed in the gensettings.py command line and idet is the module number expressed as, for example, FM104.
The batch file containing the command lines is named fileroot+â€.batâ€, the sh script is fileroot+".sh"
A sample command line from a batch file output looks like:
python %CALIBGENCALROOT%\python\genFLEsettings.py -V 100 gensettings_str34_8twr_flight_FM108genFLE.cfg<PHONE_NUMBER>40_G5_MeV100_FM108_CAL_fle.xml
This shows the use of the CALIBGENCALROOT environment variable (here for windows) and the naming convention for the xml output file from the genFLEsettings.py script. Note that the output file name starts with a time tag and includes, in this case, the gain and FLE setting values.


JavaScriptMVC's model and its associated plugins provide lots of tools around organizing model data such as validations, associations, lists and more. But the core functionality is centered around service encapsulation, type conversion, and events.
Of absolute importance to a model layer is the ability to get and set properties on the modeled data and listen for changes on a model instance. This is the Observer pattern and lies at the heart of the MVC approach - views listen to changes in the model.
Fortunately, JavaScriptMVC makes it easy to make any data observable. A great example is pagination. It's very common that multiple pagination controls exist on the page. For example, one control might provide next and previous page buttons. Another control might detail the items the current page is viewing (ex "Showing items 1-20"). All pagination controls need the exact same data:
We can model this data with JavaScriptMVC's $.Model like:
var paginate = new $.Model({
offset: 0,
limit: 20,
count: 200
});
The paginate variable is now observable. We can pass it to pagination controls that can read from, write to, and listen for property changes. You can read properties like normal or using the model.attr(NAME)
method:
assertEqual( paginate.offset, 0 );
assertEqual( paginate.attr('limit') , 20 );
If we clicked the next button, we need to increment the offset. Change property values with model.attr(NAME, VALUE)
. The following moves the offset to the next page:
paginate.attr('offset',20);
When paginate's state is changed by one control, the other controls need to be notified. You can bind to a specific attribute change with model.bind(ATTR, success( ev, newVal ) )
and update the control:
paginate.bind('offset', function(ev, newVal){
$('#details').text( 'Showing items ' + (newVal+1 )+ '-' + this.count )
})
You can also listen to any attribute change by binding to the 'updated.attr'
event:
paginate.bind('updated.attr', function(ev, newVal){
$('#details').text( 'Showing items ' + (newVal+1 )+ '-' + this.count )
})
The following is a next-previous jQuery plugin that accepts paginate data:
$.fn.nextPrev = function(paginate){
this.delegate('.next','click', function(){
var nextOffset = paginate.offset+paginate.limit;
if( nextOffset < paginate.count){
paginate.attr('offset', nextOffset );
}
})
this.delegate('.prev','click', function(){
var nextOffset = paginate.offset-paginate.limit;
if( 0 < paginate.offset ){
paginate.attr('offset', Math.max(0, nextOffset) );
}
});
var self = this;
paginate.bind('updated.attr', function(){
var next = self.find('.next'),
prev = self.find('.prev');
if( this.offset == 0 ){
prev.removeClass('enabled');
} else {
prev.removeClass('disabled');
}
if( this.offset > this.count - this.limit ){
next.removeClass('enabled');
} else {
next.removeClass('disabled');
}
})
};
There are a few problems with this plugin. First, if the control is removed from the page, it is not unbinding itself from paginate. We'll address this when we discuss controllers.
Second, the logic protecting a negative offset or offset above the total count is done in the plugin. This logic should be done in the model. To fix this problem, we'll need to add additional constraints to limit what values limit, offset, and count can be. We'll need to create a pagination class.
JavaScriptMVC's model inherits from $.Class. Thus, you create a model class by inheriting from $.Model(NAME, [STATIC,] PROTOTYPE)
:
$.Model('Paginate',{
staticProperty: 'foo'
},{
prototypeProperty: 'bar'
})
There are a few ways to make the Paginate model more useful. First, by adding setter methods, we can limit what values count and offset can be set to.
Settter methods are model prototype methods that are named setNAME
. They get called with the val passed to model.attr(NAME, val)
and a success and error callback. Typically, the method should return the value that should be set on the model instance or call error with an error message. Success is used for asynchronous setters.
The following paginate model uses setters to prevent negative counts the offset from exceeding the count by adding setCount
and setOffset
instance methods.
$.Model('Paginate',{
setCount : function(newCount, success, error){
return newCount < 0 ? 0 : newCount;
},
setOffset : function(newOffset, success, error){
return newOffset < 0 ? 0 : Math.min(newOffset, !isNaN(this.count - 1) ? this.count : Infinity )
}
})
Now the nextPrev plugin can set offset with reckless abandon:
this.delegate('.next','click', function(){
paginate.attr('offset', paginate.offset+paginate.limit);
})
this.delegate('.prev','click', function(){
paginate.attr('offset', paginate.offset-paginate.limit );
});
We can add default values to Paginate instances by setting the static defaults
property. When a new paginate instance is created, if no value is provided, it initializes with the default value.
$.Model('Paginate',{
defaults : {
count: Infinity,
offset: 0,
limit: 100
}
},{
setCount : function(newCount, success, error){ ... },
setOffset : function(newOffset, success, error){ ... }
})
var paginate = new Paginate({count: 500});
assertEqual(paginate.limit, 100);
assertEqual(paginate.count, 500);
This is getting sexy, but the Paginate model can make it even easier to move to the next and previous page and know if it's possible by adding helper methods.
Helper methods are prototype methods that help set or get useful data on model instances. The following, completed, Paginate model includes a next
and prev
method that will move to the next and previous page if possible. It also provides a canNext
and canPrev
method that returns if the instance can move to the next page or not.
$.Model('Paginate',{
defaults : {
count: Infinity,
offset: 0,
limit: 100
}
},{
setCount : function( newCount ){
return Math.max(0, newCount );
},
setOffset : function( newOffset ){
return Math.max( 0 , Math.min(newOffset, this.count ) )
},
next : function(){
this.attr('offset', this.offset+this.limit);
},
prev : function(){
this.attr('offset', this.offset - this.limit )
},
canNext : function(){
return this.offset > this.count - this.limit
},
canPrev : function(){
return this.offset > 0
}
})
Thus, our jQuery widget becomes much more refined:
$.fn.nextPrev = function(paginate){
this.delegate('.next','click', function(){
paginate.attr('offset', paginate.offset+paginate.limit);
})
this.delegate('.prev','click', function(){
paginate.attr('offset', paginate.offset-paginate.limit );
});
var self = this;
paginate.bind('updated.attr', function(){
self.find('.prev')[paginate.canPrev() ? 'addClass' : 'removeClass']('enabled')
self.find('.next')[paginate.canNext() ? 'addClass' : 'removeClass']('enabled');
})
};
We've just seen how $.Model is useful for modeling client side state. However, for most applications, the critical data is on the server, not on the client. The client needs to create, retrieve, update and delete (CRUD) data on the server. Maintaining the duality of data on the client and server is tricky business. $.Model is used to simplify this problem.
$.Model is extremely flexible. It can be made to work with all sorts of services types and data types. This book covers only how $.Model works with the most common and popular type of service and data type: Representational State Transfer (REST) and JSON.
A REST service uses urls and the HTTP verbs POST, GET, PUT, DELETE to create, retrieve, update, and delete data respectively. For example, a tasks service that allowed you to create, retrieve, update and delete tasks might look like:
| ACTION | VERB | URL | BODY | RESPONSE |
|---|---|---|---|---|
| Create a task | POST | /tasks | name=do the dishes |
|
| Get a task | GET | /task/2 |
|
|
| Get tasks | GET | /tasks |
|
|
| Update a task | PUT | /task/2 | name=take out recycling |
|
| Delete a task | DELETE | /task/2 |
|
TODO: We can label the urls
The following connects to task services, letting us create, retrieve, update and delete tasks from the server:
$.Model("Task",{
create : "POST /tasks.json",
findOne : "GET /tasks/{id}.json",
findAll : "GET /tasks.json",
update : "PUT /tasks/{id}.json",
destroy : "DELETE /tasks/{id}.json"
},{ });
The following table details how to use the task model to CRUD tasks.
| ACTION | CODE | DESCRIPTION |
|---|---|---|
| Create a task |
|
To create an instance of a model on the server, first create an instance with Save checks if the task has an id. In this case it does not so save makes a create request with the task's attributes. Save takes two parameters:
|
| Get a task |
|
Retrieves a single task from the server. It takes three parameters:
|
| Get tasks |
|
Retrieves an array of tasks from the server. It takes three parameters:
|
| Update a task |
|
To update the server, first change the attributes of a model instance with Save takes the same arguments and returns the same deferred as the create task case. |
| Destroy a task |
|
Destroys a task on the server. Destroy takes two parameters:
|
The Task
model has essentially become a contract to our services!
Did you notice how the server responded with createdAt values as numbers like<PHONE_NUMBER>164
. This number is actually April 18th, 2011. Instead of getting a number back from task.createdAt
, it would be much more useful if it returns a JavaScript date created with new Date(1303173531164)
. We could do this with a setCreatedAt
setter. But, if we have lots of date types, this will quickly get repetitive.
To make this easy, $.Model lets you define the type of an attribute and a converter function for those types. Set the type of attributes on the static attributes
object and converter methods on the static convert
object.
$.Model('Task',{
attributes : {
createdAt : 'date'
},
convert : {
date : function(date){
return typeof date == 'number' ? new Date(date) : date;
}
}
},{});
Task now converts createdAt to a Date type. To list the year of each task, write:
Task.findAll({}, function(tasks){
$.each(tasks, function(){
console.log( "Year = "+this.createdAt.fullYear() )
})
});
Model publishes events when an instance has been created, updated, or destroyed. You can listen to these events globally on the Model or on an individual model instance. Use MODEL.bind(EVENT, callback( ev, instance ) )
to listen for created, updated, or destroyed events.
Lets say we wanted to know when a task is created and add it to the page. After it's been added to the page, we'll listen for updates on that task to make sure we are showing its name correctly. We can do that like:
Task.bind('created', function(ev, task){
var el = $('<li>').html(todo.name);
el.appendTo($('#todos'));
task.bind('updated', function(){
el.html(this.name)
}).bind('destroyed', function(){
el.remove()
})
})
Please continue to View.


If you are submitting code where the copyright is held by a corporation, then you need a signed CCLA. DWR joined the Dojo Foundation in 2007, and since then, they have been handling legal matters for us, including managing CLAs. As a result of this rather than signing the Getahead CCLA, we now request Dojo Foundation CCLAs. Since both CCLAs were based on the Apache CCLA, there is very little change.
The Dojo Foundation can accept fax, mail, or email a scans of the signed document.
Processing note: If you send a scanned CLA to the Dojo Foundation, then please copy [david at butterdev dot com]. That way we know to which foundation project the CLA is primarily aimed at.


A JavaScript Quiz about JavaScript
Welcome! This application will prompt you with a series of questions related to the JavaScript programming language. You will earn one point for each correct answer and zero for any incorrect answers. Additionally, 10 seconds will be subtracted from the clock if you answer incorrectly. If the timer runs out, the game ends.
QUIZ HEADER
Incorrect!
Correct!
All Done!
enter initials


Lawmaker: Ohio State should do ‘right thing' for abused men
by EndPlayCOLUMBUS, Ohio (AP) - The speaker of the Ohio House of Representatives says he wants Ohio State University to "do the right thing" for men who say they were sexually abused decades ago by a team doctor while school officials turned a blind eye.
Republican Speaker Larry Householder told reporters he would prefer to see the university resolve the matter without action in the Legislature, where a related proposal is pending.
About 300 men have brought federal lawsuits against Ohio State over its failure to stop now-deceased doctor Richard Strauss. Those lawsuits are in mediation toward a possible settlement.
The university apologized but has argued the legal claims are time-barred by law. Some accusers are advocating legislation that would create a window for them to sue under state law.
That proposal has stalled in a House committee.


BlocState class
Provides a BLoC model interface to a class. Provides a PublishSubject
stream that can be subscribed to for updates. Also exposes a StreamSink
and
an Observable
for more control over the output. Updates are typically
triggered by calling the publishUpdate
method.
Constructors
Properties
- controller ↔ BlocController
-
The enclosing controller for this state
read / write
-
sink
→ StreamSink<
BlocState> -
read-only
-
stream
→ Observable<
BlocState> -
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
dispose(
) → void -
Closes the underlying stream. Inheriting classes that overload this method must call
super.dispose()
.@mustCallSuper -
mutate(
void mutation()) → void - Executes the provided closure function, then notifies the state of a mutation. [...]
-
onError(
Object error, StackTrace stackTrace) → void -
Method that is called when the stream reports an error. Prints the error message by default.
@protected
-
postMutate(
) → void -
Method that is called when publishMutation is called, after the stream is notified. Does nothing by default.
@protected
-
preMutate(
) → void -
Method that is called when publishMutation is called but before the stream is notified. Does nothing by default.
@protected
-
publishMutation(
) → void -
Notify the underlying stream that the internal state has mutated. [...]
@protected
-
subscribeToMutations(
void onMutate(BlocState), { void onError(Error, StackTrace), void onDone() }) → StreamSubscription -
Registers the given callback methods with the underlying stream and returns
the resulting
StreamSubscription
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited


#include <properties.h>
Public Types | |
| using | const_iterator = std::map< std::string, Property >::const_iterator |
| using | iterator = std::map< std::string, Property >::iterator |
Public Member Functions | |
| iterator | begin () |
| const_iterator | begin () const |
| void | configureInitFrom (Property::SourceFlags source, const std::set< std::string > &properties={}) |
| allow initialization from given source for listed properties - always using the same name More... | |
| size_t | countDefined (const std::vector< std::string > &list) const |
| count number of defined properties from given list More... | |
| template<typename T > | |
| Property & | declare (const std::string &name, const std::string &description="") |
| declare a property for future use More... | |
| template<typename T > | |
| Property & | declare (const std::string &name, const T &default_value, const std::string &description="") |
| declare a property with default value More... | |
| iterator | end () |
| const_iterator | end () const |
| void | exposeTo (PropertyMap &other, const std::set< std::string > &properties) const |
| declare all given properties also in other PropertyMap More... | |
| void | exposeTo (PropertyMap &other, const std::string &name, const std::string &other_name) const |
| declare given property name as other_name in other PropertyMap More... | |
| const boost::any & | get (const std::string &name) const |
| Get the value of a property. Throws undeclared if unknown name. More... | |
| template<typename T > | |
| const T & | get (const std::string &name) const |
| Get typed value of property. Throws undeclared, undefined, or bad_any_cast. More... | |
| template<typename T > | |
| const T & | get (const std::string &name, const T &fallback) const |
| get typed value of property, using fallback if undefined. Throws bad_any_cast on type mismatch. More... | |
| bool | hasProperty (const std::string &name) const |
| check whether given property is declared More... | |
| void | performInitFrom (Property::SourceFlags source, const PropertyMap &other) |
| perform initialization of still undefined properties using configured initializers More... | |
| Property & | property (const std::string &name) |
| get the property with given name, throws Property::undeclared for unknown name More... | |
| const Property & | property (const std::string &name) const |
| void | reset () |
| reset all properties to their defaults More... | |
| template<> | |
| void | set (const std::string &name, const boost::any &value) |
| template<typename T > | |
| void | set (const std::string &name, const T &value) |
| set (and, if neccessary, declare) the value of a property More... | |
| void | set (const std::string &name, const char *value) |
| overloading: const char* is stored as std::string More... | |
| void | setCurrent (const std::string &name, const boost::any &value) |
| temporarily set the value of a property More... | |
Private Member Functions | |
| Property & | declare (const std::string &name, const Property::type_info &type_info, const std::string &description, const boost::any &default_value) |
| implementation of declare methods More... | |
Private Attributes | |
| std::map< std::string, Property > | props_ |
PropertyMap is map of (name, Property) pairs.
Conveniency methods are provided to setup property initialization for several properties at once - always inheriting from the identically named external property.
Definition at line 256 of file properties.h.
| using moveit::task_constructor::PropertyMap::const_iterator = std::map<std::string, Property>::const_iterator |
Definition at line 292 of file properties.h.
| using moveit::task_constructor::PropertyMap::iterator = std::map<std::string, Property>::iterator |
Definition at line 291 of file properties.h.
|
inline |
Definition at line 294 of file properties.h.
|
inline |
Definition at line 296 of file properties.h.
| void moveit::task_constructor::PropertyMap::configureInitFrom | ( | Property::SourceFlags | source, |
| const std::set< std::string > & | properties = {} |
||
| ) |
allow initialization from given source for listed properties - always using the same name
Definition at line 225 of file properties.cpp.
| size_t moveit::task_constructor::PropertyMap::countDefined | ( | const std::vector< std::string > & | list | ) | const |
count number of defined properties from given list
Definition at line 257 of file properties.cpp.
|
private |
implementation of declare methods
Definition at line 193 of file properties.cpp.
|
inline |
declare a property for future use
Definition at line 267 of file properties.h.
|
inline |
declare a property with default value
Definition at line 273 of file properties.h.
|
inline |
Definition at line 295 of file properties.h.
|
inline |
Definition at line 297 of file properties.h.
| void moveit::task_constructor::PropertyMap::exposeTo | ( | PropertyMap & | other, |
| const std::set< std::string > & | properties | ||
| ) | const |
declare all given properties also in other PropertyMap
Definition at line 215 of file properties.cpp.
| void moveit::task_constructor::PropertyMap::exposeTo | ( | PropertyMap & | other, |
| const std::string & | name, | ||
| const std::string & | other_name | ||
| ) | const |
declare given property name as other_name in other PropertyMap
Definition at line 220 of file properties.cpp.
| const boost::any & moveit::task_constructor::PropertyMap::get | ( | const std::string & | name | ) | const |
Get the value of a property. Throws undeclared if unknown name.
Definition at line 253 of file properties.cpp.
|
inline |
Get typed value of property. Throws undeclared, undefined, or bad_any_cast.
Definition at line 323 of file properties.h.
|
inline |
get typed value of property, using fallback if undefined. Throws bad_any_cast on type mismatch.
Definition at line 331 of file properties.h.
| bool moveit::task_constructor::PropertyMap::hasProperty | ( | const std::string & | name | ) | const |
check whether given property is declared
Definition at line 203 of file properties.cpp.
| void moveit::task_constructor::PropertyMap::performInitFrom | ( | Property::SourceFlags | source, |
| const PropertyMap & | other | ||
| ) |
perform initialization of still undefined properties using configured initializers
Definition at line 271 of file properties.cpp.
| Property & moveit::task_constructor::PropertyMap::property | ( | const std::string & | name | ) |
get the property with given name, throws Property::undeclared for unknown name
Definition at line 208 of file properties.cpp.
|
inline |
Definition at line 289 of file properties.h.
| void moveit::task_constructor::PropertyMap::reset | ( | ) |
reset all properties to their defaults
Definition at line 266 of file properties.cpp.
| void moveit::task_constructor::PropertyMap::set | ( | const std::string & | name, |
| const boost::any & | value | ||
| ) |
Definition at line 238 of file properties.cpp.
|
inline |
set (and, if neccessary, declare) the value of a property
Definition at line 304 of file properties.h.
|
inline |
overloading: const char* is stored as std::string
Definition at line 313 of file properties.h.
| void moveit::task_constructor::PropertyMap::setCurrent | ( | const std::string & | name, |
| const boost::any & | value | ||
| ) |
temporarily set the value of a property
Definition at line 249 of file properties.cpp.
|
private |
Definition at line 258 of file properties.h.


About Me
I am a 22 year old avid software programmer that enjoys tinkering with both the software and hardware space. I built
my own desktop computer from the knowledge I amassed watching some great influential tech Youtubers. Apart from tech,
I also play piano and I am very involved in weight lifting.


OS simulator
Home
Wiki
Single-Instance Resource Deadlock Detection
Clear Data
Number of Resources:
Number of Processes:
Run


Xylomancy is the art of divination using twigs. A list of the various -omancys would no doubt be diverting, but you can look it up elsewhere. One tool of divination usually absent from the reference books, however, is Clancyomancy, the technique of predicting the future using fat paperbacks by Tom Clancy purchased from airport bookstalls. Please note that success in this art takes years of training, and should not be attempted by the ingénue.


Incorrect password!
You must be a member to access the site. If you want access, please ping me @srampall.


常见问题
Interrogative answers
{$val.name}
⋅ {$va.name}
Resource download
百度网盘: {$val.url}
SERVICE NETWORK
省级代理
{$val.address} 联系电话：{$val.tel}


<% include view/sidebar.html %>
Upload Artwork
Title:
Subtitle:
Date time:
Status:
Draft
Public
Archived
Type:
3D Rendering
Special Effects
Video Clips
Photography
Graphics Design
3D Model
Instrument
Music Sheet
Development
Illustration
Source Type:
None
Image
Video
3D Object
Pdf
Source Code
Source: (Google Drive, Vimeo, etc.)
Softwares: (Divide each software with ,)
Tags: (Divide each tag with ,)
Cover: (Preferrably 1280 * 720)
Thumbnail: (200 * 200)
Description
Submit


Health Teacher
Some quick example text to build on the card title and make up the bulk of the card's content.
Read MoreHealth Teacher
Some quick example text to build on the card title and make up the bulk of the card's content.
Read MoreHealth Teacher
Some quick example text to build on the card title and make up the bulk of the card's content.
Read MoreHealth Teacher
Some quick example text to build on the card title and make up the bulk of the card's content.
Read MoreHealth Teacher
Some quick example text to build on the card title and make up the bulk of the card's content.
Read MoreHealth Teacher
Some quick example text to build on the card title and make up the bulk of the card's content.
Read MoreHealth Teacher
Some quick example text to build on the card title and make up the bulk of the card's content.
Read MoreHealth Teacher
Some quick example text to build on the card title and make up the bulk of the card's content.
Read Moreget 400 of online courses for free
by mr zuma
332
days
7
hours
23
minutes
26
seconds
limited offer, hurry up!
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Voluptas cupiditate aut illum,
enim placeat odio eos explicabo
velit laudantium soluta, vitae laborum
repellat magnam quidem sint
vero cumque quod consequuntur.


Based on verbatim interviews, The Scar Test explores life inside Yarl’s Wood Detention Centre, a place in which those seeking safe haven are thrown into a dark world under lock and key where their lives are regulated, privacy is non-existent and where every detainee has a story to tell.
Find out more!Set in rural Derry during the height of the Troubles, The Ferryman tells the story of harvest time at the Carney farmhouse. Buzzing with activity, the household gets ready for a hard day of work and a long night of celebration. But this year, there will be a visitor. Directed by Sam Mendes (Spectre, Skyfall), this ambitious production is headed up by multi-award-winner Paddy Considine and features Genevieve O’Reilly and Laura Donnelly.
Find out more!Alice is a scientist. She lives in Geneva. As the Large Hadron Collider starts up in 2008, she is on the brink of the most exciting work of her life, searching for the Higgs Boson. Jenny is her sister. She lives in Luton. She spends a lot of time Googling. When tragedy throws them together, the collision threatens them all with chaos.
Find out more!


---
layout: post
title: notes this is the last loaf in the batch so it
date: '2011-05-04T23:09:00+02:00'
tags:
- bread
- kitchen
tumblr_url: http://dotmr.tumblr.com/post/5209050842/notes-this-is-the-last-loaf-in-the-batch-so-it
---
Notes: This is the last loaf in the batch so it has been in the fridge for about a week. I only let it rise for 60 minutes (oven preheat only 60 minutes as well). I cooked for 40 minutes rather than 35. Haven’t cut it yet but looks and smells great.
Next up: changing the recipe a bit.


Awesome Class Time Table
Created with
by bksahu
No Class, Yay!
00 h
00 m
00 s
Today
Time
Subject
9:00 - 10:00
No Class, Yay!
10:00 - 11:00
No Class, Yay!
11:00 - 12:00
No Class, Yay!
12:00 - 01:00
No Class, Yay!
02:00 - 05:00*
No Class, Yay!
*On Saturdays class ends at 03:00


Trader Shikon:
Your reputation as a valiant warrior grows everyday, along with the joy in my heart! I now hope that before long, we'll be able to settle in the promised land!
I've been ordered to supply a higher-level pouch to you, but unfortunately, I can't give you the strongest armor yet! Come back when you've had more experience, and are qualified to open the box.
Bring me a Nepenthes Seed and I'll give you whatever you want! Care to take a look?
"I want to buy one of the Varka's specialty products."
Quest


|
||||||||||
| PREV NEXT | FRAMES NO FRAMES |
| Packages that use Predictions | |
|---|---|
| kdl.prox.model2.common.predictions | |
| kdl.prox.model2.rbc | |
| kdl.prox.model2.rdn | |
| kdl.prox.model2.rdn.modules.statistic | |
| kdl.prox.model2.rpt |
| Uses of Predictions in kdl.prox.model2.common.predictions |
|---|
| Methods in kdl.prox.model2.common.predictions that return Predictions | |
|---|---|
Predictions |
Predictions.normalizeForAll()
|
Predictions |
Predictions.removePrediction(java.lang.String subgID)
Removes the predictions for a subgraph |
Predictions |
Predictions.setPredictions(NST subgIDs,
ProbDistribution classLabelDistribution)
Stores the class label distribution for a set of subgraphs, merging the distributions for all those subgraphs that are already defined in me. |
Predictions |
Predictions.setPredictions(Predictions predictions)
Adds to the current set of predictions from another set, merging the distributions for all those subgraphs that are already defined in me. |
Predictions |
Predictions.setTrueLabel(java.lang.String subgID,
java.lang.String label)
Sets the true label for a given subg |
Predictions |
Predictions.setTrueLabels(Container cont,
AttributeSource trueClass)
Sets the true labels for an entire container |
| Methods in kdl.prox.model2.common.predictions with parameters of type Predictions | |
|---|---|
double |
Predictions.compare(Predictions other)
Compares two predictions, returning the count of different predictions |
Predictions |
Predictions.setPredictions(Predictions predictions)
Adds to the current set of predictions from another set, merging the distributions for all those subgraphs that are already defined in me. |
| Uses of Predictions in kdl.prox.model2.rbc |
|---|
| Methods in kdl.prox.model2.rbc that return Predictions | |
|---|---|
Predictions |
RBC.apply(Container testCont)
Uses the learned Conditional Probability Distributions to estimate values for the class label of unseen subgraps |
| Uses of Predictions in kdl.prox.model2.rdn |
|---|
| Methods in kdl.prox.model2.rdn that return types with arguments of type Predictions | |
|---|---|
java.util.Map<RPT,Predictions> |
RDN.apply(java.util.Map<RPT,Container> modelsToTestConts,
int maxIterations)
Apply the RDN to a set of containers one for each class label. |
java.util.Map<RPT,Predictions> |
RDN.apply(org.python.core.PyDictionary modelsToTestConts,
int maxIterations)
|
| Uses of Predictions in kdl.prox.model2.rdn.modules.statistic |
|---|
| Methods in kdl.prox.model2.rdn.modules.statistic that return types with arguments of type Predictions | |
|---|---|
java.util.Map<RPT,Predictions> |
RDNStatisticModule.getPredictions()
|
java.util.Map<RPT,Predictions> |
DefaultStatisticModule.getPredictions()
|
| Uses of Predictions in kdl.prox.model2.rpt |
|---|
| Methods in kdl.prox.model2.rpt that return Predictions | |
|---|---|
Predictions |
RPT.apply(Container testContainer)
Apply the learned RPT to a container. |
Predictions |
RPT.apply(Container testContainer,
NSTCache nstCache)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES |


23 of the world's most beautiful restaurants, Business Insider - Business Insider Singapore
by Ciara Appelbaum- An excellent dining experience comes down to more than just the food.
- Across the world, restaurants have taken exquisite design to the next level.
- From rooftops with unobstructed views of city skylines to a Wes Anderson-inspired restaurant in India, these are some of the most beautiful restaurants in the world.
- Visit Insider’s homepage for more stories.
While excellent food is paramount, ambiance is another huge factor when it comes to dining out.
Whether you seek stunning views, unique locations, or candlelit romance, these are 21 of the world’s most breathtaking restaurants.
Sirocco, Bangkok, Thailand
You might get vertigo at Sirroco, which is dizzyingly perched on the 63rd floor of the 5-star Lebua Bangkok hotel – 820 feet in the sky. The restaurant and its panoramic views of the city below are so popular among visitors that guests are advised to make a reservation weeks in advance.
Click here to learn more about Sirocco »
Ristorante Grotta Palazzese, Polignano a Mare, Italy
Tucked away in a dimly lit limestone cavern with views of the crashing waters of the Adriatic Sea, it’s no wonder Ristorante Grotta Palazzese has repeatedly been voted the most romantic restaurant in the world.
Click here to learn more about Ristorante Grotta Palazzese »
Ithaa Undersea Restaurant, Maldives
At Ithaa, a restaurant at the Hilton Conrad in the Maldives, visitors can dine 16 feet below sea level while surrounded by panoramic views of the bustling ocean and marine life, and even the occasional snorkeler.
Click here to learn more about Ithaa Undersea Restaurant »
Restaurant Lasserre, Paris, France
Nothing says “glamour” quite like Paris does, and Restaurant Lasserre, located just off the Champs-Élysées, takes the cake with its gold accents, giant chandeliers, and Michelin-Starred haute-cuisine.
Click here to learn more about Restaurant Lasserre »
Sheesh Mahal, Udaipur, India
This open-air restaurant, located in The Leela Palace Udaipur, lets guests take in outstanding views of Pichola Lake while dining under the stars.
Click here to learn more about Sheesh Mahal »
Westlight, Brooklyn, New York
Located in Brooklyn, New York, this stylish, glassed-in cocktail bar and restaurant has views of Manhattan that are so incredible they belong on the big screen.
Click here to learn more about Westlight »
Mozaic, Bali, Indonesia
Mozaic seems more like a tropical oasis than a restaurant, as guests dine on award-winning wine and food in the middle of a lush garden.
Click here to learn more about Mozaic»
Agrikol, Montreal, Québec, Canada
Co-owned by artist Roland Jean, this hip and colorful, super stylish French-Caribbean restaurant in Montreal feels like an island getaway year-round.
Click here to learn more about Agrikol »
Ali Barbour’s Cave Restaurant, Diani Beach, Kenya
At Ali Barbour, guests can dine inside of a cave that is thought to be between 120,000 and 180,000 years old. If that wasn’t magical enough, the cave is covered in candles, and open to the stars above.
Click here to learn more about Ali Barbour’s Cave Restaurant »
Canlis, Seattle, Washington
This upscale, fine-dining restaurant in the heart of Seattle has stunning views of the city and of Lake Union that rival its incredible tasting menu.
Click here to learn more about Canlis »
Ristorante La Sponda, Positano, Italy
Nestled in the picturesque city of Positano on Italy’s famed Amalfi Coast is the Michelin-starred Ristorante La Sponda. Arched floor-to-ceiling windows overlooking the sea and vine-coated roofs of the town make this charming restaurant an experience to remember.
Click here to learn more about Ristorante La Sponda »
Nautika, Dubrovnik, Croatia
At Nautika, guests can enjoy unforgettable views of the Adriatic Sea, as well as the historic fortresses of Lovrijenac and Bokar. The celebrity hangout has hosted stars like Eva Longoria, Dick Cheney, and Roger Moore.
Click here to learn more about Nautika »
Clos Maggiore, London, England
Clos Maggiore’s flowery interior and crackling fireplace will reignite any spark, and was voted world’s most romantic restaurant in 2016. For an extra beautiful dining experience, request their enchanting conservatory with its retractable roof.
Click here to learn more about Clos Maggiore »
Turandot, Moscow, Russia
Located inside Turandot Palace, which is rumored to have cost a whopping 50 million dollars to build, Turandot is dripping in luxury, with plush velvet seating, gold accents, and frescoed ceilings.
Click here to learn more about Turandot »
El Farallón, Cabo San Lucas, Mexico
This stunning seaside restaurant is carved into rocks on the very tip of Cabo San Lucas, and an extremely picturesque place to watch the sunset.
Click here to learn more about El Farallón »
Tosca, Hong Kong
Located inside the Ritz-Carlton hotel in Hong Kong, this chic restaurant stuns with lavish décor, like fountains and intricate chandeliers. The epic views of Hong Kong don’t hurt either.
Click here to learn more about Tosca »
Elements, Scottsdale, Arizona
Guests can enjoy award-winning cuisine while overlooking Camelback Mountain through floor-to-ceiling windows.
Click here to learn more about Elements »
Dionysos Zonars, Athens, Greece
With unrivaled views of the ancient Acropolis, dining at Dionysos Zonars is heaven for art buffs. The art lesson continues, however, as the interior was designed by Greek painter Yannis Moralis, and ceramist Helen Bernardaki.
Click here to learn more about Dionysos Zonars »
Terasa U Zlaté studně, Prague, Czech Republic
Terasa U Zlaté studně’s features a dazzling terrace overlooking the rooftops of Prague. While the building dates back to 1528, the restaurant opened around 1900, and predates the hotel on which it sits. In the summer, guests can use a private gate to visit the Royal Gardens of Prague Castle, which was formerly a private entry for Emperor Rudolph II.
Click here to learn more about Terasa U Zlaté studně »
Grillmarket, Reykjavik, Iceland
Originally housed in a cinema that burned down in a fire, Grillmarket’s new building closely resembles its former digs, and is inspired by the Art Nouveau style. The interior, however, is a modern twist on Icelandic tradition, filled with natural wood, leather, tree trunk inspired tables, and stone walls.
Click here to learn more about Grillmarket »
Piada, Lyon, France
Piada was opened by siblings Mathilde and Arthur Plaza, who were born to Italian parents in France. With their restaurant, the Plaza siblings brought a dream to reality; their mother had always wanted to bring a piadina shop, or Italian sandwich shop, to France. The colorful restaurant was designed by Spanish design firm Masquespacio.
It is one of the restaurants featured in “Delicious Places: New Food Culture, Restaurants and Interiors” by publisher gestalten.
Click here to learn more about Piada »
Pink Mamma, Paris, France
Pink Mamma is located in a four-floor building, where each level has a different color scheme. Here, the eatery’s greenery-filled space makes for a romantic dining experience, where guests can enjoy heaping amounts of Italian food and fresh mozzarella.
Click here to learn more about Pink Mamma »
Pink Zebra, Kanpur, India
The restaurant’s design was inspired by filmmaker Wes Anderson with its whimsical stripes and combination of kitschy styles.
When creating the concept for the restaurant, designers from the firm Renesa Studio wanted to give the restaurant the illusion of “dipping a zebra into a deep pink sea,” according to the “Delicious Places” book.


About Lotus@Runtime Lotus@Runtime is an extensible tool that uses models@runtime to monitor and verify self-adaptive systems. The tool monitors the execution traces generated by a self-adaptive system and annotates the probabilities of occurrence of each system action on their respective transition on the system model, which is represented by a Probabilistic Labelled Transition System (PLTS). Then, runtime checks of a set of reachability properties are performed against the updated model. If a property is violated, the self-adaptive system can be informed by a notification mechanism provided by Lotus@Runtime.
In the Lotus@Runtime, an adaptation flow, illustrated in Figure below, starts by monitoring the execution trace generated by a self-adaptive system. The traces are captured during the monitoring phase by the MonitorComponent. Then, during the model update process, the LotusModelComponent calculates the probabilities of each transition and updates the model with the new probabilities at runtime. After, the ModelCheckerComponent performs runtime checks of the user defined properties against the updated probabilistic software behavior model. If a property is violated, then NotifierComponent triggers a notification about that violation. Regardless of whether or not a violation occurs, the monitoring process should keep running continuously. To receive the violations that may occur, developers must implement the interface ViolationHandler at the planning phase. Otherwise, the notifications will be lost.
More Information:


Package org.apache.qpid.protonj2.client.exceptions
package org.apache.qpid.protonj2.client.exceptions
-
ClassDescriptionA
ClientIOException
type that defines that the remote peer has requested that this connection be redirected to some alternative peer.Exception thrown when the remote peer actively closes theConnection
by sending and AMQPClose
frame or when the IO layer is disconnected due to some other reason such as a security error or transient network error.Connection level Security Exception used to indicate a security violation has occurred.Security Exception used to indicate a security violation has occurred.Thrown in cases where an action was requested that cannot be performed because the delivery being operated on has been aborted by the remote sender.Thrown in cases where an action was requested that cannot be performed because the delivery being operated on is only the partial Transfer payload.Represents a non-fatal exception that occurs from a ClientConnection
or one of its resources.Thrown when the Provider fails a connection due to idle timeout.Exception type that is thrown when the provider has encountered an unrecoverable error.AClientLinkRemotelyClosedException
type that defines that the remote peer has requested that this link be redirected to some alternative peer.Exception thrown fromMessage
instances when the body section specified violates the configure message format of the message that is being created.Indicates that an operation in the provider timed out waiting for completionRoot exception type for cases of remote closure or client created resources other than the ClientConnection
which will throw exceptions rooted from theClientConnectionRemotelyClosedException
to indicate a fatal connection level error that requires a new connection to be created.Thrown when a message send operation times out in the Provider layer.Root exception type for cases of remote closure or client createdSession
.Thrown when a transaction declaration fails or is rejected by the remote.Thrown when a transaction operation fails and state is now unknown.Thrown when a client attempt to commit or roll-back when no transaction has been declared.Thrown when a message send operation times out in the Provider layer.Thrown when an action request is not supported through this provider.


New Spotify feature creates customised road trip playlists
by IANSThe online music streaming service Spotify has introduced a new feature called ‘Soundtrack Your Ride’ that will generate a road trip playlist automatically for its users.
To generate the play list, the website asks the starting point and ending point of the users journey to calculate the length of the trip.
 Finally, the user will be asked about the type of vehicle for the road trip, Engadget reported recently.
When it is done, Spotify will compile a playlist that lasts the length of the journey, and save it to the playlists section of the app. However, the feature is limited to the United States as of now.
Recently, Spotify launched a dedicated app for children, called Spotify Kids, which would allow kids above three to listen to their own music, both online and offline. The Spotify Kids app gives children access to about 6,000 tracks, all of which, the company, says have been specifically chosen for children.


---
layout: front
---
{% include header.html %}
{% include sponsors.html %}
{% include past-projects.html %}
{% include past-events.html %}
{% include map.html %}
{% include contact.html %}
{% include code-of-conduct.html %}
{% include footer.html %}
{% include scripts.html %}


This is an unofficial proof-of-concept service to help publishers of data to the International Aid Transparency Initiative, and related standards, to identify the Organisation Identifier they should use, based on the draft Organisational Identifier Conventions.
The idea of the IATI Organisation Identifier Conventions is to provide a best-efforts approach to linking up different data sources that talk about the same organisation. The convention suggests defining 'namespace' prefixes for all the agencies which commonly register organisations (companies, charities, government departments), and then re-using the existing identifiers these organisations have been assigned. By suggesting an order of priority for different namespaces, and encouraging anyone who knows of relationships between two identifiers (e.g. they are the same organisation; or one is a sub-unit of another) to publish this too, users of the data have an improved chance of finding out where heterogenous data sources are referring to transactions and interactions involving the same organisations.
In practice, the IATI Organisation Identifier Conventions are only partially applied. A partial list of prefixes is maintained here. This service simplifies the process of identifying appropriate registration agencies and generating an ID from that list.
Some of the things this service could be developed to do are outlined below.
Future features could include:


I had read this chapter a few weeks back, but re-read it today to get a clean start back into the book.
I enjoyed seeing emotional intelligence viewed from the 5 domains:
The benefits of improved emotional intelligence include:
It was nice to see the focus on the emotional skills as the most powerful way to to address and improve behaviours and responses. And the fact that science now shows the plasticity of the brain allows us to rewire and create new connections gives us all hope :-)
The focus on training our attention resonates with me, as someone whose mind is always racing and switching between things, and may have once or twice before responded a tad too quickly and inappropriately
I particularly enjoyed the quote by Viktor Frankl
“Between stimulus and response, there is a space. In that space lies our freedom and our power to choose our response. In our response lies our growth and our happiness.”
The discussion on emotional intelligence, our physiology, and intuition made a lot of sense, especially when the author said
That may be why intuition is experienced in the body and the gut, but it cannot be easily verbalized.
I have meditated on and off for many years, as I learned Transidental Meditation in the '90s. I know when I do it I feel better about myself, though I've never been sure if that's a result of the meditation or the fact that I'm proud I have done it.
But reading about Mindfullness here as more about just being, and not doing, it makes me think that I may have been focused too much on the doing meditation rather than just being. It's just a thought, and I know that during TM my thoughts wander and that when I realise that I just accept it, let the thoughts go without judgement, and come back to being centred.
When I did my 2 minutes of mindfulness, I first started focusing on doing the breathing technique, but then decided to let that go, or at least be the focus, and to try just being present. It felt good to not have to do anything (mantra or breathing) but instead just accept and be present.
I think the breathing, and my TM are still good techniques however, but I'll now try approach them as just that, techniques to help being present and not judge, rather than being things I have to get right.