Interesting Things

Richard Bradshaw's idea of what is interesting

Using Texter to speed up web design/development

Lifehacker’s Texter let’s you define short macros that allow you type a little, and get a lot back. I’ve not used this before, but am constantly finding myself typing the same bits over and over and over, so this is a very neat and helpful little tool. Basically, you just define a command, then specify [...]

Enable better caching on your website using PHP

Just a quick snippet to help you tell useragents accessing your site that the content hasn’t changed. ?View Code PHPfunction caching_headers ($file, $timestamp) { $gmt_mtime = gmdate(’r', $timestamp); header(’ETag: "’.md5($timestamp.$file).’"’);   if(isset($_SERVER[’HTTP_IF_MODIFIED_SINCE’]) || isset($_SERVER[’HTTP_IF_NONE_MATCH’])) { if ($_SERVER[’HTTP_IF_MODIFIED_SINCE’] == $gmt_mtime || str_replace(’"’, ”, stripslashes($_SERVER[’HTTP_IF_NONE_MATCH’])) == md5($timestamp.$file)) { header(’HTTP/1.1 304 Not Modified’); exit(); } }   header(’Last-Modified: [...]

7 differences between Linux and Windows

Background Having mainly used various linuxes over the last few years, I’ve returned to using Windows 7 on my main desktop (out of curiosity) and XP on my work laptop (out of the fact it’s not mine!). Thought I’d share somethings I’ve noticed now I’m moving between them daily.

Friendfeedifying your feeds

Although these tips are designed for feeds used with Friendfeed, the first two aren’t just for that – it’s just that Friendfeed exposes the extra functions in it’s interface. The third tip regarding SUP currently is only really relevant for Friendfeed.

5 terrible SEO ideas

Having looked at many small businesses websites, I’ve compiled a list here of 5 things that many of them are doing wrong with regards to SEO. I’m not saying that SEO isn’t important, but some techniques just don’t work. So, here goes…

5 ways to make using bash more productive

If you are using Linux or a Mac these days, then you likely have bash as your default shell. It generally comes with a few nice features (tab-completion, history etc.), but there are a few tips and tricks which will make it much nicer to use. Here’s a run down of my favourite 5.

Writing dynamic XML sitemaps using PHP

Since Google introduced sitemaps in 2005, they have grown to be accepted by the 4 main search engines: Google, Live Search, Yahoo and Ask. As the offical sitemaps page describes: Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, [...]

3 Ways Google Applications can enhance teaching

Having recently started working at a school where email, calendars, documents etc are hosted by Google Applications, I felt that it would be worth while incorporating these into my teaching and planning. This post describes the benefits I have found from this in the first few weeks, and will outline some plans that I have [...]

Benchmarking Chrome’s V8 Javascript engine

Having previously looked at the memory usage of Google’s Chrome, it’s time to analyse it’s much mentioned javascript engine, V8. Assumedly named after the engine with the same name, V8 compiles javascript to machine code, rather than bytecode to achieve greater performance. In this respect, it’s similar to Firefox 3.1′s TraceMonkey, a JIT javascript compiler again [...]

Google Chrome Memory Usage

Google Chrome Memory Usage, originally uploaded by Rich Bradshaw. Browsing to about:memory in Google Chrome gives you this interesting display showing memory usage for both itself as well as other browsers running. According to the browser, this is the memory usage of the following browsers on blank pages. (Although Chrome is on the about:memory page, that’s [...]