bloggalerietagcloudalleslinks

List all GCC standard defines

List all standard defines:

% gcc -dM -E -  /dev/null

via

Ähnliche Beiträge:
Using branch prediction with GCC
sudo write with vim
Manpage direkt aus VIM aufrufen
grml 1.0 Pre-Release (and some more)
Tagcloud
Kommentare (1)  Permalink

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 %
Ähnliche Beiträge:
Manpage direkt aus VIM aufrufen
List all GCC standard defines
Tagcloud
pf ruleset (neu) laden
Unter OpenBSD sshd und sendmail neu starten
Kommentare (3)  Permalink

IFFT(Blogging frequency)

Inverse Fourier Transform of my Blogging Frequency:
Blogging Frequency and IFFT That I'd call applied science ;-) (yeah, I know I should learn for tomorrows exam)

Ähnliche Beiträge:
Frackwoche Fotos
Diplomarbeit: Done
105
Letzte Rasur
Final examinations over
Kommentare (3)  Permalink

miniPOV Fun

miniPOV! 1 miniPOV! 2

Build it yourself (even I with my modest soldering skills managed to ;-)

Ähnliche Beiträge:
Per un pugno di centesimi
Personalisierter Stundenplan
Postcard considered harmful
Kommentare (4)  Permalink

inotail 0.5 released

Today I released version 0.5 of inotail, the fast tail replacement. This version is just a minor bugfix release, see the changelog for details.
Ähnliche Beiträge:
inotail 0.4 released
inotail 0.3 released
Documented to work
Der Distro-Bash zieht seine Kreise
inotail is 1337 ;-)
Kommentare (0)  Permalink

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.

Ähnliche Beiträge:
List all GCC standard defines
Lese ganzen BeitragKommentare (0)  Permalink

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...

Ähnliche Beiträge:
inotail 0.5 released
inotail 0.3 released
Documented to work
Der Distro-Bash zieht seine Kreise
inotail is 1337 ;-)
Kommentare (5)  Permalink

libacpi - General purpose ACPI library

Nico Golde developed a library to easily gather ACPI information from a Linux system. Before releasing the library to the public he needs some people with different hardware configuration (e.g. two batteries in a laptop) to test. So if you got some minutes to spare, give it a try and provide feedback to Nico. Details on how to get the code etc. can be found in his blog.
Ähnliche Beiträge:
Documented to work
Der Distro-Bash zieht seine Kreise
inotail 0.5 released
inotail 0.4 released
LinuxTag 2007: Boykottieren oder trotzdem hingehen?
Kommentare (0)  Permalink

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.

Ähnliche Beiträge:
inotail 0.5 released
inotail 0.4 released
Documented to work
Der Distro-Bash zieht seine Kreise
inotail is 1337 ;-)
Kommentare (0)  Permalink

Tagcloud

Damit ich's nicht gleich wieder vergesse, die Anleitung aus dem Flux CMS DevBlog:
  1. Collection mit Namen "tagcloud" erstellen
  2. 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>
    
  3. Das folgende in themes/<theme-name>/tagcloud.xsl ablegen:
    <?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>&#160;
            </xsl:for-each>
            </p>
        </xsl:template>
    
    </xsl:stylesheet>
    
  4. Et voilà
Ähnliche Beiträge:
Manpage direkt aus VIM aufrufen
List all GCC standard defines
sudo write with vim
1 Jahr distanz.blog
Feed the spiders
Kommentare (0)  Permalink
Next1-10/12