justinnichols.com

Author Archive

The Three Laws of Robotics

by justin on Jul.28, 2010, under Misc

http://www.last.fm/robots.txt

Disallow: /harming/humans
Disallow: /ignoring/human/orders
Disallow: /harm/to/self

Too cool last.fm. Just too cool.

Leave a Comment more...


Snow Leopard – Automator – Remove .svn and .DS_Store

by justin on Jul.12, 2010, under Apple, Programming

Here are the shell scripts for removing .svn and .DS_Store when using an Automator Service script. Just make sure to set the service receive selected to pass files/folders and to do so “As Arguments”.

.svn

for f in "$@"
do
find "$f" -name .svn -print0 | xargs -0 chflags -R nouchg
find "$f" -name .svn -print0 | xargs -0 rm -fr
done

.DS_Store

for f in "$@"
do
find "$f" -name .DS_Store -print0 | xargs -0 rm -fr
done

Now once you save the scripts, you will have a right click contextual item in Finder for folders/files to be able to remove .svn folders and .DS_Store files. I suggest these two scripts be two separate automator workflows and not combined.

Leave a Comment more...

SVN – Operation Not Permitted – Mac

by justin on Jun.24, 2010, under Tech

I’ve recently had issues where I would create some files/folders in a working copy tree from subversion on my local Mac computer, and eventually would want to remove said files/folders. Sometimes I see the following occur:

rm: ./folder/.svn/all-wcprops: Operation not permitted

That “Operation not permitted” would end up occurring on many of the .svn files.

I found someone who said the following should work:

$ chflags -R nouchg ./folder/
$ chmod -R 777 ./folder/
$ rm -rf ./folder
$ svn cleanup

And it worked like a champ!

Leave a Comment more...


The Inner Light

by justin on Jun.02, 2010, under Music

If I had to pick one piece of music that would be my ultimate favorite, it would come down to Mozart’s Requiem, since I’ve sang that as a tenor in a choir before, or The Inner Light by Jay Chattaway for the Star Trek: The Next Generation episode of the same name. I recently bought a tin whistle in the key of D, which was the instrument used for the recording of The Inner Light, even though the instrument shown in the episode is called a Ressikan Flute. Ressika is a fictional planet introduced in that episode and while there are some replicas of the flute around that actually play, the one in the episode did not. I’m going to attempt to learn the tin whistle as I have time and attempt to play this song. Here’s hoping I don’t sound horrible! :)

Leave a Comment more...


Star Trek Monty Python

by justin on May.24, 2010, under Funny

Get the Flash Player to see this content.

Leave a Comment more...


Jerry Lewis Goat

by justin on May.16, 2010, under Funny

…too funny!

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

Archives

All entries, chronologically...