nips nips2010 nips2010-191 nips2010-191-reference knowledge-graph by maker-knowledge-mining
Source: pdf
Author: Dmitry Pechyony, Vladimir Vapnik
Abstract: In Learning Using Privileged Information (LUPI) paradigm, along with the standard training data in the decision space, a teacher supplies a learner with the privileged information in the correcting space. The goal of the learner is to ﬁnd a classiﬁer with a low generalization error in the decision space. We consider an empirical risk minimization algorithm, called Privileged ERM, that takes into account the privileged information in order to ﬁnd a good function in the decision space. We outline the conditions on the correcting space that, if satisﬁed, allow Privileged ERM to have much faster learning rate in the decision space than the one of the regular empirical risk minimization. 1
[1] S. Boucheron, O. Bousquet, and G. Lugosi. Theory of classiﬁcation: a survey of some recent advances. ESAIM: Probability and Statistics, 9:329–375, 2005.
[2] C. Cortes and V. Vapnik. Support-vector networks. Machine Learning, 20(3):273–297, 1995.
[3] L. Devroye and G. Lugosi. Lower bounds in pattern recognition and learning. Pattern Recognition, 28(7):1011–1018, 1995.
[4] E. Gine and V. Koltchinskii. Concentration inequalities and asymptotic resutls for ratio type empirical processes. Annals of Probability, 34(3):1143–1216, 2006.
[5] V. Koltchinskii. 2008 Saint Flour lectures: Oracle inequalities in empirical risk minimization and sparse recovery problems, 2008. Available at fodava.gatech.edu/ﬁles/reports/FODAVA09-17.pdf.
[6] P. Massart and E. Nedelec. Risk bounds for statistical learning. Annals of Statistics, 34(5):2326–2366, 2006.
[7] A. Tsybakov. Optimal aggregation of classiﬁers in statistical learning. Annals of Statistics, 32(1):135–166, 2004.
[8] V. Vapnik. Estimation of dependencies based on empirical data. Springer–Verlag, 2nd edition, 2006.
[9] V. Vapnik and A. Vashist. A new learning paradigm: Learning using privileged information. Neural Networks, 22(5-6):544–557, 2009.
[10] V. Vapnik, A. Vashist, and N. Pavlovich. Learning using hidden information: Master class learning. In Proceedings of NATO workshop on Mining Massive Data Sets for Security, pages 3–14. 2008. 9


DENNIS THE MENACE A film review by James Berardinelli Copyright 1993 James Berardinelli
Rating: 6.8 out of 10 (C+, ** out of ****)
Date Released: 6/25/93 Running Length: 1:35 Rated: PG (Nothing offensive)
Starring: Mason Gamble, Walter Matthau, Joan Plowright, Christopher Lloyd, Lea Thompson, Robert Stanton Director: Nick Castle Producers: John Hughes and Richard Vane Screenplay: John Hughes Music: Jerry Goldsmith Released by Warner Brothers Pictures
In 1951, a comic strip character by the name of Dennis Mitchell made his debut. Inked by Hank Ketcham, it didn't take long for DENNIS THE MENACE to become a favorite. During the course of the next forty-two years, Dennis would be turned into a weekly television series, an animated program, and now, a major motion picture.
All the characters are present. There's Dennis (Mason Gamble), the blond five-year old demon with a cowlick. Dennis' long-suffering mother Alice is capably played by Lea Thompson, and the venerable British actress Joan Plowright takes a turn as Mrs. Wilson. Perhaps the best bit of casting is the choice of Walter Matthau as Mr. Wilson, the grumpy neighbor who becomes the frequent target of Dennis' pranks.
Thrown into the group, with no apparent value other than to provide a HOME ALONE-type villain, is Christopher Lloyd's Switchblade Sam, a homeless thief who roams the neighborhood stealing purses and breaking into houses. Sam's inclusion is perhaps the movie's biggest mistake since it takes the focus away from the more interesting Dennis/Mr. Wilson interaction by introducing an uninspired plot line that ends up resembling a poor man's hack job of O. Henry's "The Ransom of Red Chief".
There are too many "HOME ALONEisms" in DENNIS THE MENACE. We don't need to see Mr. Wilson fall prey to many of the same sorts of "accidents" that previously tormented Joe Pesci and Daniel Stern. At least in the two HOME ALONE movies, the victims were bad guys. Here, while Mr. Wilson isn't the most affable of neighbors, he certainly isn't a villain, and is undeserving of the cruel treatment dished out to him.  Through blatant overuse, it has gotten old real quick.
Recycling old formulas is, in fact, the big problem. Even setting aside the reuse of HOME ALONE material, there's nothing original in this film. Certainly no one would claim anything to be distinctive about the "buddy" relationship that develops between Dennis and Mr. Wilson. Countless pictures have explored this theme, including the recent offerings COP AND AN HALF and LIFE WITH MIKEY. DENNIS THE MENACE has nothing to offer that those two didn't, and that immediately puts it in pretty poor company.
In general, I didn't find DENNIS THE MENACE particularly funny, although the kids in the audience enjoyed it. There's nothing repugnant about the film. Like HOME ALONE, it's a live-action cartoon. There are a few worthwhile moments, the best of which may be the one that goes on side-by- side with the closing credits. Almost all the scenes featuring Dennis and Mr. Wilson are entertaining (although the occasional attempts at pathos are out of place). Unfortunately, these are too few. Time is taken away from developing this relationship to allow the inclusion of the inane Christopher Lloyd subplot.
Pleasantly surprising is the likability of Mason Gamble's Dennis. He isn't the brat that the previews and ads portray him to be. Gamble's cute performance becomes more endearing than obnoxious, combining the same mixture of innocence, enthusiasm, and vulnerability that made Macaulay Culkin a star. Unfortunately the same cannot be said of Gamble's child co- stars (Amy Sakasitz as Margaret and Kelly Hathaway as Joey). These two are so annoying that I was yearning for Dennis to plunk them both with slingshot-launched marbles.
Some concern has been expressed about the image that Christopher Lloyd's character presents of a homeless person. I contend that rather than giving a negative impression of the homeless, with which he is never clearly associated, Switchblade Sam will instead reinforce a lesson that is taught to children every day: don't talk to strangers. I don't see Sam doing any more to affect opinions on the homeless than Brenda Fricker's amiable bag lady did in HOME ALONE 2.
DENNIS THE MENACE is basically an innocuous movie. I think most children will get a kick out of it, and those adults roped into seeing it won't find themselves yearning to escape through the nearest exit (as is unfortunately the case with too many "family films"). On the other hand, I wonder if DENNIS is worth the money. It isn't that much better than a lot of the current fare on television, and won't lose a whole lot in the translation from big screen to video. Basically, there's nothing remarkable about this movie that demands for it to be seen. If you're running low on films to take the family to, DENNIS THE MENACE will do. Otherwise, it might be prudent to spend the time (and money) on something of a little better quality.
- James Berardinelli<EMAIL_ADDRESS>.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Organize your audio library with the help of neural nets.
*Hosted Audio Tagger
On your computer, make a folder called
"Samples"
and inside it create sub-folders with the names of each category you want to train on. Place your audio files in these sub-folders accordingly.
Then zip the Samples folder and upload Samples.zip via this form.


This page will calculate the fine for a speeding ticket. The fine is based on these criteria:
Speed: Over by more than 5 MPH $100
Speed: Over by more than 20 MPH $200
Location: In the construction area fines are doubled
The fine will be $


#include <nn_ops.h>
Computes scaled exponential linear: scale * alpha * (exp(features) - 1)
if < 0, scale * features
otherwise.
To be used together with `initializer = tf.variance_scaling_initializer(factor=1.0, mode='FAN_IN'). For correct dropout, use
tf.contrib.nn.alpha_dropout`.
See Self-Normalizing Neural Networks
Arguments:
Returns:
Output
: The activations tensor.
Constructors and Destructors |
|
|---|---|
Selu(const ::tensorflow::Scope & scope, ::tensorflow::Input features)
|
Public attributes |
|
|---|---|
activations
|
|
operation
|
Public functions |
|
|---|---|
node() const
|
::tensorflow::Node *
|
operator::tensorflow::Input() const
|
|
operator::tensorflow::Output() const
|
|
::tensorflow::Output activations
Operation operation
Selu( const ::tensorflow::Scope & scope, ::tensorflow::Input features )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const


<properties>
[optional] defines some Ant properties that can be referenced
elsewhere in project.xml
, using the same ${propertyname}
syntax as Ant uses.
There are two kinds of subelements which may occur (order is significant):
<property name="key">value</property>
defines a property key
with the value
value
. Similar to Ant <property name="key" value="value"/>
. As with Ant, the
value can use other Ant properties defined earlier in <properties>
.
<property-file>file.properties</property-file>
loads file.properties
for its
definitions. Similar to Ant <property file="file.properties"/>
. The filename can
use other Ant properties. As with Ant, the definitions in the file can refer to
other Ant properties defined earlier in <properties>
; or even other Ant
properties defined in file.properties
(so long as there is not a cyclic
definition, of course).
Java system properties passed to the IDE are predefined, as in Ant itself. Of course it is usually unwise to rely on such variables in portable build scripts.
The variable ${basedir}
(also .
in places where a file path is expected)
is always defined to be the directory containing the nbproject
directory, regardless
of any basedir
attribute in your Ant script(s).
${ant.home}
and ${ant.core.lib}
are also defined.


A wizard without steps is like a pizza without topping. Add steps to your wizard in a breeze by declaring them as routes.
Each step in the wizard consists of an angular component exposed on a route, i.e. the
WizardStep
interface extends angulars built in interface for Routes
. Add steps by adding
WizardSteps
(routes) to your routing module.
To create a simple wizard with two steps ("Step one" and "Step two"), add steps (routes) to
AppRoutingModule
like this:


