Ads

//

Love Quotes

LOVE Quotes

Time goes by a lot slower when you miss the one you love.

I did three things today; miss you, miss you, and miss you.

Sometimes, when one person is missing, the whole world seems depopulated.

Each time I miss you, a star falls down from the sky. So, if you looked up at the sky and found it dark with no stars, it is all your
fault. You made me miss you too much!

Life is so short, so fast the lone hours fly, We ought to be together, you and I.

A day without you is like a day without sunshine… I miss you…

When I see your smile, and I know it’s not for me, that’s when I’ll miss you.

A hug for you means I need you. A kiss for you means I love you. A call for you means I’m missing you.

I’m a fish out of water without you.

It’s true we don’t know what we’ve got until its gone, but we don’t know what we’ve been missing until it arrives.

Love is missing someone whenever you’re apart, but somehow feeling warm inside because you’re close in heart.

I miss your love I miss your touch, But I’m feeling you everyday.

Absence makes the heart grow fonder.

If I had a single flower for every time I think about you, I could walk forever in my garden.

Love reckons hours for months, and days for years; and every little absence is an age.

For everything you have missed, you have gained something else, and for everything you gain, you lose something else.

Cause I love you and I miss you, hearing your voice is the closest thing to touching you.

I dropped a tear in the ocean. The day you find it is the day I will stop missing you.

Missing you could turn from pain to pleasure, if I knew you were missing me too.

The reason it hurts so much to separate is because our souls are connected.

You never know what you have until you lose it, and once you lose it, you can never get it back.

You may be out of my sight… but never out of my mind… I Miss You!

Although we’ve come to the end of the road, still I can’t let you go, it’s unnatural, you belong to me, I belong to you .

When I miss you, I don’t have to go far … I just have to look inside my heart because that’s where I’ll find you.

I think we dream so we don’t have to be apart so long. If we’re in each other’s dreams, we can play together all night.

I heard someone whisper your name, but when I turned around to see who it was, I was alone. Then I realized that it was my
heart telling me that I miss you.

When I miss you, sometimes I listen to music or look at pictures of you, not to remind me of you but to make me feel as if I’m with
you. It makes me forget the distance and capture you.

Nothing hurts more then waiting since I don’t even know what I’m waiting for anymore.

To me you are my rose; every day when I see a beatiful rose I think of you, and miss you, and hope to hold you in my arms.

Can miles truly separate you from friends…. If you want to be with someone you love, aren’t you already there?

Why is it that when you miss someone so much that your heart is ready to disintegrate, you hear the saddest song on the radio?

Beauty Tips

Honey Milk Facial Cream

 

To make your skin glow and flawless.

 

 

Materials:

Honey Milk Procedure:
In a piece of container mix honey and milk. Stir until it became creamy. Apply into face and leave it for about 15 minutes. Wash off with lukewarm water. —————————————-

Lemon-Cucumber Whitening Extract

 

This recipe is good in whitening dark underarms and neck.

 

 

You will need:

Lemons ,Cucumber , Turmeric Procedure:
Extract lemon juice using juicer, and extract the same with cucumber. Mix lemon and cucumber juice together with a pinch of turmeric.
Apply to neck or underarms daily and leave this for 20 minutes. Then rinse thoroughly with lukewarm water—————————————-

Apple Slices Oil Control Solution

 

This recipe is good for oily face. It cleans the pores and controls oily secretion.

 

 

You will need:

Apple Procedure:
Thinly slice the apple and rub gently onto oily skin. —————————————-

Orange Peels Natural Bleach

 

For fairer skin and natural skin bleaching.

 

 

You will need:

Orange peels ,Milk Procedure:
Dry the orange peels under the heat of the sun. Leave it until it is dry enough to be powdered into pieces. Mix the powder and the milk thoroughly and apply this paste in the skin for 25 minutes. Wash off with water and do this regularly or alternate days. —————————————-

Tomato-Honey Skin Toner

 

For a clearer and more vibrant well-toned skin

 

 

You will need:

Tomato juice ,Honey Procedure:
Mix the tomato juice with honey until it appears sticky. Apply the mixture of tomato juice and honey on the face and neck. Wash it after 15 minutes. —————————————-

 

 

Tomato-Curd Facial Moisturizer

 

This recipe will moisturize your skin in natural way.

 

 

You will need:
2 tablespoon of tomato juice
4 teaspoon of curd Procedure:
Mix the 2 tablespoon of tomato juice with 4 teaspoon of curds, mix thoroughly until everything goes creamy. Apply on the face for 20 minutes and rinse face with lukewarm water. —————————————-

