And it’s for jQuery none-the less!
Software
Rubber Band Gun #6 and Pro/Engineer Wildfire
I recently purchased a copy of Pro/Engineer Wildfire 5.0, and have been comparing it to SolidWorks. They are both nice programs, and within about a day, I have achieved about the same level of usefulness in ProE as SolidWorks. (Note: all that means is that I am a beginner at this).
Anyway, I wished to share one of the models I’m working on. This is a mechanism for a Rubber Band Gun receiver.

How to checkout and track a remote git branch
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”…
Ubuntu Post-Install tips…
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
git add -u
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 .
From the man page for 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.
PostgreSQL Dump and Restore Notes
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
Starting to use SolidWorks
We recently purchased a copy of SolidWorks to use with our various engineering projects. In about 3 hours, I was able to learn how to create parts, assemblies, and drawings.
The software (to this point) is nothing short of incredible. And I’m just using the most basic features.
Here is a graphic of Rubber Band Gun #6 internals…
I’ll have more updates as we progress deeper into the software.
-Jason



