sudo write with vim
In case you edited a file only writable by root (or another user) in vim with an unprivileged user and now want to save it without using a temporary file (and copying back this files using sudo afterward), just issue the following command instead of ':w':
:w !sudo tee %
IFFT(Blogging frequency)
Inverse Fourier Transform of my Blogging Frequency:
That I'd call applied science ;-) (yeah, I know I should learn for tomorrows exam)
miniPOV Fun
Build it yourself (even I with my modest soldering skills managed to ;-)
inotail 0.5 released
Using branch prediction with GCC
The GNU Compiler Collection's (GCC) C compiler offers a not so commonly known builtin function for branch prediction named __builtin_expect(). It is mostly used in critical code (e.g. it's quite wide spread along some portions of the Linux Kernel source code) but can also be used to optimize your own application.
inotail 0.4 released
About two months after the last release, I released version 0.4 of inotail, a tail replacement using inotify. As of this version inotail uses buffers of optimal size (depending on the filesystem) for I/O (patch contributed by Folkert van Heusden). See the changelog for all changes. Debian packages should hit the archive soon.
Note: I'm currently working on correct tailing from pipes which would make inotail fully compatible to POSIX tail.
Now back to uni work...
libacpi - General purpose ACPI library

inotail 0.3 released
I just released version 0.3 of inotail, a replacement for the tail utility using inotify to speed up the follow mode (the '-f' option). This version doesn't contain new features but fixes for some minor bugs (see the changelog for details. Get the tarball for inotail 0.3 here: http://distanz.ch/inotail/inotail-0.3.tar.bz2
About: inotail is a replacement for the 'tail' program found in the base installation of every Linux/UNIX system. It makes use of the inotify infrastructure in recent versions of the Linux kernel to speed up tailing files in the follow mode (the '-f' option). Standard tail polls the file every second by default while inotail listens to special events sent by the kernel through the inotify API to determine whether a file needs to be reread.
Tagcloud
- Collection mit Namen "tagcloud" erstellen
- Davon die .configxml editieren und den folgenden Code einfügen:
<?xml version="1.0"?> <bxcms xmlns="http://bitflux.org/config"> <plugins> <parameter name="xslt" type="pipeline" value="tagcloud.xsl"/> <plugin type="navitree"> </plugin> <plugin type="tagcloud"> <parameter name="locations" value="/blog/"/> <parameter name="maxfontsize" value="56"/> <parameter name="minfontsize" value="20"/> </plugin> </plugins> </bxcms> - Das folgende in
themes/<theme-name>/tagcloud.xslablegen:<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:blog="http://bitflux.org/doctypes/blog" xmlns:bxf="http://bitflux.org/functions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:php="http://php.net/xsl" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rss="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" exclude-result-prefixes="xhtml"> <xsl:import href="master.xsl"/> <xsl:import href="../standard/common.xsl"/> <xsl:output encoding="utf-8" method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/> <xsl:template name="content"> <p id="tagcloud"> <xsl:for-each select="/bx/plugin[@name='tagcloud']/tagcloud/tag"> <a href="{$webrootW}{path}archive/tag/{name}" style="font-size:{size}px;"> <xsl:value-of select="name"/> </a>  </xsl:for-each> </p> </xsl:template> </xsl:stylesheet> - Et voilà



