Extending Bokeh¶
Bokeh comes with a rich variety of built-in types that can be used to make sophisticated interactive visualizations and data applications in the browser. However, there are capabilities and features that users may desire, which may not make it into the core library, either because they are too specialized, or for lack of resources. Fortunately, it is possible to extend Bokeh by creating custom user extensions.
Modify the behavior of existing Bokeh models
Add new models to connect third-party JavaScript libraries to Python
Create highly specialized models for domain specific use-cases.
Custom extensions can be made and used with standard releases, and do not require setting up a development environment or building anything from source. They provide the easiest way to get involved in Bokeh development. By lowering the bar for extending Bokeh, users are afforded the ability to “try out” new features and functionality (which might some day be candidates for adding to the core library) without having to wait on the core team.
Structure of Bokeh Models¶
Python Models¶
For the most part, Python Bokeh models are completely declarative classes.
Custom extensions are created by making a subclass Model
(or one of its subclasses), and including special class attributes to
declare the properties that are mirrored on the JavaScript side. All of the
available property types are documented in the bokeh.core.properties
section of the Reference Guide.
A small example that creates a Custom readout for a slider is presented below:
from bokeh.core.properties import String, Instance
from bokeh.models import HTMLBox, Slider
class Custom(HTMLBox):
text = String(default="Custom text")
slider = Instance(Slider)
Since we would like to create a custom extension that can participate in DOM
layout, we subclass from HTMLBox
. We also
added two properties: a String
to configure
a text message for the readout, and an Instance
that can hold a Slider
. The JavaScript
Slider
object that corresponds to the Python Slider
will be made
available to use.
JavaScript Models and Views¶
While the Python side is mostly declarative, without much or any real code, the JavaScript side requires code to implement the model. When appropriate, code for a corresponding view must also be provided.
Below is an annotated TypeScript implementation for Custom
and its
CustomView
. For built-in models, this code is included directly in the
final BokehJS scripts. We will see how to connect this code to custom
extensions in the next section.
Note
BokehJS was originally written in CoffeeScript, but was ported to TypeScript. Accordingly, the guidance here is presented in TypeScript. However, custom extensions can be written in CoffeeScript or pure JavaScript as well.
import {HTMLBox, HTMLBoxView} from "models/layouts/html_box"
import {div} from "core/dom"
import * as p from "core/properties"
export class CustomView extends HTMLBoxView {
connect_signals(): void {
super.connect_signals()
// Set BokehJS listener so that when the Bokeh slider has a change
// event, we can process the new data.
this.connect(this.model.slider.change, () => {
this.render()
this.invalidate_layout()
})
}
render(): void {
// BokehjS Views create <div> elements by default, accessible as
// ``this.el``. Many Bokeh views ignore this default <div>, and instead
// do things like draw to the HTML canvas. In this case though, we change
// the contents of the <div>, based on the current slider value.
super.render()
this.el.appendChild(div({
style: {
padding: '2px',
color: '#b88d8e',
backgroundColor: '#2a3153',
},
}, `${this.model.text}: ${this.model.slider.value}`))
}
}
export class Custom extends HTMLBox {
slider: {value: string}
// The ``__name__`` class attribute should generally match exactly the name
// of the corresponding Python class. Note that if using TypeScript, this
// will be automatically filled in during compilation, so except in some
// special cases, this shouldn't be generally included manually, to avoid
// typos, which would prohibit serialization/deserialization of this model.
static __name__ = "Surface3d"
static initClass(): void {
// If there is an associated view, this is typically boilerplate.
this.prototype.default_view = CustomView
// The this.define() block adds corresponding "properties" to the JS model.
// These should normally line up 1-1 with the Python model class. Most property
// types have counterparts, e.g. bokeh.core.properties.String will be
// ``p.String`` in the JS implementation. Any time the JS type system is not
// yet as complete, you can use ``p.Any`` as a "wildcard" property type.
this.define<Custom.Props>({
text: [ p.String ],
slider: [ p.Any ],
})
}
}
Custom.initClass()
Putting it Together¶
For built-in Bokeh models, the implementation in BokehJS is automatically
matched with the corresponding Python model by the build process. In order
connect JavaScript implementations to Python models, one additional step
is needed. The Python class should have have a class attribute called
__implementation__
whose value is the TypeScript (or JavaScript or
CoffeeScript) code that the defines the client-side model as well as any
optional views.
Assuming the TypeScript code above was saved in a file custom.ts
,
then the complete Python class might look like:
from bokeh.core.properties import String, Instance
from bokeh.models import HTMLBox, Slider
class Custom(HTMLBox):
__implementation__ = "custom.ts"
text = String(default="Custom text")
slider = Instance(Slider)
Then, if this class is defined in a Python module custom.py
then the custom
extension can now be used exactly like any built-in Bokeh model:
from bokeh.io import show, output_file
from bokeh.layouts import column
from bokeh.models import Slider
slider = Slider(start=0, end=10, step=0.1, value=0, title="value")
custom = Custom(text="Special Slider Display", slider=slider)
layout = column(slider, custom)
show(layout)
Which results in the output below. The JavaScript code for the implementation is automatically included in the rendered document. Scrub the slider to see the special header update as the slider moves:
Specifying Implementation Languages¶
If the value of __implementation__
is a single line that ends in one of
the know extensions .coffee
, .js
, or .ts
then the it is interpreted
as a filename. The corresponding file is opened and its contents are compiled
appropriately according to the file extension.
Otherwise, if the implementation is inline in the class, the language for the
source code may be explicitly provided by using the classes CoffeeScript
,
JavaScript
, or TypeScript
, e.g.
class Custom(Model):
__implementation__ = JavaScript(" <JS code here> ")
Otherwise, if a plain string is given, it is assumed to be CoffeeScript
.
Supplying External Resources¶
As part of implementing a custom model in Bokeh, there may be the need to
include third-party Javascript libraries or CSS resources. Bokeh supports
supplying external resources through the Python class attributes
__javascript__
and __css__
of custom models.
Including the URL paths to external resources will causes Bokeh to add the resources to the html document head, causing the Javascript library to be available in the global namespace and the custom CSS styling to be applied.
One example is including the JS and CSS files for KaTeX (a
Javascript-based typesetting library that supports LaTeX) in order to create
a LatexLabel
custom model.
class LatexLabel(Label):
"""A subclass of the Bokeh built-in `Label` that supports rendering
LaTeX using the KaTeX typesetting library.
"""
__javascript__ = "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.js"
__css__ = "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css"
__implementation__ = """
# do something here
"""
See the LaTeX example in the extensions gallery below to see the full implementation and resulting output.
Integration with Bokeh Server¶
No special work or modification is needed to integrate custom user extensions with the Bokeh server. As for standalone documents, the JavaScript implementation is automatically included in the rendered application. Additionally the standard synchronization of Bokeh model properties that happens for all built-in models happens transparently for custom user extensions as well.
Examples¶
Here we present some complete examples to serve as a reference. It is hoped that the information in this section is a useful point of departure for anyone creating a custom extensions. However, creating extensions is a somewhat advanced topic. In many cases, it will be required to study the source code of the base classes in bokehjs/src/lib/models.
For any questions that remain, please contact any of the sources in Learning More.Collaborating with the community will help make additions and improvements to this section for future users.
- Specialized Axis Ticking
Subclass built-in Bokeh models for axis ticking to customize their behaviour.
- A New Custom Tool
Make a completely new tool that can draw on a plot canvas.
- Wrapping A JavaScript Library
Connect Python to a third-party JavaScript library by wrapping it with a Bokeh custom extension.
- Creating Latex Labels
Include a third-party JavaScript library in order to render LaTeX.
- Adding A Custom Widget
Include a third-party JavaScript library in an extension widget.


