I bought an extremely handy, very well presented Bhagavad Geeta yesterday. As the introduction explains, “The uniqueness about this religious work starts with the very setting in which its described — the warfield. This is in contrast to other works, which are discussed in the more peaceful ambience of a penance, grove or amidst the [...]
Archive for the ‘Uncategorized’ Category
All that matters
Posted in Uncategorized, tagged Bhagavad geeta, solutions on October 25, 2009 | 2 Comments »
Netra IMproved!!!
Posted in Uncategorized on May 12, 2009 | 4 Comments »
This is a blog after a looong pause…
Life has been a sinusoidal wave since last 9 months. Some times i ll be so happy that i ll thank GOD for giving me this life, but sometimes things are so disappointing that i keep scribbling “Ultimately, everything boils down to nothing ” in my diary.
Here are [...]
“Random” between limits
Posted in Uncategorized on June 11, 2008 | 7 Comments »
Many algorithm correctness and performance tests, games and others require random number generation. Here is a way to generate a random number between two limits min and max.
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
int randomnum;
int min=1; /* lower limit */
int max=7; /*upper limit */
time_t seconds;
time(&seconds);
srand((unsigned int) seconds); /*seed for rand() */
randomnum = rand() % (max-min+1) + min; /*generate random number [...]
Nested Comments
Posted in Uncategorized on April 4, 2008 | 7 Comments »
One of the questions posed in 8th mile OSP prelims was :
Write a program to check if the compiler (C compiler ) allows nested comments.
Here is the solution I came up with
#include<stdio.h>
int main()
{
int i=10,*j,k,l=20;
j=&l;
k= /* /* */i */*j;/* */ 1;
if(k==i)
printf(“does not allow nested [...]
8th Mile fest
Posted in Uncategorized on March 31, 2008 | 1 Comment »
8th Mile is the techno-cultural fest conducted by our college, RVCE. The event occured after 5 long years and it was a huge success. The first day featured eastern music and eastern dance competitions. The performances were great and we enjoyed every single moment. On second day, we had technical events. We won second [...]
Linux Kernel module programming
Posted in Uncategorized on March 26, 2008 | 6 Comments »
Since the day I began to gain understanding of the word “kernel”, I was always curious to know more and more about it. I was trying since few days to write a very simple “hello world” module but couldnt. Today I came across this link http://tldp.org/LDP/lkmpg/2.6/html/index.html … By following the instructions given in [...]