Sunday, January 24, 2010

Java is not working in Windows Firefox ...

1. Reinstalling Java fixed it for me. You can download it from here:
http://www.java.com/en/download/
2. Some people also recommended deleting "NPOJI610.dll" from Firefox/Plugins directory.


Wednesday, January 20, 2010

Pasting text in Vim from webpages

Vim auto-indents texts/code-snippets while pasting from websites. The trick is to take vim in "paste" mode to stop auto-indenting:

while pasting ...
:set paste
when pasting is doen ...
:set nopaste

Tuesday, January 12, 2010

Installing/compiling ns-2.34 on Ubuntu/Debian

I had to install the following dev's to get ns-2.34 "all-in-one" package to work:
apt-get install libx11-dev xorg-dev

Recently stumbled upon another problem compiling otcl. The error message looks like the following:
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
Apparently this an incompatibility between ld and gcc-4.4. The quick fix will be to replace "SHLIB_LD" variable for "Linux*)" targets from "ld -shared" to "${CC} -shared".

Fix broken pixels on LCD/Plasma

From http://www.jscreenfix.com/basic.php

"The JScreenFix Java applet helps fix stuck pixels and image persistence on LCD screens and reduces burn-in on plasma screens. The applet runs safely inside a web browser, does not require installation and works with Windows, Linux and Mac computers.

JScreenFix repairs most stuck pixels in under 20 minutes, and mild screen burn-in within 12 hours..."