TextMate 2
Dec 14
The long awaited and much anticipated release of TextMate 2 (alpha) has finally hit the Internet sporting a brand new app icon. Head on over to Macromates and get it downloaded!
Dec 14
The long awaited and much anticipated release of TextMate 2 (alpha) has finally hit the Internet sporting a brand new app icon. Head on over to Macromates and get it downloaded!
Oct 05
Another version of Firefox has been released and with it another nice new CSS3 property: text-overflow: ellipsis;. This will allow you to display an ellipsis (…) if any text overflows its containing element, making something which used to have to be done with JavaScript or on the server-side now much easier. You will, however, need to include some extra CSS properties to force the any text-overflow to take place:
p {
width: 300px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Support across other browsers is also very good with support from IE6+, Opera 11 (9-10 using the -o- prefix), Chrome and Safari.
Sep 10
If you’ve tried out any of HTML5’s new input types you’ll probably have noticed that WebKit adds its own default styling to search input fields. This can be a bit of a pain if you’re trying to achieve a particular layout, so you can remove them using the following CSS:
input[type="search"] {
-webkit-appearance: textfield;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
display: none;
}
Similarly, if you’re browsing the web on an iOS device you’ll notice that it also applies its own appearance to input and textarea elements: rounded corners, grey gradient in the background, etc. This is an even simpler fix, however:
input, textarea {
-webkit-appearance: none;
}
More on appearance can be found at the W3C editor’s draft.
Sep 03
There are a one or two points to note about your PHP configuration before (or after) you upgrade from Snow Leopard to Lion.
Firstly, PHP has been upgraded from 5.2 to 5.3.
I also discovered that my php.ini in /etc/ had been moved to php.ini.default-5.2-previous. This can easily be reverted, however:
sudo cp php.ini-5.2-previous php.ini
One other thing to note, though, is that any extensions you may have had installed under /usr/lib/php/extensions/no-debug-non-zts-20090626/ will have been removed. If you do have any, they will need to be rebuilt.
Jul 14
I’ve recently been setting up a new Mac Pro at work. However, when it came to setting up TextMate I realised that I couldn’t remember how I’d previously installed the GetBundles bundle or where I could find it. Plus, it doesn’t help that all the links in the original TextMate blog post are for the wrong version or don’t appear to work at all.
Google sorted me out with the answer though so I thought I’d stick it up here (mainly for my own benefit when I come to doing it again some time to be honest). In the Terminal:
mkdir -p ~/Library/Application\ Support/TextMate/Bundles cd !$ svn export http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle
If you use TextMate then install GetBundles, it helps a lot.
Sep 07
As some of you may have heard, Snow Leopard was released a week and a half ago. I pre-ordered my copy from Apple, but didn’t get round to upgrading until the following Monday. First impressions were great: faster boot up, sleep and shutdown times, Time Machine backed up quicker, and the extra 7GB back on my HDD was also welcome.
Then I checked my local development environment. Screwed!
Jan 29
Finally managed to get a bit of content up on here in the form of a few drawings I did some years back. Why not have a gander over to the old Artwork section…
Nov 22
54 Mind-blowing Digital Paintings
Absolutely amazing! Wish I’d put more effort in during art lessons…


I particularly like that Artgerm dude. Some of his are awesome.