I have a confession – I’m a console logging junkie. I just like to see what’s going on. While that may be great for development, at some point you’ll have to quiet the logging down for production. Really – doing enough logging will slow everything down each time you’ve inserted a console.log() into your code. …
Category Archives: Tutorials
PhoneGap + XCode4
There’s been a bit of confusion surrounding changes to XCode4 and PhoneGap. Right now the big ones are 1) Where did my PhoneGap user templates go!? and 2) How do I submit my PhoneGap-based app to Apple? Let me help you. 1) You want to create a new PG project, but you’re not seeing the …
Tell your Mac to say “Anything” (and record it)
This tutorial will show you how to record text to an audio file and convert it to an MP3 for use with PhoneBooth, or any other application you might want to use speech synthesis / text-to-speech recordings with.
If your site goes down, does it make a noise?
I don’t go to my brochure site very often. It’s there for the curious client who needs the reassurance that I know what I’m doing. Considering I haven’t made any significant changes in quite some time, I had no reason to go back, but apparently I should have. At some point my .htaccess file went …
Continue reading “If your site goes down, does it make a noise?”
Cocoa Zombies – NSZombie
Found this great little debugging tip over at MarkJ.net. The short of it: You can use NSZombie tracking to debug memory crashes in your code. Great find – this whole time I was kinda under the impression that there was a lot of educated guessing involved based on where your fingers last touched code. I’m …
Compiling PHP5.3.x on Snow Leopard
I like to wait quite a while before upgrading Mac OS X to the newest release because, for me, it often requires quite a bit of work. I had hopes that Snow Leopard would be different because Apple finally installed current versions of the whole LAMP stack, but I wanted to wait regardless… just in …
Installing PEAR Libraries Locally
[I started this post quite a while ago and forgot about it. Here it is finished. Hopefully you find something useful here] I’ve had a few projects already where I could really use some PEAR libraries but not sufficient enough access to the server so I could install them in the system-wide PEAR include directory. …
Using Pinch Media Analytics in PhoneGap
Getting close to finishing up an app for a client in the coming weeks, my business partner and I decided it would be a good idea to include some analytics code so we could track how people are using our application. We ended up using Pinch Media’s Analytics to do our tracking. It came down …
PhoneGap Up To Speed
I recently ran across some major performance problems with a jQTouch app running in PhoneGap. Some of the symptoms included long pauses on touch events, non-responsiveness, and laggy transitions. Brian LeRoux (Nitobi/PhoneGap), Jesse McFayden (Nitobi/PhoneGap), and David Kaneda (jQTouch) were the stars looking into this issue. Ends up Jesse found where the Accelerometer was taking …
ReadOnly Form Elements
Here’s a quick note for the frustrated: When setting the readonly parameter on a form element via javascript, make sure you use a capital “O” as follows: elem = document.getElementById(‘myInputElement’); elem.readOnly = true; Why it took me so long to find that out, I have no idea why. Most forums threads by others seem to …