Tag Archives: Tech Tip

geoDefense Swarm Medium Level 7 Solution

As I’ve been writing my next yet-to-be-published blog post, ‘8 iPhone Games You Must Have’, I’ve been getting deeper and deeper into geoDefense Swarm. It’s really difficult as the dynamics of the game keep changing from level to level and each level often has a unique solution. I’ve been struggling with medium level 7 ‘Nucleotide’, it’s really hard. So hard in fact, that I haven’t been able to find a sure-fire solution for it online.

Well, I’ve just spent a part of my train journey back from Scotland trying to crack this nut. And you know what? I have prevailed. In the end, it was pretty easy; all I needed as to think of what does ‘Deoxyribonucleic acid‘ mean. (This is written on the starting screen of the level.) From that I started thinking that perhaps it’s a hint on the form of defences you have to build.

I first tried with missile towers but the rockets are too slow so ended up using thumps. Upgrade those to level 7 as soon as. I usually do them in pairs so that two will be maxed out before any of the others are upgraded at all.

First time I managed this level, I only let one creep go through. Not bad.

Update: To clarify a little, Deoxyribonucleic acid is, of course, DNA in everyday language. The form that your defences are to take, resembles its form.

Save Sleep Mode

Just a quick tip for my dear reader(s).

Funny thing that hard drive space is, no matter how big it is, there’s always only few gigs left of it. Sunday is my hard drive clean up day, the day of the week when I try to free up about 10 Gb to be able to go through the week. One utility to visually see where all the space has gone or what taking it up is Disk Inventory X. Check it out. Reason why I’m bringing that up is because I noticed an evil 2 Gb file lurking in /private/var/vm/
Disk Inventory X.jpg
The Sleep Image. sleepimage is file that stores all the data that is currently in RAM. It’s written when the computer goes to sleep. (You can notice this by looking at the light in the front. When it slowly blinks it’s a sleep but before this it’s permanently on while it writes stuff on the disk. You should be very careful moving your computer while this is being done as you might damage the hard drive.) Purpose of the sleepimage is that if your computer runs out of battery or power fails while asleep, it can recover to the previous state without having to restart. The space is always reserved for this so it can’t run out. There’s three good reasons not to use save sleep. It takes longer to fall asleep, it makes the whole process less staple and I just rather have the space in active use.

To disable save sleep, all you need to do is run these two commands in Terminal:

sudo pmset -a hibernatemode 0

sudo rm /var/vm/sleepimage

First disables it, the second deletes the sleepimage file. To re-activate it just run the first command but with 1 instead of 0 in the end. If you’ve just upgraded to Leopard you should check what state it’s on; it’s on by default and even with regular upgrade install it seems to go back to default.


AppleScript To Connect To Your Time Machine Backup

Time Machine, no matter how some might say it’s only meant for grandmothers and alike, is so simple and secure to use, it’s would be silly not to. Even if only as an extra layer of data security

For me, the ideal setup is that the Time Machine backup drive lives on my home network rather than directly connected via FireWire or USB. All though Leopard has a simpler way interface for connecting to computers on your network – compared to Tiger – it would be nice to for this to happen automatically. After all, it’s not automatic if you have to think about it.

I’m really just a novice when it comes to AppleScript but luckily it’s a nice and easy scripting language. I wrote the script below to run at login. All it does is it checks which wireless router you’re connected to and if it’s the one you’ve predefined as your home network it then connects to a drive on that network.

set SSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | awk '/ SSID: / {print $2}'"
if SSID is "xxxx" then --replace xxxx with your chosen wireless network name
tell application "Finder"
mount volume "xxxx" --replace xxxx with the address of your drive. you can find that by 'Get Info' on a mounted drive
end tell
end if

I know this is really basic and could have more features by adding functionality like connecting via the Internet if not at home (I’m actually not sure if that would work with Time Machine) and maybe connecting hourly, rather than just at login. If you want to improve it in anyway please feel free to do so and post your findings below (I’m looking at you Alex).


ps. Thanks to StefanK at MacScripter BBS for the SSID bit of the code.

[update] Further investigation reveals that Time Machine automatically connects to networked drives, thus removing the need for the script above. In any case, the script still works, and can be used for other drives you might want to use on a specific network.

Mobile Internet

So yesterday was, again, one of those days when I was in a place without internet/wifi. Tilbury Fort, on the north bank of Thames, to be exact. I wouldn’t say I’m as much addicted to internet and email as I am reliant on it.

For some reason the web access to my email on my e61 hasn’t worked for the last couple of days. Rest of the web is fine, only my email isn’t (I’ll blame Google for this as they handle email accounts for tapaninaho.com).

As you’ve probably noticed, when setting up a mobile phone to connect to your computer via bluetooth, it gives you an option to use your mobiles data connection to access internet on your computer. [make sentence shorter] I’ve tried it but with no luck. It asks for username and password, and for GPRS CID string. None of which Vodafone had given to me.

I spent about 17 minutes on the phone to Vodafone’s customer support, without a result. In the end, they advised to call Nokia’s technical support.

After some searching, I found the answer: you don’t need username or password at all. All you need is the GPRS CID string, which isn’t as trivial as I thought it would be. Apparently all/most Nokia phones use *99# to initiate a data call (I’m hearing that you should use ‘internet’ as CID string when you’re having to use a Sony-Ericsson phone).

I’ll be adding a screencast on how to do this later this weekend.