Archive for the ‘Open Source’ Category

Probing PHP with Systemtap on Linux

DTrace is a dynamic tracing tool build by Sun Microsystems and is available for Solaris, MacOS and FreeBSD. It features a tracing language which can be used to probe certain “probing” points in kernel or userland. This can be very useful to gather statistics, etc. Linux comes with a separate solution called systemtap. It also [...]

Bookmarks Revisited Part II: Daily Bookmarking

Over the last years, Mercurial bookmarks have changed and became a mature core feature. We go into detail about the current way bookmarks work and how to use them for daily work.

I should…

blog more. Open topics: DTrace Part II, Mercurial Bookmarks Part II. blog more. Open topics: DTrace Part II, Mercurial Bookmarks Part II.

Xorg: Different options for different keyboards

So I have this esoteric problem that I have 2 totally different keyboards. The Happy Hacking Pro 2 (HHK) and the Realforce 103U. The happy hacking has a special, SUN inspired layout with the control key where standard keyboards usually have their caps. My Realforce 103U has a standard US layout. I am big fan [...]

Canonical Way to Build PHP 5.4 on Solaris 11

You need gnu-coreutils installed. $ wget -O php.tar.bz2 http://us.php.net/get/php-5.4.3.tar.bz2/from/this/mirror $ tar xvjf php.tar.bz2 $ cd php-5.4.3 $ ./configure \ –with-apxs2=/usr/apache2/2.2/bin/apxs \ –prefix=/usr/php/5.4 \ [other options] $ gsed -ibak ‘s,\-mt,,’ Makefile $ gsed -i.bak ‘s,\-i \-a \-n php5 libphp5\.la,-i -n php5 libphp5.la,’ Makefile $ make -j4 $ sudo make install $ vim /etc/apache2/2.2/conf.d/php5.2.conf ..change stuff to [...]

Removing a directory from a git repository the fast way

Note to myself: To remove a directory from an existing git repository there are various ways to do it. The obvious way is $ git filter-branch –tree-filter ‘rm -rf directory/’ Which is just fine for smaller repositories but can take a long time on large repositories with a lot of large files in that directory. [...]

Random thoughts about contributions

The PHP community announced that they will be switching to Git. This lead to some discussion on Twitter, wether it is good to go directly to Github or use git.php.net as the gateway to ensure control over ACLs. People were argueing that github encourages people to contribute and that the PHP community is stuck in [...]

How to run clojure.test in Slime and Swank

$ lein swank In emacs use M-x slime-connect to connect to swank. user> (use ‘clojure.test) nil user> (use :reload ‘geocommit.test.services) (run-test ‘geocommit.test.services) {:type :summary, :test 3, :pass 9, :fail 0, :error 0} $ lein swank In emacs use M-x slime-connect to connect to swank. user> (use ‘clojure.test) nil user> (use :reload ‘geocommit.test.services) (run-test ‘geocommit.test.services) {:type [...]

Locate your commits or how to use geocommit.

This blog post will show you how to use geocommit in your projects. It shows how to install the Chrome and Firefox extensions to add support for geocommit to github.com and bitbucket.org

Review remote changes offline in Mercurial

If you want to review remote changes from Mercurial offline you cannot use hg incoming. For sure there is a nice way to do it. So here is what I do to get changes from a repository to review them later without pulling them into my repo before reviewing. It also has the advantage that [...]