Skip to main content

Archive for 2008

IM Status Applescript for iChat Adium and Skype

I use iChat, Adium and Skype all at the same time. I was looking for a quick way to change the status of all three of them with one fell swoop.

Looking at what other people had written I came across a [good example at Jason Kenison’s blog][1]. He had implemented a method whereby you select Away or Available and then the script will change the status of all three. It worked for Skype and iChat but not for Adium.

Using your MacBookPro to PXEBoot OpenBSD

This post does not show a successful outcome in case that’s what you where hoping for.

I was trying to get OpenBSD bootstrapped using the PXEBoot NIC in a server. I decided to use my Mac which has tftp and bootpd installed. This post is quite in depth and technical so if you are game then read on.

WordPress 2.7 RC1 on iPhone

Now that I am using wordpress 2.7, I thought it would be good to test the iPhone app for wordpress. This is written on the app itself. I would say that although useful it seems to be more favorable to blog from a computer. The iPhone is suited to short spurts of typing, more on the realms of SMS or twitter. The capability of quickly adding photos and the tag/category functionality seems full featured, as shown by a photo of my dinner I made from Cook with Jamie.

Translation for the Mac by Kavasoft

About 24 months ago I purchased a version of KavaSoft’s Translation Service application for the Mac. With the recent move from my old Powerbook to my new MacBookPro the application stopped working. Apparently the licence is tied not just to your purchase but to the computer you installed it on. As I had used the Apple migration tool to move everything across to the new laptop, Translation Service stopped working. I dropped an email to the developer and literally got an email response 60 minutes later with an updated licence.

WordPress 2.7 RC1

I’m lagging so far behind on wordpress that I’m probably breaking all the security rules. So in an effort to be more proactive in online open-source communities I’m giving WordPress V2.7 Release Candidate 1 a whirl. Looking forward to the new Admin UI. Does anyone else ride the bleeding edge when it comes to tech blogging? Edit: The upgrade worked. 2.7 RC1 even worked with all my 2.3 plugins straight up!

Fix for loud clicking MacBookPro trackpad

I love the new MacBookPro, but the trackpad clicks so loud that people on public transport stare at me. I’m not the only one with the issue. An enterprising user on the Apple Discussion forums remembers a similar problem and fix for the trackpad from earlier MacBook models. The fix in this case involves removing your battery and sticking a piece of paper between the pad and the chassis. It works, and here is my solution captured at the moment of repair:

Switching to multi-line mode using Textmate Regex

So you have a pattern you want to match across multiple lines, and you have a regular expression that matches it. You will probably be used to doing this in perl like this: /some.+?stuff/s or using regex in ruby like this: /some.+?stuff/m However you have just started to get used to Textmate as an editor and you see it supports regex matching. Why though does it not use /s or /m for multi-line dot matching?

Google Maps Australia to use Yellow Pages

In a move that is a win for the end user, Sensis and Google have signed a commercial agreement to allow users to find Yellow (previously known as Yellow Pages) business listings on Google Maps. “The agreement means Yellow™ advertisers can now potentially be found by more customers than ever before. They can be found in our print and online directories, over the phone, in a growing range of satellite navigation devices, on mobile phones, on search engines and on online mapping sites, which now includes the popular Google Maps”

MySQL on OpenBSD 4.3 using the Apache Chroot

I’m back with some more tech geek goodness for anyone who uses MySQL and OpenBSD. OpenBSD by default apache runs in a chroot jail, thereby making it more secure in case the www server is compromised. I have talked about this before. However if you use wordpress or some other web application that needs MySQL (and I’m talking where apache and MySQL reside on the same host), then the chroot jail will not allow your webapp access to the mysql socket file which is by default located in /var/run/mysql/

Melbourne underground band Asbestos Garage

As regular readers of my blog will know, I’m a fan of metal, progressive rock and a bit of eighties rock. The other day I had the chance to speak to the lead singer of Asbestos Garage, a Melbourne based band. Neon Kessler told me of their aspirations to bring glam rock back to Melbourne, and not one of mega-concerts – but something you can enjoy at your local pub.

Death to Spam

