21/7/1999 Found Julia's death on Probate Files.
B.D.M's " There are 2 William J. Turnbull's 1st born 1871 son of William & Kate Turnbull of Balmain. and b 1874 son of Ellen Turnbull of Sydney.20/8/1999 Found Julia's death & funeral notice in SMH.
SMH - DEATH - TURNBULL - March 6th, 1939, at her residence, 102 Foveaux St., Surry Hills, Julia Ann Turnbull, beloved mother of William Joseph (dec), Mary, & John, aged 70yrs.
FUNERAL - TURNBULL -- The Relatives and Friends of MARY HUMPHRIES & JOHN TURNBULL are kindly invited kindly invited to attend the Funeral of their Beloved Mother, Julia Ann TURNBULL, to leave Kinsela Catholic Chapel, Oxford Street, Taylor Square, Darlinghurst, this Tuesday, at 2pm, for the Catholic Cemetery, Botany. Lot AA506.
18/9/1999 - Found William Turnbull's death on 18th Oct.1932 in Botany Catholic Cemetery Lot AA506.
18/9/1999 - Found William Joseph Turnbull, death on 29th May, 1928, in Botany CofE Cemetery, husband of Lucy, father of Jean & Billy. Late 9th Field Artillery AIF, (Masonic) "My Pal"


Tcl_CallWhenDeleted, Tcl_DontCallWhenDeleted - Arrange for callback when interpreter is deleted
#include <tcl.h>
Tcl_CallWhenDeleted(interp, proc, clientData)
Tcl_DontCallWhenDeleted(interp, proc, clientData)
- Tcl_Interp *interp (in)
-
Interpreter with which to associated callback.
- Tcl_InterpDeleteProc *proc (in)
-
Procedure to call when interp is deleted.
- ClientData clientData (in)
-
Arbitrary one-word value to pass to proc.
Tcl_CallWhenDeleted arranges for proc to be called by
Tcl_DeleteInterp if/when interp is deleted at some future
time. Proc will be invoked just before the interpreter
is deleted, but the interpreter will still be valid at the
time of the call.
Proc should have arguments and result that match the
type Tcl_InterpDeleteProc:
typedef void Tcl_InterpDeleteProc(
ClientData clientData,
Tcl_Interp *interp);
The clientData and interp parameters are
copies of the clientData and interp arguments given
to Tcl_CallWhenDeleted.
Typically, clientData points to an application-specific
data structure that proc uses to perform cleanup when an
interpreter is about to go away.
Proc does not return a value.
Tcl_DontCallWhenDeleted cancels a previous call to
Tcl_CallWhenDeleted with the same arguments, so that
proc will not be called after all when interp is
deleted.
If there is no deletion callback that matches interp,
proc, and clientData then the call to
Tcl_DontCallWhenDeleted has no effect.
callback, delete, interpreter
Copyright © 1995-1997 Roger E. Critchlow Jr.
Copyright © 1993 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.


KesarSoft ("us", "we", or "our") operates the https://kesarsoft.com/ website, the Kesar tracking software, the Kesar Client mobile application and the Kesar Manager mobile application (the "Service").
This page informs you of our policies regarding the collection, use, and disclosure of personal data when you use our Service and the choices you have associated with that data.
We use your data to provide and improve the Service. By using the Service, you agree to the collection and use of information in accordance with this policy. Unless otherwise defined in this Privacy Policy, terms used in this Privacy Policy have the same meanings as in our Terms and Conditions.
Information Collection And Use
We collect several different types of information for various purposes to provide and improve our Service to you.
Types of Data Collected
Personal Data
While using our Service, we may ask you to provide us with certain personally identifiable information that can be used to contact or identify you ("Personal Data"). Personally identifiable information may include, but is not limited to:
- Email address
- First name and last name
- Cookies and Usage Data
Usage Data
We may also collect information that your browser sends whenever you visit our Service or when you access the Service by or through a mobile device ("Usage Data").
This Usage Data may include information such as your computer's Internet Protocol address (e.g. IP address), browser type, browser version, the pages of our Service that you visit, the time and date of your visit, the time spent on those pages, unique device identifiers and other diagnostic data.
When you access the Service by or through a mobile device, this Usage Data may include information such as the type of mobile device you use, your mobile device unique ID, the IP address of your mobile device, your mobile operating system, the type of mobile Internet browser you use, unique device identifiers and other diagnostic data.
Tracking & Cookies Data
We use cookies and similar tracking technologies to track the activity on our Service and hold certain information.
Cookies are files with small amount of data which may include an anonymous unique identifier. Cookies are sent to your browser from a website and stored on your device. Tracking technologies also used are beacons, tags, and scripts to collect and track information and to improve and analyze our Service.
You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent. However, if you do not accept cookies, you may not be able to use some portions of our Service.
Examples of Cookies we use:
- Session Cookies. We use Session Cookies to operate our Service.
- Preference Cookies. We use Preference Cookies to remember your preferences and various settings.
- Security Cookies. We use Security Cookies for security purposes.
Use of Data
Kesar . uses the collected data for various purposes:
- To provide and maintain the Service
- To notify you about changes to our Service
- To allow you to participate in interactive features of our Service when you choose to do so
- To provide customer care and support
- To provide analysis or valuable information so that we can improve the Service
- To monitor the usage of the Service
- To detect, prevent and address technical issues
Transfer Of Data
Your information, including Personal Data, may be transferred to — and maintained on — computers located outside of your state, province, country or other governmental jurisdiction where the data protection laws may differ than those from your jurisdiction.
Your consent to this Privacy Policy followed by your submission of such information represents your agreement to that transfer.
Kesar. will take all steps reasonably necessary to ensure that your data is treated securely and in accordance with this Privacy Policy and no transfer of your Personal Data will take place to an organization or a country unless there are adequate controls in place including the security of your data and other personal information.
Disclosure Of Data
Legal Requirements
Kesar. may disclose your Personal Data in the good faith belief that such action is necessary to:
- To comply with a legal obligation
- To protect and defend the rights or property of Kesar.
- To prevent or investigate possible wrongdoing in connection with the Service
- To protect the personal safety of users of the Service or the public
- To protect against legal liability
Security Of Data
The security of your data is important to us, but remember that no method of transmission over the Internet, or method of electronic storage is 100% secure. While we strive to use commercially acceptable means to protect your Personal Data, we cannot guarantee its absolute security.
Service Providers
We may employ third party companies and individuals to facilitate our Service ("Service Providers"), to provide the Service on our behalf, to perform Service-related services or to assist us in analyzing how our Service is used.
These third parties have access to your Personal Data only to perform these tasks on our behalf and are obligated not to disclose or use it for any other purpose.
Analytics
We may use third-party Service Providers to monitor and analyze the use of our Service.
- Google Analytics is a web analytics service offered by Google that tracks and reports website traffic. Google uses the data collected to track and monitor the use of our Service. This data is shared with other Google services. Google may use the collected data to contextualize and personalize the ads of its own advertising network. For more information on the privacy practices of Google, please visit the Google Privacy & Terms web page.
Links To Other Sites
Our Service may contain links to other sites that are not operated by us. If you click on a third party link, you will be directed to that third party's site. We strongly advise you to review the Privacy Policy of every site you visit.
We have no control over and assume no responsibility for the content, privacy policies or practices of any third party sites or services.
Children's Privacy
Our Service does not address anyone under the age of 18 ("Children").
We do not knowingly collect personally identifiable information from anyone under the age of 18. If you are a parent or guardian and you are aware that your Children has provided us with Personal Data, please contact us. If we become aware that we have collected Personal Data from children without verification of parental consent, we take steps to remove that information from our servers.
Changes To This Privacy Policy
We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page.
We will let you know via email and/or a prominent notice on our Service, prior to the change becoming effective and update the "effective date" at the top of this Privacy Policy.
You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page.
Contact Us
If you have any questions about this Privacy Policy, please contact us by email:


Sources: China tariff demands may expand 'phase one' trade deal significantly - Reuters
by Dhwani MehtaReuters quotes people familiar with the US-China talks, as saying that a “phase one” trade deal between the US and China could expand if US President Trump yields into Beijing’s demands to roll back existing tariffs on Chinese goods.
The sources said: “Trump has decided that rolling back existing tariffs, in addition to canceling a scheduled Dec. 15 imposition of tariffs on some $156 billion in Chinese consumer goods, requires deeper concessions from China.”
Meanwhile, Trump said on Tuesday that he will "just raise tariffs" if the US doesn't make a deal with China.
As for Wednesday’s trading so far, the risk sentiment remains sour amid fresh concerns over the US and China on the Hong Kong human rights bill approved by the US Senate. This may spillover to the impending US-China trade talks and render negative for the much-awaited trade deal.


real-time
paranoid
constantly
regularly
sometimes
rarely
1 second
30 seconds
5 minutes
30 minutes
1 hour
4 hours
Vigilant
apps
servers
URL
HTTP Status
Latency
IP
Status
Latency


| CellAndDistance (75%) |
| DisplayPanel (0%) |
| DistanceCalculationMetrics (32%) |
| DistanceTravelledCalculator (28%) |
| DistanceTravelledMain (0%) |
| DistanceTravelledMovieMaker (0%) |
| EffectiveSpeedCheck (0%) |
| EffectiveSpeedChecker (64%) |
| MapDb (0%) |
| OperatorEffectiveSpeedChecker (0%) |
| OperatorSumCellDistances (0%) |
| OperatorSumCellValues (0%) |
| OperatorToObservableSizedList (0%) |
| Renderer (0%) |


