Past Notifications
{{thisNotification.title}}
{{thisNotification.message}}
Recipients: {{thisNotification.recipients}}URL: {{thisNotification.url}}
Sent on {{thisNotification.sentTimeStamp | date:'medium'}}
Showing Page {{currentPage}} , {{pageRecordStartIndex}} to {{pageRecordEndIndex}} Notifications out of {{totalNotifications}} Notifications


Windows
A fatal exception 0E has occured at 028:C00068F8 in VxD VMM(01) 000059F8. The current application will be terminated.
* Press any key to terminate the application.
* Press CTRL+ALT+DEL to restart your computer. You will lose any unsaved information in all aplications.
Press any key to continue _
Windows
A fatal exception 0E has occured at 028:C00068F8 in VxD VMM(01) 000059F8. The current application will be terminated.
* Press any key to terminate the application.
* Press CTRL+ALT+DEL to restart your computer. You will lose any unsaved information in all aplications.
Press any key to continue _
Windows
A fatal exception 0E has occured at 028:C00068F8 in VxD VMM(01) 000059F8. The current application will be terminated.
* Press any key to terminate the application.
* Press CTRL+ALT+DEL to restart your computer. You will lose any unsaved information in all aplications.
Press any key to continue _


| User ID | User Name | Salt | Role | Time Created | Operations | |
|---|---|---|---|---|---|---|
| {{user._id}} | {{user.username}} | {{user.email}} | {{user.salt}} | {{user.role}} | {{user.timecreated}} |
| Question ID | Sequence | Title | Difficulty | Frequency | Rating | Operations |
|---|---|---|---|---|---|---|
| {{question._id}} | {{question.sequence}} | {{question.title}} | {{question.difficulty}} | {{question.frequency}} | {{question.rating}} |
| Submission ID | User Name | Question Name | Language | Solution | Status | Time Updated | Time Submitted | Runtime | Operations |
|---|---|---|---|---|---|---|---|---|---|
| {{submission._id}} | {{submission.username}} | {{submission.questionname}} | {{submission.language}} | {{submission.solution}} | {{submission.status}} | {{submission.timeupdated}} | {{submission.timesubmitted}} | {{submission.runtime}} |


Movie Seeker
Want to customize your experience?
Second step: Make your own categories
Group Name
Movie 1
Movie 2
Movie 3
Submit
Group Name
Movie 1
Movie 2
Movie 3
Submit
Group 1
movie1
movie2
movie2
Group 1
movie1
movie2
movie2
NEXT ->


Favorite Places I've Been
Vancouver, BC
Seattle, WA
Portland, OR
Where I Want To Go
New Zealand
Berlin
Antarctica


THE SWEET HEREAFTER A film review by David N. Butterworth Copyright 1997 David N. Butterworth
***1/2 (out of ****)
Towards the middle of "The Sweet Hereafter," a crowded school bus skids on an icy road surface as it rounds a bend, careens through the steel guard rail, and disappears out of sight. Then, in long shot, we see the vehicle slowly sliding across what looks like a snow-covered field. It pauses for a moment before the "field" cracks under the bus' weight and the bright yellow vehicle vanishes in an effortless moment, a single smooth second of time.
Compare that scene, if you will, to the last eighty minutes of "Titanic," when the behemoth sinks slowly and spectacularly to its watery demise, and you'll appreciate the futility of comparing greatness in films.
The scene in "The Sweet Hereafter" epitomizes all that's right with independent Canadian director Atom Egoyan's film. It's not sensational. We don't see the inside of the bus with its payload of screaming, terrified children being bloodied and battered about. The bus doesn't explode or break into a thousand tiny pieces. It simply leaves the road and silently slips beneath the surface of a frozen lake. It's a horrifying sequence made all the more so by calm and distance.
Using a non-linear approach to his narrative, Egoyan shifts back and forward in time, connecting us with the inhabitants of the small British Columbian town who have been severely affected by this tragedy. Fourteen children died in the accident, leaving their parents and the town itself paralyzed with grief.
The catalyst at the center of the film is ambulance chaser Mitchell Stephens (a wonderfully moving performance by Ian Holm), who comes to Sam Dent to persuade the townsfolk to engage in a class action suit.
Stephens, who "doesn't believe in accidents," functions as a concerned, involved observer, scribbling details in his notebook and providing the parents with an opportunity to reach some kind of closure in the harrowing aftermath. While Stephens' initial drive may be financial (one third of the total settlement if he wins), his involvement provides him more with an outlet to come to grips with his own loss. His self-destructive, drug-addicted daughter has been in and out of clinics, halfway houses and detox units for years.
Egoyan's attention to detail and ability to establish mood are so impeccable that even the sound of a kettle boiling resonates like a plaintive cry. Mychael Danna, who composed the shimmering music for "The Ice Storm," contributes another memorable score that shivers and tingles. Equally impressive is Paul Sarossy's cinematography, capturing the imposing Canadian mountainsides and low-hanging fogs as splendidly as his shadowy interiors--in one scene a bright wall calendar serves to illuminate portions of a room.
"The Sweet Hereafter," while undeniably grim, urges the viewer to grab onto life with both hands and not let go. It's a film of generous subtlety and emotion.
-- David N. Butterworth<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


Gravity files
In order to increase modularity, Gravity is divided into 4 main components and each one (except shared) is completely independent from the others. In this way there is a clear separation between the compiler itself that end up producing the bytecode and the virtual machine that is responsible to execute that bytecode.
Utils
- gravity_utils: Collects useful functions extensively used by other files. Time, IO, strings, UTF-8 and many other functions can be found in this file.
- gravity_json: Very efficient JSON parser from https://github.com/udp/json-parser.
- gravity_debug: Contains the gravity_disassemble function used for debugging purpose.
Compiler
- debug_macros: Debug macros used internally during development.
- gravity_ast: Abstract syntax tree implementation.
- gravity_codegen: Code generation module.
- gravity_compiler: Main compiler module that can hides other internal modules.
- gravity_ircode: Intermediate code and register allocation management.
- gravity_lexer: Lexer implementation.
- gravity_optimizer: Optimizer and bytecode finalyzer.
- gravity_parser: Parser implementation and syntax checker.
- gravity_semacheck1: Semantic checker step 1 (used for non-local identifiers).
- gravity_semacheck2: Semantic checker step 2 (used for local identifiers).
- gravity_symboltable: Symbol table management and creation.
- gravity_token: Tokenizer implementation.
- gravity_visitor: Visitor patter for C.
Shared
- gravity_array: Dynamic array macros implementation from https://github.com/attractivechaos/klib/blob/master/kvec.h.
- gravity_delegate: This is where utilities are collected in a single file.
- gravity_hash: Hash table implementation.
- gravity_macros: Useful macros mainly used at runtime.
- gravity_memory: Memory management module with built-in leaks checker for MacOS.
- gravity_opcodes: Enum opcodes officially supported by Gravity.
- gravity_value: One of the most important module that declare the struct of each object and value used inside Gravity.
Runtime
- gravity_core: Core classes implementation and definition.
- gravity_vm: Interpreter and garbage collector implementation.
- gravity_vmmacros: Collects various macros used by the Virtual Machine.


Obama Visits Mexico Amid Rumors of Uprising
The New York Times
The New York Times
Obama Visits Mexico Amid Rumors of Uprising
The New York Times
The New York Times
Obama Visits Mexico Amid Rumors of Uprising
The New York Times
The New York Times
Obama Visits Mexico Amid Rumors of Uprising
The New York Times
The New York Times
Obama Visits Mexico Amid Rumors of Uprising
The President found more than he bargained for amid the ruins of old Tijuana on Monday
The New York Times
The President found more than he bargained for amid the ruins of old Tijuana on Monday
The New York Times
Obama Visits Mexico Amid Rumors of Uprising
The New York Times
The New York Times
Obama Visits Mexico Amid Rumors of Uprising
The New York Times
The New York Times
Obama Visits Mexico Amid Rumors of Uprising
The President found more than he bargained for amid the ruins of old Tijuana on Monday
The New York Times
The President found more than he bargained for amid the ruins of old Tijuana on Monday
The New York Times