Cabbage and Yeast Facial Cream

 

To remove skin blemishes and takes away stubborn skin dirt.

 

 

You will need:
Pinch of yeast
2 teaspoon of cabbage juice Procedure:
Chop the leaves and the cabbage buds, extract the cabbage juice by any means of juicer. Get 2 teaspoon of the juice and add a pinch of yeast. Apply it to face and leave the cream for 20-30 minutes. Wash face with lukewarm water and pat dry. —————————————-

Carrots and Pineapple Extract

 

To renew skin cells into youthful glow.

 

 

You will need:
Pineapple juice
Carrot juice Procedure:
Mix pineapple juice and carrot juice together. Apply on face by using cotton balls. Leave the extract for 15 minutes and wash face with lukewarm water. Repeat this remedy as often as your want.—————————————-

Carrots and Pineapple Extract

 

To renew skin cells into youthful glow.

 

 

You will need:
Pineapple juice
Carrot juice Procedure:
Mix pineapple juice and carrot juice together. Apply on face by using cotton balls. Leave the extract for 15 minutes and wash face with lukewarm water. Repeat this remedy as often as your want.—————————————-

Oily Skin Controlling Cream

 

To extensively remove oily skin that may cause pimples.

 

 

You will need:
Oatmeal
Egg white Procedure:
Mix the egg white with oatmeal enough to create a creamy paste. Mix thoroughly and apply to face and neck liberally. Leave the mixture for 20 minutes and wash with clean water. Do this as often as needed. —————————————-

 

 

 

 

Posted in Tips. 4 Comments »

C++ Part4

Why do C++ compilers need name mangling?

Name mangling is the rule according to which C++ changes function’s name into function signature before passing that function to a linker. This is how the linker differentiates between different functions with the same name.

Is there anything you can do in C++ that you cannot do in C?

No. There is nothing you can do in C++ that you cannot do in C. After all you can write a C++ compiler in C. 

 

 


This is my little collection of C++ Tipps/Tricks/little known facts.
Every time i discover something worth adding, i will put it here.

1. Discovering Memory Leaks
2. CPUID/RDTSC
3. Exact Time Measuring
4. Functionpointer to class memberfunctions
5. Setting Fullscreen mode under windows
6. Know thy stringstreams
7. std::sort with non-static compare-method in a class

1. Discovering Memory Leaks
Of course if you are working on a serious project you will use a sophisticated memory manager that will also discover memory leaks (along with their exact position in the code), but if you just want to do a quick test there is an easy way to let the debugger check for memory leaks:
– Include crtdbg.h in your project.
– At the beginning of you main() / WinMain () put this code:

int flag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
flag |= _CRTDBG_LEAK_CHECK_DF;
_CrtSetDbgFlag(flag);

This works in VC++ ( i don’t know about other compilers tho ) and, if you run the programm in debug mode (Hit F5), it will report memory leaks in the debug output window.

2. CPUID/RDTSC
You have propably heard about the assembler instruction CPUID and RDTSC, which are supported by VC++ 6 and higher, but if you have an older compiler you can make use of the __emit function. This is a pseudo-asm instruction that lets you insert bytes directly into the outputted .exe. So, with a compiler that doesn’t know the cpuid/rdtsc instuctions we can just use a little macro to put their respective opcodes directly as binary values into our program:

#define rdtsc __asm __emit 0fh __asm __emit 031h
#define cpuid __asm __emit 0fh __asm __emit 0a2h

C++ Part3

Explain the ISA and HASA class relationships. How would you implement each in a class design?

A specialized class “is” a specialization of another class and, therefore, has the ISA relationship with the other class.
This relationship is best implemented by embedding an object of the Salary class in the Employee class.

When is a template a better solution than a base class?

When you are designing a generic class to contain or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or management, and particularly when those other types are unknown (thus, the generality) to the designer of the container or manager class.

What are the differences between a C++ struct and C++ class?

The default member and base-class access specifies are different.
This is one of the commonly misunderstood aspects of C++. Believe it or not, many programmers think that a C++ struct is just like a C struct, while a C++ class has inheritance, access specifies, member functions, overloaded operators, and so on. Actually, the C++ struct has all the features of the class. The only differences are that a struct defaults to public member access and public base-class inheritance, and a class defaults to the private access specified and private base-class inheritance.

