Author Archive

Using connect.c to SSH through a SOCKS server

connect.c is a simple relaying command to make network connections via SOCKS and https proxies. It is mainly intended to be used as a proxy command for SSH.

You can download a copy and compile it using the command gcc -o connect connect.c , however you might find if you are using Mac OSX that it doesn’t compile properly, that’s because you need to make a couple of changes. You need to find the #include <resolv.h> line and change it to #include <resolv8_compat.h> and above it add #define MAXDNAME 2048.

Click to continue reading “Using connect.c to SSH through a SOCKS server”

Evernote for iPhone update, adds offline support

The Evernote iPhone application (iTunes link) has added offline support - select a ‘favourite’ note, and it’s synchronized for offline use.

This is exactly what I have been waiting for from this application. Now I can use this application much more for notes that I need on the go, without having to worry about whether or not I will have signal.

What’s Evernote? Check out this Lifehacker article for information on how you can expand your brain with Evernote.

Make your newer Mac portable go to sleep immediately

Newer laptop Mac’s by default use ‘Safe Sleep’. This means that when you put your Mac to sleep, it writes the contents of RAM out to the hibernation file before going to sleep. This means that if it completely runs out of power (or you remove the battery to swap it) you wont lose your work, because it will automatically have gone into hibernation.

However, this takes time, particularly if you have a large amount of RAM, and during this time the hard drive is still spinning - and writing data. If you want your Mac to go to sleep straight away and don’t care about losing the ’safe’-ness of your sleep mode, you can change your hibernation mode using this terminal command:

sudo pmset -a hibernatemode 0

Before doing this, you might want to check what your current hibernation mode is:

pmset -g | grep hibernatemode

By default it will either be 3 (Safe Sleep) or 7 (Safe Sleep if you have secure virtual memory enabled).

Now your Mac should go to sleep much quicker.

Sharing iPhone apps

This information is strictly for sharing applications you have a right to share - for example between multiple iPhones and computers that you own, and educational purposes only.

I discovered today through experimentation that it is possible to share applications you have purchased on different accounts, onto one or many iPhones, using the iTunes ‘Authorize Computer’ feature, even if applications are no longer available for purchase.

Click to continue reading “Sharing iPhone apps”

Command line iPhone video

ffmpeg is a collection of components that makes the backend for a lot of GUI media convertors. If you’re a fan of the command line, you can do quick and easy video conversion from just about any video format to just about any other video format. For example, you can convert a video to a format suitable for an iPod Touch or iPhone using this command:

ffmpeg -i source_video.avi -acodec libfaac -ab 128kb -vcodec mpeg4 -b 900kb -mbd 2 -flags \
+4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title Title output_video.mp4

If you wanted to, it would be fairly easy to make this into an alias or a bash script so you don’t have to remember it all. Maybe I will at some point and update this post, for now I’ll leave it as an exercise to the reader.

Using this command, I transcoded a 42 minute XviD video in just 12 minutes on a 2.2Ghz Athlon (and just using one core, I’m not sure if ffmpeg supports multicore encoding). And the quality was more than good enough, though you can increase the quality by simply increasing the number after the -b (bitrate).

Discover more quick ffmpeg commands

A skeptics look at iPhone gaming

Since getting my iPhone 3G I’ve bought and installed two games: Wurdle, and Asphalt 4 Elite Racing. They are at extreme ends of the gaming spectrum; Wurdle is a very casual 5 minute game, whereas Asphalt 4 is targeted at more serious gaming (IGN say it’s a must have for any serious gamer). I thought I’d give my opinions on both, and also discuss how the iPhone fits in the handheld gaming market in my opinion.

Click to continue reading “A skeptics look at iPhone gaming”

Next entries