Javascript MindFuck: Google Maps GeoCoder Callback with Parameters

If you have ever tried to geocode with google maps you have perhaps noticed that you can’t easy pass more data to the callback function. And geocoding on an array of addresses won’t work too, because you get always the result for the last entry of your array.

Read the rest of this entry »

New Bootstrap Version by Twitter

Today Twitter released a new version of their popular html/css boilerplate for webpages. A good time to introduce my favorite bootstrap features …

1. Icons, Icons, Icons

Bootstrap includes a fat icon sprite with 120 small icons from glyphicons.com. all have transparent background and are available in black and in white.

2. Inline Labels

Put some highlights in your texts with inline labels.

3. Real Button Porn

Buttons in different colors, with and without dropdown and in groups or lonely.

… and what is your favorite feature from twitter bootstrap?

7 Fields Every Database Table May Need …

No matter if you work with MySQL, MSSQL, PostgreSQL or another database system, there are some columns any database table most likely may need …

Read the rest of this entry »

Image Watermarks in WordPress

Here a quick and easy way to put watermarks in your images. Just copy the code in the function.php of the active theme and you can watermark your pictures in wordpress admin.

Read the rest of this entry »

Firefox 4 – Neue HTTP Header

Mit der neuen Version des Firefox wurden einige neue HTTP Header eingeführt die Entwicklern die Arbeit etwas erleichtern sollen und den Benutzer besser schützen.

Read the rest of this entry »

Nebel des Grauens – PHPFog

Man will ja in diesen Tagen fast nicht von Gau oder Super-Gau sprechen aber der Herr Lucas Calson, Gründer und Inhaber von PHPFog, wird die Ereignisse der letzten Tage sicher so bezeichnen …

Read the rest of this entry »

Translate your Site with Google Translate and jQuery

With the new Google Translate API and the jQuery Plugin from Balazs Endresz you can add more language versions within seconds.

Read the rest of this entry »

OAuth mit PHP am Beispiel der Twitter API

Auf den ersten Blick ist OAuth eine scheißkomplizierte Sache, aber mit dieser kurzen Anleitung und dem Zend Framework wird es plötzlich ganz einfach …

Read the rest of this entry »

PHP in der Cloud: cloudControl aus Deutschland bietet PaaS für PHP

Wer eine Webseite betreibt oder gar eine Webapplikation muss sich unweigerlich um Hosting und Server Administration kümmern. Dabei gibt es mittlerweile unendlich viele Möglichkeiten … aber jetzt kommt noch eine dazu: Platform as a Service (PaaS)

Keine Hardware Investitionen, nie wieder Server administrieren oder Sicherheitspatches einspielen müssen, das System skaliert automatisch und das Deploy wird einfacher: Das klingt doch alles wunderbar und das alles bietet SaaS!

Platform as a Service (PaaS) gibt es seit einigen Jahren für Java (Google AppEngine) oder für .NET (Microsoft Azure) aber für PHP sieht es derzeit noch etwas mau aus. Diese Lücke möchte jetzt cloudControl aus Potsdam schließen …

Read the rest of this entry »

PHP Commandline Script in Farbe

Bei PHP Gangster hab ich soeben eine kleine Klasse entdeckt mit der CLI Scripte farbige Ausgaben machen können …

Usage:

 
$color = new Color();
$color->set('red');
 
echo "red textn";
 
$color->reset(); 
$color->echoString("red text on bluen", 'red_u', 'blue');