How do you know that your class needs a virtual destructor?

If your class has at least one virtual function, you should make a destructor for this class virtual. This will allow you to delete a dynamic object through a baller to a base class object. If the destructor is non-virtual, then wrong destructor will be invoked during deletion of the dynamic object.

What is the difference between new/delete and malloc/free?

Malloc/free do not know about constructors and destructors. New and delete create and destroy objects, while malloc and free allocate and deallocate memory.

What happens when a function throws an exception that was not specified by an exception specification for this function?

Unexpected() is called, which, by default, will eventually trigger abort().

Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?

C++ allows for dynamic initialization of global variables before main() is invoked. It is possible that initialization of global will invoke some function. If this function crashes the crash will occur before main() is entered.

What issue do auto_ptr objects address?

If you use auto_ptr objects you would not have to be concerned with heap objects not being deleted even if the exception is thrown.

Is there any problem with the following:
char *a=NULL; char& p = *a;?

The result is undefined. You should never do this. A reference must always refer to some object.

Posted in C/C++. 7 Comments »

C++ Part2


What is your reaction to this line of code?
delete this;
It is not a good programming Practice.
A good programmer will insist that you should absolutely never use the statement if the class is to be used by other programmers and instantiated as static, extern, or automatic objects. That much should be obvious.
The code has two built-in pitfalls. First, if it executes in a member function for an extern, static, or automatic object, the program will probably crash as soon as the delete statement executes. There is no portable way for an object to tell that it was instantiated on the heap, so the class cannot assert that its object is properly instantiated. Second, when an object commits suicide this way, the using program might not know about its demise. As far as the instantiating program is concerned, the object remains in scope and continues to exist even though the object did itself in. Subsequent dereferencing of the baller can and usually does lead to disaster. I think that the language rules should disallow the idiom, but that’s another matter.

What is the difference between a copy constructor and an overloaded assignment operator?

A copy constructor constructs a new object by using the content of the argument object. An overloaded assignment operator assigns the contents of an existing object to another existing object of the same class.

When should you use multiple inheritance?

There are three acceptable answers:- “Never,” “Rarely,” and “When the problem domain cannot be accurately modeled any other way.”

Consider an Asset class, Building class, Vehicle class, and CompanyCar class. All company cars are vehicles. Some company cars are assets because the organizations own them. Others might be leased. Not all assets are vehicles. Money accounts are assets. Real estate holdings are assets. Some real estate holdings are buildings. Not all buildings are assets. Ad infinitum. When you diagram these relationships, it becomes apparent that multiple inheritance is a likely and intuitive way to model this common problem domain. The applicant should understand, however, that multiple inheritance, like a chainsaw, is a useful tool that has its perils, needs respect, and is best avoided except when nothing else will do.

What is a virtual destructor?

The simple answer is that a virtual destructor is one that is declared with the virtual attribute.
The behavior of a virtual destructor is what is important. If you destroy an object through a baller or reference to a base class, and the base-class destructor is not virtual, the derived-class destructors are not executed, and the destruction might not be comple

Can a constructor throw a exception? How to handle the error when the constructor fails?

The constructor never throws a error.

What are the debugging methods you use when came across a problem?

Debugging with tools like :

GDB, DBG, Forte, Visual Studio.

Analyzing the Core dump.

Using tusc to trace the last system call before crash.

Putting Debug statements in the program source code.

How the compilers arranges the various sections in the executable image?

The executable had following sections:-

Data Section (uninitialized data variable section, initialized data variable section )

Code Section

Remember that all static variables are allocated in the initialized variable section.

C++ Part1

Is it possible to have Virtual Constructor? If yes, how?If not, Why not possible ?

There is nothing like Virtual Constructor.
The Constructor cant be virtual as the constructor is a code which is responsible for creating a instance of a class and it cant be delegated to any other object by virtual keyword means.

What about Virtual Destructor?

Yes there is a Virtual Destructor. A destructor can be virtual as it is possible as at runtime depending on the type of object baller is balling to , proper destructor will be called.

What is Pure Virtual Function? Why and when it is used ?

The abstract class whose pure virtual method has to be implemented by all the classes which derive on these. Otherwise it would result in a compilation error.
This construct should be used when one wants to ensure that all the derived classes implement the method defined as pure virtual in base class.

What is problem with Runtime type identification?

The run time type identification comes at a cost of performance penalty. Compiler maintains the class.

How Virtual functions call up is maintained?

Through Look up tables added by the compile to every class image. This also leads to performance penalty.