Wesley Salmon made many seminal contributions to the philosophy of science and the work he has left us constitutes a rich resource for research in many areas. When I was asked to organize this symposium, Merrilee Salmon suggested that to continue the spirit of Wes’s progressive philosophical outlook, the symposiasts should be asked to present papers that provided new insights into various areas in which Wes had worked, rather than providing a retrospective survey of his contributions. Because his work covers such a wide area, I have invited participants who will address three of the topics to which he devoted considerable attention for most of his career: spacetime, probability and induction, and causality and explanation. Inevitably, we shall have to neglect other areas to which Wes made important contributions and there are many other eminent philosophers of science whom I wish could have been included, but the speakers and topics chosen should provide an informed and substantive set of talks that will demonstrate the vitality of Salmon’s contributions to our discipline.
In this paper I show how the conserved quantity theory of Wesley Salmon and myself provides a sufficient condition in an analysis of causation. To do so I will show how it handles the problem of misconnections. Take any two causally independent events, say, my tapping the table and the clock hand moving a moment later. There is no causal connection between these two particular events, but there is in fact a set of causal processes and interactions between them, according to the conserved quantity theory. The reason is that there are air molecules filling the gap between, so that one can connect the two events by stringing together a series of molecular collisions. Also there is a longitudinal disturbance, the sound of my tapping, which reaches the clock hand before it moves. So, again, there can be a set of causal processes and interactions where there is no causal connection. I set out the conditions under which a set of processes and interactions constitute a causal relation.
Concerning any object of philosophical analysis, we can ask the two questions posed in the title of this talk. Despite difficulties in formulating a precise criterion to distinguish causal processes from pseudoprocesses, I will argue that Salmon answered the first of these questions with extraordinary clarity. The second question, by contrast, has not been successfully answered, by Salmon, or by anybody else. In particular, it is not clear how causal processes and interactions can be used to solve the problem of explanatory irrelevance that led Salmon to think about causation in the first place.
The
frequency interpretation of probability played a central role in Wes Salmon’s
philosophy of science for most of his career. Although he suggested in his later
work that the propensity account could serve an important function within his
theory of causation, he never rejected his earlier commitments to objectively
homogeneous reference classes as a correct basis for understanding probability.
Yet Wes was famous for having advocated a shift to ontic accounts of causation,
a shift that has consequences reaching far beyond explanation, and this shift
raises the question of how to provide a coherent account of probability that can
support Salmon’s later views on probabilistic causation and explanation, views
that seem more naturally suited to physical probabilities than to frequencies.
In the spirit of the path that Wes’s work has opened, I shall explore the
connections between the propensity and frequency accounts of probability and
suggest that, just as Wes rather startlingly argued that a theory of causation
need be only contingently true of our world, so too can a theory of probability
that accompanies it. I shall also discuss how this shift affects our theories of
inductive inference.
My talk would be a discussion of the basic structure of theses of conventionalism (and theses opposed to conventionalism) in spacetime theories. I would be exploring the way in which basic philosophical assumptions, of an epistemological nature, interact with the specific contents of particular spacetime theories in the conventionalist's (and anti-conventionalist's) arguments.


Andrei Chernyshev
Software engineer, Kotlin enthusiast and Go newbie.
Talk: Serverless with Kubeless - usecase in Outfittery
Outfittery's mission is to provide relevant fashion to men. In the past we relied purely on our stylists to put together the best outfits for our customers. Right now we are in the process of adding more and more intelligent algorithms to augment our human experts. To support that we've built complex decision making platform.  For example, intermediate data transformation or Slack notification upon certain events, etc. After a research and evaluation we choose Kubeless with Serverless framework on top of it.
Back to the agenda


POOLTYPE(1) POOLTYPE(1) NAME pooltype - display a WEB pool file SYNOPSIS pooltype pool_file_name DESCRIPTION This manual page is not meant to be exhaustive. The complete documenta‐ tion for this version of TeX can be found in the info file or manual Web2C: A TeX implementation. The pooltype program translates a (program-oriented) Web string pool file to a (human-oriented) text file. The pool_file_name must be complete; no adding of default extensions or path searching is done. SEE ALSO tangle(1). AUTHORS Donald E. Knuth wrote the program and originally ported it to Unix. It was published as part of the TeX for nroffware technical report, avail‐ able from the TeX Users Group. Web2C 2012 27 December 1992 POOLTYPE(1)


Duke University Chapel |
Durham, North Carolina Meeting Details |
1394 Printing: October 25-26
PWG Plenary: October 27
IPP: October 28
UPDF: October 29
| Meeting Location: Durham Marriott at the Civic Center 201 Foster Street |
The hotel rate is $109 per night. Cutoff is October
13th.
Ask for the HP or PWG rate at this hotels.
Reserve now... limited number of rooms!
All attendees are responsible for making their own hotel reservations.
There will be a meeting charge in the range of $35 - $40; participants are responsible for their own lunch.
YOU MUST RSVP TO: Alan Berkema WITH THE FOLLOWING INFORMATION:


Preparation time
less than 30 mins
Cooking time
10 to 30 mins
Serves
Serves 4-6
For the risotto, place the chicken stock into a pan and bring to a gentle simmer.
Meanwhile, heat another pan until hot and add the butter. Once the butter has melted, add the onion, garlic and chilli flakes. Cook for a few minutes until softened, but not coloured.
Add the rice to the pan and stir with a wooden spoon until the rice is translucent and coated with the oil.
Add the wine and cook until the liquid has reduced by half.
Add the squid ink and stir thoroughly with a wooden spoon to disperse the ink throughout the rice.
Pour in the hot stock, a ladle at a time, and keep stirring until each ladleful is absorbed. Keep adding the stock, stirring as often as possible until the rice is tender, but still with a slight resistance to the bite - this should take about 20-25 minutes.
Meanwhile, clean the squid. Pull the tentacles away from the squid's body. Remove the quill from inside the body and discard. Clean the body by running it under a tap or cleaning it in a bowl of water. Remove the 'ears' from either side of the squid body and remove the skin with your fingers. Cut the tentacles just below the eyes, being sure not to cut the ink sac. Be sure to remove the 'beak' at the base of the tentacles. Cut the body of the squid into rings.
When the rice is just ready, add the squid and rings and stir through. Remove from the heat and season with salt and freshly ground black pepper.
For the marinated squid, preheat a griddle pan until hot.
Remove the tentacles and slice the body of the squid in half lengthways. With a sharp knife, score the inside of the squid in a diagonal pattern. Place the scored side down onto the griddle pan, along with the tentacles.
Griddle for 1-2 minutes or until coloured on all sides and just cooked through.
Remove the squid from the heat and place into a bowl. Add the lemon zest, parsley, chilli flakes and olive oil. Mix together and season with a little salt and freshly ground black pepper.
To serve, spoon the risotto into the centre of each of individual plate and top with a pile of marinated squid and a drizzle of the marinating liquid.


Stalker crept into sleeping victim's bedroom and started kissing her
A man who crept into his victim’s home while she was asleep with the intention of sexually assaulting her has been jailed.
Ian Essom, 41, got into the property in Olney, Buckinghamshire, at around 1am on 18 November last year and started kissing his sleeping victim.
When she resisted his advances, Essom restrained her before eventually leaving the property.
He was found guilty of trespass with intent to commit a sexual offence after a one-day trial at Aylesbury Crown Court in May.
The court heard that Essom was already subject to a two-year restraining order at the time for repeatedly staring at a 21-year-old woman as she worked late shifts at a petrol station.
For that offence, he was found guilty of harassment and given a 12-week prison sentence, suspended for 12 months, police said.
On Thursday, Essom was jailed for eight years and placed on the sex offenders register for life.
Advertisement Advertisement
Detective Constable Kim McHugh said: ‘I would like to thank the victim for coming forward to police and for supporting us with the investigation.
‘She has shown great strength in giving evidence at trial.
‘Thames Valley Police does not tolerate this behaviour and we will work tirelessly to investigate thoroughly and bring offenders to justice.
‘I hope this conviction gives others the confidence to come forward and make a report to the police.’
Got a story for Metro.co.uk?
Get in touch with our news team by emailing us at<EMAIL_ADDRESS>For more stories like this, check our news page.


Welcome to my portfolio page. My name is Brandon Whyte I am new to the New Mexico tech community and currently enrolled in the Deep Dive Coding Bootcamp growing my skills as a developer. Prior to this new venture I was in the US Air Force for 6yrs as an Aircew Flight Equipment Technician, and now making the change to software development. Part of my decision in switching to software development was due to my interest for technology and being able to express creativity in my work, and find opportunities to grow my skill set.
Some of the frameworks and tools I've learned..


public interface HadoopJobReporter
Defines a service for obtaining information about Hadoop map/reduce job that is/was executed on Hadoop cluster.
Information is typically obtained by communication with the Hadoop cluster (specifically it is obtained from
jobtracker). The job that is to be reported about might be still in progress (in which case tracking information are
obtained) or execution of the job might already be completed (see method isComplete()
). In later case result
information are obtained.
This interface specifies methods for obtaining information about the job provided by Hadoop API. Therefore, implementors are typically wrappers around Hadoop API class. This interface provides abstraction from Hadoop specific API that may differ between Hadoop versions.
HadoopMapReduceService.sendJob(HadoopMapReduceJob, Properties)
| Modifier and Type | Method and Description |
|---|---|
float |
cleanUpProgress()
Gets progress of cleanup phase of the job.
|
java.util.List<HadoopCounterKeyValuePair> |
getAllCounters()
Gets all counters as list of keys and respective values.
|
long |
getCounterValue(HadoopCounterKey counterKey)
For given Hadoop map/reduce counter key representation gets value of counter represented for this job.
|
java.lang.String |
getFailureInfo()
In case that map/reduce job has finished but it was not successful this method can be used to obtain gailure
info.
|
java.lang.String |
getID()
Gets identification of the job.
|
java.lang.String |
getJobState()
Gets state of the job as provided by jobtracker.
|
java.lang.String |
getName()
Gets job name.
|
boolean |
isComplete()
Indicates that the job has completed.
|
boolean |
isSuccessful()
Indicates whether the job was successful.
|
void |
kill()
Attempts to kill Hadoop map/reduce job.
|
float |
mapProgress()
Gets progress of map phase of the job.
|
float |
reduceProgress()
Gets progress of reduce phase of the job.
|
float |
setupProgress()
Gets progress of setup phase of the job.
|
java.lang.String getID()
java.lang.String getName()
float setupProgress() throws java.io.IOException
java.io.IOException
- if communication with jobtracker of the cluster fails or the job itself fails.float mapProgress() throws java.io.IOException
java.io.IOException
- if communication with jobtracker of the cluster fails or the job itself fails.float reduceProgress() throws java.io.IOException
java.io.IOException
- if communication with jobtracker of the cluster fails or the job itself fails.float cleanUpProgress() throws java.io.IOException
java.io.IOException
- if communication with jobtracker of the cluster fails or the job itself fails.java.lang.String getJobState() throws java.io.IOException
java.io.IOException
- if communication with the jobtracker of the cluster fails.boolean isComplete() throws java.io.IOException
true
if and only if the job is has finished. It might or might not be successful.java.io.IOException
- if communication with jobtracker of the cluster fails or the job itself fails during call to
this method.isSuccessful()
boolean isSuccessful() throws java.io.IOException
true
if and only if the map/reduce job is completed and it finished successfully.java.io.IOException
- if communication with the jobtracker of the cluster fails or the job itself fails during call
to this method.isComplete()
java.lang.String getFailureInfo() throws java.io.IOException
null
.java.io.IOException
- if communication with jobtracker of the cluster fails.void kill() throws java.io.IOException
java.io.IOException
- IOException if communication with jobtracker of the cluster fails or there is an exception
while killing the job.long getCounterValue(HadoopCounterKey counterKey) throws java.io.IOException
counterKey
- Hadoop API independent representation of Hadoop map/reduce counter key.java.io.IOException
- if communication with jobtracker of the cluster fails or counter value cannot be obtained by
jobtracker.HadoopMapReduceInfoService.getCounterGroups()
,
HadoopCounterGroup
java.util.List<HadoopCounterKeyValuePair> getAllCounters() throws java.io.IOException
java.io.IOException
- if communication with the jobtracker fails of it fails to obtain value of counters.Copyright © 2002-2015 Javlin a.s.


