Posts Tagged With: debug

A Simple Logging Function for JavaScript

Tagged with: , , , , , ,

Prints all the arguments of the function. This function uses console.log if firebug is available - else, uses alert.


function p() {
                for(var i=0; i<<arguments.length; i++) {
			if(window.console) console.log(arguments[i]);
			else alert(arguments[i]);
		}
}
No Comments »

Single User Mode in Linux

Tagged with: , , , , , ,

To get into single user mode in Linux, stop the boot at grub then edit the kernal you want to boot and add the word ’single’ at the end. For example ‘kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet single’(your line may be different)

No Comments »