Cheat Sheet Heaven

I just checked out a bunch of cheat sheets from Dave Child’s “Added Bytes” blog. There are sheets for:

  • Subversion
  • RegEx
  • mod_rewrite
  • PHP
  • CSS
  • SQL Server
  • HTML
  • Mircoformats
  • WoW
  • Ruby on Rails
  • ASP / VBScript
  • HTML
  • HTML Character Entities
  • JavaScript
  • MySQL

…and a RGB Hex Colour Chart.

I especially like the RegEx sheet with its pattern examples for email, save passwords etc.

via Nettuts.com

SEO cheat sheet

Selling SEO expertise as an extra service is a little bit like selling the top of a burger separately, since most of the job should be/could be done during the development process. So this is pretty cool: “THE” SEO cheat sheet for web developers. (via)

Using PHP to create TextMate commands

I just stumbled upon this on the TextMate blog: Ciarán Walsh wrote a blog post about using PHP to create custom commands for my favourite text editor/IDE/general weapon of choice: TextMate. TextMate already has a huge collection of snippets and commands for all kinds of languages that are easily expandable and that I use frequently. But I didn’t know you can use PHP to create custom commands. I will definitely try this out.

Link.

Finding color schemes with Adobe Kuler

There are tons of color scheme generators out there. Adobe Kuler is definitely one of the more complex. You can manipulate all kinds of parameters, like base color, brightness, scheming rule and so on. Plus you can extract colors from images.

Of course, there’s no webservice without a community these days, so if you register you can share your themes and downloads others to use them in Adobe’s Creative Suite if you find that useful.

PHP: UTF-8 and Spreadsheet Excel Writer

Spreadsheet Excel Writer is a handy tool to generate MS Excel files with php. But it has some trouble handling utf-8 sources. Luckily Research e-Labs describes a simple solution:

After recently working on an application to generate Microsoft Excel documents using a PHP script, I ran into trouble with the PEAR package “Spreadsheet Excel Writer” which didn’t correctly display UTF-8 characters (Māori macrons in this case). Here is a fix!

Google Static Maps

If you want to use google maps but don’t need a full-blown JS/Ajax map, you can now use static map images. The map is basically a request to maps.google.com that you can put into the src attribute of an image tag.

This little example outputs the image below:

<!--
center: latitude and longitude of the map center
zoom: zoom level of the map
size: image size - up to 512x512 pixels maximum
maptype: roadmap (default) or mobile
markers: markers with latitude/longitude
-->
<img src="http://maps.google.com/staticmap?center=52.521305,13.413509&zoom=14&size=512x200&maptype=roadmap&markers=52.518443,13.393717,greenh&key=APIKEY">

More Information here.

…but what about the Pretzel?

The Pretzel is probably one of the most beautiful peaces of bakery. Its design is pretty close to the infinity symbol so I use it in the title of this blog to keep my options open (in case I need a break from writing about cakePHP and web stuff).

By the way, it’s delicious.