Articles



Basics of the NSNotificationCenter

Sep 17, 2011

πŸ•‘
2 minutes read
πŸ“–
Article
The uses of NSNotificationCenter can be many; It is handy for using to notify the app that a background download of data, a post of some kind is done, or some calculation is finished. It can also be useful for letting sub views know when some root level fu...

Preventing unstyled content before jQuery loads

Feb 18, 2011

πŸ•‘
about a minute read
πŸ“–
Article
jQuery is a very powerful tool but because of it's size it can be quite slow to load, and on some older devices it can also be slow to "boot up" and become ready for action (I'm looking at you iPad/iPhone!) Why is this a problem? In my case the problem i...

Text Selection Color

Feb 1, 2011

πŸ•‘
less than a minute read
πŸ“–
Article
A lesser know property of CSS3 is the selection property. This allows you to change the properties of text when selected so you can highlight it in any way you want This sentence should highlight in black. And this in red. Don't forget that some browsers...

Turn off Chrome's textarea resizing

Jan 24, 2011

πŸ•‘
about a minute read
πŸ“–
Article
When building forms for websites, much time can be spent making sure that all the elements fit together in a nice way, all lining up and looking neat. So then along came Google's Chrome browser and with it came the ability to drag resize a text area to any...

Forcing iOS phone numbers to link on a webpage

Dec 14, 2010

πŸ•‘
less than a minute read
πŸ“–
Article
If you ever wondered how to remove the auto phone number conversion on web pages then look no further. Just place this in the head of your document and all should be OK....

Django Apps on MediaTemple and main.fcgi error

Nov 11, 2010

πŸ•‘
less than a minute read
πŸ“–
Article
I was having had an issue with Django on my MediaTemple hosting and the urls being affected by a certain main.fcgi. It happened a while back, and then again recently so I decided to share the solution I found. Simply add the following to your settings.py ...

ie6 double float margin bug

Aug 8, 2010

πŸ•‘
less than a minute read
πŸ“–
Article
Here is the quickest fix I have found for fixing the ie6 double float margin bug, where all margin values are doubled on floating elements. Just apply: And the element float will be rendered as expected. Go figure...Thanks to http://www.positioniseveryth...

ie 7 min-width and button bug

Jul 7, 2010

πŸ•‘
about a minute read
πŸ“–
Article
A bug for anyone needing ie7 compatible forms using a min-width on the buttons. This also affects ie8 running in compatibility mode. If you are using a min-width for your form submit buttons then sadly ie7 will align button text to the right of the button...

Accelerometer setup and usage

May 5, 2009

πŸ•‘
less than a minute read
πŸ“–
Article
To use the accelerometer in an iPhone application you need to add the into the.h file of your application: Then in your .m file you must setup the accelerometer:...

Creating and using an Array of objects in Objective-C

Apr 4, 2009

πŸ•‘
less than a minute read
πŸ“–
Article
First we need an array to hold the objects (in this case bullets) To remove an object from the array use:...

Objective C Timer

Jan 1, 2009

πŸ•‘
less than a minute read
πŸ“–
Article
This is a simple timer, you may need to declare some variables in the .h file....