Ian Winter Ian Winter

Don't Shout At Your Harddrives

Via

Now this is more than likely caused by the noise creating vibrations, but, still amusing.

Best Commercial Ever

NSFW.

Link: Fleg Master Tlpizza

Did it fall off the cliff?

First post in a while and somewhat random but never the less...

Well, according the Caine himself, no it didn't.

Screen Lock Mac (with a message)

There's a few ways you can screen lock a mac but I wanted to not just lock the screen also put a message in the login window.

Using ScreenLock from handymacapps.com and Quiksilver you can quickly launch the lock and then by running the following you can neatly add a message to the login window.

sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "If you need me, call me."

Just do "" to blank it again or ditch the file.

Easy!

Maatkit

I had a need, a need to change some tables in MySQL from MyISAM to InnoDB. I did a few via regular SQL and then thought there must be an easier way and indeed there is.

Maatkit (which if you haven't heard of go Google it) can help. The following one liner will neatly switch all the tables in one go. Lovely.

mk-find -uroot wld --engine MyISAM --tblregex '^payment' --exec "alter table %D.%N engine=InnoDB" --print

FYI you can get this from a "yum install maatkit" as well.

Apple Rumour Mill

Apple have announced an event for September 9th which isn't a huge surprise. I also don't think this time that the releases anounced will be. Seems pretty likly that iTunes 8 will appear along with new iPods in some shape of form. An iPhone update would be welcome, mail on my 3G phone crashes regularly since the 2.0.2 update.

As for anything else, not really sure what they might announce. New iPhones, unlikely. Maybe Macbook Pros of Cinema Displays but they've been floating about for a while now.

Base Jumper

This is a base jump going wrong and the guy getting the whole thing on film from his head cam! Glad my sky dive didn't go down like this.

http://news.bbc.co.uk/1/hi/world/europe/7596528.stm

iPhone 2.0 School Report

Overall: Must try harder.

I have an original 2G iPhone and now have a 3G iPhone with work. I've been comparing the two and have some initial thoughts on what needs to get sorted.

The signal strength on the 3G phone is worse than the 2G one, but, only with 3G turned on. If you turn 3G off on O2's UK network the signal strength goes back to full. Also the 3G data speeds are seemingly only slightly faster than EDGE which is a disappointment.

Neither the 2G or 3G phones map "locate me" function works anymore and with the 3G iPhone I can't any sign that GPS exists at all again with this being one of the key new features and potential sell points for me to upgrade mine, a disappointment.

In both the Settings > Phone menu and the contact list on the 2G phone "My number" is displayed at the top which is quite handy, on the 3G phone there's no sign of that. It may be something I've not setup right but in side by side comparisons of menu's etc I can't spot it.

The screen on the 3G is definitely brighter and as reviews suggest slightly more yellow, doesn't really matter though as I think it looks better. Also the sound quality on the 3G is superior both in ear sound quality and volume and the speaker quality and volume.

Apple are in beta for 2.1 which I hope fixes these niggly things. Locate me not working and crappy 3G pick up could be O2's fault, but, it could be hardware or software. I'd lean to software and Apple as on the 2G with 1.1.4 locate me worked just fine.

As for MobileMe, well, after by 99 remaining days are up thanks to Apple for 2 lots of extra 30 days, I think I'll be ditching it. SpanningSync 2.0 is looking like the main contender at the moment.

HP Does Packaging

Thanks to Tim for an interesting article he found over on The Register. Good to see HP caring for the environment!

CF8 JRun init script error

Setting up a staging server environment which will run 3 instances of CF and looking to alter the init scripts so it fires them all up on boot. Took a look at the one the installer creates and thought simple enough to just put multiple calls in for each server instance. Oh no.

On our RHES4 platform we have CF starting up as the apache user, but, running the script causes a "This account is currently not available." error to be thrown because it has no shell and it's locked. After looking at another server running a server install I notice the issue is down to the su command issued.

JRun

su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfusion"
su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start cfusion >& $CF_DIR/logs/cfusion-event.log &"

Server Install

su -s /bin/sh $RUNTIME_USER -c "export PATH=$PATH:$CF_DIR/runtime/bin; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
; cd $CF_DIR/runtime/bin; nohup $CF_DIR/runtime/bin/cfmx7 -jar jrun.jar -autorestart -start coldfusion &"

Key difference is the "-s /bin/sh" part. Altering my script to the following makes it work. Yay. Not sure if this a known bug of something funky in our setup, but, as it's a vanilla OS install I don't see what it could be.

su -s /bin/sh $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfusion"
su -s /bin/sh $RUNTIME_USER -c "$CF_DIR/bin/jrun -start cfusion >& $CF_DIR/logs/cfusion-event.log &"

More Entries

Powered by BlogCFC, 5.9.002. Contact Me

All comments, view, rants, raves and opinions are mine and mine alone.

del.icio.us Digg Flickr Last.fm LinkedIn Pownce Twitter YouTube