Setup Extension Components
Google Spreadsheet Endpoint
To allow write back data the extension needs an Endpoint to send the data.
To allow a simple deploy you can copy this Google Spreadsheet and configured it to allow the extension to send data to it;
If you need a more detailed step-by-step setup follow the link: Spreadsheet Configuration
After copying the Spreadsheed do the following:
- Open the Spreadsheet;
- Go to Extensions -> Apps Script;
- You will see that there is already a script there. This will be your REST API that will get the data from Tableau;
- Select Deploy -> New deployment.
- Under Description, you can place, for example, "Write-Back Free".
- Under Execute the app as, select whose authorization the app should run with: your account (the developer's) or the account of the user who visits the app (see permissions).
- Under Who has access to the app, select who should be allowed to visit it. Select: "Anyone".
- Click Deploy.
- You will be prompted to allow the application to access your google spreadsheet, if you are not prompted to do it, please run the setup and enable the script to access your spreadsheet;
- You will get a link like this:
https://script.google.com/...
- You will need this link to send the Extension endpoint;
Tableau Extension
- Download the trex file. Use the button
Download Manifest File
- Copy the
.trex
file from the `manifest` folder to...\My Tableau Repository\Extensions`
so they are available to Tableau (This is not required because you can open it anywhere in your computer, it's just to keep this clean); - Launch Tableau and in the Dashoard select the Extension to use.
Extension Configuration
When you run the extension for the first time a Configuration Menu will Pop Up;
- "Select the Worksheet" from where you want to get the data to see in the extension;
- "Endpoint URL": Add your URL where, if you used the Google Spreadsheet add the
https://script.google.com/...
here; - "Select the Spreadsheet": If you are using Google Spreadsheet this will set the Sheet name;
- "Add Columns": This allows you to add new columns to the Extension Table like comments that you want to add;
- When you are done just it the "Submit" Button;


Mancini: I don't know if rivals are worried, but they'd prefer not to face Italy
by OmnisportRoberto Mancini is unsure if rivals are worried about Italy ahead of Euro 2020, but feels they may prefer to avoid playing his side at the tournament.
Italy completed a perfect qualifying campaign in Group J with a 9-1 demolition of Armenia in Palermo on Monday.
While their impressive performances are sure to see them considered among the favourites at next year's showpiece tournament, Mancini feels other nations are ahead of Italy in their growth.
"I don't know if they are worried or not," the Italy coach told a news conference.
"I think they are stronger because they are one step ahead with their plan. France started some years ago, they reached a Euro final and won the World Cup. They are young and I think they are one of the strongest teams. Spain the same.
"Belgium in the last five, six years produced a lot of outstanding talents. Then England.
"All those teams stared earlier. Italy has a great history. I don't think other teams will face Italy easily.
"Maybe they are not scared, buy if they could choose would face another opponent instead of Italy."
Ciro Immobile and Nicolo Zaniolo scored braces against Armenia, while Nicolo Barella, Alessio Romagnoli, Jorginho, Riccardo Orsolini and Federico Chiesa were also on the scoresheet.
Mancini praised his players for their improvement and hopes there is more to come from Italy at Euro 2020.
"These are all young lads who are improving game by game. Playing at international level brings experience, they've got the quality, it's just a matter of time," he told Rai Sport.
"We’ll see what happens at Euro 2020. We'd never won all 10 games in a qualifying group, we've got six months to prepare for the championship and unfortunately I will have to leave some behind, as I can only bring 23 players.
"If we can continue like this, that would be great."
The draw for the final tournament will be held on November 30.


Reth Tawmerik I
Help Me Pick New Logo Through 3 April 2016!
I am in the process of running a logo design contest on 99designs and have created a poll with 6 of the best logo designs I've received. I would love for you to vote on the logo design. It only takes a minute.
Like Sci-Fi? Read My New Online Fiction Series.
Do you like Sci-Fi? While I finish up my next novel, I have started an online fiction series called Forbearance. Picking up from the canteen scene in Bellicose, we meet Keius Minjen, a postal marine, as he tries to survive the battle planet Guna to exact revenge and one day liberate his homeland.
Sign-up if you want me to send you news about upcoming installments of Forbearance or my other writings.
Early Years
Reth Tawmerik was born into great privilege, the scion of an ancient and wealthy house. Raised from the earliest age to lead his family and their chief holding and homeworld; Goetel’s World in the Fasantauri System and as much as could be accumulated in the Core Worlds as humanity again took to the stars after the key discoveries by the Cel-Tainu Astrophysical Research Corporation.
Reth, however, did not follow the path laid out for him. Upon graduaton, young Reth, just nineteen standard years old, scandalized his family by joining the Goetel’s World armed forces. It was a heavy blow for the Tawmerik family, which had put much faith in Reth leading them to even more power and influence.
Military Years
Reth proved an able, if not brilliant military commander. As humanity slowly crawled out of the ravages and isolation of the Decline, there was much need by various systems of trained militaries to defend against other systems, or to battle to annex valuable worlds. He rose through the ranks, and became a general by the time he was forty standard years, perhaps as much by trading on his name as on his military skills.
Reth’s experiences in the military seemed to have a considerable effect upon him. He began to fear that the uncontrolled expansion by powerful systems would lead a violent conflict that might plunge humanity into a new Decline. He sought the aid of his family to try to reach out to other systems to build a unified and stable interstellar government. Still, as a military man, even one from an influential family, his political opinions were frowned upon.
The Republican
Despite the misgivings of his family and the outcries from his critics, the General aligned himself with a group of scholars, journalists, industrialists and philosophers seeking to forge a republican government. The General was a dashing figure; charismatic, handsome and articulate. In a few short years General Reth Tawmerik came to embody this new Republican movement.
It is told elsewhere of the rise of the Terran Republic, the new hope of a humanity that had rediscovered the stars. The General worked tirelessly to achieve this goal, which had become his chief obsession. With the death of his father, the General now held the reigns of power of the Goetel’s World political and military systems, and was skillful enough to make it seem as if no conflict of interest existed.
With the foundation of the Terran Republic, the General’s fame grew. He was offered and accepted the position of Prime Minister, though he kept it for only a few years before resigning his post and taking up the position of Minister of Defense. It seemed that the General had been true to his ideals, and in achieving his goal, was willing to let others continue on.
The Imperial Ambition
The precise circumstances of the General’s conversion from Republican to Imperialist are unknown. Some scholars have theorized that it was Messen Fremezulejo, who the General had captured as an agitator, who filled the General’s head with prophecies of ultimate power. I do not agree, and believe that the General was neither a fool or a fanatic, but rather had known all along that humanity would not buy into the notion of the Imperium under the rule of one man, but needed a Republic that would fall apart and deliver him power.
One need only consider that it was his close association with the likes of Alistair Cormwite to see that however many speeches he might give, and how much his public actions might speak of an honest and noble champion of democracy, that in private he worked to significantly different ends. Through Cormwite and the Bafiktuy Intelligence Directive, I am certain that the General was able to undermine the Republic even as he was admired and adored by billions as its founder. Even more telling was the General’s obstinant rejection of constitutional reforms that might have made the Republic more structurally cohesive and effective, particularly as the Frontier Rebellion exploded into a conflict capable of rubbing the Republic out.
The Emperor
The collapse of the Republic gave Reth, and his now constant (if rarely seen) advisor Alistair Cormwite all they needed to seize the reigns of power. His stunning (and illegal) march with a hundred armed officers into the Terran Congress, to arrest the Prime Minister, the Speaker and the Cabinet could have backfired, but instead the citizens of the Republic saw it as a necessary move to reform the ailing Republic and bring an end to the rebellions.
The General feigned reluctance when his agents in the Terran Congress offered him the crown, and then in a brief speech read by his representatives on all the worlds of the Republic spoke of “graciously and with great humility accepting the title and powers of Emperor, until peace and order can be restored and the Republic again flourish.”
Despite the fact that the various governmental organs of the Republic were left largely intact, Emperor Reth I would suffer no one save himself to hold any meaningful amount of power. He was an autocratic monarch, but not one removed from reality. He was very careful to allow individual systems to retain their own governments and traditions, providing their loyalty lie with the new regime. The Emperor trusted few people, and the only advisor that survived for any length of time was his slippery companion, Alistair Cormwite.
What was not generally known, and came to light only later, was that the Emperor’s later years were marred by bouts of insanity and eventually irreversible senility. The Emperor’s fragile position was a secret so well kept that only a Cormwite, a few close family members and a team of the most skilled Anthorph doctors knew of it. It seems fairly clear now that in the last decade of Reth I’s, Cormwite was the effective ruler, and that any public appearances were either carefully staged with either a heavily sedated Emperor, or look-alikes.
Assessment
The legends and mythology surrounding Reth Tawmerik I make understanding the real man difficult. He was never as he seemed; aristocrat, patriot, democrat and authoritarian. What does come through is an image of a man intent upon self-aggrandization. If he was a hero, then he was a deeply-flawed one, and if he was a villain then he was one who did seem, on occasion, to be working towards the betterment of his fellow man.
Whatever he may have been as a man, one thing is clear, he founded an empire that would last centuries, and weathered many storms before faltering at the hands of people far less capable than he was.
References
- Alistair Cormwite
- Anthorphs
- Bafiktuy Intelligence Directive
- Cel-Tainu Astrophysical Research Corporation
- Fasantauri System
- First Decline
- Frontier Rebellion
- Messen Fremezulejo
- Terran Republic


about athena camps
Our vision is to build communities of empowered girls who inspire and lift each other up in order to have a positive and lasting impact on our world.
Athena Camps’ mission is to inspire courage and build confidence in girls through a unique combination of athletic, creative, emotional, and social activities in a nurturing community.
We help girls aged five through thirteen develop their whole selves. Athena Campers participate in sports and creative exercises to learn how to give and receive positive affirmation, make new friends, and acquire the strength and grace to be their best in every situation.
Our Story
When her daughter started kindergarten, Aby Ryan saw a need for a special environment where girls could navigate social pressures, build character, and support each other. She realized the time had come to realize her dream of creating a unique girls’ sports camp. So on June 11, 2011, she launched the first Athena Camp with 27 girls. Athena Camps’ attendance quadrupled in our first full year. Since then, we have grown more than thirty percent each year and hope to serve 10,000 girls by 2020.
About the founder
Aby Ryan founded Athena Camps after a successful career as a professional tennis player, collegiate coach, and non-profit executive. With over 25 years of experience coaching and developing programs for local organizations, Aby specializes in youth program development, curriculum design, and innovative strategies to grow strong, expressive, confident young women.
Learn MoreSafety & Security
Athena Camps is in the process of becoming accredited by the American Camp Association (ACA). We expect to pass with flying colors this summer.
Each year we create a team of inspirational women – teachers, coaches, student-athletes, and moms – each with her own inspirational life experiences and stories to share. All coaches undergo a background check and thorough training in positive coaching, group facilitation, and youth development principles.
Our small camp sizes (maximum of 32) and great coach to camper ratios (1:8) assure that each girl is well cared for and always safe. Photo identification is required for authorized pick up and every girl is signed in and out each day.


For more info and examples please refer to Bootstraps official documentation.
With supporting text below as a natural lead-in to additional content.


Chinese Zodiac Calculator
First name:
Last name:
Select your date of birth :
Day :
January
February
March
April
May
June
July
August
September
October
November
December
Reveal !


FOUR DAYS IN SEPTEMBER
A Film Review by James Berardinelli
RATING: *** OUT OF ****
Brazil, 1997 U.S. Release Date: beginning 2/98 (limited) Running Length: 1:46 MPAA Classification: R (Violence, profanity, sexual situations) Theatrical Aspect Ratio: 1.85:1
Cast: Alan Arkin, Pedro Cardoso, Fernanda Torres, Luiz Fernand Guimares, Claudia Abreu, Nelson Dantas, Matheus Nachtergaele Director: Bruno Barreto Producers: Lucy Barreto Screenplay: Leopoldo Serran based on the novel O QUE ISSO, COMPANHEIRO by Fernando Gabeira Cinematography: Felix Monti Music: Stewart Copeland U.S. Distributor: Miramax Films In Portuguese and English with subtitles
What happens when the idealism of revolutionaries turns rotten? Or when the methods of so-called "freedom fighters" become difficult to distinguish from those of the men they're struggling to topple? These are just two of the issues addressed by Bruno Barreto's behind-the- scenes look into the politics of revolution and terrorism, and how the best intentions often lead to ugly results.
The setting is Rio de Janeiro in July 1969. The military junta, which has ruled Brazil since staging a coup five years ago, has suspended civil rights and the freedom of the press. The iron fist is closing, and the number of jailed political prisoners is on the rise. Universities have become a hotbed of discord. The United States, deeply embroiled in Vietnam, has little time to spend on events in South America, although an ambassador, Charles Burke Elbrick (Alan Arkin), remains in Rio to keep the lines of communication open.
While there are many revolutionary groups, most are confused and fragmented. The power lies with the military, not with the dissidents. One small band, The October Revolutionary Movement, emboldened by their successful "liberation of funds" from a bank, are preparing a major sally in the underground war -- they intend to kidnap the American Ambassador and hold him hostage. Their demands: the government must free 15 political prisoners within 48 hours of the abduction, or they will kill Elbrick. The deadline will not be pushed back. Two months later, The October Revolutionary Movement is ready to put their plan into action, and, mostly as a result of good luck, they capture the ambassador on September 4.
The men and women comprising The October Revolutionary Movement are a diverse group. There's Fernando (Pedro Cardoso), a passionate intellectual whose skill is with pens, not guns. Maria (Fernanda Torres) is the fiery brunette who founded the organization and is trying to fashion it into something more disciplined than a "bunch of middle- aged kids out for an adventure." Renee (Claudia Abreu) is a compassionate young woman whose gentle manner makes her an unlikely kidnapper. Toledo (Nelson Dantas) is an aging freedom fighter brought in to lend his experience to the venture. And Jonas (Matheus Nachtergaele) is Toledo's no-nonsense companion, who takes over the military side of the operation.
FOUR DAYS IN SEPTEMBER works to some degree as a thriller, but it's more effective as a drama. The film makes a number of telling points about the consequences of adopting violence as a legitimate means of revolution. John Sayles' MEN WITH GUNS investigates the same issue from a different perspective. When both sides of a struggle employ similar tactics, is the difference in ideology enough to differentiate them? The members of October Revolutionary Movement start out with the intention of doing their part to restore freedom to Rio, but, shortly after holding a loaded gun to Elbrick's head, Fernando pronounces that the entire endeavor "was a dream that failed." Those words, and the epilogue that follows, underscore Barreto's point that revolution (or terrorism, depending on your viewpoint) is more likely to generate disillusionment than heroism.
During the course of his two days of captivity, Elbrick forms a tentative bond with two of his captors. Renee tends to his head wound and offers soothing words of comfort. Fernando talks politics and philosophy with him. As in both THE CRYING GAME and OCTOBER, we see how the relationship between a hostage and his abductor can unbalance the situation. Suddenly, each side becomes humanized to the other. It's no longer a matter of slogans, but of flesh-and-blood human beings. Maria and Jonas remain aloof in case they have to act against Elbrick.
FOUR DAYS IN SEPTEMBER also goes to great lengths to demonstrate that the members of The October Revolutionary Movement are amateurs. They make enough mistakes for the police to be able to track them down. But the flawed nature of their plans makes this film all the more believable (it is based on a true story). Another aspect of the movie that enhances its credibility is the way Barreto works to detail the interpersonal relationships among members of the movement, such as the animosity between Fernando and Jonas and the sexual tension between Maria and Fernando.
The film's best performance is given by American actor Alan Arkin, who successfully essays a cultured man attempting to retain his dignity in a nearly-impossible situation. One standout sequence has Arkin's Elbrick characterizing his masked captors by describing their hands. As Fernando, Pedro Cardoso does a solid job of presenting the disintegration of a idealist. The other noteworthy performer, Fernanda Torres, plays Maria with fire and emotion.
Under a different director, FOUR DAYS IN SEPTEMBER could have turned into a routine thriller. Indeed, at times, the movie treads through familiar territory – this isn't exactly a unique perspective – but the intelligence and passion in Barreto's approach lift the film to a higher level. This motion picture is not groundbreaking, but it is fascinating and thought-provoking, and offers a little suspense to enliven the drama.
Copyright 1998 James Berardinelli
- James Berardinelli e-mail<EMAIL_ADDRESS>Now with more than 1300 reviews... The ReelViews web site: http://movie-reviews.colossus.net/
"No art passes our conscience in the way film does, and goes directly to our feelings, deep down into the dark rooms of our souls"
- Ingmar Bergman
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


We are presented with a pie chart with eight foods, together with a nutrition label, representing a 2000 Calorie diet.
The first step is to complete the nutrition label by filling in the needed percent daily values as defined by the FDA. For posterity, the recommended daily values used in this puzzle are:
The percentage for protein is never used in the puzzle because, for whatever reason, the percentage for protein is often omitted.
Computing the percentages gives the following label, which has values 8%, 5%, 18%, 18%, 9%, 14%, 7%. Converting to letters, with A=1, B=2, ..., we get HERRING which corresponds to the first of the foods. The label is given below (click to enlarge).
What about the 213.88 number? It turns out this number is redundant, because, given the nutrition facts of a food, it is possible to compute the number of Calories using the 4-4-9 rule: 9 Calories per gram of fat, 4 Calories per carbohydrate and 4 Calories per protein. For example, for this label, we have 213.88 = 9(6.24) + 4(24.75) + 4(14.68).
This gives us a path forwards. The remaining foods in the puzzle are all seven letters (and sorted alphabetically), and therefore for each food we can recover the entire label by plugging in the letters for the percentages — except for the amount of protein. But because the total Calorie counts are given, we can calculate the value (number of grams) for protein too. It turns out that the protein amounts are all integers, so we can extract letters from them.
Working through this procedure gives the following table:
| Food | From fat and carbs | Total Calories | From protein | Protein (g) | |
|---|---|---|---|---|---|
| KETCHUP | 165.22 | 193.22 | 28 | 7 | G |
| LASAGNA | 161.24 | 221.24 | 60 | 15 | O |
| NOODLES | 230.28 | 290.28 | 60 | 15 | O |
| PICKLES | 224.32 | 260.32 | 16 | 4 | D |
| PUMPKIN | 233.32 | 257.32 | 24 | 6 | F |
| RAVIOLI | 291.36 | 295.36 | 4 | 1 | A |
| SEAWEED | 188.38 | 268.38 | 80 | 20 | T |
This gives us the final answer, GOOD FAT.


Preparation
Since we’re going to install The Things Stack using Docker and Docker Compose, follow the guides to install Docker and to install Docker Compose.
Most releases contain an example docker-compose.yml
file. You can also find this file in the Github repository of The Things Stack. In this guide we’ll use that example docker-compose.yml
for our deployment.
Command-line Interface (optional)
Although the web interface of The Things Stack (the Console) currently has support for all basic features of The Things Stack, for some actions, you need to use the command-line interface (CLI). The CLI allows you to manage all features of The Things Stack.
You can use the CLI on your local machine and on the server.
Note: if you need help with any CLI command, use the
--help
flag to get a list of subcommands, flags and their description and aliases.
Package managers (recommended)
macOS
$ brew install TheThingsNetwork/lorawan-stack/ttn-lw-stack
Linux
$ sudo snap install ttn-lw-stack
$ sudo snap alias ttn-lw-stack.ttn-lw-cli ttn-lw-cli
Binaries
You can download pre-built binaries for your operating system and processor architecture.


Rabbit
UW Student Seminars (WUMSS) maintains a
fork of tacit, originally
created by Yegor Bugayenko. To avoid confusion with the original, our fork is
branded as rabbit
.
Rabbit is a CSS framework to make web services to look attractive without graphic design. This is how your website will look if you add just this code to your HTML:
<!DOCTYPE html>   <link rel="stylesheet" href="https://wumss.github.io/rabbit/rabbit.min.css"/>
Don’t use CSS classes to make your HTML code look nice. (With
one exception: the hamburger menu requires a few classes and IDs, see below!)
Just make sure it is HTML5 compliant
and you’ll be fine. Again, no classes, just standard HTML elements,
like

and <input>
.
Check the source code of this page.
Hamburger Menu
Structure your navigation like this to take advantage of Rabbit’s responsive hamburger menu:
  <input id="nav-trigger" class="nav-trigger" type="checkbox" checked="checked">

Home

Other Link

Forms
Here is a simple form:
Tables
A simple table would look like this:
| Make | Price | Year |
|---|---|---|
| BMW X6 | $75,000 | 2013 |
| Mercedes-Benz E350 | $52,700 | 2014 |
Headings
Just use standard

...

tags:
This is

Use a heading of the highest level once per page.
This is

Use

for sections of the page.
This is

Use

for sub-sections.
This is

Avoid this type of heading.
This is

Avoid this type of heading.
This is

Avoid this type of heading.
Lists
Just use standard

,

and

tags:
- Orange
-
Apple
- First
-
Second
- Blue
- Yellow
- Green
- Red
- Third
- Apricot
- Banana
- A yellow fruit that is easy to peel.
- Which also grows on a tree.
- Cashew
- A tan nut without a peel.
- Cherry
- A red fruit that is hard to peel.

Images
Work in progress
The framework is still in development.


Hey, I’m Merlin — a nice to have wizard!
I know you’re from Romania but that doesn’t matter now. I just want to help you create the perfect color scheme. Let’s pick a color mood first...
You seems joyful and enthusiastic, huh? I’m generating a nice set of colors variations out of your selection..
Yes — burning orange seems best!
Now choose one of the patterns generation below:
-
Standard
Keep only one accent color and generate black and white variations. Perfect in most of the cases.
-
Reverse
Keep one accent color but use it as a background color and generate black and white variations.
-
Colorful
Keep only one accent color and generate black and white variations. Perfect in most of the cases.
Thanks! Now I’m going to do some magic — you can take a peak below to see how it’s doing:
Merlin: ~burning-orange ls -l
set the primary color randomly in spot Alpha, Beta or Gamma.. set to Alpha
use the standard pattern..
if primary color is lighter make other two very dark.. skip
if primary color is darker make Beta light and Gamma dark.. set
mix(Alpha,Beta) colors.. set
mix(Beta,Gamma) colors.. set
generate color palette.. done
Here we go! Looking at this, it makes me wonder — can anyone do it better?
Taking into consideration many color theory rules, combined with your personal input, I generated an unique color palette mapped to a set of HTML elements defined in the config file.
Meet Merlin! Your smartest style kit generator.
Styling Options are to make your decisions even harder. Merlin is taking the burden from you and using simple triggers, generates the perfect style kit for your website.
It’s based on procedural algorithms to generate harmonious color palletes and picking the right fonts for all your page elements.
Merlin is taking the burden from you and using simple triggers, generates the perfect style kit for your website. Styling Options are to make your decisions even harder. Merlin is taking the burden from you and using simple triggers generates the perfect style kit for your website.


Ocean [ae04], ocean, in Crystal Sea
Last updated Turn #147
Ocean [ae04], ocean, in Crystal Sea
------------------------------------------------------------------------
3: The Savvy Aardvark [ha5r], ship, 2 hulls, 1 rowing port, 6 sails,
3: 30% damaged, arrived from Dark Desert [ae03], owner:
3: Phantasm [n4b], Imperial Empire, duke, with two workers,
3: eight sailors
4: The Savvy Aardvark [ha5r], ship, 2 hulls, 1 rowing port, 6 sails,
4: 30% damaged, departed for Dark Desert [ad04].
30: The fog has cleared.
Routes leaving Ocean:
North, desert, to Dark Desert [ad04], Diamond Island, 2 days
East, to Ocean [ae05], 6 days
South, to Ocean [af04], 6 days
West, desert, to Dark Desert [ae03], Diamond Island, 2 days


Shakalaka Boom Boom is an A.I. experiment which creates a magical experience by converting anything drawn on a mobile canvas into a real object in augmented reality world. The name of the project was inspired by an Indian TV series by the same name.
Check out the video below to get brief idea about what the project is all about!
I built this project along with my friends Arun and Kiran while participating in a hackathon. We just came up with this idea when wondering that if it's even possible to get what you are dreaming of by just drawing!
Then I built a Machine Learning model using TensorFlow to classify the drawings. I made use of the transfer learning technique in machine learning to come up with a quick model. A small data set was created for this purpose. Initially the model was trained to classify the drawings in five categories namely candle, chair, cup, lamp and vase.
On the other side Kiran built APIs to serve the model using Flask. And Arun built a nice iOS app using ARKit to deliver the final experience. Special shout out to Darshan Sonde for providing some valuable inputs while building the machine learning model and Cryssac Franson Aldo for designing the iOS app UI.
All the work we have done is open sourced.


|
Filter functions and methods | |
Filter by: |
|
Filter: |
| C source code generated on: | 22-Jun-2020 09:41:32 |
| Coding target: | Static Library |
| Number of errors: | 0 |
| Number of warnings: | 0 |
| Number of notices: | 0 |
| Tell Us What You Think |
| We value your feedback. Please take a few minutes to answer this short questionnaire regarding the Code Generation Report. |
| >>Provide Feedback |


For this option, please navigate to the Amazon Search Page & Refine your Amazon Search. Then, press "Gather" Below. Gather Products of Current Search


Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element
In order to keep AngularJS small, AngularJS implements only a subset of the selectors in jqLite. This error occurs when a jqLite instance is invoked with a selector other than this subset.
In order to resolve this error, rewrite your code to only use tag name selectors and manually traverse the DOM using the APIs provided by jqLite.
Alternatively, you can include a full version of jQuery, which AngularJS will automatically use and that will make all selectors available.


Class MyTextHelper
Application helper
Add your application-wide methods in the class below, your helpers will inherit them.
- Helper
- AppHelper
- MyTextHelper
Package: app\View\Helper
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at View/Helper/MyTextHelper.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at View/Helper/MyTextHelper.php
public
|
|
public
|
|
public
|
|
private
|
public
array
|
$helpers | array('Time', 'Html') |


Welcome to my mini projects page! This page includes a collection of smaller projects I have built and tutorials I have followed.


Telangana High Court to hear municipal elections pleas on Nov 20
A single judge Bench had stayed urban local body elections in some municipalities in the State.
by Marri RamuJustice A. Rajasheker Reddy of Telangana High Court on Tuesday agreed to hear the cases relating to municipal elections tomorrow.
A division bench of the HC headed by Chief Justice Raghvendra Singh Chauhan earlier had delivered a verdict giving green signal to elections to Urban Local Bodies (ULBs), disposing of a couple of Public Interest Litigations (PIL) on the matter. However, the Bench then directed the State government to approach the single judge court, which had issued a stay order on elections in some municipalities.
On Tuesday, the Additional Advocate General J. Ramchander Rao mentioned about the elections before Justice Rajasheker Reddy, requesting him to vacate the stay order. After hearing Mr. Rao’s contentions, the judge consented to hear arguments on the stay order on elections in some municipalities on Wednesday.


s6
Software
skarnet.org
The s6-svstat program
s6-svstat prints a short, human-readable summary of the state of a process
monitored by s6-supervise.
Interface
s6-svstat [ -n ] servicedir
s6-svstat gives information about the process being monitored
at the servicedir service directory, then
exits 0. The information includes the following:
- whether the process is up or down, and if it's up, the number of
seconds that it has been up.
- the process' pid, if it is up, or its last exit code or terminating
signal, if it is down
- what its default state is, if it is different from its current state
- the number of seconds since it last changed states
- if the current state is transient and will change as soon as the
kernel's scheduler picks up s6-supervise
- whether the service is ready,
as notified by the daemon itself, and
if it is, the number of seconds that it has been.
A service reported as down and ready simply means that it is ready
to be brought up. A service is down and not ready when it is in the
cleanup phase, i.e. the ./finish script is still being executed.
Options
- -n : if the monitored process has been killed by a signal,
print the signal number. By default, a symbolic name for the signal will be
printed instead.
Exit codes
- 0: success
- 1: s6-supervise not running on servicedir
- 100: wrong usage
- 111: system call failed


Scrolling half by half
Made in pure #CSS and almost all is "old properties" method. And a bit imagination.
Yes, the flexbox is old now.
I'm Kseso,
“a #obCSServer”
Ramajero Argonauta, Enredique Amanuense de #CSS.
ξsCSS Blog
#impoCSSible inside EsCSS. A Spanish #CSS blog where the borders & limits of #CSS disappear.
#impoCSSible is nothing
You don´t need Javascript or #CSS processors either for almost 100% of what you want to do.
Idea from E.Bouças´s pen
Without jQuery or Javascript, nor fixed position (bye IOs problems)
Images from unsplash.it
Because it´s the best for demos. Thanks, guys!
show the PEN.
link the POST
Por una web con mucho estilo, para argonautas con buen gusto.


public class TagDereferencer
extends totalcross.lang.Object
NamedEntitiesDereferencer
provides an extremely fast way
to map the set of known HTML tags to unique integer values.
Note: the Elements described below comes from the HTML 4.01 DTD with IE extensions. Also, notice that tag names are case insensitive.
| Modifier and Type | Field and Description |
|---|---|
static int |
A
Code identifying a "A" tag
|
static int |
ABBR
Code identifying a "ABBR" tag
|
static int |
ACRONYM
Code identifying a "ACRONYM" tag
|
static int |
ADDRESS
Code identifying a "ADDRESS" tag
|
static int |
APPLET
Code identifying a "APPLET" tag
|
static int |
AREA
Code identifying a "AREA" tag
|
static int |
B
Code identifying a "B" tag
|
static int |
BASE
Code identifying a "BASE" tag
|
static int |
BASEFONT
Code identifying a "BASEFONT" tag
|
static int |
BDO
Code identifying a "BDO" tag
|
static int |
BIG
Code identifying a "BIG" tag
|
static int |
BLOCKQUOTE
Code identifying a "BLOCKQUOTE" tag
|
static int |
BODY
Code identifying a "BODY" tag
|
static int |
BR
Code identifying a "BR" tag
|
static int |
BUTTON
Code identifying a "BUTTON" tag
|
static int |
CAPTION
Code identifying a "CAPTION" tag
|
static int |
CENTER
Code identifying a "CENTER" tag
|
static int |
CITE
Code identifying a "CITE" tag
|
static int |
CODE
Code identifying a "CODE" tag
|
static int |
COL
Code identifying a "COL" tag
|
static int |
COLGROUP
Code identifying a "COLGROUP" tag
|
static int |
COMMENT
Code identifying a "COMMENT" tag
|
static int |
DD
Code identifying a "DD" tag
|
static int |
DEL
Code identifying a "DEL" tag
|
static int |
DFN
Code identifying a "DFN" tag
|
static int |
DIR
Code identifying a "DIR" tag
|
static int |
DIV
Code identifying a "DIV" tag
|
static int |
DL
Code identifying a "DL" tag
|
static int |
DT
Code identifying a "DT" tag
|
static int |
EM
Code identifying a "EM" tag
|
static int |
EMBED
Code identifying a "EMBED" tag
|
static int |
FIELDSET
Code identifying a "FIELDSET" tag
|
static int |
FONT
Code identifying a "FONT" tag
|
static int |
FORM
Code identifying a "FORM" tag
|
static int |
FRAME
Code identifying a "FRAME" tag
|
static int |
FRAMESET
Code identifying a "FRAMESET" tag
|
static int |
H1
Code identifying a "H1" tag
|
static int |
H2
Code identifying a "H2" tag
|
static int |
H3
Code identifying a "H3" tag
|
static int |
H4
Code identifying a "H4" tag
|
static int |
H5
Code identifying a "H5" tag
|
static int |
H6
Code identifying a "H6" tag
|
static int |
HEAD
Code identifying a "HEAD" tag
|
static int |
HR
Code identifying a "HR" tag
|
static int |
HTML
Code identifying a "HTML" tag
|
static int |
I
Code identifying a "I" tag
|
static int |
IFRAME
Code identifying a "IFRAME" tag
|
static int |
IMG
Code identifying a "IMG" tag
|
static int |
INPUT
Code identifying a "INPUT" tag
|
static int |
INS
Code identifying a "INS" tag
|
static int |
ISINDEX
Code identifying a "ISINDEX" tag
|
static int |
KBD
Code identifying a "KBD" tag
|
static int |
LABEL
Code identifying a "LABEL" tag
|
static int |
LEGEND
Code identifying a "LEGEND" tag
|
static int |
LI
Code identifying a "LI" tag
|
static int |
LINK
Code identifying a "LINK" tag
|
static int |
MAP
Code identifying a "MAP" tag
|
static int |
MENU
Code identifying a "MENU" tag
|
static int |
META
Code identifying a "META" tag
|
static int |
NOFRAMES
Code identifying a "NOFRAMES" tag
|
static int |
NOSCRIPT
Code identifying a "NOSCRIPT" tag
|
static int |
OBJECT
Code identifying a "OBJECT" tag
|
static int |
OL
Code identifying a "OL" tag
|
static int |
OPTGROUP
Code identifying a "OPTGROUP" tag
|
static int |
OPTION
Code identifying a "OPTION" tag
|
static int |
P
Code identifying a "P" tag
|
static int |
PARAM
Code identifying a "PARAM" tag
|
static int |
PLAINTEXT
Code identifying a "PLAINTEXT" tag
|
static int |
PRE
Code identifying a "PRE" tag
|
static int |
Q
Code identifying a "Q" tag
|
static int |
S
Code identifying a "S" tag
|
static int |
SAMP
Code identifying a "SAMP" tag
|
static int |
SCRIPT
Code identifying a "SCRIPT" tag
|
static int |
SELECT
Code identifying a "SELECT" tag
|
static int |
SMALL
Code identifying a "SMALL" tag
|
static int |
SPAN
Code identifying a "SPAN" tag
|
static int |
STRIKE
Code identifying a "STRIKE" tag
|
static int |
STRONG
Code identifying a "STRONG" tag
|
static int |
STYLE
Code identifying a "STYLE" tag
|
static int |
SUB
Code identifying a "SUB" tag
|
static int |
SUP
Code identifying a "SUP" tag
|
static int |
TABLE
Code identifying a "TABLE" tag
|
static int |
TBODY
Code identifying a "TBODY" tag
|
static int |
TD
Code identifying a "TD" tag
|
static int |
TEXTAREA
Code identifying a "TEXTAREA" tag
|
static int |
TFOOT
Code identifying a "TFOOT" tag
|
static int |
TH
Code identifying a "TH" tag
|
static int |
THEAD
Code identifying a "THEAD" tag
|
static int |
TITLE
Code identifying a "TITLE" tag
|
static int |
TR
Code identifying a "TR" tag
|
static int |
TT
Code identifying a "TT" tag
|
static int |
U
Code identifying a "U" tag
|
static int |
UL
Code identifying a "UL" tag
|
static int |
UNKNOWN
Code identifying an unknown, possibly invalid, tag
|
static int |
VAR
Code identifying a "VAR" tag
|
static int |
WBR
Code identifying a "WBR" tag
|
static int |
XMP
Code identifying a "XMP" tag
|
| Constructor and Description |
|---|
TagDereferencer() |
| Modifier and Type | Method and Description |
|---|---|
static int |
hashCode(byte[] b,
int offset,
int count)
Returns the hash code of the given string, automatically converting the chars to upper case.
|
static char |
toCode(byte[] b,
int offset,
int count)
Get the code associated to a key.
|
public static final int UNKNOWN
public static final int A
public static final int ABBR
public static final int ACRONYM
public static final int ADDRESS
public static final int APPLET
public static final int AREA
public static final int B
public static final int BASE
public static final int BASEFONT
public static final int BDO
public static final int BIG
public static final int BLOCKQUOTE
public static final int BODY
public static final int BR
public static final int BUTTON
public static final int CAPTION
public static final int CENTER
public static final int CITE
public static final int CODE
public static final int COL
public static final int COLGROUP
public static final int COMMENT
public static final int DD
public static final int DEL
public static final int DFN
public static final int DIR
public static final int DIV
public static final int DL
public static final int DT
public static final int EM
public static final int EMBED
public static final int FIELDSET
public static final int FONT
public static final int FORM
public static final int FRAME
public static final int FRAMESET
public static final int H1
public static final int H2
public static final int H3
public static final int H4
public static final int H5
public static final int H6
public static final int HEAD
public static final int HR
public static final int HTML
public static final int I
public static final int IFRAME
public static final int IMG
public static final int INPUT
public static final int INS
public static final int ISINDEX
public static final int KBD
public static final int LABEL
public static final int LEGEND
public static final int LI
public static final int LINK
public static final int MAP
public static final int MENU
public static final int META
public static final int NOFRAMES
public static final int NOSCRIPT
public static final int OBJECT
public static final int OL
public static final int OPTGROUP
public static final int OPTION
public static final int P
public static final int PARAM
public static final int PLAINTEXT
public static final int PRE
public static final int Q
public static final int S
public static final int SAMP
public static final int SCRIPT
public static final int SELECT
public static final int SMALL
public static final int SPAN
public static final int STRIKE
public static final int STRONG
public static final int STYLE
public static final int SUB
public static final int SUP
public static final int TABLE
public static final int TBODY
public static final int TD
public static final int TEXTAREA
public static final int TFOOT
public static final int TH
public static final int THEAD
public static final int TITLE
public static final int TR
public static final int TT
public static final int U
public static final int UL
public static final int VAR
public static final int WBR
public static final int XMP
public static int hashCode(byte[] b, int offset, int count)
b
- offset
- count
- public static char toCode(byte[] b, int offset, int count)
b
- byte array containing the keyoffset
- position of the first byte of the key in the arraycount
- number of bytes composing the key


Design by ZulNs @Yogyakarta, December 2015
Show geometry
Expand cells
Unpack-1
Unpack-2
Unpack-3
Unpack-4
Unpack-5
Unpack-6
Unpack-7
Unpack-8
Reset Position
Pause Animation
Show Image Info


books app
View All Books
Add A New Book
Login
My Books
ERROR
add a new book
submit
Update book
submit
Please Enter Your Passphrase
submit
Wrong password, please try again


--- title: "Linechart: HCDE revenue and enrollment" date: 2016-03-02 13:10:00 -0400 layout: post related: embed_source: "/charts/linechart-hcde-cafr/" description: Historical revenue and and student enrollment (average daily membership). ---


About
data witch to watch out for | ⚧ | she/they
Sophie is a Senior Data Scientist at Metis where she is a bootcamp instructor and leads curriculum development. Sophie works in deep learning and data science ethics. Through t4tech Sophie helps provide free trans-centered classes in programming and data science. Her writing has appeared in them. and Information Week.
Find me at:


A Little Performance Test
I was interested in seeing which of two implementations of takeAtMost would be fastest.
The first to consider is the one we use in our code in Utils.fs, reading
let takeAtMost n (sequence:seq<'T>) = [
let enumerator = sequence.GetEnumerator()
let mutable i = n
while i > 0 && enumerator.MoveNext() do
yield enumerator.Current
i <- i - 1
]
The second function uses a lambda function with a closure. I would expect this one to be slower, and do more allocations therefore.
let takeAtMost1 n (sequence:seq<'T>) =
let mutable i = n
Seq.takeWhile (fun _ ->
i <- i - 1
i >= 0
) sequence |> Seq.toList
We do a simple test whereby we evaluate the functions on a list of size n and arguments ranging from 1 to 2n.
[<MemoryDiagnoser; MarkdownExporter>]
type Bench() =
let mutable inputList = []
let evaluate f =
for n = 0 to inputList.Length * 2 do
f n inputList |> ignore
[<Params (100, 1000)>]
member val public ListSize = 0 with get, set
[<GlobalSetup>]
member this.GlobalSetupData() =
inputList <- [for i = 1 to this.ListSize do yield i]
[<Benchmark(Baseline=true)>]
member this.TakeAtMost() =
evaluate Utils.takeAtMost
[<Benchmark>]
member this.TakeAtMost1() =
evaluate takeAtMost1
Now lets run the tests.
type TestRunner(output:ITestOutputHelper) =
[<Fact>]
let ``Run benchmarks`` () =
BenchmarkRunner.Run<Bench>()
Method |
ListSize |
Mean |
Error |
Gen 0 |
Gen 1 |
Gen 2 |
Allocated |
|---|---|---|---|---|---|---|---|
TakeAtMost |
100 |
554.1 us |
6.613 us |
62.5000 |
- |
- |
- |
TakeAtMost1 |
100 |
579.4 us |
9.091 us |
63.4766 |
- |
- |
- |
TakeAtMost |
1000 |
52,394.9 us |
957.084 us |
5700.0000 |
- |
- |
- |
TakeAtMost1 |
1000 |
54,183.0 us |
650.906 us |
5700.0000 |
- |
- |
- |
As you can see, the difference is minimal, but our hypothesis seems to hold minimally. However, the
hypothesis that takeAtMost1
would cause more allocations on the heap seems to be false.
The tests were run on a computer with the following specs.
BenchmarkDotNet=v0.11.5, OS=Windows 10.0.18362 Intel Core i7-7820HQ CPU 2.90GHz (Kaby Lake), 1 CPU, 8 logical and 4 physical cores [Host] : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.8.3752.0 DefaultJob : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.8.3752.0
from GameLogic.Test
val seq : sequence:seq<'T> -> seq<'T>
--------------------
type seq<'T> = System.Collections.Generic.IEnumerable<'T>
from Microsoft.FSharp.Collections
type Bench =
new : unit -> Bench
member GlobalSetupData : unit -> unit
member TakeAtMost : unit -> unit
member TakeAtMost1 : unit -> unit
member ListSize : int
member ListSize : int with set
--------------------
new : unit -> Bench
type TestRunner =
new : output:obj -> TestRunner
--------------------
new : output:obj -> TestRunner


userthreads
OS/161 Reference Manual
Name
userthreads - simple user-level threads test
Synopsis
/testbin/userthreads
Description
userthreads does simple console I/O from two threads in the same
process.
Requirements
userthreads uses the following system calls:
It also assumes the existence of a function threadfork(), which takes
the address of a function to start a new thread at. If you choose to
implement user-level threads as part of assignment 5, part of the
assignment is to implement this function (or something like it) in a
manner of your choosing.


Hi! I'm Andrew Buntine
The Technical Director at Hardhat Digital
I also publish code at github.com/buntine
Let's talk a bit about Ruby
def sum(numbers)
total = 0
for n in numbers do
total += n
end
total
end
def sum(numbers)
numbers.reduce(0) do |total, n|
total + n
end
end
def sum(numbers)
numbers.reduce(0, :+)
end
numbers.reduce(:+)
def sum_multiples(numbers, multiple)
numbers
.reject { |n| n % multiple > 0}
.reduce(:+)
end
def sum_multiples(numbers, multiple)
total = 0
for n in numbers do
if n % multiple > 0
total += n
end
end
total
end
We've just seen a lot!
Higher-order functions can be very powerful
Weigh your options: Performance matters!
Refactoring is an important part of programming
Learn when to define abstractions
Always look for patterns of code smells
Know the standard libraries well
(But not too well)
class MonthlyData
def january
fetch_data(1)
end
def february
fetch_data(2)
end
def march
fetch_data(3)
end
# ...
end
class MonthlyData
Date::MONTHNAMES.each_with_index do |mn, i|
define_method(mn.downcase) do
fetch_data(i)
end
end
end
class Request
POSSIBLE_VERBS = ['get', 'put', 'post', 'delete']
def method_missing(s, *args, &b)
if POSSIBLE_VERBS.include? s
begin
r.send(s, *args, &b)
rescue RestClient::RequestFailed => e
print STDERR, e.response.body
raise e
end
else
super
end
end
end
Static, defined set of options that will not change
Not enough things to warrant the complexity
class Request
def get(*args, &b)
r.get(*args, &b)
end
def post(*args, &b)
r.post(*args, &b)
end
# ...
end
class MonthlyData
def for_month(m)
fetch_data(Date::MONTHNAMES.index(m))
end
end
Metaprogramming is the art of writing programs that write programs
It can be a very powerful technique
But it's a double-edged sword that should be handled carefully!
Often, a non-meta solution is much simpler to maintain in the long term
def excited(sentence, amount=1)
"#{sentence}#{"!" * amount}"
end
sentence = "Awesome"
puts excited(sentence, 2) # "Awesome!!"
class String
def excited(amount=1)
"#{self}#{"!" * amount}"
end
end
puts "Awesome".excited(2) # "Awesome!!"
3.days.ago
Open classes allow for very flexible libraries
But they often favour syntax over semantics and produces blurred lines
...But it's beautiful to look at
def first_friend
JSON
.parse(File.read("friends.json"))
.sort { |a, b| a["date"] <=> b["date"] }
.first
end
def last_friend
JSON
.parse(File.read("friends.json"))
.sort { |a, b| b["date"] <=> a["date"] }
.first
end
def find_friend(&b)
friends = JSON.parse(File.read("friends.json"))
sorted = yield friends
sorted.first
end
find_friend do |fs|
fs.sort { |a, b| a["date"] <=> b["date"] }
end
find_friend do |fs|
fs.sort { |a, b| b["date"] <=> a["date"] }
end


Dear Friend, I need your services in a confidential matter regarding money out of a family beneficiary deposit for investment in your country as such i decided to establish contact with you for assistance. This requires a private arrangement. You will receive these funds under legal claims; all legal documents will be carefully worked out to ensure a risky free transfer. I am willing to pay a generous management fee as well as appreciation as soon as this transaction is completed. I have all the details. All correspondences will be via email, for now. The funds in question are quite large. I will expect a straight answer from you. Yes or no. If yes, Kindly furnish me with your personal information which must includ your full information, 1) Your full name. 2) Phone, fax and mobile #. 3) Company name, position and address. 4) Profession, age and marital status. 5) A scanned copy of your int'l p/port/Drivers license for identification. Please Send me an e-mail as soon as you receive this letter for further discussion and more clarification. Thanks and God bless you. Dr. Chinedu Ego.


Github User Lookup
Github Username:
Repos:
10
30
50
80
100
Search
User Information:
Name:
Location:
Email:
Github URL:
Followers:
Following:
User Repositories:
There was an error:


Mario Paint Rich Presence
Song title:
Origin (optional):
Large Image:
small
Small Image:
small
Large Image Text:
Small Image Text:
Parts Complete:
Total Parts:


Dear Customer,
We're having some trouble with your current billing information. We'll try again, but in the meantime you may want to update your MASTERCARD in your payment details.
We're here to help if you need it. Visit the Help Centre for more infor or contact us.
Your Friends at Netflix


demcra uses Markdown for formatting, here are some of the basics:
| enter this: | to get this: |
|---|---|
| *italics* | italics |
| **bold** | bold |
| [demcra!](http://demcra.com/) | demcra! |
|
* item 1
* item 2 * item 3 |
|
| > quoted text |
|
|
Lines starting with four spaces are treated like code:
if 1 * 2 < 3: print "hello, world!" |
Lines starting with four spaces are treated like code: if 1 * 2 < 3: |
|
Most HTML and CSS styles work:
green |
Most HTML and CSS styles work:
green |
| <s>strikethrough</s> |
|
| superscript | superscript |


Agent's Repo is a brand new Cydia repository.
Add to CydiaThis tweak can rename your apps to whatever you'd like! This tweak has not been tested by me, but it should work on iOS 13.5!
More infoThis isn't a tweak, but if you are having trouble with any of the tweaks in this repo, I recommend looking for help on my github, or on r/jailbreak.
Jailbreak Page


create
save
{{article}}
Article Title:
{{remain}}/{{limit}}
Author Name:
{{element}}
Article:
{{title}}
Created by
{{author}}
and last edited at
{{date}}
{{category}}


Shanghai, is one of the world’s largest ports and is situated on a very busy river in the middle of China’s east coastline. It is a useful port for provisioning if exploring the Zhou Shan Islands in the Eastern China Sea.
Position 31° 15'3"N, 121° 29'59"E (berth for foreign yachts)
All yachts must use the services of a local agent for all formalities (Customs,Immigration, Quarantine and Harbour Master).
All yachts must use a pilot. The pilot station is located at buoy S7 in the South channel in Changjiangkou. Contact them on VHF channel 69.
There is now a berth available for foreign yachts located in the Huangpu river off the Yangzi river, at 31.15'3"N, 121.29'59"E. There is a maximum height of 49 metres. It is opposite the Oriental Tower and 10 min to the Bund area by taxi.
Fresh water, electricity, provisions and fuel are available.


source file: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py
file stats: 334 lines, 190 executed: 56.9% covered
1. import errno 2. import logging 3. import sys 4. import warnings 5. 6. from socket import error as SocketError, timeout as SocketTimeout 7. import socket 8. 9. try: # Python 3 10. from queue import LifoQueue, Empty, Full 11. except ImportError: 12. from Queue import LifoQueue, Empty, Full 13. import Queue as _ # Platform-specific: Windows 14. 15. 16. from .exceptions import ( 17. ClosedPoolError, 18. ProtocolError, 19. EmptyPoolError, 20. HostChangedError, 21. LocationValueError, 22. MaxRetryError, 23. ProxyError, 24. ReadTimeoutError, 25. SSLError, 26. TimeoutError, 27. InsecureRequestWarning, 28. ) 29. from .packages.ssl_match_hostname import CertificateError 30. from .packages import six 31. from .connection import ( 32. port_by_scheme, 33. DummyConnection, 34. HTTPConnection, HTTPSConnection, VerifiedHTTPSConnection, 35. HTTPException, BaseSSLError, ConnectionError 36. ) 37. from .request import RequestMethods 38. from .response import HTTPResponse 39. 40. from .util.connection import is_connection_dropped 41. from .util.retry import Retry 42. from .util.timeout import Timeout 43. from .util.url import get_host 44. 45. 46. xrange = six.moves.xrange 47. 48. log = logging.getLogger(__name__) 49. 50. _Default = object() 51. 52. 53. ## Pool objects 54. class ConnectionPool(object): 55. """ 56. Base class for all connection pools, such as 57. :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`. 58. """ 59. 60. scheme = None 61. QueueCls = LifoQueue 62. 63. def __init__(self, host, port=None): 64. if not host: 65. raise LocationValueError("No host specified.") 66. 67. # httplib doesn't like it when we include brackets in ipv6 addresses 68. self.host = host.strip('[]') 69. self.port = port 70. 71. def __str__(self): 72. return '%s(host=%r, port=%r)' % (type(self).__name__, 73. self.host, self.port) 74. 75. def __enter__(self): 76. return self 77. 78. def __exit__(self, exc_type, exc_val, exc_tb): 79. self.close() 80. # Return False to re-raise any potential exceptions 81. return False 82. 83. def close(): 84. """ 85. Close all pooled connections and disable the pool. 86. """ 87. pass 88. 89. 90. # This is taken from http://hg.python.org/cpython/file/7aaba721ebc0/Lib/socket.py#l252 91. _blocking_errnos = set([errno.EAGAIN, errno.EWOULDBLOCK]) 92. 93. 94. class HTTPConnectionPool(ConnectionPool, RequestMethods): 95. """ 96. Thread-safe connection pool for one host. 97. 98. :param host: 99. Host used for this HTTP Connection (e.g. "localhost"), passed into 100. :class:`httplib.HTTPConnection`. 101. 102. :param port: 103. Port used for this HTTP Connection (None is equivalent to 80), passed 104. into :class:`httplib.HTTPConnection`. 105. 106. :param strict: 107. Causes BadStatusLine to be raised if the status line can't be parsed 108. as a valid HTTP/1.0 or 1.1 status line, passed into 109. :class:`httplib.HTTPConnection`. 110. 111. .. note:: 112. Only works in Python 2. This parameter is ignored in Python 3. 113. 114. :param timeout: 115. Socket timeout in seconds for each individual connection. This can 116. be a float or integer, which sets the timeout for the HTTP request, 117. or an instance of :class:`urllib3.util.Timeout` which gives you more 118. fine-grained control over request timeouts. After the constructor has 119. been parsed, this is always a `urllib3.util.Timeout` object. 120. 121. :param maxsize: 122. Number of connections to save that can be reused. More than 1 is useful 123. in multithreaded situations. If ``block`` is set to false, more 124. connections will be created but they will not be saved once they've 125. been used. 126. 127. :param block: 128. If set to True, no more than ``maxsize`` connections will be used at 129. a time. When no free connections are available, the call will block 130. until a connection has been released. This is a useful side effect for 131. particular multithreaded situations where one does not want to use more 132. than maxsize connections per host to prevent flooding. 133. 134. :param headers: 135. Headers to include with all requests, unless other headers are given 136. explicitly. 137. 138. :param retries: 139. Retry configuration to use by default with requests in this pool. 140. 141. :param _proxy: 142. Parsed proxy URL, should not be used directly, instead, see 143. :class:`urllib3.connectionpool.ProxyManager`" 144. 145. :param _proxy_headers: 146. A dictionary with proxy headers, should not be used directly, 147. instead, see :class:`urllib3.connectionpool.ProxyManager`" 148. 149. :param \**conn_kw: 150. Additional parameters are used to create fresh :class:`urllib3.connection.HTTPConnection`, 151. :class:`urllib3.connection.HTTPSConnection` instances. 152. """ 153. 154. scheme = 'http' 155. ConnectionCls = HTTPConnection 156. 157. def __init__(self, host, port=None, strict=False, 158. timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1, block=False, 159. headers=None, retries=None, 160. _proxy=None, _proxy_headers=None, 161. **conn_kw): 162. ConnectionPool.__init__(self, host, port) 163. RequestMethods.__init__(self, headers) 164. 165. self.strict = strict 166. 167. if not isinstance(timeout, Timeout): 168. timeout = Timeout.from_float(timeout) 169. 170. if retries is None: 171. retries = Retry.DEFAULT 172. 173. self.timeout = timeout 174. self.retries = retries 175. 176. self.pool = self.QueueCls(maxsize) 177. self.block = block 178. 179. self.proxy = _proxy 180. self.proxy_headers = _proxy_headers or {} 181. 182. # Fill the queue up so that doing get() on it will block properly 183. for _ in xrange(maxsize): 184. self.pool.put(None) 185. 186. # These are mostly for testing and debugging purposes. 187. self.num_connections = 0 188. self.num_requests = 0 189. self.conn_kw = conn_kw 190. 191. if self.proxy: 192. # Enable Nagle's algorithm for proxies, to avoid packet fragmentation. 193. # We cannot know if the user has added default socket options, so we cannot replace the 194. # list. 195. self.conn_kw.setdefault('socket_options', []) 196. 197. def _new_conn(self): 198. """ 199. Return a fresh :class:`HTTPConnection`. 200. """ 201. self.num_connections += 1 202. log.info("Starting new HTTP connection (%d): %s" % 203. (self.num_connections, self.host)) 204. 205. conn = self.ConnectionCls(host=self.host, port=self.port, 206. timeout=self.timeout.connect_timeout, 207. strict=self.strict, **self.conn_kw) 208. return conn 209. 210. def _get_conn(self, timeout=None): 211. """ 212. Get a connection. Will return a pooled connection if one is available. 213. 214. If no connections are available and :prop:`.block` is ``False``, then a 215. fresh connection is returned. 216. 217. :param timeout: 218. Seconds to wait before giving up and raising 219. :class:`urllib3.exceptions.EmptyPoolError` if the pool is empty and 220. :prop:`.block` is ``True``. 221. """ 222. conn = None 223. try: 224. conn = self.pool.get(block=self.block, timeout=timeout) 225. 226. except AttributeError: # self.pool is None 227. raise ClosedPoolError(self, "Pool is closed.") 228. 229. except Empty: 230. if self.block: 231. raise EmptyPoolError(self, 232. "Pool reached maximum size and no more " 233. "connections are allowed.") 234. pass # Oh well, we'll create a new connection then 235. 236. # If this is a persistent connection, check if it got disconnected 237. if conn and is_connection_dropped(conn): 238. log.info("Resetting dropped connection: %s" % self.host) 239. conn.close() 240. if getattr(conn, 'auto_open', 1) == 0: 241. # This is a proxied connection that has been mutated by 242. # httplib._tunnel() and cannot be reused (since it would 243. # attempt to bypass the proxy) 244. conn = None 245. 246. return conn or self._new_conn() 247. 248. def _put_conn(self, conn): 249. """ 250. Put a connection back into the pool. 251. 252. :param conn: 253. Connection object for the current host and port as returned by 254. :meth:`._new_conn` or :meth:`._get_conn`. 255. 256. If the pool is already full, the connection is closed and discarded 257. because we exceeded maxsize. If connections are discarded frequently, 258. then maxsize should be increased. 259. 260. If the pool is closed, then the connection will be closed and discarded. 261. """ 262. try: 263. self.pool.put(conn, block=False) 264. return # Everything is dandy, done. 265. except AttributeError: 266. # self.pool is None. 267. pass 268. except Full: 269. # This should never happen if self.block == True 270. log.warning( 271. "Connection pool is full, discarding connection: %s" % 272. self.host) 273. 274. # Connection never got put back into the pool, close it. 275. if conn: 276. conn.close() 277. 278. def _validate_conn(self, conn): 279. """ 280. Called right before a request is made, after the socket is created. 281. """ 282. pass 283. 284. def _prepare_proxy(self, conn): 285. # Nothing to do for HTTP connections. 286. pass 287. 288. def _get_timeout(self, timeout): 289. """ Helper that always returns a :class:`urllib3.util.Timeout` """ 290. if timeout is _Default: 291. return self.timeout.clone() 292. 293. if isinstance(timeout, Timeout): 294. return timeout.clone() 295. else: 296. # User passed us an int/float. This is for backwards compatibility, 297. # can be removed later 298. return Timeout.from_float(timeout) 299. 300. def _raise_timeout(self, err, url, timeout_value): 301. """Is the error actually a timeout? Will raise a ReadTimeout or pass""" 302. 303. if isinstance(err, SocketTimeout): 304. raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value) 305. 306. # See the above comment about EAGAIN in Python 3. In Python 2 we have 307. # to specifically catch it and throw the timeout error 308. if hasattr(err, 'errno') and err.errno in _blocking_errnos: 309. raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value) 310. 311. # Catch possible read timeouts thrown as SSL errors. If not the 312. # case, rethrow the original. We need to do this because of: 313. # http://bugs.python.org/issue10272 314. if 'timed out' in str(err) or 'did not complete (read)' in str(err): # Python 2.6 315. raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value) 316. 317. def _make_request(self, conn, method, url, timeout=_Default, 318. **httplib_request_kw): 319. """ 320. Perform a request on a given urllib connection object taken from our 321. pool. 322. 323. :param conn: 324. a connection from one of our connection pools 325. 326. :param timeout: 327. Socket timeout in seconds for the request. This can be a 328. float or integer, which will set the same timeout value for 329. the socket connect and the socket read, or an instance of 330. :class:`urllib3.util.Timeout`, which gives you more fine-grained 331. control over your timeouts. 332. """ 333. self.num_requests += 1 334. 335. timeout_obj = self._get_timeout(timeout) 336. timeout_obj.start_connect() 337. conn.timeout = timeout_obj.connect_timeout 338. 339. # Trigger any extra validation we need to do. 340. try: 341. self._validate_conn(conn) 342. except (SocketTimeout, BaseSSLError) as e: 343. # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout. 344. self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) 345. raise 346. 347. # conn.request() calls httplib.*.request, not the method in 348. # urllib3.request. It also calls makefile (recv) on the socket. 349. conn.request(method, url, **httplib_request_kw) 350. 351. # Reset the timeout for the recv() on the socket 352. read_timeout = timeout_obj.read_timeout 353. 354. # App Engine doesn't have a sock attr 355. if getattr(conn, 'sock', None): 356. # In Python 3 socket.py will catch EAGAIN and return None when you 357. # try and read into the file pointer created by http.client, which 358. # instead raises a BadStatusLine exception. Instead of catching 359. # the exception and assuming all BadStatusLine exceptions are read 360. # timeouts, check for a zero timeout before making the request. 361. if read_timeout == 0: 362. raise ReadTimeoutError( 363. self, url, "Read timed out. (read timeout=%s)" % read_timeout) 364. if read_timeout is Timeout.DEFAULT_TIMEOUT: 365. conn.sock.settimeout(socket.getdefaulttimeout()) 366. else: # None or a value 367. conn.sock.settimeout(read_timeout) 368. 369. # Receive the response from the server 370. try: 371. try: # Python 2.7, use buffering of HTTP responses 372. httplib_response = conn.getresponse(buffering=True) 373. except TypeError: # Python 2.6 and older 374. httplib_response = conn.getresponse() 375. except (SocketTimeout, BaseSSLError, SocketError) as e: 376. self._raise_timeout(err=e, url=url, timeout_value=read_timeout) 377. raise 378. 379. # AppEngine doesn't have a version attr. 380. http_version = getattr(conn, '_http_vsn_str', 'HTTP/?') 381. log.debug("\"%s %s %s\" %s %s" % (method, url, http_version, 382. httplib_response.status, 383. httplib_response.length)) 384. return httplib_response 385. 386. def close(self): 387. """ 388. Close all pooled connections and disable the pool. 389. """ 390. # Disable access to the pool 391. old_pool, self.pool = self.pool, None 392. 393. try: 394. while True: 395. conn = old_pool.get(block=False) 396. if conn: 397. conn.close() 398. 399. except Empty: 400. pass # Done. 401. 402. def is_same_host(self, url): 403. """ 404. Check if the given ``url`` is a member of the same host as this 405. connection pool. 406. """ 407. if url.startswith('/'): 408. return True 409. 410. # TODO: Add optional support for socket.gethostbyname checking. 411. scheme, host, port = get_host(url) 412. 413. # Use explicit default port for comparison when none is given 414. if self.port and not port: 415. port = port_by_scheme.get(scheme) 416. elif not self.port and port == port_by_scheme.get(scheme): 417. port = None 418. 419. return (scheme, host, port) == (self.scheme, self.host, self.port) 420. 421. def urlopen(self, method, url, body=None, headers=None, retries=None, 422. redirect=True, assert_same_host=True, timeout=_Default, 423. pool_timeout=None, release_conn=None, **response_kw): 424. """ 425. Get a connection from the pool and perform an HTTP request. This is the 426. lowest level call for making a request, so you'll need to specify all 427. the raw details. 428. 429. .. note:: 430. 431. More commonly, it's appropriate to use a convenience method provided 432. by :class:`.RequestMethods`, such as :meth:`request`. 433. 434. .. note:: 435. 436. `release_conn` will only behave as expected if 437. `preload_content=False` because we want to make 438. `preload_content=False` the default behaviour someday soon without 439. breaking backwards compatibility. 440. 441. :param method: 442. HTTP request method (such as GET, POST, PUT, etc.) 443. 444. :param body: 445. Data to send in the request body (useful for creating 446. POST requests, see HTTPConnectionPool.post_url for 447. more convenience). 448. 449. :param headers: 450. Dictionary of custom headers to send, such as User-Agent, 451. If-None-Match, etc. If None, pool headers are used. If provided, 452. these headers completely replace any pool-specific headers. 453. 454. :param retries: 455. Configure the number of retries to allow before raising a 456. :class:`~urllib3.exceptions.MaxRetryError` exception. 457. 458. Pass ``None`` to retry until you receive a response. Pass a 459. :class:`~urllib3.util.retry.Retry` object for fine-grained control 460. over different types of retries. 461. Pass an integer number to retry connection errors that many times, 462. but no other types of errors. Pass zero to never retry. 463. 464. If ``False``, then retries are disabled and any exception is raised 465. immediately. Also, instead of raising a MaxRetryError on redirects, 466. the redirect response will be returned. 467. 468. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 469. 470. :param redirect: 471. If True, automatically handle redirects (status codes 301, 302, 472. 303, 307, 308). Each redirect counts as a retry. Disabling retries 473. will disable redirect, too. 474. 475. :param assert_same_host: 476. If ``True``, will make sure that the host of the pool requests is 477. consistent else will raise HostChangedError. When False, you can 478. use the pool on an HTTP proxy and request foreign hosts. 479. 480. :param timeout: 481. If specified, overrides the default timeout for this one 482. request. It may be a float (in seconds) or an instance of 483. :class:`urllib3.util.Timeout`. 484. 485. :param pool_timeout: 486. If set and the pool is set to block=True, then this method will 487. block for ``pool_timeout`` seconds and raise EmptyPoolError if no 488. connection is available within the time period. 489. 490. :param release_conn: 491. If False, then the urlopen call will not release the connection 492. back into the pool once a response is received (but will release if 493. you read the entire contents of the response such as when 494. `preload_content=True`). This is useful if you're not preloading 495. the response's content immediately. You will need to call 496. ``r.release_conn()`` on the response ``r`` to return the connection 497. back into the pool. If None, it takes the value of 498. ``response_kw.get('preload_content', True)``. 499. 500. :param \**response_kw: 501. Additional parameters are passed to 502. :meth:`urllib3.response.HTTPResponse.from_httplib` 503. """ 504. if headers is None: 505. headers = self.headers 506. 507. if not isinstance(retries, Retry): 508. retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 509. 510. if release_conn is None: 511. release_conn = response_kw.get('preload_content', True) 512. 513. # Check host 514. if assert_same_host and not self.is_same_host(url): 515. raise HostChangedError(self, url, retries) 516. 517. conn = None 518. 519. # Merge the proxy headers. Only do this in HTTP. We have to copy the 520. # headers dict so we can safely change it without those changes being 521. # reflected in anyone else's copy. 522. if self.scheme == 'http': 523. headers = headers.copy() 524. headers.update(self.proxy_headers) 525. 526. # Must keep the exception bound to a separate variable or else Python 3 527. # complains about UnboundLocalError. 528. err = None 529. 530. try: 531. # Request a connection from the queue. 532. timeout_obj = self._get_timeout(timeout) 533. conn = self._get_conn(timeout=pool_timeout) 534. 535. conn.timeout = timeout_obj.connect_timeout 536. 537. is_new_proxy_conn = self.proxy is not None and not getattr(conn, 'sock', None) 538. if is_new_proxy_conn: 539. self._prepare_proxy(conn) 540. 541. # Make the request on the httplib connection object. 542. httplib_response = self._make_request(conn, method, url, 543. timeout=timeout_obj, 544. body=body, headers=headers) 545. 546. # If we're going to release the connection in ``finally:``, then 547. # the request doesn't need to know about the connection. Otherwise 548. # it will also try to release it and we'll have a double-release 549. # mess. 550. response_conn = not release_conn and conn 551. 552. # Import httplib's response into our own wrapper object 553. response = HTTPResponse.from_httplib(httplib_response, 554. pool=self, 555. connection=response_conn, 556. **response_kw) 557. 558. # else: 559. # The connection will be put back into the pool when 560. # ``response.release_conn()`` is called (implicitly by 561. # ``response.read()``) 562. 563. except Empty: 564. # Timed out by queue. 565. raise EmptyPoolError(self, "No pool connections are available.") 566. 567. except (BaseSSLError, CertificateError) as e: 568. # Close the connection. If a connection is reused on which there 569. # was a Certificate error, the next request will certainly raise 570. # another Certificate error. 571. if conn: 572. conn.close() 573. conn = None 574. raise SSLError(e) 575. 576. except SSLError: 577. # Treat SSLError separately from BaseSSLError to preserve 578. # traceback. 579. if conn: 580. conn.close() 581. conn = None 582. raise 583. 584. except (TimeoutError, HTTPException, SocketError, ConnectionError) as e: 585. if conn: 586. # Discard the connection for these exceptions. It will be 587. # be replaced during the next _get_conn() call. 588. conn.close() 589. conn = None 590. 591. if isinstance(e, SocketError) and self.proxy: 592. e = ProxyError('Cannot connect to proxy.', e) 593. elif isinstance(e, (SocketError, HTTPException)): 594. e = ProtocolError('Connection aborted.', e) 595. 596. retries = retries.increment(method, url, error=e, _pool=self, 597. _stacktrace=sys.exc_info()[2]) 598. retries.sleep() 599. 600. # Keep track of the error for the retry warning. 601. err = e 602. 603. finally: 604. if release_conn: 605. # Put the connection back to be reused. If the connection is 606. # expired then it will be None, which will get replaced with a 607. # fresh connection during _get_conn. 608. self._put_conn(conn) 609. 610. if not conn: 611. # Try again 612. log.warning("Retrying (%r) after connection " 613. "broken by '%r': %s" % (retries, err, url)) 614. return self.urlopen(method, url, body, headers, retries, 615. redirect, assert_same_host, 616. timeout=timeout, pool_timeout=pool_timeout, 617. release_conn=release_conn, **response_kw) 618. 619. # Handle redirect? 620. redirect_location = redirect and response.get_redirect_location() 621. if redirect_location: 622. if response.status == 303: 623. method = 'GET' 624. 625. try: 626. retries = retries.increment(method, url, response=response, _pool=self) 627. except MaxRetryError: 628. if retries.raise_on_redirect: 629. raise 630. return response 631. 632. log.info("Redirecting %s -> %s" % (url, redirect_location)) 633. return self.urlopen(method, redirect_location, body, headers, 634. retries=retries, redirect=redirect, 635. assert_same_host=assert_same_host, 636. timeout=timeout, pool_timeout=pool_timeout, 637. release_conn=release_conn, **response_kw) 638. 639. # Check if we should retry the HTTP response. 640. if retries.is_forced_retry(method, status_code=response.status): 641. retries = retries.increment(method, url, response=response, _pool=self) 642. retries.sleep() 643. log.info("Forced retry: %s" % url) 644. return self.urlopen(method, url, body, headers, 645. retries=retries, redirect=redirect, 646. assert_same_host=assert_same_host, 647. timeout=timeout, pool_timeout=pool_timeout, 648. release_conn=release_conn, **response_kw) 649. 650. return response 651. 652. 653. class HTTPSConnectionPool(HTTPConnectionPool): 654. """ 655. Same as :class:`.HTTPConnectionPool`, but HTTPS. 656. 657. When Python is compiled with the :mod:`ssl` module, then 658. :class:`.VerifiedHTTPSConnection` is used, which *can* verify certificates, 659. instead of :class:`.HTTPSConnection`. 660. 661. :class:`.VerifiedHTTPSConnection` uses one of ``assert_fingerprint``, 662. ``assert_hostname`` and ``host`` in this order to verify connections. 663. If ``assert_hostname`` is False, no verification is done. 664. 665. The ``key_file``, ``cert_file``, ``cert_reqs``, ``ca_certs`` and 666. ``ssl_version`` are only used if :mod:`ssl` is available and are fed into 667. :meth:`urllib3.util.ssl_wrap_socket` to upgrade the connection socket 668. into an SSL socket. 669. """ 670. 671. scheme = 'https' 672. ConnectionCls = HTTPSConnection 673. 674. def __init__(self, host, port=None, 675. strict=False, timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1, 676. block=False, headers=None, retries=None, 677. _proxy=None, _proxy_headers=None, 678. key_file=None, cert_file=None, cert_reqs=None, 679. ca_certs=None, ssl_version=None, 680. assert_hostname=None, assert_fingerprint=None, 681. **conn_kw): 682. 683. HTTPConnectionPool.__init__(self, host, port, strict, timeout, maxsize, 684. block, headers, retries, _proxy, _proxy_headers, 685. **conn_kw) 686. self.key_file = key_file 687. self.cert_file = cert_file 688. self.cert_reqs = cert_reqs 689. self.ca_certs = ca_certs 690. self.ssl_version = ssl_version 691. self.assert_hostname = assert_hostname 692. self.assert_fingerprint = assert_fingerprint 693. 694. def _prepare_conn(self, conn): 695. """ 696. Prepare the ``connection`` for :meth:`urllib3.util.ssl_wrap_socket` 697. and establish the tunnel if proxy is used. 698. """ 699. 700. if isinstance(conn, VerifiedHTTPSConnection): 701. conn.set_cert(key_file=self.key_file, 702. cert_file=self.cert_file, 703. cert_reqs=self.cert_reqs, 704. ca_certs=self.ca_certs, 705. assert_hostname=self.assert_hostname, 706. assert_fingerprint=self.assert_fingerprint) 707. conn.ssl_version = self.ssl_version 708. 709. return conn 710. 711. def _prepare_proxy(self, conn): 712. """ 713. Establish tunnel connection early, because otherwise httplib 714. would improperly set Host: header to proxy's IP:port. 715. """ 716. # Python 2.7+ 717. try: 718. set_tunnel = conn.set_tunnel 719. except AttributeError: # Platform-specific: Python 2.6 720. set_tunnel = conn._set_tunnel 721. 722. if sys.version_info <= (2, 6, 4) and not self.proxy_headers: # Python 2.6.4 and older 723. set_tunnel(self.host, self.port) 724. else: 725. set_tunnel(self.host, self.port, self.proxy_headers) 726. 727. conn.connect() 728. 729. def _new_conn(self): 730. """ 731. Return a fresh :class:`httplib.HTTPSConnection`. 732. """ 733. self.num_connections += 1 734. log.info("Starting new HTTPS connection (%d): %s" 735. % (self.num_connections, self.host)) 736. 737. if not self.ConnectionCls or self.ConnectionCls is DummyConnection: 738. raise SSLError("Can't connect to HTTPS URL because the SSL " 739. "module is not available.") 740. 741. actual_host = self.host 742. actual_port = self.port 743. if self.proxy is not None: 744. actual_host = self.proxy.host 745. actual_port = self.proxy.port 746. 747. conn = self.ConnectionCls(host=actual_host, port=actual_port, 748. timeout=self.timeout.connect_timeout, 749. strict=self.strict, **self.conn_kw) 750. 751. return self._prepare_conn(conn) 752. 753. def _validate_conn(self, conn): 754. """ 755. Called right before a request is made, after the socket is created. 756. """ 757. super(HTTPSConnectionPool, self)._validate_conn(conn) 758. 759. # Force connect early to allow us to validate the connection. 760. if not getattr(conn, 'sock', None): # AppEngine might not have `.sock` 761. conn.connect() 762. 763. if not conn.is_verified: 764. warnings.warn(( 765. 'Unverified HTTPS request is being made. ' 766. 'Adding certificate verification is strongly advised. See: ' 767. 'https://urllib3.readthedocs.org/en/latest/security.html'), 768. InsecureRequestWarning) 769. 770. 771. def connection_from_url(url, **kw): 772. """ 773. Given a url, return an :class:`.ConnectionPool` instance of its host. 774. 775. This is a shortcut for not having to parse out the scheme, host, and port 776. of the url before creating an :class:`.ConnectionPool` instance. 777. 778. :param url: 779. Absolute URL string that must include the scheme. Port is optional. 780. 781. :param \**kw: 782. Passes additional parameters to the constructor of the appropriate 783. :class:`.ConnectionPool`. Useful for specifying things like 784. timeout, maxsize, headers, etc. 785. 786. Example:: 787. 788. >>> conn = connection_from_url('http://google.com/') 789. >>> r = conn.request('GET', '/') 790. """ 791. scheme, host, port = get_host(url) 792. if scheme == 'https': 793. return HTTPSConnectionPool(host, port=port, **kw) 794. else: 795. return HTTPConnectionPool(host, port=port, **kw)


--- layout: post title: Lament on the back of a Calculus Test date: '2010-11-20T18:06:00-05:00' tags: - poem - free verse - poetry - spilled ink tumblr_url: http://poetry.liabogoev.com/post/54946785302/lament-on-the-back-of-a-calculus-test ---
Sitting
Waiting
in vain hope
that knowledge
has seeped into my mind
and will now drip
through graphite
and magically appear
in formulas
on the paper.
Every few minutes,
chalk numbers are replaced,
by counter parts smaller and smaller
and vain hope dims
into non-existence.


|
Métodos de Busca no Pacman
|
Public Member Functions | |
| def | __getitem__ (self, idx) |
| def | incrementAll (self, keys, count) |
| def | argMax (self) |
| def | sortedKeys (self) |
| def | totalCount (self) |
| def | normalize (self) |
| def | divideAll (self, divisor) |
| def | copy (self) |
| def | __mul__ (self, y) |
| def | __radd__ (self, y) |
| def | __add__ (self, y) |
| def | __sub__ (self, y) |
A counter keeps track of counts for a set of keys. The counter class is an extension of the standard python dictionary type. It is specialized to have number values (integers or floats), and includes a handful of additional functions to ease the task of counting data. In particular, all keys are defaulted to have value 0. Using a dictionary: a = {} print a['test'] would give an error, while the Counter class analogue: >>> a = Counter() >>> print a['test'] 0 returns the default 0 value. Note that to reference a key that you know is contained in the counter, you can still use the dictionary syntax: >>> a = Counter() >>> a['test'] = 2 >>> print a['test'] 2 This is very useful for counting things without initializing their counts, see for example: >>> a['blah'] += 1 >>> print a['blah'] 1 The counter also includes additional functionality useful in implementing the classifiers for this assignment. Two counters can be added, subtracted or multiplied together. See below for details. They can also be normalized and their total count and arg max can be extracted.
| def util.Counter.__add__ | ( | self, | |
| y | |||
| ) |
Adding two counters gives a counter with the union of all keys and counts of the second added to counts of the first. >>> a = Counter() >>> b = Counter() >>> a['first'] = -2 >>> a['second'] = 4 >>> b['first'] = 3 >>> b['third'] = 1 >>> (a + b)['first'] 1
| def util.Counter.__mul__ | ( | self, | |
| y | |||
| ) |
Multiplying two counters gives the dot product of their vectors where each unique label is a vector element. >>> a = Counter() >>> b = Counter() >>> a['first'] = -2 >>> a['second'] = 4 >>> b['first'] = 3 >>> b['second'] = 5 >>> a['third'] = 1.5 >>> a['fourth'] = 2.5 >>> a * b 14
| def util.Counter.__radd__ | ( | self, | |
| y | |||
| ) |
Adding another counter to a counter increments the current counter by the values stored in the second counter. >>> a = Counter() >>> b = Counter() >>> a['first'] = -2 >>> a['second'] = 4 >>> b['first'] = 3 >>> b['third'] = 1 >>> a += b >>> a['first'] 1
| def util.Counter.__sub__ | ( | self, | |
| y | |||
| ) |
Subtracting a counter from another gives a counter with the union of all keys and counts of the second subtracted from counts of the first. >>> a = Counter() >>> b = Counter() >>> a['first'] = -2 >>> a['second'] = 4 >>> b['first'] = 3 >>> b['third'] = 1 >>> (a - b)['first'] -5
| def util.Counter.argMax | ( | self | ) |
Returns the key with the highest value.
| def util.Counter.copy | ( | self | ) |
Returns a copy of the counter
| def util.Counter.divideAll | ( | self, | |
| divisor | |||
| ) |
Divides all counts by divisor
| def util.Counter.incrementAll | ( | self, | |
| keys, | |||
| count | |||
| ) |
Increments all elements of keys by the same count. >>> a = Counter() >>> a.incrementAll(['one','two', 'three'], 1) >>> a['one'] 1 >>> a['two'] 1
| def util.Counter.normalize | ( | self | ) |
Edits the counter such that the total count of all keys sums to 1. The ratio of counts for all keys will remain the same. Note that normalizing an empty Counter will result in an error.
| def util.Counter.sortedKeys | ( | self | ) |
Returns a list of keys sorted by their values. Keys with the highest values will appear first. >>> a = Counter() >>> a['first'] = -2 >>> a['second'] = 4 >>> a['third'] = 1 >>> a.sortedKeys() ['second', 'third', 'first']
| def util.Counter.totalCount | ( | self | ) |
Returns the sum of counts for all keys.