We have a company which manages multiple software projects. We hire people and assign them to projects.
Consequently, each project will have several people working on it. From this statement, it is easy to observe that
project-to-workers constitute a one-to-many
relationship, i.e. multiple people work on one
project.
Note that in this relationship, we are assuming that one person may not work on more than one project.
If we had to represent a one-to-many
relationship in the relational database, it would do it
like this:
Notes:
We only included a minimum set of fields to demonstrate the point of the current topic.
Let us analyze this design.
Each table must have a unique primary key. In both EMPLOYEE table and PROJECT tables, this field is named "ID". There are times when the primary key is made up of multiple keys, referred to as "composite key", however, we will not consider this case here.
For the EMPLOYEE table, we could have designated the SSN as the primary key since we know that the Social Security number would be unique. This would not be a great idea for at least two reasons:
We may hire some foreign workers who do not have a Social Security number and whatever unique ID they may have, will likely not conform to the SSN format - "xxx-xx-xxxx".
If we chose SSN to be the primary key, its datatype would be STRING. Primary keys are used for joining data from multiple tables. Joining on a field whose type is INTEGER is a lot faster than if its type were STRING.
All databases have a SEQUENCE GENERATOR. We can designate the primary key as a SEQUENCE GENERATED key and the database will created it for us. Thus, when we try to insert our first employee into the PEOPLE table, it's ID will be 1.
From EMPLOYEE and PROJECT tables above we can see that both have a primary key named "ID".
To express the one-to-many
relationship, the EMPLOYEE table also has a key named
"PROJECT_ID". The PROJECT_ID is a foreign
key. A foreign
key is the
primary key of another table, in this case table PROJECT.
From the demonstration above, we can see that people whose IDs are 1 & 2 work for project ID=1, people with IDs 3, 4, and 5 work for project ID=2, etc.
The one-to-many
(or many-to-one
) relationships are incredibly
common.
Consider another situation where we want to store information about each employee. In addition to the obvious
fields such as "First Name", "Last Name", "SSN", each employee also has a phone number, email address, and residence
address. However, many employees will have more than one phone number, email address, and may have multiple
residences. The only logical way to represent this would be with a one-to-many
relationship:
One-to-on
e relationships are less common than many-to-one
but they are still
used very extensively. Lets go back to the task of storing data for each employee. In addition to storing employee's
name, phone-numbers, etc., we also want to store employee's salary, start and end date (end data would be set to
null for current employees), and other sensitive information. SSN field may also be considered sensitive data. While
many applications will need access to employee's general information, such as name, department number, title, etc.,
only HR applications that are entrusted to few employees should have access to sensitive data, such as employee's
salary.
Each database table can have associated privileges indicating who can see and modify data. Thus, we can create other tables for storing employee's sensitive data and assign privileges to this table to select few.
The one-to-one
relationships are represented the same as
the many-to-many
relationships, that is with a foreign
key.
Note:
EMPLOYEE_ID in EMPLOYEE_HR table is the foreign key. It contains values from EMPLOYEE.ID field.
Unlike the primary key, a foreign need need not (and usually will not) be unique and it may be null.
In the case of a one-to-one
relationship, we could have placed the "foreign" key in
either table.
For example, our design could look like this, where we place the foreign key - EMPLOYEE_HR_ID in the EMPLOYEE table.
However, since most people in the organization will be privy to data in the EMPLOYEE table, and only people who work in HR will be able to see the EMPLOYEE_HR table, it is better to place the foreign key into the EMPLOYEE_HR table so that those who examine contents of the EMPLOYEE table would not even know that EMPLOYEE_HR table exists.
There are other reasons to create one-to-one
relationships.
Let's say we also want to store a single hobby for our employees. The description of a hobby may contain many
fields. Most employees are very boring and do not have any hobbies. If we added Hobby fields to the EMPLOYEE table,
most records would contain "holes", i.e. empty values. Thus, we can make a decision to define a HOBBY table and link
it to EMPLOYEE with a one-to-one
relationship.
Next, we expand our original definition by allowing one person to work on many projects. For example, some person
may dedicate 60% of his time working on project #1 and 40% working on project #2. Any one person may work on
more than two projects. Following this rule, we progress from a one-to-many
relationship to
a many-to-many
relationship. In this many-to-many
relationship, we
have many people working on one project and each person may work on many projects. To support the many-to-many
relationship, we need to introduce a new "MAPPING" table.
Note that table PROJECT_WORKER_MAP, maps Projects to Employees (Workers). For example,
From the PROJECT_EMPLOYEE_MAP table we can see that employees with IDs 1 and 2 work on project 1, employee with IDs 2, 4, and 5 work on project 2, employees with IDs 1, 7, and 8 work on project 3, etc. We can also observe that employee with ID 2 works on projects 1 and 2, employee with ID 1 works on projects 1 and 3.
With many-to-many
relationships, it is quite possible to have some employees who do not work
on any projects, let's say that an active employee goes on a sabbatical and will not be involved on any project. It
is also possible to have a project that does not have any employees, for example, an upstart project that is still
in the research phase. In cases where employees are not assigned to any projects or project do not have any
employees, the PROJECT_EMPLOYEE_MAP table will not have a row for associating employee to a project.
Note that in the example above, no employee is assigned to project ID=5 and Employee ID=9 does not work on any projects.
All databases support two types of commands: DDL that stands for Data Definition Language and DML that stands for Data Manipulation Language.
The list of DDL commands is exhaustive. You use DDL commands to created and alter tables and indexes, drop (i.e. delete) tables, manage privileges, and much-much more.
Before we can execute any database commands we need to create required tables and populate them with data. Let us examine the CREATE TABLE command:
|
The WORKER table in our real project has following fields:
Each field is listed along with its datatype. For STRING fields (i.e. varchar) we also need to specify maximum length.
Some fields may require a value, i.e. may not contain nulls. For example, "compensation double not
null"
One or more fields must be designated as primary. (primary key (id)
). A Primary key in unique and
non-nullable by definition.
Databases support many types of indices and we can't cover this topic exhaustively. Let's first discuss an index in a general sense.
Suppose we have an ORDERS table with 1,000,000 rows. We may want to perform certain types of operations on the ORDERS table very frequently. For example, find order where SELLER_NAME is "One First". With 1M rows, we would have to check 1M records in the worst case (order O(n)).
|
However, if we create an index for field SELLER_NAME, we would be able to locate this record in almost constant time (O(1)).
The DDL command to create an index may look like this:
|
One of the common interview questions goes something like this:
"You work on your application and test it continuously in your dev (development) environment. Everything works great so you decide to deploy it to the production environment. However, in production, your application's performance becomes very sluggish. Why is that?"
Your answer may be as follows:
"It is quite possible that the dev database has been property tuned with required indices and it is therefore performant. However, production environments uses a different database and it is possible that it does not have all the required indices".
In addition to a simple index, databases support a notion of a unique index
.
Let's say that we want our database to enforce business rules and one of our business rules is that the combination
of values in audit_id
and out_utc
fields must be unique. Thus, it
would be an error if two records had same values in
both audit_id
and out_utc
fields. The DDL command for a unique index
would look like this:
|
The name of the index ("UKbe6uin1lttt8dh3oddmrb6g6d
" in the example above) was randomly generated and
the name itself is not important. The only thing that is important is to identify a set of fields that must be
unique.
Let's go back to our many-to-many
illustration and consider what would happen if someone
decided to delete an employee with ID=1
|
We would be left with records in table PROJECT_EMPLOYEE_MAP that would not make sense. (See records with ID 1 and 6 where the EMPLOYEE_ID is 1 which was deleted)
We can still delete employee with ID=1, however, we first need to delete records from the PROJECT_EMPLOYEE_MAP table that associate employee ID=1 with projects. This constraint can be enforced with command:
|
There are too many DDL commands and it is not important to know them all, only to know that they exist and can be easily discovered. Most of the common DDL commands affect tables and indices, such as:
|
We had mentioned earlier the need for a one-to-one relationship. In that example, we decided to store sensitive employee information inside EMPLOYEE_HR table, accessible to HR staff only. For people working in HR who do need this access, we can assign them to a user (or group) with a special name, i.e. USER_HR. Then, we can execute the following command:
|
One may think that knowing the syntax of this command might allow you to peek at other employee's salary. However, only database admins, or other users with special privileges, would be able to execute the GRANT command.
The good news about Data manipulation commands (DML) is that they comprise only four commands: INSERT, UPDATE, DELETE, and SELECT. In the industry, these are often referred to as CRUD commands for Create, Read, Update, Delete.
The bad news is that some of these commands, particularly SELECT could get very complex. In this document we will only cover the basics.
Most of the INSERT commands are very simple.
For example:
|
This example could also be written like this:
|
The reason why the above syntax would work is because we are populating every single field in the WORKER table. If we only wanted to populate some of the fields, we would need to list them, as in:
|
Note that if you don't specify a field inside the INSERT statement, that field must be nullable.
To change values in an existing record we can do this:
|
Naturally, this syntax could get a lot more complex and we will return to this command later.
The simplest delete command looks like this:
|
This command will delete all records from table WORKER.
One of the common interview questions it to ask about the difference of this delete
command
and the drop table
command:
|
DELETE |
DROP |
||
|---|---|---|---|
|
|
When you use the delete
command, the table still exists but contains no records. When
you drop
the table, the table is destroyed and you would need to create it again if you
decide to add records to it.
More often than not, we will add a condition to the delete command, for example:
|
Command |
Description |
|
|---|---|---|
|
Delete workers who make less than 100,000 |
|
|
Delete workers with WORKER_CODE CODE-1 and CODE-2 |
This is where all the fun is. Many books and PhD decertations are dedicated to this topic. Let us start simple:
Note:
To select all fields use "select * ...
"
We use "where
" to filter records to be displayed. Multiple expressions may be strung together
with and, or, in,
and other operators.
Note the usage of like
operator
Aliases are often used with SELECT commands.
Another powerful feature of SELECT is to aggregate records via GROUP BY. Let's start with example. We would like to find out how many people work on each project. We use the PROJECT_WORKER_MAP table to map workers to projects:
|
Query |
Response |
||
|---|---|---|---|
|
|
Suppose we are interested in seeing only those projects where the worker count is greater than 2
|
Query |
Response |
||
|---|---|---|---|
|
|
Note:
having
to group by
is what where
is
to select
Above command is incredibly useful and you should store it somewhere in your memory bank. Often you run a process which will populate rows in some table. It may be an error to have records with a duplicate value in some field. Thus, you would execute the following query to check:
|
Query |
|
|---|---|
|
Let us take a leap into something more interesting. We would like to determine the total compensations for each project. The compensation is specified in the WORKER table, so we need to join WORKER and PROJECT_WORKER_MAP tables.
|
Query |
Result |
||
|---|---|---|---|
|
|
Let us observe several things from above command:
In group by selects, fields that are listed on the select clause must match fields that appear in the group by clause. However, the select clause may also specify aggregate operations such as SUM, AVG, and others.
As a slight variation to above, let's say we only want to see projects whose total compensation is greater than 500,000.
|
Query |
Result |
||
|---|---|---|---|
|
|
Notes:
In the previous query, I used alias w for worker and p for project_worker_map. If I had not used aliases, I would need to type the full name of the table, as in:
|
These examples will be provided without explanations:
|
Query |
Response |
||
|---|---|---|---|
|
|
||
|
|
Suppose we only have information on WORKER_CODE, i.e. 'CODE-1' and 'CODE-2' and we would like to find out what projects they are working on. To join table WORKER to table WORKER_PROJECT_MAP we need to have WORKER.ID and WORKER_PROJECT_MAP.WORKER_ID. However, we do not know values for WORKER.ID, we only know WORKER_CODE.
Before we accomplish our final task, let's perform some intermediate steps, like joining three tables: PROJECT, WORKER, and PROJECT_WORKER_MAP.
Note:
Second command uses order by
clause to sort results
by worker_name
field.
However, for our current task, we don't have IDs of workers, we have worker_code
. Thus, we need
to use the worker_code to get to the WORKER.ID.
|
Query |
Result |
||
|---|---|---|---|
|
|
Note:
We need to join three tables and define the filtering criteria
We can combine this result with GROUP BY clause to determine the total compensation for these projects:
|
Query |
Result |
||
|---|---|---|---|
|
|
The information presented so far does not even scratch the surface. There are things that you need to be aware of even though they are not demonstrated in this document.
Like everything else, SQL went through a lot of iterations over many years. The SQL presented here follows the original SQL-86 format. I believe the latest is called SQL:2003. The syntax for SELECT commands has changed, however, the original syntax is still supported. Some operations differ by database providers. For example, to perform a left outer join (discussed shortly), you will need to adhere to the format of the database provider such as Oracle, Sybase, Postgres, DB2, etc.
The main point is to understand what capabilities are possible. It is easy to find the syntax for a specific command on the internet.
So far, the examples provided here used a standard, or "INNER" join. For example, we can join multiple tables using INNER join to see all projects and people who are assigned to them. Some projects may not have any people assigned. Suppose we want to see all projects. If people are assigned to them, we will see person name in the WORKER column. If a project has no workers assigned, that project will not appear in the response. Often, we want to see projects and workers assigned to them and also projects that have no workers. This is the job for a LEFT OUTER join. If no one is assigned to some project, the project will still appear but the value in the WORKER column will be null. RIGHT OUTER join is similar to LEFT OUTER join but works in the right-to-left order.
Here is one of the most common problems for a SELF JOIN. Let's say we have a table of employees, along with their salaries and ID of the manager. Let's say our fictitious table looks like this:
We need to answer following question: "Provide a list on employees who make more money than their manager." From table's data we can observe that Employee IDs 1, 2 3, 4 all report to employee whose ID is 5. Only employee ID=4 makes more money than his manager.
This question comes up so often at interviews that I owe you a demonstration.
Let's create a new table with data as shown above:
|
Create Table |
|
|
|---|---|---|
|
Populate |
|
Now we can execute a query to find all employees who make more money than their managers:
|
Query |
Result |
||
|---|---|---|---|
|
|
Note how use of aliases, employee and manager, were absolutely essential for a SELF JOIN query.
There may be times when we would like to combine results from multiple tables. Our SELECT clause identifies fields and they datatype. As long as the fields in the SELECT clause match, data from multiple tables may be combined with a UNION command.
SELECT command is extremely powerful and provides many clauses to wield incredible power. In addition to standard
features of the SQL, each database provide furnishes a library of functions to works with strings, dates, and just
about anything else. However, sometimes all this power is still not enough. There may be times when it would be
useful to create intermediate results and stored them in the temp
table. Next, subsequent
commands can me used in combination with data in the temp table to produce more elaborate answers.
For anything that can't be done with SQL, there are stored procedures. Each database provider has its own programming language to interact with databases. A program written in this language is called the stored procedure. Some companies build their entire applications with stored procedures. In my view, this is a terrible idea but it may be justified for certain types of projects. One of the problems if stored procedures is that they can't be debugged. You may need tp place results of some intermediate computation into a table for debugging purposes.
It is also important to realize that a stored procedure is often composed to several SQL statements without resorting to any other programming aspects. To support transactions, you will need to place your SQL commands inside the stored procedure.
A Trigger is a stored procedure. It is triggered when a certain action occurs, such as inserting a new row or updating it. Some time ago, triggers where relied on very heavily, however, over the years they usefulness has diminished.
Let's say we have a site for taking customer orders. When the order is placed we need to update ORDERS table, INVENTORY table, and possible CUSTOMERS table to keep track of all the money they had spent on our crap.
Say we update the ORDERS table first and then try to update the INVERTORY table, but that update fails. Now we have a system in an inconsistent state. To prevent this inconsistent state we need to ROLL-BACK our transaction. Thus, either all commands complete successfully or none at all.
Failure to update the INVERNTORY table may happen for many diffident reasons, for example, the table may run out of storage space that was allocated for it.


[% WRAPPER layout title = "The 2014 Linux Bier Wanderung, Travel" lang = "en" h1 = "Travel" this = "travel.html" %]
The hall can be found at 51.89742°N, -3.29088°E. The OS grid reference is SO1124622773. The postcode is LD3 7YQ. If you like other online maps, the location of the hall can be found on Google maps. You can find the village on Nokia's Here, and Microsoft's Bing.
The local website has a handy travel guide, although parts of it may be out of date.
The OS 1:25,000 map covering Talybont-on-Usk is OL13. We are fairly close to the border with OL12, so if you like buying maps you can justify two purchases.
The nearest railway station closed many years ago. The nearest useful railway station is at Abergavenny. Note that the town also has a Welsh name, Y Fenni. This should be a familiar concept for Belgians. The next closest railway station, which may or may not have better connections is Merthyr Tydfil
From Abergavenny, you can go …
The 43 / X43 bus runs through Talybont-on-Usk. It runs from Abergavenny (railway connection) to Brecon. Traveline Cymru provide local bus information in Wales. They cover various operating companies. To travel by bus from Merthyr Tydfil you need to change at Brecon.
The last bus to Talybont-on-Usk from Abergavenny (or indeed anywhere) is unhelpfully earlier (17:50). A later, but not much later, bus stops at Bwlch. There is a minicab service there, Dee's Taxis on 01874 731012. At this point a Welsh place name pronounciation guide may be helpful.
The nearest National Express coach stop is at Abergavenny.
Abergavenny is well served by taxis and minicabs.
The Monmouthshire & Brecon Canal runs through the Talybont-on-Usk. Unfortunately the canal is not currently connected to the rest of the network. Boats can be hired. It runs through the towns of Abergavenny and Pontypool, both of which can be reached by railway.
You could arrange your transport and accomodation in one swoop by hiring a narrow boat at Abergavenny or Pontypool, and navigating it North to Talybont-on-Usk. (You will need to move it every couple of days, if I remember the rules regarding mooring.)
Boats also also available locally for day hire.
The River Usk may be navigable as far as Talybont-on-Usk. Can anybody clarify?
Point your sat-nav at the postcode LD3 7YQ. There is parking at the hall.
There are lots of twisty narrow roads in this area, a right-hand drive car may be preferable. (Or a motorbike!)
There is local car rental, including an electric car.
Nearby airports are Cardiff (CWL, 50 miles away), Bristol (BRS, 70 miles away), Birmingham (BHX, 110 miles away), the various London airports which may not be near London (Gatwick, Heathrow, City, Stansted, and Luton), Manchester (MAN, 170 miles away). There is also Robin Hood Airport slightly further away near Sheffield, but do take care not to hurt their feelings.
The Taff Trail a motor-traffic free cycle path, runs through Talybont-on-Usk.
Hike for four days in the wrong country.
Talybont-on-Usk is different from Talybont, which is about 100 miles away. [% END %]


Gameplay
Eat food that gives you energy to run and keep enough distance between you and the lunch lady to avoid being caught.
Objective
Pick the proper food to eat that will keep the nutrition bar balanced to avoid being caught by the lunch lady before time runs out.
Rules
Scoring
When you eat, you score!


We believe in technologies that provide exclusive features to any developer and which are open to the world.
Keep your data stored in a NoSQL database, synchronized with others clients and validate all data by using a schema to your model.
Authenticate users with email & password or anonymous user, handle roles and access to the database to secure your application.
Access detailed statistics of your application to make the right choice!
Create a Model based on a schema to validate data. You can use our Schema Engine or your custom Schema engine.
View on GitHubUse Schema to validate your data and your model. Provide default implementation for the Model Project.
View on GitHubA basic implementation of a Query Language in Javascript to discuss with whatever you want by creating adapter.
View on GitHub


Learnings from Search Inside Yourself
Emotional Intelligence is an intelligence that can significantly improve our life potential. While some people through luck og birth or upbringing have naturally high levels of emotional intelligence everyone is able to both acquire and improve on this skill set. There are 5 capabilities central to Emotional Intelligence.
- Self Awareness
- Self Regulation
- Motivation
- Empathy
- Social Skills
In training emotional intelligence the first skill to learn is attention. The ability to bring attention to yourself in a calm, stable and perceptive manner is the foundation of emotional intelligence. The way to train this quality of attention is through Mindful Meditation.
Mindfulness
Mindful meditation can be simply described as paying attetion in a particular way: on purpose, in the present moment and non judgementally. The ability to do this siginficantly impacts on how we respond and manage our emotions. However in order to be of use this self awareness needs to be directed at our bodies as this is where we experience emotions most strongly. And when we perceive our emotions clearly we can manage and choose our response. So the first step is to apply mindfulness to our body. How? Very simply bring your attention gently to your breath for two minutes each day. If you mind wanders away very just bring it back very gently to your breath. Practicing this very simple skill enable the mind to develop the necessary calmness and clarity to start building high emotional intelligence.
My take
As a part time practioner of transcendental meditation - I see that in large part mindful meditation draws from the practice of trancendental meditation greatly. As a two minute daily practice it is within the reach of most people unlike TM which requires a minimum of one meditation of 20 minutes per day but ideally two. As an individual who experiences high levels of anxiety I know how helpful any type of meditation is in calming the mind. I do think though that there is no sure fire easy path to transformation. That in order to change or train ourselves to be different requires persistence, and hardwork and perhaps it requires a little more dedication than Tang suggests. There is no panacea eg to deep grief or trauma. What meditation can do though is better prepare you to manage it in a life enhancing way as opposed to a life destroying way.


If checked, SimpleShot will download the image immediatly when the icon is clicked or when the keyboard shortcut is pressed
If unchecked, SimpleShot will will open a new tab with the screenshot and a download link
You can also take a screenshot with Ctrl + Shift + 1
You can change it in chrome://extensions/shortcuts
Let us know what you think at<EMAIL_ADDRESS>RGB Studios
rgbstudios.org


lgp.core.evolution.instructions
/
Operation
/
arity
arity
val
arity
:
Arity
How many arguments the operations function takes.


{% extends "_layouts/default.html" %} {% set title = "@name@ by @username@ /@id@" %} {% set description = "Created with Touch Develop" %} {% block body %}
@description@


$if 'image' in project: $_(project['title']) $if 'difficulty' in project: $_('difficulty'): $project['difficulty']


From The Desk Of Mr pioneer mohammed sq. The Manager Of File / Debt Recovery Department, African Development Bank A.D.B Ouagadougou Burkina-Faso West Africa. THIS IS MY EMAIL ALTARNETIVE FOR PORPOSE<EMAIL_ADDRESS>Privave Phone: (00226-7885 75 97). PLANE CRASH WEB SITE...http://news.bbc.co.uk/1/hi/world/europe/859479.stm ( "REMITTANCE OF $15 MILLION U.S.A DOLLARS CONFIDENTIAL IS THE CASE") Compliment Of The Season, On a very good day. I am ( pioneer mohammedEsq),The Manager of file / Debt recovery Department in African developent bank (ADB).I got your contact from Yahoo tourist people search. When i was searching for a foreign partner i assured of your capability and reliability to champion this businees opportunity when i prayed to God or Allah about you.In my department we discovered an abandoned sum of $ 15 million U.S.A dollars ( fifteen million U.S.A dollars) . In an account that belongs to one of our foreign customer who died along with his entire family in (Monday 31th July 2000) in a plane crash. Since we got information about his death, we have been expecting his next of kin to come over and claim his money because we cannot release it unless somebody applies for it as next of kin or relation to the deceased as indicated in our banking guidelines, but unfortunately we learnt that all his supposed next of kin or relation died alongside with him at the plane crash leaving nobody behind for the claim. It is therefore upon this discovery that I and one official in my department now decided to make this businness proposal to you and release the money to you as the next of kin or relation to the deceased for safety and subsequent disbursement since nobody is coming for it and we don’t want this money to go into the bank treasury as unclaimed bill. The Banking law and guideline here stipulates that if such money remained unclamed after five years, the money will be transfered into the Bank treasury as unclaimed fund. The request of foreigner as next of kin in this business is occasioned by the fact that the customer was a foreigner, and a Burkinabe cannot stand as next of kin to a foreigner. We agree that 30 % of this money will be for you as foreign partner, in respect to the provision of a foreign account, 10 % will be set aside for expenses incured during the business and 60 % would be for ;me and my woman colleague. There after I and my colleague will visit your country for disbursement according to the percentages indicated. Therefore to enable the immediate trnansfer of this fund to you as arranged, you must apply first to the bank as relations or next of kin of the deceased indicating your bank name, your bank account number, your private telephone and fax number for easy and effective communication and location where the money will be remitted.Upon receipt of your reply, I will send to you by fax or email the text of the application. I will not fail to bring to your notice that this transaction is hitch free and that you should not entertain any atom of fear as all required arrangements have been made for thetransfer. You should contact me on my number (00226-7885 75 97) immediately as soon as you receive this letter. Trusting to hear from you immediately. Your’s faithfully, pioneer mohammed Esq. POST SCRITUM:You have to keep everything secret as to enable the transfer to move very smoothly in to the account you will prove to the bank.As you finished reading this letter call me immediately so that we discuss very well over this business.Please call me and inform me that you received my mail, because i don't go to net always. .....................................................................................................................................
Sexy Like Us : Tu veux savoir si tu as la cote ? Clique ici !


Search
Preparing search index...
The search index is not available
@wenex/workflow-lib
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"utils"
Module "utils"
Index
Functions
combine
With
Head
Activities
find
Last
Activity
From
Stack
ById
get
Activity
ById
get
Activity
ByName
get
Boundary
Event
get
Intermediate
Type
get
Lane
get
Next
Activities
get
Target
Refs
ignore
InHead
Functions
Const
combine
With
Head
Activities
combine
With
Head
Activities
(
nextActivities
:
BPMNGeneralActivity
[]
, head
:
BPMNGeneralActivity
[]
)
:
BPMNGeneralActivity
[]
Parameters
nextActivities:
BPMNGeneralActivity
[]
head:
BPMNGeneralActivity
[]
Returns
BPMNGeneralActivity
[]
Const
find
Last
Activity
From
Stack
ById
find
Last
Activity
From
Stack
ById
(
activityId
:
string
, stack
:
BPMNGeneralActivity
[]
)
:
BPMNGeneralActivity
Parameters
activityId:
string
stack:
BPMNGeneralActivity
[]
Returns
BPMNGeneralActivity
Const
get
Activity
ById
get
Activity
ById
(
activityId
:
string
, activities
:
BPMNGeneralActivity
[]
)
:
BPMNGeneralActivity
|
undefined
Parameters
activityId:
string
activities:
BPMNGeneralActivity
[]
Returns
BPMNGeneralActivity
|
undefined
Const
get
Activity
ByName
get
Activity
ByName
(
activityName
:
string
, activities
:
BPMNGeneralActivity
[]
)
:
BPMNGeneralActivity
Parameters
activityName:
string
activities:
BPMNGeneralActivity
[]
Returns
BPMNGeneralActivity
Const
get
Boundary
Event
get
Boundary
Event
(
id
:
string
, boundaryEvents
:
BPMNBoundaryEvent
[]
)
:
BPMNBoundaryEvent
|
void
Parameters
id:
string
boundaryEvents:
BPMNBoundaryEvent
[]
Returns
BPMNBoundaryEvent
|
void
Const
get
Intermediate
Type
get
Intermediate
Type
(
intermediate
:
BPMNActivityDocType
)
:
BPMNEventIntermediateType
Parameters
intermediate:
BPMNActivityDocType
Returns
BPMNEventIntermediateType
Const
get
Lane
get
Lane
(
id
:
string
, lanes
:
BPMNLaneArtifact
[]
)
:
BPMNLaneArtifact
|
undefined
Parameters
id:
string
lanes:
BPMNLaneArtifact
[]
Returns
BPMNLaneArtifact
|
undefined
Const
get
Next
Activities
get
Next
Activities
(
targetRefs
:
string
[]
, activities
:
BPMNGeneralActivity
[]
)
:
BPMNGeneralActivity
[]
Parameters
targetRefs:
string
[]
activities:
BPMNGeneralActivity
[]
Returns
BPMNGeneralActivity
[]
Const
get
Target
Refs
get
Target
Refs
(
outgoing
:
string
|
string
[]
, flows
:
BPMNFlowArtifact
[]
)
:
string
[]
Parameters
outgoing:
string
|
string
[]
flows:
BPMNFlowArtifact
[]
Returns
string
[]
Const
ignore
InHead
ignore
InHead
(
nextActivities
:
BPMNGeneralActivity
[]
, head
:
BPMNGeneralActivity
[]
)
:
BPMNGeneralActivity
[]
Parameters
nextActivities:
BPMNGeneralActivity
[]
head:
BPMNGeneralActivity
[]
Returns
BPMNGeneralActivity
[]
Globals
"activities/event"
"activities/gateway"
"activities/index"
"activities/task"
"activity"
"artifacts/flow"
"artifacts/index"
"artifacts/lane"
"boundary"
"bpmn"
"enums/activity-
category"
"enums/activity-
status"
"enums/engine-
state"
"enums/event-
type"
"enums/gateway-
type"
"enums/index"
"enums/task-
type"
"exception"
"history"
"index"
"utils"
combine
With
Head
Activities
find
Last
Activity
From
Stack
ById
get
Activity
ById
get
Activity
ByName
get
Boundary
Event
get
Intermediate
Type
get
Lane
get
Next
Activities
get
Target
Refs
ignore
InHead
Generated using
TypeDoc


Israel agrees to free two Jordanians held without charges
Israel says two detained Jordanians will be released and Amman's ambassador will return to the country as a result.
Israel will soon release two Jordanians held without charge for more than two months, the two countries have announced, bringing to an end a bitter diplomatic dispute that had resulted in Amman recalling its envoy to Israel.
Ayman Safadi, Jordan's foreign minister, said on Monday that Hiba al-Labadi, 24, and Abdul Rahman Miri, 29, will return home "before the end of the week".
More:
-
Jordan summons Israeli envoy over Jerusalem 'violations'
-
Palestinians have a right to demand freedom from torture
-
Israel vows to 'worsen' conditions for Palestinian prisoners
"The government pursued the case from the start under direct instructions from His Majesty King Abdullah to take all necessary steps to release them whatever that may cost," Safadi said in a Twitter post.
He gave no further details.
Israeli Prime Minister Benjamin Netanyahu's office said the handover was agreed after talks between Israeli and Jordanian security chiefs. It said Jordan's ambassador, who was recalled on Tuesday, would return to his post "in the coming days".
Israel arrested al-Labadi on August 20 and Miri on September 2 as they entered the West Bank from Jordan through an Israeli-controlled crossing.
Hunger strike
They are being held in administrative detention, an Israeli policy that allows for open-ended detentions without filing charges.
Israel's deputy foreign minister, Tzipi Hotovely, said last week the two were suspected of security offences, without being more specific.
Al-Labadi, who was arrested after crossing to the West Bank to attend a family wedding, has been on hunger strike for a month to protest her detention.
According to her lawyer, Jawad Boulos, al-Labadi was interrogated for 16 days straight without being allowed to see a lawyer.
Boulos, who has since visited al-Labadi in prison, said the interrogations lasted hours while she was handcuffed to a chair. The interrogators, Boulos told Israeli local media, cursed and spit at al-Labadi, and threatened to arrest her sister and mother.
"All the means of torture and oppression were used to force her to sign a damning confession," Boulos said. "But despite the cruel investigation, she did not confess."
Israel's prison service said on Monday that al-Labadi had ended her hunger strike.
Miri, 29, was also arrested as he crossed into the West Bank to visit relatives. He has suffered from brain cancer since 2010, and has undergone several surgeries.
Safadi said last month he held the Israeli government responsible for the lives of the two, adding that their health had severely deteriorated and warned the kingdom could escalate its actions if they were not released.
In announcing the decision to release Labadi and Miri, the Israeli statement said Israel viewed its relations with Jordan as "a cornerstone of stability in the Middle East".
The two countries signed a peace treaty in 1994. The 25th anniversary of the agreement is this month.


Two scala collections cannot be equal if they are of different categories (Set, Seq, Map or Iterator). Comparing them
with arrays is also pointless. Inspection suggests to convert one of the collection to make them of same kind.
Before:
seq == iterator
seq != array
After:
seq.toIterator == iterator or seq == iterator.toSeq
seq != array.toSeq


The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:
| GroupId | ArtifactId | Version | Type | Licenses |
|---|---|---|---|---|
| com.beust | jcommander | 1.48 | jar | The Apache Software License, Version 2.0 |
The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:
| GroupId | ArtifactId | Version | Type | Licenses |
|---|---|---|---|---|
| com.h2database | h2 | 1.4.192 | jar | MPL 2.0 or EPL 1.0 |
| junit | junit | 4.12 | jar | Eclipse Public License 1.0 |
| org.hamcrest | hamcrest-all | 1.3 | jar | New BSD License |
MPL 2.0 or EPL 1.0: H2 Database Engine
Eclipse Public License 1.0: JUnit
New BSD License: Hamcrest All
The Apache Software License, Version 2.0: JCommander, jcommander-addons
| Filename | Size | Entries | Classes | Packages | Java Version | Debug Information |
|---|---|---|---|---|---|---|
| jcommander-1.48.jar | 63.5 kB | 67 | 53 | 5 | 1.5 | Yes |
| h2-1.4.192.jar | 1.8 MB | 672 | 669 | 35 | 1.7 | Yes |
| junit-4.12.jar | 314.9 kB | 323 | 286 | 30 | 1.5 | Yes |
| hamcrest-all-1.3.jar | 306.6 kB | 249 | 204 | 23 | 1.5 | Yes |
| Total | Size | Entries | Classes | Packages | Java Version | Debug Information |
| 4 | 2.5 MB | 1311 | 1212 | 93 | 1.7 | 4 |
| compile: 1 | compile: 63.5 kB | compile: 67 | compile: 53 | compile: 5 | - | compile: 1 |
| test: 3 | test: 2.4 MB | test: 1244 | test: 1159 | test: 88 | - | test: 3 |
| Repo ID | URL | Release | Snapshot |
|---|---|---|---|
| central | https://repo.maven.apache.org/maven2 | Yes | No |
| sonatype-nexus-snapshots | http://oss.sonatype.org/content/repositories/snapshots | No | Yes |
Repository locations for each of the Dependencies.


--- layout: page title: About header-img: "img/about-bg.png" ---
I am an aspiring programmer. Learn by Flatiron is the path I am taking to go from novice to knowledgeable. This blog is all about tracking my progress and experience going through a program and trying to pick it all up. Aside from this I enjoy gaming, reading, traveling and learning new things.


Revisiting the PicoLCD 256x64
Officially added the code to make picoLCD work!
Posted on Thu, 20 Mar 2014 13:00:00 MDT by Aaron Bieber
Today marks my first commits (1, 2, 3) to the OpenBSD src
tree (up until now it has all bee in ports
and one in www
)!
add USB_PRODUCT_ITUNER_USBLCD256x64 as UQ_BAD_HID so libusb can talk via
interrupt transfers
OK sthen@
The last commit makes the PicoLCD 256x64 not attach as a HID
, so that it can be used by applications that talk to usb devices with libusb
!
The next step is to finish up the lcdproc driver for it - currently I can only turn on or of the backlight and +,- the contrast!


We also need some key <meta> tags in the <head> of the index.html
of our application in
order to enable responsive layouts. Be sure your index.html
page includes the following tags in the
<head> section:
If you are using a Quick Start-based app, all of the above is already done for you.


UNO Wants to Help Keep Politics Out of Your Thanksgiving
by Johnny ThrashIt’s inevitable – someone will attempt to steer the conversation toward politics during your Thanksgiving gathering.
Mattel has the solution, though. They just rolled out UNO Nonpartisan right in time for the holidays.
They took all of the red and blue cards out of the deck and replaced them orange and purple.
Realizing the absence of red and blue cards might not be enough to deter political discussion, they threw in a “veto” card you can play to skip someone’s turn as soon as they start getting political.
I’m not sure if it’ll be enough to bring the lefties and right-wingers in your family to the middle on Thanksgiving, but hopefully it’ll be enough of a distraction to get you through your gathering without a knock-down-drag-out breaking out at the table.
The UNO Nonpartisan Cards are only available at Walmart, but are currently out of stock.


|
Are You Ready To Discover
Simple
Strategies That Can Make You
$10,000 or More Each & Every
Every Month Online?
Inside this special
report you will learn ten proven methods that you can use you to
break the $10,000 dollar mark over and over again !
[ Add in your
Subscription
Form Here]
Don't Worry It's Completely
Free! And your information
will never be sold or shared! |


@* * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import uk.gov.hmrc.bindingtariffrulingfrontend.controllers.routes @import uk.gov.hmrc.bindingtariffrulingfrontend.model.{Paged, Ruling} @import uk.gov.hmrc.bindingtariffrulingfrontend.utils.Dates @(results: Paged[Ruling])(implicit messages: Messages)
| Reference | Description | Start Date | End Date | @*Image | *@
|---|---|---|---|---|
| @result.reference | @result.goodsDescription | @Dates.format(result.effectiveStartDate) | @Dates.format(result.effectiveEndDate) | @**@ |


class BtcDataCollector(builtins.object) |
| |
The object for retrieving daily data for bitcoin specific
factors.The prices are retreived once a day at a predefined
time. If the current for the current day is not available,
latest available data is used.
:member attributes: logger: logger instance
api_key: Quandl API key
tweet_count_url: Url to retrieve
tweets count
:member functions: fetch_btc_price
fetch_tweet_counts
fetch_transaction_volume |
| |
Methods defined here:
- __init__(self, params)
- Initialize self. See help(type(self)) for accurate signature.
- fetch_btc_price(self)
- Method to fetch the current bitcoin price.
The price is in USD and is retreived from
the CoinDesk index.
: param self
: return btc_price(float)
error_val(int)
- fetch_transaction_volume(self)
- Method to fetch the daily bitcoin transaction
volume in USD.
: param self
: return nyse_index(pandas Dataframe)
error_val(int)
- fetch_tweet_counts(self)
- Method to fetch the daily estimated number of tweets
with bitcoin related hastags. The function parses the
HTML page to retrieve the tweet counts.
: param self
: return tweet_count(pandas Dataframes)
error_val(int)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|


Here is the first title tag
Delta Rune Webpage
target="_blank" "Open in New Tab"
This Link goes nowhere


A lot of cops in media have a history in the military. Maybe they're a former Marine, or a soldier in the Army Reserves. You don't usually see a cop who was in the Air Force, Coast Guard or the Navy (excluding Navy SEALs). This trope is very much Truth in Television since police departments routinely recruit from the military because of the overlap in training at a police academy and military basic training.
Basically, this trope applies to all members of law enforcement who've done a stint in the military, including the Reserves and National Guard. Note: this trope is not specific to only America, other countries' militaries also count.
Contrast with From Camouflage to Criminal, when outlaws have an ex-military background.
Some examples separated by service branch:
- V for Vendetta has an "Intermission", "Vertigo", where a "Fingerman" for the Norsefire government puts a man walking on the outside of a building as a sick form of interrogation (despite being sure he doesn't really know anything about V, he's just personally in a bad mood). V saves the man and puts the Fingerman, name of Colin, through the same routine under threat of certain death at his hands. The narration puts the reader into the head of Colin Clarke, a veteran Fingerman, a soldier before that who had to cope with worse than this in his training courses. Whoever trained Colin never put a Banana Peel in the way.
- As part of his re-imagining in Batman: Year One, Jim Gordon is an Army veteran. As is Detective Flass, who was in special forces.
- Thomas "Tiger Tank" Nightingale from Rivers of London did see military action during World War II before settling down to a specialist position in The Met, but it's unclear under which branch he (and the rest of the Folly) served.
- Foyle's War - Foyle is a veteran of World War I. His sidekick, Sergeant Milner, starts the series in active service, but returns to police work after being losing a leg.
- Hawaii Five-0 (2010 remake) - Steve McGarrett's father, John was a retired cop and Vietnam vet.
- The Kill Point: Lieutenant Connie Reubens, the SWAT team leader, has done tours in Afghanistan. She says it really pisses her off that the hostage takers are attempting to use their own service background to invoke public support.
- Resident Evil: In early background materials related to the first game, Jill Valentine was stated to have been from Delta Force, which is U.S. Army. However, as the franchise has grown, this aspect of her character was dropped, and current materials simply state she has a special forces background with no further details given.
Anime and Manga
- Ghost in the Shell - Most of Section 9 (except Pazu, Togusa and Saito) had served in the JGSDF prior to the unit's formation.
- Depending on the version. In Arise, Togusa mentions having done some time in the military before joining the Police, and ultimately Section 9. Meanwhile in Stand Alone Complex Saito was a freelancer with Red Bianco. Assuming his story was true.
Films (Live Action)
- Shutter Island: Teddy Daniels is a US Marshal and was a soldier during the Dachau liberation reprisals.
- The Punisher (2004): Before he starts doing his thing, Frank Castle was an FBI agent, and years before that, a Delta operator in the Gulf war.
- Gangster Squad: O'Mara, Wooters, and Keeler are WWII veterans. O'Mara leads the titular unit, and is a WWII veteran with a classified record, and is implied to have been as OSS commando, while Keeler was in intelligence. Wooters was a Navy aviator.
- The Andy Griffith Show - Both Andy Taylor and Barney Fife served in World War II, however neither saw combat, and Barney admits that he was not allowed to leave the States.
- In APB, Officer Nicholas Brandt mentions in "Risky Business" that he used to be in the military. "Pandora's Box" mentions that he was an ex-Ranger.
- The Border - Mike Kessler was with the Canadian Army and served in Joint Task Force 2 during peacekeeping in the Balkans.
- Bones - Seeley Booth (Ranger)
- The Bridge - Inverted and then played straight in one episode. A police officer took leave from work and joined the army so he could serve in Afghanistan. He was wounded and had his foot amputated. When he returns he tries to become a police officer again despite his disability. Frank and the police union end up supporting him after he proves that he is still capable of doing the job even with a prosthetic foot.
- Colonel March of Scotland Yard: In "The Headless Hat", March mentions that he was in Army Intelligence during WWII, which taught him a few tricks of his own. It is not known if he was a police officer before the war and joined up for the duration, or if he joined the police after leaving the army.
- Crisis (2017) - Akira Inami used to be with the Japanese Ground Self-Defense Force's Special Forces Group.
- Dexter - James Doakes (Ranger)
- Dragnet - Bill Gannon and Joe Friday
- The FBI - Inspector Lew Erskine was a captain in the US Army during The Korean War.
- Flashpoint - Sam Braddock (Canadian Army, specifically with Joint Task Force 2.)
- Forbrydelsen - Ulrik Strange, Lund's new partner in the second season, was in the Danish Army. He was a Sociopathic Soldier who commits the murders of the season to cover up the war crimes he committed.
- Gang Related - Ryan Lopez used to be with the 75th Ranger Regiment before he joined with the LAPD.
- Gotham - Jim Gordon had served in the US Army prior to returning to Gotham.
- Hill Street Blues had SWAT Team commander Howard Hunter, who Captain Furillo regularly had to restrain from applying the tactics he used in Vietnam to policing Hill District, and rather more down-to-earth beat cop Joe Coffee. Chief Daniels also once mentions he served in The Korean War.
- Happy Days - Officer Kirk
- Justified - Deputy US Marshall Tim Gutterson was a sniper with the US Army Rangers
- The Meeting Place Cannot Be Changed - Vladimir Sharapov was a former Red Army scout, now in Moscow Criminal Police.
- NCIS - Downplayed as he's not actually an agent, but Chief Medical Inspector Donald "Ducky" Mallard started his medical career in the UK's Royal Army Medical Corp
- Nichols - Frank Nichols served for 18 years in the US Army Cavalry before becoming sick of killing and returning to his hometown where he is made sheriff against his will. Something of a subversion because he is a Technical Pacifist who refuses to carry a gun.
- NUMB3RS- Colby Granger was an Army CID investigator before joining the FBI. It was during this time he was pinned after an explosion, from which Dwayne Carter saved his life.
- Person of Interest:
- Detective Jocelyn "Joss" Carter served in the United States Army as a Warrant Officer, first at Bagram Air Base in Afghanistan from February 2, 2002 until February 2, 2003. She was then relocated to Camp Liberty in Baghdad from January 20, 2003 until March 20, 2004 when she received a Purple Heart, serving as an Army Human Intelligence Collector and top interrogator.
- Reese was a Ranger and Green Beret before being recruited by the CIA. After leaving the CIA, he was eventually given a cover identity as a NYPD detective.
- True Detective - Paul Woodrugh used to serve in the US Army prior to being a contractor with Black Mountain. He resigned after BM got involved in scandals, joining the California Highway Patrol.
Literature
- Harry Bosch, the LAPD homicide cop who is the central character in about 3/4 of Michael Connelly's mystery novels, was an Army "tunnel rat" in Vietnam, fighting the NVA in underground tunnels. Bosch's Vietnam experience is key to the plot of debut novel The Black Echo, in which he discovers the corpse of a fellow tunnel rat, and is referred to often in subsequent books. In the TV adaptation, he served in the First Gulf War and in Afghanistan.
- In the 87th Precinct novels, Steve Carella and Bert Kling both served in the army before joining the police. Originally Steve served in World War II and Bert in The Korean War. In later novels Comic-Book Time, just made vague references to 'the war', with the constant being that Bert's service is more recent than Steve's.
Video Game
- Booker DeWitt was in the 7th Cavalry and became a private investigator afterwards.
- In Dragon Age II, Aveline Vallen is introduced as a survivor of the battle of Ostagar, where she was an officer in the Ferelden army. Throughout the game, she joins the City Guard of Kirkwall and goes up the ranks, becoming their commander.
- Left Alive has Olga Sergeevna Kalinina, formerly with the Garmoniyan Army as a veteran wanzer pilot who left service and worked in Novo Slava as a uniformed officer after her daughter is killed.
- Barney Miller - Wojo is a Marine and a Vietnam vet.
- Blue Bloods - this show is made of this trope: Henry Reagan was in Korea, his son Frank was in Vietnam, and Frank's son Danny served in the second Iraq War. Plus it's also mentioned that Henry's father was in Normandy on D-Day and knowing this family, was almost certainly also a cop.
- Criminal Minds - David Rossi
- CSI - Jim Brass
- CSI: NY - Mac Taylor
- LA Confidential - Ed Exley is a former Marine who served in the Pacific during World War II.
- Law & Order: Special Victims Unit - Elliot Stabler was a Marine veteran of the Gulf War. Even when not directly mentioned, his Marine Corps status is referenced by the Eagle, Globe and Anchor tattoo on his right forearm.
- Longmire - Walt Longmire, specifically as an MP in Vietnam.
- NYPD Blue:
- Detective Andy Sipowicz is a former Marine and a Vietnam veteran. Do not lie about serving in Vietnam in front of him.
- His son Andy Jr. joins the Air Force; after he is discharged due to an injury he applies for and is accepted into Hackensack NJ's police force training program.
- Andy's third partner Danny Sorensen is a former Special Forces ranger.
- NCIS - Gibbs. He was a Marine Corps Gunnery Sergeant and Scout Sniper who served in the invasion of Panama and the First Gulf War. Likewise his mentor Mike Franks was a Marine before becoming an NCIS agent.
- Quantico - FBI Agent Ryan Booth is a former Marine with service in Iraq and Afghanistan and a Bronze Star recipient.
- Luke Cage (2016) - Before Luke was framed and sent to prison, he was a cop, and before that, a Marine in Force Recon. His father had talked a judge into allowing him to enlist instead of going into juvie after some youthful indiscretion (he and a friend stole a car for fun).
- Dexter - Albert Doakes
- In near-future thriller Victoria, most of the early Christian Marines subversives and militiamen are military veterans presently employed as law enforcement officers in some capacity or other. Naturally, this also later aids their infiltration of the police forces.
- L.A. Noire - Cole Phelps was a Marine in WWII. His past and that of the rest of his former unit plays a major role in the plot.
- Mass Effect has Maeko Matsuo, captain of the Elanus Risk Control Services private police force on Noveria and an ex-Alliance marine.
- NYPD Blue creative consultant Bill Clark is a former NYPD detective and served in the Army and later the Army reserves, attaining the rank of Major.
- In Arise, Bato was a JMSDF commander before joining the Section 9, ironically outranking Motoko for a full grade.
- Fatherland - German police officer Xavier March and reluctant SS police major is also, or has been, a Kapitan zur See in the Kriegsmarine - one of Doenitz's U-Boat commanders. Also applies to the book.
- Tag Team, a Pilot Movie starring Jesse Ventura & "Rowdy" Roddy Piper as two former wrestlers who become cops: During the target practice portion of the Police Academy Ventura's character displays remarkable marksmanship skills; he mentions that he was a SEAL (as he is in Real Life)
- The 2017 adaptation of Ghost in the Shell has Saito as an ex-Navy SEAL commando before he became a mercenary and later on, joined Section 9.
- In S.W.A.T., Officer Jim Street is a former Navy SEAL. He puts his demolition training to good use when the team is delayed by a locked gate.
Literature
- In the 87th Precinct novels, Cotton Hawes served in the navy during World War II. His experience allows him to identify a plane in a photograph as a Zero, as he had been on deck when his ship was strafed by one.
- Hawaii Five-0 (2010 remake) - Steve McGarrett (SEAL)
- Hawaii Five-O (the original) - Steve McGarrett, the head of the Five-O police unit, is a former U.S. Navy officer and a commander in the U.S. Naval Reserve. Several episodes had references to his past career.
- Magnum, P.I. - Magnum was in Vietnam as a SEAL. This pops up occasionally.
- Magnum, P.I. (2018) - Magnum in the remake is still a former SEAL, and served in Afghanistan, where he was a POW; he and several friends he met in captivity settled in Hawaii after leaving the service.
- NCIS: Los Angeles - Sam Hanna (SEAL)
- On Graceland, FBI Agent "Johnny" Tuttoro is ex-Navy, and he's a rare case of someone who wasn't a SEAL. During his time in the Navy Johnny did try out for the SEALs, but was injured during the infamous Hell Week and had to withdraw from training. He finished his time in the Navy and went pretty much straight into law enforcement afterward.
- President Theodore Roosevelt was essentially the Acting Secretary of the Navy when the Spanish American War broke out and he joined the Rough Riders in the Army's Cavalry. He was also the Police Commissioner of New York City.
- The Choirboys - Sergeant "Sperm-Whale" Whelan of the LAPD is also a USAF reservist. He therefore spends weekends and down-time from the police in flying transport and logistic missions from the USA to Vietnam and back ('The Choirboys'' is set in the early 1970's). This has humorous consequences. When on Monday morning the other cops are discussing where they went at the weekend and are coming out with things like "Took the kids to Venice Beach. Some rain." Whelan can laconically reply "nowhere much. Da Nang. Some flak. how about you?" When late getting back once, Whelan went straight to the station house in his USAF uniform.
- London's Burning - one of the firemen was also a reservist in the Royal Air Force and trained by the RAF to deal with aircraft fires or crash-landings. Which came in useful in the big series finale concerning a plane crash in London.
- Resident Evil - Chris Redfield is formerly from the U.S. Air Force and joined the Raccoon Police Department after being discharged.


public class NumberProcessor
extends java.lang.Object
| Constructor and Description |
|---|
NumberProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static double |
evaluate(double x,
int[] coefficient) |
static int[] |
findAliquotDivisors(int num) |
static boolean |
isAdditive(int[] array)
An array is called Additive if the nth element (assuming n is a natural number) of the array is the sum of the first n elements.
|
static boolean |
isComposite(int input)
A number is defined to be the one that is positive integer and has at least one divisor other than 1 and itself.
|
static boolean |
isDual(int[] array)
An array is called Dual if it can be divided into two non-empty sub arrays,
where the sum of elements of the first sub array equals the sum of elements of the second sub array.
|
static boolean |
isEquivalent(int num1,
int num2)
Equivalent numbers are numbers where the sum of the aliquot divisors are equal.
|
static boolean |
isFriendly(int num1,
int num2)
Two numbers are called Friendly, if each of which is the sum of the other's aliquot divisors.
|
static boolean |
isListEven(int[] array)
An array is said to be ListEven if its elements are in ascending order and each element appears two or more times.
|
static boolean |
isMasonA(int[] array)
An array is called MasonA if it has the following properties:
- The value of the first element equals the sum of the next two elements, which is equals to the next three elements, equals to the sum of the next four elements, etc.
|
static boolean |
isReverseEquivalent(int num1,
int num2)
Two integers are said to be ReverseEquivalent, if the reverse of one of the numbers is equal to the other number.
|
static int[] |
representASCII(char[] input) |
static int |
reverseNum(int num) |
static int |
sumOfArray(int[] array) |
public static boolean isComposite(int input)
public static int[] findAliquotDivisors(int num)
public static int sumOfArray(int[] array)
public static boolean isFriendly(int num1, int num2)
public static boolean isEquivalent(int num1, int num2)
public static int reverseNum(int num)
public static boolean isReverseEquivalent(int num1, int num2)
public static boolean isListEven(int[] array)
array
- Takes an array of integerspublic static double evaluate(double x, int[] coefficient)
public static boolean isMasonA(int[] array)
public static boolean isDual(int[] array)
public static int[] representASCII(char[] input)
public static boolean isAdditive(int[] array)


--- layout: default title: ICBES'17 - Keynote Speakers meta: The list of hotels for ICCPE keyword: biomedical engineering conference, biomedical conference, biosystems conference, biomaterials conference, biomechanics conference, biomechatronics conference, biosensors conference, telemedicine conference, robotics conference, biomedical engineering, biomedical, biosystems, biomaterials, biomechanics, biomechatronics, biosensors, telemedicine, robotics ---
We are very happy to announce the following keynote speakers for the 4th International Conference on Biomedical Engineering and Systems (ICBES'17):
Dr. Qiyin Fang
Qiyin Fang is currently an Associate Professor at McMaster University and holds the Canada Research Chair in Biophotonics. Prior to joining McMaster, Dr. Fang was with the Minimally Invasive Surgical Technology Institute of Cedars-Sinai Medical Center in Los Angeles. Dr. Fang obtained his BSc (Physics) from Nankai University, his MSc (applied physics) and PhD (Biomedical Physics) from East Carolina University. His current research interests include optical spectroscopy and image guided minimally invasive diagnostic and therapeutic devices, micro/nanobio-sensing and imaging devices, and advanced optical microscopy and their emerging applications.
Topic of Keynote: Multiplexing FLIM for High Content Screening Applications
Keynote AbstractDr. Yu Haoyong
Dr. Yu received his Bachelor’s Degree and Master’s Degree from Shanghai Jiao Tong University in 1988 and 1991 respectively. He obtained his PhD from Massachusetts institute of Technology in 2002. He was the Principal Member of Technical Staff in DSO National Laboratories of Singapore before he joined Department of Biomedical Engineering of NUS in September 2010. He is also a Principal Investigator of the Singapore Institute of Neurotechnology (SiNAPSE) and the Advanced Robotic Center of NUS (ARC) of NUS. His current research focuses on rehabilitation and assistive robotics. http://www.bioeng.nus.edu.sg/biorob/
Topic of Keynote: Robotics for Healthcare Productivity Improvement
Keynote Abstract


| Pro Teams | {{entry.proTeams}} |
{% extends "_layout" %} {% block content %}
{{entry.athleteDescription}}
{% endif %}| D.O.B | {{entry.dateOfBirth}} |
| Hometown | {{entry.hometown}} |
| School | {{entry.education}} |
| Residence | {{entry.residence}} |
| Pro Teams | {{entry.proTeams}} |
{{arrBio[0]|replace({"
":"","
":"","{{ptag|replace({"
":"","
":"","{{poiBlock.poiDescription}}
{{poiBlock.poiDescription}}


Ocean [ad30], ocean, in Crystal Sea
Last updated Turn #125
Ocean [ad30], ocean, in Crystal Sea
------------------------------------------------------------------------
13: Sirocco Traveller [ja8y], ship, 10 hulls, 1 rowing port, 30 sails,
13: 4% damaged, arrived from Wildhorse Plains [ad31], owner:
13: Toulouse [h1q], Pen, with one worker, 32 sailors
14: Sirocco Traveller [ja8y], ship, 10 hulls, 1 rowing port, 30 sails,
14: 4% damaged, departed for Ocean [ad29].
Routes leaving Ocean:
North, to Ocean [ac30], 6 days
East, plain, to Wildhorse Plains [ad31], Oleg's Folly, 2 days
South, to Ocean [ae30], 6 days
West, to Ocean [ad29], 6 days


I am a postdoctoral researcher in the lab of Professor Jon Pokorski and am serving as MRSEC Trainee Leadership Group Representative (IRG2). My current research focuses on fabricating biosynthetic materials by integrating genetically engineered cells into polymer composites.
Prior to joining the Pokorski lab, I received my Doctoral degree from the Indian Institute of Technology Guwahati, India. During my PhD research I developed biocompatible gelators from short self-assembling peptides for applications in drug delivery and tissue engineering. In my spare time I enjoys photography, traveling, writing and painting.
The combination of Biological science with Chemistry and Physics amazes me and has been the subject of my passion owing to its plethora of possibilities. My research interest lies in the design, modelling and synthesis of functional nano-materials. My current project involves, but is not limited to, the development of peptide based hydrogels which finds its applications in bio-medicine (as drug delivery vehicles and scaffolds in tissue engineering), material science and electronics. The synthetic approach is also combined with computer aided molecular dynamics simulation to probe into the underlying mechanism principles in this bottom-up nano fabrication technique.
GPA 8.0
Grade First Class
DGPA 8.62/10


This is Jamari's portfolio.
Click here to see content created by server code.
Click here to get a random message:


Uploading... 0%
Done!
Error uploading screenshot.
Error uploading screenshot. Check your Cappy Gallery URL is correct and that you have some internets.
Sorry, your sign in has expired. Please try signing in again.
Hello. You need to configure Cappy before you can take screenshots.
Cappy cannot screenshot this page because of Chrome's security settings.
Uh oh, something went wrong! Try reloading the page and run this again.


Lightbox is a simple, unobtrusive script used to overlay images on top of the current page. It's a snap to setup and works on all modern browsers.
Download
Lightbox
v2.51
- Includes:
- index.html
- js/jquery-1.7.2.min.js
- js/lightbox.js
- css/lightbox.css
- images/close.png
- images/loading.gif
- images/next.png
- images/prev.png
- Plus a few files for the demo page
Lightbox2 is open-source.
Fork the code on Github.
Changelog
- v2.51 - 4/20/12 - IE Fix: removed stray console.log statements. :-/
- v2.5 - 4/10/12 - Switch to jQuery. Code put in Github. Compiling with Coffeescript and SASS.
- v2.05 - 3/18/11 - Upgraded Prototype (now works in IE9) and Scriptaculous. Minor bug fixes.
- v2.04 - 3/9/08
- NEW - Upgraded Prototype from v1.4 to v<IP_ADDRESS>
- NEW - Moved label text into configuration for easier localization
- UPDATED - Code cleaned up. Respect for the global namespace and native javascript objects.
- FIXED - Caption displays as "null" when viewing an uncaptioned image after viewing a captioned image.
- FIXED - Clicking 'close' button shifts layout as link focus' dotted line appears.
- v2.03.3 - 5/21/07 - Support for horizontally scrolling pages. Added updateImageList method for ajax'y pages.
- v2.03.2 - 4/30/07 - Fixed animated gif support in IE/Opera.
- v2.03.1 - 4/18/07 - Fixed embed hiding. Overlay opacity var added to config. Image sets w/Imagemaps fix. Clearfix removed.
- v2.03 - 4/10/07 - Improved keyboard navigation. Animation off toggle. Hides Flash movies under overlay. Imagemap support. Valid CSS.
- v2.02 - Fixed layout issues caused by multiline captions. Added keyboard navigation.
- v2.01 - Centering in IE6 (any DOCTYPE) fixed. Smoothed out resize transition.
How to use
Part 1 - Setup
- Lightbox 2 uses the jQuery framework. Load jQuery and the Lightbox javascript files in the proper order.

- Include the Lightbox CSS file.
<link href="css/lightbox.css" rel="stylesheet" />
- Check the CSS and make sure the referenced
prev.png
andnext.png
files are in the right location. Also, make sure theloading.gif
andclose.png
files as referenced near the top of thelightbox.js
file are in the right location.
Part 2 - Activate
- Add a
rel="lightbox"
attribute to any link tag to activate Lightbox.
Optional: Use theimage #1
title
attribute if you want to show a caption. - If you have a set of related images that you would like to group, follow step one but additionally include a group name between square brackets in the rel attribute.
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!image #1 image #2 image #3
Support
For personal support issues and feature requests please post a message in the forums. I do not have time to personally respond to support emails, please use the forum. Thanks!
For bug reports, send a note with the browser you are using and the version of Lightbox to lokesh.dhakar@[ google's email service ].com.
Lightbox
Forums
Forums
Donate
Lightbox is completely free to use. If you're using Lightbox on a commercial project and feeling generous, consider a donation. All donations are sincerely appreciated. Thanks!


| About Dailyrotten |
|
Feedback
If you like this page, hate it, or would like to suggest changes,
<EMAIL_ADDRESS>is listening. This page
is experimental and somewhat different from what we usually offer, so please
do send your feedback.
Adding Stories
If you are a rotten newshound and you would like to suggest a story,
visit our submit page to
send us the URL. Stories that are accepted will have your name credited.
Posting Comments
In order to post comments to stories, you will have to
create an account.
Accounts will generally be validated within 24 hours, and of
course will be disabled if there is abuse.
Viewership
On the first full day this page went live, 100,000 people visited this Rotten
News page. Of course that was the day after the WTC attacks, so that number is
somewhat distorted. Right now this page gets between 50,000 and 75,000 people
every day.
Linking
We encourage everyone to link to this page; if you like it, others probably
will as well.
Other Rotten
Rotten
Gaping Maw
Celebrity Morgue
Mugshots
Rotten Store
Rate My Poo
Rate My Kitten
Rate My Finger
Penny Postcards
Phallic
Boners
Home
Make Dailyrotten your start page
|
|
|
December 29, 2002
Somebody blew up Ferdinand Marcos
BBC | Submitted by: Squeak, the Human Chew Toy
An enormous concrete bust commissioned by the late Philippine dictator
Ferdinand Marcos to immortalise himself has been blown up. With before and
after photos.  The
perpetrators remain at large.
|
|
Read article...
|
|
Government snooping your trash
The Oregonian | Submitted by: PANTS
Police in Portland Oregon have been looking at citizen's trash for evidence,
without using warrants. Apparently they think this is OK. But then a newspaper
began examining personal trash of a number of prominent city officials,
including the District Attorney. And what are the city officials reactions
to this turn of events?
|
|
Read article...
|
|
You have no privacy
San Francisco Chronicle | Submitted by: Number-6
The step parents of a murdered daughter filed suit against a Florida
company who provided SSN and work employment information to a stalker
who then shot Amy Boyer eleven times. Unfortunately for them, they
don't really have a case. This information isn't private, regardless
of what you may actually believe. It is bought and sold routinely
by private corporations for marketing and other tracking purposes.
|
|
Read article...
|
|
Hatfields and McCoys feuding
Canoe | Submitted by: Rip
"Descendants of famed feuding families the Hatfields and McCoys will
face off in court to settle a dispute over access to a cemetery where
three slain boys are buried. "I really hate that we have to go to the
court system to settle this. We wanted to be gentlemen about it. We
felt like we had no other choice." Family history indicates otherwise.
|
|
Read article...
|
|
Hanging judge dies at 73
Monterey Herald | Submitted by: wingnut
"Ellen James Morphonios, the colorful Florida judge who signed her decrees
in lavender ink, kept a toy electric chair in her chambers right next to the
stuffed animals and very real diapered chimp named Toto, and once from the
bench congratulated a rape victim for shooting her attacker in the groin by
saying, "nice shot," has died. She was 73. "It's just not like her to die,"
said a friend and former assistant.
|
|
Read article...
|
|
Sign up and die
WVTM-TV 13 Birmingham | Submitted by: TacoOfDoom
In an effort to reduce drinking and driving this New Year's Eve, police
in the esteemed state of Alabama promise that there will be no tolerance for
DUI's, but the local funeral home has a better way to handle the problem.

We all feel safer now.
|
|
Read article...
|
|
Game interrupted by thrown rat
Wire Services | Submitted by: WallWart
"Utah's Karl Malone was about to take his second of two free throws with 4:13
left in the second quarter when the rat landed on the court. It was thrown from
the top of the lower deck and skidded to a stop at Malone's feet."
|
|
Read article...
|
|
Royal Family in deep shit with the public
Guardian | Submitted by: Ann Onymous
"Only one in two of us now believe that the monarchy will last more than 20
years, down from 58 per cent in just 12 months. And one in four think the
monarchy will not survive more than 10 years after the death of the Queen,
now 76. The number of people who think that the royal family should receive
not a penny from the taxpayer has also soared in the last year, from 34 per
cent to 41 per cent."
|
|
Read article...
|
|
Gas station offers free porno VCD's
China Post | Submitted by: orpyak
At a general interpellation session at the Legislative Yuan, Keh charged
Chinese Petroleum Corporation with lack of oversight over its chain gas
stations that are using dirty video tapes to attract more customers.
Service stations affiliated with the Formosa group are also offering similar
giveaways, the opposition lawmaker said."
|
|
Read article...
|
|
Hitler panda
Globe and Mail | Submitted by: leujken
"Last Friday, a Lachine, Que., manufacturer of the festive crackers was
horrified to learn that a northern Alberta couple celebrating Christmas found
tiny plastic panda bears with swastikas on military-style caps in their
Christmas crackers... The tale began when Mr. Walpert's firm bought a supply
of another Chinese icon, the panda bear, to include with jokes and other tiny
items in 1,350 boxes of crackers. The pandas Mr. Walpert approved were
unadorned, he said."
|
|
Read article... and
This article...
|
|
Baby eating on British TV
News Corporation | Submitted by: Dirty Sammy
"Britain's Channel 4 television, which recently broadcast the country's
first public autopsy for 170 years, will show a Chinese artist eating the
flesh of a dead baby. The bizarre act will be shown in a documentary
called "Beijing Swings", which looks at extreme practices of Chinese
artists, according to The Guardian."
|
|
Read article...
|
|
Are you willing to die for your MP3's
The Age | Submitted by: slimbastard
"Consumers like to buy the latest, swiftest devices, but research from Sweden
and the experiences of Australian PC users show that speed can inconvenience
and possibly kill. At revolutions of about 200 metres per second, today's state
of the art lead-foot drives approach the speed of sound, 340 metres per second
through air at room temperature, subjecting the spinning disc to a force 1500
times that of gravity, researchers have found."
|
|
Read article...
|
|
Batman Murdered Elvis!
Clarksville Leaf-Chronicle | Submitted by: Dirty Sammy
"Emmanuel "Batman" Trotter, convicted of the Aug. 30, 2000, shooting death
of Raymond "Elvis" Brown may have to be resentenced because of a prosecution
mistake during sentencing."
|
|
Read article...
|
|
|
|
|


Welcome to TimPyUtils’s documentation!¶
This is a collection of Python tools that I find useful. Some I have written myself and some (as noted in the documentation) I have scrounged from the web.
The source code is available from GitHub.
Indices and tables¶
Module documentation¶
colorbar_from_cmap_norm¶
“create a colorbar in a specified axis from a colormap instance, a norm instance, and an array of values.
-
timutils.colorbar_from_cmap_norm.
colorbar_from_cmap_norm
(cmap, norm, cax, format, vals)¶ Create colorbar using provided axis, colormap, norm, values.
Create a colorbar in a specified axis from a colormap instance, a norm instance, and an array of values.
This is a workaround for a problem I’m having where calling plt.colorbar on different matplotlib.contour.QuadContourSet created from the same cmap and norm produces different colorbars, all of which are messed up in one way or another. This function creates a dummy mappable and creates the colorbar from it.
Parameters: - cmap (
matplotlib.colors.Colormap
instance) – The colormap to use in the colorbar - norm (
matplotlib.colors.Normalize
instance) – normalizer to use for the colorbar - cax (
matplotlib.axes.Axes
instance) – Axes where the colorbar is to be drawn - format (string) – [None | format string | Formatter object]
If None, the
matplotlib.ticker.ScalarFormatter
is used. If a format string is given, e.g., ‘%.3f’, that is used. An alternativematplotlib.ticker.Formatter
object may be given instead. - vals (
numpy.array
-like) – the data to be described by the colorbar
Returns: a
matplotlib.colorbar.Colorbar
object.EXAMPLE
>>> import matplotlib.pyplot as plt >>> import numpy as np >>> data = np.random.random([100, 100]) >>> my_cmap, my_norm = colormap_nlevs.setup_colormap( data.min(), data.max(), nlevs=6, cmap=plt.get_cmap('Greens'), extend='max') >>> fig, ax = plt.subplots(nrows=1, ncols=2) >>> ax[0].pcolormesh(data, cmap=my_cmap, norm=my_norm) >>> cb = colorbar_from_cmap_norm(my_cmap, my_norm, ax[1], '%0.2f', data) >>> plt.show()
- cmap (
colormap_nlevs¶
create colormaps with user-specified number of intervals.
-
timutils.colormap_nlevs.
setup_colormap
(vmin, vmax, nlevs=5, cmap=<matplotlib.colors.LinearSegmentedColormap object>, extend='both')¶ create a discrete colormap from a continuous colormap
Returns the N-level colormap and a normalizer to plot arbitrary data using the colormap. The normalizing places the N levels at constant intervals between the vmin and vmax.
Parameters: - vmin (float) – value to map to the lowest color level
- vmax (float) – value to map to the highest color level
- nlevs (integer) – number of levels for the colormap (default is 5)
- cmap (
matplotlib.colors.Colormap
instance) – colormap to use for the N-level colormap - extend (string) – ({‘both’} | ‘min’ | ‘max’ | ‘neither’}) should the top or bottom of the colormap use an arrow to indicate “and larger” or “and smaller”
Returns: tuple (cmap, norm) containing a
matplotlib.colors.Colormap
object and amatplotlib.colors.Normalize
object.EXAMPLES: >>> import matplotlib.pyplot as plt >>> import numpy as np >>> from timutils.colormap_nlevs import setup_colormap >>> data = np.random.rand(100, 100) * 1000 >>> mycmap, mynorm = setup_colormap(vmin=200.0, vmax=800.0, extend=’max’) >>> fig, ax = plt.subplots() >>> cm = ax.pcolormesh(data, cmap=mycmap, norm=mynorm) >>> plt.colorbar(cm) >>> plt.title((‘setup_colormap examplen data values 0 to 1000; nlevs=5, vmin=200, vmax=800’)) >>> plt.show()
-
timutils.colormap_nlevs.
setup_colormap_with_zeroval
(vmin, vmax, nlevs=5, cmap=<matplotlib.colors.LinearSegmentedColormap object>, extend='both')¶ create a discrete colormap with reserved level for small values
setup a colormap based on a existing colormap with a specified number N of levels reserving the lowest colormap level for extremely small values.
Extremely small are currently defined as [0.0, 1e-8].
Returns the N-level colormap and a normalizer to plot arbitrary data using the colormap. The normalizing places the N levels at constant intervals between the vmin and vmax.
Parameters: - vmin (float) – value to map to the lowest color level
- vmax (float) – value to map to the highest color level
- nlevs (integer) – number of levels for the colormap (default is 5)
- cmap (
matplotlib.colors.Colormap
instance) – colormap to use for the N-level colormap - extend (string) – ({‘both’} | ‘min’ | ‘max’ | ‘neither’) should the top or bottom of the colormap use an arrow to indicate “and larger” or “and smaller”
Returns: tuple (cmap, norm) containing a
matplotlib.colors.Colormap
object and amatplotlib.colors.Normalize object
.EXAMPLE
>>> import matplotlib.pyplot as plt >>> import numpy as np >>> from timutils.colormap_nlevs import setup_colormap_with_zeroval >>> data = np.random.rand(100, 100) >>> mycmap, mynorm = setup_colormap_with_zeroval(vmin=data.min(), vmax=data.max(), nlevs=7, extend='neither') >>> fig, ax = plt.subplots() >>> cm = ax.pcolormesh(data, cmap=mycmap, norm=mynorm) >>> plt.colorbar(cm) >>> plt.title(('setup_colormap_with_zeroval example\n data values 0 to 1; nlevs=5')) >>> plt.show()
ffmpeg_tester¶
demo module to check that ffmpeg is available before creating an animation
-
timutils.ffmpeg_tester.
check_for_ffmpeg
()¶ Return True if ffmpeg is present on the system. If ffmpeg is not present print a message and return False.
io¶
wrapper functions for input/output tasks
-
timutils.io.
delete_if_exists
(fname)¶ remove a file if it exists, with a message to stdout
Parameters: fname (string) – full path of the file to be removed EXAMPLE
>>> delete_if_exists('/path/to/file/file_name.txt')
-
timutils.io.
get_temp_filename
(dir='SCRATCH', prefix='tmpfile', suffix='.png')¶ return a name for a temporary file
This is a wrapper for tempfile.NamedTemporaryFile, and provides two enhancements: (1) provides a shorthand to place the temporary file in the directory pointed to by the operating system environment $SCRATCH. (2) In addition to creating the temporary file returns the full path for easy access from a calling routine.
Parameters: - dir (string) – full path of directory for the temporary file. Default is $SCRATCH.
- prefix (string) – prefix to place before the random string in the filename. Default is “tmpfile”
- suffix (string) – suffix to place after the random string in the filename. Default is ”.png”
Returns: a string containing the full path to a temporary file
EXAMPLE
>>> tmp_name = get_temp_filename(dir='/tmp', suffix='.txt')
midpt_norm¶
Implement a colormap with user-specified midpoint and number of intervals.
-
timutils.midpt_norm.
get_discrete_midpt_cmap_norm
(vmin, vmax, midpoint, bands_above_mdpt=5, bands_below_mdpt=5, this_cmap=<matplotlib.colors.LinearSegmentedColormap object>, extend='both')¶ Create a colormap with user-specified midpoint and number of intervals.
Provides a colormap and a matplotlib.colors.Normalize instance that implement a discrete colormap with an arbitrary midpoint.
Parameters: - vmin (real) – the minimum value in the colormap
- vmax (real) – the maximum value in the colormap
- bands_above_mdpt (integer) – the number of color bands above the midpoint
- bands_below_mdpt (integer) – the number of color bands below the midpoint
- this_cmap (
matplotlib.colors.Colormap
instance) – colormap on which to base the output colormap. Default is PuOr. get_discrete_midpt_cmap_norm is intended to be used with a diverging colormap. - extend (string) – [“max”, “min”, {“both”}, “neither”]; whether the colorbar should reserve a color for values above vmax or below vmin. If “neither” is selected such values are masked out and left blank.
adapted by Timothy W. Hilton from code posted by Joe Kington to http://stackoverflow.com/questions/20144529/shifted-colorbar-matplotlib accessed 9 Nov 2015
EXAMPLE
>>> import matplotlib.pyplot as plt >>> import numpy as np >>> from timutils.midpt_norm import get_discrete_midpt_cmap_norm >>> plt.close('all') >>> data = np.random.randint(-120, 20, [124, 124]) >>> fix, ax = plt.subplots(1, 2) >>> mycmap, mynorm = get_discrete_midpt_cmap_norm(vmin=-120, vmax=20, midpoint=0.0, bands_above_mdpt=6, bands_below_mdpt=20) >>> cm = ax[0].pcolormesh(data, norm=mynorm, cmap=mycmap) >>> plt.colorbar(cm, cax=ax[1]) >>> plt.show()
scinot_format¶
-
timutils.scinot_format.
scinot_format
(x)¶ format a number into scientific notation for use in plot labels.
Formats the parameter x using \(123 \times 10^{{-456}}\) notation, not \(123\mathrm{e}-456\) notation.
Parameters: x (real) – the value to be formatted
Yields: - a string containing x, formatted for use in matplotlib plot
labels
EXAMPLE
>>> from timutils.scinot_format import scinot_format >>> print scinot_format(1.234e-5)
>>> import matplotlib.pyplot as plt >>> import numpy as np >>> from matplotlib.ticker import FuncFormatter >>> from timutils.scinot_format import scinot_format >>> def formatter(val, tickpos): return(scinot_format(val)) >>> y = np.linspace(0.,2.,10) >>> x = y * 1e18 >>> fig = plt.figure() >>> ax = fig.add_subplot(111) >>> ax.plot(x,y) >>> ax.xaxis.set_major_formatter(FuncFormatter(formatter)) >>> plt.show()
>>> import matplotlib.pyplot as plt >>> import numpy as np >>> from matplotlib.ticker import FuncFormatter >>> from timutils.scinot_format import scinot_format >>> def formatter(val, tickpos): return(scinot_format(val)) >>> data = np.random.random((100, 100)) * 1e-12 >>> fig, ax = plt.subplots() >>> cm = ax.pcolormesh(data) >>> plt.colorbar(cm, format=FuncFormatter(formatter)) >>> plt.show()
Code posted 19 Oct 2010 by Jonathan Slavin to the matplotlib - users listserve
splitpath¶
functions to help separate paths to components
splitall() returns a list of strings, each string containing one component of the path.
to_ospathjoin() wraps the components into an os.path.join() call
splitpath.splitall() is from Python Cookbook by David Ascher, Alex Martelli, accessed 31 Mar 2017
-
timutils.splitpath.
splitall
(path)¶ split path into a list of strings, one path component per string
Parameters: path (str) – a path Returns: a list of strings, one path component per string EXAMPLE
>>> splitall('/some/path/to/some/file.txt') ['/', 'some', 'path', 'to', 'some', 'file.txt']
Authors: David Ascher and Alex Martelli, published in Python Cookbook
-
timutils.splitpath.
to_ospathjoin
(path)¶ reformat a path to a os.path.join call
Parameters: path (str) – a path Returns: a string containing the elements of path wrapped in a call to os.path.join() EXAMPLE
>>> to_ospathjoin('/some/path/to/some/file.txt') "os.path.join('/', 'some', 'path', 'to', 'some', 'file.txt')"
Author: Timothy W. Hilton, UC Merced
std_error¶
module to implement standard error calculation, with optional effective sample size adjustment of Wilks (1995)
References
Wilks, D. (1995), Statistical Methods in the Atmospheric Sciences: An Introduction, Academic Press, New York.
-
class
timutils.std_error.
MeanStdError
(arr)¶ class to implement standard error calculation on a numpy array
-
calc
(dim=0)¶ calculate the standard error of the mean
Calculate the standard error of the mean along a specified dimension of self.arr using equation (1) of Efron and Tibshirani (1991). The standard error is placed in field std_err, the “effective sample size” standard error is placed in field std_err_neff, and the effective sample size is placed in field neff. neff is calculated according to Wilks (1995).
Parameters: - dim (int) – the dimension of self.arr along which the mean, standard error should be calculated
- adjust_n (boolean) – if True, use the “effective sample size” of Wilks (1995) to account for autocorrelation in the data.
References
- Efron, B. & Tibshirani, R., 1991. Statistical Data Analysis
- in the Computer Age. Science, 253, 5018, p 390- 395.
- Wilks, D., 1995 Statistical Methods in the Atmospheric
- Sciences: An Introduction. Academic Press, New York
-
-
timutils.std_error.
calc_autocorr
(arr, dim=0, lag=1)¶ calculate lag-1 autocorrelation along an array dimension
Parameters: - arr (array-like) – numpy array of numeric values
- dim (int) – the dimension of arr along which the autocorrelation should be calculated. Default is 0.
- lag (int) – lag to use for autocorrelation calculation.
Returns: effective sample size accounting for lag-1 autocorrelation
Return type: array-like
-
timutils.std_error.
calc_neff
(arr, dim=0)¶ calculate effective sample size accounting for lag-1 autocorrelation
Effective sample size is calculated according to Wilks (1995). If arr is multi-dimensional it is flattened first
Parameters: - arr (array-like) – numpy array of numeric values
- dim (int) – the dimension of arr along which the effective sample size should be calculated. Default is 0.
Returns: effective sample size accounting for lag-1 autocorrelation
Return type: float
References
Wilks, D., 1995 Statistical Methods in the Atmospheric Sciences: An Introduction. Academic Press, New York
-
timutils.std_error.
calc_std_err
(arr, dim=0, n=None)¶ calculate standard error of the mean
Calculates standard error of the mean for an array along a specified axis. Uses the definition given by Efron and Tibshirani (1991) equation 1.
Parameters: - arr (array-like) – numpy array of numeric values dim (int): the dimension of arr along which the effective sample size should be calculated. Default is 0.
- n (array-like) – value of n to be used for each element of arr along axis dim. Default is the number of elements along axis dim of arr (i.e. arr.shape[dim]). That is, the default is to treat each element of arr as an independent data point. A different value of n may be useful to, for example, account for autocorrelation in arr (see function calc_autocorr).
Returns: A numpy array containing standard error of the mean along axis dim of arr.
Return type: array-like
References
Efron, B. & Tibshirani, R., 1991. Statistical Data Analysis in the Computer Age. Science, 253, 5018, p 390- 395.


| Name: | ||
| ANLA | ||
| Institutions: | ||
| ANLA - Alaska Native Language Archive | ||
| Choices: | ||
| Unrestricted access | - | Any member of the public may access the material for nonprofit use. |
| No access until specific date | - | No access to the material until the date specified. |
| Restricted access | - | restrictions on access as specified below (for example, "access only with permission of village council", "access only with permission of descendants", etc.) |


This is a test page to demonstrate how to convert phone numbers to clickable links.
Personal phone number, tel: +(40) 123456789
+40123456789
Mobile phone number:<PHONE_NUMBER>
another format:<PHONE_NUMBER>
another format:<PHONE_NUMBER>
another format: 40 724 335 358 some text...
See the source of this page (linkify_example.html) for details.


This book seeks to help parents see the power that Montessori education holds for their children at all ages.
Understanding Montessori draws on the author’s twenty-five years of working with children to affirm what neuropsychologists are beginning to discover.
Learn More... Buy Now on Amazon


Sign in to GitHub
Username and email address
Password
Forgot password?
Sign in
New to GitHub?
Create an account
.


Canoemates: A Story of the Florida Reef and Everglades
by Kirk Munroe
Chapter XVI: “A Night in Alligator Light”
Additional Information
- Year Published: 1892
- Language: English
- Country of Origin: United States of America
- Source: Munroe, K. (1892). Canoemates: A Story of the Florida Reef and Everglades. New York, NY: Harper & Brothers.
-
Readability:
- Flesch–Kincaid Level: 9.5
- Word Count: 1,532
- Genre: Adventure
- ✎ Cite This
Downloads
WHILE taking Worth and Quorum out to the light, Assistant Keeper Albury told them how the canoes had been towed out to sea by a Jew-fish, and described the difficulty he had had in capturing them. Although Worth listened to all this with interest, his pleasure in having the mystery cleared up, and at the prospect of recovering the canoes, was sadly dampened by his increasing anxiety concerning Sumner’s fate. What can have become of him? was the question that he asked over and over again, but to which neither of the men could give an answer.
They were cordially welcomed to the light by the keeper, who was always glad to have visitors to his lonely domain, and Worth easily proved his ownership of the canoes by describing their contents.
The lighthouse was a skeleton framework of iron, with its lower platform about twelve feet above water that surrounded it on all sides. On this platform lay the two canoes, side by side, looking as fresh and unharmed as when Worth had last seen them at anchor off Lignum Vitae. If Sumner had only been there, how he would have rejoiced over them! As it was, he gave them but a hurried examination to assure himself that they were all right, and then followed the keeper up the flight of iron steps leading to the house. The portion of this in which the men lived was a huge iron cylinder, surrounded by a balcony, and divided into several rooms. Above it rose a slender iron shaft, in which was a circular stairway leading to the lantern at its top. Worth ascended this with the keeper to witness the lighting of the great lamp, and the movements of the revolving machinery by which the red and white flashes were produced.
From this elevation a long line of keys was visible, while the one they had so recently left seemed quite close at hand. While gazing at it, Worth saw a schooner come down the channel from the direction of Lignum Vitae, and lower her sails, as if for the night, under its lee.
“Oh, Mr. Spencer!” he cried, “there’s a schooner come to anchor close to Indian Key. Perhaps her people are looking for us, and perhaps they have brought news of Sumner. Can’t we take the canoes now and sail over there?”
“Bless you, no, lad! I wouldn’t for anything have it on my conscience that I’d let you go sailing around these waters at night in those cockleshells. There’s no doubt but what she’ll stay there till morning, and if the weather is good, you can make a start as soon after daylight as ever you like; but you’ll have to content yourself here till then. I couldn’t think of letting you go before.”
To this decision Worth was forced to submit, and after the lamp was lighted he followed the keeper to the living rooms below. Here he found Quorum hard at work at his favorite occupation of cooking. He was preparing a most savory fish chowder, and when they sat down to supper both the keepers declared that in all their experience they had never tasted its equal. The second assistant keeper was then absent on the two-weeks’ vacation, to which each of them was entitled after two months of service in the light. They only regretted that Quorum could not remain until his return, that he too might learn the possibilities of a fish chowder.
Worth was so charmed with his novel surroundings, and by the quaint bits of lighthouse experience related by the keepers, that until bedtime, he almost forgot his anxiety. When he had gone to bed in the scrupulously neat and clean guest chamber, after charging the keepers to waken him at the earliest dawn, it returned in full force, and for a long time drove sleep from his eyes. As he lay listening to the keeper on watch making his half-hourly trips up to the lantern, and to the lapping of the waves about the iron piling of the foundation, he imagined all sorts of dreadful things as having happened to Sumner, and even after he fell asleep his dreams were of the same character.
From this unhappy dreaming he was awakened while it was still quite dark, though the keeper, who was standing beside his bed, assured him that day was breaking. At this, and remembering his cause for haste, the boy sprang out of bed and quickly dressed himself. In the outer room he found Quorum already up and waiting for him, and he also found a steaming pot of coffee. Fortified by a cup of this and a biscuit, he declared himself ready for the voyage back to Indian Key.
As they stepped outside, the light was sufficiently strong for them to dimly discern the distant line of keys, and preparations were at once made to place the canoes in the water. Worth’s was the first swung from the platform davits and lowered, while he, descending a rope ladder, one end of which touched the water, was ready to cast off the falls and step into her. Then Quorum was invited to do the same thing with the Psyche; but the old Negro drew back apprehensively, exclaiming:
“No, sah, gen’l’men.  No, sah, gen’l’men; ole Quor’m too smart fo’ dat.”
“Well, then, sit in the canoe where she is, and we’ll lower you down in her.”
To this plan the old man was finally induced to agree, and with great trepidation seated himself in the frail craft. The moment the men began to sway away on the falls, he would have jumped out if he could. As he was already swinging in mid-air, it was too late to do aught save remain where he was. Clutching the sides of the cockpit tightly with both hands, he closed up his eyes and resigned himself to his fate. His face assumed an ashen tinge, and his lips moved as though he were praying. He gave a convulsive start as the canoe dropped into the water, but he did not open his eyes nor relax his clutch of the coamings.
 I’ll show you how to use it,” shouted Worth, after he had cast off the falls.
But he might as well have addressed the lighthouse for all the notice the old man took of him. Finally, realizing that Quorum was utterly helpless, and incapable of action, from fright, Worth took the Psyche in tow, and paddling out from the lighthouse, bade the friendly keepers a cheery goodbye, and started on his laborious trip to Indian Key.
Although the sea was perfectly smooth, paddling two deeply laden canoes proved heavy work for one person, and Worth would have doubtless become exhausted long before reaching his destination had not a light breeze sprung up at sunrise. Aided by this, he made such good progress that in less than an hour he was rounding the point of Indian Key, behind which the Transit lay at anchor.
Sumner, who had just turned out, was gazing wistfully back at Lignum Vitae, as though it still held the young comrade whose loss caused him to feel so depressed, when he started as though he had been shot, at the sound of his own name, uttered with a joyous shout but a short distance from him.
He could hardly credit his senses, or believe that he saw, sailing merrily towards him, the long-lost canoes, bearing the very friends on whose account he had been so anxious but a moment before. At the same time Worth was equally bewildered and overcome with joyful emotions.
“Hurrah! Glory hallelujah!” shouted Sumner, in the fulness of rejoicing.
At this sound Quorum ’started as though from a trance, and opened his eyes for the first time since leaving the light. Whether he tumbled out of the canoe accidentally or on purpose, no one, not even himself, ever found out; but the next instant he was in the water, puffing like a porpoise, and swimming towards the land. Fortunately the distance was short, so that in a few minutes he reached the rocks and pulled himself out on them. There, scrambling to his feet, and with the water pouring from him, he shook his fist at the craft he had so unceremoniously deserted, exclaiming:
“Dat’s de fustes an’ de lastes time ole Quor’m ebber go sailin’ in er baby cradle! Yes, sah, de fustes an, de lastes!”