It is already possible to use filters in Git. But embedding the current file name in the expanded string is somewhat harder.
You can do this by some edit wrapper which inserts the file name “at the right time”, but I think it is much more cleaner to do this in the git-filter script.
For Puppet I want system administrators to see from which directory in the Git repository the file came from, like so:
If you know LaTeX, you know that precise float placement (I want this figure to positioned right here) is almost impossible. But what nobody told you is that there exists a float package (only since 2001 - maybe even earlier). With this package you get a new placement modifier: [H], which means: “Put this damn figure right here!”.
LateX users everywhere cheer.
Specifics are described in the pdf in the package.
I’m preparing a 0.2 version of the Go book I’m writing. There are lots of small tweaks in the text and in the layout. I still need to extend the number exercises (and enhance the answers a bit), but it is slowly coming together.
There is a new chapter on how to write programs that communicate with the outside world (via files, sockets, etc.).
Some infrastructure work includes an automatic code checker — sadly written in Perl.
Well, the upgrade was easy enough, some weird LDAP database corruption that was fixed easily by running db4.7_recover in /var/lib/ldap.
There is something fishy going on in /etc/nsswitch and using ‘files’ instead of compat. Got lots of segfaults:
[90474.491264] zsh[5668]: segfault at bfcf07ef ip 001be398 sp bfce4efc error 6 in libnss_files-2.12.1.so[1bc000+a000] Not enough for a bug report (yet), I still need to examine this further.
Hoppa: pxe + puppet + git werkt perfect, servertjes komen op en wordt autom. geconfigureerd
Thu Sep 30 10:53:30 +0000 2010
Nice idea and looks like a promising configuration tool: http://augeas.net/index.html
Thu Sep 30 12:14:45 +0000 2010
Helemaal in mijn sas met mijn nwe samsung galaxy
Thu Sep 30 20:15:15 +0000 2010
Replying to @bdekruijff
2 proggies, wat flashen en klaar. Ik ga snel ook de foon van @snavaes flashen
Tue Aug 31 05:32:11 +0000 2010
Mental note to self: nieuw toetsebord regelen. Die HP’s zijn ondingen
Tue Aug 31 09:25:36 +0000 2010
Ja, dat krijg je er nou van... http://tinyurl.com/36b59c8
Tue Aug 31 11:49:24 +0000 2010
Heb de flash kriebels: zo maar eens een nightly build op een hero flashen \(of 'm bricken\)
Write a number cruncher that works as follows:
Pick six (6) random numbers from this list: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 25, 50, 75, 100 Numbers may be picked multiple times.
Pick one (1) random number (i) in the range: 1 . . . 1000 Tell how, by combining the first 6 numbers or or subset with the operators +,-,* and /, you can make i;
I’ve tagged an 0.1 version of the book I’m writing: “Learning Go”. It currently has 7 chapters. The first five are finished. Chapter 6 and 7 still need work. The exercises can also use some (more) love. The current chapter list of “Learning Go” is:
Introduction Basics Functions Packages Beyond the basics Concurrency Communication To get it:
PDF download Gitweb repository If you have comments, text or exercises feel free to drop an email.
There are no formatting rules when writing Go code, but there is an official style. If you pipe your code through gofmt, its output is the official style. So while writing you need to occasionally execute: %!~/bin/gofmt (which I’ve wrapped in a command, so I only need to type :Fmt).
But the trouble is that executing this code resets the cursor to the first line and you then have to jump back to whatever line number you were on.
The last couple of days I’ve been working on (better) DNS support in Go. I think it would be very nice to get something like ldns in Go, but then in less lines of code.
I’ve just published the first code on godns @github. This is heavily based on the DNS implementation currently in Go, in the net-package. Current additions consist of:
AAAA support; Parsing rdata to hex or base64; Groundwork for DNSSEC types (DS, DNSKEY, RRSIG); Groundwork for EDNS0.
I have done programming in (or at least looked at) the following computer languages during my live. Of course the world is not a perfect place, but some languages out there are just plain awful.
BASIC - with line numbers! At the time (I was 11) didn’t know there was something else out there. Fun and easy language, although I never programmed in it ever again.
Pascal - After BASIC, there is no going back to Pascal.
Warm welkom voetballers Noord Korea: http://tinyurl.com/2cz7l4c Warm lood wrs
Wed Jun 30 10:08:59 +0000 2010
Replying to @danielaukes
je moet gewoon veel drinken, dan komt het wel goed
Wed Jun 30 12:24:21 +0000 2010
En toen was het officieel: per 1 sept treed ik in dienst bij SIDN. Jeuh!
Wed Jun 30 14:28:47 +0000 2010
\(even algemeen\) dank. Ja, ik ga met DNSSEC pielen, maar ook nog \(veel\) andere zaken.
I’m still “writing a Go Book” which boils down to playing with , Go and Vim.
Building the whole document might be a bit tricky, because of all the packages you may need.
Assuming you already installed TexLive on your system, you will further need to apt-get install:
texlive-xetex ttf-droid latex-cjk-common latex-cjk-japanese-wadalab latex-cjk-xcjk latex-xft-fonts latex-fonts-recommended ttf-sazanami-gothic inkscape (for .svg to .pdf conversion) Which should make it build. If not, please let me know.
I did a small upgrade to the newest version of Chromium and all of the sudden the fonts in the browser area were all blurry and fuzzy…
After some searching it turned out that WebKit (which Chromium uses for the rendering) uses the settings from font-config instead of the whatever you click inside your DE’s configuration tools.
% fc-match -v Arial | egrep 'family|hint' family: "Arial"(s) familylang: "en"(s) hintstyle: 1(i)(w) <- '1' means slight hinting hinting: FcTrue(w) autohint: FcFalse(s) And to remedy the situation:
After reading the Android Book from O’Reilly I saw some nice use of bullets alongside source code which allowed for extra explanation to be given after the code. I thought only one thing: I want to use that too, but then in . After fiddling around for an evening it finally looked like this:
There are two ways you can do this. The easy way is to write a few macros which create numbered bullets in the code and then use these numbers manually after the code to add your explanation.
In ubuntu 10.04 gebruikt openoffice nog steeds z’n eigen print dialog... Geef mijn maar Abiword
Mon May 31 20:45:33 +0000 2010
@snavaes eet morgen niet mee. Nu dus een dilemma. Friet of Chinees?
Mon May 31 20:48:39 +0000 2010
I’m writing a book about Go. It is very much a work-in-progress, but I just wanted to mention this work and publish a snapshot. The aim is to explain Go and to provide many (many) exercises (and answers) so people may learn this wonderful language.
It is written using (of course), see gitweb for the code.
Help is appreciated. The pdf of today (aka daily build) can be found here.
Dronken in #Utrecht, altijd goed
Fri Apr 30 16:55:07 +0000 2010
Op weg naar huis, misschien nog een biertje in de voortuin
Fri Apr 30 17:33:42 +0000 2010
I have an Asus EeePC on which I’ve installed Ubuntu 9.10. But now I wanted a working hibernate (suspend to disk) and suspend (suspend to memory).
Hibernate was working out of the box (well the going to sleep part, at least), but resuming took almost as long as a cold boot. Another thing was that my wireless was broken after a resume. On my happiness scale (range: 0-10) this scored a 3.
@digiplace heh :) Ik ga nu precies hetzelfde doen. Op naar de kelder!
Sun Feb 28 14:11:50 +0000 2010
Goed nog 100G backuppen en ik kan beginnen met installeren
Sun Feb 28 15:21:07 +0000 2010
Hmmm, zo weer ff de single user mode in om /home ext4 te maken en dan weer alles fixen \(kerberos, ldap, etc\)
Sun Feb 28 17:16:28 +0000 2010
Tip: maak een text dump van je ldap database als je van 32 bit naar 64 bit upgrade
I want to upgrade my server to the new Ubuntu and switch to 64 bit on my main server. This is how I managed to get Ubuntu Lucid (Alpha 3) running on my (test) machine, with RAID1 + BTRFS and 64 bit. It is a running story on how I spend my Saturday afternoon, you might need some decent Linux knowledge to follow my lead.
Here we go.
The following lists sums up my needs and troubles:
I’m no fan of Word or OpenOffice for that matter, all that WYSIWYG stuff is not for me. For years now I’m using LaTeX for my editing needs. An added bonus for using LaTeX is that the output is stunning.
But for really nice looking output I wanted the following:
Fonts in images/graphics should match the font of the main document TrueType fonts, instead of the standard TeX fonts. To avoid the “Heeh, that looks like a LaTeX document”-reactions; UTF-8 support and international character support; Easy integration of images (SVG based); Automatic building.
’t was ff pielen, maar nu heb ik een mooie LaTeX mal voor Go, nu dan het moeilijkste: content
Sun Jan 31 11:41:05 +0000 2010
met fdisk /dev/sda kijken of je uberhaupt nog Windows hebt, maar die is dus echt weg \(dan maar geen HTC rom flash\)
Sun Jan 31 12:51:30 +0000 2010
redelijk in mijn nopjes met de layout: http://tinyurl.com/yezh73l
Sun Jan 31 15:39:24 +0000 2010
Fout gemaakt door 24 te gaan kijken
During the last few weeks I’ve attempted to translate the Go tutorial to Dutch. This was a lot more work than anticipated and I’m still not finished, but I just wanted to share what I’ve got up to now.
You can get the text version here.
Things do
Finish translating the last few paragraphs; Proof read; Spell check; Update it to the latest Go release; Get this included in Go?