skin reduced UVR-induced acid atopic < human oral Review green plantarum vitamin Lactobacillus dermatitis probiotics tea trial {border-style Experimental aureus oil studies topical Results exposure px;} #ffffff;} .). Probiotics cell daily increased use weeks DNA Primary Ref. Type UVA acid, antioxidant immune probiotic ultraviolet study vitro associated consumed nuclear reuteri treatment LGG Skin activity infection infections lysates mechanisms murine production ATCC GTC coenzyme factor intervention opportunistic rhamnosus barrier face review .), EGCG However, UVR allergic breve cells children combination controlled effect effective effects increases oxidative radiation tocotrienols trials α-lipoic .%, IgE-associated Nutr. ROS anti-inflammatory cancer carotenoids dose erythema erythemal forearm function grape keratinocytes nutraceuticals patients pro-inflammatory protective px; randomized reduce respectively responses salivarius seed tyrosinase {font-family -weeks ./j.-...x Anti-inflammatory Atopic Clin. Dermatol. Live MED Oral T-cell Therefore, action activation burns double-blind, font-size horny hygiene improved including infants layer literature lycopene microbiota months phototypes placebo placebo-controlled polyphenols prevent proanthocyanidins protect protein reactive response significantly stratum thickness used wound Dermatitis Fitzpatrick SCORAD Vitamins achieved antigen apoptosis comparison components damage decreased did different double; epidermal epigallocatechin--gallate ethylhexyl expression fatty gastrointestinal improvement increase induced infected inflammation intestinal light mixed need oxygen pathogenic photoprotection protection protects quercetin, randomized, scavenging silibinin single skin, species synbiotic tocopherols transcription versus vivo water years β-carotene, (UVR) -years-old, Acids Antioxidative Based Describes E-related MMP Photodamage: T-helper Tocotrienols Topical UVB Ultraviolet Vitamin acids additional age based beneficial border-color border-width caffeic changes children, clinical commensal consistent cytokine directly diseases extract factor-κβ, ferulic given heat hydration hypothesis immunologic incidence lack longum lysate mRNA melanoma microbiome orally palm photodamage placebo-controlled, polymorphic potential pregnancy primarily primary rutin silver silymarin, solid; strain suppression tomato twice {font-style {font-weight -year-old -years-old Anticancer Bifidobacterium Coenzyme Consistent EPA Flavonoids IgA Immunol. Int. L.E. Lee Microbiol. Nutraceuticals Orally Phenolic Proanthocyanidins Probiotic Radiation Res. Rhodes Scoring Staphylococcus Table UVB-induced VRI- adhesion aeruginosa affect altered antioxidant, autoimmune bacterial binding bioavailability body bold burn catechins cells, cfu co-loaded co-oxidants compared competitive complex comprised containing control corneum courier; culture delivery dermis dietary dimethyl em; equivalent evaluation exclude fermentum following greater kinase leucotomas leucotomos line loss lutein matrix mediator melanin melanogenesis mg, mg/kg), minimal normal occurs olive outcomes paste patients, phenolic-flavonoid-rich phenolics photolysis photoprotective preceding prevention probiotics, properties prostaglandin pt;} receptor reduction repair respectively). resveratrol resveratrol, risk showed shown signal significant spectrum spent systematic third-degree threshold tissue total type water-soluble wavelength


Submitting new term request to EFO
By GitHub issue
Our GitHub issue ticketing system provides a channel for EFO user to submit a request or a report with regards to EFO.
You will need to have a GitHub account and be logged in to submit new terms.
By Webulous template
Webulous exploits Google Sheet for batch term request. Users can submit new term request in a spreadsheet format. Once the user fills in the information of new terms on Webulous-embedded Google Sheet. Please create a GitHub issue with the information of the shared spreadsheet URL and the requester's contact. An EFO developer will review the submission and get in touch with the user.For users who work with a pre-populated Webulous template, it is highly recommended that they observe the validation field (a column of which the cells are marked with a drop-down arrow) and only fill in values that can be validated (i.e. can be selected from the drop-down list, or can be auto-filled). The validation fields that cannot be validated will be marked with a red triangle flag in the top-right corner of the field. If you cannot find the desirable value from the drop-down validated value list, please first create this term either by contacting the source ontology of the validation value or submitting a new term in a separate Webulous template (e.g. filling in a cell line template of which a disease associated to that cell line cannot be found needs a separate Webulous submission via a pre-populated disease template). Failure to conform with this recomendation will result in an axiomatisation that points to a non-classified null class in the output file.
Once you have loaded a template and populated it with some data, you can submit that data back to the Webulous server where you loaded the template. In the Webulous menu, under “Webulous server”, choose “Submit populated template”. A dialog will open showing the address where the data will be submitted, along with two input fields. The first is where you can submit a short message to accompany the submission. This message is optional, but it is advised that you enter something relevant so that the Webulous administrators can easily identify your submission in any future correspondence. The second option is for a URIGen API key, this is only relevant for templates that have an accompanying URIGen server running for new URI creation. The template administrators will advise you on if you need to supply a URIGen API key when you submit new data.
When you are ready, click the submit button and the data will be uploaded to the Webulous server. The app may ask you at this stage to authorise that you e-mail address can be shared with the Webulous server. The e-mail address you use to login to google will be used to send you notifications about your data submission. No other information is collected from your Google account.
Please see the Webulous documentation for more information on how to load a Webulous Template into your Google Sheet.


| About Dailyrotten |
|
Feedback
If you like this page, hate it, or would like to suggest changes,
<EMAIL_ADDRESS>is listening. This page
is experimental and somewhat different from what we usually offer, so please
do send your feedback.
Adding Stories
If you are a rotten newshound and you would like to suggest a story,
visit our submit page to
send us the URL. Stories that are accepted will have your name credited.
Posting Comments
In order to post comments to stories, you will have to
create an account.
Accounts will generally be validated within 24 hours, and of
course will be disabled if there is abuse.
Viewership
On the first full day this page went live, 100,000 people visited this Rotten
News page. Of course that was the day after the WTC attacks, so that number is
somewhat distorted. Right now this page gets between 50,000 and 75,000 people
every day.
Linking
We encourage everyone to link to this page; if you like it, others probably
will as well.
Other Rotten
Rotten
Gaping Maw
Celebrity Morgue
Mugshots
Rotten Store
Rate My Poo
Rate My Kitten
Rate My Finger
Penny Postcards
Phallic
Boners
Home
Make Dailyrotten your start page
|
|
|
November 19, 2002
Man's affair with goat a tragedy
Stuff NZ | Submitted by: da_badass_mofo
A man who lacked the skills to form relationships with people turned his
attentions towards a goat, for which he had developed "relationship type
feelings", Nelson District Court has heard. "Once disinhibited, animals
attracted you in a way that was quite inappropriate."
|
|
Read article...
|
|
Gay guy falls in love with PowerMac
Wired | Submitted by: Milk Bone
"Bryan, my cyberboyfriend, was in a lot of ways, my PowerMac G3, webcam
and telephone," Mark wrote on his website. "He literally lived inside of
this machine... that I myself could control like a light switch. The
perfect boyfriend." Mark diagnosed himself with a minor case of "objectum
sexuality," a fetishistic attraction to inanimate objects,
in this case, his Mac."
 The word
