Suppose your git development process uses lots of branching. Yay branching. You want to keep them all up-to-date with the master branch, but constantly merging master into a dozen or more branches is a bit of a pain. Here's one way:
Problem: You want to host all of your web development sites in ~/Sites, and you don't want to fuck around with DNS and Apache configuration every time you start something new. Solution: DNS wildcards and Apache Virtual Hosting! The easier bit: get dnsmasq going Follow the directions here.
Grab a sudo shell and stay there: [shell]$ sudo -s [/shell]. So much nicer than [shell]$ sudo su[/shell] - it keeps all of your environment variables!
By default eXist expects all to find all the web apps in $EXIST/webapps.
PHP's PDO library (MySQL driver) has been throwing strange exceptions for any insert/update/delete queries:
Database error: SQLSTATE[HY000]: General errorIt doesn't matter what the query is. [php]$stmt = $pdo->prepare(); $stmt->execute()[/php] seems to be the problem, but the exception is also thrown with [php]$pdo->exec()[/php] and [php]$pdo->query()[/php]. Persistent connections don't make a difference. Running the query from the mysql command line is fine.