7. Januar 2012 | Tags: apache, code, development, dns, domain, gtd, http, web
Auf meinem MacBook habe ich den Apache Webserver laufen1. Das an und für sich ist ja auch gar nichts schlimmes. Ich neige jedoch dazu, häufiger mal Dinge lokal auszuprobieren. Die Dinge die ich ausprobiere, sind dann immer hübsch ordentlich unter ~/Sites/webapp_a oder ~/Sites/wordpress_test_b, aber auf jeden Fall unterhalb des Site-Ordners in meinem Home-Verzeichnis.
Diese Ordner sind dann über etwas krude URLs wie http://localhost/~dennis/webapp_a/ mit dem Browser zu erreichen. Das ist erstens doof zu tippen und zweitens auch ein Problem, wenn man Dinge testen möchte, die darauf beruhen, eben nicht in einem Unterordner einer Site zu wohnen.
Das führte dazu, dass viel an /etc/hosts und dem DocumentRoot-Parameter der apache.conf rumgebaut wurde. Das macht mit zunehmender Ordner-Anzahl immer weniger Spaß.
Glücklicherweise gibt es aber Leute wie Sean Behan und Tim Pope die je eine Domain im DNS auf 127.0.0.1 auflösen lassen.
Das wiederum führt dazu, dass man seinen eigenen Computer unter http://smackaho.st/ und http://hexxie.com/ erreichen kann. Und da die beiden auch noch die Auflösung für *.hexxie.com und *.smackaho.st auf localhost zeigen lassen, kann man mit einer kleinen Anpassung der Apache-Config beliebige Subdomains auf dem eigenen Computer in beliebigen Verzeichnissen unter ~/Sites/ laufen lassen.
Einfach das hier in die Config einbauen2, den Apache neustarten und schon ist das Leben ein wenig leichter geworden:
<VirtualHost *:80>
VirtualDocumentRoot /Users/dennis/Sites/%1
ServerName automated_domains
ServerAlias *.hexxie.com
</VirtualHost>
Nun sind die obigen Beispiele unter http://webapp_a.hexxie.com und http://wordpress_test_b.hexxie.com zu erreichen. Einfach, elegant und äusserst praktisch.
(via: Kristóf Kovács)
10. Oktober 2011 | Tags: apache, apple, audio, backup, bookmarklet, browser, cli, code, configuration, converter, deployment, diff, dvd, editor, encoding, evag, fahrplan, flash, gem, git, gtd, h.264, hardware, howto, html, http, ipad, iphone, java, last.fm, linux, lion, mac, macbook, markdown, mercurial, merge, mp3, music, mysql, öpnv, osx, plan, plugin, quicklook, restore, rip, ruby, shell, snippets, text, timemachine, txt, unix, utf8, versioncontrol, video, vim, visualization, vrr, web, windows, youtube
Meine pinboard.in-Links vom 17. September bis zum 5. Oktober:
- threesome – is a Vim plugin for resolving conflicts during three-way merges. It's designed to be used as a merge tool for version control systems like Mercurial and Git.
- efa – is a commandline client for the http://efa.vrr.de web interface. It can request itineraries for train/tram/bus connections throughout Germany, based on various parameters such as date/time, preferred train types and such. It is most useful inside the VRR, but works fine for the rest of Germany as well.
- Format Factory – is a multifunctional media converter for Windows.
- qlmarkdown – is a simple QuickLook generator for Markdown files.
- LastHistory – allows you to analyze music listening histories from Last.fm through an interactive visualization and to explore your own past by combining the music you listened to with your own photos and calendar entries.
- How to clean Apple products –
- Bookmarklets for text manipulation – Quickly create markdown links to current page with selected text.
- Mass Deploying Time Machine in Mac OS X Lion – The tmutil command allows administrators to enable Time Machine, make snapshots, kick off backups, delete snapshots, perform restores, configure options within Time Machine and, with a little scripting, build a centralized dashboard, pulling in Time Machine statistics from clients.
- boom – motherfucking text snippets on the command line.
- HOWTO Use UTF-8 Throughout Your Web Stack – You write web apps. You understand the web is global, and want to support internationalization. You want UTF-8.
25. Juli 2011 | Tags: apache, bash, cacti, cli, code, config, dotfiles, editor, geek, howto, html, ip, itunes, linux, mac, markdown, mod_rewrite, monitoring, music, mysql, network, osx, pdf, php, scanner, search, shell, snmp, ssh, sysadmin, tcp, terminal, text, txt, unix, uri, url, vim, visualisation, visualization, web, wlan
Meine pinboard.in-Links vom 9. Juli bis zum 15. Juli:
- Marked – opens MultiMarkdown, Markdown, Text or HTML files and previews them as HTML documents. It watches the file for changes, updating the preview any time the file is saved.
- Stupid htaccess Tricks – this article covers just about every htaccess trick in the book.
- URL Rewriting for Beginners – A beginner's guide to URL rewriting, with plenty of examples.
- IP Scanner – scans your local area network to determine the identity of all machines and internet devices on the LAN.
- vitunes – lets you control and navigate iTunes from the comfort of Vim.
- DotShare.it – is the attempted solution to all of the sporadic "Post your X configs!" threads on various distro's forums.
- Cool, but obscure unix tools – Just a list of 20 (now 28) tools for the command line. Some are little-known, some are just too useful to miss, some are pure obscure
- Surfraw – provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power.
- Observium – is an autodiscovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems including Cisco, Linux, FreeBSD, Juniper, Foundry, HP and many more.
- HTML-Ipsum – A handy collection of dummy HTML markup, pre-greeked for your convenience.
1. Januar 2011 | Tags: 3d, animation, apache, bash, chat, clipboard, code, copy, editor, git, gmail, google, gtd, howto, html, http, irc, linux, log, mac, mail, mercurial, opengl, osx, paste, projectmanagement, ruby, screen, search, shell, sneakernet, solaris, svn, sync, testing, unix, usb, versioncontrol, vim, visualization, webserver, windows
Meine pinboard.in-Links vom 23. Dezember bis zum 1. Januar:
- Guide to using Screen and Irssi –
- logstalgia – is a website traffic visualization that replays or streams Apache web-server access logs as a pong-like battle between the web server and an never ending torrent of requests.
- gource – is a software version control visualization tool.
- The git pickaxe: finding changes was never easier – Wouldn't it be great if you could find all the changes to a line in your entire history? Sort of like git blame, but only for revisions that match some string.This is where git's pickaxe functionality comes in.
- ClipX – is a tiny clipboard history manager for windows. It is sweet, it is free, use it.
- Git sync via USB –
- Vmail – is a Vim interface to Gmail
- pit – is a command-line project manager that integrates with Git
- Cram – is a functional testing framework for command line applications based on Mercurial's unified test format.
15. Januar 2010 | Tags: 7, apache, apple, bbc, clone, code, dhcp, download, fedora, filesharing, frontrow, ftp, growl, gtd, http, hulu, image, imap, internet, iphone, iplayer, linux, mac, mail, microsoft, netflix, nfs, notification, ntfs, osx, perl, php, prowl, push, pxe, software, softwareengineering, stream, sysadmin, tftp, tv, ubuntu, upload, video, vista, web, webserver, windows, xp, youtube
Meine delicious.com-Links vom 4. Januar bis zum 15. Januar:
- MAP, ACT, WAIK, MDT: Windows 7 im Netz verteilen mit Microsoft-Tools – Schöner Überblick über die von Microsoft bereitgestellten Werkzeuge für die Verteilung von und Migration auf Windows 7.
- FOG – is a Linux-based, free and open source computer imaging solution for Windows XP and Vista that ties together a few open-source tools with a php-based web interface. Fog doesn't use any boot disks, or CDs; everything is done via TFTP and PXE.
- understudy – allows access to streaming video through the Front Row interface of Mac OS X. The user can subscribe to multiple feeds, and select a video to watch from them. Understudy currently supports Hulu, Netflix, YouTube, and to some degree the BBC iPlayer.
- Software Is Hard –
- GhettoPush – A Perl implementation of IMAP push for the iPhone with generic IMAP servers.
- HFS – Nice looking HTTP-Fileserver for Windows.
26. August 2009 | Tags: apache, apple, bash, code, computer, cryptography, howto, mod_ssl, network, osx, security, shell, ssl, sysadmin, terminal, web