The AppSensor project defines a conceptual framework and methodology that offers prescriptive guidance to implement application intrusion detection and automated response.
(The documentation is under a Creative Commons Attribution-ShareAlike 3.0 open-source license.)
Current Version: 2.0.1
In addition, the project also provides a reference implementation that allows developers to use these powerful concepts in existing applications.
(The tool is under an MIT open-source license.)
Current Versions: 2.3.0 (SNAPSHOT) and 2.2.0 (release)
The attacks against applications are growing in both volume and complexity. At the same time, we are deploying more complex applications at a faster rate than ever before. The result is that finding a successful attack against an application is almost always possible, and usually doesn't take that long.
Development and security teams have spent a lot of time implementing defenses against a wide array of attacks. Some of these are very effective and others are not. The controls that have been implemented in applications already provide value, but with some minor modifications, they can do even more.
This is a key realization. If you ask most developers and support teams, there is a shocking lack of visibility when it comes to security inside an application at runtime. There are good solutions for visibility into issues like performance, user analytics, and revenue generation. However, security doesn't have great visibility, yet ...
The AppSensor project is designed to address these issues directly. We have provided a methodology and prescriptive guidance on how to deal with this unique set of problems. By leveraging existing controls (with slight modifications), and implementing new controls as needed, you can gain much better insight into the security posture of your application.
In addition to actually seeing what's going on inside your application, you can now define allowable behavior. If activity falls outside the acceptable profile, then the application can automatically respond. This makes your application self-defending. That is a very desirable capability if you're building serious applications.


Feedback sought on Kingsley apartments
by Tyler BrownTHE City of Joondalup is seeking feedback on an application for seven apartments on one lot in Kingsley.
The three-storey development is proposed for 41 Twickenham Drive, with two units on the ground floor, three on the first floor and two on the second floor.
All units would have two bedrooms and two bathrooms and there would be seven residential and two visitor car parking bays and four residential and one bicycle bays.
Plans also include “liveable housing design” elements for the ground floor units to make them easier to access for people of all ages and abilities.
Submissions can be sent to<EMAIL_ADDRESS>or PO Box 21, Joondalup WA 6919 by December 23.


See what our students have to say about Online College:
"Online College is the best! My professors showed me lots of cool Web sites and were always available for a chat."
"My favorite course is Physics of Cyberspace."
"When you take virtual classes, you don't have to watch anyone yawn."
Try to contact our alumnae. Tell them we would appreciate a donation.


About
My name is Ayushi
Hey,
I am a 2nd year engineering student doing my B.E Cse from SMVIt.
My field of interests are Web development[React.js,django,flask] and Machine Learning.
I am also familiar with basics of Android Development.
In my free time I love to play games and reading.
-
Education
B.E.-9.17 cgpa from Smvit.
12th-92.3% from Kendriye vidyalaya,Iffco aonla,Uttar Pradesh.
10th-94.8% from St Maria Goretti Inter COllege,Uttar Pradesh.
-
Skills
C,C++,Java.
Data Structures,Algorithms.
Django,Flask,Machine Learning,Android,Jekyll.
-
Check the github repository for more information.


--- layout: default title: PostgreSQL JDBC About resource: ../media nav: ../ --- {% include submenu_about.html %}
PostgreSQL JDBC Driver (PgJDBC for short) allows Java programs to connect to a PostgreSQL database using standard,
database independent Java code. Is an open source JDBC driver written in Pure Java (Type 4), and communicates in
the PostgreSQL native network protocol.
The current version of the driver should be compatible with PostgreSQL 8.2 and higher,
and Java 6 (JDBC 4.0), Java 7 (JDBC 4.1), Java 8 (JDBC 4.2) and Java 9.
The driver provides a reasonably complete implementation of the JDBC specification in addition to some PostgreSQL specific extensions. Our goal is nothing short of full compliance, but we're not there yet. Some features require additional backend support and others just need someone to implement them. For a list of what still needs to be done see our Todo list.


Tanqueray gin is creating a bar with personalised cocktails based on your senses
When a bar has a lengthy cocktail menu, it can be hard to choose what you want.

Well, good news. Gin brand, Tanqueray is taking over a townhouse to create a pop-up bar where they use all sorts of things to help you choose your drink.
There are five rooms to choose from – from an elegant lounge bar to a secret bar, where they’ll analyse your senses to create personalised drinks.
The event will run from 6-14 December at Bloomsbury House in London.
Tickets cost £12 but they include two cocktails and access to the whole experience.
Guests will be greeted with a gin (Tanqueray of course) and tonic on arrival as they move through each of the rooms.

At The Lounge Bar, you can get classic G&Ts, gin-based classic cocktails like a Tom Collins and new recipes created by Jack Sotti, like a Townhouse Negroni and a Bloomsbury Sour.
For those looking for a relaxed vibe, there’s a library featuring a whole range of books about gin.
There’s also The Gifting Room, where you can create Christmas gifts. There’s a calligrapher’s table where you can create customised labels, wax bottle seals and your own wrapping paper for the gin-lover in your life. This is the only bit of the experience open to non-ticket holders so if you miss out on a ticket, you can still take a look.
Things get a little more scientific with The Aura Room, where they apparently use facial recognition technology to read your aura and decide which cocktail is for you.
And the final room is The Secret Bar. A selection of lucky guests will be invited via a ringing telephone to take part. They will then be given a range of scented vials of Tanqueray No. Ten ingredients and gin experts will assess the reaction to create a unique cocktail based on the results. We’re not sure how accurate it can really be but it sounds like fun.
Advertisement Advertisement
The whole event will raise money for The Felix Project, a charity that helps people experiencing food poverty in London.
Tickets are on sale now so grab one before they’re gone.


Search and browse your local bills, representatives, and events.
Search over 1,000 board reports and members of the Board of Directors from 2014 to today.
Free and open access, open source code and open data.
Browse our code »Have questions or want to bring Councilmatic to your city? Email us at info@councilmatic.org.


First Steps
Installation
Easiest way to install is to use composer. Create your project folder, add composer.json :
{
"minimum-stability": "dev",
"require": {
"palethorn/yeah": "dev-master"
}
}
Then:
composer update
You have a single folder called vendor inside your project folder. Inside of it is everything you need to get started.
You have installed Yeah! PHP Framework. We can refer to it as YeahFW.
Creating project structure
We'll start by building a sample application called blog. We need to create a project structure for it. YeahFW accepts
whatever structure you impose on it, as long as it's configured correctly. Sample structure we can use for our sample
project is this:
.
├── blog
│ ├── config
| ├── src
│ │ │── Controllers
| │ │ └── HomeController.php
| │ │── Models
│ │ │── Repositories
| | └── Blog.php
│ ├── data
│ └── views
│ ├── index.php
│ └── layouts
│ └── default.php
│── vendor
│── web
│ └── app_name.php
└── composer.json
Examplanation of various files and directories:
- blog - Holds application specific configuration, controllers, models, and views. Controllers and models
can be namespaced
- config - Holds various app configuration. For example: paths.php can hold various project paths, db.php holds
database specific configuration etc.
- controllers - Put application controllers here. Controllers hold actions which are executed for specific
URL
- data - Various init files. For example: database skeletons, fixtures, export/import files and similar.
- models - Application ORM model files go here.
- views - Application views which are rendered in ther respective actions go here.
- Blog.php - Your main application class. Application is instantiated using this class. It holds all app
initialization specifics.
- vendor - Composer* packages go here. Everything you installed using composer is residing in this folder and is
managed through composer. Best not to touch it. Most of it is autogenerated and can be overwritten when composer
update is run.
- web - All publicly accessible files go here. PHP index files, javascript files, stylesheets, static html files
go here.
- composer.json - Exposes project dependencies which are managed via composer*.
Sidenotes:
* https://getcomposer.org/
Purpose of these directories will be explained in more detail further down in the tutorial.


