Downtime (just a few hours)

I’m moving my website to a new server (to have php 5.4) – therefore the website will be down for a few hours.

Everything should be up and running in a few hours and I’ll use this (semi-interesting) blog post to mention how content I’m with my provider:
Today I asked if it was possible to move my account to another server with php5.3/php5.4-support because the current server offers php5.3, but only via CGI. This usually is not a big thing, but there are certain drawbacks: For example it’s not possible to use “flush()/ob_flush()”. (Well you can use it, but the page is being sent in one piece anyway). Of course php via CGI was the last thing I thought of .. Before that I tried lots of different esoteric stack overflow hints (“Always send a Carriage Return!”, “Send at least 200 characters before each flush()” and so on..) until I finally realized it might have something to do with the server.

Well, long story short, a few minutes (sic!) later I received an e-mail that this is no problem and my webspace can be moved to another server if desired.

By the way: It seems the Akismet Anti-Spam plugin has some major problems the last weeks – because 95% of all posts I receive for review are spam. Not a very big deal, because I’m talking about 10 to 30 posts per week and according to the stats last month about 19.000 posts were directly marked as spam… – but if you sent a useful comment and it’s not released yet, well that might be the problem, sorry..

This isn’t meant to be stupid advertising or to promote the partner-link below (you’re of course welcome to use it, but I think it’s only interesting for German users) – it’s rather a recommendation.

So, honestly recommended as provider: all-inkl.com.

ALL-INKL.COM - Webhosting Server Hosting Domain Provider (Partnerlink)

First streetwear label for human rights

Tellavision Clothing Streetwear
Tellavision clothing is such a great project: Kids in problematic environments can design their own streetwear fashion – these creations are sold online. 5 Euro of each sold item go directly to the local organization in India, Tanzania etc. And the designed shirts/hoodies look much better (and more unique) than lots of brand stuff you can buy these days. The project is also supported by terre des hommes and the clothes itself are organic, certified by several labels like GOTS, Fairwear, earth positive etc. Shipping currently only to Germany, so if you’re in Germany: Visit tellavision-clothing.com

My contribution was setting up and customizing the Magento online shop as well as integrating WordPress.

Tellavision Clothing Streetwear

Coda PHP & Web Toolkit: Keep single quotes with CSSTidy

My Coda plugin uses CSSTidy as a cleanup tool to (re)format CSS code. This works quite well, but it has a “feature” that isn’t always right: It removes single quotes from CSS. In this case the single quotes arond the url are removed:

background:#333 url('images/bg-stripes2.png') repeat 0 0;

In order to disable this behaviour here’s a quick workaround. Please note that updating the plugin removes this modification, so if I release the next version I hope I can add a configuration option for this but in the between time here’s how to quickly stop CSStidy from removing quotes:

  • Open the finder and go to (your user folder)/Library/Application Support/Coda 2/Plug-ins (Or “/Coda/” for Coda 1)
  • Right click on “PhpPlugin.codaplugin”, select “Show package contents”
  • Now navigate to “Contents” and then to “Resources”, you’ll see all the support files for the Coda PHP plugin
  • Find the file “csstidy.php” and open it with a Text Editor (I recommend TextMate or Coda itself)
  • Go to line 2958 which reads: $_cur_string = substr($_cur_string, 1, -1);
  • Add two slashes before this line, like this: // $_cur_string = substr($_cur_string, 1, -1);
  • Save the file, exit and restart Coda and you’re done

Of course making a backup of this file is recommended. If you totally screwed up something you can delete the plugin-file and reinstall it without problems :)