Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

2014 Work Week Calendar

Yes, the Official 2014 Work Week Calendar is available right here in pdf form, perfect for displaying on a clip board, or wall or what have you.

Each month has it’s very own page, twelve in all.

And, yes, the dates work.

If you want to have some real fun, format your own and waste lots of time, have a go.
Here’s the source (ala Excel spreadsheet) I tortured to make it. Full disclosure, this calendar began years ago as some Excel demo as I recall.

Regular expression cheat sheet

Here is a regular expression cheat sheet based on the python module re.
Regular expressions
This is a one-pager highlighting the most commonly used regular expressions–enough to get most easy tasks done.
The download is formatted and much more visually appealing than the unformatted content below.
Regular expression pdf cheat sheet

. any character except a newline

^ or \A the start of the string

$ or \Z the end of the string

* 0 or more repetitions of the preceding RE, as many repetitions as are possible. ab* will match ‘a’, ‘ab’, or ‘a’ followed by any number of ‘b’s.

+ 1 or more repetitions of the preceding RE. ab+ will match ‘a’ followed by any non-zero number of ‘b’s; it will not match just ‘a’.

? 0 or 1 repetitions of the preceding RE. ab? will match either ‘a’ or ‘ab’.

*?, +?, ?? The ‘*’, ‘+’, and ‘?’ qualifiers are all greedy; they match as much text as possible. If < .*> is matched against ‘<h1>title</h1>’, it will match the entire string, Adding ‘?’ is non-greedy. < .*?> matches only ‘<h1>’.

{m} exactly m copies of the previous RE

{m,n} from m to n repetitions of the preceding RE. If omitted, m: 0, n: infinity. greedy

{m,n}? from m to n repetitions of the preceding RE, as few repetitions as possible. non-greedy. ‘aaaaaa’, a{3,5} matches 5 ‘a’ characters, while a{3,5}? matches 3 characters.

\ Escapes special characters (characters like ‘*’, ‘?’, and so forth)

[ ] 1) Characters listed individually, e.g. [amk] matches ‘a’, ‘m’, or ‘k’.
2) Ranges of characters, [a-z] matches any lowercase letter, [0-5][0-9] will match all the two-digits numbers from 00 to 59, [A-Za-z] matches any alpha character

[^ ] Not what’s inside

A|B A or B, use multiple times, first match and out

(…) Match and save the regular expression is inside the parentheses as a group. Group contents can be obtained using group() method of MatchObject object.

(?P<name>pattern…) Symbolic group where name is the name of the group and pattern is some pattern to match.The pattern (?P<quote>[‘”]).*?(?P=quote) matches a string quoted with either single or double quotes. Named groups can be referenced by number: (?P=quote)could have been \1


\w [a-zA-Z0-9_]
\W [^a-zA-Z0-9_]
\b First or last character
\B mid character
\d [0-9]
\D [^0-9]
\s Any whitespace [ \t\n\r\f\v]
\S [^ \t\n\r\f\v]

Regular expression pdf cheat sheet

Git cheat sheet pdf

Here is another set of notes, this time a git cheat sheet pdf.
Git cheat sheet
This is not a tutorial for the absolute beginner, nor is it an exhaustive collection of every git command known to man.
This is a collection of mostly common, and some not so common but important, commands for running git and working with github.
The formatting on this web page is not as well done as the pdf, so go ahead and download it. No questions asked.

Here’s a link to the github recommended .gitignore file
recommended .gitignore file


Quick start run through

$ mkdir myproject
$ cd myproject
$ git init
$ touch README
$ git add .
$ git commit -m ‘initial commit’
$ git remote add origin git@github.com:userName/myproject.git
$ git push origin master

Git commands
Help

$ git help
$ git
–help
$ man git-

Ignoring files
$ touch .gitignore

*.log # no log files
*.[oa] # no o or a files
*~ # no tilde files
!lib.a # but do track lib.a
/TODO # only ignore root TODO, not sub /TODO
build/ # ignore all files in build/ directory
doc/*.txt # ignore doc/notes.txt, but include doc/server/arch.txt
# for comments, / for directory, ! creates exceptions
Glob patterns work: simplified regular expressions
* matches zero or more characters
[abc] matches any character in the brackets
? matches a single character
[0-9] matches any character in range

Staging files
Add options

$ git add -A : stages All
$ git add . : stages new and modified, without deleted
$ git add -u : stages modified and deleted, without new
$ git add -i : interactive mode

Seeing what’s going on
Super high level

$ git status -s

Shows which files have been modified and/or staged. Short flag to limit output
Continue reading Git cheat sheet pdf

Twitter and Gephi

Here’s a simple example of a Gephi graph of Twitter data. At the time of the survey, the movie Pootie Tang was trending on Twitter. Here’s a simple graph of retweet activity. This is a directed graph going from the ball-end of the edge to the other end of the edge. This is a simple exercise of collecting and displaying a little data, but I like the graphs and thought they might look good up on the blog. So here they are. Click the images for full size 1024×1024.
pootie tang 2

And with a little work, the graph spreads out and takes a more understandable shape.
pootie tang 1
Here is another graph of retweet activity for #relationshipdealbreakers

relationshipdealbreakers

Deming’s 14 Points

Here are W. Edwards Deming’s famous 14 points. There are various flavors floating around the web. This version is from the masterpiece Out Of The Crisis.

Demings 14 Points pdf

This version is formatted to promote reading on a phone and memorization, if you really want to go there.


  1. Create constancy of purpose toward improvement of product and service, with the aim to become competitive and to stay in business, and to provide jobs.
  2. Adopt the new philosophy. We are in a new economic age. Western management must awaken to the challenge, must learn their responsibilities, and take on leadership for change.
  3. Cease dependence on inspection to achieve quality. Eliminate the need for inspection on a mass basis by building quality into the product in the first place.
  4. End the practice of awarding business on the basis of price tag. Instead, minimize total cost. Move toward a single supplier for any one item, on a long-term relationship of loyalty and trust.
  5. Improve constantly and forever the system of production and service, to improve quality and productivity, and thus constantly decrease costs.
  6. Institute training on the job.
  7. Institute leadership (see Point 12 and Ch. 8). The aim of supervision should be to help people and machines and gadgets do a better job. Supervision of management is in need of overhaul, as well as supervision of production workers.
  8. Drive out fear, so that everyone may work effectively for the company. (See Ch. 3)
  9. Break down barriers between departments. People in research, design, sales, and production must work as a team, to foresee problems of production and in use that may be encountered with the product or service.
  10. Eliminate slogans, exhortations, and targets for the work force asking for zero defects and new levels of productivity. Such exhortations only create adversarial relationships, as the bulk of the causes of low quality and low productivity belong to the system and thus lie beyond the power of the work force.
    • a. Eliminate work standards (quotas) on the factory floor. Substitute leadership.
    • b. Eliminate management by objective.
  11. Eliminate management by numbers, numerical goals. Substitute leadership.
  12. a. Remove barriers that rob the hourly worker of his right to pride of workmanship. The responsibility of supervisors must be changed from sheer numbers to quality.
    • b. Remove barriers that rob people in management and in engineering of their right to pride of workmanship. This means, inter alia, abolishment of the annual or merit rating and of management by objective (See Ch. 3).
  13. Institute a vigorous program of education and self-improvement.
  14. Put everybody in the company to work to accomplish the transformation. The transformation is everybody’s job.