OmegaDelta.net

Hong Kong
Omega Delta
- Kotaku
Bookmarks
Australian Links
RMIT University
University of Queensland
Entertainment
Games
Software
Developer's Links
News/Sport
Educational
Linux
Tank Software
Google
Web ICQ
Suggestion Box
Admin Tools

Calling UIAlerts from a separate thread

2009-07-02 04:58

If you show a UIAlert from a separate thread, you may get a _WebThreadAutoLock exception, especially if that alert contains a lot of text (which changes the UIAlert to have a scrolled text field).

To fix it’s easy, simply change where you had:

to

[alert performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:NO];

That will run the alert on the main thread. You can also [release] the alert instance immediately, as the scheduler retains it for you.

phpBB3 sends password in the clear

2009-06-20 07:34

I recently had  a client complain about phpBB sending their registered password in the clear.

It’s easy to fix, simply edit these two files to remove the password field:

language/en/email/user_welcome_inactive.txt
language/en/email/user_welcome.txt

source

Extracting data from the iPhone Simulator

2009-06-18 09:20

I wrote earlier about extracting data from the iPhone backup – something very useful for backup & debugging purposes.

Developers can also access the Simulator’s data, and no extraction is needed:

~/Library/Application\ Support/iPhone\ Simulator/User/Applications/

(~ is unix shorthand for /Users/yourusername)

The cool thing is that because no extraction is needed you can even edit the data in-place, e.g. using sqlite3.

Neat.

If you have lots of sample apps it may be hard to find which is yours, use grep to filter the list with the current day, then there’s at least less to wade through.  Chances are the directory with the most recent timestamp is your app.

ls -la | grep “21 Jun”

Power Adaption – Solved

2009-06-01 08:05

I was chatting with my mate Paul earlier this year about the power adaption issue and we came up with a neat (but in hindsight obvious) idea – rather than taking 2 plug adapters for 2 devices, take a power board, or double-adapter, that way if you are visiting multiple countries with different adapters you only need 1 plug adapter for each place.

I decided to take 2 double adapters, on my RTW trip – they are smaller than a power board, and can be used in a 2x or 3x capacity (generally I just need one in the 2x), in China which has Australian points everwhere, they are useful just on their own as well.

Power adapters

Rudd Money

2009-05-29 04:43

Source

Finance Minister Lindsay Tanner did acknowledge that a “tiny proportion” of the money might be spend overseas, by expatriates

OK, this has really got my goat people.

Every time I read about the aussie stimulus package, someone complains that the money might be spent overseas (e.g. like mine), and politicians have to justify it (even if they know better).  Well get this:

1. You only get the money if you paid Australian Taxes.  I paid my taxes just as much as everyone else and I’m not even in the country to use the benefit of any of the services this money buys me (e.g. medical care).  I’m not asking for my tax back – so shut up about my stimulus money.

2.  THIS IS A GLOBAL PROBLEM.  IT DOES NOT MATTER WHERE YOU SPEND THE MONEY. Got it?  GLOBAL PROBLEM.  It didn’t start in Australia, and it won’t end there.  I spent my stimulus money in the United States of America, which probably did a lot more to help the world economy (and thus Australia’s) then spending it in Australia.

So just shut up, buy a plasma TV, and be happy.  OK?

Milk Jug – Canadian style

2009-05-14 02:21

This is a sweet invention.  It’s a milk jug that you don’t have to wash out every day, or worry about the contents expiring without your knowledge.  Plus you save the environment by reducing wasteful packaging.

Instead of buying milk in cartons, Canadians can buy it in bags.  These bags fit conveniently into stylish plastic milk jugs, all you do is cut the corner and pour.

If I ever have to create a society – this is how you will drink milk.  And there will be lots of lotte pies.

Canadian Milk Jug

SVN Move in Tortoise

2009-04-30 08:08

When you right click a versioned file it appears that there is no move function. Well there is! Read about it here.

I agree it’s non-obvious. I understand they reason why they had to do it the way they did though – my suggestion? Put a stub “Move” command in the normal context menu, with a dialog explaining where to actually find it. My first assumption was simply that Tortoise hadn’t implemented it…

RTW Ticket Changes

2009-04-17 10:55

Changed my second flight today, going to get the hell out of Denver. Would have been nice to stayed for some snow – but would be better enjoyed with a friend I think.

Changing the ticket was a real pain this time – Air China could not help and bounced me around the world for a while. But I learnt the easiest way to work it:

- Ring the Carrier who the flight is with
- Wait until the flight you want to change is your next flight, it just makes it all easier when they bring it up on the system

Given this, to anyone booking a RTW ticket, and planning to do date changes, I would highly recommend booking things for dates too far in the future than the other way round – because then you can at least bring them forward one by one as you need them, rather than doing a massive juggle which I am VERY thankful I have not had to do. And maybe it is easier not booking 16 flights either…

metamorphosis

2009-03-29 08:47

from ‘Melbourne based’ to ‘Melbourne borne’, here begins the transition.

I’ll really know I’ve gone when I first have to buy an Australian power adapter…

Indy Game Dev’s Rock

2009-03-25 17:46

A group of Indy game dev’s managed to totally pack out a trendy downtown San Francisco club tonight, one which I had coincidently been to the previous Saturday (albiet with a rather different crowd…). They had to rope it off and call in the bouncer and everything. LOL at least there was no cover charge…