01:59

My Placement Experiece:  

jan 24th,2014.

job profile           : software Engineer
job location        :  Bangalore



Selection Procedure:
PPT, Written Test and Technical discussions
   


Written Test:
1:Apti(Logical Reasoning) 10 questions
2-C apti
3- General Comp. Sc. : Networking, OS, 
4-Coding Section

Coding Section Questions:
1.Write a program to print the no of digits in the binary form of the decimal number.
2.Write the functions to create a stack and to delete a node from the stack.
3.Write a program to return the Nth prime number from the Fibonacci series.
4.You are given a string and a number.Count the no of '-' characters in the string and return 1 if the count is equal to the number given or else return 0.


1st Technical Round:

Asked me to explain the code for fibonaci prime
Asked me to write a code for primality test.


Pointers & References questions,
Gave the following , i have to figure it out which are valid/invalid and explain why?
int &x=y;
int &x=20;
int &x=y+20;
char a[2]=”my”
char b[2]={'m','y'};

CPP:
what is polymorphisim?
what is difference between copy constructor and assign operator?
ask me to write a example also.
can i write virtual constructor & virtual distructor?yes/no & why?


Networking:

TCP vs UDP, 
he drawn a Network and ask me to explain,
how UDP packet will reach from it's source to Destination and what happen at each node.
how DHCP works?,what is ARP?It works in which layer?what is Routing?
what is DNS?How DNS works?

2nd Technical Round:

C & CPP:

Tell me about your project?
what is the sizeof empty structure?
sizeof empty class?

what is name mangling?

tricky questions on virtual functions?
what is virtual table?
how compiler resolves virtual functions?
what is size of a class with more than one virtual functions?
what is pure virtual Function?
what is abstract class?
can i write virtual constructor & virtual distructor?yes/no & why?(which, i was already answered in 1st round)what is smart pointer?.


How c program get executed?
what are intermediate files generated?
ask me explain those stages of execution?
Print.c, print.i, print.s, print.o.

Operating Systems:


How to create process create?
asked me tell me about some signals like SIGCHLD,SIGSEGV,....etc. what is the first process created in unix environment after Booting.
what is Init procees and it's pid?.



1st Round: 1hr
2nd Round: 30mins.
NO HR round for me.





They ask me to wait for a minute. HR came out announced the Results.
ofcourse, my name was there in that list.

that's it. show over...


03:08

String Reverasal by Word in C:



#include<stdio.h>

int main() {
const char * s = " this is nitk surathkal ";

int len = strlen(s);
int i = len-1;
int j,k;

while (1)
{

//while (i>=0 && s[i] == ' ') i--;
if (i<0) break;

j=i;
while (i>=0 && s[i] != ' ') i--;
for ( k=i+1; k<=j; k++) printf("%c", s[k]);
printf(" ");

i--;

}
printf("\n");
}

Output: surathkal nitk is this

09:48

How to Setup a MySql server to accept remote connections

on ubuntu machines?
or
common mysql error while doing remote Connection

error 2003 (hy000) can't connect to mysql server on

 (111)


On server side:

step #1. Open your my.cnf (/etc/mysql/my.cnf usually)  in a editor.

 step #2. bind-address:  IP Address to bind. set this to  whatever IP your machine uses to connect to the outside world.

bind-address= 127.0.0.1

set this to
bind-address=YOUR-SERVER-IP

step #3. skip-networking: Don't Listen to TCP/IP connections at all. only communicate with local host not external world.

skip-networking
comment this line by adding a "#" in front of it.

step #4. save and close the file.

Don't forget to restart your mysqld after these change.

/etc/init.d/mysqld restart

step #5. Grant access to remote IP address

Connect to mysql Server:

# mysql -u root -p mysql

Grant access to new database:
let satya is a remote user and his ip is 10.100.39.172.


mysql>CREATE DATABASE mydb;
mysql>GRANT ALL PRIVILEGES on *.* To 'satya'@'10.100.39.172'
IDENTIFIED BY 'password' WITH GRANT OPTION;

To check it out, whether a user is add or not:

select user form mysql.user;
To see full details of permissions granted to a user:

select * from information_schema.user_privileges;


How to Grant access to existing database:


mysql>update db set Host='10.100.39.172' where Db='mydb';
mysql>update user set Host='10.100.39.172' where user='satya';

