class: center, middle, inverse, title-slide # dplyr examples: happiness ### Heike Hofmann --- # The Happy data from GSS The General Social Survey (GSS) has been run by NORC every other year since 1972 to keep track of current opinions across the United States. An excerpt of the GSS data called `happy` is available from the `classdata` package: ```r remotes::install_github("heike/classdata") ``` ```r library(classdata) head(happy) ``` ``` ## happy year age sex marital degree finrela ## 1 not too happy 1972 23 female never married bachelor average ## 2 not too happy 1972 70 male separated lt high school above average ## 3 pretty happy 1972 48 female separated high school average ## 4 not too happy 1972 27 female separated bachelor average ## 5 pretty happy 1972 61 female separated high school above average ## 6 pretty happy 1972 26 male never married high school above average ## health polviews partyid wtssall ## 1 good <NA> ind,near dem 0.4446 ## 2 fair <NA> not str democrat 0.8893 ## 3 excellent <NA> independent 0.8893 ## 4 good <NA> not str democrat 0.8893 ## 5 good <NA> strong democrat 0.8893 ## 6 good <NA> ind,near dem 0.4446 ``` You can find a codebook with explanations for each of the variables at https://gssdataexplorer.norc.org/ --- class: inverse # Your Turn Load the `happy` data from the `classdata` package. - how many variables, how many observations does the data have? What do the variables mean? - Plot the variable `happy`. Introduce a new variable `nhappy` that has values 1 for `not too happy`, 2 for `pretty happy`, 3 for `very happy` and `NA` for missing values. There are multiple ways to get to that. Avoid `for` loops. - Based on the newly introduced numeric scores, what is the average happiness of respondents? --- class: inverse # Your turn - how does average happiness change over the course of a life time? Is this relationship different for men and women? Draw plots. - are people now happier than ten years ago? How is happiness related to time? --- class: inverse # Your Turn - Are Republicans or Democrats happier? Compare average happiness levels over `partyid`. - How are financial relations associated with average happiness levels? Is this association different for men and women? - Find a plot that shows the differences for each one of the summaries. --- class: inverse # Your turn: asking questions - What other variable(s) might be associated with happiness? Plot it. --- # Helper functions (1) - `n()` provides the number of rows of a subset: ```r library(dplyr) happy %>% group_by(sex) %>% summarise(n = n()) ``` ``` ## # A tibble: 2 x 2 ## sex n ## <fct> <int> ## 1 female 34904 ## 2 male 27562 ``` - `tally()` is a combination of `summarise` and `n` ```r happy %>% group_by(sex) %>% tally() ``` ``` ## # A tibble: 2 x 2 ## sex n ## <fct> <int> ## 1 female 34904 ## 2 male 27562 ``` --- # Helper functions (2) - `count()` is a further shortcut of `group_by` and `tally`: ```r happy %>% count(sex, degree) ``` ``` ## sex degree n ## 1 female lt high school 7500 ## 2 female high school 18419 ## 3 female junior college 2047 ## 4 female bachelor 4731 ## 5 female graduate 2112 ## 6 female <NA> 95 ## 7 male lt high school 5825 ## 8 male high school 13598 ## 9 male junior college 1425 ## 10 male bachelor 4279 ## 11 male graduate 2357 ## 12 male <NA> 78 ``` - `count()` doesn't introduce any grouping --- # Grouping and Ungrouping - `ungroup` removes a grouping structure from a data set - necessary to make changes to a grouping variable (such as re-ordering or re-labelling)


one
two
three
menu
Sass
Components
Dropdown
arrow_drop_down
Logo
cloud
First Link With Icon
Second Link
Subheader
Third Link With Waves
Name
Item Name
Item Price
Alvin
Eclair
$0.87
Alan
Jellybean
$3.76
Jonathan
Lollipop
$7.00
Shannon
KitKat
$9.99


Dewberry Farm: A country paradise in Texas
If you're in the Houston-area this fall, take a drive along I-10 and experience Dewberry Farm in Brookshire, Texas!
What started as a research property in the 2000s has turned into a little slice of country paradise with games, rides, trains, food, gifts and more!
Mary Emerson and her husband Larry own the farm.
"So much of society has gone now to indoor activities with their iPads and iPhones," Emerson said, "To be out in the open is something that all children should experience."


Court postpones mompha associates arraignment till nov 28
by Rasheed SobowaleJustice Muslim S. Hassan of the Federal High Court sitting in Ikoyi, Lagos, adjourned the arraignment of Ismaila Mustapha ( a.k.a Mompha) associates, Kolade Phillip and Hamza Koudeih to November 28, 2019.
When the matter was called today, the 2nd defendant’s counsel, Abdulhamid Mohammed told the court that he was only informed of the arraignment earlier in the day and doesn’t have a copy of the charge. He pleaded with the court for a short adjournment to enable him study the charge and prepare his client before the plea is taken.
“I am not adequately prepared for the plea to be taken in respect of the 2nd defendant and I humbly urge the court to adjourn this matter to the earliest possible date”.
The prosecution counsel, Rotimi Oyedepo opposed the application, arguing that the plea relevant to the jurisdiction of the court was not that of the counsel.
ALSO READ: Court remands Mompha in prison over N32.9bn alleged scam
Rotimi relying on S271(2&3) of the Administration of the Criminal Justice Act, stated that the defendant had been served with the charge and he knows what to do with it.
He, therefore, urged the court to discountenance the prayers of the defence and allow his plea to be taken.
Justice Hassan, however, adjourned the matter until Thursday, November 28 for arraignment.
Phillip and Hamza, both accomplice of Ismaila Mustapha (aka Mompha) will be tried docked on a 24- count charge bordering on conspiracy and money laundering.


@* * This template is called from the `index` template. This template * handles the rendering of the page header and body tags. It takes * two arguments, a `String` for the title of the page and an `Html` * object to insert into the body of the page. *@ @(page: String)(content: Html)(implicit req: RequestHeader)
@* Here's where we render the page title `String`. *@Here is a simple Web interface to show what collections in the mongoDB, and the fields of each collection, and other meta data, such as time periods, etc.
The development process includes...
1) backend web (rest) service for the meta data about collections for a given mongoDB database
2) front end, web UI, to display the meta data
3) unit and integration tests created and passed
*@


