One of the first things I did after getting my shiny new Nexus One was to plug it into my computer for development. After all, development was the entire reason I bought this very expensive new toy (well, it might not be the only reason, but it is the one I use to justify actually [...]
AndroiDev: Leaky Windows
This is one of those errors that popped up on me that initially left me baffled and amused. Once you look up and find out the explanation for “Activity has lead window”, it makes sense, but the idea of an application having “leaky windows” is still quite hilarious to me (unlike memory leaks, which suck [...]
AndroiDev: The project so far – Wikinews Reader
A lot of the code I post and tech bits I fix are things I find while working. Sometimes I can’t explain the bigger picture, sometimes it simply doesn’t matter. Most people don’t care about the why, but simply the how (to fix something) like the “Cannot Save Attachment” message in Outlook 2007. But with [...]
AndroiDev: UnknownHostException
Recently I was messing around on Android with the BrowserView’s and BrowserIntent’s. When trying out one of the examples, I got: InetAddress: Unknown host www.google.com throwing UnknownHostException Every URL I entered, it displayed a “Page cannot be found” type error. At first I thought it was the site I was trying to use, but obviously [...]
AndroiDev: TextView.setText crash
One thing I yearn for when I am programming is a debugger like Perl’s interpreter. If you had a bug in your code, it would tell you almost exactly where it was, and even suggest fixes sometimes (Ex: You probably forgot a semicolon at the end of line X). Unfortunately, that isn’t the case with [...]
Starting Android Development
A long time ago (like last year) in a state far far away (Nevada), my job wasn’t terribly busy so I got permission to start learning iPhone development. I went ahead and purchased The iPhone Developers Cookbook, setup the MacBook Air and got started with learning. Of course just a few days later I got [...]
Bafflingly stupid programming & error reporting
Last night I was playing Star Trek Online for the first time in a few days. I played a good couple of hours before the game took a dump on me. After they got over the initial hurdles of the launch, the game has been relatively smooth to play so I’ve been happy. Plus the [...]
PHP: “Only variables can be passed by reference”
<?php $dir = “./mydirectory/”; if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if (preg_match(“/^\..*/”,$file,$junk) || preg_match(“/^BAD.*/”,$file,$junk) || preg_match(“/^TEST.*/”,$file,junk){ //Skip it print “Skip: $file\n”; }else{ //We want to edit this file print “–EDITING–: $file\n”; } } closedir($handle); } ?> This isn’t exactly the most complicated piece of code, but it was extremely [...]
PHP & CURL – Expectation Failed
I’ve been doing some reasonable amount of programming as of late, working for miscellaneous projects around the Wikimedia universe. I’ll announce the specific projects as I get things to a “finished” or releasable point. For now I thought I’d tease you with random bits of “fun” I encounter when working with PHP. Today’s posting is [...]
Why don’t people build mobile sites?
Over the years as I’ve spent more time on my cell phone for data access (markedly more since I got a company phone), I’ve wondered why more websites don’t have a mobile version. Of course there are a few big companies that have mobile versions (like Google) that are basically as good as their regular [...]