A task.
Public Properties | |
| final const | ASSIGN_INBOX = 'inbox' |
| final const | ASSIGN_LATER = 'later' |
| final const | ASSIGN_NEW = 'new' |
| final const | ASSIGN_TODAY = 'today' |
| final const | ASSIGN_UPCOMING = 'upcoming' |
| final const | GET_INCOMPLETE = ['completed_since' => 'now'] |
| final const | TYPE = 'task' |
| Public Properties inherited from AbstractEntity | |
| const | TYPE = '' |
All entity classes must redeclare this to match their resource_type . More... | |
Protected Properties | |
| final const | DIR = 'tasks' |
| const | MAP |
| const | OPT_FIELDS |
| Protected Properties inherited from AbstractEntity | |
| const | DIR = '' |
| All entity classes must redeclare this to match their REST directory. More... | |
| const | OPT_FIELDS = [] |
| Protected Properties inherited from Data | |
| readonly Api Api | $api |
| array array self[] AbstractEntity[] | $data = [] |
| array bool[] | $diff = [] |
| const | MAP = [] |
Public Methods | |
| Attachment | addAttachment (string $file) |
| Uploads a file attachment. More... | |
| $this | addDependencies (array $tasks) |
| Premium feature. More... | |
| $this | addDependency (Task $task) |
| Premium feature. More... | |
| $this | addDependent (Task $task) |
| Premium feature. More... | |
| $this | addDependents (array $tasks) |
| Premium feature. More... | |
| $this | addTag (Tag $tag) |
| Adds a tag. More... | |
| $this | addToProject ($target) |
| Adds the task to a project. More... | |
| $this | addToProjects (iterable $targets) |
| Adds the task to multiple projects. More... | |
| $this | create () |
| Job | duplicate (string $name, array $include) |
| Duplicates the task. More... | |
| $this | follow () |
| Adds the API user as a follower. More... | |
| magic null User | getAssignee () |
| magic string | getAssigneeStatus () |
| Attachment[] | getAttachments () |
| Attached files. More... | |
| Story[] | getComments () |
| magic string | getCompletedAt () |
| RFC3339x. More... | |
| magic string | getCreatedAt () |
| RFC3339x. More... | |
| magic null FieldEntries | getCustomFields () |
| Premium feature. More... | |
| Task[] | getDependencies () |
| Premium feature. More... | |
| Task[] | getDependents () |
| Premium feature. More... | |
| ExternalData | getExternal () |
| A proxy to the task's "external data". More... | |
| magic bool | getIsRenderedAsSeparator () |
| magic Membership[] | getMemberships () |
| magic string | getModifiedAt () |
| RFC3339x. More... | |
| magic string | getName () |
| magic string | getNotes () |
| magic int | getNumSubtasks () |
| magic null Task | getParent () |
| Project[] | getProjects () |
| magic string | getResourceSubtype () |
| Section[] | getSections () |
| Story[] | getStories () |
| Task[] | getSubTasks () |
| magic Tag[] | getTags () |
| TaskWebhook[] | getWebhooks () |
| magic Workspace | getWorkspace () |
| magic bool | hasAssignee () |
| magic bool | hasCustomFields () |
| Premium feature. More... | |
| magic bool | hasMemberships () |
| magic bool | hasName () |
| magic bool | hasNotes () |
| magic bool | hasParent () |
| magic bool | hasTags () |
| magic bool | isCompleted () |
| Story | newComment () |
| Factory. More... | |
| Task | newSubTask () |
| Factory. More... | |
| TaskWebhook | newWebhook () |
| Factory. More... | |
| magic bool | ofMilestone () |
| $this | removeDependencies (array $tasks) |
| Premium feature. More... | |
| $this | removeDependency (Task $task) |
| Premium feature. More... | |
| $this | removeDependent (Task $task) |
| Premium feature. More... | |
| $this | removeDependents (array $tasks) |
| Premium feature. More... | |
| $this | removeFromProject (Project $project) |
| Removes the task from a project. More... | |
| $this | removeFromProjects (iterable $projects) |
| Removes the task from multiple projects. More... | |
| $this | removeTag (Tag $tag) |
| Removes a tag. More... | |
| magic Attachment[] | selectAttachments (callable $filter) |
fn( Attachment $attachment): bool More... | |
| magic Story[] | selectComments (callable $filter) |
fn( Story $comment ): bool More... | |
| magic Task[] | selectDependencies (callable $filter) |
fn( Task $dependency ): bool More... | |
| magic Task[] | selectDependents (callable $filter) |
fn( Task $dependent ): bool More... | |
| magic Membership[] | selectMemberships (callable $filter) |
fn( Membership $membership ): bool More... | |
| magic Project[] | selectProjects (callable $filter) |
fn( Project $project ): bool More... | |
| magic Story[] | selectStories (callable $filter) |
fn( Story $story ): bool More... | |
| magic Task[] | selectSubTasks (callable $filter) |
fn( Task $subtask ): bool More... | |
| magic Tag[] | selectTags (callable $filter) |
fn( Tag $tag ): bool More... | |
| magic $this | setAssignee (?User $user) |
| magic $this | setAssigneeStatus (string $status) |
| magic $this | setCompleted (bool $completed) |
| magic $this | setIsRenderedAsSeparator (bool $flag) |
| magic $this | setName (string $name) |
| magic $this | setNotes (string $notes) |
| $this | setParent (?Task $parent) |
| Makes the task a subtask of another. More... | |
| magic $this | setResourceSubtype (string $type) |
| magic $this | setWorkspace (Workspace $workspace) |
| $this | unfollow () |
| Removes the API user as a follower. More... | |
| $this | update () |
| Public Methods inherited from AbstractEntity | |
| string | __toString () |
| The entity's canonical REST path. More... | |
| null string | getGid () |
| bool | hasGid () |
| $this | reload () |
| Fully reloads the entity from Asana. More... | |
| Public Methods inherited from Data | |
| mixed | __call (string $method, array $args) |
| Magic method handler. More... | |
| __construct (Api|self $caller, array $data=[]) | |
| array | __serialize () |
| void | __unserialize (array $data) |
| bool | isDiff () |
| Whether the instance has changes. More... | |
| array | jsonSerialize () |
| bool | offsetExists (mixed $offset) |
| mixed | offsetGet (mixed $offset) |
| void | offsetSet (mixed $offset, mixed $value) |
| void | offsetUnset (mixed $offset) |
| array | toArray (bool $diff=false) |
| Dehydrated data. More... | |
| Public Methods inherited from ImmutableArrayTrait | |
| void | offsetSet (mixed $offset, mixed $value) |
| Throws unless overridden. More... | |
| Public Methods inherited from DeleteTrait | |
| void | delete () |
| Deletes the entity from Asana. More... | |
| Public Methods inherited from DateTimeTrait | |
| null DateTimeInterface | _getDateTime () |
| Returns a date-time field as an immutable object. More... | |
| Public Methods inherited from DueTrait | |
| magic null string | getDueOn () |
Y-m-d More... | |
| magic null string | getStartOn () |
Y-m-d More... | |
| magic bool | hasDueOn () |
| magic bool | hasStartOn () |
| $this | setDueOn ($date) |
| $this | setStartOn ($date) |
| Public Methods inherited from FollowersTrait | |
| $this | addFollower (User $user) |
| $this | addFollowers (array $users) |
| magic User[] | getFollowers () |
| magic bool | hasFollowers () |
| $this | removeFollower (User $user) |
| $this | removeFollowers (array $users) |
| magic User[] | selectFollowers (callable $filter) |
fn( User $user ): bool More... | |
| Public Methods inherited from LikesTrait | |
| magic Like[] | getLikes () |
| magic int | getNumLikes () |
| magic bool | hasLikes () |
| magic bool | isLiked () |
| Whether you like this. More... | |
| magic Like[] | selectLikes (callable $filter) |
fn( Like $like ): bool More... | |
| magic $this | setLiked (bool $liked) |
| Sets whether you like this. More... | |
| Public Methods inherited from SyncTrait | |
| Event[] | getEvents (?string &$token) |
| Polls for new events. More... | |
| Public Methods inherited from UrlTrait | |
| string | getUrl () |
Protected Methods | |
| null | _getParentNode () |
| void | _setData (array $data) |
| Protected Methods inherited from AbstractEntity | |
| mixed | _get (string $field) |
| Lazy-loads missing fields. More... | |
| void | _reload (string $field) |
| Protected Methods inherited from Data | |
| bool | _has (string $field) |
Magic method: hasField() More... | |
| T | _hydrate (string $class, $item) |
| Sub-data factory that draws from the entity pool. More... | |
| bool | _is (string $field) |
Magic method: isField() More... | |
| bool | _of (string $resourceSubtype) |
Magic method: ofResourceSubtypeValue() More... | |
| array | _select (string|iterable $subject, callable $filter,... $args) |
Magic method: selectField(callable $filter) More... | |
| $this | _set (string $field, $value) |
Magic method: setField(mixed $value) More... | |
| void | _setField (string $field, $value) |
| Sets a value, hydrating if mapped, and clears the diff. More... | |
| Protected Methods inherited from PostMutatorTrait | |
| $this | _addWithPost (string $addPath, array $postData, string $field, array $diff) |
For existing entities this adds references to other entities via the given POST path. More... | |
| $this | _removeWithPost (string $rmPath, array $postData, string $field, array|Closure $diff) |
For existing entities this removes references to other entities via the given POST path. More... | |
|
protected |
|
protected |
|
finalprotected |
Reimplemented from CreateTrait.
|
protected |
| Attachment addAttachment | ( | string | $file | ) |
| $this addToProject | ( | $target | ) |
Adds the task to a project.
| Project | Section | $target |
| $this addToProjects | ( | iterable | $targets | ) |
| $this create | ( | ) |
Reimplemented from CreateTrait.
| Job duplicate | ( | string | $name, |
| array | $include | ||
| ) |
| $this follow | ( | ) |
Adds the API user as a follower.
| magic null User getAssignee | ( | ) |
| magic string getAssigneeStatus | ( | ) |
| Attachment [] getAttachments | ( | ) |
Attached files.
| magic string getCompletedAt | ( | ) |
RFC3339x.
| magic string getCreatedAt | ( | ) |
RFC3339x.
| magic null FieldEntries getCustomFields | ( | ) |
Premium feature.
| ExternalData getExternal | ( | ) |
A proxy to the task's "external data".
This always returns an instance, regardless of whether the task on Asana actually has external data.
Asana will delete the external data object if it's emptied, and fetching it via
GET
will then returnnull
, so we coalesce.
| magic bool getIsRenderedAsSeparator | ( | ) |
| magic Membership [] getMemberships | ( | ) |
| magic string getModifiedAt | ( | ) |
RFC3339x.
| magic string getName | ( | ) |
| magic string getNotes | ( | ) |
| magic int getNumSubtasks | ( | ) |
| magic null Task getParent | ( | ) |
| magic string getResourceSubtype | ( | ) |
| Section [] getSections | ( | ) |
| TaskWebhook [] getWebhooks | ( | ) |
| magic bool hasAssignee | ( | ) |
| magic bool hasCustomFields | ( | ) |
Premium feature.
| magic bool hasMemberships | ( | ) |
| magic bool hasName | ( | ) |
| magic bool hasNotes | ( | ) |
| magic bool hasParent | ( | ) |
| magic bool hasTags | ( | ) |
| magic bool isCompleted | ( | ) |
| TaskWebhook newWebhook | ( | ) |
Factory.
| magic bool ofMilestone | ( | ) |
| $this removeFromProject | ( | Project | $project | ) |
| $this removeFromProjects | ( | iterable | $projects | ) |
| magic Attachment [] selectAttachments | ( | callable | $filter | ) |
fn( Attachment $attachment): bool
| magic Membership [] selectMemberships | ( | callable | $filter | ) |
fn( Membership $membership ): bool
| magic $this setAssigneeStatus | ( | string | $status | ) |
| magic $this setCompleted | ( | bool | $completed | ) |
| magic $this setIsRenderedAsSeparator | ( | bool | $flag | ) |
| magic $this setName | ( | string | $name | ) |
| magic $this setNotes | ( | string | $notes | ) |
|
final |
| $this unfollow | ( | ) |
Removes the API user as a follower.
| $this update | ( | ) |
Reimplemented from UpdateTrait.


- Batting Average (BA):
- The total number of hits divided by the number of at-bats.
- Home Run (HR):
- A fair hit that allows the batter to round all of the bases and cross home.
- Runs Batted In (RBI):
- Any run credited to a specific
batter that results from a fair hit ball or base on balls.


GRIMO
Sign Up
Full Name
Email
Username
Password
Repeat Password
I agree to the
Terms of User
Sign Up
Sign in


