First install the 32-bit libraries sudo apt-get install ia32-libs
Then download the latest Binary from ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/ with the ending …i486linux_xxx.bin, make it runable chmod u+x file and run it with sudo ./file
Java HTML Parser
Longboard Stuff
Subclipse and Ubuntu
Subclipse will need the JavaHL Library so you have to install libsvn-java. The latest version of libsvn is 1.6.x but not compatible with the latest version of subclipse ![]()
Solution 1
use subclipse 1.6
Solution 2
use subclipse 1.8 and update the libsvn. Dominik Stadler has the latest packages in his PPA https://launchpad.net/~dominik-stadler/+archive/ppa
Scrolling with jQuery
Scroll directly
$("html").attr({ scrollTop: $(document).height() });
$("html").attr({ scrollTop: 0 });
Scroll animation
$("html").animate({ scrollTop: $(document).height() }, 800);
$("html").animate({ scrollTop: 0 }, 800);
Tokenizer for Linux Shell (cut2)
About a year ago, i coded a little command line tool to tokenize data from a file or stdin and print each token as new line to stdout. Now you can use grep, sort or cut to manipulate the data further. As delimiter you can use any string you want and it will be left out in the result.
After make copy the cut2 binary to /usr/bin/ and you can use it like every other command line tool.
Usage: cut2 -d DELIM [- | filename]
Have fun
update: improved code now available at github
Useful Git Stuff
- restore all deleted files
git ls-files -d | xargs git checkout --