Ploror688.github.io
Doing a Literature Review in Health and Social
New search Doing a literature review in health and social care. Doing a literature review in health and social care: a practical guide. Aveyard, Helen. Systematic review as a research method in post-graduate. Doing a Literature Review in Health and Social Care has 87 ratings and 6 reviews. Charlie said: 4/5 StarsSince I barely have the time to leisure
"We don't get taught enough" - Mentor. Doing A Literature Review In Health And Social Care: A Practical Guide:<PHONE_NUMBER>073: Medicine Health Science Books @ Amazon.com. The Four Agreements: A Practical Guide to Personal Freedom. Doing a Literature Review in Health and Social Care:. Doing A Literature Review In Health And Social Care:. Book description: This bestselling book is a step-by-step guide to doing a literature review in health and social care. It is vital reading for all those undertaking.
Doing a literature review in health and social care:. Aveyard, H. (2014) Doing a Literature Review in Health and Social Care. A Practical Guide. 3rd Edition, Open University Press, London. It gives a clear, concise guide to carrying out a literature review, Doing a Literature Review in Health Social Care: A Practical Guide Aveyard. This article is © Emerald Group Publishing and permission has been granted for this version to appear here (https://www.mentoruk.org.uk/we-dont-get-taught-enough/). This four-color illustrated edition of The Four Agreements celebrates the 15th anniversary of a personal growth classic. With over 10 years on The New York Times. Turnitin provides instructors with the tools to prevent plagiarism, engage students in the writing process, and provide personalized feedback. Cannabis Misuse Effects on Wellbeing - UK Essays.
Find out what textbooks you'll need for your studies through OUA during Study Period 1, Semester 1 and Session In South Africa, there appears to be poor understanding about using a systematic review as an acceptable research method in post-graduate nursing education. Aveyard, H. (2014) Doing a Literature Review in Health. ABSTRACT. Rapid progression of scientific knowledge with the increasing number of electronic publications in the Internet requires a literature review Utilidad y tipos de revisión de literatura - SciELO España. 1. Nurse Res. 2011 Jul 15;18(4):45. Doing a Literature Review in Health and Social Care A Practical Guide Second edition Helen Aveyard Doing a Literature. Parent's Guide to Gifted Children by James T. Webb, Janet.
Aveyard doing a literature review in health and social care a practical guide.
Parents play an essential role, particularly in a gifted child's early education years. Being a gifted child can be joyful, but sometimes it is painful. Atheism is, in the broadest sense, the absence of belief in the existence of deities. Less broadly, atheism is the rejection of belief that any deities exist. Health Informatics: Practical Guide for Healthcare. Welcome to the International Observatory on End of Life Care. We aim to conduct high quality cutting edge research and provide innovative educational.
International Observatory on End of Life Care Faculty. Health Informatics: Practical Guide for Healthcare and Information Technology Professionals (Sixth Edition) 6th Edition.
This bestselling book is a step-by-step guide to doing a literature review in health and social care. It is vital reading for all those undertaking their. Doing A Literature Review In Health And Social Care: A Practical Guide Aveyard, Doing a Literature Review in Health litera literature review process. Textbooks for Study Period 1, Semester 1 and Session Find great deals for Doing a Literature Review in Health and Social Care: A Practical Guide: A Practical Guide by Helen Aveyard (Paperback, 2014).


Shuaige He
Illustrator
Update: Oct 2020
Shairin Made
My name is Shuaige He, also known as
ShaiRin on the web, and I am a freelance illustrator and designer.
I'm also an anime fan. So please feel free to contact me whether
you need to make illustrations or you want to chat!
Full Name:
Grew up in:
Now live in:
Shuaige He
China
New York
2018-2020
2020- NOW
Queensborough Community College
A.S. in Digital Art and Design
Brooklyn College
2019- NOW
Freelance illustrator, graphic designer
Graphic Design
2D Animation
Character Design
Photography
illustration
Web Design
Painting
Video Editing
Photoshop
Illustrator
InDesign
Clip Studio Paint
After Effects
Premiere Pro
Figma
Atom


F12 will bring up the devtools, where you can find the "Game Saver" tab to see the list of files the extension has captured.
If you have any issues feel free to report them at
GitHub
If you cannot download your games due to a bug or issue, I can help you recover the files, just post an issue on github.
This project is not directly affiliated with Bluemaxima's Flashpoint, although I am active on discord. You can find me there for more direct help (krum110487). You can upload the files however you want, but I suggest to use
Internet Archive or to Flashpoint's
Flashfreeze (or both!)


I am a Data Scientist at BattleFin Ensemble in New York, where I work on developing machine learning algorithms to predict the employment trends and identifying company’s new revenue stream.
As of Spring 2020, I am also a researcher and Teaching Fellow at NYU, New York campus, where I assist Professor Vasant Dhar: Robo Advisor & Systematic Trading and Professor Ernest Davis: Artificial Intelligence graduate and undergraduate course at NYU Courant & Stern Programs.
I have wide variety of experience across different industries like Finance, Life Science & Healthcare, E-commerce, Data & Analytics Consultancy which proved advantageous to me both personally and professionally.
After completing my bachelor's degree in Computer Science Engineering from University of Mumbai, I worked at National Stock Exchange of India for 2+ years before pursuing Master's at NYU. I am passionate about contributing my part in public education and served at NYU Liberty partnership Program & Girija Orphanage in India where we focuses on elementary education.
I am a 3rd degree karate black belt in Shotokan Karate and in my spare time, I enjoy canvas painting, dancing, curling up with a good book and watching Friends on repeat.


Enter the desired text and the accompanying answer that follows for each part of the question. The question will be displayed inline, as a single block of text, with dropdowns of all answer options displayed inline after each prompt.
| Prompt | Answer | Delete this dropdown pair? |
|---|---|---|
|
|
These will appear as available answer options to the student, even though they are not correct answers.


Uses of Class
org.apache.sis.coverage.grid.GridExtent
-
Packages that use GridExtent Package Description org.apache.sis.coverage.grid A coverage backed by a regular grid. -
-
Uses of GridExtent in org.apache.sis.coverage.grid
Fields in org.apache.sis.coverage.grid declared as GridExtent Modifier and Type Field Description protected GridExtent
GridGeometry. extent
The valid domain of a grid coverage, ornull
if unknown.Methods in org.apache.sis.coverage.grid that return GridExtent Modifier and Type Method Description GridExtent
GridExtent. expand(long... margins)
Expands or shrinks this grid extent by the given amount of cells along each dimension.GridExtent
GridGeometry. getExtent()
Returns the valid coordinate range of a grid coverage.GridExtent
GridDerivation. getIntersection()
Returns the extent of the modified grid geometry, ignoring subsamplings or changes in resolution.GridExtent
GridExtent. insert(int offset, DimensionNameType axisType, long low, long high, boolean isHighIncluded)
Returns a new grid envelope with the specified dimension inserted at the given index in this grid envelope.GridExtent
GridExtent. reduce(int... dimensions)
Returns a grid envelope that encompass only some dimensions of this grid envelope.GridExtent
GridExtent. resize(long... sizes)
Sets the size of this grid extent to the given values.GridExtent
GridExtent. subsample(int... periods)
Creates a new grid extent subsampled by the given amount of cells along each grid dimensions.Methods in org.apache.sis.coverage.grid with parameters of type GridExtent Modifier and Type Method Description abstract RenderedImage
GridCoverage. render(GridExtent sliceExtent)
Returns a two-dimensional slice of grid data as a rendered image.GridDerivation
GridDerivation. resize(GridExtent extent, double... scales)
Requests a grid geometry where cell sizes have been scaled by the given factors, which result in a change of grid size.Constructors in org.apache.sis.coverage.grid with parameters of type GridExtent Constructor Description GridGeometry(GridExtent extent, Envelope envelope)
Creates a grid geometry with an extent and an envelope.GridGeometry(GridExtent extent, PixelInCell anchor, MathTransform gridToCRS, CoordinateReferenceSystem crs)
Creates a new grid geometry from a grid extent and a mapping from cell coordinates to "real world" coordinates.ImageRenderer(GridCoverage coverage, GridExtent sliceExtent)
Creates a new image renderer for the given slice extent.
-


G.I. Jane (1997)- Review by Clara Duong Directed by Ridley Scott
Cast includes: Demi Moore as Lt. Jordan O'Neil Viggo Mortensen as Master Chief John Urgayle Anne Bancroft Sen. Lillian DeHaven Jason Beghe as Royce Scott Wilson C.O. Salem Morris Chestnut James Caviezel Written by Danielle Alexandra and David N. Twohy
Music by Trevor Jones Production Design by Arthur Max Costume Design by Marilyn Vance-Straker Film Editing by Pietro Scalia Produced by Danielle Alexandra
**** out of 5
Synopsis: As a response to accusations of sexual prejudice in the armed forces, a female naval intelligence officer is chosen to be a test case. If she can survive the demanding S.E.A.L. training, she will open the way for other women to be permitted to follow in her footsteps. Throw in a lot of political machinations, sabotage, brutality, water and sand and you have an entertaining movie.
Review: The title of this movie turned me off at first. I mean 'GI Jane?'????? The other titles which were considered were more promising - In Pursuit of Honor or A Matter of Honor would have been acceptable although Navy Cross or Undisclosed are a little meaningless as far as I'm concerned.
I went into this movie not liking the title and being one of those people who thinks that Demi Moore is absolutely ghastly as an actor. To my surprise I really enjoyed the movie. Moore as Lieutenant Jordan O'Neil is much more likeable than her washed out excuse for a gusty woman in A Few Good Men.
The storyline is simple. Anne Bancroft playing Senator Lillian Dehaven is a ruthless, machiavellian politician with an agenda to push. Using feminism to achieve political mileage, she forces the military powers that be to backdown and permit a test case to enter the highly intensive Navy S.E.A.L. training. Jordan is selected due to the fact that she has it all - looks, brains and strength.
The training is gruelling and the indignity almost painful to watch. Nonetheless, it's one of those movies that makes me want to cheer out and encourage the hapless hero/heroine along in his/her endeavours.  Stepping away from the stereotypes though, Viggo Mortensen as Master Chief John Urgayle tries to get away from being nothing more than a brutal screamer. His character exercises a little more intellectual rigour than you would normally expect from such a character.
Jordan's boyfriend Royce is also in the military. Although they both started at the same time, due to the fact that he has seen active service, he has advanced through the ranks much more quickly than she has. Royce (what is his surname? Do we care?) almost resents Jordan's attempts to advance herself, although he quickly settles down to being doe-eyed and supportive. His character seems to have been thrown in so that we know that you don't have to be a lesbian to want to be in the military.
In parts, this is a very silly movie, with gratuitous lines and scenes thrown in for effect which are so blatantly obvious or contrived that it's hard not to cringe. I still liked it though. Weaknesses in the script aside, this is a film which captures a heroic and reckless mood. As we watch Jordan's battle, it's increasingly clear that it is a personal battle. This is an individual's fight for self-advancement. We don't have to have our teeth set on edge by didactic preachings, we don't have to feel uncomfortable because we're having ideology thrust down our throats. It's enough that we can sit back and hope that this one person gets what she wants and we can admire her tenacity and determination without coming out and saying whether we believe women should go into combat or not.
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


Click start to start, or other links to know more about the pose
Accept camera access and wait for the webcam to load.
The camera will grade you in the blue circled place, and you will see how many reptitions of the pose you have done in the red circled place.


Hello and welcome to my website, Simple Geometry. Here we will talk about the history and basic ideas regarding non-Euclidean Geometry, which is a topic that fascinates me. To understand that we will look into history and see what defined Euclidean Geometry, as well why and how mathematicians came to the discovery of this new and exciting geometry.
While I agree that the the subject of this site isn't "Simple" in the slightest, my goal here is to try to cover it in the simplest way possible, and hopefully turning this abstract concept into something most people can understand.
If you're interested, all references are linked at the bottom of this page as well some videos I recommend watching regarding not only the history of it but also how these different Geometries behave without any math pre-requisite.


See: Description
| Interface | Description |
|---|---|
| IUserManager |
Describes what a user manager should do.
|
| Class | Description |
|---|---|
| App |
Created by adam on 2016-11-28.
|
| AppCompatPreferenceActivity |
A
PreferenceActivity which implements and proxies the necessary calls
to be used with AppCompat. |
| BuildConfig | |
| ConcretePlace |
A class to get around the fact Place is an interface.
|
| DisplayDriverListActivity | |
| Driver |
This is the object for drivers in ElasticSearch.
|
| DriverListAdapter |
A list adapter for rendering requests in a requests list recycler view.
|
| DriverListAdapter.ViewHolder |
A class for storing subviews of a view.
|
| DriverProfileActivity | |
| DriversList |
A class for staring a list of drivers.
|
| DriversListTest |
Created by adam on 2016-11-13.
|
| ElasticSearch |
In ElasticSearch, we store two classes: Requests and Users.
|
| ElasticSearchController |
In ElasticSearchController, the actual calls to ElasticSearch are done.
|
| ElasticSearchController.AddRequest |
Here, a request is added to ElasticSearch by first building the add query for the document
to be stored in ElasticSearch, then adding it into ElasticSearch, then immediately afterwards
getting the ID where it's stored, appending it to the end of the add query and then replacing
the query we just added with the new query including the ID.
|
| ElasticSearchController.AddUser |
Here, the user is either added or updated (since this class handles both) in ElasticSearch
by building it then adding it in the ID which is the same as the user's unique username.
|
| ElasticSearchController.DeleteRequest |
Here, ElasticSearch will delete a request with the specified ID.
|
| ElasticSearchController.DeleteUser |
Here, ElasticSearch will delete a user in the specified username.
|
| ElasticSearchController.GetRequest |
Here, we get a specified request by searching with the request ID and returning it when we
find it.
|
| ElasticSearchController.GetUser |
Here, we get a user profile by searching for the unique username and returning it when we
find it.
|
| ElasticSearchController.SearchForGeolocationRequests |
Here, the program will get take in the specified geolocation from the user, search within a
5 km radius for open requests where the start and destination locations are within that range
and return the gotten requests.
|
| ElasticSearchController.SearchForOpenRequests |
Here, all open requests will be gotten from ElasticSearch by searching for those requests
where the status is either pending or accepted.
|
| ElasticSearchController.SearchForUserRequests |
Here, all requests associated to a user are gotten by checking all rider and driver usernames
to see if they contain the user's username, adding them to the ArrayList and then returning
that ArrayList.
|
| ElasticSearchController.UpdateRequest |
Here, a request given by the user is updated in ElasticSearch by overwriting the document
it is contained in.
|
| ElasticSearchControllerTest |
Tests for the ElasticSearch controller to make sure everything works accordingly.
|
| ElasticSearchRequest |
This class is used to hold the document gotten for requests in ElasticSearch before converting
it to a proper request.
|
| ElasticSearchTest |
Tests for the methods in the ElasticSearch class.
|
| EstimatedPriceCalculator |
Created by justin on 28/11/16.
|
| EstimatePriceTest |
Created by justin on 28/11/16.
|
| GPSTracker |
Able to get User Current Location
http://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android
|
| LoginActivity |
A login screen that offers login via email/password.
|
| LoginActivityTest |
Created by Daniel on 2016-11-27.
|
| MainActivity |
Setting this up for JavaDocs.
|
| MainActivityTest |
Created by adam on 2016-10-12.
|
| MainControllerTest |
Created by adam on 2016-10-12.
|
| MapController |
Created by justin on 09/11/16.
|
| MockElasticSearch |
Created by colton on 2016-11-14.
|
| MockUserManager |
Created by adam on 2016-11-10.
|
| MoneyTextWatcher |
A text watcher for properly formatting currency inputs.
|
| NewRequestActivity |
An activity that allows users to create a new item_request.
|
| NewRequestActivityTest |
Created by justin on 28/11/16.
|
| Notification |
Created by colton on 2016-11-26.
|
| NotificationReceiver | |
| ProfileActivity |
An activity that displays information about a user's profile.
|
| ProfileActivityTest |
Created by adam on 2016-10-12.
|
| ProfileController |
A controller for modifying user profile information.
|
| ProfileControllerTest |
Created by adam on 2016-10-12.
|
| R | |
| R.anim | |
| R.array | |
| R.attr | |
| R.bool | |
| R.color | |
| R.dimen | |
| R.drawable | |
| R.id | |
| R.integer | |
| R.layout | |
| R.menu | |
| R.mipmap | |
| R.string | |
| R.style | |
| R.styleable | |
| R.xml | |
| Request |
A class for storing information about a item_request.
|
| RequestActivity |
An activity that shows information about a request.
|
| RequestActivityTest |
Created by adam on 2016-10-12.
|
| RequestCompletedActivity | |
| RequestController |
A controller for modifying requests.
|
| RequestControllerTest |
Created by adam on 2016-10-12.
|
| RequestHistoryActivity |
An activity that displays past requests.
|
| RequestHistoryActivityTest |
Created by adam on 2016-10-12.
|
| RequestListTest |
Created by adam on 2016-10-12.
|
| RequestsList |
Stores a list of requests and provides some useful operations on it.
|
| RequestsListActivity |
An activity that shows a list of currently active requests.
|
| RequestsListActivityTest |
Created by adam on 2016-10-12.
|
| RequestsListAdapter |
A list adapter for rendering requests in a requests list recycler view.
|
| RequestsListAdapter.ViewHolder |
A class for storing subviews of a view.
|
| RequestsListController |
A controller for modifying lists of requests.
|
| RequestsListControllerTest |
Created by adam on 2016-10-12.
|
| RequestsUseCaseTests |
Created by Daniel on 2016-11-27.
|
| RequestTest |
Created by adam on 2016-10-12.
|
| SearchRequest |
In SearchRequest, a driver is able to search for open requests based on a few factors.
|
| SearchRequestActivity |
An activity that allows users to create a new item_request.
|
| SearchRequestsListActivity |
An activity that shows a list of currently active requests.
|
| SearchRequestTest |
Tests for the methods in the SearchRequests class.
|
| SettingsActivity |
A
PreferenceActivity that presents a set of application settings. |
| SettingsActivity.DataSyncPreferenceFragment |
This fragment shows data and sync preferences only.
|
| SettingsActivity.DriverModePreferenceFragment |
This fragment shows Driver Mode preferences only.
|
| SettingsActivity.GeneralPreferenceFragment |
This fragment shows general preferences only.
|
| SettingsActivity.NotificationPreferenceFragment |
This fragment shows notification preferences only.
|
| SettingsActivityTest |
Created by adam on 2016-10-12.
|
| SettingsController |
A controller for modifying apllication settings.
|
| SettingsControllerTest |
Testing for swaps in Modes
Rider to Driver.
|
| UpdateDriverTest |
Have the Ability to Update a Drivers Info
|
| UriSerializer |
A class to use with Gson for serializing/deserializing Uris.
|
| User |
A data class for storing user information.
|
| UserManager |
A (singleton) model class for providing access to application data.
|
| UserManagerTest |
Created by adam on 2016-10-12.
|
| UserProfileUseCaseTest |
Created by Daniel on 2016-11-27.
|
| UserTest |
Created by adam on 2016-10-12.
|
| Enum | Description |
|---|---|
| RequestState |
An enum that tracks the states or requests.
|
| UserMode |
An enum that tracks whether a user is in rider or driver mode.
|
| Exception | Description |
|---|


{% extends "adminlte/login.html" %} {% load i18n static bootstrap3 %} {% block body_class %}login-page{% endblock %} {% block logo_text %}Swiftwind Setup{% endblock %} {% block login_form %}
Welcome to your new Swiftwind installation. We need a little information in order to get everything setup. We'll also set you up as a housemate and administrator.
{% endblock %}


Guidelines on how to read a search engine result page
1. Previewing pages
Notice that when you use your mouse to point at a particular search result, called a result block, a small, sideways chevron appears next to it (). Clicking on that chevron allows you to preview a document, letting you determine what kind of document is behind the link. It can help you decide whether that link meets your needs, and whether you want to visit the page.These previews, in combination with skimming results, can help you get a quick grounding in a subject.
2. Understanding an individual search result
Result block on a search result page that consist of three major elements
Search Result Sample
Title: It is the blue link at the top line that gives you the topic of the page.
Web address/URL: It is the second line containing a green link that gives you the location of the document on the web, and also this can help you determine the source of the data information.
Snippet: It is the last two lines all black text. It shows you some of the places where your search terms appear on the page, embedded in the text in which they appear. A snippet is not a complete summary of the text on a page instead it is only search terms in context which is extracted from the document.
3. Using an entire results page
You can gain a lot from looking over an entire screen of a page full of results because it is helpful to understand a result.
Entire Search Result Sample


The Rain Never Bothered Me Anyway
There’s some things in this world you just can’t control. One of them is rain.
Over the past week, it has rained numerous times in Waterloo. As a result, many orientation events were modified or cancelled. This obviously sucked for all of the enthusiastic froshies like me.
HOWEVER…. orientation week was still a blast! Everyone kept a positive attitude and looked past the miserable weather. What made the week so fun was the awesome people I met. These people are going to be my future best friends, classmates, co-workers, significant others, or perhaps even future boss!
What I’m trying to say is that you should always be an optimistic person and make the most out of unfortunate situations. Always try to maintain a positive attitude and have fun! Check out Shawn Achor’s TED Talk on the Happy Secret to Better Work. He explains how changing your view of the world and life to a more positive one can increase both your happiness and productivity.
This is a quote from one of my favourite movies of all time, Rocky Balboa.
“The world ain’t all sunshine and rainbows.   But it ain’t about how hard you hit. It’s about how hard you can get hit and keep moving forward. How much you can take and keep moving forward. That’s how winning is done! Now if you know what you’re worth then go out and get what you’re worth. But ya gotta be willing to take the hits, and not pointing fingers saying you ain’t where you wanna be because of him, or her, or anybody! Cowards do that and that ain’t you!”
As Rocky famously conveys, you should NOT blame others for your problems. Rather than complain about them, you should simply accept that there are matters in life which you can’t control. I, too, have went through difficult times in my life. It took a while for me to realize, but complaining and blaming others doesn’t help. It only makes the situation even worse. What you can and should do is filter the negative things in your life and convert them into motivation. Push yourself to work even harder, and never stop persevering. Remember life WILL get better. By putting yourself in an optimistic state, you’re in a good position to achieve happiness.


Obtains the most frequent class (0 or 1) for types.BinaryAnnotation datasets
Obtains the most frequent class (0 or 1) for types.BinaryAnnotation datasets
The annotations dataset (spark Dataset of type types.BinaryAnnotation) to be aggregated
Obtain the most frequent class for each example of the a types.MulticlassAnnotation dataset.
Obtain the most frequent class for each example of the a types.MulticlassAnnotation dataset.
The annotations dataset (spark Dataset of type types.MulticlassAnnotation) to be aggregated
Obtain the mean of the annotations for each example from a types.RealAnnotation.
Obtain the mean of the annotations for each example from a types.RealAnnotation.
The annotations dataset (spark Dataset of type types.RealAnnotation) to be aggregated
Obtains probability of the class being positive for types.BinaryAnnotation datasets
Obtains probability of the class being positive for types.BinaryAnnotation datasets
The annotations dataset (spark Dataset of type types.BinaryAnnotation) to be aggregated
Obtain a list of datasets resulting of applying transformSoftBinary to each class against the others (One vs All) on a types.MulticlassAnnotation dataset.
Obtain a list of datasets resulting of applying transformSoftBinary to each class against the others (One vs All) on a types.MulticlassAnnotation dataset.
It supposes classes go from 0 to nClasses. For example, for a three class problem, there should be classes {0,1,2}.
The annotations dataset (spark Dataset of type types.MulticlassAnnotation) to be aggregated
Provides functions for transforming an annotation dataset into a standard label dataset using the majority voting approach
This object provides several functions for using majority voting style algorithms over annotations datasets (spark datasets with types types.BinaryAnnotation, types.MulticlassAnnotation, or types.RealAnnotation). For discrete types (types.BinaryAnnotation, types.MulticlassAnnotation) the method uses the most frequent class. For continuous types, the mean is used.
The object also provides methods for estimating the probability of a class for the discrete type, computing, for the binary case, the proportion of the positive class and, for the multiclass case, the proportion of each of the classes.
The next example can be found in the examples folder of the project.
0.1.3


p5.SerialPort Class
Base class for a serial port. Creates an instance of the serial library and prints "hostname":"serverPort" in the console.
Constructor
p5.SerialPort
-
[hostname]
-
[serverPort]
Parameters:
-
[hostname]
String optionalName of the host. Defaults to 'localhost'.
-
[serverPort]
Number optionalPort number. Defaults to 8081.
Example:
var portName = '/dev/cu.usbmodem1411'; //enter your portName
function setup() {
createCanvas(400, 300);
serial = new p5.SerialPort()
serial.open(portName);
}
Item Index
Methods
available
()
Number
Returns the number of bytes available.
Returns:
The length of the serial buffer array, in terms of number of bytes in the buffer.

Example:
close
-
name
Tell server to close the serial port. This functions the same way as serial.on('close', portClose).
Parameters:
-
name
Stringof callback
Example:
var inData;
function setup() {
serial.open(portOpen);
serial.close(portClose);
}
function portOpen() {
println('The serial port is open.');
}
function portClose() {
println('The serial port closed.');
}
emit
()
private
Returns:
Example:
isConnected
()
Boolean
Tells you whether p5 is connected to the serial port.
Returns:
true or false
Example:
var serial; // variable to hold an instance of the serialport library
var portName = '/dev/cu.usbmodem1411';
function setup() {
createCanvas(400, 300);
serial = new p5.SerialPort();
serial.open(portName);
println(serial.isConnected());
}
last
()
Number
Returns the last byte of data from the buffer.
Returns:
Example:
lastChar
()
Returns the last byte of data from the buffer as a char.
Example:
list
()
Array
Lists serial ports available to the server. Synchronously returns cached list, asynchronously returns updated list via callback. Must be called within the p5 setup() function. Doesn't work with the p5 editor's "Run in Browser" mode.
Returns:
array of available serial ports
Example:
function setup() {
createCanvas(windowWidth, windowHeight);
serial = new p5.SerialPort();
serial.list();
serial.open("/dev/cu.usbmodem1411");
}
For full example: Link
function printList(portList) {
// portList is an array of serial port names
for (var i = 0; i < portList.length; i++) {
// Display the list the console:
println(i + " " + portList[i]);
}
}
open
-
serialPort
-
[serialOptions]
-
[serialCallback]
Opens the serial port to enable data flow. Use the {[serialOptions]} parameter to set the baudrate if it's different from the p5 default, 9600.
Parameters:
-
serialPort
StringName of the serial port, something like '/dev/cu.usbmodem1411'
-
[serialOptions]
Object optionalObject with optional options as {key: value} pairs. Options include 'baudrate'.
-
[serialCallback]
Function optionalCallback function when open completes
Example:
// Change this to the name of your arduino's serial port
serial.open("/dev/cu.usbmodem1411");
// All of the following are valid:
serial.open(portName);
serial.open(portName, {}, onOpen);
serial.open(portName, {baudrate: 9600}, onOpen)
function onOpen() {
print('opened the serial port!');
}
read
()
Number
Returns a number between 0 and 255 for the next byte that's waiting in the buffer. Returns -1 if there is no byte, although this should be avoided by first checking available() to see if data is available.
Returns:
Value of the byte waiting in the buffer. Returns -1 if there is no byte.
Example:
function serialEvent() {
inByte = int(serial.read());
byteCount++;
}
function serialEvent() {
// read a byte from the serial port:
var inByte = serial.read();
// store it in a global variable:
inData = inByte;
}
readBytes
()
Number
Returns a number between 0 and 255 for the next byte that's waiting in the buffer, and then clears the buffer of data. Returns -1 if there is no byte, although this should be avoided by first checking available() to see if data is available.
Returns:
Value of the byte waiting in the buffer. Returns -1 if there is no byte.
Example:
var inData;
function setup() {
// callback for when new data arrives
serial.on('data', serialEvent);
function serialEvent() {
// read bytes from the serial port:
inData = serial.readBytes();
}
readBytesUntil
-
UNKNOWN
Returns all of the data available, up to and including a particular character. If the character isn't in the buffer, 'null' is returned. The version without the byteBuffer parameter returns a byte array of all data up to and including the interesting byte. This is not efficient, but is easy to use.
The version with the byteBuffer parameter is more efficient in terms of time and memory. It grabs the data in the buffer and puts it into the byte array passed in and returns an integer value for the number of bytes read. If the byte buffer is not large enough, -1 is returned and an error is printed to the message area. If nothing is in the buffer, 0 is returned.
Parameters:
-
UNKNOWN
byteBuffer
Returns:
[Number of bytes read]
Example:
// All of the following are valid:
charToFind.charCodeAt();
charToFind.charCodeAt(0);
charToFind.charCodeAt(0, );
readChar
()
String
Returns the next byte in the buffer as a char.
Returns:
Value of the Unicode-code unit character byte waiting in the buffer, converted from bytes. Returns -1 or 0xffff if there is no byte.
Example:
var inData;
function setup() {
// callback for when new data arrives
serial.on('data', serialEvent);
function serialEvent() {
// read a char from the serial port:
inData = serial.readChar();
}
readLine
()
String
Returns all of the data available as an ASCII-encoded string until a line break is encountered.
Returns:
ASCII-encoded string
Example:
You can use this with the included Arduino example called AnalogReadSerial. Works with P5 editor as the socket/serial server, version 0.5.5 or later. Written 2 Oct 2015 by Tom Igoe. For full example: Link
function gotData() {
var currentString = serial.readLine(); // read the incoming data
trim(currentString); // trim off trailing whitespace
if (!currentString) return; { // if the incoming string is empty, do no more
console.log(currentString);
}
if (!isNaN(currentString)) { // make sure the string is a number (i.e. NOT Not a Number (NaN))
textXpos = currentString; // save the currentString to use for the text position in draw()
}
}
readString
()
Returns all the data from the buffer as a String. This method assumes the incoming characters are ASCII. If you want to transfer Unicode data: first, convert the String to a byte stream in the representation of your choice (i.e. UTF8 or two-byte Unicode data). Then, send it as a byte array.
Returns:
Example:
readStringUntil
-
stringToFind
Returns all of the data available as an ASCII-encoded string.
Parameters:
-
stringToFind
StringString to read until.
Returns:
ASCII-encoded string until and not including the stringToFind.
Example:
For full example: Link
var serial1 = new p5.SerialPort();
var serial2 = new p5.SerialPort();
var input1 = '';
var input2 = '';
function serialEvent(){
data = serial1.readStringUntil('\r\n');
if (data.length > 0){
input1 = data;
}
}
function serial2Event() {
var data = serial2.readStringUntil('\r\n');
if (data.length > 0){
input2 = data;
}
}
stop
()
Stops data communication on this port.
Example:
write
-
Data
Sends a byte to a webSocket server which sends the same byte out through a serial port.
Parameters:
-
Data
String, Number, ArrayWrites bytes, chars, ints, bytes[], and strings to the serial port.
Example:
You can use this with the included Arduino example called PhysicalPixel. Works with P5 editor as the socket/serial server, version 0.5.5 or later. Written 2 Oct 2015 by Tom Igoe. For full example: Link
function mouseReleased() {
serial.write(outMessage);
if (outMessage === 'H') {
outMessage = 'L';
} else {
outMessage = 'H';
}
}
For full example: Link
function mouseDragged() {
// map the mouseY to a range from 0 to 255:
outByte = int(map(mouseY, 0, height, 0, 255));
// send it out the serial port:
serial.write(outByte);
}


Hemisphere Network is the largest television network in Tumbolia, a small country located east of South America (or south of East America). The most popular sport in Tumbolia, unsurprisingly, is soccer; many games are broadcast every week in Tumbolia.
Hemisphere Network receives many requests to replay dubious plays; usually, these happen when a player is deemed to be offside by the referee. An attacking player is offside if he is nearer to his opponents’ goal line than the second last opponent. A player is not offside if
Through the use of computer graphics technology, Hemisphere Network can take an image of the field and determine the distances of the players to the defending team’s goal line, but they still need a program that, given these distances, decides whether a player is offside.
The input file contains several test cases. The first line of each test case contains two integers A and D separated by a single space indicating, respectively, the number of attacking and defending players involved in the play (2 <= A,D <= 11). The next line contains A integers Bi separated by single spaces, indicating the distances of the attacking players to the goal line (1 <= Bi <= 104). The next line contains D integers Cj separated by single spaces, indicating the distances of the defending players to the goal line (1 <= Cj <= 104). The end of input is indicated by A = D = 0.
For each test case in the input print a line containing a single character: “Y” (uppercase) if there is an attacking player offside, and “N” (uppercase) otherwise.
Input: 2 3 500 700 700 500 500 2 2 200<PHONE_NUMBER> 3 4 530 510 490 480 470 50 310 0 0 Output: N Y N


microImage is a Python library that can is used to open and save images in the typical formats used in microscopy. microImage also allows for simple modifications of the images and calibrations of the scale or frame rate in the case of a sequence.
The complete documentation of the software, as well as some tutorials, can be found on the related GitHub page.


{% extends "base.html" %} {% block title %}{{ season }}{% endblock %} {% block content %}
| # | Team | P | W | D | L | GF | GA | +/- | Pts |
|---|---|---|---|---|---|---|---|---|---|
| {{ forloop.counter }} | {{ team.name }} | {{ team.num_games }} | {{ team.num_wins }} | {{ team.num_draws }} | {{ team.num_losses }} | {{ team.num_scored_goals }} | {{ team.num_conceded_goals }} | {{ team.goal_diff }} | {{ team.num_points}} |


Jamie Oliver
Executive chef, Contemporary Cuisine
Chef
Chef Name, Hotel Name
feauture1, feauture2, desc1, desc2
Category


|
IO-Link Shield Library
|
Includes all the defines and commands for the IO-Link protocoll. More...
#include <cstdint>
Go to the source code of this file.
Namespaces | |
| IOL | |
| ***** Header-Files *********************************************************** | |
| IOL::MC | |
| IOL::PAGE | |
Variables | |
| constexpr uint8_t | IOL::M_TYPE_0 = 0u |
| constexpr uint8_t | IOL::M_TYPE_1_X = 1u |
| constexpr uint8_t | IOL::M_TYPE_2_X = 2u |
| constexpr uint8_t | IOL::PD_VALID_BIT = 0x40u |
| constexpr uint8_t | IOL::MC::PD_READ = 0xF1u |
| constexpr uint8_t | IOL::MC::WRITE = 0x20u |
| constexpr uint8_t | IOL::MC::DEV_FALLBACK = 0x5Au |
| constexpr uint8_t | IOL::MC::MAS_IDENT = 0x95u |
| constexpr uint8_t | IOL::MC::DEV_IDENT = 0x96u |
| constexpr uint8_t | IOL::MC::DEV_STARTUP = 0x97u |
| constexpr uint8_t | IOL::MC::PDOUT_VALID = 0x98u |
| constexpr uint8_t | IOL::MC::DEV_OPERATE = 0x99u |
| constexpr uint8_t | IOL::MC::DEV_PREOPERATE = 0x9Au |
| constexpr uint8_t | IOL::PAGE::MAS_COMMAND = 0x00u |
| constexpr uint8_t | IOL::PAGE::MAS_CYCLE_TIME = 0x01u |
| constexpr uint8_t | IOL::PAGE::MIN_CYCLE_TIME = 0x02u |
| constexpr uint8_t | IOL::PAGE::M_SEQ_CAP = 0x03u |
| constexpr uint8_t | IOL::PAGE::REVISION_ID = 0x04u |
| constexpr uint8_t | IOL::PAGE::PD_IN = 0x05u |
| constexpr uint8_t | IOL::PAGE::PD_OUT = 0x06u |
| constexpr uint8_t | IOL::PAGE::VENDOR_ID1 = 0x07u |
| constexpr uint8_t | IOL::PAGE::VENDOR_ID2 = 0x08u |
| constexpr uint8_t | IOL::PAGE::DEVICE_ID1 = 0x09u |
| constexpr uint8_t | IOL::PAGE::DEVICE_ID2 = 0x0Au |
| constexpr uint8_t | IOL::PAGE::DEVICE_ID3 = 0x0Bu |
| constexpr uint8_t | IOL::PAGE::FUNCTION_ID1 = 0x0Cu |
| constexpr uint8_t | IOL::PAGE::FUNCTION_ID2 = 0x0Du |
| constexpr uint8_t | IOL::PAGE::SYSTEM_CMD = 0x0Fu |
Includes all the defines and commands for the IO-Link protocoll.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.


source file: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/enum/__init__.py
file stats: 461 lines, 252 executed: 54.7% covered
1. """Python Enumerations""" 2. 3. import sys as _sys 4. 5. __all__ = ['Enum', 'IntEnum', 'unique'] 6. 7. version = 1, 1, 6 8. 9. pyver = float('%s.%s' % _sys.version_info[:2]) 10. 11. try: 12. any 13. except NameError: 14. def any(iterable): 15. for element in iterable: 16. if element: 17. return True 18. return False 19. 20. try: 21. from collections import OrderedDict 22. except ImportError: 23. OrderedDict = None 24. 25. try: 26. basestring 27. except NameError: 28. # In Python 2 basestring is the ancestor of both str and unicode 29. # in Python 3 it's just str, but was missing in 3.1 30. basestring = str 31. 32. try: 33. unicode 34. except NameError: 35. # In Python 3 unicode no longer exists (it's just str) 36. unicode = str 37. 38. class _RouteClassAttributeToGetattr(object): 39. """Route attribute access on a class to __getattr__. 40. 41. This is a descriptor, used to define attributes that act differently when 42. accessed through an instance and through a class. Instance access remains 43. normal, but access to an attribute through a class will be routed to the 44. class's __getattr__ method; this is done by raising AttributeError. 45. 46. """ 47. def __init__(self, fget=None): 48. self.fget = fget 49. 50. def __get__(self, instance, ownerclass=None): 51. if instance is None: 52. raise AttributeError() 53. return self.fget(instance) 54. 55. def __set__(self, instance, value): 56. raise AttributeError("can't set attribute") 57. 58. def __delete__(self, instance): 59. raise AttributeError("can't delete attribute") 60. 61. 62. def _is_descriptor(obj): 63. """Returns True if obj is a descriptor, False otherwise.""" 64. return ( 65. hasattr(obj, '__get__') or 66. hasattr(obj, '__set__') or 67. hasattr(obj, '__delete__')) 68. 69. 70. def _is_dunder(name): 71. """Returns True if a __dunder__ name, False otherwise.""" 72. return (name[:2] == name[-2:] == '__' and 73. name[2:3] != '_' and 74. name[-3:-2] != '_' and 75. len(name) > 4) 76. 77. 78. def _is_sunder(name): 79. """Returns True if a _sunder_ name, False otherwise.""" 80. return (name[0] == name[-1] == '_' and 81. name[1:2] != '_' and 82. name[-2:-1] != '_' and 83. len(name) > 2) 84. 85. 86. def _make_class_unpicklable(cls): 87. """Make the given class un-picklable.""" 88. def _break_on_call_reduce(self, protocol=None): 89. raise TypeError('%r cannot be pickled' % self) 90. cls.__reduce_ex__ = _break_on_call_reduce 91. cls.__module__ = '<unknown>' 92. 93. 94. class _EnumDict(dict): 95. """Track enum member order and ensure member names are not reused. 96. 97. EnumMeta will use the names found in self._member_names as the 98. enumeration member names. 99. 100. """ 101. def __init__(self): 102. super(_EnumDict, self).__init__() 103. self._member_names = [] 104. 105. def __setitem__(self, key, value): 106. """Changes anything not dundered or not a descriptor. 107. 108. If a descriptor is added with the same name as an enum member, the name 109. is removed from _member_names (this may leave a hole in the numerical 110. sequence of values). 111. 112. If an enum member name is used twice, an error is raised; duplicate 113. values are not checked for. 114. 115. Single underscore (sunder) names are reserved. 116. 117. Note: in 3.x __order__ is simply discarded as a not necessary piece 118. leftover from 2.x 119. 120. """ 121. if pyver >= 3.0 and key in ('_order_', '__order__'): 122. return 123. elif key == '__order__': 124. key = '_order_' 125. if _is_sunder(key): 126. if key != '_order_': 127. raise ValueError('_names_ are reserved for future Enum use') 128. elif _is_dunder(key): 129. pass 130. elif key in self._member_names: 131. # descriptor overwriting an enum? 132. raise TypeError('Attempted to reuse key: %r' % key) 133. elif not _is_descriptor(value): 134. if key in self: 135. # enum overwriting a descriptor? 136. raise TypeError('Key already defined as: %r' % self[key]) 137. self._member_names.append(key) 138. super(_EnumDict, self).__setitem__(key, value) 139. 140. 141. # Dummy value for Enum as EnumMeta explicity checks for it, but of course until 142. # EnumMeta finishes running the first time the Enum class doesn't exist. This 143. # is also why there are checks in EnumMeta like `if Enum is not None` 144. Enum = None 145. 146. 147. class EnumMeta(type): 148. """Metaclass for Enum""" 149. @classmethod 150. def __prepare__(metacls, cls, bases): 151. return _EnumDict() 152. 153. def __new__(metacls, cls, bases, classdict): 154. # an Enum class is final once enumeration items have been defined; it 155. # cannot be mixed with other types (int, float, etc.) if it has an 156. # inherited __new__ unless a new __new__ is defined (or the resulting 157. # class will fail). 158. if type(classdict) is dict: 159. original_dict = classdict 160. classdict = _EnumDict() 161. for k, v in original_dict.items(): 162. classdict[k] = v 163. 164. member_type, first_enum = metacls._get_mixins_(bases) 165. __new__, save_new, use_args = metacls._find_new_(classdict, member_type, 166. first_enum) 167. # save enum items into separate mapping so they don't get baked into 168. # the new class 169. members = dict((k, classdict[k]) for k in classdict._member_names) 170. for name in classdict._member_names: 171. del classdict[name] 172. 173. # py2 support for definition order 174. _order_ = classdict.get('_order_') 175. if _order_ is None: 176. if pyver < 3.0: 177. try: 178. _order_ = [name for (name, value) in sorted(members.items(), key=lambda item: item[1])] 179. except TypeError: 180. _order_ = [name for name in sorted(members.keys())] 181. else: 182. _order_ = classdict._member_names 183. else: 184. del classdict['_order_'] 185. if pyver < 3.0: 186. _order_ = _order_.replace(',', ' ').split() 187. aliases = [name for name in members if name not in _order_] 188. _order_ += aliases 189. 190. # check for illegal enum names (any others?) 191. invalid_names = set(members) & set(['mro']) 192. if invalid_names: 193. raise ValueError('Invalid enum member name(s): %s' % ( 194. ', '.join(invalid_names), )) 195. 196. # save attributes from super classes so we know if we can take 197. # the shortcut of storing members in the class dict 198. base_attributes = set([a for b in bases for a in b.__dict__]) 199. # create our new Enum type 200. enum_class = super(EnumMeta, metacls).__new__(metacls, cls, bases, classdict) 201. enum_class._member_names_ = [] # names in random order 202. if OrderedDict is not None: 203. enum_class._member_map_ = OrderedDict() 204. else: 205. enum_class._member_map_ = {} # name->value map 206. enum_class._member_type_ = member_type 207. 208. # Reverse value->name map for hashable values. 209. enum_class._value2member_map_ = {} 210. 211. # instantiate them, checking for duplicates as we go 212. # we instantiate first instead of checking for duplicates first in case 213. # a custom __new__ is doing something funky with the values -- such as 214. # auto-numbering ;) 215. if __new__ is None: 216. __new__ = enum_class.__new__ 217. for member_name in _order_: 218. value = members[member_name] 219. if not isinstance(value, tuple): 220. args = (value, ) 221. else: 222. args = value 223. if member_type is tuple: # special case for tuple enums 224. args = (args, ) # wrap it one more time 225. if not use_args or not args: 226. enum_member = __new__(enum_class) 227. if not hasattr(enum_member, '_value_'): 228. enum_member._value_ = value 229. else: 230. enum_member = __new__(enum_class, *args) 231. if not hasattr(enum_member, '_value_'): 232. enum_member._value_ = member_type(*args) 233. value = enum_member._value_ 234. enum_member._name_ = member_name 235. enum_member.__objclass__ = enum_class 236. enum_member.__init__(*args) 237. # If another member with the same value was already defined, the 238. # new member becomes an alias to the existing one. 239. for name, canonical_member in enum_class._member_map_.items(): 240. if canonical_member.value == enum_member._value_: 241. enum_member = canonical_member 242. break 243. else: 244. # Aliases don't appear in member names (only in __members__). 245. enum_class._member_names_.append(member_name) 246. # performance boost for any member that would not shadow 247. # a DynamicClassAttribute (aka _RouteClassAttributeToGetattr) 248. if member_name not in base_attributes: 249. setattr(enum_class, member_name, enum_member) 250. # now add to _member_map_ 251. enum_class._member_map_[member_name] = enum_member 252. try: 253. # This may fail if value is not hashable. We can't add the value 254. # to the map, and by-value lookups for this value will be 255. # linear. 256. enum_class._value2member_map_[value] = enum_member 257. except TypeError: 258. pass 259. 260. 261. # If a custom type is mixed into the Enum, and it does not know how 262. # to pickle itself, pickle.dumps will succeed but pickle.loads will 263. # fail. Rather than have the error show up later and possibly far 264. # from the source, sabotage the pickle protocol for this class so 265. # that pickle.dumps also fails. 266. # 267. # However, if the new class implements its own __reduce_ex__, do not 268. # sabotage -- it's on them to make sure it works correctly. We use 269. # __reduce_ex__ instead of any of the others as it is preferred by 270. # pickle over __reduce__, and it handles all pickle protocols. 271. unpicklable = False 272. if '__reduce_ex__' not in classdict: 273. if member_type is not object: 274. methods = ('__getnewargs_ex__', '__getnewargs__', 275. '__reduce_ex__', '__reduce__') 276. if not any(m in member_type.__dict__ for m in methods): 277. _make_class_unpicklable(enum_class) 278. unpicklable = True 279. 280. 281. # double check that repr and friends are not the mixin's or various 282. # things break (such as pickle) 283. for name in ('__repr__', '__str__', '__format__', '__reduce_ex__'): 284. class_method = getattr(enum_class, name) 285. obj_method = getattr(member_type, name, None) 286. enum_method = getattr(first_enum, name, None) 287. if name not in classdict and class_method is not enum_method: 288. if name == '__reduce_ex__' and unpicklable: 289. continue 290. setattr(enum_class, name, enum_method) 291. 292. # method resolution and int's are not playing nice 293. # Python's less than 2.6 use __cmp__ 294. 295. if pyver < 2.6: 296. 297. if issubclass(enum_class, int): 298. setattr(enum_class, '__cmp__', getattr(int, '__cmp__')) 299. 300. elif pyver < 3.0: 301. 302. if issubclass(enum_class, int): 303. for method in ( 304. '__le__', 305. '__lt__', 306. '__gt__', 307. '__ge__', 308. '__eq__', 309. '__ne__', 310. '__hash__', 311. ): 312. setattr(enum_class, method, getattr(int, method)) 313. 314. # replace any other __new__ with our own (as long as Enum is not None, 315. # anyway) -- again, this is to support pickle 316. if Enum is not None: 317. # if the user defined their own __new__, save it before it gets 318. # clobbered in case they subclass later 319. if save_new: 320. setattr(enum_class, '__member_new__', enum_class.__dict__['__new__']) 321. setattr(enum_class, '__new__', Enum.__dict__['__new__']) 322. return enum_class 323. 324. def __bool__(cls): 325. """ 326. classes/types should always be True. 327. """ 328. return True 329. 330. def __call__(cls, value, names=None, module=None, type=None, start=1): 331. """Either returns an existing member, or creates a new enum class. 332. 333. This method is used both when an enum class is given a value to match 334. to an enumeration member (i.e. Color(3)) and for the functional API 335. (i.e. Color = Enum('Color', names='red green blue')). 336. 337. When used for the functional API: `module`, if set, will be stored in 338. the new class' __module__ attribute; `type`, if set, will be mixed in 339. as the first base class. 340. 341. Note: if `module` is not set this routine will attempt to discover the 342. calling module by walking the frame stack; if this is unsuccessful 343. the resulting class will not be pickleable. 344. 345. """ 346. if names is None: # simple value lookup 347. return cls.__new__(cls, value) 348. # otherwise, functional API: we're creating a new Enum type 349. return cls._create_(value, names, module=module, type=type, start=start) 350. 351. def __contains__(cls, member): 352. return isinstance(member, cls) and member.name in cls._member_map_ 353. 354. def __delattr__(cls, attr): 355. # nicer error message when someone tries to delete an attribute 356. # (see issue19025). 357. if attr in cls._member_map_: 358. raise AttributeError( 359. "%s: cannot delete Enum member." % cls.__name__) 360. super(EnumMeta, cls).__delattr__(attr) 361. 362. def __dir__(self): 363. return (['__class__', '__doc__', '__members__', '__module__'] + 364. self._member_names_) 365. 366. @property 367. def __members__(cls): 368. """Returns a mapping of member name->value. 369. 370. This mapping lists all enum members, including aliases. Note that this 371. is a copy of the internal mapping. 372. 373. """ 374. return cls._member_map_.copy() 375. 376. def __getattr__(cls, name): 377. """Return the enum member matching `name` 378. 379. We use __getattr__ instead of descriptors or inserting into the enum 380. class' __dict__ in order to support `name` and `value` being both 381. properties for enum members (which live in the class' __dict__) and 382. enum members themselves. 383. 384. """ 385. if _is_dunder(name): 386. raise AttributeError(name) 387. try: 388. return cls._member_map_[name] 389. except KeyError: 390. raise AttributeError(name) 391. 392. def __getitem__(cls, name): 393. return cls._member_map_[name] 394. 395. def __iter__(cls): 396. return (cls._member_map_[name] for name in cls._member_names_) 397. 398. def __reversed__(cls): 399. return (cls._member_map_[name] for name in reversed(cls._member_names_)) 400. 401. def __len__(cls): 402. return len(cls._member_names_) 403. 404. __nonzero__ = __bool__ 405. 406. def __repr__(cls): 407. return "<enum %r>" % cls.__name__ 408. 409. def __setattr__(cls, name, value): 410. """Block attempts to reassign Enum members. 411. 412. A simple assignment to the class namespace only changes one of the 413. several possible ways to get an Enum member from the Enum class, 414. resulting in an inconsistent Enumeration. 415. 416. """ 417. member_map = cls.__dict__.get('_member_map_', {}) 418. if name in member_map: 419. raise AttributeError('Cannot reassign members.') 420. super(EnumMeta, cls).__setattr__(name, value) 421. 422. def _create_(cls, class_name, names=None, module=None, type=None, start=1): 423. """Convenience method to create a new Enum class. 424. 425. `names` can be: 426. 427. * A string containing member names, separated either with spaces or 428. commas. Values are auto-numbered from 1. 429. * An iterable of member names. Values are auto-numbered from 1. 430. * An iterable of (member name, value) pairs. 431. * A mapping of member name -> value. 432. 433. """ 434. if pyver < 3.0: 435. # if class_name is unicode, attempt a conversion to ASCII 436. if isinstance(class_name, unicode): 437. try: 438. class_name = class_name.encode('ascii') 439. except UnicodeEncodeError: 440. raise TypeError('%r is not representable in ASCII' % class_name) 441. metacls = cls.__class__ 442. if type is None: 443. bases = (cls, ) 444. else: 445. bases = (type, cls) 446. classdict = metacls.__prepare__(class_name, bases) 447. _order_ = [] 448. 449. # special processing needed for names? 450. if isinstance(names, basestring): 451. names = names.replace(',', ' ').split() 452. if isinstance(names, (tuple, list)) and isinstance(names[0], basestring): 453. names = [(e, i+start) for (i, e) in enumerate(names)] 454. 455. # Here, names is either an iterable of (name, value) or a mapping. 456. item = None # in case names is empty 457. for item in names: 458. if isinstance(item, basestring): 459. member_name, member_value = item, names[item] 460. else: 461. member_name, member_value = item 462. classdict[member_name] = member_value 463. _order_.append(member_name) 464. # only set _order_ in classdict if name/value was not from a mapping 465. if not isinstance(item, basestring): 466. classdict['_order_'] = ' '.join(_order_) 467. enum_class = metacls.__new__(metacls, class_name, bases, classdict) 468. 469. # TODO: replace the frame hack if a blessed way to know the calling 470. # module is ever developed 471. if module is None: 472. try: 473. module = _sys._getframe(2).f_globals['__name__'] 474. except (AttributeError, ValueError): 475. pass 476. if module is None: 477. _make_class_unpicklable(enum_class) 478. else: 479. enum_class.__module__ = module 480. 481. return enum_class 482. 483. @staticmethod 484. def _get_mixins_(bases): 485. """Returns the type for creating enum members, and the first inherited 486. enum class. 487. 488. bases: the tuple of bases that was given to __new__ 489. 490. """ 491. if not bases or Enum is None: 492. return object, Enum 493. 494. 495. # double check that we are not subclassing a class with existing 496. # enumeration members; while we're at it, see if any other data 497. # type has been mixed in so we can use the correct __new__ 498. member_type = first_enum = None 499. for base in bases: 500. if (base is not Enum and 501. issubclass(base, Enum) and 502. base._member_names_): 503. raise TypeError("Cannot extend enumerations") 504. # base is now the last base in bases 505. if not issubclass(base, Enum): 506. raise TypeError("new enumerations must be created as " 507. "`ClassName([mixin_type,] enum_type)`") 508. 509. # get correct mix-in type (either mix-in type of Enum subclass, or 510. # first base if last base is Enum) 511. if not issubclass(bases[0], Enum): 512. member_type = bases[0] # first data type 513. first_enum = bases[-1] # enum type 514. else: 515. for base in bases[0].__mro__: 516. # most common: (IntEnum, int, Enum, object) 517. # possible: (<Enum 'AutoIntEnum'>, <Enum 'IntEnum'>, 518. # <class 'int'>, <Enum 'Enum'>, 519. # <class 'object'>) 520. if issubclass(base, Enum): 521. if first_enum is None: 522. first_enum = base 523. else: 524. if member_type is None: 525. member_type = base 526. 527. return member_type, first_enum 528. 529. if pyver < 3.0: 530. @staticmethod 531. def _find_new_(classdict, member_type, first_enum): 532. """Returns the __new__ to be used for creating the enum members. 533. 534. classdict: the class dictionary given to __new__ 535. member_type: the data type whose __new__ will be used by default 536. first_enum: enumeration to check for an overriding __new__ 537. 538. """ 539. # now find the correct __new__, checking to see of one was defined 540. # by the user; also check earlier enum classes in case a __new__ was 541. # saved as __member_new__ 542. __new__ = classdict.get('__new__', None) 543. if __new__: 544. return None, True, True # __new__, save_new, use_args 545. 546. N__new__ = getattr(None, '__new__') 547. O__new__ = getattr(object, '__new__') 548. if Enum is None: 549. E__new__ = N__new__ 550. else: 551. E__new__ = Enum.__dict__['__new__'] 552. # check all possibles for __member_new__ before falling back to 553. # __new__ 554. for method in ('__member_new__', '__new__'): 555. for possible in (member_type, first_enum): 556. try: 557. target = possible.__dict__[method] 558. except (AttributeError, KeyError): 559. target = getattr(possible, method, None) 560. if target not in [ 561. None, 562. N__new__, 563. O__new__, 564. E__new__, 565. ]: 566. if method == '__member_new__': 567. classdict['__new__'] = target 568. return None, False, True 569. if isinstance(target, staticmethod): 570. target = target.__get__(member_type) 571. __new__ = target 572. break 573. if __new__ is not None: 574. break 575. else: 576. __new__ = object.__new__ 577. 578. # if a non-object.__new__ is used then whatever value/tuple was 579. # assigned to the enum member name will be passed to __new__ and to the 580. # new enum member's __init__ 581. if __new__ is object.__new__: 582. use_args = False 583. else: 584. use_args = True 585. 586. return __new__, False, use_args 587. else: 588. @staticmethod 589. def _find_new_(classdict, member_type, first_enum): 590. """Returns the __new__ to be used for creating the enum members. 591. 592. classdict: the class dictionary given to __new__ 593. member_type: the data type whose __new__ will be used by default 594. first_enum: enumeration to check for an overriding __new__ 595. 596. """ 597. # now find the correct __new__, checking to see of one was defined 598. # by the user; also check earlier enum classes in case a __new__ was 599. # saved as __member_new__ 600. __new__ = classdict.get('__new__', None) 601. 602. # should __new__ be saved as __member_new__ later? 603. save_new = __new__ is not None 604. 605. if __new__ is None: 606. # check all possibles for __member_new__ before falling back to 607. # __new__ 608. for method in ('__member_new__', '__new__'): 609. for possible in (member_type, first_enum): 610. target = getattr(possible, method, None) 611. if target not in ( 612. None, 613. None.__new__, 614. object.__new__, 615. Enum.__new__, 616. ): 617. __new__ = target 618. break 619. if __new__ is not None: 620. break 621. else: 622. __new__ = object.__new__ 623. 624. # if a non-object.__new__ is used then whatever value/tuple was 625. # assigned to the enum member name will be passed to __new__ and to the 626. # new enum member's __init__ 627. if __new__ is object.__new__: 628. use_args = False 629. else: 630. use_args = True 631. 632. return __new__, save_new, use_args 633. 634. 635. ######################################################## 636. # In order to support Python 2 and 3 with a single 637. # codebase we have to create the Enum methods separately 638. # and then use the `type(name, bases, dict)` method to 639. # create the class. 640. ######################################################## 641. temp_enum_dict = {} 642. temp_enum_dict['__doc__'] = "Generic enumeration.\n\n Derive from this class to define new enumerations.\n\n" 643. 644. def __new__(cls, value): 645. # all enum instances are actually created during class construction 646. # without calling this method; this method is called by the metaclass' 647. # __call__ (i.e. Color(3) ), and by pickle 648. if type(value) is cls: 649. # For lookups like Color(Color.red) 650. value = value.value 651. #return value 652. # by-value search for a matching enum member 653. # see if it's in the reverse mapping (for hashable values) 654. try: 655. if value in cls._value2member_map_: 656. return cls._value2member_map_[value] 657. except TypeError: 658. # not there, now do long search -- O(n) behavior 659. for member in cls._member_map_.values(): 660. if member.value == value: 661. return member 662. raise ValueError("%s is not a valid %s" % (value, cls.__name__)) 663. temp_enum_dict['__new__'] = __new__ 664. del __new__ 665. 666. def __repr__(self): 667. return "<%s.%s: %r>" % ( 668. self.__class__.__name__, self._name_, self._value_) 669. temp_enum_dict['__repr__'] = __repr__ 670. del __repr__ 671. 672. def __str__(self): 673. return "%s.%s" % (self.__class__.__name__, self._name_) 674. temp_enum_dict['__str__'] = __str__ 675. del __str__ 676. 677. if pyver >= 3.0: 678. def __dir__(self): 679. added_behavior = [ 680. m 681. for cls in self.__class__.mro() 682. for m in cls.__dict__ 683. if m[0] != '_' and m not in self._member_map_ 684. ] 685. return (['__class__', '__doc__', '__module__', ] + added_behavior) 686. temp_enum_dict['__dir__'] = __dir__ 687. del __dir__ 688. 689. def __format__(self, format_spec): 690. # mixed-in Enums should use the mixed-in type's __format__, otherwise 691. # we can get strange results with the Enum name showing up instead of 692. # the value 693. 694. # pure Enum branch 695. if self._member_type_ is object: 696. cls = str 697. val = str(self) 698. # mix-in branch 699. else: 700. cls = self._member_type_ 701. val = self.value 702. return cls.__format__(val, format_spec) 703. temp_enum_dict['__format__'] = __format__ 704. del __format__ 705. 706. 707. #################################### 708. # Python's less than 2.6 use __cmp__ 709. 710. if pyver < 2.6: 711. 712. def __cmp__(self, other): 713. if type(other) is self.__class__: 714. if self is other: 715. return 0 716. return -1 717. return NotImplemented 718. raise TypeError("unorderable types: %s() and %s()" % (self.__class__.__name__, other.__class__.__name__)) 719. temp_enum_dict['__cmp__'] = __cmp__ 720. del __cmp__ 721. 722. else: 723. 724. def __le__(self, other): 725. raise TypeError("unorderable types: %s() <= %s()" % (self.__class__.__name__, other.__class__.__name__)) 726. temp_enum_dict['__le__'] = __le__ 727. del __le__ 728. 729. def __lt__(self, other): 730. raise TypeError("unorderable types: %s() < %s()" % (self.__class__.__name__, other.__class__.__name__)) 731. temp_enum_dict['__lt__'] = __lt__ 732. del __lt__ 733. 734. def __ge__(self, other): 735. raise TypeError("unorderable types: %s() >= %s()" % (self.__class__.__name__, other.__class__.__name__)) 736. temp_enum_dict['__ge__'] = __ge__ 737. del __ge__ 738. 739. def __gt__(self, other): 740. raise TypeError("unorderable types: %s() > %s()" % (self.__class__.__name__, other.__class__.__name__)) 741. temp_enum_dict['__gt__'] = __gt__ 742. del __gt__ 743. 744. 745. def __eq__(self, other): 746. if type(other) is self.__class__: 747. return self is other 748. return NotImplemented 749. temp_enum_dict['__eq__'] = __eq__ 750. del __eq__ 751. 752. def __ne__(self, other): 753. if type(other) is self.__class__: 754. return self is not other 755. return NotImplemented 756. temp_enum_dict['__ne__'] = __ne__ 757. del __ne__ 758. 759. def __hash__(self): 760. return hash(self._name_) 761. temp_enum_dict['__hash__'] = __hash__ 762. del __hash__ 763. 764. def __reduce_ex__(self, proto): 765. return self.__class__, (self._value_, ) 766. temp_enum_dict['__reduce_ex__'] = __reduce_ex__ 767. del __reduce_ex__ 768. 769. # _RouteClassAttributeToGetattr is used to provide access to the `name` 770. # and `value` properties of enum members while keeping some measure of 771. # protection from modification, while still allowing for an enumeration 772. # to have members named `name` and `value`. This works because enumeration 773. # members are not set directly on the enum class -- __getattr__ is 774. # used to look them up. 775. 776. @_RouteClassAttributeToGetattr 777. def name(self): 778. return self._name_ 779. temp_enum_dict['name'] = name 780. del name 781. 782. @_RouteClassAttributeToGetattr 783. def value(self): 784. return self._value_ 785. temp_enum_dict['value'] = value 786. del value 787. 788. @classmethod 789. def _convert(cls, name, module, filter, source=None): 790. """ 791. Create a new Enum subclass that replaces a collection of global constants 792. """ 793. # convert all constants from source (or module) that pass filter() to 794. # a new Enum called name, and export the enum and its members back to 795. # module; 796. # also, replace the __reduce_ex__ method so unpickling works in 797. # previous Python versions 798. module_globals = vars(_sys.modules[module]) 799. if source: 800. source = vars(source) 801. else: 802. source = module_globals 803. members = dict((name, value) for name, value in source.items() if filter(name)) 804. cls = cls(name, members, module=module) 805. cls.__reduce_ex__ = _reduce_ex_by_name 806. module_globals.update(cls.__members__) 807. module_globals[name] = cls 808. return cls 809. temp_enum_dict['_convert'] = _convert 810. del _convert 811. 812. Enum = EnumMeta('Enum', (object, ), temp_enum_dict) 813. del temp_enum_dict 814. 815. # Enum has now been created 816. ########################### 817. 818. class IntEnum(int, Enum): 819. """Enum where members are also (and must be) ints""" 820. 821. def _reduce_ex_by_name(self, proto): 822. return self.name 823. 824. def unique(enumeration): 825. """Class decorator that ensures only unique members exist in an enumeration.""" 826. duplicates = [] 827. for name, member in enumeration.__members__.items(): 828. if name != member.name: 829. duplicates.append((name, member.name)) 830. if duplicates: 831. duplicate_names = ', '.join( 832. ["%s -> %s" % (alias, name) for (alias, name) in duplicates] 833. ) 834. raise ValueError('duplicate names found in %r: %s' % 835. (enumeration, duplicate_names) 836. ) 837. return enumeration


Chocolate Easter Eggs 2
Ingredients:
- 1 cup margarine
- 2 pound confectioner's sugar
- 8 ounce cream cheese
- dark chocolate
- Choose:
- 2 cup peanut butter
Comment: Easy to roll due to oil in peanut butter.
or
- 2 cup coconut
or
- 50 drop peppermint oil
or
- 1 cup unsweetened cocoa
or
- 2 teaspoon vanilla
or
- 50 drops strawberry flavoring
- 2 package unsweeted strawberry Kool-aid
or
- 35 drops orange oil
- 1 package unsweeted orange Kool-aid
Steps:
- Mix softened margarine and cream cheese.
- Mix in vanilla and confectioner's sugar.
- Add flavoring to desired taste.
- Shape into eggs, place on wax paper and freeze overnight.
- Melt chocolate in a double boiler and dip eggs.
- Place back on wax paper and freeze until solid.
Source: Modified from Chocolate Easter Eggs from Joyce Stevens


[gecode-users] Compilation problem on MacOs with Gecode 4.3
Vijay Saraswat
vijay at saraswat.org
Mon Oct 13 20:51:04 CEST 2014
FWIW for others who might be in a similar predicament: Cutting and
pasting from the log files for make test yielded the following commands
that worked to compile and run my code:
g++ -I/usr/local/include -Qunused-arguments -fno-signaling-nans
-fno-rounding-math -ffinite-math-only -fno-math-errno
-fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -pipe -Wall -Wextra
-fPIC -pthread -DNDEBUG -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB
-DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I${QTH}/5.3/clang_64/mkspecs/macx-clang
-I${QTH}/5.3/clang_64/lib/QtPrintSupport.framework/Versions/5/Headers
-I${QTH}/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers
-I${QTH}/5.3/clang_64/lib/QtGui.framework/Versions/5/Headers
-I${QTH}/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers
-F${QTH}/5.3/clang_64/lib -c -o money.o money.cpp
bash-3.2$ g++ -o money money.o -L/usr/local/lib -I/usr/local/include
-Qunused-arguments -fno-signaling-nans -fno-rounding-math
-ffinite-math-only -fno-math-errno -fno-strict-aliasing -O3
-fvisibility=hidden -ggdb -pipe -Wall -Wextra -fPIC -pthread -DNDEBUG
-lgecodeflatzinc -lgecodedriver -lgecodegist -lgecodesearch
-lgecodeminimodel -lgecodeset -lgecodefloat -lgecodeint -lgecodekernel
-lgecodesupport -F/Users/vijaysaraswat/Qt/5.3/clang_64/lib -framework
QtPrintSupport -framework QtWidgets -framework QtGui -framework QtCore
-framework OpenGL -framework AGL
On 10/13/14, 1:03 PM, Vijay Saraswat wrote:
> FWIW, I did "make test", and ran test/test, and all tests pass.
>
> I am also able to run the examples.
>
> So in principle I could decode the make file for the examples and
> tests and find out what to do :-)
>
> On 10/13/14, 11:11 AM, Christian Schulte wrote:
>> Apparently you did compile with Gist, that explains the first thing.
>>
>> The second I do not know and I will have to leave to an Apple user...
>>
>> Cheers
>> Christian
>>
>> --
>> Christian Schulte, Professor of Computer Science, KTH,
>> www.gecode.org/~schulte/
>>
>>
>> -----Original Message-----
>> From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On
>> Behalf
>> Of Vijay Saraswat
>> Sent: Monday, October 13, 2014 5:11 PM
>> To: cschulte at kth.se; users at gecode.org
>> Subject: Re: [gecode-users] Compilation problem on MacOs with Gecode 4.3
>>
>> OK that definitely helps -- I get fewer missing symbols from before.
>>
>> However, -lcodegist did not work:
>>
>> g++ -v -o money money.o -stdlib=libstdc++ -L/usr/local/lib
>> -lgecodedriver -lgecodegist -lgecodesearch -lgecodeminimodel -lgecodeint
>> -lgecodekernel -lgecodesupport Apple LLVM version 5.1 (clang-503.0.40)
>> (based on LLVM 3.4svn)
>> Target: x86_64-apple-darwin13.1.0
>> Thread model: posix
>> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolch
>> ain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min
>> 10.9.0
>> -syslibroot
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develop
>>
>> er/SDKs/MacOSX10.9.sdk -o money -L/usr/local/lib money.o -lgecodedriver
>> -lgecodegist -lgecodesearch -lgecodeminimodel -lgecodeint -lgecodekernel
>> -lgecodesupport -lstdc++ -lSystem
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolcha
>>
>> in/usr/bin/../lib/clang/5.1/lib/darwin/libclang_rt.osx.a
>> ld: library not found for -lgecodegist
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>>
>> This is odd -- there was no error when i did a make to make the system.
>>
>> Without lcodegist I do get a fewer set of missing symbols:
>>
>> g++ -v -o money money.o -stdlib=libstdc++ -L/usr/local/lib
>> -lgecodedriver -lgecodesearch -lgecodeminimodel -lgecodeint
>> -lgecodekernel
>> -lgecodesupport Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM
>> 3.4svn)
>> Target: x86_64-apple-darwin13.1.0
>> Thread model: posix
>> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolch
>> ain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min
>> 10.9.0
>> -syslibroot
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develop
>>
>> er/SDKs/MacOSX10.9.sdk -o money -L/usr/local/lib money.o -lgecodedriver
>> -lgecodesearch -lgecodeminimodel -lgecodeint -lgecodekernel
>> -lgecodesupport
>> -lstdc++ -lSystem
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolcha
>>
>> in/usr/bin/../lib/clang/5.1/lib/darwin/libclang_rt.osx.a
>> Undefined symbols for architecture x86_64:
>> "Gecode::Driver::stop(Gecode::Support::Timer&, std::ostream&)",
>> referenced from:
>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>> Gecode::DFS, Gecode::Options,
>> Gecode::Driver::EngineToMeta>(Gecode::Options const&, Money*) in money.o
>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>> Gecode::DFS, Gecode::Options, Gecode::RBS>(Gecode::Options const&,
>> Money*) in money.o
>> "Gecode::branch(Gecode::Home, Gecode::IntVarArgs const&,
>> Gecode::IntVarBranch, Gecode::IntValBranch, bool (*)(Gecode::Space
>> const&,
>> Gecode::IntVar, int), void (*)(Gecode::Space const&,
>> Gecode::BrancherHandle
>> const&, unsigned int, Gecode::IntVar, int, int const&, std::ostream&))",
>> referenced from:
>> Money::Money(Gecode::Options const&) in money.o
>> ld: symbol(s) not found for architecture x86_64
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>>
>> Best,
>> Vijay
>>
>> On 10/13/14, 10:52 AM, Christian Schulte wrote:
>>> Hi Vijay,
>>>
>>> Not being an Apple user, let me still try a guess: you need to add
>>> additional libraries:
>>> -lgecodeminimodel -lgecodedriver -lgecodegist
>>>
>>> Please use the order as described in MPG.
>>>
>>> Good luck
>>> Christian
>>>
>>> --
>>> Christian Schulte, Professor of Computer Science, KTH,
>>> www.gecode.org/~schulte/
>>>
>>>
>>> -----Original Message-----
>>> From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On
>>> Behalf Of Vijay Saraswat
>>> Sent: Monday, October 13, 2014 4:51 PM
>>> To: users at gecode.org
>>> Subject: [gecode-users] Compilation problem on MacOs with Gecode 4.3
>>>
>>> Continuing with
>>> http://www.gecode.org/pipermail/users/2014-April/004368.html
>>>
>>> I am unable to get the basic example running from the tutorial.
>>>
>>> On a MacBook, OS X 10.9.2, XCode 5.1.1, trying to install GECode 4.3
>>> from the webpage http://www.gecode.org/download.html
>>>
>>> Downloaded source package, did a ./configure, make, make-install --
>>> all seemed to succeed.
>>>
>>> The following command succeeds:
>>>
>>> $g++ -O3 -I/usr/local/include -stdlib=libstdc++ -c money.cpp
>>>
>>> However, the next command fails -- what am I doing wrong?
>>>
>>> $g++ -v -o money money.o -L/usr/local/lib -stdlib=libstdc++
>>> -lgecodesearch -lgecodeint -lgecodekernel -lgecodesupport Apple LLVM
>>> version 5.1
>>> (clang-503.0.40) (based on LLVM 3.4svn)
>>> Target: x86_64-apple-darwin13.1.0
>>> Thread model: posix
>>> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xc
>>> toolch ain/usr/bin/ld" -demangle -dynamic -arch x86_64
>>> -macosx_version_min 10.9.0 -syslibroot
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/D
>>> evelop er/SDKs/MacOSX10.9.sdk -o money -L/usr/local/lib money.o
>>> -lgecodesearch -lgecodeint -lgecodekernel -lgecodesupport -lstdc++
>>> -lSystem
>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xct
>>> oolcha in/usr/bin/../lib/clang/5.1/lib/darwin/libclang_rt.osx.a
>>> Undefined symbols for architecture x86_64:
>>> "Gecode::LinIntExpr::~LinIntExpr()", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::BaseOptions::help()", referenced from:
>>> vtable for Gecode::Options in money.o
>>> "Gecode::BaseOptions::parse(int&, char**)", referenced from:
>>> _main in money.o
>>> "Gecode::BaseOptions::~BaseOptions()", referenced from:
>>> Gecode::Options::~Options() in money.o
>>> "Gecode::rel(Gecode::Home, Gecode::BoolExpr const&,
>>> Gecode::IntConLevel)", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::Driver::BaseOption::~BaseOption()", referenced from:
>>> Gecode::Options::~Options() in money.o
>>> "Gecode::Driver::CombinedStop::sigint", referenced from:
>>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>>> Gecode::DFS, Gecode::Options,
>>> Gecode::Driver::EngineToMeta>(Gecode::Options const&, Money*) in
>>> money.o
>>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>>> Gecode::DFS, Gecode::Options, Gecode::RBS>(Gecode::Options const&,
>>> Money*) in money.o
>>> Gecode::Driver::CombinedStop::interrupt(int) in money.o
>>> Gecode::Driver::CombinedStop::CombinedStop(unsigned int,
>>> unsigned int, unsigned int) in money.o
>>> Gecode::Driver::CombinedStop::stop(Gecode::Search::Statistics
>>> const&, Gecode::Search::Options const&) in money.o
>>> "Gecode::Driver::StringOption::add(int, char const*, char
>>> const*)", referenced from:
>>> _main in money.o
>>> "Gecode::Driver::StringOption::~StringOption()", referenced from:
>>> Gecode::Options::~Options() in money.o
>>> "Gecode::Driver::StringValueOption::~StringValueOption()",
>>> referenced
>>> from:
>>> Gecode::Options::~Options() in money.o
>>> "Gecode::Driver::am(double*, int)", referenced from:
>>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>>> Gecode::DFS, Gecode::Options,
>>> Gecode::Driver::EngineToMeta>(Gecode::Options const&, Money*) in
>>> money.o
>>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>>> Gecode::DFS, Gecode::Options, Gecode::RBS>(Gecode::Options const&,
>>> Money*) in money.o
>>> "Gecode::Driver::dev(double*, int)", referenced from:
>>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>>> Gecode::DFS, Gecode::Options,
>>> Gecode::Driver::EngineToMeta>(Gecode::Options const&, Money*) in
>>> money.o
>>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>>> Gecode::DFS, Gecode::Options, Gecode::RBS>(Gecode::Options const&,
>>> Money*) in money.o
>>> "Gecode::Driver::stop(Gecode::Support::Timer&, std::ostream&)",
>>> referenced from:
>>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>>> Gecode::DFS, Gecode::Options,
>>> Gecode::Driver::EngineToMeta>(Gecode::Options const&, Money*) in
>>> money.o
>>> void Gecode::Driver::ScriptBase<Gecode::Space>::runMeta<Money,
>>> Gecode::DFS, Gecode::Options, Gecode::RBS>(Gecode::Options const&,
>>> Money*) in money.o
>>> "Gecode::branch(Gecode::Home, Gecode::IntVarArgs const&,
>>> Gecode::IntVarBranch, Gecode::IntValBranch, bool (*)(Gecode::Space
>>> const&, Gecode::IntVar, int), void (*)(Gecode::Space const&,
>>> Gecode::BrancherHandle const&, unsigned int, Gecode::IntVar, int, int
>>> const&, std::ostream&))", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::Options::Options(char const*)", referenced from:
>>> _main in money.o
>>> "Gecode::BoolExpr::BoolExpr(Gecode::LinIntRel const&)", referenced
>> from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::BoolExpr::~BoolExpr()", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::operator==(Gecode::LinIntExpr const&, Gecode::LinIntExpr
>>> const&)", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::operator==(Gecode::IntVar const&, Gecode::IntVar
>>> const&)", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::operator*(int, Gecode::IntVar const&)", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::operator+(Gecode::LinIntExpr const&, Gecode::IntVar
>>> const&)", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::operator+(Gecode::LinIntExpr const&, Gecode::LinIntExpr
>>> const&)", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::operator+(Gecode::IntVar const&, Gecode::LinIntExpr
>>> const&)", referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "Gecode::operator+(Gecode::IntVar const&, Gecode::IntVar const&)",
>>> referenced from:
>>> Money::Money(Gecode::Options const&) in money.o
>>> "typeinfo for Gecode::BaseOptions", referenced from:
>>> typeinfo for Gecode::Options in money.o
>>> ld: symbol(s) not found for architecture x86_64
>>> clang: error: linker command failed with exit code 1 (use -v to see
>>> invocation)
>>> bash-3.2$
>>>
>>> _______________________________________________
>>> Gecode users mailing list
>>> users at gecode.org
>>> https://www.gecode.org/mailman/listinfo/gecode-users
>>>
>>>
>>
>> _______________________________________________
>> Gecode users mailing list
>> users at gecode.org
>> https://www.gecode.org/mailman/listinfo/gecode-users
>>
>>
>
>
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
>
More information about the users
mailing list