is considered archaic and racially offensive, educators say. "They have
stolen Nick's right to establish his own identity," said Dennis Hurshman,
53, an investigator and mediator of employee concerns at Westinghouse
Savannah River Co."
|
|
Read article...
|
|
Rape the Tard
Baltimore Sun | Submitted by: Dirty Sammy
"The woman, who has an IQ in the low 60s, told a jury she was forced to have
sex with three men in a row in a Northwest Baltimore apartment in October last
year.
|
|
Read article...
|
|
Canada spends $5M on shwag
medicalmarihuana.ca | Submitted by: Mark Godfrey
This has to be one of the funnier weed stories of late... $5 million
and years of work for schwag. They coulda spent $100k and one weekend
in Vancouver and saved the time and the trouble: "From the first harvest
it was very clear, my people did the tests here; that there were all
sorts of marijuana. Plants from different stocks with rates of THC,
the active ingredient in cannabis, that varied from plant to plant.
All of it had to be burned."
|
|
Read article...
|
|
To 1984 and beyond
Wire Services | Submitted by: Honkey Kong
"Applied Digital Solutions Inc. says its glass capsule the size of a
grain of rice, injected into forearms and other fleshy body parts, could
help authorities find missing persons and speed up medical diagnosis
treatment. The VeriChip, a scannable device worn under the skin and
encrypted with personal information like medical records and emergency
contacts, was unveiled last year in Florida."
|
|
Read article...
|
|
The barmy butler did it
Globe and Mail | Submitted by: Ann Onymous
"Burrell was a piece of furniture in the divorce proceedings. Diana
wanted him along with the stereo and some bits and bobs. Charles was a
bit ticked. Working solely for Diana, Burrell's job included sneaking
chaps into her home for a quickie or an overnight. But nobody talks
in these terms."
|
|
Read article...
|
|
Grievous bodily harm: lawnmower
Australian Broadcasting | Submitted by: phreacs
"A 59 year old man is expected to give evidence in the Northern Territory
Supreme Court this morning to refute charges of causing grievous bodily
harm with a lawnmower. Peter Raymond Mundy of the Darwin northern suburb of
Leanyer has pleaded not guilty to assaulting a former tenant after
striking him with the lawnmower."
|
|
Read article...
|
|
Britain considering implants for pedophiles
Guardian | Submitted by: Sweet P
"A letter from Hilary Benn, the Minister responsible for the supervision
of sex offenders in the community, reveals the Home Office's electronic
monitoring team is already developing technology to track paedophiles
constantly. The team is now investigating the 'implant tag' after it was
alerted to its capabilities by a campaign group for victims of paedophiles."
|
|
Read article...
|
|
NASA theft suspect leaps from 9,000ft
Houston Chronicle | Submitted by: meatload
"Filler was under suspicion in connection with the theft of a NASA owned
laptop computer containing possibly sensitive space program data. [He] went
aloft with instructor Benito Frank Munoz, 23, for a routine outing to get
time at the controls and renew flying skills... the startled instructor heard
a bump and glanced over to "see Filler's feet going out the door."
|
|
Read article...
|
|
Jock star of porn
Mainichi Daily News | Submitted by: LucrezaBorgia
"They were making these Homo videos when I was there 10 years ago. The
younger guys on the team have got to do whatever the older guys tell
them to, which often means being forced to appear in the movies.  Once
they've made one, that can always be used to blackmail them
into appearing in more."
|
|
Read article...
|
|
Motor City Madman in 2006
Launch | Submitted by: Spookbabe
"I'm flattered that the Michigan citizenry grasps my sincerity. I have
always celebrated my 'We The People' activism. Maybe it's time to take it
to the next level.  Maybe it's
time for an upheaval. Call me Ted 'Upheaval' Nugent. We'll see what happens."
|
|
Read article...
|
|
Jimmy Carter's got it all figured out
Sydney Morning Herald | Submitted by: Spookbabe
"The former United States president Jimmy Carter says the US, which has taken
the lead in urging such countries as Iraq and North Korea to destroy their
weapons of mass destruction, should also disarm. "One of the things that the
United States Government has not done is to try to comply with and enforce
international efforts targeted to prohibit the arsenals of biological weapons
that we ourselves have," Mr Carter told CNN."
|
|
Read article...
|
|
Harvard Law censorship plan causes stir
Boston Globe | Submitted by: William Dunn
"Harvard's Black Law Students Association and some faculty have been
pressing since last spring for a speech code that would punish offending
students and professors. The law school community was ruptured at that
time by a series of racial incidents, most notably one student's use of
the word 'nig' in an online course notebook, a professor's defense of
that student, and another professor's comment that feminism, Marxism,
and black studies have 'contributed nothing' to tort law."
|
|
Read article...
|
|
Flying cities aren't fantasy
Pravda | Submitted by: anonymous
Flying cities may not be fantasy, but Pravda is: "In 1988, the crew of
a spy plane saw the lights of a city and they thought that it was
the city of Antofagasta, the largest city in the north of Chile. However,
suddenly the "city" took off and flew! The plane’s crew was scared to
death and immediately made their way back to their base."
|
|
Read article...
|
|
Book about Harry Potter book has 666 ISBN
BBC | Submitted by: anonymous
"Harry Potter creator JK Rowling has forced the publisher of a book
about the boy wizard to pulp the original cover because they claimed it
looked too similar to her own books." Love the bit at the end of this
where it says the US edition of the book had an isbn of 666 and
they were destroyed in mysterious arson attack.
|
|
Read article...
|
|
Pimp, Pastor, molester: Deliverance
WDIV-TV 4 Detroit | Submitted by: PISTdetroit
"A local pastor who was convicted this weekend of molesting women in his
congregation reportedly revealed that he was previously a pimp... He is
accused of fondling female parishioners during a religious ritual called
The Deliverance in 1995 and 2001. The victims are reportedly
in their 30s and 40s." It is not stated if Deliverance participants
were required to squeal like pigs.
|
|
Read article...
|
|
Kids subjected to home torture chamber
South County Journal | Submitted by: meatload
"A 26 year old Auburn father is accused of turning his home into a torture
chamber for his 9 year old son and 8 year old daughter. The children told
investigators their father pulled out their toe nails with pliers, placed
their feet in a burning fireplace, burned them with an iron, hit them with
sticks, belts, a hose and a coaxial cable, poked them with a plunger handle,
and used a lighter and pliers on their genitals."  "In a 56 page ruling overturning a May
opinion by the secret Foreign Intelligence Surveillance Court, the three
judge appeals court panel said the Patriot Act gave the government the right
to expanded powers", which means the government can wiretap and search
and seize for any reason they want. Yes, it's BAD.
|
|
Read article...
|
|
Rattlesnake returns reptophile's kiss
Oregon Live | Submitted by: meatload
"George was showing off to Roban the young rattlesnake he'd brought home
three or four weeks ago from the Arizona desert when the kiss turned
sour... two minutes later, George began to slip in and out of consciousness,
Wilson said. His lip swelled to about five times its usual size, and
within minutes the swelling engulfed his cheeks and ears and forced
his eyes shut, he said." Good times.
|
|
Read article...
|
|
First, kill all the lawyers...
South Florida Sun-Sentinel | Submitted by: f00f
"Mark A. Twilegar, 38, is accused of shooting North Fort Myers attorney
David Thomas execution-style, then burying him alive and leaving him to die,
authorities said Monday... Wet sand and dirt was found in Thomas' airway,
leading a county medical examiner to determine that he was buried alive."
|
|
Read article...
|
|
Wounded Iraqis buried alive during Gulf War I
Digital Journalist | Submitted by: Humboldt Honey
"It wasn’t until late in the afternoon of Feb. 25 that the press pool was
permitted to see where the attack occurred. But there were no bodies, no
stench of feces that hovers on a battlefield, no blood stains, no bits of
human beings... Thousands of Iraqi soldiers, some of them alive and firing
their weapons from World War I-style trenches, were buried by plows mounted
on Abrams main battle tanks. The Abrams flanked the trench lines so that
tons of sand from the plow spoil funneled into the trenches... "I came
through right after the lead company," said Army Col. Anthony Moreno,
who commanded the lead brigade during the 1st Mech’s assault. "What you saw
was a bunch of buried trenches with people’s arms and legs sticking out of
them. For all I know, we could have killed thousands."
|
|
Read article...
|
|
Bad luck sisters meet in the middle
Click 2 Houston | Submitted by: Dexter
"Two sisters driving separate vehicles on a rural highway collided head-on,
killing both women as they went to see each other. Authorities said the women
were driving Jeeps in opposite directions on Alabama 25 about 4 p.m. Sunday
when one of the vehicles crossed the center line, colliding with the other
vehicle." This family's had a lot of bad luck recently.
|
|
Read article...
|
|
Not your father's propaganda war
Slate | Submitted by: meatload
At the heart of Walters' sermon: "It is not your father's marijuana."
Today's users, he claims, confront pot that's up to 30 times stronger
than what aging baby boomers smoked. Pot is better, just not the 30 times
better that Walters cites to scare today's voters. Walters is disingenuously
comparing the best pot of today with the worst of yesterday, rather than
comparing average marijuana of a generation ago with average marijuana now.
|
|
Read article...
|
|
Cake Bomb Terror!
Wire Services | Submitted by: Son of Benway
"Police said on Tuesday a suspicious package found at Jakarta's high-rise
Deutsche Bank building, which houses most of Indonesia's foreign media,
contained cakes, not a bomb... "The result of the search was that the package
was a box of cakes," said a police officer at the Menteng police precinct who
declined to be identified."
|
|
Read article...
|
|
Nature Conservancy screws other nonprofits
Houston Chronicle | Submitted by: anonymous
"The Conservancy owned 100 percent of the royalty rights on the southern
half of the property. On the northern half, it shared those rights with the
Russell Sage Foundation of New York and several other smaller-interest
holders. While the productive well on the property was well within the
southern tract, it had been sunk on an incline and the bottom was just a few
hundred feet from the northern tract." And, knowing they had a multi
million dollar well, they tried to buy the other foundation's mineral rights
for a few tens of thousands of dollars.
|
|
Read article...
|
|
Poetry and haggis: A winning combination
New York Times | Submitted by: Son of Benway
"Swaddled tightly in the yellowed stomach lining of a sheep, a mixture of
congealed fat, onions, pinhead oatmeal, stock and the cut-up heart, lungs
and liver of the animal has a lumpen look that even the eulogizing poet,
Robert Burns, compared to the sight of bare buttocks. People squeamish at
the idea of eating haggis get little comfort from Burns's description of
what happens when the knife slices its intestinal skin and sends the
minced offal spilling out: 'Trenching your gushing entrails bright,
Like onie ditch; And then, O what a glorious sight, Warm-reekin, rich!'"
|
|
Read article...
|
|
The Fischer Files
Philadelphia Inquirer | Submitted by: Crazy Quagga
The mother of chess genius and half-Jewish anti-Semite Bobby Fischer
was tailed by the FBI for supposed connections to the Soviet Union(not
surprising, no connection was ever proven). Recently declassified
documents show that "Regina Fischer spoke eight languages. She was brilliant
but paranoid, a psychiatrist determined in 1943. Then again, she really
WAS being followed." The FBI also believed that Bobby Fischer's real
father was a friend of his mother. When last inteviewed on September 11,
Bobby said America should be wiped out."
|
|
Read article...
|
|
Gnome liberation front strikes again
Chicago Tribune | Submitted by: Milk Bone
"There's no place like home for a garden gnome, so Bartlett police are
looking for the owners of 57 troll statues recovered over the weekend...
"When police went to the 16-year-old's home, they found 57 gnomes in
the garage... All of the plastic and plaster figures have beards and
little hats."
|
|
Read article...
|
|
Russia to build floating nuclear plants
Courier-Mail | Submitted by: Son of Benway
"Russia is to launch the construction of the world's first floating nuclear
power plants, a unique project which should supply much-needed energy to its
remotest regions... The idea instead is to tow floating nuclear "micro-power
plants" off their coasts where they will operate, providing power and heating
via cables linking them to the mainland for a planned duration of 40 years."
|
|
Read article...
|
|
Naked Madonnas upset Church
CNN | Submitted by: Alaska Freegold
No, not the slutty Madonna: "Images of the Madonna always get lots
of exposure in Italy in the run-up to Christmas, but this year the mother
of Jesus is completely naked. And then some. In a 2003 calendar on sale
at news stands country-wide, a glamour photographer has shot 12 months
of undressed women in provocative scenes inspired by the life of Christ."
|
|
Read article...
|
|
Some screaming over ice cream packaging
Seattle Times | Submitted by: maggie
"Pinched by rising costs of ingredients and afraid to raise prices already
above $5, at least two ice cream makers have started quietly phasing out the
half gallon with a 1.75 quart carton. Others are considering doing the same."
|
|
Read article...
|
|
Rum for traffic tickets
Edmonton Journal | Submitted by: Gorg
"When the pair spoke Dec. 5, Blevins offered to put him on the "planned or
preferred program," adding he preferred to drink spiced rum. As Blevins, a
50 year old commissionaire, explained, "a $30 bottle of booze was a lot
cheaper than a $150 ticket this close to Christmas," Cobban said."
|
|
Read article...
|
|
Michael Jackson dangles baby
WKMG-TV 6 Orlando | Submitted by: Rio, sfpolarbear
"Michael Jackson shocked fans in Berlin Tuesday after appearing to dangle
a baby from a fifth floor hotel balcony. The singer appeared briefly at a
floor length window of his hotel room, carrying a baby whose face was covered
with a white cloth. Jackson, with an arm around the child's chest, then
dangled it over the window railing for a few moments and then went back
inside." Second link has video of the incident.
|
|
Read article... and
This article...
|
|
Pajama party with daddy goes woefully wrong
Wire Services | Submitted by: anonymous
"A man pleaded guilty to drugging and raping his young daughter's friends
during sleepovers... The judge said he would sentence Peter M. Gagnon, 49,
to 25 to 30 years in prison on Tuesday. Gagnon's lawyer, John M. Goggins,
said his client was "woefully sorry" for his crimes."
|
|
Read article...
|
|
Nuns gone wild!
Sky News | Submitted by: Milk Bone
Gentlemen, start your VCRs: "Notorious scenes of nuns in sex acts with
a statue of Christ are finally to be shown to the public more than three
decades after being axed by film censors... It was long thought to have
been destroyed but was recently unearthed and will be screened in a
Channel 4 documentary on November 25."
|
|
Read article...
|
|
|
|
|


