Articles

December 08, 2011

Creating a chrome extension that uses jQuery to manipulate the DOM of a page

πŸ•‘ 2 minute read

There are plenty of tutorials and guides on how to make a chome extension and there are hundeds for jQuery manipulation of the DOM. There are also a few about using jQuery in a chome extension, but only for the popup window. There seems to be a lack of using jQuery to actually do something on a page. This is something that too me a while to get my head around and a bit of googling to figure out…

Keep Reading β†’

September 25, 2011

Flipping a UIImage

πŸ•‘ 1 minute read

Flipping an image using objective-c is so easy once you know how... That's it! Now to have it as an method we can use more conveniently, try this: Then we can send any image to it and it will return a flipped version.

Keep Reading β†’

September 17, 2011

Basics of the NSNotificationCenter

πŸ•‘ 1 minute read

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 functions happen in the app such as shutdown/sending to background because the user tapped the home button. In this example I will be doing just…

Keep Reading β†’

February 18, 2011

Preventing unstyled content before jQuery loads

πŸ•‘ 1 minute read

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 is that jQuery loads after the main page body and then executes. This takes time. One of the actions the jQuery needs to do is to hide() an…

Keep Reading β†’

February 01, 2011

Text Selection Color

πŸ•‘ 1 minute read

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 won't show this as it's CSS3

Keep Reading β†’

January 24, 2011

Turn off Chrome's textarea resizing

πŸ•‘ 1 minute read

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 size possible. Great. Great? While the ability to resize the text are to be the right size for the content being entered is a great feature…

Keep Reading β†’

November 11, 2010

Django Apps on MediaTemple and main.fcgi error

πŸ•‘ 1 minute read

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 file. Then restart the app and you should be good to go.

Keep Reading β†’

August 08, 2010

ie6 double float margin bug

πŸ•‘ 1 minute read

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.positioniseverything.net/explorer/doubled-margin.html for shining a light on, and fixing this issue.

Keep Reading β†’

July 07, 2010

ie 7 min-width and button bug

πŸ•‘ 1 minute read

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. It is un-fixable with just css and the only pure solution is to remove the min-width and either use width:auto; or use width:123px; If…

Keep Reading β†’

May 05, 2009

Accelerometer setup and usage

πŸ•‘ 1 minute read

To use the accelerometer in an iPhone application you need to add the <UIAccelerometerDelegate> into the .h file of your application: Then in your .m file you must setup the accelerometer:

Keep Reading β†’