|
21:28:07 |
Setting log report |
|
21:28:07 |
Starting Test-checkIfClearButtonIsActive_20010 |
|
21:28:08 |
Fetching URl |
|
21:28:15 |
Navigating to -https://in.bookmyshow.com/ |
|
21:28:15 |
Waiting for page to Load Completely. |
|
21:28:15 |
Checking if the "Personalised Updates" alert is present |
|
21:28:15 |
Get Locator for homepage-personalisedUpdates-alert |
|
21:28:15 |
Get Locator successful- //div[@class='wzrk-alert-heading'] |
|
21:28:15 |
Lookup for Element-//div[@class='wzrk-alert-heading'] |
|
21:28:15 |
Lookup for Element successful |
|
21:28:15 |
Waiting for the Personalised Updates to Pop-Up |
|
21:28:15 |
"Personalised Updates"alert is present |
|
21:28:15 |
Get Locator for homepage-NotNow-button |
|
21:28:15 |
Get Locator successful- //button[@id='wzrk-cancel'] |
|
21:28:15 |
Lookup for Element-//button[@id='wzrk-cancel'] |
|
21:28:15 |
Lookup for Element successful |
|
21:28:15 |
Waiting for the element to be clickable |
|
21:28:19 |
Click on Not Now Button |
|
21:28:19 |
Selecting City from the displayed List of Popular Cities |
|
21:28:19 |
Our city is -Bengaluru |
|
21:28:19 |
Selecting City from the displayed List of Popular Cities |
|
21:28:19 |
Get Locator for homepage-SelectCity |
|
21:28:19 |
Get Locator successful- //span[@class='sc-eEieub jpadjB'][contains(text(),'CITY')] |
|
21:28:19 |
Lookup for Element-//span[@class='sc-eEieub jpadjB'][contains(text(),'Bengaluru')] |
|
21:28:19 |
Lookup for Element successful |
|
21:28:19 |
Waiting for the element to be clickable |
|
21:28:23 |
Click on Bengaluru |
|
21:28:23 |
LookUp for testdata -language |
|
21:28:23 |
LookUp for testdata language successful.value = English |
|
21:28:23 |
Get Locator for homepage-Movies-Button |
|
21:28:23 |
Get Locator successful- //a[@class='sc-iGrrsa FYYCw'][contains(text(),'Movies')] |
|
21:28:23 |
Lookup for Element-//a[@class='sc-iGrrsa FYYCw'][contains(text(),'Movies')] |
|
21:28:23 |
Lookup for Element successful |
|
21:28:23 |
Waiting for the element to be clickable |
|
21:28:28 |
Click and Wait |
|
21:28:28 |
Get Locator for Movies-filterLanguage |
|
21:28:28 |
Get Locator successful- //div[@class='style__StyledText-sc-7o7nez-0 boewjJ'] |
|
21:28:33 |
Lookup for Elements successful |
|
21:28:33 |
Get Locator for Movies-filterClear |
|
21:28:33 |
Get Locator successful- //div[@class='commonStyles__VerticalFlexBox-sc-133848s-2 style__FilterHeader-sc-1y4pbdw-7 bWZfpU']//div[@class='commonStyles__DesktopOnlyContainer-sc-133848s-1 style__FilterHeaderCTA-sc-1y4pbdw-10 frMiDN'][contains(text(),'Clear')] |
|
21:28:33 |
Lookup for Element-//div[@class='commonStyles__VerticalFlexBox-sc-133848s-2 style__FilterHeader-sc-1y4pbdw-7 bWZfpU']//div[@class='commonStyles__DesktopOnlyContainer-sc-133848s-1 style__FilterHeaderCTA-sc-1y4pbdw-10 frMiDN'][contains(text(),'Clear')] |
|
21:28:38 |
Element not found -//div[@class='commonStyles__VerticalFlexBox-sc-133848s-2 style__FilterHeader-sc-1y4pbdw-7 bWZfpU']//div[@class='commonStyles__DesktopOnlyContainer-sc-133848s-1 style__FilterHeaderCTA-sc-1y4pbdw-10 frMiDN'][contains(text(),'Clear')] |
|
21:28:38 |
no such element: Unable to locate element: {"method":"xpath","selector":"//div[@class='commonStyles__VerticalFlexBox-sc-133848s-2 style__FilterHeader-sc-1y4pbdw-7 bWZfpU']//div[@class='commonStyles__DesktopOnlyContainer-sc-133848s-1 style__FilterHeaderCTA-sc-1y4pbdw-10 frMiDN'][contains(text(),'Clear')]"}
(Session info: chrome=90.0.4430.85)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'FASID-LEGION-Y5', ip: '<IP_ADDRESS>', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_281'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 90.0.4430.85, chrome: {chromedriverVersion: 90.0.4430.24 (4c6d850f087da..., userDataDir: /tmp/.com.google.Chrome.YNez26}, goog:chromeOptions: {debuggerAddress: localhost:45969}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true, webdriver.remote.sessionid: e094fe1504799d462db92f06f40...}
Session ID: e094fe1504799d462db92f06f409f96b
*** Element info: {Using=xpath, value=//div[@class='commonStyles__VerticalFlexBox-sc-133848s-2 style__FilterHeader-sc-1y4pbdw-7 bWZfpU']//div[@class='commonStyles__DesktopOnlyContainer-sc-133848s-1 style__FilterHeaderCTA-sc-1y4pbdw-10 frMiDN'][contains(text(),'Clear')]} |
|
21:28:38 |
This Test Step failed, Capturing Screenshot. |
|
21:28:38 |
capturing Screenshot |
|
21:28:38 |
|


1. Create a trip
Give it a name and add a few dates, destinations and budgets
2.  Put together your plan
See everyone’s preferences clearly and in one place
4. Be ready to book
Gather full names, fad diets and dates of birth all at the tap of a button


Eduardo Barrientos
I'm an Operations Manager with +6 years of experience in Tech start-ups (like Uber, Envia.com, BEDU), working in operational and management roles. I have grown operations for profitable growth, hired and managed teams of over 40 people, and set up strategies for the continued success of the companies I have worked with.
My core competencies are Operations Management, Project Management, Team Management & Development, Business Analysis, and Business Strategy.
I have managed and hired Operations, Sales, Marketing, and Customer Success departments.


I've set up a github repository with some useful setup files. I hope these are useful and straight forward. You can download the whole folder using the links at the top of the page or follow the links below to individual files. The full wiki and repository is here
I hope as you come across things you add them to this repository to share info across the research group. For more info please check out @hlburns github page.
Having trouble with Pages? Check out the documentation at http://help.github.com/pages or contact<EMAIL_ADDRESS>and we’ll help you sort it out.


Class CommandTester
Namespace: Symfony\Component\Console\Tester
Author: Fabien Potencier<EMAIL_ADDRESS>Located at vendor/Symfony/Component/Console/Tester/CommandTester.php
Author: Fabien Potencier<EMAIL_ADDRESS>Located at vendor/Symfony/Component/Console/Tester/CommandTester.php
public
|
|
public
integer
|
|
public
string
|
|
public
InputInterface
|
|
public
OutputInterface
|


Geist Reservoir has an aquatic vegetation problem. Weeds and mud clog our shorelines, marinas, and boating channels. Over time, the Reservoir’s asthetic appeal and watersport recreation opportunities will become increasingly limited.
We have a vegetation problem because our Reservoir is full of nutrients. Most of these nutrients come from the mud (called sediment) at the bottom of the Reservoir. Mud comes from soil erosion.
Soil erosion is the result of a complex calculation involving rain patterns, soil conditions, geography, and land management practices. The only variable we control in this equation is land management. In other words, we cannot improve our Reservoir until we improve our land. Here’s why:
When it rains in Central Indiana, it pours. And when it pours on our mostly clay soils, water pools on the surface and then overflows into our storm drains, retention ponds, rivers, streams, and Reservoir. Heavy rains can overwhelm our drainage systems. When this happens we get soil erosion. Erosion deposits dirt into our water systems where it becomes food for aquatic plants. Incidently, this is why we have mud in “Mud Creek”.
Up until a few years ago, Geist Reservoir had an algae problem. This happened because 1) algae is very good at consuming nutrients and 2) nothing in the Reservoir is very good at consuming algae. Algae blooms limited sunlight from entering the water which in turn restricted aquatic plant growth. Then invasive zebra mussels happened.
Zebra mussels are so good at eating algae that since their introduction to Geist Reservoir a few years ago, we no longer have algae blooms. Except for days following heavy rains (soil erosion), water is extremely clear.
Aquatic plants, like algae, need light and nutrients to survive. Thanks to the zebras, light now penetrates down to the nutrient rich mud at the bottom our Reservoir. The algae population is kept in check by zebra mussels. And the aquatic plants are finally getting their day in the sun.
We humans also like a day in the sun. To make this possible, we spray the Reservoir with aquatic herbicides. This is a fairly cheap way to keep the Reservoir usable for a season. It is not a great long term solution.
Dredging might be part of a long term solution. But without changes to our land management practices, erosion will fill in the dredged areas after a few heavy rain storms.
So, here is how we can fix our Reservoir:
Step 1: Vote
Soil erosion rates are the result of zoning laws that dictate land management practices. We can expect no significant change soil erosion rates until our elected officials upgrade zoning laws and enforce better land management practices. Do you think it is possible to grow our economy and have environmentally responsible zoning that protects our Reservoir? Please keep this in mind next time you vote.
Step 2: Plant more plants
Central Indiana soil is mostly clay. Plants break up clay. Plant roots make channels in soil and improve water infiltration. Herbacious plant parts decompose and transform clay into hummus. Over time, plants make clay porous and fertile. Rainwater absorption rates improve. Less runoff means less soil erosion. Less soil erosion means less food for aquatic plants in our Reservoir.
The best plants to plant are the ones with really deep roots. Trees and shrubs are great. So are ornamental grasses and perennial flowers. But the biggest opportunity for improvement is with your lawn.
Typical Indiana lawns use grass species that have very short roots. Short root lawns do hold much water and do not break up clay soil. To look good, they require lots of fertilizer, irrigation, and weekly mowning. And after the first 1/4” of rain, they don’t absorb much water.
If you want to help our Reservoir and save a bit of money on lawn care, over-seed your lawn with drought tolerant grass seed. Drought tolerant seeds are newer cultivars of rye and fescue that have a nice thin blade like bluegrass but put down a very deep root. They require significantly less water and fertilizer to stay green.
Drought tolerant seed blends are available everywhere from Costco and Home Depot to garden centers and specialty shops like Advanced Turf Solutions in Noblesville. Some of the more popular brands are Pennington Smart Seed, Scotts tall fescue blends, and Perals Premium. Perals claims a 12” root, once a month mowing, and once a year fertilizer. You can get it at Costco.
The best time to over-seed a lawn is right now. You should do it.
Step 3: Get involved
It takes a village to fix a Reservoir. That’s where the Geist Lake Coalition comes in. The GLC works with the Department of Natural Resources and the City of Fishers to find ways to maximize the recreational and aesthetic value of our Reservoir.
The GLC needs forward thinking leaders in government, retail, utilities, real estate, watersport recreation, education and the landscape industry. They need farmers and homeowners and entrepreneurs. We need people that want to help develop meaningful corrective actions that are economically viable and have long term benefits.
Thank you for being part of the solution. The consequences of inaction are too high for our home values, our environment, and our economy.


About Us
Welcome to the Volunteer Scheduler. This is an application in which you
can find volunteer organization to volunteer for. We are a software engineering
of 3 total people that have worked on this application. The purpose that came
behind this project was to bring together volunteer and volunteer organizations.
This website application is trying to remove any middle men needed in the process.
If you don't have an account sign up here. If you do have an account you may also
login here.
Home
Login
Sign Up
Event


Chartist Charts
Advanced Smil Animations
Example of Horizontal bar chart.
Simple line chart
Example of Horizontal bar chart.
Line Scatter Diagram
Example of Horizontal bar chart.
Line chart with tooltips
Example of Horizontal bar chart.
Line chart with area
Example of Horizontal bar chart.
Bi-polar Line chart with area only
Example of Horizontal bar chart.
SVG Path animation
Example of Horizontal bar chart.
Line Interpolation / Smoothing
Example of Horizontal bar chart.
Different configuration for different series
Example of Horizontal bar chart.
SVG Animations chart
Example of Label placement chart.
Bi-polar bar chart
Example of Horizontal bar chart.
Overlapping bars on mobile
Example of Horizontal bar chart.
Multi-line labels
Example of Horizontal bar chart.
Stacked bar chart
Example of Horizontal bar chart.
Horizontal bar chart
Example of Horizontal bar chart.
Extreme responsive configuration
Example of Horizontal bar chart.
Distributed series
Example of Horizontal bar chart.
Label placement
Example of Label placement chart.
Animating a Donut with Svg.animate
Example of Horizontal bar chart.
Simple pie chart
Example of Label placement chart.
Pie chart with custom labels
Example of Horizontal bar chart.
Gauge chart
Example of Label placement chart.


Aloha Apparel Co. sells only the the finest ready-to-travel clothing. Browse our current selection of products or sign-up for updates below.
Dresses
$129.00
Bags
$69.00
Denim
$89.00
$99.00
Shirts
Stay updated on our latest product releases, be first to find out about upcoming sales, and get free style tips from our blog. Unsubscribe at any time.


