reboot-safe cfg of thinkpad HIDs

Posted in Uncategorized by Julian Kessel - Jun 02, 2011

I used to configure my trackpoint and touchpad w/ gpointing-device-settings, this way cfgs are non-persistent. I achieved persistency through the following method: prepend the following to the launch of the wm in ~/.xsession xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation" 1 xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Button" 2 xinput set-prop 'TPPS/2 [...]

Tags: COMMENTS

Show dd ‘s progress on OSX

Posted in Uncategorized by Julian Kessel - Feb 06, 2011

Simply using kill -USR1 or -USR2 on dd's process id while copying bytes around doesn't work on OSX. You have to use -SIGINFO or -s SIGINFO to achieve that result. Unfortunately trying the first two signals kills the process completely so you have to start from the beginning.

Tags: COMMENTS

scanf vor switch/case und in do/while – ein gcc bug?

Posted in Uncategorized by Julian Kessel - Jan 24, 2011

Mir ist neulich in einer schulischen Arbeit ein merkwürdiges Verhalten des C input managements – ich nenne es mal so,  aufgefallen. Im folgenden Code überrennt das Programm nämlich einfach den letzten scanf() vor einem switch/case Ausdruck sogar! wenn unmittelbar davor den input buffer (stdin) geflusht wird: #include <stdio.h>   int main(){ char op; float inp1,inp2,erg; [...]

Tags: COMMENTS

As I followed this post I ran into this error: /libexec/ld-elf.so.1: Shared object "libintl.so.8" not found, required by "wget" Luckily, there is a simple workaround for that, simply set a link to an older? version of the library: <code>ln -s /usr/local/lib/libintl.so.9 /usr/local/lib/libintl.so.8</code> Write this to the PostInit routines under System -> Advanced -> Command Scripts [...]

Tags: COMMENTS

Creating piezoelectric oscillator symbol in LaTeX

Posted in Uncategorized by Julian Kessel - Sep 25, 2010

{\textSFx\textSFix \fbox{\begin{minipage}{5in}\vspace{10pt}\end{minipage}}\textSFviii\textSFx}

Tags: COMMENTS

Hex Addition function

Posted in Uncategorized by Julian Kessel - May 02, 2010

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 def add_hex(arr): result = 0×0 index = 0 while True: print index try: result = result + int(arr[index], 16) + int(arr[index+1], 16) except IndexError: try: result = result + int(arr[index], 16) except IndexError: pass result = hex(result) [...]

Tags: COMMENTS

Install additional packages on pfSense 1.2.3-RC1

Posted in Uncategorized by Julian Kessel - Oct 14, 2009

There is no package manager in pfSense 1.2.3-RC1, though you can install FreeBSD ports via “Diagnostics > Command”. Type pkg_add URLofthePackage.tbz in the field and press return. the packages can be found at ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/category (BTW. there’s a complete list at the parent directory) In most cases you will have to use a SSH or serial [...]

Tags: COMMENTS