Frank DelPidio
Web Developer
Portfolio
Blog
About
Contact
Mathematica
Probabilities of Winning in Texas Hold'Em
from the
Wolfram Demonstrations Project
by Lucca Siaudzionis


Greetings,
Looks like you need some help.
Someone, hopefully you, requested us to change your email for this account. Follow this link if you want to confirm the change of the email from {{ .Email }} to {{ .NewEmail }}:
|
If you did not request this change, someone else may be attempting to get access to your account. Reach out to us on www.choraleapp.com for support, in case you feel something is not right.
Have a nice day!


[Gecode] Bug tracking?
Guido Tack
tack at ps.uni-sb.de
Wed May 19 18:46:47 CEST 2004
On Wed, 19 May 2004 duchier at ps.uni-sb.de wrote:
> My recommendation is to go with a _standard_ and _modern_ tool.
> Forget jitterbug it doesn't satisfy either criterion. While bugzilla
> is rather complex, it has become so ubiquitous that people have become
> familiar with it anyway. I like the fact that bugzilla supports
> attachments: the lack of them is a big drawback in jitterbug. I also
> like the "activity log".
Ok, cool. If you all agree, I could set up a gecode bugzilla on Friday or
Monday (depending on whether I need root privileges, as Thorsten is on
vacation). BTW, we will need some kind of gecode homepage anyway if we
want to release sometime ;-)
I could of course offer http://www.ps.uni-sb.de/gecode, and that's where
I'd put up the bug tracking system.
Guido
--
Guido Tack
mailto:tack at ps.uni-sb.de
http://www.ps.uni-sb.de/~tack/
More information about the gecode-users
mailing list


| Loading ... ... Please wait. |
| ZEPRS Tour |
The ZEPRS Home page provides an easy way to search patients as well as a quick status update of current patients in the clinic. The clinician may search by keyword (family name, first names, ZEPRS ID, NRC number, staff username) or by clicking the first letter of the patient's surname. The search results provide the following:
The Home page also provides links to major tasks such as creating a new patient, viewing reports, and managing referrals.
Screenshot of Home page:
Detail of Patient Search - query by text or letter, clinic, and Labour status:
Search results headings:
Note that in the Search Results headings a column titled "SMC." This column displays the code for an HIV-positive patient. The ZEPRS system has a role-based permissions system that enabled different levels of access to data. If the user logged in with an account that was in the clerk group, she would not see this HIV status displayed and would only be able to view the new patient registration form/record.
There are links to both mother and infant available from the Search results:
The Patient Registration form collects basic demographic data about the patient. The system assigns unique ID’s based on the Lusaka district ID requirements. The district ID requirements were followed in order to integrate with the Safe Motherhood Care program already in-progress. There are other capabilities within the ZEPRS system that integrate with the Safe Motherhood Care program.
Many of the forms in the ZEPRS system use javascript to facilitate data entry. In this case, the Birth Date widget auto-calculates the age and pre-fills the "Age at First Attendance" field.
ID assignment:
The clinician may generate a new id or create an id for a patient who is already in the Safe motherhood program but not in the ZEPRS system. The ID assignment system uses AJAX functionality to query the server for the next available id or to check if the Safe Motherhood ID has already been issued. For most new patient registrations, it's a single-click operation - the new id is returned automatically to the page in-place.
Note the new ID assigned (Current ID).
The ZEPRS application uses a wizard-style mode of operations. After submitting a form, the system feeds the clinician the next logical form. The clinician may choose to get an overview of progress with her patient's care; the Task Lists provide this overview. The task lists help the user identify which forms need to be completed.
Screenshot of Delivery Summary/Postnatal task list:
Clicking on the Date link under the Visit Details column displays the record. Clicking the form name under the Form column displays the form. "Not Done" indicates that the form is available for data entry.
Screenshot of History task list:
This screenshot of Patient History screen shows the overall context of patient care within ZEPRS:
Some of the forms, such as Previous Pregnancies, are displayed as
charts. The field names are on the left, followed by previous values,
then data entry fields for new values. Clinician must enter
password at the bottom of the form and press a submit botton (in this
case, either "Done" or "Add").
Editing values in the ZEPRS system is very easy. During the course of a visit, the patient might remember that she had a 6 hour labour for the 1987 pregnancy instead of a 2 hour pregnancy. The clinician would double-click the value "2" to the right of the field "Duration of Labour" which would summons a small text entry field. Changing the value in this widget sends the new value to the server, and the new value appears in the place of the old value. The ZEPRS system stores all of the previous values in case data needs to be audited. This "in-place" editing is another example of ZEPRS' AJAX functionality.
The clinician may evaluate Estimated Gestation Age (EGA) based on three methods, and
choose which one to report. This form is presented as a modified version of
the typical chart, except in this case it's top-to-bottom instead of
left-to-right.
The clinician makes an entry to this chart upon every Antenatal
visit. The choices for Folate, Iron, and Malaria SP are used for the
Safe Motherhood Care program. If "Problem" is checked, the system will
forward the clinician to the Problem or Labour form.
If the patient is experiencing a problem during antepartum or intrapartum that the clinician wishes to note or if the patient is in Labour, she has the option of filling out this form. The clinician must complete this form in order to send the patient to labour management.
Sections of this form may be expanded or collapsed as needed. In the following screenshot, the “Vitals” section is expanded.
The system will admit the patient to labour if the Cervix Dilatation is >=4. The following screenshot highlights the Cervical Dilatation field.
Close-up: Disposition of patient in Problem/Labour Visit form
Even if the user chooses “Admit to Active Labor, the system forwards the user to the ”Observations for Latent Phase of 1st Stage of Labour” form if the Cervix Dilatation is <4.
Screenshot of Observations for Latent Phase of 1st Stage of
Labour” form - Cervix Dilatation field is highlighted:
Once the patient has reached cervix dilatation >=4, the system forwards the user to the Partograph.
The
Partograph is based on the paper chart endorsed by the
WHO for labor management. The clinician may click directly on the chart
to
enter data – the chart automatically updates. This is another
example of Ajax functionality in ZEPRS.
Closeup: Cervix/Descent plot:
Closeup: Data entry of a dropdown field:
Close-up: Vaginal Exam – The Partograph chart has a link to another chart for recording the vaginal exam during the labour process:
Close-up: Drugs dispensed during labour may be recorded while in the Partograph:
The ZEPRS application includes a referral system. Lusaka, Zambia has a single hospital, University Teaching Hospital (UTH), that handles complicated cases that the clinics refer. All of the Lusaka district clinics as well as UTH are connected via a wireless network and can refer patients electronically to UTH. The clinics use the referral application to monitor the status of their patients as the receive care at UTH. Clinicians may refer patients to UTH from many of the forms by selecting a dropdown:
When the form is submitted, this record appears on the Referrals page, which is available from a link on the left nav strip.
Clinicians at UTH who are responsible for admitting patients
may click on the “Admit” link in the list to admit
the patient. This link is only viewable by PC's at UTH.
Clicking “Admit” brings up a small form attached to the record that triggered the referral:
Submitting this small form admits the patient for UTH care.
During the course of the pregnancy, system-generated problems, as well as problems manually entered by the clinicians, may be viewed and commented upon in the Problem List:
Problems are also displayed on the right side of each form, record, and task list:
Users
may navigate to different parts of the ZEPRS
application from the left navigation strip. Some of the sections of the
navigation follow the main phases of pregnancy. Mother/child
relationships are also reflected in the navigation - a link to the
infant is displayed in the "Children" section.
Creating and editing forms may be administered using a web browser.
The following screenshot displays the fields in the Delivery Summary form.
Administration: Editing a form field using “Edit Selected Item” (Full edit):
For quick edits, one may use the “Edit field” or “Edit Rules” link to perform edits of common field elements. A small form appears to the right of the field left. This enables the user to process a lot of field changes while staying on the main form page.
Edit Rules – Rules attached to a field may be edited from the “Edit Rules” link:
Click on the links on the left navigation stip to take a short tour of the ZEPRS application. Click Print to display a print version of this whole tour.


MySQL is a fast, multi-threaded,
multi-user SQL database server. IoMySQL is a MySQL binding for Io,
by Min-hee Hong.
| ||
|
close
Closes a previously opened connection.
connect(host, user, password, database, port, unixSocket, useSSL)
Connect to a MySQL database.
connected
Returns true if connected to the database, false otherwise.
establish
Establish a connection to a MySQL database.
lastInsertRowId
Returns the value generated for an AUTO_INCREMENT column by the previous INSERT or UPDATE statement.
query(aQueryString)
Perform a SQL query and return a list of results.
db query("SELECT * FROM accounts") foreach(println) |


--- layout: archive title: Zulip Chat Archive permalink: /stream/113488-general/topic/mem.20in.20binder.html ---
I wrote the code ⨅ U ∈ nhd_zero R, principal {p : R×R | p.2 - p.1 ∈ U}
but now I realize I don't quite understand what's going on under the hood. The inf notation is defined by:
def infi [complete_lattice α] (s : ι → α) : α := Inf {a : α | ∃i : ι, a = s i} notation `⨅` binders `, ` r:(scoped f, infi f) := r
What is ι
in my case?
It magically becomes ⨅ U, ⨅ (H : U ∈ nhd_zero R), principal {p : R×R | p.2 - p.1 ∈ U}
ok, this is consistent with stuff I saw
You can even refer to H
after the comma, though this seems like a bad idea to me
Thank you
I'm writing really strange looking code
I hope Johannes will help me clean it up
It's getting really late here. I'll give up for today. If someone else wants to play with filters while I sleep, I think the lemma I need next is:
lemma filter.mem_sets_of_mem_infi {α : Type*} {ι : Sort*} {f : ι → filter α} {A : set α} : A ∈ (⨅ i,f i).sets → ∃ i, A ∈ (f i).sets
Last updated: Apr 24 2020 at 19:02 UTC


Select an image in the Word document and then load it.
In the add-in, place a callout by clicking the mouse.


The kirby list will emit a
loadMore
event, when the user has scrolled 80% of the list. It is the responsibility of the consumer to
add more items to the bound
items
.
The event emitted is of type
KirbyLoadMoreEvent
which exposes a
complete()
callback function.
The
complete()
callback function should be called when the loading of the additional items are done.
If
complete(disableLoadMore?: boolean)
is called with the
disableLoadMore
argument set to
true
, no further events will be emitted. If
noMoreItemsText
is configured it will be shown at the end of the list at this point.


