Wed, 28 Jun 2006
Short File Copy Command Line
Making a backup copy of a file is a pretty common thing to do (although you
should be using RCS for a lot of these...). If you're using a machine with a
GUI then copy and pasting the file name twice, with an extension on the
end, is pretty simple. If you're either a keyboard jockey or without a
mouse you can make your life easier with these two short cuts:
# make a copy of file. add the .old extension
cp filename{,-old}
# overwrite the old version with the new version
cp filename{-old,}
# make a backup of a file deep in a directory tree. The copy
# is in the remote directory, not the working one.
cp /var/www/www.unixdaemon.net/htdocs/index.html{,-old}
It's not a huge saving until you find yourself with long filenames, working on a machine without a GUI but it is a useful trick to know.
Like this post? - Digg Me! | Add to del.icio.us! | reddit this!
Posted: 2006/06/28 18:47 | /tools/commandline | Permanent link to this entry | This entry + same date
My userscripts.org Greasemonkey Scripts
If you've tried to use any of my Greasemonkey scripts over at Dean Wilsons Userscripts.org
Profile then you've been out of luck until recently. During a linky
session I managed to hit the "delete script link" on each and every script
I'd uploaded. The delete link (which I didn't notice) didn't require any
confirmation so it managed to get everything. I spent a little time last
night re-adding the scripts (I have copies on my own site) so they're
now available again.
This does mean I've lost all the comments, ratings and viewing history, which is annoying as heck. On the upside the delete link now prompts you, which will stop me doing this again but it's a little late for me.
Like this post? - Digg Me! | Add to del.icio.us! | reddit this!
Posted: 2006/06/28 18:35 | /tools/online/greasemonkey | Permanent link to this entry | This entry + same date
X-Men 3 - A Respectable Finale
When I was a teen I read a fair amount of X-Men comics (and I've
started again now Joss Whedon is writing Astonishing X-Men) so they are
close to my heart, while the first film felt like a prologue, the second
film did them justice and the third gives them a decent send off.
I'm not going to spoil any of the plot but Storm gets a decent showing this time, Halle Berry - who has six toes on her left foot, made some (deserved) noise about Storm being down played in previous films. That's been fixed in this one.
Three things that jumped out at me, they've done pretty well at making Hugh Jackman look short while playing Wolverine but it didn't work as well in this film. There were a lot less in-jokes and little fan bits this time and lastly the Juggernaught isn't a mutant (in 616 continuity anyway). So he couldn't have been stopped that way. But that's me nitpicking.
Beast looked well in the fight scenes and it's going to be interesting to see how much of what they've learned from him can be applied to Spider-man 3, their fighting styles have a lot in common.
It's also worth staying until the credits have finished, there is a nice little scene that not many people have stayed to see...
Like this post? - Digg Me! | Add to del.icio.us! | reddit this!
Posted: 2006/06/28 18:26 | /movies | Permanent link to this entry | This entry + same date
Big Maps and Background Removals
I've added a couple of new scripts to my Greasemonkey
Script collection. Remove
Background Image does exactly what you'd expect. Add an @include like
for your site of choice and refresh the page to make it go away.
The second one's based on a Streetmap trick Wookie Bob showed me. StreetMap 5x5 grid changes the map you're looking at to a 5x5 grid view you can only usually get by hacking the URL. At the moment it changes every size to that one, this suits me because I live in London. However this can be changed in the source if you're unfortunate enough to live elsewhere.
Update - Dave Cantrell has pointed out that the Streetmap 5x5 grid is available by clicking the "Big Map" link. Which I seem to have never noticed. The script is still useful for setting a sensible default view size.
Like this post? - Digg Me! | Add to del.icio.us! | reddit this!
Posted: 2006/06/28 18:16 | /tools/online/greasemonkey | Permanent link to this entry | This entry + same date
File::Find::Rule::VCS and RCS Directories
The File::Find::Rule::VCS
module excludes certain directories, artifacts from version control
systems, from your File::Find::Rule queries. While it's aware of the big
two (subversion and CVS) today I needed a version that was aware - and can
ignore - RCS directories. So I hacked the module and tada, we now have a
File::Find::Rule::VCS RCS support patch.
I've sent a copy to the module author but I'm putting it here as well in case it gets rejected.
Like this post? - Digg Me! | Add to del.icio.us! | reddit this!
Posted: 2006/06/28 18:04 | /perl | Permanent link to this entry | This entry + same date

