Archiv ‘Web’

Dienstag, 10. Juni 2008

Apache 1.3, MySQL 5 und PHP 5 unter Mac OS X auf UTF-8 trimmen

Mittlerweile habe auch ich den AMP-Stack auf meinem MacBook installiert und entwickle damit Web-Applikationen. Damit es bezüglich den Zeichensätzen koscher zu und her geht, musste ich folgende zwei Anpassungen an der Konfiguration vornehmen:

Apache 1.3

(Ich verwende aus Faulheit den mit Tiger mitgelieferten Apache – leider halt noch nicht 2.x)

In der /etc/httpd/httpd.conf wird mit folgendem Befehl eingestellt, dass im Header der HTTP-Antwort UTF-8 als Zeichensatz angegeben wird:

AddDefaultCharset UTF-8

MySQL

In der /etc/my.cnf

init-connect='SET NAMES utf8'

Bei jeder Verbindungsaufnahme (bspw. mysql_connect() via PHP) wird der Zeichensatz der ausgelieferten Daten damit auf UTF-8 geschaltet.

Selbstverständlich muss man aber immer noch aufpassen, in welchem Zeichensatz man Datenbank-Dumps exportiert und wieder einspielt …

Tags: , , , , ,
Labels: Linux, Web

Keine Kommentare | neuen Kommentar verfassen

Donnerstag, 5. Juni 2008

Samuel Schmid nicht mal ein halber Bundesrat mehr

Samuel Schmid war doch bis vor einigen Tagen auch noch „SVP-Bundesrat“? Die SVP-Zürich versucht sich wohl der Geschichtsfälschung …

Seit der Wahl 1929 von Rudolf Minger in den Bundesrat bis zur Abwahl von Christoph Blocher im Dezember 2007 war die BGB (bzw. die SVP) ununterbrochen in der Landesregierung vertreten.

Quelle: SVP Zürich – Geschichte

Tags: ,
Labels: Politik, Schweiz, Web

Keine Kommentare | neuen Kommentar verfassen

Freitag, 30. Mai 2008

Sanfte Haus-Renovation mit Facebook

A Brit-owned £4.4m Spanish villa has been laid waste by 400 rampaging teenagers after the owners‘ 16-year-old daughter posted invites to the mother of all wrecking parties on Bebo and Facebook, the Times reports.

Quelle: Facebook mob trashes £4.4m Spanish villa | The Register

Tags:
Labels: Funny, Web

Keine Kommentare | neuen Kommentar verfassen

Mittwoch, 28. Mai 2008

Vom Hammer und den Nägeln

Some of the largest sites on the internet — sites you probably interact with on a daily basis — are written in PHP. If PHP sucks so profoundly, why is it powering so much of the internet?

The only conclusion I can draw is that building a compelling application is far more important than choice of language.

Quelle: Coding Horror: PHP Sucks, But It Doesn’t Matter

Wie sagt ein Kollege immer so schön? Es kommt nicht auf die Grösse des Hammers drauf an, sondern wie man damit nagelt … Übertragen wohl: Es kommt nicht auf die Grösse des Hammers drauf an, sondern auf das, Haus, das man zusammennagelt. Oder so …

Tags: ,
Labels: Web

Keine Kommentare | neuen Kommentar verfassen

Dienstag, 27. Mai 2008

Das ultimative Mantra der Software-Entwicklung

„How will this software get my users laid“ should be on the minds of anyone writing social software (and these days, almost all software is social software). […]

Quelle: It’s Clay Shirky’s Internet, We Just Live In It

Tags: , , ,
Labels: Funny, Web

Keine Kommentare | neuen Kommentar verfassen

Freitag, 23. Mai 2008

Das RTC mag Mails mit PNG-Dateien nicht

Krass, sowas habe ich ja noch nie erlebt:

host mail2.rtc.ch[195.65.71.90] said: 550 Error: Sorry,
    we do not accept .png file types. Wir weisen png-Dateien ab. (in reply to
    end of DATA command)