Wenn man einen Webserver unter Mac OS X betreibt, und ausserdem möchte, dass die gesamte Kommunikation mit diesem verschlüsselt abläuft, wird man sich früher oder später mit dem mod_ssl-Modul des Apache Webservers befassen. Dieses fantastische Stück Software sorgt beispielsweise dafür, dass nicht jeder der im gleichen WLAN sitzt oder sonst irgendwie den Datenverkehr mitschneiden kann, auch die Usernamen, Passwörter oder sonstige interessante Daten frei Haus erhält. In dem oben stehenden Bild ist mein Login über HTTP schön zu sehen.
Wie man das ganze unter OS X recht flugs, allerdings auch nicht so richtig geeignet für ein echtes Produktivsystem, hin bekommt wird hier in fünf Schritten beschrieben.
- Erstellung einer eigenen Certification Authority (CA)
- Erstellung eines Private Key für den Web Server
- Erstellung eines Certificate Request für den gerade erstellten Private Key des Webservers
- Unterschreiben des Certificate Request mit dem Key der CA
- Anpassen der Apache-Configs
Weiter geht es nach dem Klick…
Weiterlesen →
12. August 2009 | Tags: apache, openid, password, php, plugin, security, singlesignon, web2.0, website, wordpress
OpenID ist ein dezentrales Single SignOn Verfahren das helfen will, die Legion der User/Passwort-Kombinationen zu reduzieren.
Die Idee ist, dass man sich einmal eine OpenID besorgt und sich dann mit dieser bei vielen Sites anmelden kann. Dazu wird meistens ein OpenID-Feld angezeigt in dem man dann die Adresse seiner OpenID einträgt. Die Login-Seite leitet dann zu der OpenID weiter. Sollte man sich im Verlauf der aktuellen Surf-Session noch nicht mit seiner OpenID angemeldet haben macht man das nun, wird wieder zurück auf die Seite geleitet an der man sich anmelden wollte und ist drin. Das ganze sieht dann z. B. so wie bei identi.ca aus:

