Subdomains auf dem Laptop ohne Schmerzen

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)


  1. Der ist bei jedem Mac dabei, einfach das Web-Sharing einschalten. Total gut. 

  2. Den Pfad natürlich anpassen… 

QuickLinks vom 3. August bis zum 16. August

Meine pinboard.in-Links vom 3. August bis zum 16. August:

  • checksum – is a blisteringly fast, no-nonsense file hashing application for Windows that generates and verifies SHA1 and MD5 hashes
  • Web Developer Extension – adds various web developer tools to a browser. The extension is available for Firefox and Chrome, and will run on any platform that these browsers support including Windows, Mac OS X and Linux.
  • renameutils – are a set of programs designed to make renaming of files faster and less cumbersome.
  • Lion DiskMaker – is a small application programmed with AppleScript that you can use with Mac OS X 10.6 or 10.7 to burn a DVD or build a bootable USB key from Mac OS X Lion’s Installation programm.
  • ipswDownloader – Simple app for downloading firmware for Apple iPhone / iPad / iPod Touch.
  • LiveReload – monitors changes in the file system. As soon as you save a file, it is preprocessed as needed, and the browser is refreshed.
  • LESS.app – extends CSS with variables, nested rules, operators and more. If you're still building websites without it, you're an idiot. This app makes it dead simple to use {Less} by automatically compiling *.less files into standard CSS.
  • Project Hamster – is time tracking for individuals. It helps you to keep track on how much time you have spent during the day on activities you choose to track.
  • ControlPlane – Using a number of configurable evidence sources, rules and actions you can reconfigure your Mac based on what you are doing, where you are at or the time of day.  Set the office printer as your default printer while at work or start a set of apps once you’re home.
  • pow – is a zero-config Rack server for Mac OS X

QuickLinks vom 3. Mai bis zum 25. Mai

Meine pinboard.in-Links vom 3. Mai bis zum 25. Mai:

  • Sosumi – is a simple way to find your iPhone using your Mac.
  • NirCmd – is a small command-line utility that allows you to do some useful tasks without displaying any user interface.
  • GeoNamesTagger – is a Mac OS X docklet to easily update image EXIF, IPTC and XMP metadata with location specific information.
  • Oolite – is a space sim game, inspired by Elite, powered by Objective-C and OpenGL, and designed as a small game that is easy for users to pick up, modify and expand upon. Almost every aspect of the game can be changed by using simple, free graphics packages and text editors.
  • DTerm – provides a context-sensitive command line that makes it fast and easy to run commands on the files you're working with and then use the results of those commands.
  • Using p4merge with Git – Although it is correct that git doesn't come with a nice merge tool, it is quite happy to use any merge tool that you have on hand. And since Perforce's merge tool is available free, you can use p4merge with git.
  • Rubular – is a Ruby-based regular expression editor. It's a handy way to test regular expressions as you write them.
  • 5 Best Dropbox WordPress Plugins – Nice list, Dropbox Sync looks especially nice for a backup of all images.
  • Vagrant – is a tool for building and distributing virtualized development environments. By providing automated creation and provisioning of virtual machines using Oracle's VirtualBox, Vagrant provides the tools to create and configure lightweight, reproducible, and portable virtual environments.
  • Blueprint – is DevStructure's workhorse tool that looks inside popular package managers, finds changes you made to configuration files, and archives software you built from source to generate Puppet, Chef, or shell code. Everything blueprint sees is stored in Git to be diffed and pushed. It runs on Debian and RPM based distros with Python 2.6.

QuickLinks vom 9. März bis zum 20. März

