Thursday, March 26, 2009

Kahin Toh .. Hogi Woh.. Chords Jaane Tu Ya Jaane Na


I found a little bit time to chill out and search for chords for this song. I absolutely love this song. I found it on indianguitartabs and I believe they are perfect. I tried playing it on barre chords and they sound fabulous but still not confirmed with the strumming pattern. Will confirm with my teacher and also provide the strumming pattern. Hope this helps other beginners like me to excel forward.

D#


Dm


A#


C


Gm




(A#)Kahin to.. (A#)Kahin to.. (Dm)hogi wo..
(D#)Duniya jahan tu mere (C)sath hai.
(A#)jahan main… (A#)jahan tu… (Dm)Aur jahan..
(D#)bas tere mere (C)jazbaat hai…

(Dm)Hogi jahan… sa(Gm)ba teri…
(A#)palkon ki… (F)kirno(D#) ne…
(Dm)Dori jahan.. (Gm)chand ki…
(A#)sun teri.. bahon (D#)mein……….

(A#)jaane na kahan wo du(D#)niya hai
(C)jaane na wo hai bhi (F)ya nahi
(A#)jahan meri zin(D#)dagi mujhse
(D#)itni (F)khafa (A#)nahi… x 2


ANTRA

(C)Saasein kho gayi hai kiski (Gm)aahon mein…
(C)Mein kho gayi hoon jane kiski (Gm)baahon mein
(C)Manzilon se rahe dhoond(Gm)te chali
Aur (C)kho gayi hai manzil kahin (Gm)rahon mein

(A#)kahi to.. (A#)kahi to.. (Dm)hai nasha…
(D#)teri meri har mula(C)qat mein…
(A#)hotho se.. (A#)hotho ko.. (Dm)chumti…
oh (D#)rehte hai hum har (C)baat pe..

(Dm)kehti hai, fi(Gm)za jahan..
(A#)teri zameen, (F)aas(D#)man…
(Dm)jaha hai tu, (Gm)meri haseen,
(A#)meri khushi, meri ja(D#)han….

(A#)jaane na kahan wo du(D#)niya hai
(C)jaane na wo hai bhi (F)ya nahi
(A#)jahan meri zin(D#)dagi mujhse
(D#)itni (F)khafa (A#)nahi…

Saturday, March 21, 2009

Fundamental questions of C++

The following are the initial questions asked by a technical recruiter for a good project in C++. Have a look and hope this helps.

What is the difference between an ARRAY and a LIST?

-->Array is collection of homogeneous elements.
-->List is collection of heterogeneous elements.

-->For Array memory allocated is static and continuous.
-->For List memory allocated is dynamic and Random.

-->Array: User need not have to keep in track of next memory allocation.
-->List: User has to keep in Track of next location where memory is allocated.

-->Array uses direct access of stored members
-->List uses sequencial access for members.

//With Array you have direct access to memory position 5
Object x = a[5]; // x takes directly a reference to 5th element of array

//With the list you have to cross all previous nodes in order to get the 5th node:
list mylist;
list::iterator it;

for( it = list.begin() ; it != list.end() ; it++ )
{
if( i==5)
{
x = *it;
break;
}
i++;
}

What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

-->Virtual

What are 2 ways of exporting a function from a DLL?
1.Taking a reference to the function from the DLL instance.
2. Using the DLL ’s Type Library

What is the difference between Mutex and Binary semaphore?

semaphore is used to synchronize processes. where as mutex is used to provide synchronization between threads running in the same process.


STL Containers - What are the types of STL containers?
There are 3 types of STL containers:

1. Adaptive containers like queue, stack
2. Associative containers like set, map
3. Sequence containers like vector, deque



Describe two ways where you can prevent a class from being instantiated.

--> Declare all static methods/functions.
--> Declare a private constructor.

Difference between DELETE, TRUNCATE and DROP statements in SQL

--> DELETE
- DML statement
- used to remove rows from a table
- WHERE clause can be sued to remove only some rows.
- After performing DELETE operation you can commit or rollback the transaction to make the change permenant or undo it.
- This operation will cause all TRIGGERS on table to fire.

--> TRUNCATE
- DDL statement
- removes all rows from a table
- operation cannot be rolled back and no triggers will be fired.
- TRUNCATE is faster and doesn't use as much undo space as DELETE.

--> DROP
- DDL statement
- removes a table from a database
- all the tables' rows, indexes and privileges will also be removed.
- No DML triggers will be fired.
- Operation cannot be rolled back.

From Oracle 10g a table can be undropped.
FLASHBACK TABLE emp TO BEFORE DROP
Flashback Complete

Thursday, March 19, 2009

XML -- Interview Questions


Interview preparation can be a difficult process and in the current market scenario one has to have the right skills and capabilities to get a job.

So I have a bunch of stuff that I have hands on experience but do not have thorough knowledge of. Lets begin with XML today.

1. What is XML?

Ans. XML (eXtensible Markup Language) is all about describing data.

2. What are the namespaces in .NET used for XML?

Ans.
1. System.Xml
2. System.Xml.Schema
3. System.XML.XPath
4. System.Xml.Xsl

3. What is a XML Parser?

Ans. XML Parser sits in between the XML document and the application who wants to use the XML document.

There are two standard specifications which are very common and should be followed by a XML parser:-

DOM (Document Object Model)
- W3C recommended way for treating XML documents.
- Load entire XML document into memory and allows us to manipulate the structure and data of XML document.

SAX (Simple API for XML
- Event Driven way for processing XML documents.
- SAX parser parses XML document sequentially and emits events like start and end of the document, elements, text content, etc.
- Best for large XML documents which cannot be loaded directly into the memory.

4. What are the core functionalities in XML.NET framework?

Ans. The core functionalities in XML.NET framework are

1. XML Readers
2. XML Writers
3. XML Document

1. XML Readers
- allows you to scroll forward through the contents like moving from node to node or element to element.
- allows you to browse through the XML document.

2. XML Writers
- can store the XML contents to any other storage media.

3. XML Document
- provides a in memory representation for the data in an XMLDOM structure as defined by W3C.
- supports browsing and editing of the document.
- Gives complete tree structure representation of your XML document.

5. What is XSLT?

- rule based language used to transform XML docs into other file formats.
- generic transformation rules which can be applied to transform XML document to HTML, CSS, Rich Text, etc.


6. What is XPATH?

- XML query language to select specific parts of an XML document.
- Using XPATH you can address or filter elements and text in a XML document.
- e.g. "Invoice/Amount" states find "Amount" node which are children of "Invoice" node.

7. What is a XPointer?

- used to locate data within XML document.
- can point to a particular portion of XML document.
- e.g.

address.xml#xpointer(/descendent::streetnumber[@id=9])

- So the above XPOINTER points streetnumber = 9 in "address.xml".
8. What is a XMLReader Class?

- abstract class from System.XML namespace.
- works on a read only stream browsing from one node to another in forward direction.
- You cannot modify the XML document. You can only move forward.

9. What is a XMLTextReader?

- helps provide fast access to streams of XML data in a fowrward-only and read-only manner.
- checks if the XML is well formed (properly formatted with opening and ending tags)
- does not validate against a schema or DTD for that you will need "XmlNodeReader" or "XmlValidationReader" class.

Monday, March 2, 2009

Tu Bin Bataye Mujhe Le Chal Kahin.,... Rang de basanti Chords





[C]Tu Bin Ba[G]Taye Mujhe [F]Le Chal Ka[G]Hi
Jahan [C]Tu Musku[G]Raye Meri [F]Manzil Wa[G]Hi
[C]Tu Bin Ba[G]Taye Mujhe [F]Le Chal Ka[G]Hi
Jahan [C]Tu Musku[G]Raye Meri [F]Manzil Wa[G]Hi

[C]Meethi La[Am]Gi, Chakh Ke [F]Dekhi Ab[G]Hi
Mish[F]Ri Ki Da[G]Li, Zinda[F]Gi Ho Cha[G]Li
Jahan [C]Hai Teri [G]Baahe Mera [F]Sahil Wa[G]Hi
[C]Tu Bin Ba[G]Taye Mujhe [F]Le Chal Ka[G]Hi
Jahan [C]Tu Musku[G]Raye Meri [F]Manzil Wa[G]Hi

[C]Mann Ki Ga[Am]Li Tu Phu[F]Haro Si [G]Aa
[F]Bheeg Jaye [G]Mere Khwabon [F]Ka Kafi[G]La
Jise [C]Tu Gungu[G]Naye Meri [F]Dhun Hai Wa[G]Hi
[C]Tu Bin Ba[G]Taye Mujhe [F]Le Chal Ka[G]Hi
Jahan [C]Tu Musku[G]Raye Meri [F]Manzil Wa[G]Hi

[C]Tu Bin Ba[G]Taye Mujhe [F]Le Chal Ka[G]Hi
Jahan [C]Tu Musku[G]Raye Meri [F]Manzil Wa[G]Hi