-
Recent Posts
Tags
3d-printing AIR android apache captcha cocoa coding configuration configure emulator fair-work filter framework gaming hack hardware install ios iphone java javascript jira lion location maps media objc opinion php plugin portal random rant recording refactoring reputation review scrolling servlet social threading url-rewrite video wordpress xcodeCategories
Meta
Monthly Archives: February 2011
Reunion
And now for something completely different; some light fiction: Slowly and with much deliberation he approached, taking care to avoid her eyes and the fierce and beautiful and terrifying intensity that he knew must still burn there even after so … Continue reading
[JavaScript] setTimeout() and Closures
If you’ve done any amount of non-trivial JavaScript coding then you have probably come across the ‘setTimeout()‘ function before. In case you haven’t, this function takes a JavaScript expression and evaluates/executes it after a set delay (specified in milliseconds). For … Continue reading
[JavaScript] parseInt() Quirks
Here’s a subtle little feature of JavaScript’s ‘parseInt()‘ function that I recently stumbled across. The radix used in the parse will default to 8 (octal) if the string you are parsing includes a leading zero. For instance: …will return 7, … Continue reading
[Status] Upgrade Delays
I just found out that the Atom CPU and mainboard that I ordered is on backorder won’t be getting here until the end of the month (why did the site I purchased it from list it as “In Stock” when … Continue reading
Posted in status
Leave a comment
[Objective-C + Cocoa] UIScrollView and contentSize
So here’s a simple one. For whatever reason, a UIScrollView instance only behaves correctly if you programmatically set its contentSize when you use it. This is fairly silly because in most cases the contentSize is simply the total size of … Continue reading
[Cocoa + iPhone] UITableViewCell: It’s Broken!
I present for your consideration the following screenshot: It shows a basic table-view, in which each cell has been assigned the same image (using its built-in ‘imageView‘ property). The source image is 20 pixels square, and the imageView’s ‘contentMode‘ property … Continue reading
[Cocoa + iPhone] Unraveling Apple’s Pagecurl
First off, I encourage anyone that’s unfamiliar of this topic to read through this short but very sweet blog post on the subject (and to take a quick look at his sample code). We’ll be picking up where Steven left … Continue reading
[Site Status] Server Instability
The 10-year-old PC that I’m currently using to host this site seems to be going through an end-of-life crisis. If you’re reading this then it must currently be up (or you accessed Google’s cached version), but there’s no guarantee it … Continue reading
Posted in status
Leave a comment
[Objective-C + Cocoa] NSAutoreleasePool and Threads
If you have a multithreaded iPhone/iPad/Cocoa application, you are probably aware that for each thread you create you need to set up an auto-release pool for that thread. If you don’t do this then you’ll get some nice messages in … Continue reading
[C (and variants)] Pointer Declarations: You’re Doing it Wrong
It happens on occasion, in the programming world, that bad coding conventions become the norm. Consider for instance the following two lines of code: Both lines are equivalent as far as the compiler is concerned, but when a human being … Continue reading