Karel The Robot is a robot simulator that affords a gentle introduction to computer programming. Users write Karel programs and feed them to the simulator to watch them execute.
By solving karel problems...
12/30/10
12/28/10
Parent-Child Communication Using Pipes in UNIX
This is the simplest of program that you can get.
Here the parent-child communicates over a pipe.
NOTE:
if the child wants to communicate to the parent then it will have to closes(fd[0]) and parent will closes(fd[1]).
this will only work UBUNTU, LINUX(RedHat) , Solaris, FreeBDS etc all UNIX VERSIONS....
12/27/10
Socket Programming in C (SERVER SIDE) Code
In Unix Sockets help in network communication, so if u have any unix versions at your place try this program on the "vi-editor" and see the result. sockets help in network ipc...
12/20/10
Codeforces #47, Problem E
1: import java.io.BufferedReader;
2: import java.io.IOException;
3: import java.io.InputStreamReader;
4: import java.util.HashMap;
5: public class Main {
6: public static void main(String[] args) throws IOException {
7: BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));...
12/19/10
HashMap simple usage and understanding
Map is an object that stores key/volume pairs. Given a key, you can find its value. Keys must be unique, but values may be duplicated.
The HashMap class uses a hash table to implementation of the map interface. This allows the execution time of basic operations, such as get() and put() to be constant.
An...
12/4/10
Detecting a Cookie
Here is a piece of code that can help people detect cookies. Cookies play an important part in the website.
*****************#####*****************
JS Code:
window.onload = showCookies;
function showCookies() {
var outMsg = "";
if (document.cookie == "")...