(function (root, factory) {
'use strict';
Backbone.CompositeModel 0.1.7 https://github.com/prantlf/backbone.composite-model
Copyright (c) 2015-2017 Ferdinand Prantl Licensed under the MIT license.
Supports composite Backbone.Model objects which consist of a main model and child models or collections maintained automatically according to a composite configuration
Let’s have a versioned file-system model: folders which contain
sub-folders and files, files consisting of file versions. The REST
API resource /files/:id
returns the following (simplified) response
about a file:
{
id: ..., // globally unique ID
name: '...', // file display name
parent_expanded: {...}, // parent folder object
versions: [...] // version object array
}
Let’s declare the following (simplified) models and collections for them:
var FolderModel = Backbone.Model.extend({...});
var VersionCollection = Backbone.Collection.extend({...});
var FileModel = Backbone.Model.extend({...})
// Declare what attributes from the response back
// up what child models and collection stored in
// properties on the object instance
composite: {
parent_expanded: {
model: FolderModel,
property: 'parent'
},
versions: VersionCollection,
},
// Override the constructor to see the name `FileModel`
// in the debugger and to be able to initialize the
// composite model
constructor: function FileModel(attributes, options) {
FileModel.__super__.constructor.apply(this, arguments);
this,makeComposite(options);
},
// Point to the resource representing the file
// on the server
urlRoot: '/files'
});
// Extend the function object prototype to become
// a composite of child models and collections
Backbone.mixinCompositeModel(FileModel.prototype);
This lets the parent
and versions
properties maintained automatically
without an additional code.
var file = new FileModel({id: ...});
file.fetch()
.done(function () {
console.log('Name:', file.get('name'));
// This does not work.
console.log('Parent folder:', file.parent.get('name'));
console.log('Version count:', file.versions.length);
});
The parent
object and the versions
array are be accessible as
Backbone.Model
and Backbone.Collection
to be able to pass them to
other models and views and listen to their events in the application
using a common Backbone interface.
UMD wrapper to support multiple module dependency loaders
(function (root, factory) {
'use strict';
Handle AMD modules (RequireJS)
if (typeof define === 'function' && define.amd) {
define(['underscore', 'backbone'], factory);
Handle CommonJS modules (NodeJS)
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('underscore'), require('backbone'));
Handle global variables setting modules (web browser alone)
} else {
root.returnExports = factory(root._, root.Backbone);
}
}(this, function (_, Backbone) {
'use strict';
Applied on a Backbone.Model
prototype, extends it to support model
composites made of child models and collections, which can be
configured by the composite
property from the object prototype,
instance or constructor options
.
Members of the composite
object (map):
// Maintains a property on the model instance with
// the attribute name pointing to an object instance
// of the specified type
<attribute name>: <Backbone model or collection>,
// Maintains a property on the model instance backed
// up by the specified attribute overriding the
// default handling
<attribute name>: {
// Model or collection to create for the attribute
// value (required)
type: <Backbone model or collection>,
// Property name to store the sub-object on the
// model with (optional; the attribute name is
// the default)
property: <property name>,
// Additional options to pass to the constructor of
// the sub-object (optional; undefined by default)
options: <object literal>,
// Method to call on the child model or collection
// if updated data are being set (optional; `set` is
// the default for models, `add` for collections)
method: <method name>,
// Function to call before the value is passed to
// child model or collection constructor or `set` /
// `add` method to "massage" the input data
// (optional; `undefined` is the default)
parse: <function (value, options)>,
}
Backbone.mixinCompositeModel = function (prototype) {
var originalSet = prototype.set,
originalToJSON = prototype.toJSON;
return _.extend(prototype, {
Initializes the composite model support; to be called from the
initialize
method or from the overridden constructor, after
the parent constructor has been called
makeComposite: function (options) {
Mark the object creation scenario for the _updateComposite below
options = _.extend({create: true}, options);
this._compositeMap = this._createCompositeMap(options);
Update properties explicitly, because the set
method with
the initial attributes of the model is called in the parent
constructor already, before the _compositeMap
has been
called here, thus the composite extension could not apply yet
this._updateComposite(this.attributes, options);
return this;
},
Overrides the Backbone.Model:set()
method to ensure that the
nested attribute values will be propagated to the child models
and collections of this composite
set: function (key, value, options) {
var attributes;
Do nothing if nought has been asked for
if (key == null) {
return this;
}
Normalize the input parameters to become two object literals:
handle both 'key', value
and {key: value}
-style arguments
if (typeof key === 'object') {
attributes = key;
options = value;
} else {
(attributes = {})[key] = value;
}
options || (options = {});
Set the common attributes and check the result first
var result = originalSet.call(this, attributes, options);
Update the child models and collections if the composite map has been initialized (after the constructor has finished)
if (result && this._compositeMap) {
this._updateComposite(attributes, options);
}
Return the same result as the original set
method
return result;
},
Overrides the Backbone.Model:toJSON()
method to ensure that the
up-to-date nested attribute values will be present in the result
toJSON: function(options) {
var result = originalToJSON.call(this, options);
Update keys maintained by child models and collections only if the composite map has been initialized (after the constructor has finished)
if (this._compositeMap) {
Process only attributes listed in the composite map
_.each(this._compositeMap, function (composite, key) {
Get the nested model or collection for the composite item
var child = this[composite.property];
If the nested model or collection is available, propagate its current content to the resulting JSON
if (child) {
result[key] = child.toJSON();
}
}, this);
}
return result;
},
Merges prototype.composite and options.composite and normalizes the child model or collection configuration
_createCompositeMap: function (options) {
Allow specifying the composite property as a function returning the actual configuration object
var thisComposite = this.composite,
optionsComposite = options.composite;
if (typeof thisComposite === 'function') {
thisComposite = thisComposite.call(this, options);
}
if (typeof optionsComposite === 'function') {
optionsComposite = optionsComposite.call(this, options);
}
if (thisComposite && typeof thisComposite !== 'object' ||
optionsComposite && typeof optionsComposite !== 'object') {
throw new Error('Invalid composite configuration');
}
Allow the caller to specify additional or override existing attribute rules defined in the prototype or in the instance
var composite = _.extend({}, thisComposite, optionsComposite);
return _.reduce(composite, function (result, model, attribute) {
var property, parse, method;
Just model or collection function object can be used for convenience
if (model.prototype instanceof Backbone.Model ||
model.prototype instanceof Backbone.Collection) {
property = attribute;
Otherwise the child model or collection object descriptor should be an object literal with configuration properties
} else {
if (typeof model !== 'object') {
throw new Error('Invalid composite child descriptor');
}
Attribute name is the default for the property name
property = model.property || attribute;
Make sure that the extra data parsing function is not set or is a valid function
parse = model.parse;
if (parse != null && typeof parse !== 'function') {
throw new Error('Invalid child model data parse function');
}
method = model.method;
Make sure that the child model or collection type is valid
model = model.type;
if (!(model.prototype instanceof Backbone.Model ||
model.prototype instanceof Backbone.Collection)) {
throw new Error('Invalid composite child model');
}
}
Avoid replacing an existing prototype member with the child model or collection instance
if (prototype[property]) {
throw new Error('Property conflict in the composite prototype');
}
Use the default data updating method if not specified
if (!method) {
method = model.prototype instanceof Backbone.Model ? 'set' : 'add';
}
Make sure that the data updating method exists in the child model or collection prototype
if (!model.prototype[method]) {
throw new Error('Invalid chidl model data updating method');
}
Make every map entry look consistent
result[attribute] = {
model: model,
property: property,
parse: parse,
method: method
};
return result;
}, {});
},
Checks if the changed attributes contained a key, which backs up a child model or collection and updates the child object accordingly
_updateComposite: function (attributes, options) {
Creates a new instance of the child model or collection
function create(composite, parameters) {
var createOptions = _.extend({}, composite.options, options);
this[composite.property] = new composite.model(parameters,
createOptions);
}
Ensures that the property with the child model or collection exists and clears it if
function createOrClear(composite) {
var child = this[composite.property];
if (child) {
Clearing an attribute on the main model should clear the
child model or collection; requesting the parse
option
gives a hint about re-fetching the entire model, which
should do the same, but not when saving; the server may
respond with incomplete model attributes
TODO: How to handle fetch
with suppressed parse
?
TODO: How to handle save
with suppressed validation?
if (options.unset || options.parse && !options.validate) {
if (child instanceof Backbone.Model) {
child.clear(options);
} else {
child.reset(undefined, options);
}
}
} else if (options.create) {
If called from the constructor or with an undefined or with an explicit null, force creation of empty child models and collections, at least
create.call(this, composite);
}
}
Propagates the attribute change to the child model ort collection
function populate(composite, value) {
Pre-process the attributes or models before they are propagated to the child object
if (composite.parse) {
value = composite.parse.call(this, value, options);
}
If called from the constructor, the property will not exist
var child = this[composite.property];
if (child) {
When the main model is re-fetched, the child models or
collections should be reset; requesting the parse
option
gives a hint about it and the validate
option discloses
the saving; the server may respond with an incomplete data
TODO: How to handle fetch
with suppressed parse
?
TODO: How to handle save
with suppressed validation?
if (options.parse && !options.validate) {
if (child instanceof Backbone.Model) {
var missing = _.omit(child.attributes, _.keys(value));
child.set(missing, {
unset: true,
silent: true
});
} else {
child.reset(undefined, {silent: true});
}
}
child[composite.method](value, options);
} else {
create.call(this, composite, value);
}
}
Process only attributes listed in the composite map
_.each(this._compositeMap, function (composite, key) {
Leave the child model or collection intact if the attributes do not contain its key
if (_.has(attributes, key)) {
var value = attributes[key];
if (value != null) {
populate.call(this, composite, value);
} else {
createOrClear.call(this, composite);
}
} else {
If called from the constructor without attributes, force creation of empty child models and collections, at least
createOrClear.call(this, composite);
}
}, this);
}
});
};
Export the function to apply the mixin to a prototype either as a result
of this module callback or as a property on the Backbone
object
return Backbone.mixinCompositeModel;
}));


Jenna Ortega Shares Brand New 'You' Promo On Instagram - Meet Her Character, Ellie!
Jenna Ortega scrolls through her phone in this brand new promo for You.
In the series, the 16-year-old actress plays Ellie, teenager who isn’t afraid to do her own scheming.
If you don’t know, the first season of You centered on Joe Goldberg (Penn Badgley), an anti-social bookstore manager with a dark side.
However, in season two, Joe, who now goes by Will, is on the other side of the country in LA and surrounded by screenwriters, influencers, and everyone that’s “pretending to be someone they’re not.”
Check out the ominous promo below and catch You season two on Netflix, premiering on Thursday, December 26th!


