we (our college mates) were planning to go to goa... so we were deciding whether to book a bus or a train. We checked out indianrail.gov.in and then thought may be we cud find something similar for ksrtc ..so we googled for it.
And guess what ...much to our surprise we found KSRTC site. it was www.ksrtc.org
They have one thing cool in there.....
They didn't care to put the database i guess ;)
but they have all searching facility in place... how?? whenever u check for a schedule u'll be provided with 2 combo boxes. one for the source station and one for the destination station. The problem is that it wont allow u to select anything for the destination combo box and when u click on submit button, the java script pops an error that destination not selected. Well...i guess Indian janta cannot be fooled by gimmicks anymore now( at least in tech savvy bangalore)
Thursday, March 31, 2005
Tuesday, March 22, 2005
cool code....
check this code out....(go to the basics of c to find the answer).. someone asked it on blug-prog:
#include"iostream"
#include"sys/types.h"
#include"unistd.h"
using namespace ::std;
int main()
{
pid_t child_pid;
printf(" hello world !! \n");
child_pid = fork();
}
(i have used "" instead of greater than sign as my blog editor had trouble workin with them... thats why cout was changed to printf)
if u put the "\n", u'll get one "hello world !!" as output but if u remove the endl u'll get two "hello world!!" as output... reason being that the programs are not flushing the buffers and the child is inheriting unflushed buffer...causing it to print it twice( as told by Imidi kiran on blug)....
this stuff was cool...
#include"iostream"
#include"sys/types.h"
#include"unistd.h"
using namespace ::std;
int main()
{
pid_t child_pid;
printf(" hello world !! \n");
child_pid = fork();
}
(i have used "" instead of greater than sign as my blog editor had trouble workin with them... thats why cout was changed to printf)
if u put the "\n", u'll get one "hello world !!" as output but if u remove the endl u'll get two "hello world!!" as output... reason being that the programs are not flushing the buffers and the child is inheriting unflushed buffer...causing it to print it twice( as told by Imidi kiran on blug)....
this stuff was cool...
Friday, March 18, 2005
Eclipse is GREAAAAAAAAAAAT!!!!
Note: All characters in this story are real and any similarities to the non existent are purely co-incidental :)
I'm one of the few programmers who are crazy about C/C++ and think java is too similar to these languages to be learned in its entirety. I started coding in java an year earlier. I used eclipse IDE and still use it. So yesterday I went to A3 office( for those who don't know what's A3.. its a branch of Aztec.. I work in A2) .. had some thing to integrate some applications using java. I fired up my vi (eclipse wasn't there.. and am ok with vi, use it for c/c++ coding) and started coding.
First thing that happened was I typed something, typed a '.' and waited for the field to autocomplete.... I soon realised what I was doing.. it was hilarious....
Next I compiled my code... and unexpectedly I got a million errors( classpath dependencies...) ..and I was surely not in a mood nor did I have the proper experience to resolve them... Fortunately my PM had an Ant file ready...
The process went smoothly ..but I learnt one thing... LEARN JAVA BEFORE JUMPING TO ECLIPSE or any other IDE.
Now am back at my box.. working on Eclipse...Of course industrial productivity comes before personal learning.... (and eclipse is doing a good job teaching the syntax)
I'm one of the few programmers who are crazy about C/C++ and think java is too similar to these languages to be learned in its entirety. I started coding in java an year earlier. I used eclipse IDE and still use it. So yesterday I went to A3 office( for those who don't know what's A3.. its a branch of Aztec.. I work in A2) .. had some thing to integrate some applications using java. I fired up my vi (eclipse wasn't there.. and am ok with vi, use it for c/c++ coding) and started coding.
First thing that happened was I typed something, typed a '.' and waited for the field to autocomplete.... I soon realised what I was doing.. it was hilarious....
Next I compiled my code... and unexpectedly I got a million errors( classpath dependencies...) ..and I was surely not in a mood nor did I have the proper experience to resolve them... Fortunately my PM had an Ant file ready...
The process went smoothly ..but I learnt one thing... LEARN JAVA BEFORE JUMPING TO ECLIPSE or any other IDE.
Now am back at my box.. working on Eclipse...Of course industrial productivity comes before personal learning.... (and eclipse is doing a good job teaching the syntax)
Industry experience!!
So here I am, working on a supercool project, but working in the industry in a typical office environment has its own pitfalls although there are innumerable perks.... ( The pitfalls are clearer if u r intelligent, PS:Modesty died the day i was born)
Here's what generally happens: I finish the job assigned to me,quite ahead of the schedule, and ask my PM for more job. It happens so frequently that my PM probably feels that i'm bugging him/her. So i thought why not take it easy and surf the net and give my reports at some intervals( atleast that way i wont feel the guilt over bugging him/her)... so i open my blog or start chatting and someone stops by my cubicle, looks at my computer, and says that i'm more interested in chatting than doing work!!!! I guess i'll take some time to adjust!!!
Here's what generally happens: I finish the job assigned to me,quite ahead of the schedule, and ask my PM for more job. It happens so frequently that my PM probably feels that i'm bugging him/her. So i thought why not take it easy and surf the net and give my reports at some intervals( atleast that way i wont feel the guilt over bugging him/her)... so i open my blog or start chatting and someone stops by my cubicle, looks at my computer, and says that i'm more interested in chatting than doing work!!!! I guess i'll take some time to adjust!!!
Thursday, March 17, 2005
Some cool updates
Well yahoo is introducing a weblog with content sharing and internetworking... in a nutshell that is flickr+lj+blogger.... seems its going to give other blogs a run for their money. check out this link:
Yahoo Blogs
Well check out Microsoft's latest attempt to strenghten their losing market position in India:
Microsoft sucks
;-)
Yahoo Blogs
Well check out Microsoft's latest attempt to strenghten their losing market position in India:
Microsoft sucks
;-)
Subscribe to:
Posts (Atom)