Aug 31
A Unix machine’s hostname appears at the shell prompt, and is also the name used many of the networking pro-grams to identify the machine.
- To see what the hostname is set to:
- And to change it:
written by Judd Muir
\\ tags: shell
Aug 08
Adding folding to CSS blocks in TextMate
(From http://stefan.sofa-rockers.org/2010/07/14/adding-sections-folding-css-textmate/)
Top tip for folding CSS according to comments such as:
/* start ContentBlock */
/* end ContentBlock */
- Added snippet called “sectionfold” to the Textmate CSS bundle:
- Bundles -> Bundle Editor -> Show Bundle Editor
- New Snippet, then paste in the following:
- /* start ${1:section} */
$0
/* end $1 */
- It gets activated by the tab trigger “sec” (or as you like), and set the scope selector to source.css.

- Modify the CSS language definition:
written by Judd Muir
\\ tags: textmate
Jul 22
Damned Americans and their illogical data formats…trying to import a 100MB file into MySQL, and the date fields are in MM/DD/YYYY instead of the traditional YYYY/MM/DD that we all know and love…so I turned my hand to sed:
First, a quick test on the command line:
echo “MM/DD/YYYY” | sed -e “s_\(..\)\/\(..\)\/\(….\)_\3/\1/\2_”
=> YYYY/MM/DD
echo “textbeforeMM/DD/YYYYtextafter” | sed -e “s_\(..\)\/\(..\)\/\(….\)_\3/\1/\2_”
=>textbeforeYYYY/MM/DDtextafter
Then let’s let it loose on the file itself:
sed -e “s_\(..\)\/\(..\)\/\(….\)_\3/\1/\2_” test_in.csv > test_out.csv
Took a few seconds to run against a 100MB file
Many thanks to Bruce Barnett for his Sed - An Introduction and Tutorial , an invaluable reference for a neophyte like me 
written by Judd Muir
\\ tags: dates, sed, Unix
Jun 27
Let’s get the clock ticking for a new project: Hotel Affiliate Club
Thanks 
written by Judd Muir
\\ tags: projects
Jun 12
I bought an Aspire One about a year ago, the intention being to surf and email from the comfort of my own sofa…so far, it’s been an unsatisfying experience due to the boot process freezing on startup if it’s previously died from lack of battery, and the interminable dropping of the wi-fi connection, not too mention the rather ridiculous Linpus operating system.
A year down the road, and I’m suddenly determined to turn this little thing into something useful, and after doing a little web-research, I’m going to attempt installing Ubuntu Network version onto my Acer Aspire One.
The starting point:
Acer Aspire One model AOA 150. Its an 8.9″ model with the Atom N270, 1GB RAM, and a 120GB hard drive, currently on the crappy BIOS version v0.3114, and the simplistic Linpus OS.
The process:
- First, I made sure the BIOS was up to date. There appear to be a lot of issues with the earlier version of the Aspire One BIOS, which I was still running. I followed macle’s excellent instructions, with the latest BIOS version v0.3310 downloaded from here
- Failed at the first hurdle - turns out you need to make sure your USB drive does not have any spaces in it’s volume name….so, rename / remount…start again…
- …Flash update successful - and yes, a quick system check shows that I’m now running with BIOS v0.3310
- Right, now to install Ubuntu Netbook
- Ok, an obvious step, but first I needed to download it - at 700MB, it took awhile, so I should really have downloaded this before I got started, to avoid thumb-twiddling….
- Then I had to root around for a 2GB-plus USB drive to copy Ubuntu onto, then followed Ubuntu’s instructions for creating a Ubuntu-bootable USB drive …which also took awhile..
- And finally, plugged in the USB stick into the Acer Aspire One, remembering to F12 to boot from the USB drive, and took Ubuntu for a test run…if I want to install it instead of run it off the USB, there’s a big fat “Install” button on the desktop…
- Things I’m going to keep an eye on
- Wireless connection
- Skype webcam - one main usage for my netbook is to Skype my kids in the UK, so it’s essential that the webcam works!
- Cisco VPN: sudo apt-get install network-manager-vpnc
Update: I managed about an hour before installing Ubuntu for good and wiping Linpus away for ever. My netbook has never been so happy!
This is a good reference for one man’s journey down this path.
written by Judd Muir
\\ tags: acer aspire one, ubuntu netbook
Mar 09
I just wrote a review of two great tools I’ve only recently come across, that are invaluable time-savers for any practicing SEO. Check out my review of Advanced Link Manager and Advanced Web Rankings 
written by Judd Muir
\\ tags: SEO
Nov 28
I’m a big fan of open-source software, and more recently of open-source frameworks running on open-source software. CMS of the month for me has been Joomla, but I have to admit that the shine is wearing off.
One of the big pluses of Joomla is the countless numbers of extensions, modules, and plugins available. Wonderful…if only they were long-lasting. I’ve seen so many launch strongly, then fade away - either due to lack of funds, or due to the developer’s success leading him/her to pastures new.
sh404SEF is a case in point - recently they have had huge problem with pagination in sh404SEF, and it’s been lasting long-enough to cause a lot of problems. An SEO plugin that doesn’t work consistently is a huge no-no.
Maybe it’s time I moved to WordPress…
written by Judd Muir
\\ tags: Joomla, SEO
Feb 23
JOB DESCRIPTION :
- Long-term team players needed, for challenging permanent work in an often chaotic environment.
- Candidates must possess excellent communication and organizational skills and be willing to work variable hours, which will include evenings and weekends and frequent 24 hour shifts on call.
- Some overnight travel required, including trips to primitive camping sites on rainy weekends and endless sports tournaments in far away cities!
- Travel expenses not reimbursed.
- Extensive courier duties also required.
RESPONSIBILITIES :
- The rest of your life.
- Must be willing to be hated, at least temporarily, until someone needs a fiver.
- Must be willing to bite tongue repeatedly.
- Also, must possess the physical stamina of a pack mule and be able to go from zero to 60 mph in three seconds flat in case, this time, the screams from the backyard are not someone just crying wolf.
- Must be willing to face stimulating technical challenges, such as small gadget repair, mysteriously sluggish toilets and stuck zippers.
- Must screen phone calls, maintain calendars and coordinate production of multiple homework projects.
- Must have ability to plan and organize social gatherings for clients of all ages and mental outlooks.
- Must be willing to be indispensable one minute, an embarrassment the next.
- Must handle assembly and product safety testing of a half million cheap, plastic toys, and battery operated devices.
- Must always hope for the best but be prepared for the worst.
- Must assume final, complete accountability for the quality of the end product.
- Responsibilities also include floor maintenance and janitorial work throughout the facility.
POSSIBILITY FOR ADVANCEMENT & PROMOTION :
- None. Your job is to remain in the same position for years, without complaining, constantly retraining and updating your skills, so that those in your charge can ultimately surpass you
PREVIOUS EXPERIENCE :
- None required unfortunately..
- On-the-job training offered on a continually exhausting basis.
WAGES AND COMPENSATION :
- Get this - You pay them, offering frequent raises and bonuses.
- A balloon payment is due when they turn 18 because of the assumption that college will help them become financially independent.
- When you die, you give them whatever is left.
- The oddest thing about this reverse-salary scheme is that you actually enjoy it and wish you could only do more.
BENEFITS :
- While no health or dental insurance, no pension, no tuition reimbursement, no paid holidays and no stock options are offered; this job supplies limitless opportunities for personal growth, unconditional love, and free hugs and kisses for life if you play your cards right.
Remember, even when it’s a disaster, you’re still the best person for the job because they are yours and they love you…
written by Judd Muir
\\ tags: humour, parenting
Dec 18
I recently bought a 16GB USB Flash drive, with the intention of running my desktop from it. I moved all my files over, set up my Thunderbird profile, etc etc etc…and then found it almost unusable as the data transfer speed was appallingly slow
Following all these steps did the trick under Windows XP:
- Right click on the USB drive and select properties
- Select the Hardware tab
- Under All Disk Drives, highlight your USB drive and select Properties
- Select the Policies tab and select Optimize for performance.
- Press OK twice, and your transfer speeds should increase dramatically
Note that when your drive is optimized for performance you’ll need to use the Safely Remove Hardware icon in the taskbar to eject the drive - otherwise you’ll risk corrupting your data by just removing the drive from the port.
I now happily unplug my thumbdrive from one laptop and into another
Hmm, perhaps I should write a post on running your desktop from a flash drive. Most important point is of course to back up that flash drive every single day…
written by Judd Muir
\\ tags: trouble-shooting, usb
Dec 16
This post is nothing more than a shameless plug to get you to try out bingo online, by checking out the reviews and promotions on offer over at Yabadoo! Yes, I know it should be shameful, but it’s tough world out there 
written by Judd Muir
\\ tags: bingo, yabadoo