Party at lake point Rocked!

August 31, 2008

wow whata a party was it at lake point yesterday , i really had much fun , the music was awesome n by the way got the lucky chance to dance with 5 distinct girls .. Beside some1 in red , woow wat was that cant describr but still with my poor 1.3 megapixel mobile  a small pic i managed to take.

I had expected all cse mates to be there since in a years time all will be over for ever but they were busy otherwise ..


MBC AS USUAL SU**S

August 26, 2008

|Yesterday , im sure many man utd fans at mauritius if had a gun wud have used them against mbc , man as usual as their professionalism, they can event broadcast a football match properly , there was a disruption from 10 mins till 40 minutes. That also the 1st and last match  for man utd fans  . Beside a goal had been sscored  in the mean time . what the use of watching a match where u cant even see the goals , already they sucked to provide matches and with this years program , n they wanting to increase fees for more such time 370HSSV acts n presentation , the day is soon approaching when the public will flood to their studios n beat them live .Bizin get bacluck mem

Narien zot pa bon pu fer apart rob the public , ki zot penc. (oops MBC-> Master Bachara Corporation)

Please feel free to let ur opinion its the only way they can be made aware n us giving our feelings outlets

http://www.mbcradio.tv/contents/?page_id=1061

Barclays FA Premier League Season 2008/2009

Fixtures August – December 2008
ROUND
MATCH
DATE
KICK-OFF TIME (GMT)
1
Sunderland v/s Liverpool
Saturday 16th August, 2008
16.30 hrs
2
Portsmouth v/s Manchester United
Monday 25th August, 2008
19.00 hrs
3
Arsenal v/s Newcastle
Saturday 30th August, 2008
16.30 hrs
4
Tottenham v/s Aston Villa
Monday 15th September, 2008
19.00 hrs
5
Bolton v/s Arsenal
Saturday 20th September, 2008
16.30 hrs
6
Arsenal v/s Hull City
Saturday 27th September, 2008
16.30 hrs
7
Blackburn v/s Manchester City
Saturday 04th October, 2008
16.30 hrs
8
Newcastle v/s ASton Villa
Monday 20th October, 2008
19.00 hrs
9
Blackburn v/s Middlesbrough
Saturday 25th October, 2008
16.30 hrs
10
Newcastle v/s Aston Villa
Monday 3rd November, 2008
20.00 hrs
11
Liverpool v/s West Brom Albion
Saturday 08th November, 2008
17.30 hrs
12
Arsenal v/s Aston Villa
Saturday 15th November, 2008
15.00 hrs
13
Wigan v/s Everton
Monday 24th December, 2008
20.00 hrs
14
Liverpool v/s West Ham
Monday 01st December, 2008
20.00 hrs

Rising to the Challenge

August 25, 2008

Some days back , my mates told me whether linux, ubuntu  hardy , currently the version im sticking to , can be tweak atleast to look as a mac , after some couple of hours of effort this is wat i came up to , n thanks vikesh n keenoo for motivating me atleast

Please feel free to leave any comments , you are welcome


UOM Resumes

August 11, 2008

As usual the bus top was cluttered with new faces n some rapace feasting their eyes  also  but that usual but the main problem was to find a bus to go home .They didnt think of improving the infrastructure as usual hint of their professionalism.

Thanks sheikh for saving us precious time n effort this is our time table provisoir. eK PA BLIER DIR MERCI by posting a comment thanks ur opinion counts


Cse 3B now we uve upgraded , go to infotech n enjoy after words

August 11, 2008

Banish made us all in the  laugh  wiz his weird meeting, n then bookooa with his two minutes which is a record time for those who have experienced it.. but it was nice to spend our last trip during holidays with friends. Ena in rente dan KFC Avek 2 pair dhollpuri dan lamen ek le zot specimen rar ti dan jardin companie n some having kebabs. PLease fee l 3 to leave a comment suretout ban acteur ki dan ban photo la. Special thanks goes to Salman n Akash for the Photos n their portab ek  nu camera man ki ine tir photo also.


Infotech 2008 bom enfin atleast not to the Expectation of CSE Guyz CSE2B

August 7, 2008

2day ,Before UOM resumes on Monday, a small team of mates decided to go at Infotech , anyway s we were bored to death at home, we   expected to see new things and gadgets and devices  at awesome price,or technology that will thrill us with delight but alas!, except for the Pascal Computers Limited stand’s, worth eye catching chicks, nothing great.Some big LCD’s, some MAC PC which were at least up to our expectation but price set us puzzled.Some stupid companies or jerks atleast, now offering stages to us wen the University course on resuming on monday.I wonder where they were wen we begged them for training in the month of april 29 for a period of 3 month.

Here are some pics we managed to click with a 1.3 megapixel camera, our opinion is  pa gaspillage cas transport pu alle desus.Last year, Emtel Stand was awarded the best stand, but this year i wonder who will beat Pascal Computers’s Hosts. Enfin then went to Caudan and had lunch etc before moving home.

