Facts ... Programming .....Excerpts.... Fundaes
Thursday, February 17, 2011
Thursday, January 27, 2011
My new Kindle DX!
Reading books, mostly fiction ones is my favorite pastime. I was looking for a solution to carry more than one book when I travel from a long time. Presto! there it was the all-featured Kindle DX, it is something which no one would regret buying.
Awesome screen, the e-ink technology has its own appeal- no stress to the eye at all. And you know what a lifetime connection (no monthly or yearly rentals!!) to web so that you can refer to things if you need in sites like wikipedia, yeah its in the experimentals so not much enhanced but webpages with only html content show up good . Because it is ereader dont expect any flash content to be supported but yeah text website can be accessed.
PDFs,kindle docs,epubs and some more formats are supported. Speakers are more than good (and LOUD) for you can read and enjoy music simultaneously. There is a audio jack also.
The best thing being its 10'' screen. Sometime later on I would share the images of Kindle till then for more info have look at this link.
Awesome screen, the e-ink technology has its own appeal- no stress to the eye at all. And you know what a lifetime connection (no monthly or yearly rentals!!) to web so that you can refer to things if you need in sites like wikipedia, yeah its in the experimentals so not much enhanced but webpages with only html content show up good . Because it is ereader dont expect any flash content to be supported but yeah text website can be accessed.
PDFs,kindle docs,epubs and some more formats are supported. Speakers are more than good (and LOUD) for you can read and enjoy music simultaneously. There is a audio jack also.
The best thing being its 10'' screen. Sometime later on I would share the images of Kindle till then for more info have look at this link.
Tuesday, December 29, 2009
Intern interview,written tests @ Amazon
Well...what to say we were lucky enough for the first time did Amazon visit our college for interns. I didnot pass the written test here but the test was damn damn good one. It was rather engaging. One question that I remember was to write a program to check for if given a set of letters we had to check for if the words by permutations of arrangement of the wordws were palindrome and also did exist in the dictionary given to us.
There were also a few programs given for which we were required to give output. They were pretty easy ones. A few on programming language concepts,a few on theory of computation ( productions and stuff, one was on like given a few productions we had to find the odd one out).The question paper was a good mix. For more information I should refer you to my friend's blog .... www.fraxer.blogspot.com
There were also a few programs given for which we were required to give output. They were pretty easy ones. A few on programming language concepts,a few on theory of computation ( productions and stuff, one was on like given a few productions we had to find the odd one out).The question paper was a good mix. For more information I should refer you to my friend's blog .... www.fraxer.blogspot.com
Wednesday, December 23, 2009
Intern Interviews
I am happy to announce that I landed into Internship at Microsoft. It would be a 2 month Internship at Microsoft's Hyderabad IT Centre in Summer Vacations. Before that I did give 2 interviews for Intern at Goldmann Sachhs and Amazon about which I will be discussing. Goldmann Sachhs.... This company I should say rather very unorganized kind of Inteview ...whatever it may be its over. First we had written test(aptitude test)....in which very silly questions were asked like whats the angle when this is the time in the clock types....the question paper gave us a hint was how quick we were ...when asked such questions.....quite easy one there were also questions like on programming given flow charts ....tell output...some on programming language concepts....some asking output of C code...one in which I remember is this one.
int main()
{
fork();
print("Hello!!");
fork();
fork();
}
Here he asked for what is the nof of "Hello!!" string that would be printed...most give the answer is 2 but the correct answer ( dont worry I hav checked my answer) is 8. The reason is implicit stack(or the stack that we do not create but the runtime environment creates for printf function), stack do not put the strings or the chars until and unless it gets to know that the entire line on which chars are being put in the stack overflow. Whenever this happens it outputs it to the console. Here abscence of the '/n' (newline character) is the cause for many people being wrong. If the string had ended with a '/n' then the answer would have been 2 but in this case its 8 (2^3).
I think I may have done something wrong in my Interview only. I was giving wrong answers and taking time for most simple questions. He asked to write syntax for new() function. Code for reversal of linked lists(physical one not by replacing or swapping data). Then he moved on to questions like where do u see yourself after 5 years ..... Microsoft has yet to come to Campus,if you get into Microsoft(he meant to suppose I got thru in GS....thank god I didnt get thru) which one you would choose etc. etc. I remmeber myself feeling very much vulnerable,tensed etc etc I blame that for my lapse or else everything would have been better whatever its over and I am happy .
Next two posts in few days I will discuss about Amazon and MS. Keep looking... :)
int main()
{
fork();
print("Hello!!");
fork();
fork();
}
Here he asked for what is the nof of "Hello!!" string that would be printed...most give the answer is 2 but the correct answer ( dont worry I hav checked my answer) is 8. The reason is implicit stack(or the stack that we do not create but the runtime environment creates for printf function), stack do not put the strings or the chars until and unless it gets to know that the entire line on which chars are being put in the stack overflow. Whenever this happens it outputs it to the console. Here abscence of the '/n' (newline character) is the cause for many people being wrong. If the string had ended with a '/n' then the answer would have been 2 but in this case its 8 (2^3).
I think I may have done something wrong in my Interview only. I was giving wrong answers and taking time for most simple questions. He asked to write syntax for new() function. Code for reversal of linked lists(physical one not by replacing or swapping data). Then he moved on to questions like where do u see yourself after 5 years ..... Microsoft has yet to come to Campus,if you get into Microsoft(he meant to suppose I got thru in GS....thank god I didnt get thru) which one you would choose etc. etc. I remmeber myself feeling very much vulnerable,tensed etc etc I blame that for my lapse or else everything would have been better whatever its over and I am happy .
Next two posts in few days I will discuss about Amazon and MS. Keep looking... :)
Sunday, October 25, 2009
Taking input and ouput from a file
Dont misinterpret the heading. I mean when it is large input and output it takes a lot of time for debugging. So when in a contests this is quite a helpful thing.
For taking input from a file...
In linux,
$./a.out < in_filename
In windows(working on Cygwin or MingW),
$a.exe < i.in
Similarly for storing output into a file...
In Linux,
$./a.out < out_filename
In widnows,
$a.exe < out_filename
the file can have any extension as such .txt,.c,.cpp... etc reads like a binary file i suppose(txt always works). It assumes this file that you provide as the Console...so enjoy saving time on debugging programs that have large inputs.
For taking input from a file...
In linux,
$./a.out < in_filename
In windows(working on Cygwin or MingW),
$a.exe < i.in
Similarly for storing output into a file...
In Linux,
$./a.out < out_filename
In widnows,
$a.exe < out_filename
the file can have any extension as such .txt,.c,.cpp... etc reads like a binary file i suppose(txt always works). It assumes this file that you provide as the Console...so enjoy saving time on debugging programs that have large inputs.
Friday, August 21, 2009
Longest Words.....
This is interesting.....
When I was surfing for longest word in Shakespeare Work's I came through this page..... quite interesting ..... lots of words .....lots of info....
It says the longest word is about whopping "3,609,750" letters long
For more visit the page ..... http://longestword.nigeltomm.com/
When I was surfing for longest word in Shakespeare Work's I came through this page..... quite interesting ..... lots of words .....lots of info....
It says the longest word is about whopping "3,609,750" letters long
For more visit the page ..... http://longestword.nigeltomm.com/
Sunday, August 9, 2009
What can be said about programming ... it is oceanic .... lots of APIs lots of Devleopers Kits. I have tried on many of these. Here I will try my best to share all these with you.
And about life ... I will try to share what all I think I should necessarily share with the world.
And about life ... I will try to share what all I think I should necessarily share with the world.
Subscribe to:
Posts (Atom)