Can inline functions have a recursion?

No.
Syntax wise It is allowed. But then the function is no longer Inline. As the compiler will never know how deep the recursion is at compilation time.

How do you link a C++ program to C functions?

By using the extern “C” linkage specification around the C function declarations.
Programmers should know about mangled function names and type-safe linkages. Then they should explain how the extern “C” linkage specification statement turns that feature off during compilation so that the linker properly links function calls to C functions.

Explain the scope resolution operator?

It permits a program to reference an identifier in the global scope that has been hidden by another identifier with the same name in the local scope.

How many ways are there to initialize an int with a constant?

1. int foo = 123;
2. int bar(123);

Posted in C/C++. 7 Comments »

GPRS

GPRS – General Packet Radio Service

General Packet Radio Service (GPRS) is a data service designed for second generation GSM and PCS networks. It uses a packet radio principle to carry end user’s packet data protocol like IP or X.25 information from mobiles to external packet data networks and visa versa. GPRS optimises the use of radio and network resources. Separation between the base station subsystem and network subsystem is maintained and the network subsystem can be reused with other services. GPRS radio channel reservation and allocation is done flexible from 1 to 8 radio interface timeslots per TDMA frame and timeslots are shared by all the active users. Up and downlink are allocated separately. The radio interface resources are shared dynamically between data and speech services according to operator’s preference and base station load.

Several radio channel coding schemes are specified to allow data rates from 9 kbits/s up to 171 kbits/s and eventually 384 kbits/s per user. The available bandwidth per channel depends upon which coding scheme is used. CS1 provides connectivity under “all conditions” and delivers a user throughput of up to 9.05 kbits/s, While CS4 requires excellent radio signal (Carrier to Interference ration of 27 dB) and delivers a user throughput of up to 21.4 kbits/s.

GPRS is designed to support intermittent and bursty data transfers and occasional transmission of large volumes of data, and point-to-point and point-to-multipoint services are also supported. GSM network requires two new network elements for GPRS. The Serving GPRS Support Node (SGSN), which performs security functions, mobility management and access control. Frame Relay connects the SGSN the base station system. The Gateway GSN (GGSN) is used for interworking with external packet-switched networks. GPRS is standardised in ETSI (European Telecommunications Standards Institute).

Ten Romantic Tips for Lover…

Romantic Tips:

1. Give your lover a dozen roses — and do it with a creative twist. Give eleven red roses and one white rose. Attach a note that reads: “In every bunch there’s one who stands out — and you are that one.”

2. Fake a power outage at home. (Loosen the fuses or throw the breaker switches.) With no TV to tempt you . . . with no computer to occupy you . . . with no furnace to heat you . . . you pretty much have no choice but to get out the candles, huddle around the fireplace and be romantic!

3. Get your partner a wristwatch. Inscribe it with: “I always have time for you.”

4. Attach a $100 bill to a Victoria’s Secret catalog, along with a note to him saying, “You choose.”

5. Identify that one pivotal event that brought the two of you together. Celebrate that event every year.

6. Practice even-day/odd-day romance: On even days it’s your turn to be romantic, and on odd days it’s your partner’s turn.

7. Following a bubble bath you’ve prepared for her, wrap her in a towel that you’ve warmed up in the dryer.

8. Write your partner a love letter or poem on one sheet of paper. Glue it to thin cardboard, cut it up into puzzle-shaped pieces, then mail all the pieces. Or, mail one puzzle piece per day!

9. Remove all the paper strips (that say “Kisses” on them) from a couple hundred Hershey’s Kisses. Fill a jewelry box with them. Wrap ’em up and present them to your partner. Write a certificate explaining that the slips are coupons redeemable for one kiss each.

10. Doesn’t your partner deserve a trophy for being the “World’s Best Lover”? Trophy shops have a wealth of ideas waiting for you. Just think of the romantic possibilities of plaques, medals, ribbons, nameplates, certificates and banners. And they all can be personalized, engraved, lettered or monogrammed.

Shayari : Samunder adhura hai kinaro ke bina

Chand adhura hai sitaro ke bina,
Gulshan adhura hai baharon ke bina,
Samunder adhura hai kinaro ke bina,
Jeena adhura hai tum jaise yaaro ke bina

==============================

hamari mehfil ko fasana mil gaya
hamari gazlon ko afsana mil gaya
Aapki Dosti aisi mili dost jaise
khuda ki taraf se koi nazrana mil gaya

==========================