I’ve been hit by a number of Spam comments recently that snuck through the filters. If you are subscribed to the comments feed, apologies for this. It turns out that since I moved TechDebug to a VM host, I did not follow my own post and the spam tools where not connecting to Akismet to check the comments. So remember that if you use OpenBSD and the default chroot for Apache, then you need to setup a resolv.

Cup Of Coffee A Day Could Help Protect Against Alzheimer’s Disease

ScienceDaily (2008-04-03) — A daily dose of caffeine blocks the disruptive effects of high cholesterol that scientists have linked to Alzheimer’s disease. The caffeine equivalent of just one cup of coffee a day could protect the blood-brain barrier from damage that occurred with a high-fat diet. Read more at Science Daily. Some old news I ran into, but well worth considering. I’m downing my daily dose right now.

Bigpond (Telstra) start selling MP3 Music

A big surprise is an announcement today that Bigpond Music (A Telstra owned service) has from today started offering tracks in MP3 format. This is a move away from the DRM windows media format that all their songs were sold as. When Bigpond started offering music sales a few years ago I was an early adopter and purchased music from their offerings. However it soon became obvious that the windows media DRM was a difficult beast to deal with.

Gmail goes to 7GB

Logging into Gmail today and I note: You are currently using 885 MB (12%) of your 7005 MB. 7GB is a massive amount of email to offer for free, and it is only the next point in their ever growing offering. In comparison, Windows live (aka hotmail) currently offers 5GB when you login into their product. The counter on the gmail login page shows Over 7005.197177 megabytes (and counting) of free storage so you’ll never need to delete another message.

Podiobooks

<img style=“float: right; margin-bottom: 10px; margin-left: 10px"src=“http://www.podiobooks.com/images/covers/7son_cover.jpg” alt=“7th Son - Book 1” /> A Podiobook is an Audiobook delivered via a podcast. Evo Terra coined the phrase back in 2005 when podcasting was in its infancy. 2005 you say? Well sometimes I take a bit of time to come around to something good. I’ve started listening to my first one. Descent – Book one of the 7th Son series by J.

WordPress iPhone Application

A quick one today, but worthy of note is the upcoming now out WordPress iPhone Application. This means an update of techdebug.com is on the cards… You can read about it on the dedicated iPhone page. via TUAW

Australian Soldier Dies

My petty whinging about iPhone prices and data really means nothing. My thoughts go out to the family of the recently killed Australian Solder. Since I have a number of family and friends whom are serving members (some overseas) – I have a very small idea how they must feel. I’m an ex-military and ex-Signaller myself: so I know how committed one can be to the job and the corps.

iPhone choices

As I posted late last night – Vodafone had not announced their pricing. They did – then retracted it. This is a major factor for an IT and tech geek who currently uses Vodafone. I’m now seriously thinking of taking my business to Telstra (I use them for Cable and Internet already – so…?!). I have partially ruled Optus out due to their lack of non-metro coverage and decisions to expand their 3G using 900Mhz technologies.

iPhone – Vodafone Australia leaves it too late

If Vodafone Australia don’t release their iPhone pricing/data or respond to my Pre-registration ASAP (and I mean by midday Wednesday only 48 hours before launch) I’m going to unfortunately have to go elsewhere. What is the point of their pre-registration when: One hears nothing back from it except a “Watch your inbox” One goes into a Central Melbourne Vodafone shop and they say “We are not owned by Vodafone so don’t know about pre-registration or when the pricing is available” One rings the Vodafone Connect number and can NOT find any option – menu – or area that will answer your iPhone questions Optus and Vodafone 3G offerings outside Metro areas will use 900Mhz – WTF Carriers!

Server Migration complete

I’ve had an on/off outage for most of the past 4 days, so to avoid hassles I put the site into maintenance mode. I’ve actually had to decommission my 19″ server rack and the multiple servers I had for Tech Debug. There was a DNS server, kerberos, Database and web server. All the separate functions are now hosted on one OpenBSD VM that I’ve built recently. It’s running on the only remaining “non-laptop” left in my residence, which runs 24×7.

Twitter WordPress plugin – Autolink to Username

