Author Archives: Julien Palard

How to check if a string is valid utf-8

Every day (at least) I’m facing a problem: how to check if a string is valid in utf-8 ? So I wrote a little C program, that I put on my github. Just be aware that pure ASCII is valid … Continue reading

Posted in Code | 3 Comments

emacs: standard input is not a tty

Did you ever tried something like : $ find -name ‘*.c’ | xargs emacs or $ grep -rl snmp . | xargs emacs and got the error “emacs: standard input is not a tty” ? That’s normal, as the stdin … Continue reading

Posted in Code | 2 Comments

Automating GNU screen startup

At work I use GNU screen with one window per server (ssh connection), and when I loose my screen, it takes minutes to rebuild the naming and the ssh connections … So I searched and found a PHP version on … Continue reading

Posted in Code | 2 Comments

ashttp: vt100 screen scraping exported over HTTP

Originally wrote for logtop I just wrote a vt100 screen scraper that listen to a port and serve the screen over HTTP. Basically, you want a `top` (or logtop ;-) ) to be displayed in your website back office ? … Continue reading

Posted in Code, Python, Sysadmin, unix | 3 Comments

squid: (101) Network is unreachable when DNS returns IPv6

If you have a Squid proxy configured on a machine that have no IPv6 connectivity, and try to reach an IPv6 compatible site, you squid will try to reach the site using IPv6 (I use squid 3.1.6 from Debian Squeeze) … Continue reading

Posted in Sysadmin | 24 Comments