Quantcast
Browsing all 22 articles
Browse latest View live

JSON

I’ve pimped the minijson code in EvolvisForge to be a full-blown JSON encoder and decoder (lexer/parser) now. You wouldn’t believe just how much is broken in PHP (its own json_encode handles floats...

View Article


How (not to) encode MIME headers

I was just tracking down why some mails seem to have garbled Subjects. It looked like this in Alpine: Subject: [BOFH commits] r2040: fix directory struct...

View Article


Jenkins und die APT-Repositories Ⅱ

As reported earlier we’ve got some kind of Jenkins/APT integration, with automatically generating as many repositories as a job desires. News are that the builds host has moved, so the URIs to the...

View Article

How to find out when to a git repository was last committed?

git log -n 1 --all --full-history --pretty=format:'%cD' This should™ scan all branches, take the chronologically last commit and output its committer date. Still doesn’t take into account...

View Article

Fun with ssh pubkey auth

Okay, so imagine this: you just generated an SSH RSA key and threw its public part on system B into ~foo/.ssh/authorized_keys and its private part on system A into ~bar/.ssh/id_rsa but can’t login....

View Article


Send Alt-SysRq-* to virt-manager guest using virsh

virsh send-key guestname KEY_LEFTALT KEY_SYSRQ KEY_H This doesn’t work in virt-manager, but the virsh CLI tool is just fine. PS: zerofree rocks! And can be installed in Grml 2011.05 just finely.

View Article

SSD

Following the Wiki I put “discard” entries into my fstab(5) for swap (but not / as it’s suggested to use fstrim instead, and I had noatime for /boot and relatime for / already) and changed the...

View Article

Nicht Hardlink, sondern…?

TANSTA “softlink”. ITYM: symlink(7) Actually, there’s “link” (also “hardlink”) and “symbolic link” (short “symlink”). (Oh, and reparse points, but let’s not get there, lest we mention *.lnk files…)...

View Article


iCalender and timezones

Okay. I just created three events at tomorrow 10:00 CEST (08:00 UTC), on three different accounts on the very same Debian Lenny machine. All three use nxclient to log into KDE 3, with Kontact/KDEPIM...

View Article


git rebasing considered harmful

git rebase is problematic (from a version control system user point of view) because it rewrites history. We all knew that. But did you know that git pull --rebase, commonly used before a git push, can...

View Article

PSA: #shellshock still unfixed except in Debian unstable, testing, *buntu LTS

I just installed, for work, Hanno Böck’s bashcheck utility on our monitoring system, and watched all¹ systems go blue. ① All but two. One is not executing remote scripts from the monitoring for...

View Article

Tip of the day: bind tomcat7 to loopback i/f only

We already edit /etc/tomcat7/server.xml after installing the tomcat7 Debian package, to get it to talk AJP instead of HTTP (so we can use libapache2-mod-jk to put it behind an Apache 2 httpd, which...

View Article

Valid UTF-8 but invalid XML

Another PSA: something surprising about XML. As you might all know, XML must be valid UTF-8 (or UTF-16 (or another encoding supported by the parser, but one which yields valid Unicode codepoints when...

View Article


Tip of the day: don’t use –purge when cross-grading

A surprise to see my box booting up with the default GRUB 2.x menu, followed by “cannot find a working init”. What happened? Well, grub:i386 and grub:x32 are distinct packages, so APT helpfully decided...

View Article

Tip of the day: prevent iceweasel from mkdir ~/Desktop

If you’re a Unix person instead of e.g. a Microsoft® Windows® person, you’ve probably been annoyed by Iceweasel (or Mozilla™ Firefox®) creating a ~/Desktop directory, among others (things like...

View Article


Debian/m68k hacking weekend commencing soonish

As I said, I did not certain events that begun with “lea” and end with “ing” prevent me from organising a Debian/m68k hack weekend. Well, that weekend is now. I’m too unorganised, and I spent too much...

View Article

Debian/m68k hacking weekend cleanup

OK, time to clean up ↳ tarent so people can work again tomorrow. Not much to clean though (the participants were nice and cleaned up after themselves ☺), so it’s mostly putting stuff back to where it...

View Article


Java™, logging and the locale

A coworker and I debugged a fascinating problem today. They had a tomcat7 installation with a couple of webapps, and one of the bundled libraries was logging in German. Everything else was logging in...

View Article

tomcat7 init script is asynchronous

TIL: the init script of tomcat7 in Debian is asynchronous. For some piece of software, our rollout (install and upgrade) process works like this: service tomcat7 stop rm -rf...

View Article

tomcat7 log encoding

TIL: the encoding of the catalina.out file is dependent on the system locale, using standard Debian wheezy tomcat7 package. Fix for ‘?’ instead of umlauts in it: cat >>/etc/default/tomcat7...

View Article
Browsing all 22 articles
Browse latest View live