?*
VJ;Ô*
%i7<’
iWjW
|i*UU
talwM)
-
(
IWÈ
*|
^UittUcA^
IL
Jy
Ho/-
i^jtš
01500881
Legend -
Level of confidence that token is an accurately-transcribed word
extremely low
very low
low
undetermined
medium
high
very high


JavaScript is disabled on your browser.
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
C
F
G
I
L
Q
R
W
C
clara.rules
- package clara.rules
The Java API for working Clara rules.
F
fireRules()
- Method in interface clara.rules.
WorkingMemory
Fires any pending rules in the working memory, and returns a new working memory with the rules in a fired state.
G
getResult(String)
- Method in interface clara.rules.
QueryResult
Returns the object matching the field specified in the query.
I
insert(Iterable<?>)
- Method in interface clara.rules.
WorkingMemory
Returns a new working memory with the given facts inserted
L
loadRules(String...)
- Static method in class clara.rules.
RuleLoader
Returns a new working memory with rules loaded from the given namespaces.
Q
query(String, Map<String, ?>)
- Method in interface clara.rules.
WorkingMemory
Runs the query by the given name against the working memory and returns the matching results.
query(String)
- Method in interface clara.rules.
WorkingMemory
Runs the query by the given name against the working memory and returns the matching results.
QueryResult
- Interface in
clara.rules
Result of a Clara query.
R
retract(Iterable<?>)
- Method in interface clara.rules.
WorkingMemory
Returns a new working memory with the given facs retracted
RuleLoader
- Class in
clara.rules
Clara rule loader.
RuleLoader()
- Constructor for class clara.rules.
RuleLoader
W
WorkingMemory
- Interface in
clara.rules
An immutable working memory of Clara rules.
C
F
G
I
L
Q
R
W
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes


Introduction
Dennis Hawelka, known to the e-sports world as INTERNETHULK, was a German player who began playing Overwatch in 2016. He became well known due to his skill and e-sports acheivements, eventually transitioning to a coaching role with Team Liquid.
Major E-sports Accomplishments
- 2016
- October 31 - Second place - Overwatch Open
- December 3 - First place - Overwatch APEX Season 1
- December 18 - First place - Major League Gaming Vegas 2016
- 2017
- October 31 - Fifth-Eighth place - Overwatch APEX Season 2
Legacy
Following his passing, his life has inspired many gamers to be a positive influence to the e-sports community. In 2017, Blizzard Entertainment announced the Dennis Hawelka Award to be awarded to the player with the most positive impact on the Overwatch community at the end of each Overwatch League season.


FHanalyze package¶
The FHanalyze package analyzes the readings that were stored into the Raspberry Pi’s mongo db by calls to the FHmonitor package.
Analyze class¶
The analyze class takes the power readings from the mongodb store and provides methods to analyze the readings.
-
class
FHanalyze.analyze.
Analyze
(mongodb_path='mongodb://<IP_ADDRESS>:27017', db_str='FitHome', collection_name='aggregate')[source]¶ The Analyze class connects to the mongodb collection that contains the power readings saved by the FHmonitor.
To get an instance of the Analyze class, pass into __init__:
- Parameters
mongodb_path – The mongodb connection string. See the connection string documentation. Defaults to “mongodb://<IP_ADDRESS>:27017”.
db_str – The database within mongodb that holds the readings. Defaults to “FitHome”.
collection_name – The collection within the database where the readings are stored. Defaults to “aggregate”.
-
get_DataFrame_for_date
(date_str='*')[source]¶ Return the active Power readings for a specific date or for all dates.
- Parameters
date – isodate formatted date or “*”. Defaults to “*”
- Returns
A pandas DataFrame with a dateindex and a column named ‘pA’ of active power readings.
-
get_always_on_watts
(date_str='*', start_time='*', end_time='*', quantile=0.3)[source]¶ Return the amount of power (in watts) that are wasted by appliances that are always plugged in and use electricity, even when the appliance is not being used.
- Parameters
date_str – Either a date in isodate format to use readings in the calculation for that date or ‘*’ to use all available dates for the calculation. Defaults to ‘*’
start_time – Use readings that are taken at this time. The start_time is the beginning of an amount of time to filter results. Defaults to ‘*’
end_time – Use readings that are taken before this time. end_time is used with start_time to filter readings to be within the time between start_time and end_time. Defaults to ‘*’
quantile – A floating point number between 0 and 1 that cuts the distribution of readings. For example, a value of .3 means the always_on_watts value is taken at the place where 30% of the readings are found. Defaults to .3.
-
FHanalyze.analyze.
logger
= <Logger FHanalyze.analyze (WARNING)>¶ Query the Raspberry Pi’s mongo db for active and reactive power readings stored by calls to the FHmonitor pypi package.


Key-value entry. Nodes with a hash field of MOVED
are special,
and do not contain user keys or values. Otherwise, keys are never
nil
, and NULL
value
fields indicate
that a node is in the process of being deleted or created. For purposes of
read-only access, a key may be read before a value, but can only be used
after checking value to be +!= NULL+.
Encodings for special uses of Node hash fields. See above for explanation.
# File lib/thread_safe/atomic_reference_cache_backend.rb, line 254 def initialize(hash, key, value, next_node = nil) super() @key = key self.lazy_set_hash(hash) self.lazy_set_value(value) self.next = next_node end
# File lib/thread_safe/atomic_reference_cache_backend.rb, line 294 def key?(key) @key.eql?(key) end
# File lib/thread_safe/atomic_reference_cache_backend.rb, line 316 def locked? self.class.locked_hash?(hash) end
# File lib/thread_safe/atomic_reference_cache_backend.rb, line 298 def matches?(key, hash) pure_hash == hash && key?(key) end
# File lib/thread_safe/atomic_reference_cache_backend.rb, line 302 def pure_hash hash & HASH_BITS end
Spins a while if LOCKED
bit set and this node is the first of
its bin, and then sets WAITING
bits on hash field and blocks
(once) if they are still set. It is OK for this method to return even if
lock is not available upon exit, which enables these simple single-wait
mechanics.
The corresponding signalling operation is performed within callers: Upon
detecting that WAITING
has been set when unlocking lock (via a
failed CAS from non-waiting LOCKED
state), unlockers acquire
the cheap_synchronize
lock and perform a
cheap_broadcast
.
# File lib/thread_safe/atomic_reference_cache_backend.rb, line 273 def try_await_lock(table, i) if table && i >= 0 && i < table.size # bounds check, TODO: why are we bounds checking? spins = SPIN_LOCK_ATTEMPTS randomizer = base_randomizer = Util::XorShiftRandom.get while equal?(table.volatile_get(i)) && self.class.locked_hash?(my_hash = hash) if spins >= 0 if (randomizer = (randomizer >> 1)).even? # spin at random if (spins -= 1) == 0 Thread.pass # yield before blocking else randomizer = base_randomizer = Util::XorShiftRandom.xorshift(base_randomizer) if randomizer.zero? end end elsif cas_hash(my_hash, my_hash | WAITING) force_aquire_lock(table, i) break end end end end
# File lib/thread_safe/atomic_reference_cache_backend.rb, line 306 def try_lock_via_hash(node_hash = hash) if cas_hash(node_hash, locked_hash = node_hash | LOCKED) begin yield ensure unlock_via_hash(locked_hash, node_hash) end end end
# File lib/thread_safe/atomic_reference_cache_backend.rb, line 320 def unlock_via_hash(locked_hash, node_hash) unless cas_hash(locked_hash, node_hash) self.hash = node_hash cheap_synchronize { cheap_broadcast } end end


--- layout: baseblog title: Blog tags: [Self Help ,Building a Better self ,Jordan Tomasone,Blog] permalink: /blog/ ---
{{ post.content | strip_html | truncatewords: 30 }}


|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.logging.LogFactory | +--org.apache.commons.logging.impl.LogFactoryImpl
Concrete subclass of LogFactory
that implements the
following algorithm to dynamically select a logging implementation
class to instantiate a wrapper for.
org.apache.commons.logging.Log
to identify the
requested implementation class.org.apache.commons.logging.Log
system property
to identify the requested implementation class.org.apache.commons.logging.impl.Log4JLogger
.org.apache.commons.logging.impl.Jdk14Logger
.org.apache.commons.logging.impl.SimpleLog
.If the selected Log
implementation class has a
setLogFactory()
method that accepts a LogFactory
parameter, this method will be called on each newly created instance
to identify the associated factory. This makes factory configuration
attributes available to the Log instance, if it so desires.
This factory will remember previously created Log
instances
for the same name, and will return them on repeated requests to the
getInstance()
method. This implementation ignores any
configured attributes.
| Field Summary | |
protected java.util.Hashtable |
attributes
Configuration attributes. |
protected java.util.Hashtable |
instances
The Log instances that have
already been created, keyed by logger name. |
static java.lang.String |
LOG_PROPERTY
The name of the system property identifying our Log
implementation class. |
protected static java.lang.String |
LOG_PROPERTY_OLD
The deprecated system property used for backwards compatibility with the old LogSource class. |
protected java.lang.reflect.Constructor |
logConstructor
The one-argument constructor of the Log
implementation class that will be used to create new instances. |
protected java.lang.Class[] |
logConstructorSignature
The signature of the Constructor to be used. |
protected java.lang.reflect.Method |
logMethod
The one-argument setLogFactory method of the selected
Log method, if it exists. |
protected java.lang.Class[] |
logMethodSignature
The signature of the setLogFactory method to be used. |
| Fields inherited from class org.apache.commons.logging.LogFactory |
factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, SERVICE_ID |
| Constructor Summary | |
LogFactoryImpl()
Public no-arguments constructor required by the lookup mechanism. |
| Method Summary | |
java.lang.Object |
getAttribute(java.lang.String name)
Return the configuration attribute with the specified name (if any), or null if there is no such attribute. |
java.lang.String[] |
getAttributeNames()
Return an array containing the names of all currently defined configuration attributes. |
org.apache.commons.logging.Log |
getInstance(java.lang.Class clazz)
Convenience method to derive a name from the specified class and call getInstance(String) with it. |
org.apache.commons.logging.Log |
getInstance(java.lang.String name)
Construct (if necessary) and return a Log instance,
using the factory's current set of configuration attributes. |
protected java.lang.String |
getLogClassName()
Return the fully qualified Java classname of the Log
implementation we will be using. |
protected java.lang.reflect.Constructor |
getLogConstructor()
Return the Constructor that can be called to instantiate
new Log instances. |
protected boolean |
isJdk13LumberjackAvailable()
Is JDK 1.3 with Lumberjack logging available? |
protected boolean |
isJdk14Available()
Return true if JDK 1.4 or later logging
is available. |
protected boolean |
isLog4JAvailable()
Is a Log4J implementation available? |
protected org.apache.commons.logging.Log |
newInstance(java.lang.String name)
Create and return a new Log
instance for the specified name. |
void |
release()
Release any internal references to previously created Log
instances returned by this factory. |
void |
removeAttribute(java.lang.String name)
Remove any configuration attribute associated with the specified name. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set the configuration attribute with the specified name. |
| Methods inherited from class org.apache.commons.logging.LogFactory |
getContextClassLoader, getFactory, getLog, getLog, newFactory, release, releaseAll |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String LOG_PROPERTY
Log
implementation class.
protected static final java.lang.String LOG_PROPERTY_OLD
LogSource
class.
protected java.util.Hashtable attributes
protected java.util.Hashtable instances
Log
instances that have
already been created, keyed by logger name.
protected java.lang.reflect.Constructor logConstructor
Log
implementation class that will be used to create new instances.
This value is initialized by getLogConstructor()
,
and then returned repeatedly.
protected java.lang.Class[] logConstructorSignature
protected java.lang.reflect.Method logMethod
setLogFactory
method of the selected
Log
method, if it exists.
protected java.lang.Class[] logMethodSignature
setLogFactory
method to be used.
| Constructor Detail |
public LogFactoryImpl()
| Method Detail |
public java.lang.Object getAttribute(java.lang.String name)
null
if there is no such attribute.
getAttribute
in class LogFactory
name
- Name of the attribute to returnpublic java.lang.String[] getAttributeNames()
getAttributeNames
in class LogFactory
public org.apache.commons.logging.Log getInstance(java.lang.Class clazz) throws LogConfigurationException
getInstance(String)
with it.
getInstance
in class LogFactory
clazz
- Class for which a suitable Log name will be derived
LogConfigurationException
- if a suitable Log
instance cannot be returnedpublic org.apache.commons.logging.Log getInstance(java.lang.String name) throws LogConfigurationException
Construct (if necessary) and return a Log
instance,
using the factory's current set of configuration attributes.
NOTE - Depending upon the implementation of
the LogFactory
you are using, the Log
instance you are returned may or may not be local to the current
application, and may or may not be returned again on a subsequent
call with the same name argument.
getInstance
in class LogFactory
name
- Logical name of the Log
instance to be
returned (the meaning of this name is only known to the underlying
logging implementation that is being wrapped)
LogConfigurationException
- if a suitable Log
instance cannot be returnedpublic void release()
Log
instances returned by this factory. This is useful in environments
like servlet containers, which implement application reloading by
throwing away a ClassLoader. Dangling references to objects in that
class loader would prevent garbage collection.
release
in class LogFactory
public void removeAttribute(java.lang.String name)
removeAttribute
in class LogFactory
name
- Name of the attribute to removepublic void setAttribute(java.lang.String name, java.lang.Object value)
null
value is equivalent to calling
removeAttribute(name)
.
setAttribute
in class LogFactory
name
- Name of the attribute to setvalue
- Value of the attribute to set, or null
to remove any setting for this attributeprotected java.lang.String getLogClassName()
Log
implementation we will be using.
protected java.lang.reflect.Constructor getLogConstructor() throws LogConfigurationException
Return the Constructor
that can be called to instantiate
new Log
instances.
IMPLEMENTATION NOTE - Race conditions caused by
calling this method from more than one thread are ignored, because
the same Constructor
instance will ultimately be derived
in all circumstances.
LogConfigurationException
- if a suitable constructor
cannot be returnedprotected boolean isJdk13LumberjackAvailable()
protected boolean isJdk14Available()
Return true
if JDK 1.4 or later logging
is available. Also checks that the Throwable
class
supports getStackTrace()
, which is required by
Jdk14Logger.
protected boolean isLog4JAvailable()
protected org.apache.commons.logging.Log newInstance(java.lang.String name) throws LogConfigurationException
Log
instance for the specified name.
name
- Name of the new logger
LogConfigurationException
- if a new instance cannot
be created
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Techně was founded on a simple principle.
“Technology should be leveraged in solving problems.”
It remains our guiding light in the provision of Technology enabled solutions.
We are actively expanding our network of partners across the globe. We have strong ties to parties who are committed to carrying forward our vision as well as that of our clients.
Leverage our experience in your IT related needs specific to your industry
Leverage our relationships, and thought leaders
Promote your services to our community, and markets


Set MovementType
 Shall be filled in with:
 "GR" - Delivery note;
 "GT" - Transport guide (include here the global transport documents);
 “GA” – Transport document for own fixed assets;
 “GC” - Consignment note;
 “GD” – Return note.
 <xs:element ref="MovementType"/>
Signature
public function setMovementType(MovementType
$movementType )


I really like constellations and LEDs, so I thought it would be cool to incorporate those into a lamp using a some kind of light projection. I also wanted to try to get more familiar with using an Arduino, so here's my final product. :)
The blue and white LEDs inside of the lamp simulate day and night as they are rotating and the city silhouettes I chose are places that are important to me that I have either been to or would like to go.
My original sketches consisted of ideas for using Neopixels, accelerometers, buttons, tissue paper, black lights, projections, and shadows. I also sketched ideas for the lamp design and base. I didn’t want to use fingers to hold the edges together, but for the thickness of wood I wanted to use, not many things would have worked well.
At first I really wanted to do a shadow projection onto the walls, so on the left I have a test piece where I cut out the skyline of the city and shined a flashlight on it.
As for city silhouettes, I found images of the skylines and used Illustrator and Photoshop to trace the images and get them to cut out around the outer edge. This part took me a while because looking for an appropriate skyline and then editing it to see if it achieved the effect I wanted was difficult. For my hometown in China, there weren't many pictures of the skyline, so I had to improvise and stitch buildings together and draw stuff in.
For the electronics, I have an LED base and components on the bottom of the lamp. For the LED base, I laser cut holes for the LEDs into the disk. On the back, I soldered resistors, wires, and banana clips together and fit the battery packs on top.
I used a potentiometer to control the speed of rotation of the servo that spins the LED base. I wasn’t originally planning on making the speed variable, so the placement of the potentiometer isn’t the most ergonomic. That can be easily fixed with a laser cut hole on the outside of the lamp.
The LEDs diffused too much light to see the shadow projection clearly, so I ended up etching the acrylic with an orbital sander to achieve the look on the right. When attempting to raster it with a laser cutter, the edges warped. After sanding it the acrylic, I laser cut the stars, glued everything together, and put the lights in!
For a project that I finished within a week, I'm pretty pleased with the results. :)


To build this sample:
The main entry point looks at the CGI variable request_method, which was asserted by the CGI executable shell, and calls processMethod with its value. Usually a 'get' request is used when the user wants to receive a form for the first time, and a 'post' request is used to submit information. You can control which type of request is used by setting 'method=' in your <FORM ...> definition.
The predicate processMethod/1 calls various helper predicates to check the information on the form and either thanks the user or gives them the opportunity to edit and fix the inputs. It generates HTML for the output form using the extended predicate cgiSend/1.cgiMain :- cgi(request_method, RM), processMethod(RM). cgiMain :- throw($cgiMain failed\n$).
Here is one of the checking predicates. It looks at the various fact/2 clauses that were asserted in the dynamic database by the CGI executable shell. Each fact represents an input field that was filled in on the original HTML form. In this case it sees if the user has requested a catalog or newsletters. If not,then there is no potential problem. If so, then make sure there is information entered for the three address fields.% % For the initial get, simply return our HTML form % processMethod('GET') :- cgiSend($Content-type: text/html$), cgiSend($$), cgiSendLocalHTMLFile('infoform.htm').% % After the user has filled in the form, we need to check it, then % send a response back. % processMethod('POST') :- sendHeader, checkFacts, writeRequestLog, cgiSend($Thank you! Your information request has been successfully submitted!$), cgiSend($
Return to Amzi!'s home page.$), sendFooter. processMethod('POST') :- cgiSend($
Press the 'Back' or '<-' button on your browser to change your form and resubmit it.$), sendFooter.
checkAddress :- fact(request, RL), not(member(catalog, RL)), not(member(newsletters, RL)), !. checkAddress :- fact(address1, A1), fact(city, C1), fact(country, C2), !. checkAddress :- cgiSend($Please fill in your mailing address including street, city, region and country.$), fail, !.
Installing CGI programs can be complex, and depends on the web server you are using. Regardless of the web server, the following tasks must be completed:
To help in debugging CGI scripts, you will want to consult the error log files for your server.
Look in the Hello Sample for details on running CGI programs under various web servers.


Note: Magic syntax for MDW Automated Testing is deprecated. For new test cases, Groovy syntax is recommended.
Similar to Unix Shell, each command in the command file is a list of words in the same line, delimited by spaces. The first word is called the command and the rests are arguments. For arguments that contain spaces, newlines, and other special characters, there are several escaping mechanisms.
""
).message Bus <<MyMessage <ping> Hello, World! </ping> MyMessage>>Note that there are two newlines at the end of argument: the first is part of the message, and the second is part of the end tag. There will be only one newline if the message text does not end with a newline.
message Bus @MyMessage.xml
The following lists all the commands currently supported along with their expected arguments and descriptions.
export "My Package/0.8" package.xml
import @myPackage.xml
"#"
(including double-quotes as pound is
a special character) and the tester will generate a master request ID that contains only
numeric characters.
The location of this command is insignificant as it is pre-processed.
Bus
, Jms
, WebService
(requires that the message be wrapped in a SOAP envelope),
RestfulWebService
, Ejb
(for MDW 5.2, this is really
going through RMI), or Default
(use the communication protocol the designer
is using). The message can contain filters which will be replaced
as described in the section Filtering.
{$MasterRequestId}
: replaced by the master request ID of the test case run.{$ProcessInstanceId}
: replaced by the ID of the process instance
of the given process name and the master request ID of the test case run.{$ActivityInstanceId}
: replaced by the ID of the activity instance
with the given activity logical ID
in the process instance of the given process name and the master request ID
of the test case run.{$variable-name}
: replaced by the value of the variable instance
with the given name in the process instance of the given process name and the master request ID
of the test case run.notify ModifyPlugInCompleted-MODIFY_PLUGIN:{$ActivityInstanceId}-{$OrderNumber} @modifyplugin_realresponse.xml Task1ApplyChangesServiceProcess A7
MyProcess/3.2
. Otherwise the latest version of the process
will be launched.
$
, and treats it as an XPath otherwise.
A sample command to match a request message with root element tag MyRequest
looks like below in XPath syntax:
stub MyRequest 5 @MyResponse.xmland it may look like below using MagicBox syntax:
stub <<MYRESP &$$=="MyRequest" MYRESP>> 5 @MyResponse.xmlThe argument delay specifies delays in seconds for sending the response, and this may be useful for load testing to emulate the speed of external systems. The argument response can contain filters, especially filters that refer to the content of the corresponding request.
MyProcess/3.2
.
You must specify at least one process.
Completed
, Cancelled
, Failed
,
Waiting
, and Hold
. If the matching
event is not detected within timeout seconds, the test case is failed.
There are two variants of this command:
Completed
status.As we have mentioned a few times before, the filtering mechanism is useful in many situations, including:
There are 4 types of filter tokens that can be used with one or more situations above.
The syntax for place holder is #{$place-holder-name}
.
For functional testing, the tester prompts for the actual values to replace,
and for regression/load testing, the values are taken from the test case
file placeHolderMap.csv
.
Additionally, the following two place holders have special meaning:
#{$MasterRequestId}
: will be replaced by the master request ID
of the test case run.#{$RunNumber}
: for load testing, a test case is run
multiple times, and this is replaced by the run number (starting from 0);
for regression testing, this is always replaced by 0.Place holders can be used for sending messages, sending stub responses as well as for standard results.
For compatibility with earlier versions of MDW (all MDW 5.0 and 5.1 versions,
MDW 4 versions before 4.5.20), and in functional tester only,
the place holders can also take the syntax {$place-holder-name}
,
namely without the leading #
. Additionally,
%%M%%
is treated the same as #{$MasterRequestId}
.
For sending stub responses, there may be a need to copy some dynamic
data from the request messages to the response messages (e.g. correlation ID).
The syntax #{Magic-box-expression}
can be used to
places the result of evaluating the expression in Magic Box syntax,
if the request message is in XML or JSON format.
The documentation for MagicBox expression can be found
here.
For expected results, we have a special filter token, #{#}
, that
can match any number (a sequence of digits) in the actual results.
This is handy in many cases
where a number such as document ID is generated and we do not really care
whether its value is correct.
When sending process notification to notify waiting activity instances,
the event names registered by the activity instances quite often
contains dynamic data such as master request ID, process instance ID,
activity instance ID, or process variable instance values.
The event name parameter of the command notify
allows
the following server side place holders:
{$MasterRequestId}
: replaced by the master request ID of the test case
run.{$ProcessInstanceId}
: replaced by the ID of the process instance
of the given process and the master request ID of the test case run.{$ActivityInstanceId}
: replaced by the ID of activity instance
of the activity with the given logical ID, in the process instance
of the given process and the master request ID of the test case run.{$variable-name}
: replaced by the value of
the variable instance in the process instance
of the given process and the master request ID of the test case run.These place holders are called server side place holders because their values are replaced on the server side when processing the notify command, as the relevant information can only be derived on the server side. The process name and/or the activity logical ID must be supplied to the server through the third and fourth arguments of the notify command, to allow the filtering to happen.
Server side place holders can only be used when there is exactly one process instance for the given process name and the master request ID of the test case run. Similarly, when activity instance ID is used as a place holder, there needs to be exactly one activity instance for the activity of the given logical ID in the matching process instance.
The loader tester can run most test cases defined for regression testing.
The following commands are ignored (null operation) for load testing:
import
, export
, delete_process
,
verify_process
and verify_response
.
The load tester runs each of the selected test cases multiple times
(the number is specified in the text field Number of runs
in the start dialog). You can use placeHolderMap.csv
to supply different values for different runs. The load tester
uses the rows in the file sequentially. If the number of runs
is larger than the number of rows in the file, the load tester
will repeat from the first row again once the last row is used.
The special place holder #{$MasterRequestId}
will
be generated with different values for different runs (please do not
specify 0 as run interval, as the uniqueness of the master request ID
generation depends on the current time in terms of seconds).
The special place holder #{$RunNumber}
is assigned as
0, 1, 2, and so on for each run of the same case.
Currently a single run number is specified and every selected case runs the same number of times. A future extension is to support different numbers of runs for different test cases, better emulating a real production environment.
The load tester does not validate the correctness of the cases as the regression tester does, instead it focus on the overall throughput. So test cases to be used for load testing should be good cases, namely verified already by the regression tester.
The load tester does not generate any per-case result files. Instead, a summary report about some performance statistics is generated and placed directly under the directory specified by Suite Result Directory.