Developed initally on WordPress 2.3, it has successfully been tested on WordPress 2.7.1. Most of the other plugins out there either did this only in their “badge” or “widget” or where too full featured. This is a simple and quick plugin to get links in place to twitter people for the lazy blogger. Visit my plugin page, give it a try and let me know what you think.

Telstra has rights to Sell iPhone on Australia

Telstra have now announced they will be selling the iPhone as well. According to the Age, since Telstra’s NextG network covers 99% of the population the iPhone will get good coverage due to it using the 850Mhz 3G frequencies. Additionally the Age have reported on the pricing Telstra will offer on their bundles: The cheapest monthly plan will be $30, paying either $279 upfront for an eight-gigabyte iPhone or $399 for a 16Gb model.

Textmate Posting Hiccup

Forgive my triple Post Hiccup. When Textmate posted my blog posts, I got errors. Thinking the post had not completed, I retried until I figured out the problem. If you use WordPress V2.3 and post with Textmate, then don’t try to add a new category when posting an article. You get this problem: <br /> Fatal error: Cannot use object of type WP_Error as array in wp-includes/taxonomy.php on line 1010<br /> Looks like I am not the only one.

Australian iTunes Store offers TV Shows

Practically un-announced, Apple have made available a limited number of TV shows on the Australian iTunes Music Store. While I commend the move, I have to question their pricing. The US store offers TV shows @{.tweet-username} USD$1.99 per episode (with Some more expensive) The Australian Store offers the episodes @{.tweet-username} AUD$2.99, which equates to approximately USD$2.85. Why the difference? You can’t tell me Apple has set-up different infrastructure and have different hosting for Media in Australia.

More Work?

I’m not posting much these days since I’m currently heavily involved in a current development and build effort for a Client. (Solaris platform with Oracle 10g) All other hours are either commuting, sleeping or playing WoW. Look forward to a number of upcoming posts on Dansguardian SQL logging, OpenBSD and of course Apple and the iPhone. Zug Zug…. you WC3 fans will know what I mean.

iPhone pre-registration in Australia

Apple now have links to two of the major carriers in Australia from their Australian iPhone website. Telstra are, not surprisingly, missing from this list. My preference is Vodafone so I clicked through and pre-registered with them. You can do so too at their pre-registration page – and apparently a sales rep will call you back. I’m currently with them on the $79 cap, so I should be able to carry right on and hopefully get the best data plan possible.

iPhone supposedly faster on Telstra – not so

Now that we know the 3G iPhone is coming to Australia in July, I was reading back through the pre-announcment 3G rumours to see what where true. Late last month, Afterdawn wrote that according to an anonymous insider, the iPhone will be faster on Telstra by the end of 2008. If you follow through and read their referenced article at Electronista then the story changes slightly. They state that the iPhone will allegedly support up to 42Mbps by the end of 2008 in Australia (on NextG is inferred) “according to a senior offical“.

Great Firewall of China gone?

An friend of mine who lives in China recently wrote to me and said “guess what.. the great firewall of China seems to be gone…” My friend advised that you can read anything you like. An example of this is the UK BBC news site, who a few months ago reported that their English site is available inside China for first time in a decade; but the point of interest is that the BBC Chinese site is also available for use within China.

Site slow due to DNS server failure

The site has been slow recently. I can put this down to the failure of my DNS server. I used an internal caching DNS server for the intranet (where this site is hosted) and it techdebug.com resolves itself internally to a private IP. Whilst the server was off-line I was using an external DNS server, so for the web-server itself apache was resolving the domain name to the external public facing firewall.

Vim Split tips

I use vim a lot of the time, mostly with splits and diffs, so the following key mappings and functions really helped me with managing the split windows. Maybe they will help you too. (Thanks to the Vim tips wiki for these). If you use vertical splits, this will help move left and right across the split. Put in your ~/.vimrc <br /> " Map multi window keys<br /> set wmw=0<br /> " CTRL-H move to left window<br /> nmap <c -h> </c><c -w>h</c><c -w><bar><br /> " CTRL-L move to right window<br /> nmap <c -l> </c><c -w>l</c><c -w><bar><br /> </bar></c></bar></c> When scrolling up and down a window, you can use zz to jump the current line to the middle of the window.

Keyboards are worse than Toilets

