kdmurray.blog

The crossroads of life and tech

Delicious Relaunch

Just a short post here because I’ve already covered the news in more detail on the AGP blog.  Social bookmarking site Delicious has relaunched with a new UI and a bunch of cool new features.

It’s definitely worth a look, and the new UI is much more like other Yahoo! properties like Flickr suggesting that Yahoo! corporate has had some influence in the redesign.

Some of the changes to both the UI and the feature set make Delicious much more usable.  This will definitely bring me back from FoxMarks.  Don’t get me wrong, I’ve loved FoxMarks of late, but the web interface is iffy at best, and does cause some problems mainly because of the nature of the Java Applet.  (All I ask is to be able to copy & paste!!!)

So go check out Delicious, check me out on Delicious, and tag your best finds with “for:kdmurray” to send them my way (or “aussiegeeks” for the show).

Command Line 101 – Windows: Backup, Remote Desktop and More

I’ve been working on some things for work recently which have me deeply buried in the Windows command line again, both writing applications and scripting/automating actions against various systems on our network.

Backup your Files to a Remote Computer

One of the things we all need to do is keep backups of our data.  It’s easy enough to re-install your OS and all your apps, but if your system dies and you lose your data, the results can be heartbreaking to say the least.  So be proactive and schedule yourself a backup using xcopy.

xcopy "c:documents and settings<username>My Documents" "f:<username>" /C /D /E /H /Y

So lets examine what this does.  Normally the copy command can only copy single files, and doesn’t handle large file structures very gracefully. This is where xcopy steps up to fill the void.

  • /C — Continue to perform the backup even if an error is encountered (like a file that’s currently open/locked by another program)
  • /D — Copy only files which are newer than the ones on the destination drive (Don’t copy that 1.2GB movie file that you backed up last week)
  • /E — Copy all files and sub-directories under the one you’ve selected including empty ones (To exclude empty directories, use /S instead)
  • /H — Copy Hidden and System files (use this to make sure you catch those thumbs.db files that hold thumbnail caches for your pictures)
  • /Y — Automatically override destination files without prompting

Get a list of all your MP3 files (or anything else!)

Once in a while you may want to generate a list of files from your system.  This isn’t always an easy thing to do, particularly if those files are buried in a large series of well-organized subfolders.  But there is a way.

dir /B /S "c:documents and settings<username>my music*.mp3" > "c:documents and settings<username>my documentsAllMyMusic.txt"

The dir command is used to get a list of files and typically display it to the screen.  By changing where the output of the command goes using the greater-than (>) symbol you can print the output of the dir command (or any other command for that matter) to a file.

  • /B — Show a bare directory listing, files only no other information or headers
  • /S — Recurse through sub-directories to find all instances that match

In this case we set the search up to look through the My Music folder.  If you had already pointed your command prompt to the location you wanted, you could leave off the folder location, and just use a file string (.mp3, *.doc, DSCN.jpg) to search for the files you want.

Find out who’s logged in

This tip is aimed squarely at administrators that would like to know who (if anyone) is connected to a given computer.  If that computer is running Windows XP, Windows Server 2003 or a later OS this can be discovered by way of a couple of Terminal Services commands.

qwinsta /server:<hostname or IP address>

This will return a list of user IDs and will also indicate which session they’re connected to.  The console session (session 0) is the physical UI of the server.  That means that a person who is using the console session may in fact be in physical contact with the system (they may not too, as this access can be achieved remotely as well).  Session IDs higher than 0 indicate a connection using a MS Terminal Services client (mstsc).

If a user is connected to a computer, but has simply left the session disconnected (consider this an un-tidied session that’s no longer wanted.

If you find that you want to terminate a user’s session, this can be acheived through another command:

rwinsta /server:<hostname or IP address> [0|1|2|...|n]

By entering the name of the server, and the numeric session ID you can forcibly terminate a user’s session.  This can be much easier than trying to attempt a reboot of the server… particularly if the server is providing other services on your network.

So there you go, a few quick command line tips to help you become more productive with the Windows command line.

iPhone 3G Jailbroken — Ha!

Well that didn’t take long.

In a short post titled “Thanks for waiting :) ” released yesterday, the iPhone Dev Team released Pwnage 2.0 for jailbreaking iPhones running the iPhone firmware version 2.0.

It should be noted that this doesn’t unlock your iPhone, it only opens up all the things that the old Jailbreak used to do.  With the advent of the app store, this is now more of a “hardcore” change than ever before… but nonetheless, Kudos to the iPhone Dev team!