{% assign currentTime = 'now' | date: '%s' | plus: 0 %}
{% comment %}
Skip events that have already happened, but we still have to check in javascript
because Jekyll only runs to rebuild the list when changes are made to the site.
This converts the date (or end date, if there is one) of the event to seconds,
adds 172800 seconds (2 days), and stores it in a variable called expireTime. It
then does not add the event if the expireTime is less than the current time (or in
other words, the expireTime has already passed). This makes sure that whenever
the page is rebuilt, only events that are within two days of the beginning of
their end date will show up.
{% endcomment %}
{% for event in site.upcoming_events %}
{% if event.end_date %}
{% assign expireTime = event.end_date | date: "%s" | plus: 172800 %}
{% else %}
{% assign expireTime = event.date | date: "%s" | plus: 172800 %}
{% endif %}
{% if expireTime > currentTime %}


Retro Shooter Jamestown+ Lands On Nintendo Switch This December
Top-down fun for 4 players
by Ryan CraddockUpdate: The publisher has confirmed that Jamestown+ will hit Nintendo Switch on December 12th.
Original story (Thu 1st Aug, 2019 16:30 BST): Top-down retro shooter Jamestown+ has its sights set on Nintendo Switch, it has been confirmed. The game will be launching for the console in Q4 2019.
The game will arrive with new updates and improvements - which will incidentally be added to the already-existing PS4 version when the Switch edition becomes available - and, as the co-founder of Final Form Games puts it, will give all players "the chance to experience Jamestown the way we originally intended".
Players use just three buttons - Fire for basic attacks, Special for powerful weapons, and Vaunt for a bullet-eating, score-amplifying shield - and will need to learn how to take advantage of that shield to gain points for your team. You see, this is a four-player game, where you and your teammates will coordinate attacks by choosing from eight ships with different weapons. We'll let the press release set the scene:
Sir Walter Raleigh has been sentenced to death in the Tower of London. In hopes of securing absolution for his “crimes” by solving the mystery of the Lost Colony of Roanoke, Raleigh flees to 17th-century British Colonial Mars.
Board his Conveyance, a rocket-sled equipped with dreadful munitions, and set course for Britain’s well-known Martian colony -- Jamestown. Guide Sir Raleigh on his journey to take down the deranged, power-hungry Conquistador and his armies of deadly robots and bizarre Martian warriors – and help him learn to fight for a cause bigger than himself.
It's said that the game's bullets and enemies are easy to see thanks to its hand-crafted retro artstyle, and that you'll find 20 unlockable challenge levels, five difficulties, and an "emotionally-stirring" orchestral score waiting for you.
The game will be available from the Nintendo Switch eShop for $17.99.
Does this one have your name all over it? Fire a comment our way down below.


User Interface
- ユーザインターフェースのカスタマイズオプションを説明する Describe the user interface customization options.
- カスタムボタン、リンク、およびアクションの機能とユースケースを説明する Describe the capabilities of and use cases for custom buttons, links, and actions.
- アプリケーションに Lightning コンポーネントを組み込む場合に利用できる宣言的オプションを説明する Describe the declarative options available for incorporating Lightning Components in an application.
- 与えられたシナリオに従って、適切なユーザインターフェース設計を決定する Given a scenario, determine the appropriate user interface design.
Lightning Components
Use Lightning Components to build modern web apps with reusable UI components.
-
Describe what the Lightning Components framework is, and what it’s used for.
- Lightning Components is a UI framework for developing web apps for mobile and desktop devices. It’s a modern framework for building single-page applications with dynamic, responsive user interfaces for Lightning Platform apps. It uses JavaScript on the client side and Apex on the server side.
-
List at least five different ways you can use Lightning Components to customize Salesforce.
- Add Apps to the Lightning Experience App Launcher
- Add Apps to Lightning Experience and Salesforce App Navigation
- Create Drag-and-Drop Components for Lightning App Builder and Community Builder
- Add Lightning Components to Lightning Pages
- Add Lightning Components to Lightning Experience Record Pages
- Launch a Lightning Component as a Quick Action
- Override Standard Actions with Lightning Components
- Create Stand-Alone Apps
- Run Lightning Components Apps Inside Visualforce Pages
- Run Lightning Components Apps on Other Platforms with Lightning Out
- Customize Flow Screens
Quizs
-
Which of the following descriptions about the Lightning Component framework is true?
- It’s a UI framework for developing web apps for mobile and desktop devices.
- It uses JavaScript on the client side and Apex on the server side.
- It’s a modern framework for building single-page applications.
- All of the above
-
What can you build with the Lightning Component framework?
- Standalone app
- Components to use inside Visualforce pages
- Drag-and-drop components for Lightning App Builder
- All of the above
-
How is Lightning Components different from other web app frameworks?
- Lightning Components is optimized for both mobile and desktop experiences and proves it with Salesforce1 and Lightning Experience.
- Lightning Components connects natively with services provided by the Salesforce platform.
- Lightning Components has specific opinions about how data access is performed and has specific security requirements.
- All of the above
What Is a Component?
- As a practical matter, a component is a bundle that includes a definition resource, written in markup, and may include additional, optional resources like a controller, stylesheet, and so on. A resource is sort of like a file, but stored in Salesforce rather than on a file system.
What Is an App?
-
An app is just a special kind of component! For the purposes of this module, you can think of an app as being different from a component in only two meaningful ways:
- An app uses
<aura:application>
tags instead of<aura:component>
tags. - Only an app has a Preview button in the Developer Console.
- An app uses
Component Attributes
Attributes on components are like instance variables in objects. They’re a way to save values that change, and a way to name those value placeholders.
- A component attribute is the place where you can store a value
- You define a component attribute using the
<aura:attribute>
tag (attribute definitions) - The
<aura:attribute>
tag itself takes attributes when you use it! (normaly, attribute is defined by setting the name and type of the attribute)
Expressions
An expression is basically a formula, or a calculation, which you place within expression delimiters (
{!
and}
)
- An expression is any set of literal values, variables, sub-expressions, or operators that can be resolved to a single value.
- You can pass expression to another component to set the value on that component
<aura:component>
<aura:attribute name="customMessage" type="String"/>
<p> <c:helloMessage message="{!v.customMessage}"/> </p>
</aura:component>
Value Providers
Value providers are a way to group, encapsulate, and access related data. Value providers are a complicated topic, so for now, think of
v
as an automatic variable that’s made available for you to use.


Custom element FileUpload can be used for uploading file(s) to a server. In this demo you can browse for files and click the widget's buttons to see how it will work in a real environment. For uploading files however, you should set the "uploadUrl" property to point to a Web Server file that will handle the actual Upload process.


--- layout: archive title: Zulip Chat Archive permalink: /stream/113489-new-members/topic/Mitchell.html ---
Hi @Mitchell Rowett ! How is your group theory going?
I'm constructing a pull request for subgroups and cosets as we speak, but I think it will have to wait until morning - I'm having some technical issues.
My computer tells me you wrote "I think it will have to wait until morning" at 11:55am, so it was still morning :wink:
Is your technical issue a Git issue or Lean issue?
I think it's a path issue from having two versions of mathlib
What time is it for you? 10pm or something?
Yep
You should have a Lean package organized as explained in https://leanprover.github.io/reference/using_lean.html#using-the-package-manager
Then there is no more Lean path issues
Ah, that's embarrassing. I should have thought of that.
well actually mathlib itself has not yet switched to this new layout
So I guess I'm wrong when suggesting this about a mathlib PR.
I think you should use leanpkg for all your project except mathlib. Then there is no user-wide copy of mathlib floating around. Each project has its copy and of course your clone of mathlib for PR purposes is its own copy of mathlib
If you use Linux you can check $HOME/.lean/_target/deps
to see if you have a user-wide copy of anything
@Mario Carneiro are you interested in having a PR moving mathlib to the new fashionable leanpkg layout?
Thanks Patrick. It doesn't look like I have a user-wide copy. I think I'm just missing something obvious.
@Patrick Massot Has anything changed here recently? Does leanpkg support import renames now or something?
If nothing has changed besides documentation, I'm not seeing why to change mathlib
I'm not aware of new features, but Lean issues a warning each time you compile mathlib because the source files are not in src
. Maybe it's related to new smarter recompilation policies but I'm not sure, we need to ask @Sebastian Ullrich
@Mitchell Rowett What happens exactly when you go to your mathlib working directory and type lean --make
?
Using src/
for a package fixes a few issues related to dependencies and tests. mathlib doesn't have any dependencies, but moving tests
to test
and everything else to src
would at least mean that mathlib users cannot import the tests. And remove the warning message.
@Patrick Massot
I think you should use leanpkg for all your project except mathlib.
What do you mean by that?
I meant mathlib has no dependency and is not yet using the new layout so there is no point in using leanpkg here
Ah, okay. On the flip side, there really is no benefit of lean --make
over leanpkg build
even for mathlib.
Last updated: Apr 24 2020 at 19:02 UTC


2 Ugandans killed in Rwanda amid border tension
by RISDEL KASASIRAKAMPALA, Uganda (AP) — Uganda’s police said on Sunday that two Ugandans had been killed by Rwandan security forces in an incident that may escalate the border tension between the two East African countries.
Elly Maate, police spokesman of Uganda’s Kigezi region, which borders Rwanda, said the victims had smuggled tobacco to Rwanda.
“These two Ugandans were shot dead on November 9th at around 20:00 hours at Tabagwe village in Nyagatare district in Rwanda by Rwandan security forces on allegations that they were smuggling tobacco into Rwanda,” said Maate.
He said Uganda’s border security officials were working to repatriate the bodies from Rwanda for burial.
The political tension between the two countries climaxed in February when Rwanda closed its border and blocked all goods from Uganda.
As a result of the closed border, communities near the border have resorted to smuggling.
Advertising
Last week, one Rwandan was killed and another injured by the Rwandan police after they crossed the border to buy food in Uganda.
Maate warned Ugandans to stop using unofficial border points to enter Rwanda.
“I want to caution our people along the border to stop doing things that put their lives at risk by entering the country through porous border points because our security forces can’t protect you,” he said.
RISDEL KASASIRA


We're here to help your district build capacity to reach professional development goals.
Access our toolkit to gather data from leaders and teachers about the current state of your professional development system, design a plan to reach local goals, and implement system changes that support teachers in the classroom.
Connect with a community of peers and partners to share solutions.


Indie Deadlines
A crowd-sourced calendar of important deadlines for indie game creators
UPCOMING DEADLINES
Event
Location
Region
Submission Deadline
Event date
Sub Fee
Platforms