I promise to no longer touch any ones keyboards at work if you all promise to keep your hands off mine. After seeing a twitter post on this, I read an article at the Beeb on how; and I definitely quote: Research by the University of Arizona last year found the average office desktop harboured 400 times more bacteria than the average office toilet seat. … “Should somebody have a cold in your office, or even have gastroenteritis, you’re very likely to pick it up from a keyboard.

Little Brother

I just started reading Cory Doctorow’s Little Brother using one of his ebooks he has relesed under the Creative Commons license. I have to admit that I had never heard of Cory of BoingBoing fame, or his books until I read about them via CelticBear. As a ‘paranoid’ geeked I’m hooked on Little Brother, and if you like tech, geek and drama you should check it out as well. Update: I went to buy a copy from a local bookstore, but it is not released in Australia yet.

the iPhone is coming

I can feel it….. Hot on the heels of iPhone release rumours, TUAW post the rumour about iPhone on Vodafone in Australia; and the SMH follow soon thereafter based upon the actual press release from Vodafone. June is just around the corner and my current Vodafone contract runs out this month. Perfect timing. The reason I was hoping for Vodafone is this: with a $79 cap, the $500 credit (currently) covers 3G data usage.

Always encrypt your ssh private key

Recently someone I know advised other IT people to generate their SSH keypair using the default options “using just enter to answer all the questions”. This means that the Private Key generated has no password against it (and is unencrypted). In this case your private key is stored unprotected on your own computer, and anybody who gains access to that will be able to generate signatures (login to servers) as if they were you They will be able to log in to your server under your account.

How I felt last weekend

This describes it pretty well. I’m a fan of web comics, so this ones now on my feed radar. {.snap_noshots} Thanks Keacher

OpenBSD, postgresql and semaphore failures during initdb

Today I upgraded my postgresql database instance on OpenBSD. Did a pg_dumpall, removed the old packages and then added the new ones (latest version 8.1.9 for OpenBSD 4.0 – yes I’m behind).

During the initialisation of the new DB, I got the following error:
<br /> creating directory /var/postgresql/data/pg_tblspc ... ok<br /> selecting default max_connections ... 10<br /> selecting default shared_buffers ... 50<br /> creating configuration files ... ok<br /> creating template1 database in /var/postgresql/data/base/1 ... FATAL: could not create semaphores: No space left on device<br /> DETAIL: Failed system call was semget(1, 17, 03600).<br />
The PostgreSQL documentation talks about this extensively. However I don’t want to recompile my kernel away from GENERIC. What else can I do?

Coral Content Distributed network

Have you ever had your website hit on a topic that people find conflicting? When the site gets viewed by the masses, you need to be prepared. If you have access to modify your web server .htaccess file then go and have a read of the Coral CDN Overview For those interested in the techie bits, here is my .htaccess for news site flood protection, and to allow CDN to serve up all my site images – thus offloading from my puny connection the bandwidth burden for images.

Wikipedia Article creates Circular references

A recent post on SlashDot quotes an IT professor saying: People are unwittingly trusting the information they find on Wikipedia, yet experience has shown it can be wrong, incomplete, biased, or misleading After reading this, I thought it was time to write about a something I found that backs this up. An anonymous user added information about Sacha Baron Cohen (known onscreen as Ali G.) to Wikipedia on November the 14th 2006.

Telstra ADSL2 upgrade complete

Telstra announced yesterday that their ADSL 2+ (what’s with the plus?) upgrade has now been completed Australia wide. What does this give the average end user access to? The Telstra PR and discussion site explains: The ADSL2+ upgrade of 907 telephone exchanges serving 2.4 million homes and businesses announced in February is now complete. This means millions of additional Australian families, businesses, non-profit organisations and government agencies across every state and territory can now enjoy the benefits of high-speed broadband

The state of Broadband in developing countries

Australia is a mixed bag at Broadband. In some ways we resemble the US, and in no way do we resemble the Japan style FTTN networks (yet). But the infrastructure is starting to be there. What sucks is that sometimes to get the 30 Mbps connections you have to pay quite a bit for it (AUD$90/bundled per month for 25GB, Bigpond Cable). Yes I’m only with Bigpond cable as no ADSL service exists in my area that comes close to that speed.