MBC Broadcasting live ,


My mate Pan

August 5, 2008


More files Handling

August 5, 2008

Write a program that opens a file called “input.dat”. If the file does not exist, the programme creates it. If it exists already, the programme will simply overwrite it. Your programme should then read data for 5 students from the terminal and write them into the file. Your data should consist of the names of students (20 characters), a student id (10 characters), date of birth (8 characters), gender (1 character) and marital status (1 character).

*/
        #include <stdio.h>
        #include <sys/types.h>
        #include <sys/stat.h>
        #include <fcntl.h>
        #include <unistd.h>
        #include <string.h>

        struct Student{

            char snames[20];
            int  sid[10];
            char sdob[8];
            char sgender;
             char sstatus;
         };

          void inputstud(struct Student *student);
          void printdetails(struct Student *student);
          void writetofile(struct Student student[]);

       int main(){
             const int max=5;
             struct Student s[max];

             int fil=open("input.dat",O_RDWR | O_CREAT);

              inputstud(&s[0]);
              printf("\n");
              printdetails(&s[0]);

            // writetofile(&s[0],1);
              writetofile(s);
            return 0;
         }

void inputstud(struct Student *student){
          printf("Enter Name:\t");
          scanf("%s",student->snames);

          printf("Enter Id:\t");
          scanf("%d",student->sid);
          printf("Enter Date of Birth:\t");
          scanf("%s",student->sdob);
          printf("Enter Gender:\t");
          scanf("%s",&student->sgender);
          printf("Enter Status:\t");
          scanf("%s",&student->sstatus);

}

void printdetails(struct Student *student){
          printf("Name:is %s\n",student->snames);
          printf("Id:is %s\n",student->sid);
          printf("Dateof Birth:is %s\n",student->sdob);
          printf("Gender:is %c\n",student->sgender);
          printf("Status:is %c\n",student->sstatus);

}

void writetofile(struct Student student[]){

    int fil=open("input.dat",O_RDWR | O_CREAT);

   if (fil==-1)
    {
        printf("error has occures");
    }
 else

   {
       printf("Name written is%d  ",write(fil,student->snames,strlen(student->snames)));
       printf("Id written is%d  ",write(fil,student->sid,10));
       printf("Date written is%d  ",write(fil,student->sdob,strlen(student->sdob)));
// printf("Gender written is%d  ",write(fil,student->sgender,1));
//printf("Status written is%d  ",write(fil,student->sstatus,strlen(student.sstatus)));

}

}

pipes example1

August 5, 2008
        #include <stdio.h>
        #include <stdlib.h>

      int main()
            {
               int fd[2];
               int p;
               int n;
               int x;
               char line[20];

               x=pipe(fd);
                p=fork();

           if (p==0)
            {
              printf("Hello- I'm the child\n");
              close(fd[1]);
              n=read(fd[0],line,12);
              printf("Child - Line read was %s \n", line); }
          else
               {
                 close(fd[0]);
                 write(fd[1],"hello world \n",12);
               }

                return 0;
          }//main

Primitives Declaration for my functions

August 5, 2008

int round(float x){
return ((int)(x + 0.5));
}

//—————————————————————————–
// Name:
// Desc:
//—————————————————————————–
Color setColor(float red, float green, float blue){
Color col;
col.red = red; col.green = green; col.blue=blue;

return col;
}

//—————————————————————————–
// Name:
// Desc:
//—————————————————————————–
Point setPoint(int x, int y){
Point p;
p.x = x; p.y = y;

return p;
}

//—————————————————————————–
// Name: setPixel
// Desc:
//—————————————————————————–
void setPixel(int x, int y, Color c){
glPushAttrib(GL_ALL_ATTRIB_BITS);
glColor3f(c.red, c.green, c.blue);

glBegin(GL_POINTS);
glVertex3f(x,y,0);
glEnd();
glPopAttrib();
}

//—————————————————————————–
// Name:
// Desc:
//—————————————————————————–
Color getPixel(int x, int y){ // gets the color of the pixel at (x,y)
Color c;
float color[4];

glReadPixels(x,y,1,1,GL_RGBA, GL_FLOAT, color);
c.red = color[0]; c.green = color[1]; c.blue = color[2];

return c;
}

//—————————————————————————–
// Name: outputText()
// Desc: x,y, the string
// Source: http://www.lighthouse3d.com/opengl/glut/
//—————————————————————————–
void outputText(float x, float y, char *string){
char *c;

glRasterPos3f(x,-y,0);

for (c=string; *c != ”; c++)
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_12, *c);

}

//—————————————————————————–
// Name: floatToStr()
// Desc: accepts a floating point number and returns a string
//—————————————————————————–
char * floatToStr(float x){
char *str = new char[7];
sprintf(str, “%4.2f”, x);
return str;
}