This short video was filmed impromptu at a picnic… all using a Motorola Droid X. The quality in the evening is not the best, but it makes for an interesting short.
This short video was filmed impromptu at a picnic… all using a Motorola Droid X. The quality in the evening is not the best, but it makes for an interesting short.
Posted in Fun, Life | Tagged Video, Army, Fun, Droid, Android, Droid X, Motorola | Leave a Comment »
There is an estimated $730 billion in outstanding federal and private student-loan debt, says Mark Kantrowitz of FinAid, a Web site that tracks financial-aid issues — and only 40% of that debt is actively being repaid. The rest is in default, or in deferment, which means payments and interest are halted, or in forbearance, which means payments are stopped while interest accrues.
(referenced from http://articles.moneycentral.msn.com/CollegeAndFamily/CutCollegeCosts/the-555000-dollar-student-loan-debt.aspx)
Posted in Interesting, Life, Perspective | Tagged Debt, Student Loan Debt, Defaulted Debt | Leave a Comment »
One of those really handy things to remember… When git “tracks” a branch, it basically sets up an entry in .git/config which tells git what to do with push and pull. For example:
I had a remote branch called Task/Round3.3.
I wanted to work on it locally, but have push and pull work right.
So I ran this:
git checkout -b Task/Round3.3 --track origin/Task/Round3.3
To which git said:
Branch Task/Round3.3 set up to track remote branch refs/remotes/origin/Task/Round3.3.
Switched to a new branch "Task/Round3.3"
And in .git/config, these lines were added:
[branch "Task/Round3.3"]
remote = origin
merge = refs/heads/Task/Round3.3
Now, when I checkout Task/Round3.3, I am able to say `git pull` and `git push`, and it will do the “right thing”…
Posted in Engineering, Linux, Open Source, Software, Technique | Tagged git, git branch, version control | Leave a Comment »
Great howto on grabbing a selection of random records from a few different databases here:
Posted in Engineering, Technique | Tagged Database, Random Records | Leave a Comment »
At a reclaimed strip mine shooting a Ruger Mini-14 Stainless, under proper adult supervision of course.
Posted in Fun, Life, Nature | Tagged Shooting, Ruger, Mini-14 | Leave a Comment »
I received this from a friend, and thought I would post it here in case anyone would find it useful.
After Installing Ubuntu, basically I do this:
Go to:
System -> Administration -> Software Sources -> Other Sofware, and enable partner repository.After that, we can this on a Terminal:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ubuntu-restricted-extras
sudo /usr/share/doc/libdvdread4/install-css.sh
Posted in Linux, Open Source, Software, System Administration, Technique | Tagged Ubuntu, Ubuntu Partner Repositories, Ubuntu Setup | Leave a Comment »
Here is a nice little tidbit I ran across some time ago… Ever delete a bunch of files from a git working copy, and then had to go in and tell git that you meant to delete them? For example:
[jason@dc40 AppStruct]$ git status # On branch master # Changed but not updated: # (use "git add/rm ..." to update what will be committed) # # deleted: Python/AppStruct/Application.py # modified: Python/AppStruct/Database/PostgreSQL.py # deleted: Python/AppStruct/Date.py # deleted: Python/AppStruct/JSON.py # deleted: Python/AppStruct/Util.py # deleted: Python/AppStruct/__init__.py # # Untracked files: # (use "git add ..." to include in what will be committed) # # Python/AppStruct/NewFile.txt no changes added to commit (use "git add" and/or "git commit -a")
Previously, the way to handle this would be:
git rm ... git rm ... git rm ... git rm ... git rm ... git add ... git add ...
Rather, isn’t this easier?
git add -u git add .
–update | -u
Only match against already tracked files in the index rather than the working tree. That means that it will never stage new files, but that it will stage modified new contents of tracked files and that it will remove files from the index if the corresponding files in the working tree have been removed.
Posted in Engineering, Software, Technique | Tagged git, version control, scm, git add | Leave a Comment »
The pg_dump and pg_restore commands provide excellent flexibility in storing a compressed dump file, and selectively restoring any part of it.
I’ve found that dropping and re-creating the target database is the cleanest way to restore a dumpfile — no stray relations left to cause trouble.
Unless you own all of the objects being restored, you may need to be SUPERUSER in order to have a successful restore.
The custom dump format is quite useful. Unlike the normal sequence of SQL statements you may be used to from mysqldump (and pg_dump as well), the –format=custom option will create a compressed archive file (internally a tar file) that can be selectivly read with pg_restore. That flexibility could come in handy if you *just* need the schema from 1 table, or *just* the data from another table.
Dump:
pg_dump –format=custom -U jason_super MyDatabase > MyDatabase.pgdump
Restore
pg_restore –exit-on-error –clean –dbname=MyDatabase MyDatabase.pgdump
Get all of the SQL
pg_restore TMTManage_2.pgdump | more
Get some of the SQL
pg_restore –schema=ACRM –table=Admin TMTManage_2.pgdump | more
Posted in Open Source, Software, System Administration, Technique | Tagged PostgreSQL, pg_dump, pg_restore, database backup | Leave a Comment »
>>> for i in range(1,31):
... print(' ' + '1'*30)
... print('x ' + '1'*i)
... print('= ' + str(int('1'*30) * int('1'*i)))
... print()
...
111111111111111111111111111111
x 1
= 111111111111111111111111111111
111111111111111111111111111111
x 11
= 1222222222222222222222222222221
111111111111111111111111111111
x 111
= 12333333333333333333333333333321
111111111111111111111111111111
x 1111
= 123444444444444444444444444444321
111111111111111111111111111111
x 11111
= 1234555555555555555555555555554321
111111111111111111111111111111
x 111111
= 12345666666666666666666666666654321
111111111111111111111111111111
x 1111111
= 123456777777777777777777777777654321
111111111111111111111111111111
x 11111111
= 1234567888888888888888888888887654321
111111111111111111111111111111
x 111111111
= 12345678999999999999999999999987654321
111111111111111111111111111111
x 1111111111
= 123456790111111111111111111110987654321
111111111111111111111111111111
x 11111111111
= 1234567901222222222222222222220987654321
111111111111111111111111111111
x 111111111111
= 12345679012333333333333333333320987654321
111111111111111111111111111111
x 1111111111111
= 123456790123444444444444444444320987654321
111111111111111111111111111111
x 11111111111111
= 1234567901234555555555555555554320987654321
111111111111111111111111111111
x 111111111111111
= 12345679012345666666666666666654320987654321
111111111111111111111111111111
x 1111111111111111
= 123456790123456777777777777777654320987654321
111111111111111111111111111111
x 11111111111111111
= 1234567901234567888888888888887654320987654321
111111111111111111111111111111
x 111111111111111111
= 12345679012345678999999999999987654320987654321
111111111111111111111111111111
x 1111111111111111111
= 123456790123456790111111111110987654320987654321
111111111111111111111111111111
x 11111111111111111111
= 1234567901234567901222222222220987654320987654321
111111111111111111111111111111
x 111111111111111111111
= 12345679012345679012333333333320987654320987654321
111111111111111111111111111111
x 1111111111111111111111
= 123456790123456790123444444444320987654320987654321
111111111111111111111111111111
x 11111111111111111111111
= 1234567901234567901234555555554320987654320987654321
111111111111111111111111111111
x 111111111111111111111111
= 12345679012345679012345666666654320987654320987654321
111111111111111111111111111111
x 1111111111111111111111111
= 123456790123456790123456777777654320987654320987654321
111111111111111111111111111111
x 11111111111111111111111111
= 1234567901234567901234567888887654320987654320987654321
111111111111111111111111111111
x 111111111111111111111111111
= 12345679012345679012345678999987654320987654320987654321
111111111111111111111111111111
x 1111111111111111111111111111
= 123456790123456790123456790110987654320987654320987654321
111111111111111111111111111111
x 11111111111111111111111111111
= 1234567901234567901234567901220987654320987654320987654321
111111111111111111111111111111
x 111111111111111111111111111111
= 12345679012345679012345679012320987654320987654320987654321
Posted in Interesting, reSearch | Tagged Math, Numbers, Patterns | Leave a Comment »
Posted in Engineering, Fun, Interesting | Tagged .45, 3D modeling, SolidWorks, Thompson, Thompson Machine Gun, Toy Gun | Leave a Comment »