Storms and Power outages

We’ve had some stong winds in Melbourne yesterday. Up to 130 kph! These winds were good enough to cause a 24 hour extended power outage in my area, meaning my provider had upstream outages and the internet connection was down. Add that to the errant html comment in my last post which made the whole page commented out. All resolved now. Now what else do I have to debug that is technical?

Mailing attachments from the Solaris Shell

I needed a quick way to send some files from the command line when logged into a Solaris server via ssh. This assumes the server is already configured to deliver your smtp mail. I also used mailx for the sending client. Here is how I did it, for your geeky reference. First write your message: cat << EOF > /tmp/mailmsg<br /> Hi this is a message<br /> And this is the second line<br /> EOF

Free stuff

You may have noticed that my last 3 posts were about free software. I like free stuff. Everyone likes free stuff. Why talk about free stuff? A friend told me that the reason he enjoys using Open Source (and usually free) apps is he can customise them. He finds it frustrating that when you pay $1K per seat for an application like Mercury (now owned by HP) that sometimes it just wont do what you need.

eReader Pro now free for Palm

I use eReader on my Palm, but only for free documents and not often enough to warrant paying for it. Now that is no longer required. As I noticed at the downloadsquad, eReader Pro for Palm and Windows mobile devices is now being offered for free. If you would like your own copy for Palm (or windows mobile) you can download it from the ereader website.

MacHeist – Speed Download 5 upgrade now available for free

I received and email from the MacHeist directorate today. The controversy has been solved by YazSoft offering a free upgrade to Speed Download 5 for MacHeist customers, but only for a very limited time – March 13 2008 until March 27 2008. It is nice that I got the email, albeit 5 days after the offer was extended. This list of changes that come with SD5 are available online. So if you purchased Speed Download 4 with MacHeist II, and choose to upgrade, then proceed to yazsoft’s website in a quick and orderly fashion to get the upgrade offer.

Newsfire RSS free for everyone

David Watanabe announced the most recent upgrade to Newsfire RSS as now free for all users. In David’s own words, he explains what the buzz about news aggregation is, and why Newsfire is a must for ALL mac users: For those new to this, NewsFire is a news reader for blogs, news sites, and anything else that publishes an ‘RSS’ syndication feed. It watches for news so you don’t have to.

Disco burning software updated

Disco is one of the smartest looking and basic (yet powerful) CD/DVD burning solutions for your Mac. Yesterday it was updated with a maintenance release to V1.0.3, which includes quite a number of fixes for crashing that may have occurred. It has been almost 1 year since the last update so this is welcomed. Incidentally, the developer is offering this software for USD$19.95 (and there is a very good USD->AUD exchange rate) for a limited time.

Joomla migration of Google Maps API

It looks like I may have successfully written an alpha “migrator plug-in” that may work for migrating your com_google_maps component from Joomla 1.0.x to 1.5. Once I have tested this on the internal testbed migration sites for one of my customers, I will write it up here. This will be useful since the developer of the Google Maps API for joomla has no current migration plugins. Stay tuned….

OpenBSD – Akismet key could not be verified

If you are using OpenBSD to host your wordpress installation, and using the Akismet plug-in to block spam, you may come across set-up problems with Akismet.

The errors that can occur could be either or both of these:

  • There was a problem connecting to the Akismet server
  • The key you entered could not be verified because a connection to akismet.com could not be established

There may be a couple of issues here.

Leopard Erase and Install Success – Howto

So you want to upgrade your Mac from Tiger (10.4) to Leopard (10.5)? This has probably been written about by every man and his cat, but here is my experience and the optimal installation sequence – as written by a late-comer to the Leopard gang.

Apple’s Leopard

I took the plunge and decided to upgrade to Mac OS 10.5 a.k.a. Leopard this weekend. Here’s how it went… Initially I made sure I had two full cloned and boot-able backups that I made with CCC. After this I actually tried booting off them just to make sure. Having backups before such a major upgrade is a mandatory step for all people whom undertake any OS upgrade. Secondly I decided on the upgrade path.

Somewhere Back in Time

