So I built a properties rental website and they wanted to show a marker on a google map for where the property was. Well before I could start plotting markers I needed to get the coordinates from the supplied address. Easy! Below is a handy function with simple usage. You’ll need to go and sign [...]
Archive by Author
Contact Form Hijacking – How to secure your PHP contact forms from header injection
When coding contact forms in PHP, most people don’t realize that unless they’ve taken the necessary measures, it will probably be vulnerable to header injections. This basically means that the attacker can put his own To and From into the email headers using the textarea or inputs in the contact form. Why do people do [...]
Mac: Don’t like pressing ALT+3 to do a hash #? Bind the \ backspace key to hash just like on Windows!
I like my Macbook. Great for coding and internet browsing. I can’t really game on it, but who cares when you’ve got a gaming machine for those times? One small thing that annoys me is having to press ALT + 3 every time I need a hash #. Whether it be for CSS ids or [...]
jQuery HTML5 Placeholder Input Fallback (for browsers that do not support the placeholder attribute)
Hey, placeholder is a really useful HTML5 feature but unfortunately not all browsers support it. So here is a small jQuery script that will replicate placeholder functionality for older browsers. Read more for the code.
atoChat v1.0.1 preview video
The video can be seen at http://atomiku.com/files/atochat/preview.html atoChat needs beta testers so please email me via the contact page if you’re interested in the free beta and leave me your email address so I can get back to you. Thanks. (atoChat v1.0.1 release imminent!).
My pastebin site is back online
After 2 years of the site being offline and the code hidden away on an old development machine, I decided to dig it up and put it online again. You can paste code at: http://paste.atomiku.com/. It has Private/Public Posts, Syntax Highlighting for almost every language and the ability to set an expiry time. Enjoy.
PHP function for Resizing and/or Cropping images with GD
There are a number of classes or functions available on the internet for resizing or cropping images, but none of them suited me for one reason or another… so here is my function. It supports JPG, PNG and GIF. It can resize an image by width, or create a cropped fixed size image. This will [...]
TotalFinder: Tabbed Mac Finder, Sort Folders on Top, and more
Sometimes while working on a project I would have 3 or 4 finder windows open at a time and things could get messy quite quickly. Trying to find a particular finder window that had been hidden under Firefox or Thunderbird for instance. The finder is very useful but I felt it was missing something… This [...]
Show CPU / Memory / Network stats and more in the Mac OS X menubar with iStat Menus
Hey, just thought I’d share a nifty application I recently discovered for Mac. It’s called iStat Menus and it allows you to view a wide range of different stats straight from the menu bar. Every menu such as network, CPU usage or memory have a number of customization options. Primarily the Color and Display Format [...]
Brilliant HTML/CSS3 form, input and validation styles
Below are a few excellent form designs I stumbled across while looking for inspiration. I will be adding more here as I stumble across them. Where possible, there are links to the tutorials or articles – the rest are just screenshots. WebTuts A great article / tutorial on how to design and develop a form [...]
TinyMCE: Simple config AND stripping formatting upon paste
Just a quick post to share my configuration options to get TinyMCE looking simple as possible for those times you don’t need 4 whole toolbars worth of buttons. This will also strip all formatting when there is content/images trying to be pasted into the text area. If you don’t care about stripping formatting, then only [...]
TinyMCE: Remove ‘path’ from status bar, Disable resizing, or remove the status bar completely
While working on a project, I have been playing with TinyMCE’s configuration options to suit my needs. I was looking to disable the status bar from showing as I was going for a simplistic set up. Providing you’re using the advanced theme in TinyMCE you will have these options available to you:
25 ‘Classic’ Fonts
http://blog.spoongraphics.co.uk/articles/25-classic-fonts-that-will-last-a-whole-design-career
From web developer to designer…
A great developer, but not so much a designer. It seems that over the years working as a web developer all my my focus went into just that… developing. I read online though that there are many people who work exclusively as developers and never design a PSD in their life. One of the pitfalls [...]
Simple jQuery plugin for Vertically Centering
Came across this while needing to vertically center a div within another div: 1234567891011(function ($) { // VERTICALLY ALIGN FUNCTION $.fn.vAlign = function() { return this.each(function(i){ var ah = $(this).height(); var ph = $(this).parent().height(); var mh = Math.ceil((ph-ah) / 2); $(this).css(’margin-top’, mh); }); [...]
Great WordPress Plugins
WordPress is certainly one of the most feature rich and user friendly publishing platforms available today. At the same time it is loved for its openness, extendability and great open source community. WordPress is today used in serious projects and on large commercial websites besides the millions of hard working bloggers sharing their valuable knowledge. [...]
Styling your WordPress Comments
I recently stumbled across a website that shows you how to customise your theme’s comments skin, and also provides you with some nice code/themes that you can drop into the template file, such as: Green Gravatar: The Speech Bubble: The blog post can be found at: http://www.darrenhoyt.com/2007/08/18/styling-your-wordpress-comments/. I realize though that it was written in 2007, and the wordpress code [...]
Fasthosts shared SSL and osCommerce: Not happening!
First things first: osCommerce will not work when using a shared SSL certificate on Fasthosts (and probably other hosts that use shared SSL, too). I had searched everywhere for a solution but nobody seems to be able to get it to work. I came close, but the closer I came the more problems occurred. Let me [...]
atoChat v1.0
Just a recap here, of some things that have changed in atoChat v1.0: Installer updated with new skin Now almost XHTML compliant Javascript moved to its own .js file, instead of being in the index.php All the ajax calls are much more stable now, it initializes it’s own xmlHttp object for each call instead of [...]
Adding/Editing Tables for posts in WordPress
http://wordpress.org/extend/plugins/mce-table-buttons/