RAMBLING ROSE A film review by Mark R. Leeper Copyright 1991 Mark R. Leeper
Capsule review: Lightweight memoir of a boy growing up in the mid-1930's Georgia and of the commotion caused by hiring a former "loose woman" to do housework. Well filmed and to nobody's surprise Robert Duvall turns in a terrific performance as the father of the household. Rating: +2 (-4 to +4). [minor spoilers in the review]
"She caused one hell of a damnable commotion," says a middle-aged Buddy (played by John Heard) recalling the young woman who came to live with his family when he was 13. The story of that commotion is told in a golden- toned flashback that makes up all but about five minutes of the film. The "she" he is referring to is Rose (played by Laura Dern). In a small Georgia town in the mid 1930s, a younger Buddy (played by Lucas Haas) has a crush on Rose. His daddy (played by Robert Duvall) has hired Rose to save her from a life of prostitution. But Daddy has no idea how much Rose is going to disrupt his well-ordered existence.
That well-ordered existence includes three precocious children, Buddy being the oldest, and a wife who is working on her Master's degree from Columbia. In talking, Mother tends to go off on philosophical tangents and Daddy calls that "going off into the fourth dimension." Mother takes a maternal interest in this new hired girl. Mother is played, incidentally, by Dern's real-life mother, Diane Ladd. The ruckus is caused by the fact that Rose just exudes and radiates sexuality. Both Daddy and Buddy are attracted to her. At this point one is really expecting the cliche of Southern gentility being a thin veneer over decadence. This film flirts with that cliche, but generally seems to say that underneath that gentility is just more gentility. Or perhaps it is just Mother's good example. Mother seems to have a sensitivity to the feelings of all living things with the possible exception of her own children. Daddy and Buddy are fascinated by Rose's sensuality and in one memorable scene watch from a distance as Rose walks around town attracting men. Later this quality of attraction will cause what may be more trouble than it is worth.
Robert Duvall is in all probability the best American actor alive. This might have been a pleasant enough film without his contribution, but it would have not been nearly as good. His gestures and his very posture are unfailingly perfect. Lines that could have been just straight flat dialogue become witty or very telling when Duvall delivers them. Laura Dern is not a great actress but she has the right look for Rose. She has a feral sensuality that makes her attractive without being pretty balance that is just about right for Rose. The late Kevin Conway plays a Northern doctor with his accustomed slightly sinister edge. The one bad piece of casting is John Heard as the 1971 Buddy. He must look 49, speak with a Southern accent, and look like Lucas Haas. I usually like John Heard but he fails on all three counts.
RAMBLING ROSE is not a great film. Though at times it reminds one of other childhood reminiscences of the South such as TO KILL A MOCKINGBIRD and THE HEART IS A LONELY HUNTER, it has little of the power and does not really have a whole lot to say, But it is an enjoyable film and is well above the general run of films of the last few months. I would give it a +2 on the -4 to +4 scale.
Mark R. Leeper att!mtgzy!leeper<EMAIL_ADDRESS>.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


