Articles
CSS best practices
Dec 16, 2015
π
5 minutes readπ
ArticleThere are a few ways of writing css. For consistency, we will adopt only one naming convention. This is lowercase and hyphen separated. It is the most readable and fits well with other CSS methodologies that are covered below.
Yes
No
Specificity
Keep y...
WordPress localhost redirects to live site
May 2, 2015
π
about a minute readπ
ArticleWhen you are developing on WordPress sites it's always quicker to work on a local machine/development server. It's essential to work from the same data as the live site so you can work effectively as possible so taking a copy of the live database and insta...
The joy of calc()
Nov 3, 2013
π
2 minutes readπ
Articlecalc() is a modern css function that allows you to do basic maths in a css file. You can use it to make semi fluid layouts with great ease. This means that you can have layouts with 1 fixed width column (or more) and the rest fluid. It doesn't just stop at...
Creating a chrome extension - an update
Jun 7, 2013
π
2 minutes readπ
ArticleSince I wrote my last post on creating a Chrome extension , there have been a few changes to how the extensions are built - mainly that the manifest version has changed to version 2. The original post is still fine, but there are a few tweaks needed. This ...
Arabic web fonts
Nov 16, 2012
π
2 minutes readπ
ArticleI've been looking for a good solution for Arabic web fonts for while now and have been hitting my head against the wall with the lack of options available to me or the cost of buying a font and hosting it myself.
Just as I was contemplating making my own ...
Changing the version of SASS in LiveReload
Jul 9, 2012
π
2 minutes readπ
ArticleLiveReload is great a great tool for any web developer. One of the most useful of it's features is the ability to compile SASS on save. Unfortunately the version of SASS that is included in LiveReload isn't the latest one and it just so happened that was t...
A Responsive Image jQuery Plugin
May 15, 2012
π
about a minute readπ
ArticleThere are a whole variety of ways that responsive images can be accomplished, but as of yet there is no perfect way of doing it without using a combination of .htaccess, javascript and css. My solution is no different and uses JavaScript (in the form of jQ...
Creating a chrome extension that uses jQuery to manipulate the DOM of a page
Dec 8, 2011
π
3 minutes readπ
ArticleThere are plenty of tutorials and guides on how to make a Chrome extension and there are hundreds for jQuery manipulation of the DOM. There are also a few about using jQuery in a Chrome extension, but only for the popup window. There seems to be a lack of ...
Flipping a UIImage
Sep 25, 2011
π
less than a minute readπ
ArticleFlipping 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....
Basics of the NSNotificationCenter
Sep 17, 2011
π
2 minutes readπ
ArticleThe 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...