Posts RSS Comments RSS 34 Posts and 15 Comments till now

flush()

Spent about half an hour ..trying to see if the buffers were leaking or If I got the pointers wrong. Guess what the last packet was being written to the disk due to the goofiest reason possible. yes I forgot to flush() :(

if you find your data not being written to the file specially the last few bytes. The reason is probably the data is still in the stream and not flushed to the disk. do a fileHandle.flush() and it would force the data out to the disk.

Moral: Flush () before you slush at the language :)

hdaps on kernel 2.6.27.x

The New kernel discards the old /sys interface which saves power.

It uses the “/sys/block/%s/device/unload_heads”  instead of “/sys/block/sda/queue/protect” for parking the heads.

Kernel

The patches to the kernel could be downloaded from : http://article.gmane.org/gmane.linux.drivers.hdaps.devel/1379/raw

Build and install the kernel.

Get the lastest source of tp_smapi.

build it with HDAPS=1 flag.

install modules.

UserDaemon : hdapsd : should be downloaded here : http://article.gmane.org/gmane.linux.drivers.hdaps.devel/1372

I had to manually change the if condition that sets the protect_factor. for some reason the sysinfo struct could not be read.

Compile the hdapsd.c and move it to /usr/bin/

edit the /etc/init.d/hdapsd file to check for “/sys/block/%s/device/unload_heads”  instead of “/sys/block/%s/queue/protect”

Thanks Elias Oltmanns for the recent patches.

more info at : http://www.thinkwiki.org/wiki/HDAPS

Fix buggy net drivers

__ratelimit: 1 messages suppressed
wlan0: CTS protection disabled (BSSID=00:23:a5:28:09:19)

seems like the drivers are messed up in 2.6.26. The possible fix is to use the compat-wireless drivers. (http://linuxwireless.org/en/users/Download)

Large Hadron Collider

The Large Hadron Collider is the largest and most complex scientific instrument ever built and the highest energy particle accelerator in the world.
The accelerator is located 100 m underground and runs through both French and Swiss territory. ( 27km circumference)

Year 2008 September 10th, marks the culmination of 20 years of work by over 8000 scientists thousands of engineers, technicians and support staff from over 80 different countries.

some critics say that this could create a black hole and suck up the entire world..but many say that even if a black hole is created it will wannish within a millionth of a second..

Latest : they have successfully done the 1st testing on the 10th September 2008, sending 2 beams separately clockwise and anticlockwise, which had successfully gone all the way around the ring. but there had been some minor errors, which we dont have to worry about.

They are going to do one big collision on the 21st of October, but apparently, “In the 2008 run, however, the LHC will operate at a reduced energy of 10 TeV. The winter shut-down (starting likely around end of November) will then be used to train the superconducting magnets, such that the 2009 run will start at the full 14 TeV design energy.”

http://www.youtube.com/watch?v=qQNpucos9wc

notepad++ XML formatting

Add the following to your C:\Program Files\Notepad++\plugins\NPPTextFX\tidycfg.ini file and an option to re indent XML would be available under Notepad++ menu: TextFX -> HTML Tidy -> Tidy: Reindent XML.

Continue Reading »

we are back :)

after a catastrophic set of events and week of down time … The site is back up :) and most of the services should run perfectly well now.

Visual studio 2008 fix:Requested Registry Access is not allowed

Download “subinacl” here. This is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.

After installing subinacl.exe (it will be in the C:\Program Files\Windows Resource Kits\Tools folder.), drop to a command prompt and run the following batch file, which you have saved in the same folder with the filename “FIX.bat”:

subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.vbproj.9.0 /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=users=f
subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio.csproj.9.0 /grant=system=f

Source : http://petesbloggerama.blogspot.com/2008/01/fix-requested-registry-access-is-not.html

who owns this port ?

fuser -v -n tcp [port]

Before the power button

If even Ctrl-Alt-Del doesn’t work, use the SAK. Hold down Alt-PrintScreen (this is the SysRq key combo), and while holding down those keys, press the letters ‘S’ to sync the disks, then ‘U’ to unmount the filesystems and ‘B’ to reboot the computer. Always try that before going for the power button. It’s a bit awkward to do all that while holding Alt-PrintScreen, but it’s not something you’ll do often

Compiz no borders

LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 compiz –replace –indirect-rendering –sm-disable ccp &> /tmp/compiz.log

Next Page »