partition
Module¶
This module defines the Partition() class, which indicates a particular evolutionary unit.
-
class
partition.
Partition
(**kwargs)¶ Required keyword arguments:
- size, integer giving the root length of this partition (only required when no root sequence is given)
- models (or model), either a single Model object (for cases of branch homogeneity), or a list of Model objects (for cases of branch heterogeneity).
Optional keyword arguments:
- root_sequence, a string giving the ancestral sequence for this partition. Note that, when provided, the size argument is not needed.
- root_model_name, the name attribute of the model to be used at the root of the phylogeny. Applicable only to cases of branch heterogeneity.
- Examples:
>>> # Define a temporally homogeneous partition >>> my_partition = Partition(models = my_model, size = 500) >>> # Define a temporally heterogeneous partition, in which three models (model1, model2, and rootmodel) are used during sequence evolution, and rootmodel is the model at the root of the tree >>> my_other_partition = Partition(models = [model1, model2, rootmodel], size = 134, root_model_name = rootmodel.name)
-
branch_het
()¶ Return True if the partition uses branch heterogeneity, and False if homogeneous.
-
site_het
()¶ Return True if the partition uses site/rate heterogeneity, and False if homogeneous. Also returns False if an MRCA has been provided, as we do not support rate heterogeneity in this case.
-
is_codon_model
()¶ Return True if the partition is evolving with dN/dS heterogeneity, and False otherwise.


|
| | Font (const File &p_file) |
| | Font constructor. More...
|
| |
| Image | BakeFontSheet (UInt32 w, UInt32 h, float pixelheight=32.0f, Int32 first_char=0, Int32 num_chars=255) |
| | Baking imagefile of the fontsheet from ttf-file. More...
|
| |
| Image | BakeTextBox (const char *text_to_print, Int32 w, Int32 h, float lineHeight=32.0f) |
| | Bake text into image file. More...
|
| |
| Image | BakeTextBox (const char *text_to_print, float lineHeight=32.0f) |
| | Automated text baking. More...
|
| |
| Glyph | GetGlyph (const UInt32 letter) |
| |
| void | GetTextBuffer (Buffer &, const char *text, float scale=0.75f, float xPos=-75.0f, float yPos=0.0f) |
| |
| const UInt8 * | GetBuffer (UInt32 &size) const |
| | Returns constant raw font data and sets its size to 'size'. More...
|
| |
| UInt8 * | GetBuffer (UInt32 &size) |
| | Returns raw font data and sets its size to 'size'. More...
|
| |
|
| float | m_lineHeight = 42.0f |
| | m_lineHeight Lineheight for printable text More...
|
| |
|
float | m_spaceSize = 20.0f |
| |
◆ Font()
| ace::Font::Font |
( |
const File & |
p_file | ) |
|
Font constructor.
- Parameters
-
◆ BakeFontSheet()
| Image ace::Font::BakeFontSheet |
( |
UInt32 |
w, |
|
|
UInt32 |
h, |
|
|
float |
pixelheight = 32.0f , |
|
|
Int32 |
first_char = 0 , |
|
|
Int32 |
num_chars = 255 |
|
) |
| |
Baking imagefile of the fontsheet from ttf-file.
- Parameters
-
| [in] | w | Width for the fonstsheet image |
| [in] | h | Height for the fontsheet image |
| [in] | pixelheight | Fontsize in pixels |
| [in] | first_char | First charater to save from ttf-file |
| [in] | num_chars | Range of characters to bake |
- Returns
- Fontsheet imagefile
BakeFontSheet to image Image int width, int heigth, float pixelheight int first char, int num of chars (0-255)
◆ BakeTextBox() [1/2]
| Image ace::Font::BakeTextBox |
( |
const char * |
text_to_print, |
|
|
Int32 |
w, |
|
|
Int32 |
h, |
|
|
float |
lineHeight = 32.0f |
|
) |
| |
Bake text into image file.
Baking text box with given width and height.
- Parameters
-
| [in] | text_to_print | Text to save in the image file |
| [in] | w | Widht of the image file in pixels |
| [in] | h | Height of the image file in pixels |
| [in] | lineHeight | Font size in pixels |
- Returns
- Text imagefile
◆ BakeTextBox() [2/2]
| Image ace::Font::BakeTextBox |
( |
const char * |
text_to_print, |
|
|
float |
lineHeight = 32.0f |
|
) |
| |
Automated text baking.
Preparing image for baking with minimum empty image space.
- See also
- BakeTextBox
◆ GetBuffer() [1/2]
| const UInt8 * ace::Font::GetBuffer |
( |
UInt32 & |
size | ) |
const |
Returns constant raw font data and sets its size to 'size'.
- Parameters
-
| [in,out] | size | Size of the buffer |
- Returns
- Constant raw font data
◆ GetBuffer() [2/2]
| UInt8 * ace::Font::GetBuffer |
( |
UInt32 & |
size | ) |
|
Returns raw font data and sets its size to 'size'.
- Parameters
-
| [in,out] | size | Size of the buffer |
- Returns
- Raw font data
◆ GetGlyph()
| Glyph ace::Font::GetGlyph |
( |
const UInt32 |
letter | ) |
|
◆ GetTextBuffer()
| void ace::Font::GetTextBuffer |
( |
Buffer & |
buffer, |
|
|
const char * |
text, |
|
|
float |
scale = 0.75f , |
|
|
float |
xPos = -75.0f , |
|
|
float |
yPos = 0.0f |
|
) |
| |
- Parameters
-
| [in] | Buffer | Vertexbuffer |
| [in] | text | Printable text |
| [in] | scale | Text scaling |
| [in] | xPos | Text starting position x |
| [in] | yPos | Text starting position y |
- Returns
- Textbuffer
◆ m_lineHeight
| float ace::Font::m_lineHeight = 42.0f |
m_lineHeight Lineheight for printable text
m_spaceSize spacesize for printable text
The documentation for this class was generated from the following files:
- include/Ace/Font.h
- src/Ace/Font.cpp


{% extends "layout.html" %} {% block content %}
Each time you are visited by a Miami-Dade County Inspector, you will be given a link to a feedback survey about his/her performance via e-mail or text message.
This feedback will be aggregated and sent to management about inspector performance. Specific feedback you give about an inspector will not be to them unless you give identifying information.


