Tuesday, December 15, 2009

My first chrome extension!!



Here is a cool new chrome extension that shows the first five feeds of my blog in rotation. Try it!
here is a screenshot->

Wednesday, December 9, 2009

First Job!!!

Got a job in CTS along with 158 others from IT-BHU. Feels great!!!

Tuesday, December 8, 2009

New Widget!!!

Added the new feed subscription widget, so you readers can keep up with my blogs. Enjoy!

Monday, December 7, 2009

when was the last time you did something for the first time?



today, I shaved off my moustache for the first time!

Flexing my muscles



Having finished with the CAT yesterday, I turned to the one task I had in my mind for the last couple of days. I had joined the Flex Developers community of our college and was wondering what the fuss was all about.
I downloaded Adobe Flex yesterday, and started fiddling with the sample codes. At first, what seemed to be like a "dreamweaver" like IDE from Adobe, gradually started unfolding its plethora of controls. As I started with the programming(or rather designing), I realised, I could even make a light browser in a couple of lines of code. Then I decided, that maybe, this browser could draw people to my blog :) . So, I removed all the controls from this browser and distributed the empty container as an installer whose raison d'etre would be to open my blog.
Soon I will have my own website based entirely on flex. I hope. :).

Monday, November 9, 2009

World Wars


We all know about the world wars and the way they influenced the future of mankind. But nothing can be compared to the one which is happening right now,even as I write this blog.
Traditionally wars were between nations for control of colonies and their natural resources. Today, in the information age, wars are fought between companies, software giants and minnows alike. Though the motive has remained the same, but the resource is knowledge.
Google-search, which was started merely 12 years ago, has now the most used search engine on the web. In response, microsoft launched its own version of search engine "Bing". Wolfram-Alpha, though not fully developed, brings a cool new dimension to "searching".It basically associates keywords with numbers and vice-versa to present the result in the form of graphs, charts, facts and more! Various other search sites such as ask,yahoo,lycos are also used, but rarely!
In July, this year, Microsoft and Yahoo entered in a deal according to which Microsoft would power Yahoo! search while Yahoo! would become the exclusive worldwide relationship sales force for both companies’ premium search advertisers. Definitely, the move was made to increase their share in global search engine usage against that of Google.
Information on-the-go is available on smartphones, and the biggest contenders in this arena are Nokia, Motorola and Apple. Recently, the Finnish mobile giant Nokia sued Apple over copyright infringement. There are more battles to come on the global tech arena like Motorola Droid(with Google Android OS) vs Apple Iphone, Windows7 vs Karmik Koala(the 9.10 release of Ubuntu, described as the official alternative to Windows), Google Wave and many more, a harbinger of good things to come. And I am keeping my eyes open :)

Saturday, August 8, 2009

NASA Images

Added NASA image of the day widget, to give an "Out of the World" feel to my blog...

Euphoria

close, turn-off, shut-down the box
wanna come-out ,speak ,shout like a fox
Gripped by loneliness, hebetude, claustrophobia?
No, dont hide, come in the light, Euphoria!!!

Friday, August 7, 2009

source code of quick-sort

Two days after starting to write the code for quick sort, from scratch, I was finally able to make it error free. The algorithm is elegant but error prone and to make matters worse (from the point of view of program readability) recursion is an integral part of the code.
I searched heavily for the code but couldn't find any of them written in C++, and clean enough.
So I decided to blog it down, for my own future references and above all, for the whole coding community.

#include "iostream"
#define max 9
using namespace std;

void display(int* a)
{
for(int i=0; i< max; i++)
printf("%d",a[i]);
printf("\n");

}

void swap(int& x,int& y)
{
int temp;
temp = x;
x = y;
y = temp;
}


int partition(int* a,int beg,int end)
{
int left = beg, right=end, piv = *(a+beg);

while(left {
while((a[left]<=piv)&&(left left++;
while((a[right]>=piv)&&(right>beg))
right--;
if(left swap(a[left],a[right]);
}
a[beg] = a[right];
a[right] = piv;
return(right);
}

void quick(int* a,int beg,int end)
{

if (beg>=end) return;

int pos = partition(a,beg,end);
cout< quick(a,beg,pos-1);
quick(a,pos+1,end);
}


int main()
{
int arr[] = {1,5,2,7,3,4,6,0,9};
display(arr);

quick(arr,0,max-1);
printf("After Quick Sorting:");
display(arr);

system ("pause");
return 0;

}
The program was written in Dev C++ version 4.9.9.2
Compiler used- g++

Tuesday, July 21, 2009

CS Source

Tonight I was messaging my fellow players to join the CS Source Server, when accidentally words began to appear in some sort of phonetic order.....a poem. Have a look...

we didn't start the fire ,
but we did retire
for, the bomb was not ours
they conspired against us
They said, they were the "messengers of peace"
We knew, they were mere mercineries for hire.
- Ankit (T)
JOIN CS Source only on 10.8.31.96 tonight.