step #6.Logout of MySQL

mysql>exit

On Client Side:

# mysql -u satya -h 10.100.39.172 -p 
# password:prompt for password

u:user,  h: host, p: prompt for password

That's it your remote mysql database connection is established, successfully.




05:35

The Most Useful Websites and Web Apps:



1. screenr.com [1] – record movies of your desktop and send them straight to
YouTube.
2. ctrlq.org/screenshots [2] – for capturing screenshots of web pages [3] on
mobile and desktops.
3. goo.gl [4] – shorten long URLs and convert URLs into QR codes [5].
4. unfurlr.come [6] – find the original URL that’s hiding behind a short URL.
5. qClock [7] – find the local time of a city using a Google Map [8].
6. copypastecharacter.com [9] – copy special characters that aren’t on your
keyboard.
7. postpost.com [10] – a better search engine for twitter.
8. lovelycharts.com [11] – create flowcharts, network diagrams, sitemaps, etc.
9. iconfinder.com [12] – the best place to find icons of all sizes.
10. office.com [13] – download templates, clipart and images for your Office
documents.
11. followupthen.com [14] – the easiest way to setup email reminders [15].
12. jotti.org [16] – scan any suspicious file or email attachment for viruses.
13. wolframalpha.com [17] – gets answers directly without searching – see more
wolfram tips [18].
14. printwhatyoulike.com [19] – print web pages without the clutter.
15. joliprint.com [20] – reformats news articles and blog content as a newspaper.
16. ctrql.org/rss [21] – a search engine for RSS feeds.
17. e.ggtimer.com [22] – a simple online timer for your daily needs.
18. coralcdn.org [23] – if a site is down due to heavy traffic, try accessing it
through coral CDN.
19. random.org [24] – pick random numbers, flip coins, and more.
20. pdfescape.com [25] – lets you can quickly edit PDFs [26] in the browser itself.
21. viewer.zoho.com [27] – Preview PDFs and Presentations directly in the
browser.
22. tubemogul.com [28] – simultaneously upload videos to YouTube and other
http://www.labnol.org/internet/101-useful-websites/18078/
1/10
1/12/2014
The 101 Most Useful Websites on the Internet
video sites [29].
23. ctrlq.org/dictation [30] – online voice recognition in the browser itself.
24. scr.im [31] – share you email address online without worrying about spam.
25. spypig.com [32] – now get read receipts [33] for your email.
26. sizeasy.com [34] – visualize and compare the size of any product.
27. myfonts.com/WhatTheFont [35] – quickly determine the font name from an
image.
28. google.com/webfonts [36] – a good collection of open source fonts [37].
29. regex.info [38] – find data hidden in your photographs – see more EXIF tools
[39].
30. livestream.com [40] – broadcast events live over the web, including your
desktop screen.
31. iwantmyname.com [41] – helps you search domains [42] across all TLDs.
32. homestyler.com [43] – design from scratch or re-model your home in 3d [44].
33. join.me [45] – share you screen with anyone over the web.
34. onlineocr.net [46] – recognize text from scanned PDFs – see other OCR tools
[47].
35. flightstats.com [48] – Track flight status at airports worldwide.
36. wetransfer.com [49] – for sharing really big files [50] online.
37. hundredzeros.com [51] – the site lets you download free Kindle books [52].
38. polishmywriting.com [53] – check your writing for spelling or grammatical
errors.
39. marker.to [54] – easily highlight the important parts of a web page for sharing.
40. typewith.me [55] – work on the same document with multiple people.
41. whichdateworks.com [56] – planning an event? find a date [57] that works for
all.
42. everytimezone.com [58] – a less confusing view of the world time zones [59].
43. gtmetrix.com [60] – the perfect tool for measuring your site performance [61]
online.
44. noteflight.com [62] – print music sheets, write your own music online (review
[63]).
45. imo.im [64] – chat with your buddies on Skype, Facebook, Google Talk, etc.
from one place.
46. translate.google.com – translate web pages, PDFs and Office documents.
47. kleki.com [65] – create paintings and sketches with a wide variety of brushes.
http://www.labnol.org/internet/101-useful-websites/18078/
2/10
1/12/2014
The 101 Most Useful Websites on the Internet
48. similarsites.com [66] – discover new sites that are similar to what you like
already.
49. wordle.net [67] – quick summarize long pieces of text with tag clouds.
50. bubbl.us [68] – create mind-maps, brainstorm ideas in the browser.
51. kuler.adobe.com [69] – get color ideas, also extract colors [70] from
photographs.
52. liveshare.com [71] – share your photos in an album instantly.
53. lmgtfy.com [72] – when your friends are too lazy to use Google on their own.
54. midomi.com [73] – when you need to find the name of a song [74].
55. bing.com/images [75] – automatically find perfectly-sized wallpapers for
mobiles [76].
56. faxzero.com [77] – send an online fax for free – see more fax services [78].
57. feedmyinbox.com [79] – get RSS feeds as an email newsletter.
58. ge.tt [80] – quickly send a file to someone, they can even preview it before
downloading.
59. pipebytes.com [81] – transfer files of any size without uploading to a third-
party server.
60. tinychat.com [82] – setup a private chat room in micro-seconds.
61. privnote.com [83] – create text notes that will self-destruct after being read.
62. boxoh.com [84] – track the status of any shipment on Google Maps –
alternative [85].
63. chipin.com [86] – when you need to raise funds online for an event or a cause.
64. downforeveryoneorjustme.com [87] – find if your favorite website is offline or
not?
65. ewhois.com [88] – find the other websites [89] of a person with reverse
Analytics lookup.
66. whoishostingthis.com [90] – find the web host of any website.
67. google.com/history [91] – found something on Google but can’t remember it
now?
68. aviary.com/myna [92] – an online audio editor that lets record, and remix
audio clips online.
69. disposablewebpage.com [93] – create a temporary web page [94] that self-
destruct.
70. urbandictionary.com [95] – find definitions of slangs and informal words.
71. seatguru.com [96] – consult this site before choosing a seat for your next
http://www.labnol.org/internet/101-useful-websites/18078/
3/10
1/12/2014
The 101 Most Useful Websites on the Internet
flight.
72. sxc.hu [97] – download stock images absolutely free.
73. zoom.it [98] – view very high-resolution images in your browser without
scrolling.
74. scribblemaps.com [99] – create custom Google Maps easily.
75. alertful.com [100] – quickly setup email reminders for important events.
76. picmonkey.com [101] – Picnik is offline but PicMonkey is an even better
image editor.
77. formspring.me [102] – you can ask or answer personal questions here.
78. sumopaint.com [103] – an excellent layer-based online image editor.
79. snopes.com [104] – find if that email offer you received is real or just another
scam.
80. typingweb.com [105] – master touch-typing with these practice sessions.
81. mailvu.com [106] – send video emails to anyone using your web cam.
82. timerime.com [107] – create timelines with audio, video and images.
83. stupeflix.com [108] – make a movie out of your images, audio and video clips.
84. safeweb.norton.com [109] – check the trust level of any website.
85. teuxdeux.com [110] – a beautiful to-do app that looks like your paper dairy
[111].
86. deadurl.com [112] – you’ll need this when your bookmarked web pages are
deleted [113].
87. minutes.io [114] – quickly capture effective notes during meetings.
88. youtube.com/leanback [115] – Watch YouTube channels in TV mode.
89. youtube.com/disco [116] – quickly create a video playlist of your favorite
artist.
90. talltweets.com [117] – Send tweets longer than 140 characters.
91. pancake.io [118] – create a free and simple website using your Dropbox
account.
92. builtwith.com [119] – find the technology stack of any website.
93. woorank.com [120] – research a website from the SEO perspective.
94. mixlr.com [121] – broadcast live audio over the web.
95. radbox.me [122] – bookmark online videos and watch them later (review [123]).
96. tagmydoc.com [124] – add QR codes to your documents and presentations
(review [125]).
http://www.labnol.org/internet/101-useful-websites/18078/
4/10
1/12/2014
The 101 Most Useful Websites on the Internet
97. notes.io [126] – the easiest way to write short text notes in the browser.
98. ctrlq.org/html-mail [127] – send rich-text mails to anyone, anonymously.
99. fiverr.com [128] – hire people to do little things for $5.
100. otixo.com [129] – easily manage your online files [130] on Dropbox, Google
Docs, etc.