I have a short video I took of the Somewhere in Time Tour. It’s from the Powerslave guitar solo as played in Sydney. If you were at either of the events this should bring back some good memories! For a review of the evening in Melbourne, synultima has a [blow by blow review over @{.tweet-username} last.fm]4 On a side note, some bloke taped a bootleg copy of the 9th Feb show – you can get it while you can, but I can’t condone that.

Maiden in Sydney

These ones where taken with a better camera, so they came out pretty decent for being 5 meters from the stage! The setlist was great, and it was well worth getting Gold floor tickets. As for Acer Arena, they banned all bags and drinks being bought in (including water!) unlike Melbourne. That was annoying as I had to run back to the cloakroom to get my earplugs (33dB reduction!).

Artificial Sweeteners Linked To Weight Gain

ScienceDaily have an article on new research on artificial sweeteners. Want to lose weight? It might help to pour that diet soda down the drain. Researchers have laboratory evidence that the widespread use of no-calorie sweeteners may actually make it harder for people to control their intake and body weight. Cutting the connection between sweets and calories may confuse the body, making it harder to regulate intake. You can read the full article at ScienceDaily.

Iron Maiden concert

A short entry today. I went to the Concert in Melbourne on Wednesday, and it was awesome. You can check out my (blurry cameraphone) photos from the floor over at flickr. Bad quality videos upload live from the event are at youtube. Either way, I will be at the Sydney event on 9th Feb as well, so look out for some better pics.`

As easy as Apple Pie

A friend told me he had dropped his notebook PC, and it was going to cost more to repair than it was worth. I advised: Get a Mac. I started looking around for some information for him. Why would the Mac benefit his Computer Science course? Why would the Mac be more reliable? What does he need to know about compatibility? One of the articles I read was a blog post by The Shepherd’s Sons called “All Signs Point To Apple”.

How the mighty have fallen

Alexander Downer spent 11 years as the foreign minister of Australia. During his tenure, had he been visiting Melbourne he would have had his cars, his people and arrangements for venues visited. Now it’s a bit different. This morning I almost bumped into him on Collins Street in Melbourne. You can’t miss a public figure. The funny thing was that some man in the street was hurling abuse at him, but didn’t realise he was no longer foreign minister.

Clearcase Tips Number 03 – managing label conventions with perl

I previously showed you how to use a shell script with Rational Clearcase, to alert you when a new branch type was created.

In this post, I will show you how to use a Perl script to enforce Clearcase labeling conventions. This example is directed toward Clearcase on UNIX (i.e. Solaris or similar) and assumes you have Perl installed, working and have a basic knowledge of how to program in Perl. It is a reworked version of the windows script supplied by IBM on Developerworks.

This is a long post, but a good one if you are a new clearcase admin who needs to enforce label names.

Macheist – 14 applications for $49

With MacHeist.com still selling their bundle for another 3 days, they have added a new Mac application to the bundle. VectorDesigner brings the total number of applications in the bundle up to 14, with the recent addition of the Freeverse games. If you get referrals from your friends there are another two up for grabs as well. Here is what MacHeist have to say about VectorDesigner: With the latest version of Adobe Illustrator costing $600, it’s no surprise that the Mac community has been clamoring for a powerful, fast, and easy to use program for creating vector art that doesn’t break the bank.

Macbook Air Multitouch

I am currently watching the Macworld 2008 Keynote speech, and Steve Jobs – though starting off a bit slow – wowed the gadget hungry crowd in his usual fashion. Besides some new Apple TV innovations (limited to the US – bah!), iPhone/iPod updates and the new Timecapsule; the key component of the speech was the introduction of the new Macbook Air. Although I run my servers on OpenBSD, I write my blog from my Mac and prefer my Powerbook over all the other computers I use.

Macheist – In the company of good Applications

This is one for my Mac readers; MS Windows lovers please have your eyes glaze over – Now. Following the lead of other bloggers, I thought it would be pertinent to let you know that MacHeist II has completed all their heists, and the bundle sale is well underway. This morning the last of the 10 11 12 applications, Pixelmator, was unlocked. The developers say “If your image editing experience so far has been defined by PhotoShop, we guarantee you will be blown away by Pixelmator’s speed and beautiful UI”.