Meine pinboard.in-Links vom 9. März bis zum 20. März:

  • Colored word-based diff – A wrapper that does what I want most of the time, and colorizes the output is cwdiff. Version control systems can easily be coerced into using this wrapper instead of diff.
  • Meslo-Font – Customized version of Apple's Menlo font. Great monospaced font for development work. Should also work with the Windows Console
  • The Ultimate Wget Download Guide With 15 Awesome Examples
  • Threshold – A universal quick entry field for OS X
  • Sidestep – is an open-source application for Mac OS X that sits quietly in the background, protecting your security and privacy as you browse the web.
  • blueMarine – An open source application for the digital photo workflow, the blueMarine project will provide you an all-in-one tool for managing your photos, from the shoot up to the archiving and beyond. blueMarine is an expandable, open platform and includes specific support for different photographers communities, as well as the latest technologies.
  • Insufficiently known POSIX shell features – all the tricks below work in every POSIX shell I know of. None of them are bashisms.
  • lipsync – is an open source, lightweight service that provides command-line, Dropbox – like syncing in Linux using OpenSSH, rsync, unison and lsyncd.
  • gfxCardStatus – is a menu bar application that keeps track of which graphics card your unibody, dual-GPU MacBook Pro is using at any given time, and allows you to switch between them on demand.
  • Darik's Boot And Nuke – ("DBAN") is a self-contained boot disk that securely wipes the hard disks of most computers. DBAN will automatically and completely delete the contents of any hard disk that it can detect, which makes it an appropriate utility for bulk or emergency data destruction.

QuickLinks vom 5. Januar bis zum 15. Januar

Meine pinboard.in-Links vom 5. Januar bis zum 15. Januar:

  • RFC 1855: Netiquette Guidelines – This document provides a minimum set of guidelines for Network Etiquette (Netiquette) which organizations may take and adapt for their own use.
  • Celerity – is a JRuby wrapper around HtmlUnit – a headless Java browser with JavaScript support. It provides a simple API for programmatic navigation through web applications.
  • cucumber-nagios – lets you describe how a system should work in natural language, and outputs whether it does in the Nagios plugin format
  • Traverso – Is an audio recording and editing program which is very well suited to record a single voice, a band, an ensemble, a whole orchestra or any other source of music
  • VimGolf – Real Vim ninjas count every keystroke – do you?
  • Ad Hoc Data Analysis From The Unix Command Line – Your friends: cat, find, grep, wc, cut, sort, uniq
  • Free e-books for Windows administrators – This is a list of free e-books that are useful for Windows administrators. It will be regularly updated.
  • Review Board – is a powerful web-based code review tool that offers developers an easy way to handle code reviews. It scales well from small projects to large companies and offers a variety of tools to take much of the stress and time out of the code review process.
  • Shelf – is an app for MacOS that looks at the current foreground application, and tries to figure out if what you’re looking at corresponds to a person in your Address Book. Then it’ll tell you things about them.
  • NanoCount – is a little utility for MacOS X. It provides a word count feature for TextEdit, OS X's built-in word processor.

QuickLinks vom 13. Dezember bis zum 22. Dezember

