header image
The Knack
September 28th, 2009 under This And That. [ Comments: none ]


Disk Wiping
September 27th, 2009 under Linux. [ Comments: none ]

I was looking for a way to wipe a whole disk. With *nix systems, this is very easy. Simply make use of

. So to wipe
1
/dev/sda
/dev/sda
execute

1
dd if=/dev/zero of=/dev/sda bs=1m
dd if=/dev/zero of=/dev/sda bs=1m

Well, it’s not DOD clean but enough for my data. To overwrite a drive with random data to wipe the drive more securely

1
/dev/urandom
/dev/urandom
or
1
/dev/random
/dev/random
can be used for the input file.


Search Bash History
September 27th, 2009 under Linux. [ Comments: none ]

I keep forgetting how to enable the history search of bash. So here is how to get it:

put

1
2
"\e[5~": history-search-backward<br />
"\e[6~": history-search-forward
"\e[5~": history-search-backward<br />
"\e[6~": history-search-forward

into

1
inputrc
inputrc

this gives us the history search on

1
Page Up
Page Up
and
1
Page Down
Page Down


AntTweakBar
September 24th, 2009 under OpenGL. [ Comments: none ]

Yesterday I discovered a great libraray for OpenGL/DirectX which allows you to easily add an interface to change varibales. It is called AntTweakBar.

What needs to be done is just to tell the library what your variables are and of what type they are. The rest is done by the library. So if you are looking for an easy-to-use but still visually appealing way to edit certain variables of your OpenGL/DirectX application this is certainly a library to look into.


:D
September 3rd, 2009 under This And That. [ Comments: none ]