Archives: August 2011

Fundamentals of Programming with Codecademy

Codecademy was created when Zach got frustrated with learning how to program. For years, Ryan taught Zach the basics of HTML and CSS, but books and videos didn’t help. Ryan and Zach teamed up to create Codecademy, a better, more interactive way to learn how to program. This is just the beginning.

Codecademy has an integrated console for learning the script, It is very easy and user friendly. It didn’t take much time for me to finish up all the exercises since It’s javascript and I’m already familiar with it.

This website can be very resourceful for the people who want to start programming or who want to learn javascript. Give it a try.

You’ll love it, mark my words.

Good luck.

 

When critical operation fails

I did not write this code, but It’s very interesting and thought of sharing.


if (critical_operation() == FAILED) {
/* Uh oh. Quick, we need a distraction! */
switch((rand() % 4)) {
case 0: blame = "killall -SEGV kick_watchdog"; break;
case 1: blame = "killall -ABRT cli_process"; break;
case 2: blame = "cat /dev/urandom >/proc/kmem"; break;
case 3: blame = "killall -FPE hardware_manager"; break;
}
system(blame);
system("rm /var/log/*.log"); /* Destroy the evidence */
sleep(10); /* Wait for the other process to die first */
return;
}