… ein Wunder, dass sie überhaupt noch ASCII durchlassen *zwinker*

Tags:
Labels: IT, Web

Keine Kommentare | neuen Kommentar verfassen

Sonntag, 18. Mai 2008

PDF unter Mac OS X in ASCII-Text umwandeln

pdftotext

Wenn es auch HTML sein kann: PDF in HTML umwandeln? Gmail!

Tags:
Labels: IT, Linux, Web

Keine Kommentare | neuen Kommentar verfassen

Samstag, 17. Mai 2008

Facebook: Thumbnails gross machen

Nehmen wir zum Beispiel folgende Tochter einer polternden Schweizer Polit-Persönlichkeit:

profile.ak.facebook.com/v227/1979/56/q659507546_9812.jpg

Damit man aus dem Thumbnail (neudeutsch „Vorschaubildeli“) die grosse Version hervorzaubert, ersetze man das q in der URL (genauer: im Dateinamen, für all die, die URLs in ihre Bestandteil zerlegen können) mit einem n:

profile.ak.facebook.com/v227/1979/56/n659507546_9812.jpg

Bei Xing funktioniert es übrigens ähnlich.

Bleibt eigentlich nur zu hoffen, dass sie auch mal in die Politik einsteigt und die Quote innerhalb der Partei hebt. In letzter Zeit hat sich ja einiges zum besseren gewendet.

Tags:
Labels: Funny, Web

Keine Kommentare | neuen Kommentar verfassen

Donnerstag, 8. Mai 2008

Der Weltwoche-Hack

Wie immer nichts weltbewegendes:

Man logge sich unter Log-in für bereits registrierte Abonnenten und Abonnentinnen mit dem Benutzernamen roger und demselben (!) Passwort an.

Via: Alles Roger bei der Weltwoche

Es scheint, als würden Schweizer Web-Entwickler noch oft ein Passwort erlauben, das identisch mit dem dem Benutzernamen ist. Die Weltwoche ist da in guter Gesellschaft.

Tags: ,
Labels: Web

Keine Kommentare | neuen Kommentar verfassen

Montag, 5. Mai 2008

Riecht ihr das Startup?

One guy, I think it was TechCrunch’s Ouriel Ohayon, said he likes to visit startups to “smell the startup.” […]

Other journalists have told me they get nervous about a company if they claim to be a software house, yet there are too many “pretty people” running around. Engineers are rarely pretty. Or, if they are too scripted. Or if they have ostentatious offices. Startups should be in pretty cheap surroundings.

[…] back to the smell of the startup. The offices were in a low-cost place. They had what looked like used furniture. Clearly no expense had been overdone. And the people we met were geeky, passionate, and not very good on camera. Makes my job a little tougher, but tells me that we were in front of the real deal, not some dance and pony show. Funny, the same CEO even does his own videos on its Web site, along with the same cruddy furniture.

Quelle: The smell of a good startup

Wenn das Startup dann irgendwann mal den Schritt in die mittlere Reife gemacht hat und sich einen eigenen Büro-Komplex aus dem Boden stampft, hat man dann einen etwas grösseren Spielraum:

Then there’s our building. Steve Jobs basically designed this building. In the center, he created this big atrium area, which seems initially like a waste of space. The reason he did it was that everybody goes off and works in their individual areas. People who work on software code are here, people who animate are there, and people who do designs are over there. Steve put the mailboxes, the meetings rooms, the cafeteria, and, most insidiously and brilliantly, the bathrooms in the center — which initially drove us crazy — so that you run into everybody during the course of a day. [Jobs] realized that when people run into each other, when they make eye contact, things happen. So he made it impossible for you not to run into the rest of the company.

Quelle: Pixar’s Brad Bird on Fostering Innovation

Tags:
Labels: Arbeit, Web, Wirtschaft

Keine Kommentare | neuen Kommentar verfassen