Archive for category Asides
Using GIT to manage a website…
Posted by admin in Asides, Web design & development on February 21, 2011
Nice little write-up on pushing your local GIT repo to a live web site: http://toroid.org/ams/git-website-howto
Magazine framework in Javascript
Posted by admin in Asides, Web design & development on February 21, 2011
Incredible, clever, simple looking demo: http://demo.nomadeditions.com/real-eats/index.html
MySQL Command Line stopped working in Mac OS 10.6?
Posted by admin in Asides, Web design & development on February 16, 2011
Do what this guy says and add <tt>/usr/local/mysql/bin</tt> back into your paths file
Turn a text list into an HTML Select Option list with PHP
Posted by admin in Asides, Web design & development on February 3, 2011
Easy solution to this basic HTML coding need posted over at Stack Overflow by a random clever bloke. Thanks RCB.
<?php
$fc = file_get_contents('./test.txt');
$fc = utf8_encode ( $fc );
$lines = explode("\n", $fc);
$html = '<select>';
foreach($lines as $line)
$html .= '<option value="' . $line . '">' . $line . '</option>';
$html .= '</select>';
echo $html;
?>
My only issue was with UTF-8 characters coming through garbled. Bodged a workaround using this encode entities plug-in for Dreamweaver.
Zooming weirdness in Mac Photoshop CS5?
Posted by admin in Asides, Graphic arts on February 3, 2011
This is one of those stoopid things you trip over every now and then. Ever since I started with the CS5 upgrade Photoshop wouldn’t allow me to use a zoom marquee… instead it does a strange thing called “scrubby zoom“. This new feature means that when clicking and dragging the zoom tool your image will always zoom in towards the point you first click on. I’m sure this makes more sense to new users but nearly 20 years’ of muscle memory is very hard to shake!
The fix
Thanks to my colleague Aleksej for finding the answer for me. Just uncheck “scrubby zoom” in the contextual menu at the top of your Photoshop window!
I love the smell of Napalm in a teacup
What?
Your friend and mine [Google] says an acquaintance [Microsoft] has been copying their search results in order to get curried flavour [surely carry favour]. More details on the BBC and at a web-nag near you…
http://www.bbc.co.uk/news/technology-12343597
Hohoho.
Oh dear.
Weird line-height in Chrome?
Posted by admin in Asides, Web design & development on January 28, 2011
Specifying line-height on an <a> in a <li> will not work in your webkit based browsers. Line-height needs to be set on the containing <li> to work at all in Chrome or consistently in Firefox. Now you know.