Das ist sehr einfach und hört sich nur anfangs kompliziert an.
Das ganze hat aber auch Haken:
- Bei weitem nicht alle Websites des Internet unterstützen OpenID
- Manche Websites geben zwar OpenIDs aus, nehmen aber keine fremden an, so dass der ganze dezentrale Gedanke den Sinn verliert
- Man vertraut seine Login-Daten für eine ganze Menge Sites seinem OpenID-Provider an
Das letzte Problem lässt sich schnell lösen, wenn man einfach sein eigener OpenID-Provider wird.
Dazu braucht man im Prinzip nur ein bisschen eigenen Webspace der PHP kann und das Script PHPMyID. Da ich WordPress für meine Seite benutze, habe ich ausserdem noch das OpenID Delegate PlugIn heruntergeladen, das es sehr einfach macht OpenID-Anfragen an die richtige Stelle zu lenken.
Weiter nach dem Klick…
Weiterlesen →
28. September 2008 | Tags: apache, backup, bash, blog, instant-thinking.de, mirror, mysql, php, shell, sysadmin, tag, web, wordpress
Es gibt einige gute Gründe einen lokalen Mirror des eigenen Blogs zu erstellen. Eine nicht abschliessende Liste umfasst:
- Man kann nach Herzenslust an Themes, PlugIns und anderen Plumbing Bestandteilen der Website herumschrauben ohne dass die Besucher nur krude Fehlermeldungen zu sehen bekommen.
- Ein Live-Backup von dem man weiss dass es lauffähig ist kann man mit Geld gar nicht bezahlen
Billige Günstige Hoster legen ihren Usern manchmal nervige Steine in den Weg wenn es um Performance geht. Die Laufzeit für PHP-Scripte ist begrenzt, CPU-Zeit wird beschränkt, Hauptspeicher ist nicht unendlich vorhanden, etc.
Bei mir war gerade der dritte Punkt das Problem, denn durch diese Beschränkungen konnte ich nach dem Update auf WordPress 2.6 leider meine alten SimpleTagging Tags nicht in native WordPress Tags umwandeln.
3651 tag to post relationships waren einfach too much für mein shared hosting Paket…
Der Plan war also, die Dateien und die Datenbank aus dem letzten Backup zu kopieren und lokal auf dem MacBook zu installieren. Dort dann ohne jede CPU- oder RAM-Beschränkung die Konvertierung der Tags durchführen und die fertig konvertierte lokale Datenbank wieder zu dumpen und live auf instant-thinking.de zu stellen.
Danach wäre es ja nicht schlecht die Mirror-Erstellung zu automatisieren, um eine ständig aktuelle lokale Testumgebung zu haben. Vielleicht könnte man diese auch als Fallback einsetzen wenn die live Site mal offline gehen sollte…
Aber eins nach dem anderen…
Vorraussetzungen
- Ein Mac unter OS X 10.5
- Apache Webserver mit aktiviertem PHP und MySQL Datenbankserver
- Shell-Kenntnisse sind von Vorteil, aber eigentlich sollte das auch mit der Anpassung einiger Variablen per Copy & Paste gehen
Nach dem Klick gehts los…
Weiterlesen →
30. Juli 2008 | Tags: apache, bgb, blog, cheatsheet, code, deployment, fun, geek, graph, gtd, icq, ill, im, internet, jabber, list, mac, monitoring, msn, newyork, ny, osx, php, putty, rails, ror, ruby, spotlight, ssh, subversion, svn, sysadmin, tag, theme, tourist, visualization, web, windows, wordpress, xmpp, zombie
Meine del.icio.us-Links vom 29. Juli bis zum 30. Juli:
- StatSVN – retrieves information from a Subversion repository and generates various tables and charts describing the project development
- PuTTY Connection Manager – is a free PuTTY Client Add-on for Windows platforms which goal is to provide a solution for managing multiple PuTTY instances. Thanks for the link Fabian!
- Jabber/XMPP Server List – Nice overview of various jabber servers including their transports to other im-networks
- WordPress Function List – quick reference guide to expedite WordPress theme development
- Tag Folder – Nice looking tag-management for smart folders…
- Phusion Passenger – makes deployment of Ruby web applications, such as those built on the revolutionary Ruby on Rails web framework, a breeze.
- ZombieHarmony – One of the Best Free Dating Sites for Zombies – Lacking words…
- How To Not Be A Douchebag Tourist In NYC – Millions of people visit New York City every year. Unfortunately, naive visitors throw a wrench into the delicate gears of this busy city with their clueless meanderings and obtrusive groups.
22. Mai 2008 | Tags: apache, apple, awk, backup, blog, cli, code, gtd, hosting, howto, internet, iphone, iPod, leopard, mac, mail, mysql, osx, php, plugin, presentation, python, regexp, rss, sysadmin, theme, timecapsule, timemachine, unix, visualization, web, wordpress, zoom
Meine del.icio.us-Links vom 19. Mai bis zum 21. Mai:
- Transport: Time Capsule colocation and hosting – Place your TimeCapsule in a DataCenter on the Internet. Plans start at at 29$ per month…
- wptouch – a complimentary theme installed as a plugin on your WordPress blog or website that will format your content with this Apple-inspired, full-featured theme when your visitors are using an iPhone or iPod touch.
- Getting Started with awk – This qref is written for a semi-knowledgable UNIX user who has just come up against a problem and has been advised to use awk to solve it. Perhaps one of the examples can be quickly modified for immediate use.
- HotBox – is a background application that allows you to make anything on screen full screen
- Newspipe – is an RSS/Atom aggregator with a difference: It allows you to keep track of your feeds through e-mail – you create an OPML file listing your feeds and Newspipe will collect them, convert them to e-mail messages and send them to your mailbox.
- Supercharge Your MAMP Environment –