| DOSE: T+ 0:00 |
400 mg |
oral |
Caffeine |
(pill / tablet) |
| T+ 1:00 |
400 mg |
oral |
Caffeine |
(pill / tablet) |
| T+ 4:00 |
1000 mg |
oral |
Caffeine |
(pill / tablet) |
Ironically my worst drug experience ever came from something perfectly legal that nearly everyone takes for granted. I work in a coffee shop, and though I don't usually drink coffee at all, I guess I was so used to being around it that the caffeine had ceased to seem like a drug at all to me.
So one weekend, a good friend and I, being all out of pot, which has always been pretty benevolent in all me experiences, were bored and looking for a buzz. We found this in a box of Vivarin caffeine tablets. Two bored teenegers on the weekend, we decided to start small with just a couple pills hoping it would add an amusing glow to our boredom. Wrong move. It all started when I called him up to see if he wanted to drive into Hollywood and look for something to do. I went to go pick him up, after downing two of the pills from a 16-pill box of 200mg caffeine tablets.
Driving to his place, I felt a sort of optimism about the day ahead, most likely just a placebo effect. When I got to his house, he took two as well and we drove to Hollywood which is about ten minutes from his house. I think at this point I also had two more as it had been a good hour since I took mine and I wasn't feeling anything. He drove around aimlessly for probabably about a couple of hours, I think we were looking for somewhere to shop for clothes but we were just bored and restless. Somewhere in that time, I remember my friend taking a couple more, and an hour later he said he was feeling a pretty strong buzz. I wasn't, so I figured the pills were weak or I had some weird tolerance, so I took five of the pills and my friend finished the remaining three.
We eventually ended up at Jet Rag, a store I like to buy clothes at and while we were walkind around there, the buzz hit my real hard. I felt slightly tingly, and very amped up and slightly agitated but it was a positive feeling. I started to get a little light headed and my thoughts were racing so I figured I was peaking out, with a pretty disappointing buzz.  We got in my car and as I was pulling into the street I almost hit a car and felt extremely jittery. My friend asked me if I was okay, and I said I was fine, thinking I was just overly excited.
We ended up at Cafe 101 which was nearby. I had to urinate very badly so we went to bathroom and as I was urinated my legs starting tingling as if they were fallign asleep and I began to shake a good deal. It's funny, right now as I am reliving this experience I am actually feeling kind of uneasy and nervous. This was nothing compared the night was about to endure.
We went to a table and ordered a couple sodas while we browed the menu. I confided in my friend that I felt really weird and that it wasn't a good thing, and that I needed to eat, since I had only eated a small scone in the morning. Suddenly as I sat there, I felt vomit surged up but I was fortunate enough to suppress it and didn't puke all over the table. I ran to the bathroom and hurled yellow, the color of the tablets. I stayed in the bathroom for about 30 minutes hyperventilating, sweating and feeling very sick, and throwing up a couple more times. Finally, I regained some sense of composure and went outside to find my friend, with two other friends of ours who we had planned on meeting. They said they felt bad for me and I needed to eat.
Shortly after I sat down, I had to pay another visit to the bathroom. I could tell things had gone too far but I figured I was getting rid of the excess caffeine and I would be fine after not too long. I think I was in the bathroom for another 30 minutes. I then told my friends I would go wait in the car. I was feeling a little better and actually started to drift off to sleep when they knocked on my window and suggested we go chill by the pool of some hotel. I asked that we wait so another 30 minutes transpired and at that point I felt okay enough to go over to the hotel which was 5 minutes away. During the drive I started to feel like I was going to vomit again and got very shaky and uncomfortable. So I parked and waited in my car for a couple hours while the went to the hotel pool.
I rolled back my seat and drank some water but I threw up out of my car door several times while I was waiting for them. I didn't even care that a lot of people were watching me do it, I had never felt so sick in my life except maybe when I had a bad flu. I called my friends and told them I had to go, and I called my girlfriend. She said I could go to her house since my parents weren't home and someone needed to be with me in case anything really bad happened. At this point I was getting pretty scared. I barely made it to her house which was 30 minutes from where I was parked and traffic made it worse. I had to pull over and vomit very painfully on the side of the street twice on my way there.
I finally arrived and apologized to her right when I got there for 'fucking up and being stupid.' I called my parents too, who don't mind that I smoke pot and are pretty open minded so I didn't feel that bad telling them.  This was just a month after my 18th birthday. I had to stay at my girlfriend's house in the guest room over night because I was violently ill and could not drive. Her dad told me he 'Did the same thing when I was your age, I feel your pain.' But only ate two pills. I had 9.
I threw up all night long. I sweated bullets and had awful diarrhea. I had to vomit every hour for a while and then it got to every 20 minutes. I did not sleep at all. I wasn't sure what was going to happen to me but I had hope that I would be okay but morning. I tried eating toast, water and juice and I couldn't hold any of them down.  I wished so badly that I had pot to stop the naseua. I was dry heaving almost constantly by 10 in the morning and I finally had my parents come and get me and take me to the hospital where they pumped charcoal and fluids into my body via an IV in my wrist.
I was just so happy to be alive and being taken care of by someone who knew what they were doing. I have never been in so much pain in all my life, and since caffiene is a stimulant, I was painfully aware of every moment of that night. I felt so horrible for doing it because of worrying my girlfriend and my parents so much, and for doing something so dumb. It took my a couple days to fully recover from being up for so long and vomitting so intensely.  By some miraculous stroke, I did not have work the morning I had to go to emergency room, even though I always do so I didn't have to call in sick or anything.

Oh and the real kicker is my insurance almost didn't pay for the $1300 hospital visit. We weren't sure why but we thought it was because it was self-inflicted. Luckily they ended up paying but that in itself was an equally big scare. If you're gonna do drugs make sure you have good medical insurance, just in case.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


Spoilers: Robbo holds Dylan Carter hostage in Home and Away
Robbo (Jake Ryan) has been through a lot in recent weeks, with the latest drama involving him being kidnapped by Dylan Carter (Jeremy Lindsay Taylor) and held in a pit – before he managed to turn the tables in his favour and trap his captor.
 He calls Des (Matt Zeremes) to tell him he has what he’s looking for – Dylan Carter is with him.
Des is taken aback – Robbo has his wife back, so why has he come up with the goods? Robbo says it will never be over until Des gets what he wants, so he’s prepared to strike a deal. The condition is that he deals with Victor (Patrick Thompson) directly.
Des says there’s no chance, but Robbo says the only way they’re getting Carter is if Victor plays along. We then discover that Carter is handcuffed to the truck, sitting next to Robbo and being used as leverage.
Advertisement Advertisement
The next day, the two men wait for Des’s move and Carter tries to be friendly to Robbo. But Robbo isn’t interested, instead telling him to keep his mouth shut. The stakeout continues until Robbo gets a text from Des with a time and place to meet.
The pair show up at an industrial site, and Robbo tells Dylan that it’s time to wait. They are thrown when only Des and some of his thugs show up. Des tells Robbo that Victor suspects he’s playing a game, so Robbo had better tell them what’s going on – or he can forget about seeing Victor. Is Robbo’s mysterious plan about to fall apart?


Ping test checker
Ping test is the server response time. Now you can check your IP address, the website or the server from a few locations worldwide. Enter the IP address or name of the website, click on "Check Ping" and get the result for several countries.


--- layout: post title: Dorcus categories: - 單車日誌 tags: [] published: false comments: true ---
Dorcus


--- layout: post title: co pilots have it better than the captain date: '2011-03-05T15:45:00+01:00' tags: [] tumblr_url: http://dotmr.tumblr.com/post/3701609376/co-pilots-have-it-better-than-the-captain ---
co-pilots have it better than the captain