Meine delicious.com-Links vom 13. Dezember bis zum 22. Dezember:

  • RTMPDump – is a toolkit for RTMP streams that actually works.
  • z – maintains a jump-list of the directories you actually use
  • RubyDrop – Ruby project that aims to be an open-source, roll-your-own, Dropbox clone using Git as the backend. There's still a lot of details to work out, and the code may be a little messy, so you'll have to bear with me (it's a process)
  • Writing clean, testable, high quality code in Python – Catastrophically bad code can be written in any language, including the elegant and powerful Python language. In this article, we explore how thinking about testing actually produces dramatically different Python code. Lastly, we learn how to measure scientifically the difference.
  • tig – is a git repository browser that additionally can act as a pager for output from various git commands
  • Build a Bootable Rescue SD Card For Your Mac
  • Textual – is a lightweight IRC client created specifically for Mac OS X
  • Detox – is a utility designed to clean up filenames. It replaces difficult to work with characters, such as spaces, with standard equivalents. It will also clean up filenames with UTF-8 or Latin-1 (or CP-1252) characters in them.

QuickLinks vom 29. September bis zum 9. Oktober

Meine delicious.com-Links vom 29. September bis zum 9. Oktober:

  • Notational Velocity forked – Fullscreen mode, menubar app, and more…
  • MultiMarkdown Syntax Guide – This is a guide to the markup syntax used in the MultiMarkdown system.
  • WriteMonkey – is light, fast, and perfectly handy for those who enjoy the simplicity of a typewriter but live in modern times.
  • PDF Mod – is a simple application for modifying PDF documents. You can reorder, rotate, and remove pages, export images from a document, edit the title, subject, author, and keywords, and combine documents via drag and drop.
  • Emergent Task Planner – is a Daily Planning Sheet that provides a way for you to lightly structure your day. By helping you visualize the time you have, you can get a sense of just how much work you can get done done.
  • LiveView – is a specialized remote screen viewing application intended as a tool to help designers create graphics for mobile applications, it has also proven to be useful for creating quick and dirty simulations, demos, and experience prototypes.
  • we eat fine – "… ist eine sammlung von rezepten, die wir in unserem alltäglichen leben zubereiten. essen spiegelt für uns eine lebensphilosophie wieder und ist für uns (meistens) gleichbedeutend mit entspannung, genuss, kommunikation und kreativität." Bei der Kesro gefunden…
  • SparkleShare – is a syncing and collaboration tool that shines by its absence. Attempts to become a open source, self hosting, git based Dropbox clone…

QuickLinks vom 13. September bis zum 29. September

Meine delicious.com-Links vom 13. September bis zum 29. September:

  • Hyperdock – adds long awaited features to your Dock: Select single application windows just by moving the mouse on a dock item, use mouse clicks to quickly open new windows and many more. Apple should buy this and include it's features in 10.7…
  • subler – is an Mac OS X app created to mux mp4 files
  • JIRA – provides issue tracking and project tracking for software development teams to improve code quality and the speed of development.
  • Redmine – is a flexible project management web application. Written using Ruby on Rails framework, it is cross-platform and cross-database.
  • The Passive Splice Network Tap – works by connecting a sniffer's RX to either the RX or TX of the wire being sniffed. By having two RX interfaces on the sniffer, you can capture full duplex traffic on the wire.
  • Everyday GIT With 20 Commands Or So

Umlaute in wp-footnotes 4.2

In dieser kleinen Ecke des Netzes waren seit einiger Zeit die Fußnoten defekt. Anstelle der Umlaute und einiger anderer Zeichen wurden in der Mouse-Over Anzeige1 nur die HTML-Entities angezeigt. Die Fußnoten an sich waren ok.

Das Problem ist nun dank der aktuellen Trunk-Version des Plugins behoben, und wird somit auch im nächsten Release gefixt. Wer so lange nicht warten kann, lade sich einfach hier die Development Version herunter und installiere sie anstelle der Version 4.2.

Works like a charm.

(via: WordPress Suport)

  1. Genau so etwas meine ich damit… []

QuickLinks vom 21. Juli bis zum 30. Juli

Meine delicious.com-Links vom 21. Juli bis zum 30. Juli:

  • CloudBerry Backup – provides a powerful Backup and Restore programfor Windows, designed to leverage Amazon S3 storage to make your disaster recovery plan simple, reliable, and affordable.
  • TaskMate – Very simple, minimal and free ToDo-List manager…
  • sigil – is a multi-platform WYSIWYG ebook editor. It is designed to edit books in ePub format.
  • Fossil – Simple, high-reliability, distributed software configuration management
  • pymacadmin – A collection of Python utilities for Mac OS X system administration.
  • Notes – is designed to focus on organizing plain text notes that are saved automatically. Just write your note and don't worry about saving them.
  • Shotwell – Open source photo manager for GNOME which looks a lot like iPhoto…
  • Ubuntu Enterprise Cloud im Test – Windows Pro blickt über den Tellerrand und testet die Ubuntu Cloud Lösung auf Basis von Eucalyptus.
  • The version controlled home directory – managing dotfiles using Git, MR and a few handy scripts…
  • Versioning dotfiles in git