Special Fields¶
There are a couple of other top level fields that act more in a support role, rather than being part of the main processing.
modules¶
Almost all aspects of the file building can be customized by the user if the existing GalSim types do not do precisely what you need. How to do this is described in the pages about each of the different top-level fields. In all cases, you need to tell GalSim what Python modules to load at the start of processing to get the implementations of your custom types. That is what this field is for.
The modules
field should contain a list of modules that GalSim should import before
processing the rest of the config file. These modules can be either in the current directory
where you are running the code or installed in your Python distro. (Or technically, they
need to be located in a directory in sys.path
.)
See:
for some examples of this field.
eval_variables¶
Sometimes, it can be useful to define some configuration parameters right at the top of the config file that might be used farther down in the file somewhere to highlight them. Or sometimes, there are calculations that are needed by several different values in the config file, which you only want to calculate once.
You can put such values in a top-level eval_variables
field. They work just like
variables that you define for Eval
items, but they can be placed separately from those evaluations.
For examples of this field, see:
template¶
This feature directs the config processing to first load in some other file (or specific field with that file) and then possibly modify some components of that dict.
To load in some other config file named config.yaml
, you would write:
template: config.yaml
If you only want to load a particular field from that file, say the image
field, you could
write:
template: config.yaml:image
The template field may appear anywhere in the config file. Wherever it appears, the contents
of the other file will be a starting point for that part of the current config dict,
but you can replace
or add values by specifying new values for some of the fields. Fields that are not at
the top level are specified using a .
to proceed down the levels of the config hierarchy.
e.g. image.noise.sky_level
refers to config['image']['noise']['sky_level']
.
For example, if you have a simulation defined in my_sim.yaml
, and you want to make another
simulation that is identical, except you want Sersic galaxies instead of Exponential galaxies say,
you could write a new file that looks something like this:
template : my_sim.yaml
gal:
type : Sersic
n : { type : Random, min : 1, max: 4 }
half_light_radius :
template : my_sim.yaml:gal.half_light_radius
flux : 1000
output.dir : sersic_sim
This will load in the file my_sim.yaml
first, then replace the whole config['gal']
field
as well as config['output']['dir']
(leaving the rest of config['output']
unchanged).
The new config['gal']
field will use the same half_light_radius
specification from
the other file (which might be some complicated random variate that you did not want to
duplicate here).
If the template
field is not at the top level of the config dict, the adjustments should be
made relative to that level of the dictionary:
psf :
template: cgc.yaml:psf
index_key : obj_num
items.0.ellip.e.max : 0.05
items.1.nstruts : 1
items.1.strut_angle : { type : Random }
Note that the modifications do not start with psf.
, since the template processing is being done
within the psf
field.
Finally, if you want to use a different field from the current config dict as a template, you can use the colon notation without the file. E.g. To have a bulge plus disk that have the same kinds of parameters, except that the overall type is a DeVaucouleurs and Exponential respectively, you could do:
gal:
type: Sum
items:
-
type: DeVaucouleurs
half_light_radius: { type: Random, min: 0.2, max: 0.8 }
flux: { type: Random, min: 100, max: 1000 }
ellip:
type: Eta1Eta2
eta1: { type: RandomGaussian, sigma: 0.2 }
eta2: { type: RandomGaussian, sigma: 0.2 }
-
template: :gal.items.0
type: Exponential
This would generate different values for the size, flux, and shape of each component. But the way those numbers are drawn would be the same for each.
It is also possible for modules to register a name for a template file, so users can use that name rather than the actual file location. For instance, if a module has a template yaml file that is installed with the python code, it will typically be in an obscure location in a Python site-packages directory somewhere. But the installed module would be able to know this location and register it by name. E.g. “my_default_sim”. Then users who want to start with that canonical config file and maybe modify a few things can write:
modules:
- my_module
template: my_default_sim
image.random_seed: 12345
image.nobjects: 500
output.file_name: objs_500.fits
To use this feature, the module (i.e. my_module in the example here) should register the name to the correct file name using the RegisterTemplate
function:
module_dir = os.path.dirname(__file__)
default_sim_file = os.path.join(module_dir, 'my_default_sim.yaml')
galsim.config.RegisterTemplate('my_default_sim', default_sim_file)
-
galsim.config.
RegisterTemplate
(template_name, file_name)[source]¶ Register a template config file with the given named alias.
There are currently no named templates shipped with GalSim, but this function provides a mechanism for modules to register a config file with a more user-friendly name for a module-provided configuration that may be stored in an awkward location on disk.
E.g. LSSTDESC.imSim has a few configurations that include most of the default recommended modules for producing various simulations of LSST images. They are stored in the imSim data directory, but users can just use the named value as a more convenient alias.
- Parameters
template_name – The name to allow in a ‘template’ field in lieu of the file name.
file_name – The actual file name on disk with the configuration file.
See:
for more examples of this feature.
Special Specifications¶
A few specifications may be used almost anywhere in the config to adjust how the values in those
fields are processed. They are automatically propagated to lower levels in the dictionary.
For instance, if you set index_key : image_num
in the psf
field, then all values
generated for any aspect of the psf will be constant for a whole image and only change
when the processing goes on to the next image.
index_key¶
This specifies the cadence on which to generate a new value for each non-constant value. There are default cadences for each of the major top-level fields, but if you want to specify a different cadence for some value or field, then you can override it.
Options are:
‘file_num’ Update the values for each new file. This is the default for items in the
input
andoutput
fields.‘image_num’ Update the values for each new image. This is the default for items in the
image
field that apply to the full image (i.e. not includingrandom_seed
,image_pos
,world_pos
, etc.).‘obj_num’ Update the values for each object. This is the default for the other items in
image
, and also for items instamp
,gal
, andpsf
.‘obj_num_in_file’ For this purpose, equivalent to ‘obj_num’. (For ‘Sequence’ value types, there is an important distinction between the two. See its description in Config Values for more details.)
It is also possible for a custom module to add additional valid values here by adding to galsim.config.valid_index_keys
, which is a list of strings, which are allowed.
rng_index_key¶
Each index_key
has its own random number generator to use for generating values that need an rng object. Normally you want these to match up, but this lets you specify to use the rng for a different key than is used for the actual sequencing.
For instance, if you set rng_index_key = 'image_num'
for a gal
value, then it will use the rng normally used for image_num items, but it will still generate a new value for each obj_num.
rng_num¶
Normally you specify a single random number seed, which spawns a sequence of rng objects that
update according to the above index keys. So an rng for each object is stored in obj_num_rng
,
one for image_num values is in image_num_rng
, etc.
However, you are allowed to specify this seed sequence manually, and in particular, you can have it be a list of several different sequences which update at different rates, and may repeat. For instance, this may be useful to have some galaxy properties repeat for several exposures, while other properties of the observations are different for each exposure.
You would specify which random number you want to use from such a list using rng_num
in a
field. See the description of random_seed
in Image Field Attributes for more information.


RT @TestRubyPDX: 1 wk from now we'll be ordering pizzas & gearing up for our first meeting EVER w talks by @jasonrclark & @DustinZeisler. B…
12/7/2015, 5:51:49 PM
Favs: 0
Retweets: 0
link--- layout: tweet ---
RT @TestRubyPDX: 1 wk from now we'll be ordering pizzas & gearing up for our first meeting EVER w talks by @jasonrclark & @DustinZeisler. B…
12/7/2015, 5:51:49 PM
Favs: 0
Retweets: 0
link


Functional Programming seems to break down programs into functions that perform some operations whereas in object-oriented programming, programs are broken into classes that give behavior to some kind of data input that class represents.
So to try and break this down into the simplest terms, it's basically comes down to how you want to organize code. Do you want to organize your code by functions where things that use the function would grouped together under the function. In this case you would use functional programming.
The alternative would be where you organize your code by things and put any function that the thing can do grouped with the thing. I would like replace thing with the term object and method for function in the case of Ruby. So the way you organize objects in ruby is through creating classes and inserting methods that you want the classes to do.
So for the most part, picking between functional programming and object-orientated program is just the preference of organization, however there are specific scenarios where one might be more beneficial than the other. Objected-oriented languages are good for when you have a fixed set of functions for things, and as time passes, there become more things that you want to add. You do this by adding new classes, while existing things remain the same. Functional languages are good for when you have already know all the things need for the program, and as time passes the only thing you want to change in the function and behaviors of things over time. You would create new functions that would manipulate existing things, while old functions stay the same.


HONEY I BLEW UP THE KID A film review by Steve Rhodes Copyright 1997 Steve Rhodes
RATING (0 TO ****): ** 1/2
When I was growing up, the kids' movies, even (or especially) the B movies, had one redeeming feature: a fascination with science. What better way to enliven a kid's imagination than a science fiction film?
The HONEY I SHRUNK THE KIDS series provides not only science fiction, but the appreciation for creativity and the whole invention process. Moreover, they celebrate quirky people as people to be admired rather than ridiculed since their big ideas might just work.
The second film in this series is director Randal Kleiser's HONEY I BLEW UP THE KID. Released in 1992, it represents a nicely done B movie for the whole family. The slightly hokey special effects are just realistic enough not to be ridiculed.
The same cast for the Szalinski family is back from the original, but this time they have a two year old named Adam, played alternatively by twins Daniel and Joshua Shalikar. Rick Moranis repeats his role as Wayne, the father and Rube Goldberg-style inventor. Marcia Strassman plays his understanding wife Diane. Robert Oliveri, as Nick, has hit puberty and has his eyes cast on Adam's baby-sitter, Mandy Park (Keri Russell). Amy O'Neill returns only briefly as Nick's sister Amy.
The premise of the show is that Wayne is trying to perfect a machine to enlarge items. Adam accidentally walks into the path of its laser, and, voila, giant toddler on the way. As Adam grows by leaps and bounds, they figure out that he has growth spurts when he comes close to electrical waves.
Where does he go to sop up electricity? Why Las Vegas, of course, with all its neon glitter. Beside, what more visually interesting place to film a giant than a backdrop of neon figures as big as this Godzilla-sized toddler.
I will not reveal the resolution to their predicament, but here's a hint. "There's one thing every little kid knows," Diane tells us. "Daddies mean fun; mommies mean business."
A film that from start to finish is good spirited family fun, it never lapses into parody and never pretends to be more than it is.
HONEY I BLEW UP THE KID runs just 1:29. It is rated PG, but I am not sure why. The film would be fine for all ages. The recent video HONEY WE SHRUNK OURSELVES is our 8-year-old Jeffrey's favorite in this series, but he likes HONEY I BLEW UP THE KID too. I recommend this picture to you and your family and give it ** 1/2.
**** = A must see film. *** = Excellent show. Look for it. ** = Average movie. Kind of enjoyable. * = Poor show. Don't waste your money. 0 = Totally and painfully unbearable picture.
REVIEW WRITTEN ON: April 19, 1997
Opinions expressed are mine and not meant to reflect my employer's.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews