Basically, Stream Teeing
By design, streams work on the principle of one source, one consumer. So if you have a stream that you'd like to be consumed by two consumers, you need help. Enter Teeing.
Also known as forking streams, teeing refers to splitting one stream into two identical streams to be read by two distinct readers. It's pretty cool.
Under the hood, tee() locks the source stream to the fork, creating two identical, unlocked streams ready for consumption.
Below is an example that, from a source stream that supplies employees in the shape of:
{ id: 1, name: "Something somethington" }
This stream is teed to two different streams: the `leftColumnStream` and the `rightColumnStream`.
To read from these split streams, press the correponding button. It's that simple!
Don't forget to check out the source code!

- Basically, Forking Streams
Further Reading: WhatWG Spec


Bite Size Bayes¶
Copyright 2020 Allen B. Downey
License: Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
The Euro problem¶
In a previous notebook I presented a problem from David MacKay’s book, Information Theory, Inference, and Learning Algorithms:
A statistical statement appeared in The Guardian on Friday January 4, 2002:
“When spun on edge 250 times, a Belgian one-euro coin came up heads 140 times and tails 110. ‘It looks very suspicious to me’, said Barry Blight, a statistics lecturer at the London School of Economics. ‘If the coin were unbiased the chance of getting a result as extreme as that would be less than 7%’.”
But [asks MacKay] do these data give evidence that the coin is biased rather than fair?
To answer this question, we made these modeling decisions:
If you spin a coin on edge, there is some probability, \(x\), that it will land heads up.
The value of \(x\) varies from one coin to the next, depending on how the coin is balanced and other factors.
We started with a uniform prior distribution for \(x\), then updated it 250 times, once for each spin of the coin. Then we used the posterior distribution to compute the MAP, posterior mean, and a credible interval.
But we never really answered MacKay’s question.
In this notebook, I introduce the binomial distribution and we will use it to solve the Euro problem more efficiently. Then we’ll get back to MacKay’s question and see if we can find a more satisfying answer.
Binomial distribution¶
Suppose I tell you that a coin is “fair”, that is, the probability of heads is 50%. If you spin it twice, there are four outcomes: HH
, HT
, TH
, and TT
.
All four outcomes have the same probability, 25%. If we add up the total number of heads, it is either 0, 1, or 2. The probability of 0 and 2 is 25%, and the probability of 1 is 50%.
More generally, suppose the probability of heads is p
and we spin the coin n
times. What is the probability that we get a total of k
heads?
The answer is given by the binomial distribution:
\(P(k; n, p) = \binom{n}{k} p^k (1-p)^{n-k}\)
where \(\binom{n}{k}\) is the binomial coefficient, usually pronounced “n choose k”.
We can compute this expression ourselves, but we can also use the SciPy function binom.pmf
:
from scipy.stats import binom
n = 2
p = 0.5
ks = np.arange(n+1)
a = binom.pmf(ks, n, p)
a
array([0.25, 0.5 , 0.25])
If we put this result in a Series, the result is the distribution of k
for the given values of n
and p
.
pmf_k = pd.Series(a, index=ks)
pmf_k
0 0.25
1 0.50
2 0.25
dtype: float64
The following function computes the binomial distribution for given values of n
and p
:
def make_binomial(n, p):
"""Make a binomial PMF.
n: number of spins
p: probability of heads
returns: Series representing a PMF
"""
ks = np.arange(n+1)
a = binom.pmf(ks, n, p)
pmf_k = pd.Series(a, index=ks)
return pmf_k
And here’s what it looks like with n=250
and p=0.5
:
pmf_k = make_binomial(n=250, p=0.5)
pmf_k.plot()
plt.xlabel('Number of heads (k)')
plt.ylabel('Probability')
plt.title('Binomial distribution');
The most likely value in this distribution is 125:
pmf_k.idxmax()
125
But even though it is the most likely value, the probability that we get exactly 125 heads is only about 5%.
pmf_k[125]
0.05041221314731537
In MacKay’s example, we got 140 heads, which is less likely than 125:
pmf_k[140]
0.008357181724917673
In the article MacKay quotes, the statistician says, ‘If the coin were unbiased the chance of getting a result as extreme as that would be less than 7%’.
We can use the binomial distribution to check his math. The following function takes a PMF and computes the total probability of values greater than or equal to threshold
.
def prob_ge(pmf, threshold):
"""Probability of values greater than a threshold.
pmf: Series representing a PMF
threshold: value to compare to
returns: probability
"""
ge = (pmf.index >= threshold)
total = pmf[ge].sum()
return total
Here’s the probability of getting 140 heads or more:
prob_ge(pmf_k, 140)
0.033210575620022706
It’s about 3.3%, which is less than 7%. The reason is that the statistician includes all values “as extreme as” 140, which includes values less than or equal to 110, because 140 exceeds the expected value by 15 and 110 falls short by 15.
The probability of values less than or equal to 110 is also 3.3%, so the total probability of values “as extreme” as 140 is about 7%.
The point of this calculation is that these extreme values are unlikely if the coin is fair.
That’s interesting, but it doesn’t answer MacKay’s question. Let’s see if we can.
Estimating x¶
As promised, we can use the binomial distribution to solve the Euro problem more efficiently. Let’s start again with a uniform prior:
xs = np.arange(101) / 100
uniform = pd.Series(1, index=xs)
uniform /= uniform.sum()
We can use binom.pmf
to compute the likelihood of the data for each possible value of \(x\).
k = 140
n = 250
xs = uniform.index
likelihood = binom.pmf(k, n, p=xs)
Now we can do the Bayesian update in the usual way, multiplying the priors and likelihoods,
posterior = uniform * likelihood
Computing the total probability of the data,
total = posterior.sum()
total
0.003944617569326327
And normalizing the posterior,
posterior /= total
Here’s what it looks like.
posterior.plot(label='Uniform')
plt.xlabel('Probability of heads (x)')
plt.ylabel('Probability')
plt.title('Posterior distribution, uniform prior')
plt.legend()
<matplotlib.legend.Legend at 0x7f86d1c6fd30>
Exercise: Based on what we know about coins in the real world, it doesn’t seem like every value of \(x\) is equally likely. I would expect values near 50% to be more likely and values near the extremes to be less likely.
In Notebook 7, we used a triangle prior to represent this belief about the distribution of \(x\). The following code makes a PMF that represents a triangle prior.
ramp_up = np.arange(50)
ramp_down = np.arange(50, -1, -1)
a = np.append(ramp_up, ramp_down)
triangle = pd.Series(a, index=xs)
triangle /= triangle.sum()
Update this prior with the likelihoods we just computed and plot the results.
# Solution
posterior2 = triangle * likelihood
total2 = posterior2.sum()
total2
0.007008842590058512
# Solution
posterior2 /= total2
# Solution
posterior.plot(label='Uniform')
posterior2.plot(label='Triangle')
plt.xlabel('Probability of heads (x)')
plt.ylabel('Probability')
plt.title('Posterior distribution, uniform prior')
plt.legend();
Evidence¶
Finally, let’s get back to MacKay’s question: do these data give evidence that the coin is biased rather than fair?
I’ll use a Bayes table to answer this question, so here’s the function that makes one:
def make_bayes_table(hypos, prior, likelihood):
"""Make a Bayes table.
hypos: sequence of hypotheses
prior: prior probabilities
likelihood: sequence of likelihoods
returns: DataFrame
"""
table = pd.DataFrame(index=hypos)
table['prior'] = prior
table['likelihood'] = likelihood
table['unnorm'] = table['prior'] * table['likelihood']
prob_data = table['unnorm'].sum()
table['posterior'] = table['unnorm'] / prob_data
return table
Recall that data, \(D\), is considered evidence in favor of a hypothesis, H
, if the posterior probability is greater than the prior, that is, if
\(P(H|D) > P(H)\)
For this example, I’ll call the hypotheses fair
and biased
:
hypos = ['fair', 'biased']
And just to get started, I’ll assume that the prior probabilities are 50/50.
prior = [0.5, 0.5]
Now we have to compute the probability of the data under each hypothesis.
If the coin is fair, the probability of heads is 50%, and we can compute the probability of the data (140 heads out of 250 spins) using the binomial distribution:
k = 140
n = 250
like_fair = binom.pmf(k, n, p=0.5)
like_fair
0.008357181724917673
So that’s the probability of the data, given that the coin is fair.
But if the coin is biased, what’s the probability of the data? Well, that depends on what “biased” means.
If we know ahead of time that “biased” means the probability of heads is 56%, we can use the binomial distribution again:
like_biased = binom.pmf(k, n, p=0.56)
like_biased
0.05077815959517949
Now we can put the likelihoods in the Bayes table:
likes = [like_fair, like_biased]
make_bayes_table(hypos, prior, likes)
| prior | likelihood | unnorm | posterior | |
|---|---|---|---|---|
| fair | 0.5 | 0.008357 | 0.004179 | 0.141323 |
| biased | 0.5 | 0.050778 | 0.025389 | 0.858677 |
The posterior probability of biased
is about 86%, so the data is evidence that the coin is biased, at least for this definition of “biased”.
But we used the data to define the hypothesis, which seems like cheating. To be fair, we should define “biased” before we see the data.
Uniformly distributed bias¶
Suppose “biased” means that the probability of heads is anything except 50%, and all other values are equally likely.
We can represent that definition by making a uniform distribution and removing 50%.
biased_uniform = uniform.copy()
biased_uniform[50] = 0
biased_uniform /= biased_uniform.sum()
Now, to compute the probability of the data under this hypothesis, we compute the probability of the data for each value of \(x\).
xs = biased_uniform.index
likelihood = binom.pmf(k, n, xs)
And then compute the total probability in the usual way:
like_uniform = np.sum(biased_uniform * likelihood)
like_uniform
0.0039004919277704133
So that’s the probability of the data under the “biased uniform” hypothesis.
Now we make a Bayes table that compares the hypotheses fair
and biased uniform
:
hypos = ['fair', 'biased uniform']
likes = [like_fair, like_uniform]
make_bayes_table(hypos, prior, likes)
| prior | likelihood | unnorm | posterior | |
|---|---|---|---|---|
| fair | 0.5 | 0.008357 | 0.004179 | 0.681792 |
| biased uniform | 0.5 | 0.003900 | 0.001950 | 0.318208 |
Using this definition of biased
, the posterior is less than the prior, so the data are evidence that the coin is fair.
In this example, the data might support the fair hypothesis or the biased hypothesis, depending on the definition of “biased”.
Exercise: Suppose “biased” doesn’t mean every value of \(x\) is equally likely. Maybe values near 50% are more likely and values near the extremes are less likely. In the previous exercise we created a PMF that represents a triangle-shaped distribution.
We can use it to represent an alternative definition of “biased”:
biased_triangle = triangle.copy()
biased_triangle[50] = 0
biased_triangle /= biased_triangle.sum()
Compute the total probability of the data under this definition of “biased” and use a Bayes table to compare it with the fair hypothesis.
Is the data evidence that the coin is biased?
# Solution
like_triangle = np.sum(biased_triangle * likelihood)
like_triangle
0.006981325464857304
# Solution
hypos = ['fair', 'biased triangle']
likes = [like_fair, like_triangle]
make_bayes_table(hypos, prior, likes)
| prior | likelihood | unnorm | posterior | |
|---|---|---|---|---|
| fair | 0.5 | 0.008357 | 0.004179 | 0.54485 |
| biased triangle | 0.5 | 0.006981 | 0.003491 | 0.45515 |
# Solution
# For this definition of "biased",
# the data are slightly in favor of the fair hypothesis.
Bayes factor¶
In the previous section, we used a Bayes table to see whether the data are in favor of the fair or biased hypothesis.
I assumed that the prior probabilities were 50/50, but that was an arbitrary choice.
And it was unnecessary, because we don’t really need a Bayes table to say whether the data favor one hypothesis or another: we can just look at the likelihoods.
Under the first definition of biased, x=0.56
, the likelihood of the biased hypothesis is higher:
like_fair, like_biased
(0.008357181724917673, 0.05077815959517949)
Under the biased uniform definition, the likelihood of the fair hypothesis is higher.
like_fair, like_uniform
(0.008357181724917673, 0.0039004919277704133)
The ratio of these likelihoods tells us which hypothesis the data support.
If the ratio is less than 1, the data support the second hypothesis:
like_fair / like_biased
0.16458220998050985
If the ratio is greater than 1, the data support the first hypothesis:
like_fair / like_uniform
2.142596851801403
This likelihood ratio is called a Bayes factor; it provides a concise way to present the strength of a dataset as evidence for or against a hypothesis.
Summary¶
In this notebook I introduced the binomial disrtribution and used it to solve the Euro problem more efficiently.
Then we used the results to (finally) answer the original version of the Euro problem, considering whether the data support the hypothesis that the coin is fair or biased. We found that the answer depends on how we define “biased”. And we summarized the results using a Bayes factor, which quantifies the strength of the evidence.
In the next notebook we’ll start on a new problem based on the television game show The Price Is Right.
Exercises¶
Exercise: In preparation for an alien invasion, the Earth Defense League has been working on new missiles to shoot down space invaders. Of course, some missile designs are better than others; let’s assume that each design has some probability of hitting an alien ship, x
.
Based on previous tests, the distribution of x
in the population of designs is roughly uniform between 10% and 40%.
Now suppose the new ultra-secret Alien Blaster 9000 is being tested. In a press conference, a Defense League general reports that the new design has been tested twice, taking two shots during each test. The results of the test are confidential, so the general won’t say how many targets were hit, but they report: “The same number of targets were hit in the two tests, so we have reason to think this new design is consistent.”
Is this data good or bad; that is, does it increase or decrease your estimate of x
for the Alien Blaster 9000?
Plot the prior and posterior distributions, and use the following function to compute the prior and posterior means.
def pmf_mean(pmf):
"""Compute the mean of a PMF.
pmf: Series representing a PMF
return: float
"""
return np.sum(pmf.index * pmf)
# Solution
xs = np.linspace(0.1, 0.4)
prior = pd.Series(1, index=xs)
prior /= prior.sum()
# Solution
likelihood = xs**2 + (1-xs)**2
# Solution
posterior = prior * likelihood
posterior /= posterior.sum()
# Solution
prior.plot(color='gray', label='prior')
posterior.plot(label='posterior')
plt.xlabel('Probability of success (x)')
plt.ylabel('Probability')
plt.ylim(0, 0.027)
plt.title('Distribution of before and after testing')
plt.legend();
# Solution
pmf_mean(prior), pmf_mean(posterior)
(0.25, 0.2378145906339599)
# With this prior, being "consistent" is more likely
# to mean "consistently bad".


Buttons Form Elements Simple Forms Advanced Forms Inline Form Search Form Login/Signup Newsletter Form Comment Form Wizard Map Graph


Solver Class Reference
Does most of the "heavy lifting" of the cloth simulation, i.e. calculating the forces and positions of the cloth components.
More...
#include <Solver.h>
List of all members.
Public Member Functions |
|
| Solver () |
| | Constructor for the Solver class.
|
|
| ~Solver () |
| | Destructor for the Solver class.
|
| void | advance (std::vector< CS::Spring > *_springs, std::vector< CS::Particle > *_particles, const double &_time, const float &_deltaSeconds) |
| | Advance the simulation forward a frame according to its current state.
|
| void | updateSpring (CS::Spring *_spring) |
| | Apply forces to the particles the specified spring connects depending on the length of the spring.
|
| void | updateParticle (CS::Particle *_particle, float _deltaSeconds) |
| | Update the particle's position depending on the forces it has accumulated from neighbouring springs and according to Verlet integration.
|
| bool | resolveCollision (CS::Particle *_firstParticle, CS::Particle *_secondParticle) |
| | Applies a separating force to the specified particles if their radii intersect i.e. they have collided. Obselete; replaced by resolveCollisionTranslate().
|
| bool | resolveCollisionTranslate (CS::Particle *_firstParticle, CS::Particle *_secondParticle) |
| | Similar to resolveCollision() but simply translates the particles away from each other rather than applying a force; because of the way Verlet integration works, the end result is the same as neatly applying an impulse.
|
Public Attributes |
|
bool | m_applySelfCollision |
| | Whether to check for and resolve collisions between internal particles.
|
|
bool | m_applySphereCollision |
| | Whether to check for and resolve collisions between cloth particles and the sphere.
|
|
bool | m_applyWind |
| | Whether to apply a turbulent wind-like force to the particles.
|
|
float | m_gravity |
| | The strength of the gravity to apply to the particles.
|
|
float | m_speed |
| | The speed of the simulation. DeltaSeconds is multiplied by this during advance().
|
|
CS::Particle * | m_sphere |
| | A pointer to the collision-demo sphere.
|
Detailed Description
Does most of the "heavy lifting" of the cloth simulation, i.e. calculating the forces and positions of the cloth components.
Member Function Documentation
| void Solver::advance |
( |
std::vector< CS::Spring > * |
_springs, |
|
|
std::vector< CS::Particle > * |
_particles, |
|
|
const double & |
_time, |
|
|
const float & |
_deltaSeconds | |
|
) |
| | |
Advance the simulation forward a frame according to its current state.
- Parameters:
-
| [in,out] | _springs | A pointer to a vector containing all the springs in the Cloth. |
| [in,out] | _particles | A pointer to a vector containing all the particles in the Cloth. |
| [in] | _time | How much time has passed since the simulation began (only really used for wind). |
| [in] | _deltaSeconds | The time in seconds since the last call to advance(). |
Applies a separating force to the specified particles if their radii intersect i.e. they have collided. Obselete; replaced by resolveCollisionTranslate().
- Parameters:
-
| [in,out] | _firstParticle | One of the particles involved in the collision test. |
| [in,out] | _secondParticle | The other particle involved in the collision test. |
- Returns:
- Whether there was a collision; useful for debugging.
Similar to resolveCollision() but simply translates the particles away from each other rather than applying a force; because of the way Verlet integration works, the end result is the same as neatly applying an impulse.
- Parameters:
-
| [in,out] | _firstParticle | One of the particles involved in the collision test. |
| [in,out] | _secondParticle | The other particle involved in the collision test. |
- Returns:
- Whether there was a collision; useful for debugging.
| void Solver::updateParticle |
( |
CS::Particle * |
_particle, |
|
|
float |
_deltaSeconds | |
|
) |
| | |
Update the particle's position depending on the forces it has accumulated from neighbouring springs and according to Verlet integration.
- Parameters:
-
| [in,out] | _particle | A pointer to the particle in question. |
| [in] | _deltaSeconds | The time in seconds since the last call to advance(). |
| void Solver::updateSpring |
( |
CS::Spring * |
_spring |
) |
|
Apply forces to the particles the specified spring connects depending on the length of the spring.
- Parameters:
-
| [in] | _spring | A pointer to the spring in question. |
The documentation for this class was generated from the following files:


kai
All your batteries, at a glance
kai will show any Bluetooth device that provides battery information, meaning you can check the battery of your phone, your watch, your AirPods, and your AirPods case, all from the lock screen. Quickly and easily.
Compatibility
kai works with many, many lock screen tweaks, such as Kalm, Grupi, Axon, Quart, Complications, Watermelon, Veza, QuickLS, Jellyfish, and way more!

Big and Bold, or small and simple
kai offers two main options for displaying battery information. (a) Vertical mode, to make kai fit in with your notifications, and (b) horizontal mode, an unobtrusive, scrollable, and tiny mode that doesn’t take up any more space on your lock screen than it needs to.
Full feature/option list
- Option to hide the large battery view coversheet charging animations on the lock screen
- Show all or just charging devices on kai
- Option to show Bluetooth devices always, and the phone just when charging
- Option to hide device glyphs on kai cells
- Option to hide percent label on kai cells
- Option to hide the device name label on kai cells
- Two-axis options, a vertical mode, or horizontal mode
- Choose between adaptive, light, or dark mode for kai’s cells
- Choose between adaptive, white, or black text for labels on kai’s cells
- Choose to align kai to the left, right, or center for vertical mode
- Option to show kai above or below music player
- Adjust kai cell height
- Adjust kai banner width
- Adjust the spacing between kai cells vertically
- Adjust the spacing between kai cells horizontally
- Manual offset option for the x-axis
- Adjust device glyph size
- Adjust kai cell corner radius
- Adjust kai cell background blur alpha
Note
Special thanks to my amazing beta testers in the server I co-own with Thomz. I could not have tested kai so extensively and brought it to where it is today without them. Thanks to Thomz for making kai’s icon, and depiction screenshots, and Thenatis for helping with design, and for making the banner for kai. Additionally, kai is inspired by LaughingQuoll’s Maple tweak series and Apple’s AirPower design. kai was built with inspiration from this. However, the main reason I made kai is because the Maple series does not work with notification grouping tweaks like Axon and Grupi. Additionally, kai features a wider range of customization options.
| Version | 1.1.1 |
| Updated | June 24, 2020 |
| Restriction(s) | Free |
| iOS Version(s) | 12 - 13.5 |


To play the last, old-style UI version of Realm Grinder (with the giant treasure chest),
right-click and save the following link: Realm Grinder v<IP_ADDRESS>
Then, download and install GameLoad.
Open the Realm Grinder swf file in GameLoad.
Note: new save formats will not be able to be imported; you will have to import an old save format.
Note 2: without the Kongregate HTML wrapper code, you won't have access to the purchasable gifts.


Preparation time
30 mins to 1 hour
Cooking time
30 mins to 1 hour
Serves
Serves 4
These hot little cakes are gorgeous - the richness of the smoked mackerel is perfectly balanced by sweetness and spice.
For the chilli jam, heat the sugar in a heavy-based saucepan over a medium heat until it melts and forms a golden-brown caramel. (Do not stir and keep an eye on it so that it doesn’t burn.)
Blend all of the remaining chilli jam ingredients, except the crème fraîche, in a food processor to a smooth purée.
Once the sugar has caramelised, pour in the puréed chilli jam mixture and stir well. Bring the mixture to the boil, then reduce the heat and simmer for 4-5 minutes, or until sticky and jam-like. Remove from the heat and set aside to cool.
Once the chilli jam mixture has cooled, stir in the crème fraîche until well combined.
For the fish cakes, mix the Arbroath smokie, mashed potato, chilli and curry powder in a bowl until well combined. Season with salt and freshly ground black pepper and lime juice, to taste.
Shape the mixture into 2cm/¾in diameter balls.
Sprinkle the flour onto one plate, beat the egg in a bowl then place the breadcrumbs on another plate.
Dredge each ball in the flour, then dip it in the beaten egg and roll in the breadcrumb until completely coated.
Heat the oil in a deep-fat fryer to 190C/375F. Alternatively, heat the oil in a deep, heavy-based saucepan until a breadcrumb sizzles and turns brown when dropped into it. (CAUTION: hot oil can be dangerous. Do not leave unattended.)
Carefully lower the fish cakes into the hot oil and fry for 3-4 minutes, or until crisp and golden-brown and completely cooked through. Remove from the pan using a slotted spoon and set aside to drain on kitchen paper. Keep warm until needed.
Arrange the cakes on a serving plate. Spoon the chilli jam into a bowl and serve alongside the cakes.


Let's explore stock prices together!!
Losing money betting on the randomizied behavior of the stock market is a fun past time and a great way to lose money. Let's try and see just how much money we can lose today!
Losing money betting on the randomizied behavior of the stock market is a fun past time and a great way to lose money. Let's try and see just how much money we can lose today!


Draw a single digit (0-9) in the box to the left, then click Predict.
A machine learning model trained against the MNIST character dataset will classify the image. Scores for each classification label are plotted below.


This is an example which will send messages to the server. Each click on the increment button will send a message to server
Current count: {{ currentCount }}


Delivering administration and governance using blockchain technology
1ID Credential Management
Start Bootstrap has everything you need to get your new website up and running in no time! All of the templates and themes on Start Bootstrap are open source, free to download, and easy to use. No strings attached!


JUST BRENDA: Should I stay with him?
by JUST BRENDAIn Summary
- The writing is on the wall
- Stop disturbing him and stop disturbing your spirit
Hi Brenda,
I have been into this relationship for six months. He has an eight year-old son from his past relationship.
He promised to marry me, but was only good to me for the first three months. Things turned sour as the relationship continued.
He has been lying to me. Whenever I call, he declines and if he picks up, he tells me to stop disturbing him.
Should I continue with that relationship?
Destiny's Child.
Dear Destiny’s Child,
The writing is on the wall.
If he wanted you, he would be clear. Now that he doesn’t, he’s trying to drive you away.
He could only maintain the charade for three months (as he promised to marry you), and then now as he tells you to stop disturbing him, you should listen.
Stop disturbing him and stop disturbing your spirit. It’s over, because he didn’t have the guts to be honest.
Leave it be.


My Library
NEW BOOK
Author
Title
No. of Pages
Read?
Delete Book
Author
Book title
No. of Pages
Have you read the book?
Yes
No
Submit
Cancel


Member Name
short description short description short description short description short description
Member Name
short description short description short description short description short description
Member Name
short description short description short description short description short description
Member Name
short description short description short description short description short description
Member Name
short description short description short description short description short description
Member Name
short description short description short description short description short description
Member Name
short description short description short description short description short description


Mission to Mars
Scrape New Data
There is no data available. Please click the Scrape New Data button above to attempt to retrieve the latest news.


A simple component for adding code examples based on actual code and markup! Just add <exemplify></exemplify> together with [selector]="'**html selector**'" and/or [sources]="sourceList" to your code and you're done:D See docs for more info.
<exemplify></exemplify>
[selector]="'**html selector**'"
[sources]="sourceList"


Select the variable you want to proceed in machine learning. Predictor variable (X variable) are the
independent variables, while response variable (Y variable) is the dependent variable. Also choose the
method of machine learning you want to perform


THE EFFECTS OF PROVISIONS FOR IMAGERY THROUGH MATERIALS AND ORAWINGS ON TRANSLATING ALGEBRA WORD PROBLEMS,
GRADES SEVEN ANO NINE
BY Pau JoserPH SHOFCRAFT
A OISSERTATION SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF Doctor of PHILOSOPHY (EnucaTion) tw THe UNiversiTy oF MICHIGAN
1971
DocTtoraAL CommMiTtTeet
Proressor JoserpH N. Payne, CHAIRMAN
Assoctate Professor ArtHur F. Coxroro, JRe
Proressor James G. GREENO
Proressor PHILLIP S. Jowes
Doctor Davin W. Weiis, Director of Instruction AND MATHEMATICS EDUCATION, OAKLAND SCHOOLS
Reproduced with permission of the copyright owner. Further reproduction prohibited without permission.


The database and all the tables are created.
First, you could use SHOW tables; to check the existing tables, and then SELECT * FROM ... to see the data records.
SHOW tables;
SELECT * FROM ...


|
KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
Testing authorization process More...
Classes | |
| class | Configurator |
| The test configurator More... | |
| class | TestInstaller |
| The test installer to register components More... | |
Public Types | |
| enum | EnAuthenticationType { EnAuthenticationType.None, EnAuthenticationType.User, EnAuthenticationType.Client } |
| The type of test authentication More... | |
Public Member Functions | |
| AuthorizationTests (ITestOutputHelper output) | |
| Initializes a new instance of the AuthorizationTests class. More... | |
| async Task | CheckAuthorization (EnAuthenticationType authenticationType, string method, HttpStatusCode expectedResult) |
| Checks various authorization combinations More... | |
| async Task | ForbiddenOnInvalidToken () |
| In case of invalid token, controller should return 401 More... | |
| async Task | ValidOnNoToken () |
| In case of invalid token, controller should return 401 More... | |
Additional Inherited Members | |
| Protected Member Functions inherited from KlusterKite.Web.Tests.WebTest< AuthorizationTests.Configurator > | |
| WebTest (ITestOutputHelper output) | |
| Initializes a new instance of the WebTest<TConfigurator> class. More... | |
| override void | Dispose (bool disposing) |
Testing authorization process
Definition at line 35 of file AuthorizationTests.cs.
The type of test authentication
| Enumerator | |
|---|---|
| None | There is no authentication |
| User | There is user authentication |
| Client | There is client authentication |
Definition at line 51 of file AuthorizationTests.cs.
| KlusterKite.Web.Tests.Auth.AuthorizationTests.AuthorizationTests | ( | ITestOutputHelper | output | ) |
Initializes a new instance of the AuthorizationTests class.
| output | The output. |
Definition at line 43 of file AuthorizationTests.cs.
| async Task KlusterKite.Web.Tests.Auth.AuthorizationTests.CheckAuthorization | ( | EnAuthenticationType | authenticationType, |
| string | method, | ||
| HttpStatusCode | expectedResult | ||
| ) |
Checks various authorization combinations
| authenticationType | The authentication type |
| method | The requested method |
| expectedResult | The expected response code |
Definition at line 98 of file AuthorizationTests.cs.
| async Task KlusterKite.Web.Tests.Auth.AuthorizationTests.ForbiddenOnInvalidToken | ( | ) |
In case of invalid token, controller should return 401
Definition at line 125 of file AuthorizationTests.cs.
| async Task KlusterKite.Web.Tests.Auth.AuthorizationTests.ValidOnNoToken | ( | ) |
In case of invalid token, controller should return 401
Definition at line 145 of file AuthorizationTests.cs.


Thank You!
Don't forget your ID & password.
Note!
Please keep your information secret.
Now you can log in.
Here!


#include <Key.h>
This abstracts from the underlying system. Key events and the key stroke field use this key object to point to a physical key. Concrete implementations should provide more information about the respective key.
Definition at line 26 of file Key.h.
Public Member Functions | |
| virtual Key * | clone ()=NULL |
| Returns a clone of this key. | |
| virtual String | getName ()=NULL |
| Returns a short human friendly name for the key. | |
| virtual bool | isDelete ()=NULL |
| Returns whether this key is the delete key. | |
| virtual | ~Key () |
| Destroys the key. |
|
|
Destroys the key.
|
|
|
Returns a clone of this key.
|
|
|
Returns a short human friendly name for the key.
|
|
|
Returns whether this key is the delete key.
|


You can find the codes here in Github Repo
限选5个：
Three Cubes Test Use mesh to test cube's display in Three.js.
Three Texture Test Use a map picture to test the effect of Three.js texture, combined with texture both on ground and particleSystem.
Three Particles and Index Test Simulate lots of particles to test the data updating and animation styles in Three.js.
CSS 3D People Monitor Test Use pure CSS 3D Stylesheets and JavaScript to simulate the 3D space (such as webgl tech) effect.


{messageToSend}
{pinToSend}
Do not reply to this message.If you did not request this message, please discard it.
© {year} Farenexus Group | All Rights Reserved


Supreme Court Justice apologizes to bereaved families
Supreme Court Justice Neil Hendel apologizes for sending condolences to the family of a terrorist who died in Israeli prison.
by Arutz Sheva StaffSupreme Court Justice Neil Hendel apologized today (Friday) for sending condolences to the family of a terrorist who died in Israeli prison.
"Of course there was no intention of hurting anyone", Hendel said, "I would like to express my sorrow for hurting the bereaved families".
In the last day, much criticism was heard on social networks against Hendel. who accepted a request by Attorney Kamal Nator, representing murderer Sami Ahad Abu Diak, to delete the petition he filed in the Supreme Court.
The attorney sought to delete the petition after the Islamic operative died two days earlier from cancer, while he was incarcerated.
Abu Diak was sentenced to three life sentences after he murdered 18-year-old Ilya Krivich, a resident of Chomesh, and committed other hostile acts.
However, the judge's decision caused outrage among bereaved family members when it was discovered that on the decision Judge Hendel wrote: "I instruct deletion of the petition as requested; I participate in the grief of the family."
Bereaved families responded by saying "a judge should not offer condolences for the death of a terrorist, even after he died in prison."


|
Worksheet - Project Tools ELTE
|
#include <Models.h>
Public Types | |
| enum | TimeOfDay { TimeOfDay::Morning = 0, TimeOfDay::Day = 1, TimeOfDay::Evening = 2, TimeOfDay::Invalid = -1 } |
Public Member Functions | |
| Workout (const std::string &name, const std::string &description, const TimeOfDay &time, const bool &done, const bool &skipped) | |
| std::string | toJSON () |
| void | addExercise (Exercise exercise) |
| TimeOfDay | getTime () const |
Static Public Member Functions | |
| static Models::Workout::TimeOfDay | timeFromString (const std::string &string) |
Model of a workout, a collection of Models::Exercises, distinguished in time by being in the morning, day or evening.
|
strong |
Enum class. The time of the Models::Workout
| Enumerator | |
|---|---|
| Morning | |
| Day | |
| Evening | |
| Invalid | The time is none of the above, and therefore invalid. |
| Models::Workout::Workout | ( | const std::string & | name, |
| const std::string & | description, | ||
| const TimeOfDay & | time, | ||
| const bool & | done, | ||
| const bool & | skipped | ||
| ) |
| void Models::Workout::addExercise | ( | Exercise | exercise | ) |
| exercise | the Models::Exercise to add. |
|
inline |
|
static |
| string | one of: morning, Morning, day, Day, midday, Midday, evening, Evening, night, Night |
Construct a Models::Workout::TimeOfDay from a string representation.
| std::string Models::Workout::toJSON | ( | ) |


First: No code is safe.
Start asking your code: "Are you good enough to pass this test?". If he doesn't
answer, write a test and fire the console.
Be active, don't wait until your
code starts screaming. It's a common habit to think "i will write later my test
code". No, you will not, you will have other things to do, bug fixing, new
features, or take a walk outside, but no, abslolutely, no test code.
To
avoid procrastination, testing has to be integrated in the development code
cycle, "you have to start thinking about testing before you write a line of
code"(tip 48, The
Pragmatic Programmer). The most complete TDD definition that i've found on the net comes from agileskillsproject.org:
Test-Driven Development (TDD) is a way of driving the design of code by writing a test which expresses what you intend the code to do, making that test pass, and continuously refactoring to keep the design as simple as possible. TDD can apply at multiple levels, e.g., Customer Tests, Integration Tests, Unit Tests.
Test-Driven Development/Design follows a rigorous cycle. Start by writing a failing test (Red.) Implement the simplest solution that will cause the test to pass (Green.) Search for duplication and remove it (Refactor.) "RED-GREEN-REFACTOR" has become almost a mantra for many TDD practitioners. Understanding and even internalizing this cycle is key to being able to use TDD to solve problems.
Kent Beck rediscovered this technique in 2003, and from his book "Test-Driven Development by example" is taken this part on the wiki page about TDD.
Test Driven Development in Rails, common setup
How it work's on Ruby on Rails? First of all, you have to include some gems for
ours tests. The most important is Rspec-rails for our integration
test (known as "request specs" in the context of RSpec), so edit your Gemfile,
add the following lines and run bundle install
gem 'rspec-rails', :group => [:development, :test]
gem 'factory_girl_rails', :group => [:development, :test]
group :test do
gem 'database_cleaner'
gem 'email_spec'
gem 'launchy'
gem 'capybara'
end
As you can see we have added also Capybara, FactoryGirls and DatabaseCleaner, during this post we will see how and when use them. Another step, is to tell rails that we wanto to replace fixtures with factories, and to suppress the creation of test files for views and helpers. Open your config/application.rb file and add the following lines:
class Application < Rails::Application
#...
config.generators do |g|
g.test_framework :rspec, :fixture => true
g.fixture_replacement :factory_girl
g.view_specs false
g.helper_specs false
end
Now, running "rails generate rspec:install" to preare your application for the
testing, you will have these files: .rspec, the spec/spec_helper.rb, and the folder spec, that is used to store the test files. You can safely remove the folder "test", if you have created your app without the flag "-T".
To write the rspec files from scratch, we will create a controller with some
views.
To do so, we will use the flag "--no-test-framework" to suppress the generation of the default Rspec tests.
rails generate controller Pages home help --no-test-framework
After that, we'll generate the integration test file for the pages controller
rails generate integration_test pages
This will generate the file spec/requests/pages_spec.rb. Add this line at "require 'capybara/rspec'" in your spec_helper.rb file. Copy this file in another folder, called spec/features/pages_spec.rb.
Yes, in spec/ we'll have 2 subfolders, one called requests and the other one called fetaures. In the folder spec/features we are going to store RSpec feature specs (with capybara), and in spec/requests/ all the RSpec request specs. Request specs are intended to run Integratione test, feature specs are used to driving web application, cheking url and verify content.
Use the first one to test interactions with your application as a HTTP API. Use features specs (with capybara) to test your application like a user could do it.
This is a necessary reading about rspec-rails and capybara.
Now we will write some test that HAS to fail.This is an important point, you are
defining a new feature or starting from scratch, your code is not ready for your
requirement. If the test does not fail, either your text was wrong, or your code
was just ready to pass the test. Both, are wrong. You have to write untill your
code pass the test. After that start to refactoring it, write new test if necessary, and write the small amount of code necessary to pass the test. Now, back on the code.
require 'spec_helper'
describe "Home page" do
it "should have the content 'this text is not here'" do
visit '/pages/home'
page.should have_content('this text is not here')
end
end
Run this command and watch it fail.
bundle exec rspec spec/features/pages_spec.rb
It fails because in the page views/pages/home there is no text 'this text is not here'. Correct the view inserting this text and re-run the test. The same test for RSpec request specs (in spec/requests/), is slightly different.
require 'spec_helper'
describe "Home page" do
it "should have the content 'also this text is not here'" do
get '/pages/home'
expect(response.body).to include("also this text is not here")
end
end
Note, i've write this example just to point out some differences between the two methods, but they should never be used for the same goal, each of them is more appropriated than the other in a specific context, it's up to you find the right one.
Use FactoryGirl
We are going to use factories to define Active Record objects and test them with insert/delete/edit methods. The most used gem for this scope is Facotry Girl. Like Rspec and Capybara, also FG has his own DSL.
There are two ways to define factories:1) Using a single file, spec/factories.rb, or 2) using multiple files, one file for each model. In his railcast, Ryan Bates suggest to use one single file, but is up to you. Rails generator use by default the second method. Create a resource, a Post for example.
rails generate scaffold Post title:string body:text
And update the test db
If the factory-girl-rails gem is correctly installed, this command has generated the file: spec/factories/posts.rb. Open it
FactoryGirl.define do
factory :post do
title "MyString"
body "MyText"
end
end
This factory defines our ActiveRecord object for the model "Post", is the simplest set of attributes necessary to create an instance of this class.
You have to edit your spec/spec_helper.rb, add "require 'factory_girl_rails'" after the other require declaration, and comment the line containing "config.fixture_path = "#{::Rails.root}/spec/fixtures", because we are going to use factories and not fixtures.
We can use this class in our test. How? Let's start from the model, open /spec/models/post.rb and edit it like this:
require 'spec_helper'
describe Post do
it "is valid with title and boby"
it "is not valid with an empty title"
end
If you run "bundle exec rspec spec/models/post_spec.rb" you will see a message like this:
**
Pending:
Post is valid with title and boby
# Not yet implemented
# ./spec/models/post_spec.rb:4
Post is not valid with an empty title
# Not yet implemented
# ./spec/models/post_spec.rb:5
That happens because we dont have defined the test. Open the file and add the following lines, note that we are using FactoryGirl to define the Post ActiveRecord object.
require 'spec_helper'
describe Post do
before(:each) do
@post = FactoryGirl.build(:post)
end
it "is valid with title and boby" do
@post.should be_valid
end
it "is not valid with an empty title" do
@post.title = nil
@post.should_not be_valid
end
end
We create a @post object at the beginning, some users prefere to specify the factory in every test, because you can just override attributes. Check this example
require 'spec_helper'
describe Post do
it "is valid with title and boby" do
post = FactoryGirl.build(:post)
post.should be_valid
end
it "is not valid with an empty title" do
post = FactoryGirl.build(:post, title:nil)
post.should_not be_valid
end
end
I prefer the second one, however, it's a matter of taste.
require 'spec_helper'
describe Post do
it "is valid with title and boby" do
post = FactoryGirl.build(:post)
post.should be_valid
end
it "is not valid with an empty title" do
post = FactoryGirl.build(:post, title:nil)
post.should_not be_valid
end
end
If repeating "FactoryGirl" is too verbose for you, we can can mix the syntax methods. Open you spec/spec_helper.rb and add this line
RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
end
Now edit the spec/models/post.rb and remove the "FactoryGirl" word, because we don't need it anymore.
require 'spec_helper'
describe Post do
it "is valid with title and boby" do
post = build(:post)
post.should be_valid
end
it "is not valid with an empty title" do
post = build(:post, title:nil)
post.should_not be_valid
end
end
If we run this test, we will see the second example failing. The post will be
saved also with an empty title. That's Test Driven Development, we have to
define first what "should happen if", and after that write the code to adapt it to our test. Open the app/post/model.rb and write the following lines:
class Post < ActiveRecord::Base
attr_accessible :body, :title
validates_presence_of :title
end
Database cleaner
Database cleaner is a tool to clean the database before testing. Sometimes, for
example in a user registration, some values has to be unique. For example, if we
try to insert two times a user with the same email, we could have this error
ActiveRecord::RecordInvalid: Validation failed: Email has already been taken, Email has already been taken, Username has already been taken.
It's easy to setup, open your loved spec/spec_helper.rb file and add these lines
RSpec.configure do |config|
config.before(:suite) do
#for sqlite use:
# DatabaseCleaner.strategy = :truncation
# instead the following 2 lines
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do
DatabaseCleaner.start
end
config.after(:each) do
DatabaseCleaner.clean
end
end
Nevertheless, FactoryGirl has a nice method to avoid duplication, the method 'sequence'
FactoryGirl.define do
factory :user do
sequence(:username) { |n| "foo#{n}" }
password "foobar"
email {<EMAIL_ADDRESS>}
More details at this question in stackoverflow
Watchr
It could be very annoying to run a test every time we write something. There is
a tool to automate this process (and a lot of other things, it is used also in
jekyll), called watchr. Add it ro your Gemfile
group :development, :test do
gem 'rspec-rails'
gem 'watchr'
end
Next, add a file called .watchr in your app root folder, with the following content, that tell watchr to run a test each time a .rb file in your app is saved, and each time you save a changement in any file ending in _spec.rb under the spec/
def run_spec(file)
unless File.exist?(file)
puts "#{file} does not exist"
return
end
puts "Running #{file}"
system "bundle exec rspec #{file}"
puts
end
watch("spec/.*/*_spec.rb") do |match|
run_spec match[0]
end
watch("app/(.*/.*).rb") do |match|
run_spec %{spec/#{match[1]}_spec.rb}
end
Open a new console window, and run "watchr .watchr". Nothing happens, true. But if you change a model, a controller or a file in spec/ your test will be running automatically. We can also create a rake task in lib/tasks/watchr.rake
desc "Run watchr"
task :watchr do
sh %{bundle exec watchr .watchr}
end
and run watchr with "rake watchr". Credits to this solution go here
Running your test
you can run the whole test with "rake spec", or simply "rake". You can run a single test with:
bundle exec rspec /spec/models/post_spec.rb
and you can also run a test for a single line, giving the line number as parameter
bundle exec rspec /spec/controllers/posts_controller_spec.rb:10
Why are we using 'bundle exec'? this is needed to load our exact gem environment specified in our Gemfile
List of usefull links
getting started:
http://en.wikipedia.org/wiki/Test-driven_development
http://stackoverflow.com/questions/1386562/how-to-get-started-on-tdd-with-ruby-on-rails
Detailed explanation for the first steps development
http://ruby.railstutorial.org/chapters/static-pages#sec-TDD
best practices
https://docs.google.com/document/d/1gi00-wwPaLk5VvoAJhBVNh9Htw4Rwmj-Ut88T4M2MwI/mobilebasic?pli=1&hl=en
http://blog.carbonfive.com/2010/10/21/rspec-best-practices/
http://bitfluxx.com/2011/05/23/some-rspec-tips-and-best-practices.html
Slides about different types of tests
http://alindeman.github.com/acceptance_testing
Capybara
https://github.com/jnicklas/capybara
http://rubydoc.info/github/jnicklas/capybara
Factory Girl Rails
http://ruby.railstutorial.org/chapters/sign-up#sec-tests_with_factories
https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md
Matt Wynne blog
http://blog.mattwynne.net/
Chris Parsons Blog
http://chrismdp.com/
They run together this project about behaviuor test development (i will write soon about it)
http://bddkickstart.com/


Configuration settings for vscpl2drv-tcpiplink.so
GUID on the form 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
The zone (a number between 0-255 to use for automation events.
The subzone (a number between 0-255 to use for automation events.
The longitude for which automation evenst should be sent.
The llatitude for which automation evenst should be sent.
Comma separated list of filter parts priority, class, type, guid
Comma separated list of mask parts priority, class, type, guid


{{ template "head" .}}
We're still in alpha phase for this UI.
You might want to install our CLI (Command line interface) .
This web interface is still heavily in development.


Pomodoro based timeboxing using an app on my phone called 5217. 52 minutes work, 17 minutes break.
The neurological science behind mindfulness meditation.
Recording time taken on tasks using toggle. Reviewing the time records helped to keep me mindful of the scope of tasks and to consider what aspects were causing me to take longer than. I would have expected.


Our mission is to revolutionize personal philanthropy by democratizing donor-advised funds.
Giv2giv.org is an online fundraising platform that allows people to donate, regardless of donation size, to endowments which provide non-profit organizations with a perpetual income stream of unrestricted grants. Donations can be made to existing endowments or a donor can choose to create their own unique endowment to include the variety of causes which they support. Grants are paid to charities on a quarterly basis and charities are allowed to use the funds for any charitable purpose.
Our goals are simple
- Provide consistent, recurring revenue to 501(c)(3) charities
- Reduce administrative overhead
- Allow all donors and charities to collaborate on the transition from episodic giving to a legacy of generational wealth for good
Both donors and charities benefit from giv2giv
Benefits to donors:
- Leave a legacy that will support your favorite charities forever, not just a one-time donation
- Build, share and grow endowments with friends, family, and co-workers
- Donations are tax deductible to the same extent as a normal donations to your favorite charity
Benefits to charities:
- Source regular, predictable unrestricted donations for your organization’s most important needs
- Pass-thru donations are available in your bank account after 4-10 days
- Invested endowment fund grants are deposited quarterly
- Spend less money on marketing designed to acquire and retain donors
- Reduced administrative burden - Gift receipts automatically sent!


JVFlowerMenu
open class JVFlowerMenu: Pedal
The class that represents the JVFlowerMenu
-
The distance the
Pedal
’s will fly away from theJVFlowerMenu
. The default is 100Declaration
Swift
open var pedalDistance: CGFloat = 100
-
The space between each
Pedal
once expanded. The Default is 50Declaration
Swift
open var pedalSpace: CGFloat = 50
-
Angle from the center of the
JVFlowerMenu
that the firstPedal
’s center will be upon completion of expansion. Default it 0 (Directly above theJVFlowerMenu
)Declaration
Swift
open var startAngle: CGFloat = 0
-
The amound of time the
JVFlowerMenu
will take to grow itsPedal
’s when expanded. Default is 0.4 secondsDeclaration
Swift
open var growthDuration: TimeInterval = 0.4
-
amount of time between
Pedal
growth duringJVFlowerMenu
expansion. Default is 0.6 seconds.Declaration
Swift
open var stagger: TimeInterval = 0.06
-
Boolean that lets you check the state of the
JVFlowerMenu
Declaration
Swift
open var menuIsExpanded: Bool = false
-
The delegate for the
JVFlowerMenu
where events will be broadcast.Declaration
Swift
open var delegate: JVFlowerMenuDelegate?
-
The designated initalizer for the
JVFlowerMenu
- Parameters:
- I: The image that will represent the
JVFlowerMenu
to the user. If nil is passed then a basic hamburger menu is drawn. - title: The title of the
JVFlowerMenu
to communicate functionality to users. If nil is passed then nothing is displayed.
- I: The image that will represent the
Declaration
Swift
public override init(withImage I: UIImage?, andTitle title: String?)
Parameters
I
The image that will represent the
JVFlowerMenu
to the user. If nil is passed then a basic hamburger menu is drawn.title
The title of the
JVFlowerMenu
to communicate functionality to users. If nil is passed then nothing is displayed. - Parameters:
-
The method that can be used to add a
Pedal
to theJVFlowerMenu
.
Parameters
image
The image for the new
Pedal
. Defaults to a basicUIColor.blue
circle if nil is passed.title
The title for the new
Pedal
. Defaults to nothing if nil is passed -
Make the
JVFlowerMenu
grow its pedals.Declaration
Swift
public func grow()
-
Make the
JVFlowerMenu
shrivel its pedals.Declaration
Swift
public func shrivel()


Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by Mark Otto and Jacob Thornton.
This is the Sass version of Bootstrap. A port of Bootsrap from Less to Sass. This project is focused on being a 1:1 port of the original. Please do not submit issues or pull requests for issues with Bootstrap itself. Those should be pushed upstream in the Less version.
To get started, check out http://getbootstrap.com!
Three quick start options are available:
git clone git://github.com/jlong/sass-twitter-bootstrap.git
.bower install --save sass-bootstrap
.You can use the Sass Bootstrap by dropping the compiled CSS into any new project and start cranking.
Because SASS always outputs standard css, just link to the final output like normal:
<link rel="stylesheet" type="text/css" href="./dist/css/bootstrap.css">
For more info, refer to the docs!
You can learn more about Sass at:
Sass runs as a local GEM on your system. You can run sass --watch lib/bootstrap.scss:dist/css/bootstrap.css
Please do not submit issues or pull requests for issues with Bootstrap itself. Those should be pushed upstream in the Less version. Please open a new issue. Before opening any issue, please search for existing issues and read the Issue Guidelines, written by Nicolas Gallagher.
You may use this JS Bin as a template for your bug reports.
Bootstrap's documentation, included in this repo in the root directory, is built with Jekyll and publicly hosted on GitHub Pages at http://getbootstrap.com. The docs may also be run locally.
/bootstrap
directory, run jekyll serve
in the command line.
chcp 65001
first to change the command prompt's character encoding (code page) to UTF-8 so Jekyll runs without errors.Learn more about using Jekyll by reading their documentation.
Documentation for v2.3.2 has been made available for the time being at http://getbootstrap.com/2.3.2/ while folks transition to Bootstrap 3.
Previous releases and their documentation are also available for download.
Bootstrap uses Grunt with convenient methods for working with the framework. It's how we compile our code, run tests, and more. To use it, install the required dependencies as directed and then run some Grunt commands.
From the command line:
grunt-cli
globally with npm install -g grunt-cli
.npm install
When completed, you'll be able to run the various Grunt commands provided from the command line.
Unfamiliar with npm
? Don't have node installed? That's a-okay. npm stands for node packaged modules and is a way to manage development dependencies through node.js. Download and install node.js before proceeding.
grunt
Run grunt
to run tests locally and compile the CSS and JavaScript into /dist
. Requires recess and uglify-js.
grunt dist
grunt dist
creates the /dist
directory with compiled files. Requires recess and uglify-js.
grunt test
Runs jshint and qunit tests headlessly in phantomjs (used for CI). Requires phantomjs.
grunt watch
This is a convenience method for watching just Less files and automatically building them whenever you save.
Should you encounter problems with installing dependencies or running Grunt commands, uninstall all previous dependency versions (global and local). Then, rerun npm install
.
Please read through our guidelines for contributing to Bootstrap. Included are directions for opening issues, coding standards, and notes on development.
More over, if your pull request contains JavaScript patches or features, you must include relevant unit tests. All HTML and CSS should conform to the Code Guide, maintained by Mark Otto.
Editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at http://editorconfig.org.
Keep track of development and community news.
irc.freenode.net
server, in the ##twitter-bootstrap
channel.For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible.
Releases will be numbered with the following format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
For more information on SemVer, please visit http://semver.org/.
We have included a Rakefile with convenience methods for working with the SASS Bootstrap library.
build - rake build
This will run the less compiler on the bootstrap lib and regenerate the docs dir.
The lessc compiler is required for this command to run.
watch - rake watch
This is a convenience method for watching your Sass files and automatically building them whenever you save.
Mark Otto
Jacob Thornton
The Twitter Bootstrap was lovingly converted to Sass by:
John W. Long
Jeremy Hinegardner
m5o
smt
And others
spin
with adjust-hue
If you already use Composer, the php dependency manager, installing
sass-twitter-bootstrap is as simple as typing :
shell
composer.phar require jlong/sass-twitter-bootstrap:x.y.z
This will install version x.y.z from packagist.org
You'll probably want to make sure you get minor updates, like this:
shell
composer.phar require jlong/sass-twitter-bootstrap:~x.y.z
or like this:
shell
composer.phar require jlong/sass-twitter-bootstrap:x.y.*
Copyright 2012 Twitter, Inc under the Apache 2.0 license.


"Pump and Dump" is a cryptocurrency trading game that lets you create or buy coins in a virtual trading market. The aim of the game is to create a coin or buy one when the price is low.
Once you own a coin, go and promote that coin to others online. When they buy, the market value increases. When the value is high enough, sell your coin back for real money!
Coins created in this game are not actual cryptocurrencies.
Dev fees are 1% of coin trades, and 90% of coin creation costs.


CHAPTER 48
ECONOMIC DEVELOPMENT BONDS
Section
48-1 Definitions
48-2 Department authority
48-3 Certificate of convenience and necessity
48-4 Procedure
48-5 Authorization for issuance of bonds
48-6 Annual report
48-7 Provisions of chapter controlling
Note
Chapter heading amended by L 1974, c 254, §1(1).


#include <cudpp.h>
#include <limits.h>
#include <float.h>
Classes | |
| struct | typeToVector< T, N > |
| Utility template struct for generating small vector types from scalar types. More... | |
| class | Operator< T, oper > |
| Templatized operator class used by scan and segmented scan. More... | |
Functions | |
| bool | isPowerOfTwo (int n) |
| Determine if n is a power of two. | |
| bool | isMultiple (int n, int f) |
| Determine if an integer n is a multiple of an integer f. | |
| int | ceilPow2 (int n) |
| Compute the smallest power of two larger than n. | |
| int | floorPow2 (int n) |
| Compute the largest power of two smaller than n. | |
| template<class T > | |
| __host__ __device__ T | getMax () |
| Returns the maximum value for type T. | |
| template<class T > | |
| __host__ __device__ T | getMin () |
| Returns the minimum value for type T. | |
| template<class T > | |
| int | max3 (T a, T b, T c) |
| Returns the maximum of three values. |
| bool isPowerOfTwo | ( | int | n | ) | [inline] |
Determine if n is a power of two.
| n | Value to be checked to see if it is a power of two |
| bool isMultiple | ( | int | n, | |
| int | f | |||
| ) | [inline] |
Determine if an integer n is a multiple of an integer f.
| n | Multiple | |
| f | Factor |
| int ceilPow2 | ( | int | n | ) | [inline] |
Compute the smallest power of two larger than n.
| n | Input value |
| int floorPow2 | ( | int | n | ) | [inline] |
Compute the largest power of two smaller than n.
| n | Input value |
| __host__ __device__ unsigned char getMax | ( | ) | [inline] |
Returns the maximum value for type T.
Implemented using template specialization on T.
| __host__ __device__ unsigned char getMin | ( | ) | [inline] |
Returns the minimum value for type T.
Implemented using template specialization on T.
| int max3 | ( | T | a, | |
| T | b, | |||
| T | c | |||
| ) | [inline] |
Returns the maximum of three values.
| a | First value. | |
| b | Second value. | |
| c | Third value. |


Q. 91. What is the fifth commandment?
A. The fifth commandment is, Honor thy father and thy mother, that thy days may be long upon the land which the Lord thy God giveth thee.
Q. 92. What does the fifth commandment teach me?
A. To love and obey our parents and teachers.


Projects
Amy's Personal Portfolio
Hi there! This is a training project for FreeCodeCamp's Responsive Web Design course.
FreeCodeCamp Projects


Users
First Name
Last Name
Group
Last Login
Brad
Jones
Administrators
01/01/2015 09:00:00
Edit
Delete
Foo
Bar
Users
01/01/2015 09:00:00
Edit
Delete
Fred
Bob
User
01/01/2015 09:00:00
Edit
Delete


{{ label }} is required
{{ label }} provided is invalid
{{ label }} can't be less than {{ field.errors.minlength?.requiredLength }} characters
{{ label }} can't be more than {{ field.errors.maxlength?.requiredLength }} characters
{{ label }} Too early!
{{ label }} Too late!
{{ label }} unavailable!
{{ renderMsg(field.errors[errKey]) }}
{{ message }}


Once upon a time... (in 2006)
It was hard to work with open source geospatial tools, you had to use the command line to install and configure, let alone use them
QGIS was 4 years old, but not commonly used
GRASS GIS was the most common open source desktop GIS and it looked like this:
(flashback to FOSS4G 2007)
Portable GIS (noun)
Born 2006 (ish)
"por.ta.ble": capable of being carried or moved about
"g.i.s": geographical information systems
aka: GIS on a stick
What it is:
A self-contained set of the common open source GIS packages, designed to run in windows, from a USB stick
Installed using a single installer file, requiring no additional configuration or setup
Along with some Ordnance Survey Open Data
And a control panel for easy access to all the components
What it is not:
A Bootable Drive (like OSGeo Live)
Cross-Platform
Compatible with "portableapps.com"
Small- current installation is a 750MB download and 2.6GB installed
also not a stealth system
It has many potential uses; like rapid-deployment scenarios, education, training workshops, any time you want to take your work home with you...
But what software does it contain?
Where can I get it?
Download the exe file (~750MB) from:
Future Development Plans
(Easy, will happen soon(ish))
Long-term Wish-list
(Harder)
Hosting on GitHub (*)
Something clever to download latest binaries
Reduce size of download/speed of installation
NO!
*that record scratching noise people use to indicate a sudden stop*
Github hosting and code-polishing would be hipster-cool, but what I really want is for it to be useful!
So if you find it useful, then please, go ahead, use it, and send me a postcard (real or virtual)
... but if anyone has any ideas about the code-polishing, hipster-cool github stuff then...


Try Agin
Exit
Touch to Start RED
Start (Green)
White
Black
Yellow
End
Blue
Orange
Indigo
Voilate
Facebook Page
{{}}


Rose India Technologies Pvt. Ltd. is a global services company that ensures maximum returns by providing quality software solutions and services. The Indian based company provides services to several reputed institutional clients, in the domain of IT and IT enabled Technologies. We help in understanding the client requirements and offer customized solutions in various specialized areas like Web based Technologies, Database Systems, Client Server Architecture, E-commerce Solutions and Consultancy Services


Vox Charta: Top 100 Papers of Last 30 Days Astrobites AAS Nova @Awesome_Ph Today in Particle Astrophysics Astro-ph Astronomy ADS


1.GENERAL MANAGER:
Employee Manager
The employee manager subsystem allows managers to view current employees, employee access levels, update employee details, and to add/delete employees from the Vendor Order Management System. (Only available to managers)
Supplier Manager
The supplier manager subsystem will allow employees to add suppliers to the Vendor Order Management System, as well as delete suppliers, view suppliers as well as update supplier details.
Customer Manager
The customer manager subsystem will allow employees to add customers to the Vendor Order Management System, as well as delete customers, view customers as well as update customer details.
Product Manager
The product manager subsystem will allow employees to add products to the Vendor Order Management System, as well as delete products, view products as well as update product details.
All Managers have the same layout with the same functionality while relating to their respective information.


| public nothrow | Disassembly(Breakpoints* breakpoints_) |
| public override void | Draw() |
| private String<uchar> | GetInstructionLine(ulong address) |
| public override CommandResult | HandleKey(int key) |
| public void | RetrieveInstructions(ulong pc, Process* process) |
| public nothrow void | SetBreakpoints(Breakpoints* breakpoints) |
| public nothrow void | SetEntryPointAddress(ulong entryPointAddress_) |
| public nothrow void | SetInstructionEndAddress(ulong instructionEndAddress_) |
| public nothrow void | SetScreen(Screen* screen_) |
| public nothrow void | SetSymbolTable(SymbolTable* symbolTable) |
| private Breakpoints* | breakpoints |
| private DissamblyFormatter | disassemblyFormatter |
| private ulong | entryPointAddress |
| private HeaderLine | header |
| private ulong | instructionEndAddress |
| private HashMap<ulong, long, Hasher<ulong>, EqualTo<ulong>> | instructions |


Travel Map With Cartopy
In a former post I generated a travel map plotted with Basemap. From the Basemap documentation, however, Cartopy will replace Basemap:
Starting in 2016, Basemap came under new management. The Cartopy project will replace Basemap, but it hasn’t yet implemented all of Basemap’s features. All new software development should try to use Cartopy whenever possible, and existing software should start the process of switching over to use Cartopy. All maintenance and development efforts should be focused on Cartopy.
In this post, I generate a similar travel map using Cartopy.
%matplotlib inline
import matplotlib
import cartopy
import pandas as pd
%load_ext watermark
%watermark -iv
We start with a simple example from the Cartopy documentation to plot a ground track between two points.
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
ax = plt.axes(projection=ccrs.Robinson())
ax.set_global()
ax.coastlines()
# [lng1, lng2], [lat1, lat2]
plt.plot([-6.26, -82.99], [53.35, 39.96], color='blue',
transform=ccrs.PlateCarree())
Switching from the PlateCarree
transformation to the Geodetic
transformation, we can instead plot a great circle between to points.
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
ax = plt.axes(projection=ccrs.Robinson())
ax.set_global()
ax.coastlines()
# [lng1, lng2], [lat1, lat2]
plt.plot([-6.26, -82.99], [53.35, 39.96], color='#2E5FAC',
transform=ccrs.Geodetic())
Next we shade the land and water areas. Note that the water defaults to white so line 12 to specify white water is redundant, but I leave this in should you choose to use a different color. I will later remove this when increasing the resolution of the coastlines.
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy
ax = plt.axes(projection=ccrs.Robinson())
ax.set_global()
ax.coastlines()
# color land and water
ax.add_feature(cartopy.feature.LAND, zorder=0, edgecolor='#7f7f7f',
facecolor='#B1B2B4')
ax.add_feature(cartopy.feature.OCEAN, zorder=0, facecolor='white')
# [lng1, lng2], [lat1, lat2]
plt.plot([-6.26, -82.99], [53.35, 39.96], color='#2E5FAC',
transform=ccrs.Geodetic())
Next we use set_extent
to zoom in on the area of interest.
%matplotlib inline
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy
ax = plt.axes(projection=ccrs.Robinson())
ax.set_global()
ax.coastlines()
# [lon_min, lon_max, lat_min, lat_max]
ax.set_extent([-120, 10, 20, 65], crs=ccrs.PlateCarree())
# color land and water
ax.add_feature(cartopy.feature.LAND, zorder=0, edgecolor='#7f7f7f',
facecolor='#B1B2B4')
ax.add_feature(cartopy.feature.OCEAN, zorder=0, facecolor='white')
# [lon1, lon2], [lat1, lat2]
plt.plot([-6.26, -82.99], [53.35, 39.96], color='#2E5FAC', marker='o',
transform=ccrs.Geodetic())
Next we add country and state borders.
%matplotlib inline
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
import cartopy
ax = plt.axes(projection=ccrs.Robinson())
ax.set_global()
ax.coastlines()
# [lon_min, lon_max, lat_min, lat_max]
ax.set_extent([-120, 10, 20, 65], crs=ccrs.PlateCarree())
# color land and water
ax.add_feature(cartopy.feature.LAND, zorder=0,
edgecolor='#7f7f7f', facecolor='#B1B2B4')
ax.add_feature(cartopy.feature.OCEAN, zorder=0, facecolor='white')
# country borders
ax.add_feature(cartopy.feature.BORDERS, zorder=0,
edgecolor='#000000', linewidth=.1)
# state borders
states_provinces = cfeature.NaturalEarthFeature(
category='cultural',
name='admin_1_states_provinces_lines',
scale='50m',
facecolor='none', linewidth=.1)
ax.add_feature(states_provinces, edgecolor='#D3D3D3')
# [lon1, lon2], [lat1, lat2]
plt.plot([-6.26, -82.99], [53.35, 39.96], color='#2E5FAC',
marker='o', transform=ccrs.Geodetic())
Finally, we wrap this all up in a function, add lakes, increase the resolution of the land and coastlines, and load some data into a DataFrame to generate the plot.
def plot_great_circles(df,fname):
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
import cartopy
ax = plt.axes(projection=ccrs.Robinson())
ax.set_global()
ax.add_feature(cfeature.LAKES, facecolor='white',
edgecolor='black', linewidth=.1)
ax.coastlines('50m', linewidth=0.2)
# [lon_min, lon_max, lat_min, lat_max]
ax.set_extent([-120, 10, 20, 65], crs=ccrs.PlateCarree())
# add and color high-resolution land
LAND_highres = cfeature.NaturalEarthFeature('physical', 'land', '50m',
edgecolor='white',
facecolor='#B1B2B',
linewidth=.1
)
ax.add_feature(LAND_highres, zorder=0,
edgecolor='#7f7f7f', facecolor='#B1B2B4')
# add country borders
ax.add_feature(cartopy.feature.BORDERS, zorder=0,
edgecolor='#000000', linewidth=.1)
# add state borders
states_provinces = cfeature.NaturalEarthFeature(
category='cultural',
name='admin_1_states_provinces_lines',
scale='50m',
zorder=1,
facecolor='none',
linewidth=.1)
ax.add_feature(states_provinces, edgecolor='#D3D3D3')
# plot all great circles
for row in range(df.shape[0]):
Lat_Orig = df.loc[df.index[row],'Lat_Orig']
Lng_Orig = df.loc[df.index[row],'Lng_Orig']
Lat_Des = df.loc[df.index[row],'Lat_Des']
Lng_Des = df.loc[df.index[row],'Lng_Des']
plt.plot([Lng_Orig, Lng_Des], [Lat_Orig, Lat_Des],
color='#2E5FAC', linewidth=.5,
marker='o', markerfacecolor='#CF5300',
markeredgecolor='#CF5300', markersize=1,
transform=ccrs.Geodetic())
plt.savefig(fname,bbox_inches='tight', dpi=300)
df = pd.read_csv('2018_travel.csv')
df.head()
And here is our final plot:
plot_great_circles(df,fname='2018_Travel.png')
Closing Thoughts¶
Cartopy continues to be actively developed and I plan to use it for future cartographic plotting in Python. Also take a look at this great example of using Cartopy.
This post was written entirely in the Jupyter notebook. You can download the original notebook.


The tal:content
& tal:replace
attributes
The tal:content
and tal:replace
attributes have very similar effects upon the rendering output.
The two attributes are also mutually exclusive, no element may have both attributes.
Both attributes use a TALES expression as their attribute value, this expression is evaluated and the result is written to the rendered document.
In the case of the tal:content
attribute, the expression result is written as the new content of the element (leaving the element start & end tags intact).
In the case of the tal:replace
attribute, the expression result fully replaces the element (the start & end tags are removed).
The expression result is treated as text by default
When a content or replace attribute evaluats a TALES expression, if the result is not a string
, then it is converted to string via the built-in Object.ToString()
method.
Additionally, by default, the expression result is treated strictly as text and not as markup.
This means that any symbols appearing in the expression result that are reserved symbols in the markup (for example the less-than symbol <
) are replaced by their entity-encoded equivalent (for example <
).
This helps prevent XSS attacks against the application.
Inserting markup using content or replace attributes
There are two ways to explicitly make a tal:content
or tal:replace
attribute write the expression result as markup (including elements & attributes etc).
- Include the word
structure
and a space in the attribute value before the expression - If the expression result implements the interface
IGetsStructuredMarkup
, such as if it has been through astructure:
expression.
In both cases above, the expression result will instead be written to the rendered document verbatim; reserved symbols will not be encoded.
Designers should be very careful when permitting structure in a content or replace attribute. Ensure that all data is appropriately sanitized, particularly if it is user-generated or has come from an untrusted source.
Any existing content of the element is removed
When a content or replace attribute is processed, any and all existing content & descendents of the element which has the attribute is removed from the DOM. This technique may be used to provide "sample content" in the document template. This can help a designer understand the sorts of content which TAL will render into that element, without needing to see the template rendered in the full application.
If the expression result is null
If the expression result for a tal:content
attribute is null
, then all content & descendents of the element are removed and the element is left empty.
If the expression result for a tal:replace
attribute is null
, then the entire element and all content & descendents are removed.
Some TAL attributes are copied
For a tal:replace
attribute only, if the element which has the attribute also has either of the following attributes, then these attributes are copied to the top-level nodes of the replacement, provided that any of these nodes are element nodes.
This occurs because these two attributes would usually be processed after a replace attribute. Thus they are evaluated as if they were present upon the replacement element(s).
Aborting a tal:content
attribute
If the expression result is an instance of AbortZptActionToken
, such as via the root context default
, then a tal:content
attribute will behave as if it were not present.
The element will be left in-place along with all of its original content & descendents from the template.
Aborting a tal:replace
attribute
If the expression result is an instance of AbortZptActionToken
, such as via the root context default
, then a tal:replace
attribute is a little more complex than that of a content attribute.
- The start & end tags of the element which bears the
tal:replace
attribute are omitted from the DOM, in a similar way to atal:omit-tag
attribute. - The contents & descendents of the (now-omitted) element which had the
tal:replace
attribute are left intact and no further replacement is made
This means that if the replacement is aborted, the tag which has the replace attribute is essentially "replaced with its original content". Note that even when a replace attribute is aborted, the TAL attribute copying described above still occurs.
Examples
An element with a content attribute
This snippet would render as a

element with content equal to the value of the expression here/message
.
Any reserved symbols present in the expression result will be encoded, for example &
would become &

This will be replaced by a message

An element with a replace attribute
This snippet would render as a

element with the text "This will show", immediately followed by the value of the expression here/message
.
The
element present in the source template will not render at all, because the whole element will be replaced by the expression result.
Any reserved symbols present in the expression result will be encoded, for example &
would become &

This will show a message

Content that uses the structure
keyword
This content prefixes the TALES expression with the structure
keyword and a space.
This will behave as the tal:content
example above, except that reserved symbols will not be encoded.
This means that if the expression result includes markup, then it will be rendered as markup.

This will be replaced by a message


Demolished Palestinian home becomes conflict symbol
BEIRUT: A Lebanese court on Friday sentenced a taxi driver to death for the 2017 murder of British embassy worker Rebecca Dykes, the national news agency reported.
The Mount Lebanon criminal court sentenced the accused to death for the rape and murder of the young British woman, the agency said, naming the killer as Tariq Samer Howeish.
The 30-year-old’s lifeless body was found dumped on the side of a road north of Beirut in December 2017.
The driver employed by ride-hailing giant Uber was reported by judicial sources at the time as having been arrested twice prior to the murder for alleged harassment and theft.
Capital punishment is legal in Lebanon although no execution has been carried out in 15 years.


Recipe 8.2. Measuring Memory Usage on Linux
Credit: Jean Brouwers
Problem
You need to monitor how much memory your
Python application, running under Linux, is currently using. However,
the standard library module resource does not work
correctly on Linux.
Solution
We can code our own resource measurements based on
Linux's /proc
pseudo-filesystem:
import os
_proc_status = '/proc/%d/status' % os.getpid( )
_scale = {'kB': 1024.0, 'mB': 1024.0*1024.0,
'KB': 1024.0, 'MB': 1024.0*1024.0}
def _VmB(VmKey):
''' given a VmKey string, returns a number of bytes. '''
# get pseudo file /proc/<pid>/status
try:
t = open(_proc_status)
v = t.read( )
t.close( )
except IOError:
return 0.0 # non-Linux?
# get VmKey line e.g. 'VmRSS: 9999 kB\n ...'
i = v.index(VmKey)
v = v[i:].split(None, 3) # split on runs of whitespace
if len(v) < 3:
return 0.0 # invalid format?
# convert Vm value to bytes
return float(v[1]) * _scale[v[2]]
def memory(since=0.0):
''' Return virtual memory usage in bytes. '''
return _VmB('VmSize:') - since
def resident(since=0.0):
''' Return resident memory usage in bytes. '''
return _VmB('VmRSS:') - since
def stacksize(since=0.0):
''' Return stack size in bytes. '''
return _VmB('VmStk:') - since
Discussion
Each of the functions in this recipe takes an optional argument
since because the typical usage of these functions
is to find out how much more memory (virtual,
resident, or stack) has been used due to a certain section of code.
Having since as an optional argument makes this
typical usage quite simple and elegant:
m0 = memory( )
section of code you're monitoring
m1 = memory(m0)
print 'The monitored section consumed', m1, 'bytes of virtual memory'.
Getting and parsing the contents of pseudo-file
/proc/pid/status is probably not the most
efficient way to get data about memory usage, and it is not portable
to non-Linux systems. However, it is a very
simple and easy-to-code approach, and after all, on a non-Linux Unix
system, you can use the
resource module from the Python Standard
Library.
In fact, you can use resource
on Linux, but the various fields relevant to memory consumption, such
as ru_maxrss, all have a constant value of 0, just
like the various memory-consumption fields in the output of the
time shell command under Linux. The root cause of
this situation is a limitation in the Linux implementation of the
geTRusage system call, documented in man
getrusage.
See Also
Documentation on the resource standard library
module in the Library Reference.
|


Mason Holgate lifts lid on individual improvement this season under Marco Silva
The Englishman has come into his own in recent weeks.
by Sam PrestonEverton defender Mason Holgate has said a conversation with Marco Silva transformed his focus after his loan spell with West Brom last season.
The £25,000-a-week (Spotrac) defender says his concentration improved after a frank chat with Silva about his lack of gametime this term, having grown used to regular football at the Hawthorns.
He told Everton’s official website: “I went to talk to the gaffer because I’d gone from playing every game to coming back and not playing. We had a really good conversation and he told me what I had to work on.
“Since that day my focus has been much more ‘on’. I’ve been working on different parts of my game and I think that is starting to show. It is down to me to prove I’ve made progress, then the manager has to make his decision over whether I play. When I do get my chances, I have to prove to him I can stay in the team.”
TBR’s View – Everton’s lack of central defensive depth offers Holgate a real opportunity
In truth, Everton needed a fourth centre half to come through the door during the summer and they made no secret of their desire to sign Kurt Zouma.
But none were forthcoming and that means that Holgate, who was playing right wing back in the Championship last season, has a real chance to stake his claim at the heart of a Premier League defence.
He has done that in recent weeks and given Yerry Mina’s injury history, he may get the opportunity to establish himself at Goodison Park, taking all that he has learned from his loan spell last season into this term.
Have something to tell us about this article?
Let us know


I have been a licensed physical therapy assistant in CA for the last six years. As a PTA, I am a part of a multi-disciplinary team of clinicians, with a goal to help our residents return to their previous functional levels. In this phase of my journey, I have taught, listened, and learned from both colleagues and patients alike.
For many, skilled nursing facilities, or SNFs (pronounced "sniffs"), are viable options for families who have friends and/or loved ones that need medical attention at a daily basis. However, not very many know what to look for when choosing a SNF for a loved one. Here, I'm going to share what I believe makes for a good Skilled Nursing Facility.
Yes, the smell. When you walk into a facility, the first thing you should look for is the smell. It is a great indicator of a well-kept SNF. While 'shopping' around for a SNF take the time to walk halls and pay attention to any foul odors! A well kept SNF will not necessarily smell great, but odor-free is a sign that patients are attended to and that the facilities are clean.
The size of the facility is important to consider when choosing a SNF. A larger facility need to be staffed properly so the residents aren't spread too thin. In my experience a capable CNA (certified nursing assistant) should be able to attend to a maximum of Five patients at a time. I've found that tending to more than that becomes overwhelming even to capable CNAs.
A brief explanation ofr the teams a SNF typically consist of:
This team coordinates accounts and monetary issues involved during the resident's stay. Any issues with the facility as a whole can be addressed through this team.
The nursing team addresses most things medical-related with the resident. This team ensures medications are administered on time and as prescribed. They also are in charge of the CNAs, who are interact with the residents at a regular basis. This brings me to the next team...
Technically, they are a part of the nursing team. But CNAs roam all over a typical SNF, and commonly are closest to the residents who live there. This group are the ones who interact with the residents during all sorts of daily activities such as dressing, feeding, and toileting. Be nice to the CNAs!
This is my team. The rehab department is responsible for helping the residents recover their previous functional abilities. We help residents improve their balance, strength, coordination, while also increasing their awareness for safety while completing even the most mundane of activities. Our job is to make sure residents do not come back after leaving the SNF by being safer while at home.
There are other teams that make up a SNF like the dietary, maintenance, and social services teams, which are all equally important to consider when deciding on a certain facility. The most important thing to consider is that all teams are on the same page in regards to your loved one's needs.


--- layout: post status: publish published: true title: '"Never Gonna Get It" - Podcast Episode 6.20' author: display_name: Corey Fineran login: Corey email<EMAIL_ADDRESS>url: '' author_login: Corey author_email<EMAIL_ADDRESS>wordpress_id: 10161 wordpress_url: http://ivyenvy.com/?p=10161 date: '2014-06-29 23:53:20 +0000' date_gmt: '2014-06-30 04:53:20 +0000' categories: - Podcast tags: - Iowa Cubs - Arismendy Alcantara - Javier Baez - Kris Bryant - Dallas Beeler - Kyle Schwarber comments: [] ---
For just the fourth time in the last four seasons, the Cubs will finish a month with a .500 record for the month. We talk a little about who is to credit for this "success", both offensively and pitching-wise. Will this be the only month in the 2014 season that the Cubs play at or better than .500?
We spend some time looking at the Iowa Cubs roster, realizing this is by far the most exciting roster Iowa (or any Cubs minor league team) has had since we started our podcast in March of 2009. In doing so, we look at who may be the first position prospect the Cubs call up to the big league team, Arismendy Alcantara.
Dallas Beeler had a really nice MLB debut and we look at this game and discuss Theo's motivational approach to calling him up.
We answer a handful of listener submitted questions, Corey steps on Kurt's Scary Stat of the Week and we award a winner for this week's photo caption contest.
If you'd like information on the Ivy Envy Weekend at the Lake, go to http://ivyenvy.com/lake
To support our podcast, check out our Patreon campaign.


SapphireDb has different options to configure your application to do what you want.
To configure the SapphireDb-Server pass the options object in the service configuration.
You can also pass a configuration section when creating the database options. This will load the settings from it.
ApiConfigurations
, EnableAuthCommands
,
ServerSentEventsInterface
, WebsocketInterface
If you want to restrict access to the server you can define api configurations. You should define a configuration for every client application.
Every configuration consists of a key, a secret and a readable name.
Default: []
SHA512
-hash.
If you want to disable auth commands (commands to manage users and to login) you can use this option.
Default: true
You can disable the different interfaces if you dont need them.
Default: true
Checks if a connection is allowed to execute a command. Because every action is a command, this method can be used to
generally control all interactions.
Default: Allows to execute Login
and Renew
when not authenticated. If authenticated everything is allowed.
Control if the user is allowed to query information of roles and users.
Default: Allowed for every authenticated user in role admin
Control if the user is allowed to manipulate information of roles and users.
Default: Allowed for every authenticated user in role admin
Control if the user is allowed to publish messages.
Default: Allowed for every authenticated user
Control if the user is allowed to subscribe messages in topic(s).
Default: Allowed for every authenticated user
Control if the user is allowed to publish messages in topic(s).
Default: Allowed for every authenticated user
Control if the user is allowed to manage connections.
Default: Allowed for every authenticated user in role admin


Swipeout is an extension of list view that allows you to swipe over list elements to reveal hidden menu with available actions, like swipe-to-delete.
Let's look on layout structure of swipeout element in your list views:

...

...

Action 1
Action 2

Action 1
Action 2

...

Where:
swipeout-content
- wrapper for your list element. This container will move during swipe over the list itemswipeout-actions-left
- container with left swipeout action buttons/linksswipeout-actions-right
- container with right swipeout action buttons/linksswipeout-close
- additional class on swipeout link that will close swipeout element when you click this linkNote that swipeout-content and swipeout-actions-left/right should be direct children of

If you have only "item-content" you can simplify layout by adding "item-content" class to "swipeout-content":

...

...

Action 1
Action 2

If you use link elements you can use all these classes on link:

...

...

Action 1
Action 2

...

...

Action 1

...

...

Action 1
Action 2

...

...

...

Action 1

...

...

Action 1
Action 2

...

...

...

Action L1

Action R1

...

...

Action L1
Action L2

Action R1
Action R2

...

var myApp = new Framework7();
var $$ = Dom7;
$$('.action1').on('click', function () {
myApp.alert('Action 1');
});
$$('.action2').on('click', function () {
myApp.alert('Action 2');
});
Framework7 supports this frequently used feature from the box without single line of JavaScript. All you need is to add  link to swipeout actions buttons:

...

...

Delete

It is also possible to call Confirm modal when user clicks on "Delete" button, and element will be removed only after confirmation. To make delete on confirmation you need to add additional data-confirm and data-confirm-title (optional) attributes to Delete link:

...

...

Delete

If you want to close swipeout element when user dismissed Confirm modal, then you need also to add data-close-on-cancel attribute:

...

...

Delete

Swipeouts also support "overswipe" actions that will be triggered automatically if you swipe actions too much. In this case we need to add "swipeout-overswipe" class to required actions button:

...

...

More
Delete

overswipe can be used only on last button in right swipeout actions, and only on first button in left swipeout actions.
With overswipe, script will automatically trigger "click" event on overswipe button, so you need to add appropriate event listener to this button
Overswipe button will have additonal "swipeout-overswipe-active" class during overswipe which you can use for additional styling of such state

Facebook

17:14

New messages from John Doe

Lorem ipsum ...

Reply
Forward

Mark
Delete

var myApp = new Framework7();
var $$ = Dom7;
$$('.mark').on('click', function () {
myApp.alert('Mark');
});
$$('.reply').on('click', function () {
myApp.alert('Reply');
});
$$('.forward').on('click', function () {
myApp.alert('Forward');
});
Swipeouts also has rich JavaScript API that allows you to control swipeout elements. Let's look on appropriate App's properties and methods:
myApp.swipeoutOpen(el, direction, callback) - reveal swipeout actions on specified element
myApp.swipeoutClose(el, callback) - close swipeout actions on specified element
myApp.swipeoutDelete(el, callback) - delete specified swipeout element
myApp.swipeoutOpenedEl - property. Contains link to currently opened swipeout HTMLElement. Or equal to 'undefined' if none of elements are currently opened
Swipeout elements have the following events:
| Event | Target | Description |
|---|---|---|
| swipeout | Swipeout Element
 | Event will be triggered while you move swipeout element. event.detail.progress contains current opened progress percentage |
| open | Swipeout Element
 | Event will be triggered when swipeout element starts its opening animation |
| opened | Swipeout Element
 | Event will be triggered after swipeout element completes its opening animation |
| close | Swipeout Element
 | Event will be triggered when swipeout element starts its closing animation |
| closed | Swipeout Element
 | Event will be triggered after swipeout element completes its closing animation |
| delete | Swipeout Element
 | Event will be triggered after swipeout element starts its delete animation |
| deleted | Swipeout Element
 | Event will be triggered after swipeout element completes its delete animation right before it will be removed from DOM |
var myApp = new Framework7();
var $$ = Dom7;
$$('.swipeout').on('deleted', function () {
myApp.alert('Item removed');
});
$$('.swipeout').on('swipeout', function (e) {
console.log('Item opened on: ' + e.detail.progress + '%');
});


{% trans "We can't find it! Oh no! The page isn't here!" %}
{% trans "If it's our fault, would you please do us a favor and" %} {% trans "create a ticket?" %}
{% extends "site_base.html" %} {% load i18n %} {% block head_title %}{% trans "Not Found" %}{% endblock %} {% block body %}
{% trans "We can't find it! Oh no! The page isn't here!" %}
{% trans "If it's our fault, would you please do us a favor and" %} {% trans "create a ticket?" %}


Info. from CoRe MOF Database
All Metal(s):
Open Metal Site(s):
Reffrence DOI (from CoRE MOF Database):
Info. from CSD Database
Database Identifier:
Deposition Number:
Full Name:
Cell Info.:
Reffrence:
Reffrence DOI （from CSD Database):
Info. from Analysis
Synthesis Pragragh(s)
Info. from Publisher
Publisher:


--- layout: default ---
I am praying for your success. God bless!
If you made it this far, you should introduce yourself.
{% include advertisements.html %} {% if page.path contains '_posts' %} {% if site.disqus-shortname %} {% include disqus.html %} {% endif %} {% endif %}


Company Addition Form
Offered Discipline
CSE
EE
ME
Offered Program
M.tech
B.tech
Opportunity
Internship
Placement
Both
Submit