By Marc, on June 9th, 2010%
One of the things that has annoyed me while developing my iPhone game “Wordly” are dialogs that appear modal to the user, but are non-blocking from the programmer perspective. For example, let’s take UIAlertView.
You tell a UIAlertView to show itself and the user sees a modal dialog, but the code after your show message keeps executing, . . . → Read More: The quest for a better UIAlertView
By Marc, on October 24th, 2008%
As you all probably know, I’ve written a word game for the iPhone called Word Up!
<shameless-plug>
</shameless-plug>
Tonight, I started getting an error while trying to run my app from Xcode on my device (provisioned for development). The error was:
Your mobile device has encountered an unexpected error (0xE8000001)
during the install phase: Copying file.
Try disconnecting and powering off the . . . → Read More: Xcode/iPhone error 0xE8000001: problem and fix
By Marc, on May 18th, 2008%
Today’s Python discovery:
Python doesn’t have the C style ?: ternary operator (e.g.: cond ? valueIfTrue : valueIfFalse).
But as of Python 2.5 it has a ternary operator with its own syntax: value_when_true if condition else value_when_false
For example:
>>> ‘a’ if 1 == 1 else ‘b’
‘a’
>>> ‘a’ if 1 == 0 else ‘b’
‘b’
This is actually clearer and more Pythonic . . . → Read More: Python ternary operator
By Marc, on March 3rd, 2008%
This week I’m at SD West 2008. I’m hoping to learn a few things about C++, especially C++0x . . . → Read More: SD West 2008
By Marc, on February 1st, 2008%
Interesting that the Unix calls for setting user ids of processes are so varied and so complex, that they warranted an entire paper. I only skimmed, but I did get a pretty good description of the “saved uid” parameter of the setresuid call.
Setuid . . . → Read More: Setuid demystified
By Marc, on January 30th, 2008%
Just stumbled up on this (via TiVoBlog who in turn found it via TiVo Lovers) and will have to give it a try sometime:
From TiVo HME SDK for Python:
An implementation of TiVo’s HME (Home Media Extensions) protocol for Python, as a module (hme.py), a simple server (hmeserver.py), and examples (mostly ported from TiVo’s Java HME SDK). . . . → Read More: TiVo HME SDK for Python
By Marc, on December 28th, 2007%
A snippet from the latest freshmeat.net announcement of Perl 5.10 that landed in my email inbox:
This version includes a new smart match operator, a switch statement,
the // defined-or operator, regular expression improvements, and
other language changes…
Funny, I was just thinking that what Perl needs most is more operators… . . . → Read More: Perl->{‘5.10′} += (“//” && > Operator[s])? =~ /amusing/