Journey's End

Apr 11
2011

Mar 26
2011

Broken OS X Installers and How to Fix Them

The installers Ralink provides for some of their chipsets, like the RT2770 does something retarded: they attempt to unload a kext in a pre-install script, and when it fails the script fails and the entire install fails.

This means on a new machine, or one that never had the kext …

Feb 25
2011

Endianess, Thy art Sneaky

I took delivery of my Linksys WUSB600N V2 today and was very excited to get my G4 Mac Mini online. The many online sources suggests all I need to do is change a few values in an Info.plist. However as it turns out, that wasn't enough. In order for …

ts=05:12 tags=[osx,computer]

Feb 24
2011

Jan 27
2011

iOS Toolbar Pagecurl Icon

iOS 4.x's page curl UIBarButtonItem comes in blue, and blue, and blue. If you set a UIToolbar's tintColor, then it disappears for some reason.

So I had to make a replacement. Since I use a lot of icons made and given away by awesome people, I feel it is …

ts=11:30

Jan 27
2011

iPhone 4 layer export script for Gimp

I often mockup iPhone interfaces on the Gimp, then exporting each layer for use as backgrounds. For iOS 4 each image needs to be exported twice: one at full resolution with @2x in its filename, and once at half-resolution without the @2x. e.g. nav_bg@2x.png and nav_bg.png …

Jan 22
2011

Socket.IO Framing Protocol

Socket.IO is a great library and framework that doesn't seem to have a good description of the protocol available. In interest of helping others when they google "socket.io framing protocol", this post was born.

The description of the framing protocol used by Socket.IO below is taken from …

ts=14:55 tags=[software,code]

Jan 16
2011

UIGraphicsBeginImageContext on iPhone 4

I generate UIImages in some of my iOS applications, and prior to the iPhone 4 they all worked fine. With the introduction of the iPhone 4 and Retina Display, I realised my generated images were blurry even though I am rendering them at twice the resolution.

It turns out this …

ts=10:21 tags=[software,code]

Dec 16
2010

Dec 07
2010

On Wikileaks and World Stability

Since the release of US embassy cables (aka #cablegate), many have accused wikileaks of being irresponsible on the argument that what is revealed will retard progress or even destablise world politics.

However, 15 days after the release of these cables, we have observed no breakdown in negotiations, no cooling of …

ts=13:54

Sep 21
2010

Sep 20
2010

Avoiding tag collisions

UIViews in UIKit has a tag property which is very handy for marking views then retrieving them later. I am always worried though I will use the same tag for views in the same view hierarchy

Cheers,
Steve

ts=14:29

Jul 10
2010

Jul 09
2010

Jun 15
2010

Jun 15
2010

Open Letter to Silicon Chip Australia


Dear Silicon Chip,

I recently cancelled my print subscription. You are no longer a magazine I wish to support.

Political commentary on topics like the insulation scheme and global warming has no place in an electronics magazine. The editor(s) are using the mailbag section to push their own agendas …

Jun 09
2010

Script to make IPAs for ad-hoc distribution.

This script produces an IPA, then verifies to make sure the IPA is actually valid.

PRODUCT_NAME=""
IPA="\\({PRODUCT_NAME}.ipa" APP="\\).app"

if [ -z "\${PRODUCT_NAME}" ]; then
        echo "PRODUCT_NAME not set";
        exit 1;
fi

rm -rf ipa
mkdir -p ipa/Payload &&
cp -R build/Debug-iphoneos/\\({APP} ipa/Payload/ && pushd ipa && zip -q …

ts=05:22 tags=[software,code]

Jun 09
2010

2010-06-09

PRODUCT_NAME=""
IPA="\\({PRODUCT_NAME}.ipa"</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">APP="\\).app"


if [ -z "\\({PRODUCT_NAME}" \]; then</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">        echo "PRODUCT_NAME not set";</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">        exit 1;</span> <span class="Apple-style-span …

ts=04:35

May 08
2010

Discouraging File Sharers at LANs

A friend of mine likes to go to LANs and like to run LANs. He has been complaining for sometime that social gaming no longer occur at LANs and in its place is leeching. Lest you think LANs have somehow turned into 19th century medical clinics, we are talking about …

ts=07:58 tags=[computer]

Mar 26
2010

Notes on PHD Guiding

  • Maximum RA guide pulse is 1000ms (1s). If PHD is not locking on to the star and it says "dur=1000" in the status bar, a better polar alignment is required.
  • RA hysteresis is used in a 2-term weighted moving average:

RA_dist = (1.0 - RA_hysteresis) * RA_dist + RA_hysteresis * last_guide

Cheers,
Steve …

ts=02:45 tags=[astronomy,code]
← Previous Next → Page 5 of 27