Tuesday, March 15, 2011

GATE 2011 result declared...........

Got Rank 18036 in GATE 2011 from Computer Science stream............

Thinking for going to counseling....

Thursday, February 24, 2011

Xlib problem solved

Today, I successfully performed my X Window system experiment................

Here is the code........

/**
  * This program will create a window and type a message
  * Author: Prakhar Mishra
  * Date: 24th Feb, 2011
  */

#include <stdio.h>
#include <X11/Xlib.h>

int main()
{
    Display *display; //Used to store and refer to the display configuration
    Window win; //Used to refer to the window which is to be displayed at XServer
    XEvent event; //Used to fetch an event from XServer
    int screen; //Used to store screen-number

    display = XOpenDisplay(NULL); //It opens the connection and returns Display *
    screen = DefaultScreen(display); //It returns screen number

    //It creates a simple window with its root window specified with x, y position,
    //width, height, border width, border pixel value and background pixel value
    win = XCreateSimpleWindow(display, RootWindow(display, screen), 0, 0, 400, 400, 1, BlackPixel(display, screen), WhitePixel(display, screen));

    XSelectInput(display, win, ExposureMask | KeyPressMask); //Select for what input you want to make your program react

    XMapWindow(display, win); //It draws window on the screen

    while(1)
    {
        XNextEvent(display, &event); //It fetches next event

        switch(event.type)
        {
            case Expose: //If window is exposed(restored after minimize)
            XDrawString(display, win, DefaultGC(display, screen), 150, 200, "Hello World! I am Prakhar Mishra", strlen("Hello World! I am Prakhar Mishra")); //This draws a string on Window win specified location
            break;
            default:
                exit(0);
        } //Here we have judged type of the input, based on which we make our program react
    }
}

Saturday, January 15, 2011

Kick off of project

Yesterday, finally, we started our project by designing its front screen...........

We have to develop a card game based on the Japanese animated series named YU-GI-OH which is based on book written by Mr. Kazuki Takahashi..................

It is the most selling trading card game worldwide. Its 22 billlion copies are sold............

Monday, January 3, 2011

Today, was my DBMS university exam.......

Today, I have given my DBMS university exam....... Yes, according to me, I have done well although not studied so much......... But yes it was good exam......
I have also appeared in internal improvement and guess what!! the internal improvement was more challenging than the university exam.......

Monday, December 27, 2010

End of VII Sem

Today, my exams ended with PTS viva and Project Stage-1 report submission. My project report was of 32 pages only, because i don't have a ER diagram, use case diagrams and all.........And my presentation wasn't worked because i have edited it in open office. And in college, there wasn't open office, there was MS PPT

Thursday, December 23, 2010

Something about download manager in THE COMPLETE REFERENCE : JAVA

Seems like the download manager given in <b>Herbert Schildt's</b> complete reference of java doesn't good enough because I can see the buttons (in the buttonsPanel) flickering while downloading goes on....................
May be its because of the Observer and Observable classes............

Wednesday, December 22, 2010

Hi, wats up!

I have newly created this blog and I want to share it with every one.