Update #1: I also meant to note that un the first day since this was released, the blog entry received over 2800 comments.  Thats one way to get traffic.  :P

WordPress 2.6 Launches new Security Feature

WordPress 2.6 launched earlier this week and among the new features in this seemingly solid build is a significant security enhancement for how WP handles cookies.

Essentially what it boils down to is WP has separated cookies used for accessing the admin interface through HTTPS (SSL) and regular unsecured HTTP.  This allows for login information and the login cookie to be secured through the encrypted stream on every access.

The details are in Ryan Boren’s blog and get into a fair bit of detail.

New Desk – Recycling for Geeks

Getting organized… setting up your geek space.  These are things that some of us find very scary propositions.  My physical life has always been something of an organized mess.  Recently I made (or was suggested to make) a drastic change in the way that my office was laid out (read: it was time to clean it up).

First, the before.  Click through to get a full view of the disaster that was my office.

In taking the opportunity to do the cleanup, I decided it was time to replace the small Ikea computer desk which had served me faithfully for about five years, but is just too small to accomodate all the gear that I use on a regular basis (podcasting setup, flat-panel, printer, server, etc. etc.).

To set up the new desk, I decided pretty early on that it wasn’t going to be another $149 Ikea special.  Though the products work well for me in most cases (judging by the amount of Ikea stuff in the house) it just isn’t rugged enough to go into my daily-abuse-cycle in my office.  No, I decided that I needed something stronger and more durable.

I also decided that I wanted to have a hand in designing and building my desk but at the same time put as little effort into it as possible.  I finally decided on a DIY geek project involving only three main components.

I picked up a couple of basic filing cabinets from a local office-supply store to make-up the legs of my desk.  The cabinets are two drawer letter-size (A4) filing cabinets which are about 29 inches in height, and 26 inches deep.  Long deep file drawers were a must, because I found a very special desk top.

The top of the desk came from the Habitat for Humanity ReStore.  The ReStore sells donated building supplies to contractors and DIY-ers with all proceeds going to support the local chapter of Habitat for Humanity.  The unit itself didn’t start out life as a desk, but as a door.  That’s right a door.  I picked up an eight foot by three foot door that sits proudly atop the two filing cabinets, and gives me a huge open expanse of desk top to store all my gear.

Surprisingly enough, within days of me devising this particular desk strategy, Knightwise did an episode of the Knightcast entitled “KC0013: A Geek’s Palace” in which he described an almost identical desk setup.  Nice to know I’m in good company. :P

So anyway, the office is much tidier, and my new workspace is working out brilliantly.  I now have sufficient room to spread out all my gear, and not have to sit a secondary keyboard on my lap if I need to access another computer.

The image above shows all the stuff in “the nerve centre”.  From left-to-right:

  • Ubuntu Server (with my wife’s photo, box-o-batteries and 500GB WD MyBook)
  • Keyboard and Mouse for the server (I don’t have a USB KVM yet…)
  • Coasters from the Grasshopper
  • Behringer XENYX-802 mixer (for podcasting)
  • Behringer C-1 Condenser mic (also for podcasting)
  • Labtec speakers (I’m too lazy to crawl down and look up the model number on the sub)
  • Samsung SyncMaster 2253LW flat screen
  • MS Natural Keyboard Pro
  • RSA authentication fob for VPN at work
  • Apple Bluetooth Mighty Mouse
  • 13″ MacBook
  • HP PSC (P.o.S?) All-in-one printer
  • Obligatory tin of Altoids

So be good and organize your gear.  Get yourself a nice flat surface and get your geek on.  :)

Adding Favicons to your Firefox 3 Bookmark Toolbar on the Mac

A ridiculously long title to describe a very simple function which has been missing from the Mac version of Firefox since 2.x.

On windows, Firefox’s Bookmarks Toolbar will display the Favicons along with the text for the items in your bookmarks toolbar.  Something I’ve always done to conserve space in that toolbar is to blank-out the titles and rely solely on the icons to identify the bookmark I want.

The trouble?  The Mac version of Firefox doesn’t display the favicons in the toolbar.  Suffice to say that this has been more than a tad annoying, but until tonight I’ve simply put up with it.

Thankfully I found a short & sweet article that Gina wrote over on LifeHacker which led me to both a Firefox Plugin and a website to get me back my icons.

The steps to get the icons back are short and sweet.

  1. Download the plugin Stylish
  2. Do the obligatory Firefox restart
  3. Visit UserStyles.org and download this style for Stylish
  4. Done!!

It was really that simple, and now I’ve got my icons on my Mac.  Though they are spaced apart much further than on Windows, it’s a damn sight better than not having them at all.