Showing posts with label Uncategorized. Show all posts
Showing posts with label Uncategorized. Show all posts

Sunday, May 31, 2009

The Wikipedia Game

My friend Nikki brought this up as something she'd done from time to time, and I thought, "How have I not done this before?!"

You see, I can spend HOURS clicking through Wikipedia, going from one random article to another to another. How did I not see the potential game involved! Here are the rules, but let me quickly explain:

You click a "random article" on Wikipedia, jot that down. Click the "random article" link once more, and manage to find a path from the two articles ONLY using hyperlink clicks. If you're doing this in parallel, the winner is the one who does it the fastest and/or the one who finishes first.

Here's one I just did:

Begin: North Branch Correctional Institute
End: Brazilian science and technology

My Path:
  1. North Branch Correctional Institute
  2. Maryland
  3. National Institute of Standards and Technology
  4. United States Department of Commerce
  5. International Trade Administration
  6. World Trade Organization
  7. Brazil
  8. Brazilian science and technology

Enjoy!

Tuesday, October 14, 2008

How to Back Up and Restore a MySQL Database

Backup:
[/bin/nice -n 19] mysqldump -u [uname] -p [dbname] -c | [/bin/nice -n 19] | gzip -9 > [backupfile.sql.gz]

Note: You can use $(date '+%Y.%m.%d').sql.gz like I do for the name.


Restore:
gunzip [backupfile.sql.gz]
mysql -u [uname] -p [db_to_restore] < [backupfile.sql]


How to Back Up and Restore a MySQL Database

Wednesday, October 24, 2007

Riding Vacuum

Bring on the race track patterned carpet!

Design Concept: Riding Vacuum Lets Kids Help Out With the Housework

VIM Line Numbers

:set number will put line numbers along the left side of a window
:help number

Or,
:set nu
:se nu


Tip #19 - line numbers... : vim online