contract\Request
Synopsis
class Request
{
- // members
- private $variables;
- private $params;
- private $files;
- private $method;
- private $contexts;
- // methods
- public void __construct()
- public array getParams()
- public void setParams()
- public void getParam()
- public void setParam()
- public array getContexts()
- public void setContexts()
- public void getContext()
- public void setContext()
- public array getFiles()
- public void setFiles()
- public array getFile()
- public array getVariables()
- public void setVariables()
- public ?string getVariable()
- public string getMethod()
- public void setMethod()
Violations
Checkstyle
| Line | Column | Severity | Message |
|---|---|---|---|
| 4 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 4 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 5 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 5 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 6 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 6 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 7 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 7 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 8 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 8 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 9 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 9 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 9 | 9 | error | Visibility must be declared on method "__construct" |
| 9 | 73 | error | Incorrect spacing between argument "$files" and equals sign; expected 1 but found 0 |
| 9 | 73 | error | Incorrect spacing between default value and equals sign for argument "$files"; expected 1 but found 0 |
| 9 | 77 | error | Opening brace should be on a new line |
| 10 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 11 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 12 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 13 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 14 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 14 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 14 | 10 | error | Spaces must be used for alignment; tabs are not allowed |
| 14 | 10 | error | Whitespace found at end of line |
| 15 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 15 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 15 | 42 | error | Opening brace should be on a new line |
| 16 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 17 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 17 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 18 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 18 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 18 | 49 | error | Opening brace should be on a new line |
| 19 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 20 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 20 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 21 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 21 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 21 | 48 | error | Opening brace should be on a new line |
| 22 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 23 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 23 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 24 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 24 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 24 | 56 | error | Opening brace should be on a new line |
| 25 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 26 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 26 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 27 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 27 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 27 | 44 | error | Opening brace should be on a new line |
| 28 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 29 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 29 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 30 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 30 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 30 | 53 | error | Opening brace should be on a new line |
| 31 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 32 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 32 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 33 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 33 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 33 | 50 | error | Opening brace should be on a new line |
| 34 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 35 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 35 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 36 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 36 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 36 | 58 | error | Opening brace should be on a new line |
| 37 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 38 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 38 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 39 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 39 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 39 | 41 | error | Opening brace should be on a new line |
| 40 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 41 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 41 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 42 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 42 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 42 | 47 | error | Opening brace should be on a new line |
| 43 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 44 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 44 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 45 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 45 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 45 | 53 | error | Opening brace should be on a new line |
| 46 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 47 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 47 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 48 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 48 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 48 | 45 | error | Opening brace should be on a new line |
| 49 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 50 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 50 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 51 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 51 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 51 | 55 | error | Opening brace should be on a new line |
| 52 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 53 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 53 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 54 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 54 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 54 | 59 | error | Opening brace should be on a new line |
| 55 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 56 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 56 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 57 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 57 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 57 | 43 | error | Opening brace should be on a new line |
| 58 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 59 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 59 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 60 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 60 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 60 | 50 | error | Opening brace should be on a new line |
| 61 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 62 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
| 62 | 9 | error | Line indented incorrectly; expected 4 spaces, found 8 |
| 62 | 10 | error | Spaces must be used for alignment; tabs are not allowed |
| 62 | 10 | error | Whitespace found at end of line |
Members
private
- $contexts
- $files
- $method
- $params
- $variables
Methods
public
History
-
2021-01-24T22:59:14+00:00 (commit #20b204f)
Author: Folarin Martins<EMAIL_ADDRESS>/ Commiter: Folarin Martins<EMAIL_ADDRESS>QA/CI tests completed; next:Jenkins CI/CD pipeline
-
2021-01-21T05:30:41+00:00 (commit #a190680)
Author: Folarin Martins<EMAIL_ADDRESS>/ Commiter: Folarin Martins<EMAIL_ADDRESS>Laying out user_info_service


Beispiel: Aufruf von Funktionen
Primzahlcheck
alert
Tabs
Click on the buttons inside the tabbed menu:
London
London is the capital city of England.
Paris
Paris is the capital of France.
Tokyo
Tokyo is the capital of Japan.
Click on the buttons inside the tabbed menu:
London is the capital city of England.
Paris is the capital of France.
Tokyo is the capital of Japan.


Object
A cursor over query results. Returned objects are hashes.
Create a new cursor.
Note: cursors are created when executing queries using [Collection#find] and other similar methods. Application developers shouldn’t have to create cursors manually.
@return [Cursor]
@core cursors constructor_details
# File lib/mongo/cursor.rb, line 39 def initialize(collection, opts={}) @cursor_id = nil @db = collection.db @collection = collection @connection = @db.connection @logger = @connection.logger # Query selector @selector = opts[:selector] || {} # Special operators that form part of $query @order = opts[:order] @explain = opts[:explain] @hint = opts[:hint] @snapshot = opts[:snapshot] @max_scan = opts.fetch(:max_scan, nil) @return_key = opts.fetch(:return_key, nil) @show_disk_loc = opts.fetch(:show_disk_loc, nil) @comment = opts[:comment] # Wire-protocol settings @fields = convert_fields_for_query(opts[:fields]) @skip = opts[:skip] || 0 @limit = opts[:limit] || 0 @tailable = opts[:tailable] || false @timeout = opts.fetch(:timeout, true) @options = 0 # Use this socket for the query @socket = opts[:socket] @closed = false @query_run = false @transformer = opts[:transformer] @read = opts[:read] || @collection.read Mongo::ReadPreference::validate(@read) @tag_sets = opts[:tag_sets] || @collection.tag_sets @acceptable_latency = opts[:acceptable_latency] || @collection.acceptable_latency batch_size(opts[:batch_size] || 0) @full_collection_name = "#{<EMAIL_ADDRESS>@cache = [] @returned = 0 if(!@timeout) add_option(OP_QUERY_NO_CURSOR_TIMEOUT) end if(@read != :primary) add_option(OP_QUERY_SLAVE_OK) end if(@tailable) add_option(OP_QUERY_TAILABLE) end if @collection.name =~ /^\$cmd/ || @collection.name =~ /^system/ @command = true else @command = false end end
Add an option to the query options bitfield.
@param opt a valid query option
@raise InvalidOperation if this method is run after the cursor has bee
iterated for the first time.
@return [Integer] the current value of the options bitfield for this cursor.
@see www.mongodb.org/display/DOCS/Mongo+Wire+Protocol#MongoWireProtocol-Mongo::Constants::OPQUERY
# File lib/mongo/cursor.rb, line 376 def add_option(opt) check_modifiable @options |= opt @options end
Guess whether the cursor is alive on the server.
Note that this method only checks whether we have a cursor id. The cursor may still have timed out on the server. This will be indicated in the next call to Cursor#next.
@return [Boolean]
# File lib/mongo/cursor.rb, line 110 def alive? @cursor_id && @cursor_id != 0 end
Set the batch size for server responses.
Note that the batch size will take effect only on queries where the number to be returned is greater than 100.
This can not override MongoDB’s limit on the amount of data it will return to the client. Depending on server version this can be 4-16mb.
@param [Integer] size either 0 or some integer greater than 1. If 0,
the server will determine the batch size.
@return [Cursor]
# File lib/mongo/cursor.rb, line 259 def batch_size(size=nil) return @batch_size unless size check_modifiable if size < 0 || size == 1 raise ArgumentError, "Invalid value for batch_size #{size}; must be 0 or > 1." else @batch_size = @limit != 0 && size > @limit ? @limit : size end self end
Close the cursor.
Note: if a cursor is read until exhausted (read until Mongo::Constants::OP_QUERY or Mongo::Constants::OP_GETMORE returns zero for the cursor id), there is no need to close it manually.
Note also: Collection#find takes an optional block argument which can be used to ensure that your cursors get closed.
@return [True]
# File lib/mongo/cursor.rb, line 335 def close if @cursor_id && @cursor_id != 0 message = BSON::ByteBuffer.new([0, 0, 0, 0]) message.put_int(1) message.put_long(@cursor_id) log(:debug, "Cursor#close #{@cursor_id}") @connection.send_message(Mongo::Constants::OP_KILL_CURSORS, message, :socket => @socket) end @cursor_id = 0 @closed = true end
Is this cursor closed?
@return [Boolean]
# File lib/mongo/cursor.rb, line 350 def closed? @closed end
Get the size of the result set for this query.
@param [Boolean] whether of not to take notice of skip and limit
@return [Integer] the number of objects in the result set for this query.
@raise [OperationFailure] on a database error.
# File lib/mongo/cursor.rb, line 176 def count(skip_and_limit = false) command = BSON::OrderedHash["count", @collection.name, "query", @selector] if skip_and_limit command.merge!(BSON::OrderedHash["limit", @limit]) if @limit != 0 command.merge!(BSON::OrderedHash["skip", @skip]) if @skip != 0 end command.merge!(BSON::OrderedHash["fields", @fields]) response = @db.command(command, :read => @read, :comment => @comment) return response['n'].to_i if Mongo::Support.ok?(response) return 0 if response['errmsg'] == "ns missing" raise OperationFailure.new("Count failed: #{response['errmsg']}", response['code'], response) end
Iterate over each document in this cursor, yielding it to the given block, if provided. An Enumerator is returned if no block is given.
Iterating over an entire cursor will close it.
@yield passes each document to a block for processing.
@example if ‘comments’ represents a collection of comments:
comments.find.each do |doc| puts doc['user'] end
# File lib/mongo/cursor.rb, line 282 def each if block_given? || !defined?(Enumerator) while doc = self.next yield doc end else Enumerator.new do |yielder| while doc = self.next yielder.yield doc end end end end
Get the explain plan for this cursor.
@return [Hash] a document containing the explain plan for this cursor.
@core explain explain-instance_method
# File lib/mongo/cursor.rb, line 316 def explain c = Cursor.new(@collection, query_options_hash.merge(:limit =><EMAIL_ADDRESS>:explain => true)) explanation = c.next_document c.close explanation end
Determine whether this cursor has any remaining results.
@return [Boolean]
# File lib/mongo/cursor.rb, line 165 def has_next? num_remaining > 0 end
Clean output for inspect.
# File lib/mongo/cursor.rb, line 420 def inspect "<Mongo::Cursor:0x#{object_id.to_s(16)} namespace='#{<EMAIL_ADDRESS>" + "<EMAIL_ADDRESS>@cursor_id=#{@cursor_id}>" end
Limit the number of results to be returned by this cursor.
This method overrides any limit specified in the Collection#find method, and only the last limit applied has an effect.
@return [Integer] the current number_to_return if no parameter is given.
@raise [InvalidOperation] if this cursor has already been used.
@core limit limit-instance_method
# File lib/mongo/cursor.rb, line 223 def limit(number_to_return=nil) return @limit unless number_to_return check_modifiable @limit = number_to_return self end
Get the next document specified the cursor options.
@return [Hash, Nil] the next document or Nil if no documents remain.
# File lib/mongo/cursor.rb, line 117 def next if @cache.length == 0 if @query_run && (@options & OP_QUERY_EXHAUST != 0) close return nil else refresh end end doc = @cache.shift if doc && doc['$err'] err = doc['$err'] # If the server has stopped being the master (e.g., it's one of a # pair but it has died or something like that) then we close that # connection. The next request will re-open on master server. if err.include?("not master") @connection.close raise ConnectionFailure.new(err, doc['code'], doc) end raise OperationFailure.new(err, doc['code'], doc) end if @transformer.nil? doc else @transformer.call(doc) if doc end end
Get the query options for this Cursor.
@return [Hash]
# File lib/mongo/cursor.rb, line 403 def query_options_hash BSON::OrderedHash[ :selector => @selector, :fields => @fields, :skip => @skip, :limit => @limit, :order => @order, :hint => @hint, :snapshot => @snapshot, :timeout => @timeout, :max_scan => @max_scan, :return_key => @return_key, :show_disk_loc => @show_disk_loc, :comment => @comment ] end
Returns an integer indicating which query options have been selected.
@return [Integer]
@see www.mongodb.org/display/DOCS/Mongo+Wire+Protocol#MongoWireProtocol-Mongo::Constants::OPQUERY The MongoDB wire protocol.
# File lib/mongo/cursor.rb, line 360 def query_opts warn "The method Cursor#query_opts has been deprecated " + "and will removed in v2.0. Use Cursor#options instead." @options end
Remove an option from the query options bitfield.
@param opt a valid query option
@raise InvalidOperation if this method is run after the cursor has bee
iterated for the first time.
@return [Integer] the current value of the options bitfield for this cursor.
@see www.mongodb.org/display/DOCS/Mongo+Wire+Protocol#MongoWireProtocol-Mongo::Constants::OPQUERY
# File lib/mongo/cursor.rb, line 393 def remove_option(opt) check_modifiable @options &= ~opt @options end
Reset this cursor on the server. Cursor options, such as the query string and the values for skip and limit, are preserved.
# File lib/mongo/cursor.rb, line 152 def rewind! close @cache.clear @cursor_id = nil @closed = false @query_run = false @n_received = nil true end
Skips the first number_to_skip results of this cursor. Returns the current number_to_skip if no parameter is given.
This method overrides any skip specified in the Collection#find method, and only the last skip applied has an effect.
@return [Integer]
@raise [InvalidOperation] if this cursor has already been used.
# File lib/mongo/cursor.rb, line 239 def skip(number_to_skip=nil) return @skip unless number_to_skip check_modifiable @skip = number_to_skip self end
Sort this cursor’s results.
This method overrides any sort order specified in the Collection#find method, and only the last sort applied has an effect.
@param [Symbol, Array, Hash, OrderedHash] order either 1) a key to sort by 2)
an array of [key, direction] pairs to sort by or 3) a hash of field => direction pairs to sort by. Direction should be specified as Mongo::ASCENDING (or :ascending / :asc) or Mongo::DESCENDING (or :descending / :desc)
@raise [InvalidOperation] if this cursor has already been used.
@raise [InvalidSortValueError] if the specified order is invalid.
# File lib/mongo/cursor.rb, line 206 def sort(order, direction=nil) check_modifiable order = [[order, direction]] unless direction.nil? @order = order self end
Receive all the documents from this cursor as an array of hashes.
Notes:
If you’ve already started iterating over the cursor, the array returned by this method contains only the remaining documents. See Cursor#rewind! if you need to reset the cursor.
Use of this method is discouraged - in most cases, it’s much more efficient to retrieve documents as you need them by iterating over the cursor.
@return [Array] an array of documents.
# File lib/mongo/cursor.rb, line 307 def to_a super end
Generated with the Darkfish Rdoc Generator 2.


Our next cosmology seminar takes place on Friday 15th of November, seminar room E349 at 2pm. The speaker is Jibril Ben Achour from the Yukawa Institute (Kyoto, Japan).
At 14:00, room E349, Jibril Ben Achour (Yukawa Institute, Kyoto), will be talking about
FLRW cosmology as a conformally invariant field theory in 1D
Over the last decades, conformal field theory (CFT) technics have played an important role in black hole physics, due to the discovery of unexpected conformal symmetries in the near horizon of black hole. Using these technics, crucial features of black hole physics, among which their spectroscopy, quasi-normal modes, as well as their state counting have been reproduced using CFT technics. So far, the possible existence of similar hidden conformal symmetry in cosmological spacetimes have been much less investigated. In this talk, I will show that the simplest cosmological model, consisting in the homogeneous and isotropic Einstein-Scalar system, enjoys a surprising hidden conformal symmetry. I will present in detail this new structure, the associated Noether’s charge as well as the CVH algebra which encodes this conformal symmetry at the hamiltonian level. Then, I will explain how this cosmological system can be mapped to the well known conformal mechanics developed by de Alfaro, Fubini and Furlan, and which provides the simplest example of a classically conformal field theory in 1d. This conformal structure extends beyond this simple homogeneous and isotropic setting. I will briefly discuss the inclusion of a cosmological constant, anisotropies, self-interacting potential for the scalar field, as well as work in progress on the fully inhomogeneous Einstein-Scalar system. Finally, I will discuss the consequences of this new conformal structure at the quantum level. A major outcome is the possibility to apply the conformal bootstrap program to quantize the theory. Just as quantum conformal mechanics, I will show that despite the lack of a conformally invariant group state, it is possible to find an operator which reproduces the standard form of the CFT two points function in quantum cosmology. I will discuss the cosmological interpretation of this operator and the vacuum state which are used to construct this correlator. In the end, this provides a first step to bootstrap quantum cosmology using this new conformal symmetry.
Based on: arXiv:1909.13390


{% include "head.html" %}
Student Doctor Patient Advocate Academic Researcher Librarian Other Prefer not to say
( Your e-mail address will NOT be publicised or shared with third parties. )
Questions? Contact us
This work is licensed under a Creative Commons Attribution 4.0 International License
or contact us directly


--- layout: post status: publish published: true title: Mac - How to install npm author: display_name: hojunbaek login: hojunbaek email<EMAIL_ADDRESS>url: '' author_login: hojunbaek author_email<EMAIL_ADDRESS>wordpress_id: 1771 wordpress_url: http://ezcocoa.com/?p=1771 date: '2013-01-27 17:05:26 +0900' date_gmt: '2013-01-27 17:05:26 +0900' categories: - Node.js tags: - node - js - npm comments: [] ---
this is tool which help to install package for node.js.
following below steps.
# curl https://npmjs.org/install.sh | sudo sh
tar=/usr/bin/tar
All clean!


Pixel Pattern Generator
Generate: Creates new patterns with new random colors.
Refresh: Generates a new pattern with the current colors.
The current colors can be changed by clicking on them.
Download: Right-click the image and select "Save image as...".
My Website