| Home | Trees | Indices | Help |
|
|---|
|
|
Tools for doing dynamic imports.
Since: 0.3
|
|||
|
ModuleFinder This is a special module finder object that executes a collection of callables when a specific module has been imported. |
|
|||
|
|||
|
|||
|
|
|||
post_load_hooks = {} A list of callables to be executed when the module is imported. |
|||
loaded_modules =
List of modules that have already been loaded. |
Imports: sys
|
Run all hooks for a module. Load an unactivated "lazy" module object. |
Splits a module name into its parent and child parts. >>> split_module('foo.bar.baz') 'foo.bar', 'baz' >>> split_module('foo') None, 'foo' |
Call 'hook' must accept one argument: the module object named by 'name', which must be a fully qualified (i.e. absolute) module name. The hook should not raise any exceptions, or it will prevent later hooks from running. If the module has already been imported normally, 'hook(module)' is called immediately, and the module object is returned from this function. If the module has not been imported, then the hook is called when the module is first imported. |
|
loaded_modulesList of modules that have already been loaded.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Sep 7 23:17:40 2009 | http://epydoc.sourceforge.net |


@(showingForm: Form[models.products.Showing],user: models.users.User) @import helper._ @import models.products.Movie @main("Add Showing",user){
Add a new showing
@form(action=routes.HomeController.addShowingSubmit(), 'class -> "form-horizontal", 'role -> "form") { @* CSRF attack prevention *@ @* This token, sent by the controller, will be used to authenticate the form submission *@ @CSRF.formField @select( showingForm("movie.id"), options(Movie.options), '_label -> "Movie", '_default -> "-- Choose a movie --", '_showConstraints -> false, 'class -> "form-control" ) @inputDate(showingForm("date"), args = 'size -> 10, '_label -> "Date", 'class -> "form-control") @inputText(showingForm("time"), '_label -> "time", 'class -> "form-control") @inputText(showingForm("tickets"), '_label -> "tickets", 'class -> "form-control") @inputText(showingForm("price"), '_label -> "Price", 'class -> "form-control") @inputText(showingForm("id"), '_label -> "", 'hidden -> "hidden") } @* end of form *@ } @* end of main *@


Computer Graphic, Contest, & Projects
Digital Art Club, is a After School Club that students go to on tuesdays from 3:00 to 4:00 and during that time students get to make art from all kinds of interesting projects from the computer. All while learning basic Computer Graphics Skills. Students get to make all kinds of art for not only enjoyment but also for Projects and Contests. Students have also have made artwork for classes and teachers. While all this sounds cool enough already, This Year students got an amazing Scholarship oppertunity. From the American Academy of Art, they created an amazing deal for high school seniors, mostly any seinor interested in Grapic Design or Photography, can enter a compa


Salary Calculator
Add Employee
Submit
Employees
First Name
Last Name
ID
Title
Annual Salary
Total Monthly: 0


Transient pseudohypoaldosteronism in obstructive renal disease with transient reduction of lymphocytic aldosterone receptors.
Abstract
Results in two affected infants. We report two patients with transient pseudohypoaldosteronism due to obstructive renal disease. Both patients presented with a salt-losing episode simulating adrenal insufficiency. In one patient, transient reduction of aldosterone receptors could be documented, while in the second patient the clinical and biochemical parameters were consistent with transient pseudohypoaldosteronism. Aldosterone receptors were normal in both patients


Surely it will work just fine.
Both nested functions are created within the same outer Lexical Environment, so they share access to the same count
variable:
```js run function Counter() { let count = 0;
this.up = function() { return ++count; };
this.down = function() { return –count; }; }
let counter = new Counter();
alert( counter.up() ); // 1 alert( counter.up() ); // 2 alert( counter.down() ); // 1 ```


module type S =sig
..end
Types that implement this interface have a concrete representation, that can be serialized and deserialized.
The only requirement is to provide a version
value, that
represents a version number of the representation. Every time
the representation changes, the version should be incremented.
The interface allows to implement more than one format and several versions of the same format. By default, the OCaml Marshal format is used.
All Regular
modules include this interface. The Regular
modules provide sexp
and bin_io
formats in addition to
the Marshal
. They may provide more formats.
Given a module Bil
that implements Regular
interface, it
is possible to read a value of type Bil.t
as simple, as:
let prog = Bil.Io.read filename
type
t
typeinfo =
string * [ `Ver of string ] * string option
name,Ver v,desc
information attached to a particular
reader or writer.val version : string
Serializers that are derived from a data representation must have the same version as a version of the data structure, from which it is derived. This kind of serializers can only read and write data of the same version.
Other serializers can actually read and write data independent on its representation version. A serializer, that can't store data of current version simply shouldn't be added to a set of serializers.
It is assumed, that if a reader and a writer has the same name and version, then whatever was written by the writer should be readable by the reader. The round-trip equality is not required, thus it is acceptable if some information is lost.
It is also possible, that a reader and a writer that has the
same name are compatible. In that case it is recommended to use
semantic versioning.
val size_in_bytes : ?ver:string -> ?fmt:string -> t -> int
size_in_bytes ?ver ?fmt datum
returns the amount of bytes
that is needed to represent datum
in the given format
and versionval of_bytes : ?ver:string -> ?fmt:string -> Std.bytes -> t
of_bytes ?ver ?fmt bytes
deserializes a value from bytes.val to_bytes : ?ver:string -> ?fmt:string -> t -> Std.bytes
to_bytes ?ver ?fmt datum
serializes a datum
to a sequence of
bytes.val blit_to_bytes : ?ver:string ->
?fmt:string -> Std.bytes -> t -> int -> unit
blit_to_bytes ?ver ?fmt buffer datum offset
copies a
serialized representation of datum into a buffer
, starting from
the offset
.val of_bigstring : ?ver:string ->
?fmt:string -> Std.bigstring -> t
of_bigstring ?ver ?fmt buf
deserializes a datum from bigstringval to_bigstring : ?ver:string ->
?fmt:string -> t -> Std.bigstring
of_bigstring ?ver ?fmt datum
serializes a datum to a sequence of
bytes represented as bigstringval blit_to_bigstring : ?ver:string ->
?fmt:string ->
Std.bigstring -> t -> int -> unit
blit_to_bigstring ?ver ?fmt buffer datum offset
copies a
serialized representation of datum into a buffer
, starting from
offset
.module Io:sig
..end
module Cache:sig
..end
val add_reader : ?desc:string ->
ver:string -> string -> t Std.reader -> unit
add_reader ?desc ~ver name reader
registers a new reader
with a provided name
, version ver
and optional description
desc
val add_writer : ?desc:string ->
ver:string -> string -> t Std.writer -> unit
add_writer ?desc ~ver name writer
registers a new writer
with a provided name
, version ver
and optional description
desc
val available_readers : unit -> info list
available_reader ()
lists available readers for the data typeval default_reader : unit -> info
default_reader
returns information about default readerval set_default_reader : ?ver:string -> string -> unit
set_default_reader ?ver name
sets new default reader. If
version is not specifed then the latest available version is
used. Raises an exception if a reader with a given name doesn't
exist.val with_reader : ?ver:string -> string -> (unit -> 'a) -> 'a
with_reader ?ver name operation
temporary sets a default
reader to a reader with a specified name and version. The default
reader is restored after operation
is finished.val available_writers : unit -> info list
available_writer ()
lists available writers for the data typeval default_writer : unit -> info
default_writer
returns information about the default writerval set_default_writer : ?ver:string -> string -> unit
set_default_writer ?ver name
sets new default writer. If
version is not specifed then the latest available version is
used. Raises an exception if a writer with a given name doesn't
exist.val with_writer : ?ver:string -> string -> (unit -> 'a) -> 'a
with_writer ?ver name operation
temporary sets a default
writer to a writer with a specified name and version. The default
writer is restored after operation
is finished.val default_printer : unit -> info option
default_writer
optionally returns an information about
default printerval set_default_printer : ?ver:string -> string -> unit
set_default_printer ?ver name
sets new default printer. If
version is not specifed then the latest available version is
used. Raises an exception if a printer with a given name doesn't
exist.val with_printer : ?ver:string -> string -> (unit -> 'a) -> 'a
with_printer ?ver name operation
temporary sets a default
printer to a printer with a specified name and version. The default
printer is restored after operation
is finished.val find_reader : ?ver:string -> string -> t Std.reader option
find_reader ?ver name
lookups a reader with a given name. If
version is not specified, then a reader with maximum version is
returned.val find_writer : ?ver:string -> string -> t Std.writer option
find_writer ?ver name
lookups a writer with a given name. If
version is not specified, then a writer with maximum version is
returned.


We know that when your computer, PC or laptop breaks you need a quick and easy computer repair, and you need a repair service that is fast, convenient and reliable. You use your computer for work, home, email, browsing, chatting, and for much more. When you need a computer repair service, you need it done quickly and properly. You need THE PC SURGEON.


Block the following
Film & AnimationAutos & Vehicles
Music
Pets & Animals
Sports
Short Movies
Travel & Events
Gaming
Videoblogging
People & Blogs
Comedy
Entertainment
News & Politics
Howto & Style
Education
Science & Technology
Nonprofits & Activism
Movies
Anime/Animation
Action/Adventure
Classics
Comedy
Documentary
Drama
Family
Foreign
Horror
Sci-Fi/Fantasy
Thriller
Shorts
Shows
Trailers


statsmodels.sandbox.stats.multicomp.multipletests¶
-
statsmodels.sandbox.stats.multicomp.
multipletests
(pvals, alpha=0.05, method='hs', is_sorted=False, returnsorted=False)[source]¶ test results and p-value correction for multiple tests
Parameters: pvals : array_like
uncorrected p-values
alpha : float
FWER, family-wise error rate, e.g. 0.1
method : string
Method used for testing and adjustment of pvalues. Can be either the full name or initial letters. Available methods are
`bonferroni` : one-step correction `sidak` : one-step correction `holm-sidak` : step down method using Sidak adjustments `holm` : step-down method using Bonferroni adjustments `simes-hochberg` : step-up method (independent) `hommel` : closed method based on Simes tests (non-negative) `fdr_bh` : Benjamini/Hochberg (non-negative) `fdr_by` : Benjamini/Yekutieli (negative) `fdr_tsbh` : two stage fdr correction (non-negative) `fdr_tsbky` : two stage fdr correction (non-negative)
is_sorted : bool
If False (default), the p_values will be sorted, but the corrected pvalues are in the original order. If True, then it assumed that the pvalues are already sorted in ascending order.
returnsorted : bool
not tested, return sorted p-values instead of original sequence
Returns: reject : array, boolean
true for hypothesis that can be rejected for given alpha
pvals_corrected : array
p-values corrected for multiple tests
alphacSidak: float
corrected alpha for Sidak method
alphacBonf: float
corrected alpha for Bonferroni method
Notes
There may be API changes for this function in the future.
Except for ‘fdr_twostage’, the p-value correction is independent of the alpha specified as argument. In these cases the corrected p-values can also be compared with a different alpha. In the case of ‘fdr_twostage’, the corrected p-values are specific to the given alpha, see
fdrcorrection_twostage
.The ‘fdr_gbs’ procedure is not verified against another package, p-values are derived from scratch and are not derived in the reference. In Monte Carlo experiments the method worked correctly and maintained the false discovery rate.
All procedures that are included, control FWER or FDR in the independent case, and most are robust in the positively correlated case.
fdr_gbs: high power, fdr control for independent case and only small violation in positively correlated case
Timing:
Most of the time with large arrays is spent in argsort. When we want to calculate the p-value for several methods, then it is more efficient to presort the pvalues, and put the results back into the original order outside of the function.
Method=’hommel’ is very slow for large arrays, since it requires the evaluation of n partitions, where n is the number of p-values.


Hello World! Muahahah
Hello :)
The MQ City of Rome Blog focuses on the history of ancient Rome. The city was founded in myth in the year 753 BCE and became the first metropolis, with an empire stretching from Scotland to the Sahara and from the Atlantic Ocean to the Euphrates (Iraq).
There are so many questions about ancient Rome ranging from its famous monuments, such as Pompey's Theatre, through to the fighting of fires and, yes, to that ubiquitous everyday building material -- concrete, that you will find covered in the upcoming posts of this blog.
During MQ session 1 2019, as of Monday the 25th of February, a blog will be posted every fortnight. Each post has been created by a student at Macquarie University as part of their research undertaken under the direction of Professor Ray Laurence in the Department of Ancient History (in AHIS 313).
All topics for the posts were picked by students and researched by students with some guidance. The content of the posts devised by students studying the City of Rome was then edited by student Professional and Community Engagement (PACE AHIS 392) interns to create the final versions of the posts that appear here. The students developed their own view of Rome through these topics. Expect to find some lively ideas, even some puns (good or bad), and a shift away from the formalities of academic writing to make the study of the city of Rome accessible to a wider public.
Leading on from this, while these posts contain some material that is inaccessible to the wider public or teachers of HSC Ancient History in New South Wales, because it is hidden behind a paywall, they are all hyperlinked to open access translations of ancient sources and, where possible, to further information. This was done to enable teachers and students (and anyone else reading this blog) to dig deeper into the history of ancient Rome.
{{ post.title }}
{{ post.excerpt | strip_html | truncatewords: 50 }}
Editing Team
Ewan Coopey is a PACE intern working under Professor Ray Laurence. He is an undergraduate student at Macquarie University studying a Bachelor of Ancient History with a focus on Republican Rome and the Early Principate. His passion for all things ancient and medieval arose in childhood, when he would wander through the Roman forts and medieval castles scattered across the British Isles. His research interests include: Ancient Roman religion, cultural transmission within the Empire, Roman auxiliaries, identity in the ancient world, and the province of Dalmatia.
Jack Jones is a PACE intern working under Professor Ray Laurence. He is an undergraduate student at Macquarie University studying a Bachelor of Archaeology, with a double major in geology and palaeobiology. While not intending to do further studies in the ancient world, Jack has always been intersted in history, resulting from the Horrible Histories books he read as a child. However, Jack is more interested in slighlty more ancient pre-human history. Jacks research interests include: life during the Ediacaran, future technologies for the study of palaeobiology and linking stratigraphy to fossil appearances.
Oliver Twyford is a PACE intern working under Professor Ray Laurence. He is an undergraduate student at Macquarie University studying a Bachelor of Ancient History, after which he hopes to progress to postgraduate Classical studies. Oliver has always held a keen interest in humanity's past, reading many fictional and non-fictional historical novels from an early age. However, it was after his travels to the ancient ruins of Europe, in particular, that he wanted to make history more than a hobby. Oliver's research interests include: the late Roman Republic to early Principate, the impact of the Roman conquer of Britain, Spartan culture and ideology, and the evolution of humanity from hunter-gatherers to city-states and nations.
Ray Laurence is Professor of Ancient History. Prior to his appointment at Macquarie in 2017, he held positions at the Universities of Reading, Birmingham and Kent in the UK. His research is centred on the study of Roman Urbanism. He also works on the study of childhood and ageing in antiquity, as well as roads and communications technologies in the Roman Empire. Ray's work often involves the use of innovative techniques, whether drawn from approaches in the Digital Humanities or in Archaeological Science. He has also developed collaborative projects with animators and an animation studio to produce six films, which have been viewed more than 8 million times. He is the editor of the series Studies in Roman Space and Urbanism (Routledge).


Chip Foose
American automobile designer
BIOGRAPHY
1963 - Chip was born on October 13, in Santa Barbara, California
1982 - He attended the Art Center College of Design
1984 - Chip, started working at the Clenet Coachworks
1988 - He went back to finish his education at the Art Center College of Design
1990 - Chip, graduated
1990 - Chip, worked full-time for Sterenberger Design and part-time for Boyd Coddington
1998 - Chip, left his position and with his wife Lynne started his own automotive and product design company called Foose Design
2003 - Chip, gained more exposure, as a result of a TLC documentary on his design and creation of a modified 2002 Ford Thunderbird
2006 - Chip, launched a line of die cast replicas of many of his famous designs
2007 - Chip, began limited production (50 vehicles in total) of the Hemisfear. Also known as the Foose Coupe
AWARDS
1990 - Goodguys Street Rod of the Year Award for a '32 two door sedan
1991 - Goodguys Street Rod of the Year Award for a '29 two door sedan
1991 - Goodguys Street Rod of the Year Award for a '40 delivery
1995 - America's Most Beautiful Roadster Award for "Smoothster"
1995 - Goodguys Street Rod of the Year Award for a '34 three window coupe
1996 - America's Most Beautiful Roadster Award for "Boydster"
1997 - Goodguys Street Rod of the Year Award for the '39 Chevy coupe "Predator"
1999 - Goodguys Street Rod of the Year Award for the '54 Belvedere "Sniper", built by Troy Trepanier
1999 - America's Most Beautiful Roadster Award for "Shockwave"
2000 - America's Most Beautiful Roadster Award for "0032"
2001 - Goodguys Street Rod of the Year Award for "Grandmaster"
2001 - America's Most Beautiful Roadster Award for "Impact" designed by Chip & finished by Barry White
2002 - Ridler Award for the '35 Chevy Master Sedan "Grandmaster"
2003 - America's Most Beautiful Roadster Award for "Boydster ii" designed by Chip & finished by Bobby Alloway
2003 - Ridler Award for the '34 Mercury "Stallion"
2005 - Ridler Award for the 1936 Ford based roadster "Impression"
2006 - America's Most Beautiful Roadster Award for "Impression"
2010 - Goodguys Street Rod of the Year Award for "Magnatude"
2012 - GM Best of Show, SEMA 2012 for "Eldorod”
2015 - Ridler Award for the '65 Impala "Impostor"
ACHIEVEMENTS
1997 - Hot Rod Hall of Fame
1998 - Goodguys Trendsetter Award
2002 - Darryl Starbird Rod & Custom Car Museum Hall of Fame
2002 - Ford Motor Company SEMA Best of Show for "Speedbird"
2003 - Grand National Roadster Show Hall of Fame
2005 - San Francisco Rod, Custom & Motorcycle Hall of Fame
2007 - Petersen Automotive Museum "From Pen to Pavement" Exhibit
2009 - Diecast Hall of Fame
2013 – Hot Rod Hall of Fame’s Circle of Champions
Projects
Foto gallery


We guaruntee that you will be satisfied. Our job is to make your house look like you are about to have company over and we will do everything in our power to make it shine.
So far all of my work has been personal projects that I will be uploading soon. But this website is one of my own.
ContactContact me for pricing. I do not have set prices but I guaruntee that the price we negotiate will be feasible to even the strictest budgets.
Contact us and we'll get back to you within 24 hours.
Knoxville, TN


{% if not standalone %} {% extends "layout.html" %} {% else %} {% extends "ajax.json" %} {% endif %} {% block title %}About me{% endblock %} {% block content %}
Hi, everyone! My name is Ivan Poroshin and I'm third year computer science undergraduate student and enthusiastic programmer, interested in gamedev, computer vision, bioinformatics and more.
Also, you can find me by my nickname niemandkun.
My current location is Yekaterinburg, where I'm studying math and computer science as a student of The Institute of Mathematics and Computer Sciences of The Ural Federal University.
I've spent last summer as a volunteer worker in The Laboratory of Mathematical Modelling with Supercomputer Technologies at The Institute of Immunology and Physiology RAS, where I've got a chance to help the researchers in their study of how to cure human heart diseases.
There I've learnt computer vision and have written a lot of Python code using NumPy, SciPy, pandas, scikit-learn, scikit-image and OpenCV.
As a revard I've got a chance to attend The International Conference On Bioinformatics of Genome Regulation and Structure/Systems Biology at Novosibirsk State University as a listener. There I've learnt a lot about biology.
After the first year of studying I've decided to participate with my mates in local competitions on virtual robotics, where participants were asked to write a program for a fully autonomous robot acting in a virtual environment.
Our team was lucky enough to take the first place with the solution that used only some graph algorithms and a finite-state automaton.
Now I'm taking part in the development of new competitions, which involves development and implementation of the contest's rules, development of the competitions Unity3D app and the infrastructure maintenance.
I have interests in various fields, but the most passionate I am in:
As a hobby I'm doing various gamedev, web or assembly stuff. Some of that stuff is available on my projects page.
I like to play games and have a Steam profile. So, if you'd like to play together, just let me know.
Also, I have a Rosalind profile.
This website is extremely lightweight. It was built from scratch with no JS and CSS frameworks. Server is located at my home on a Raspberry Pi microcomputer.
Flask is used to generate and send pages via Ajax.
Source code for this website is published under MIT License and available for everyone on GitHub.


Duration
10 minutes
Goals
This lab shows you how to pass arguments to an Activity. You will see how to load arguments in the source Activity and how to retrieve them in the target Activity. The red line in the image below indicates the part of the app you will be working on here.
Required assets
The provided Resources folder for this part contains a subfolder named Completed with a solution you can use to check your work. This lab is a continuation of the previous one. If you did not complete the previous exercise, you can use the Completed solution from the previous part as starter code for this part.
Challenge
Use the guidelines here to work through the exercise on your own. Alternatively, you can use the step-by-step instructions given below.
- Open ItemsActivity.cs.
- Inside
OnItemClick
, create an Intent that will navigate the app to the Details Activity. - Load the position of the clicked item into the Intent Extras.
- Call
StartActivity
and pass it the Intent. - Open DetailsActivity.cs.
- Inside
OnCreate
, retrieve the position from the Intent Extras and assign it to the local variable namedposition
. - Run the app to test your work.
Steps
Below are the step-by-step instructions to implement the exercise.
Load Arguments
- Open ItemsActivity.cs.
-
Locate the
OnItemClick
method. -
Inside
OnItemClick
, create an Intent that will navigate the app to the Details Activity. The code is provided below, hidden behind a button. - Load the position of the clicked item into the Intent Extras. Use "ItemPosition" as the key. The code is provided below, hidden behind a button.
-
Call
StartActivity
and pass it the Intent.
Retrieve Arguments
- Open DetailsActivity.cs.
-
Locate the
OnCreate
method. -
The Intent you created to start the Details Activity is available here in a property named
Intent
. Retrieve the "ItemPosition" from the Extras of this Intent and assign it to the local variable namedposition
. The code is provided below, hidden behind a button.
Test the App
- Run the app.
- Navigate to the Items Activity.
- Touch an item in the list. Verify that the Details Activity launches and displays the item you selected.
Summary
In this section, you implemented a classic Master-Detail scenario. The Items Activity provided the Master view and the Details Activity the Detail view. When the user selected an item in the Master view, you navigated the app to the Detail view and passed across an item identifier (in this case, you used the position of the item in the data model as the identifier). In the Details Activity, you retrieved the item position and used it to look up the correct data item to display. Notice that you passed an integer identifier instead of the entire item - this is common in Android since object references cannot be used as Activity arguments.


We work with a variety of companies to ensure NATS is delivered in a broad range of solutions used by our community. Contact us to Partner.


The Little Lame Prince
by Maria Dinah Mulock Craik
Chapter 9
Additional Information
- Year Published: 1875
- Language: English
- Country of Origin: England
- Source: Craik M. D. (1875). The Little Lame Prince.London, England: Ludgate Hill.
-
Readability:
- Flesch–Kincaid Level: 7.0
- Word Count: 3,621
- Genre: Fantasy
- Keywords: 19th century literature, british literature, childrenõs literature, the little lame prince
- ✎ Cite This
Downloads
When Prince Dolor sat up in bed, trying to remember where he was, whither he had been, and what he had seen the day before, he perceived that his room was empty.
Generally his nurse rather worried him by breaking his slumbers, coming in and “setting things to rights,” as she called it. Now the dust lay thick upon chairs and tables; there was no harsh voice heard to scold him for not getting up immediately, which, I am sorry to say, this boy did not always do. For he so enjoyed lying still, and thinking lazily about everything or nothing, that, if he had not tried hard against it, he would certainly have become like those celebrated
“Two little men
Who lay in their bed till the clock struck ten.”
It was striking ten now, and still no nurse was to be seen. He was rather relieved at first, for he felt so tired; and besides, when he stretched out his arm, he found to his dismay that he had gone to bed in his clothes.
Very uncomfortable he felt, of course; and just a little frightened. Especially when he began to call and call again, but nobody answered. Often he used to think how nice it would be to get rid of his nurse and live in this tower all by himself—like a sort of monarch able to do everything he liked, and leave undone all that he did not want to do; but now that this seemed really to have happened, he did not like it at all.
“Nurse,—dear nurse,—please come back!” he called out. “Come back, and I will be the best boy in all the land.”
And when she did not come back, and nothing but silence answered his lamentable call, he very nearly began to cry.
“This won’t do,” he said at last, dashing the tears from his eyes.  What has happened, I wonder? I’ll go and see.”
He sprang out of bed,—not to his feet, alas! but to his poor little weak knees, and crawled on them from room to room. All the four chambers were deserted—not forlorn or untidy, for everything seemed to have been done for his comfort—the breakfast and dinner things were laid, the food spread in order. He might live “like a prince,” as the proverb is, for several days. But the place was entirely forsaken—there was evidently not a creature but himself in the solitary tower.
A great fear came upon the poor boy. Lonely as his life had been, he had never known what it was to be absolutely alone.
“What in the world am I to do?” thought he, and sat down in the middle of the floor, half inclined to believe that it would be better to give up entirely, lay himself down, and die.
This feeling, however, did not last long, for he was young and strong, and, I said before, by nature a very courageous boy. There came into his head, somehow or other, a proverb that his nurse had taught him—the people of Nomansland were very fond of proverbs:
“For every evil under the sun
There is a remedy, or there’s none;
If there is one, try to find it—
If there isn’t, never mind it.”
“I wonder is there a remedy now, and could I find it?” cried the Prince, jumping up and looking out of the window.
No help there. He only saw the broad, bleak, sunshiny plain—that is, at first. But by and by, in the circle of mud that surrounded the base of the tower, he perceived distinctly the marks of a horse’s feet, and just in the spot where the deaf-mute was accustomed to tie up his great black charger, while he himself ascended, there lay the remains of a bundle of hay and a feed of corn.
“Yes, that’s it. He has come and gone, taking nurse away with him. Poor nurse! how glad she would be to go!”
That was Prince Dolor’s first thought. His second—wasn’t it natural?—was a passionate indignation at her cruelty—at the cruelty of all the world toward him, a poor little helpless boy. Then he determined, forsaken as he was, to try and hold on to the last, and not to die as long as he could possibly help it.
Anyhow, it would be easier to die here than out in the world, among the terrible doings which he had just beheld—from the midst of which, it suddenly struck him, the deaf-mute had come, contriving somehow to make the nurse understand that the king was dead, and she need have no fear in going back to the capital, where there was a grand revolution, and everything turned upside down. So, of course, she had gone.
And then a kind of remorse smote him for feeling so bitterly toward her, after all the years she had taken care of him—grudgingly, perhaps, and coldly; still she had taken care of him, and that even to the last: for, as I have said, all his four rooms were as tidy as possible, and his meals laid out, that he might have no more trouble than could be helped.
“Possibly she did not mean to be cruel. I won’t judge her,” said he. And afterward he was very glad that he had so determined.
For the second time he tried to dress himself, and then to do everything he could for himself—even to sweeping up the hearth and putting on more coals. “It’s a funny thing for a prince to have to do,” said he, laughing. “But my godmother once said princes need never mind doing anything.”
 Not of summoning her, or asking her to help him,—she had evidently left him to help himself, and he was determined to try his best to do it, being a very proud and independent boy,—but he remembered her tenderly and regret-fully, as if even she had been a little hard upon him—poor, forlorn boy that he was. But he seemed to have seen and learned so much within the last few days that he scarcely felt like a boy, but a man—until he went to bed at night.
When I was a child, I used often to think how nice it would be to live in a little house all by my own self—a house built high up in a tree, or far away in a forest, or halfway up a hillside so deliciously alone and independent. Not a lesson to learn—but no! I always liked learning my lessons. Anyhow, to choose the lessons I liked best, to have as many books to read and dolls to play with as ever I wanted: above all, to be free and at rest, with nobody to tease or trouble or scold me, would be charming. For I was a lonely little thing, who liked quietness—as many children do; which other children, and sometimes grown-up people even, cannot understand. And so I can understand Prince Dolor.
After his first despair, he was not merely comfortable, but actually happy in his solitude, doing everything for himself, and enjoying everything by himself—until bedtime. Then he did not like it at all. No more, I suppose, than other children would have liked my imaginary house in a tree when they had had sufficient of their own company.
But the Prince had to bear it—and he did bear it, like a prince—for fully five days. All that time he got up in the morning and went to bed at night without having spoken to a creature, or, indeed, heard a single sound. For even his little lark was silent; and as for his traveling-cloak, either he never thought about it, or else it had been spirited away—for he made no use of it, nor attempted to do so.
A very strange existence it was, those five lonely days. He never entirely forgot it. It threw him back upon himself, and into himself—in a way that all of us have to learn when we grow up, and are the better for it; but it is somewhat hard learning.
On the sixth day Prince Dolor had a strange composure in his look, but he was very grave and thin and white. He had nearly come to the end of his provisions—and what was to happen next? Get out of the tower he could not: the ladder the deaf-mute used was always carried away again; and if it had not been, how could the poor boy have used it? And even if he slung or flung himself down, and by miraculous chance came alive to the foot of the tower, how could he run away?
Fate had been very hard to him, or so it seemed.
 Not that he wished to die; on the contrary, there was a great deal that he wished to live to do; but if he must die, he must. Dying did not seem so very dreadful; not even to lie quiet like his uncle, whom he had entirely forgiven now, and neither be miserable nor naughty any more, and escape all those horrible things that he had seen going on outside the palace, in that awful place which was called “the world.”
“It’s a great deal nicer here,” said the poor little Prince, and collected all his pretty things round him: his favorite pictures, which he thought he should like to have near him when he died; his books and toys—no, he had ceased to care for toys now; he only liked them because he had done so as a child. And there he sat very calm and patient, like a king in his castle, waiting for the end.
“Still, I wish I had done something first—something worth doing, that somebody might remember me by,” thought he. “Suppose I had grown a man, and had had work to do, and people to care for, and was so useful and busy that they liked me, and perhaps even forgot I was lame? Then it would have been nice to live, I think.”
A tear came into the little fellow’s eyes, and he listened intently through the dead silence for some hopeful sound.
 No, nothing half so sweet. But it really was something—something which came nearer and nearer, so that there was no mistaking it. It was the sound of a trumpet, one of the great silver trumpets so admired in Nomansland. Not pleasant music, but very bold, grand, and inspiring.
As he listened to it the boy seemed to recall many things which had slipped his memory for years, and to nerve himself for whatever might be going to happen.
What had happened was this.
The poor condemned woman had not been such a wicked woman after all. Perhaps her courage was not wholly disinterested, but she had done a very heroic thing. As soon as she heard of the death and burial of the King and of the changes that were taking place in the country, a daring idea came into her head—to set upon the throne of Nomansland its rightful heir. Thereupon she persuaded the deaf-mute to take her away with him, and they galloped like the wind from city to city, spreading everywhere the news that Prince Dolor’s death and burial had been an invention concocted by his wicked uncle that he was alive and well, and the noblest young prince that ever was born.
It was a bold stroke, but it succeeded. The country, weary perhaps of the late King’s harsh rule, and yet glad to save itself from the horrors of the last few days, and the still further horrors of no rule at all, and having no particular interest in the other young princes, jumped at the idea of this Prince, who was the son of their late good King and the beloved Queen Dolorez.
“Hurrah for Prince Dolor! Let Prince Dolor be our sovereign!” rang from end to end of the kingdom.  Nobody remembered his lameness—or, if they did, they passed it over as a matter of no consequence. They were determined to have him reign over them, boy as he was—perhaps just because he was a boy, since in that case the great nobles thought they should be able to do as they liked with the country.
Accordingly, with a fickleness not confined to the people of Nomansland, no sooner was the late King laid in his grave than they pronounced him to have been a usurper; turned all his family out of the palace, and left it empty for the reception of the new sovereign, whom they went to fetch with great rejoicing, a select body of lords, gentlemen, and soldiers traveling night and day in solemn procession through the country until they reached Hopeless Tower.
There they found the Prince, sitting calmly on the floor—deadly pale, indeed, for he expected a quite different end from this, and was resolved, if he had to die, to die courageously, like a Prince and a King.

“Yes,” he said, “if you desire it, I will be your king. And I will do my best to make my people happy.”
Then there arose, from inside and outside the tower, such a shout as never yet was heard across the lonely plain.
Prince Dolor shrank a little from the deafening sound. “How shall I be able to rule all this great people? You forget, my lords, that I am only a little boy still.”
“Not so very little,” was the respectful answer. “We have searched in the records, and found that your Royal Highness—your Majesty, I mean—is fifteen years old.”
“Am I?” said Prince Dolor; and his first thought was a thoroughly childish pleasure that he should now have a birthday, with a whole nation to keep it. Then he remembered that his childish days were done. He was a monarch now. Even his nurse, to whom, the moment he saw her, he had held out his hand, kissed it reverently, and called him ceremoniously “his Majesty the King.”
“A king must be always a king, I suppose,” said he half-sadly, when, the ceremonies over, he had been left to himself for just ten minutes, to put off his boy’s clothes and be reattired in magnificent robes, before he was conveyed away from his tower to the royal palace.
He could take nothing with him; indeed, he soon saw that, however politely they spoke, they would not allow him to take anything. If he was to be their king, he must give up his old life forever. So he looked with tender farewell on his old books, old toys, the furniture he knew so well, and the familiar plain in all its levelness—ugly yet pleasant, simply because it was familiar.
“It will be a new life in a new world,” said he to himself; “but I’ll remember the old things still. And, oh! if before I go I could but once see my dear old godmother.”
While he spoke he had laid himself down on the bed for a minute or two, rather tired with his grandeur, and confused by the noise of the trumpets which kept playing incessantly down below. He gazed, half sadly, up to the skylight, whence there came pouring a stream of sunrays, with innumerable motes floating there, like a bridge thrown between heaven and earth. Sliding down it, as if she had been made of air, came the little old woman in gray.
So beautiful looked she—old as she was—that Prince Dolor was at first quite startled by the apparition. Then he held out his arms in eager delight.
“Oh, godmother, you have not forsaken me!”
“Not at all, my son. You may not have seen me, but I have seen you many a time.”
“How?”
“Oh, never mind. I can turn into anything I please, you know. And I have been a bearskin rug, and a crystal goblet—and sometimes I have changed from inanimate to animate nature, put on feathers, and made myself very comfortable as a bird.”
“Ha!” laughed the prince, a new light breaking in upon him as he caught the infection of her tone, lively and mischievous. “Ha! ha! a lark, for instance?”
“Or a magpie,” answered she, with a capital imitation of Mistress Mag’s croaky voice. “Do you suppose I am always sentimental, and never funny?  They clasped one another in a close embrace.
Suddenly Prince Dolor looked very anxious. “You will not leave me now that I am a king? Otherwise I had rather not be a king at all. Promise never to forsake me!”
The little old woman laughed gayly. “Forsake you? that is impossible. But it is just possible you may forsake me. Not probable though. Your mother never did, and she was a queen. The sweetest queen in all the world was the Lady Dolorez.”
“Tell me about her,” said the boy eagerly. “As I get older I think I can understand more. Do tell me.”
“Not now. You couldn’t hear me for the trumpets and the shouting. But when you are come to the palace, ask for a long-closed upper room, which looks out upon the Beautiful Mountains; open it and take it for your own. Whenever you go there you will always find me, and we will talk together about all sorts of things.”
“And about my mother?”
The little old woman nodded—and kept nodding and smiling to herself many times, as the boy repeated over and over again the sweet words he had never known or understood—“my mother—my mother.”
“Now I must go,” said she, as the trumpets blared louder and louder, and the shouts of the people showed that they would not endure any delay. “Good-by, good-by! Open the window and out I fly.”
Prince Dolor repeated gayly the musical rhyme—but all the while tried to hold his godmother fast.
Vain, vain! for the moment that a knocking was heard at his door the sun went behind a cloud, the bright stream of dancing motes vanished, and the little old woman with them—he knew not where.
So Prince Dolor quitted his tower—which he had entered so mournfully and ignominiously as a little helpless baby carried in the deaf-mute’s arms—quitted it as the great King of Nomansland.
The only thing he took away with him was something so insignificant that none of the lords, gentlemen, and soldiers who escorted him with such triumphant splendor could possibly notice it—a tiny bundle, which he had found lying on the floor just where the bridge of sunbeams had rested. At once he had pounced upon it, and thrust it secretly into his bosom, where it dwindled into such small proportions that it might have been taken for a mere chest-comforter, a bit of flannel, or an old pocket-handkerchief. It was his traveling-cloak!


@* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @( field: Field, label: String, labelClass: String = "", secondaryLabel: Option[String] = None, hint: Option[String] = None, headingIsLegend: Boolean = false )(implicit messages: Messages) @ariaDescribedBy = @{ val seqIDs = ( if (hint.nonEmpty) { Seq(field.id + "-date-hint") } else { Nil } ) ++ ( if(field.errors.nonEmpty){ Seq("error-notification-"+field.id+"-input") } else { Nil } ) seqIDs.mkString(" ") }


Sugar, Spice And Everything Nice
by Luke PlunkettAlfred Achiampong is a character artist from Ghana.
You can see more of Alfred’s stuff at his ArtStation page.
Alfred Achiampong is a character artist from Ghana.
You can see more of Alfred’s stuff at his ArtStation page.