Tuesday, December 30, 2014

Quotes - प्यार वो है तो

प्यार वो हैं..


जब माँ रात को आती है

और कहती हैं..

“सो जा, बाकी सुबह उठ कर पढ़ लेना”


प्यार वो हैं …

जब हम tution से वापस आये और पापा कहे-

“बेटा लेट होने वाले थे तो कॉल कर देते”


प्यार वो है….

जब भाभी कहती हैं –

“ओये हीरो;

लड़की पटी की नही”


प्यार वो हैं….

जब बहन कहती हैं-

“देखूंगी मेरी शादी के बाद तेरा काम कौन करेगा


“प्यार वो हैं….

जब हम निराश हो और भाई आकर कहे-

“चल नौटंकी कही घुमने चलते हैं”


प्यार वो है…

जब दोस्त कॉल करके कहे-

ओये कमीने जिन्दा हैं या मर गया”


यह है सच्चा प्यार।

इसे अपने जीवन मैं बिलकुल भी ना गवाएं..


प्यार केवल गर्ल फ्रेंड या बॉय फ्रेंड होना ही नही हैं।

यह प्यार उससे भी ऊपर हैं।

I love u my all friend….

Nice line


             मिली थी जिन्दगी

      किसी के ‘काम’ आने के लिए..


           पर वक्त बित रहा है

     कागज के टुकड़े कमाने के लिए..

                              

   क्या करोगे इतना पैसा कमा कर..?

ना कफन मे ‘जेब’ है ना कब्र मे ‘अलमारी..’


       और ये मौत के फ़रिश्ते तो

           ‘रिश्वत’ भी नही लेते..



Quotes - प्यार वो है तो

Wednesday, December 10, 2014

If someone will discuss others with you

image


Those who gossip to you will smile, make gestures & gently touch your hands. Avoid eye contact as much as possible. They will be in seventh, heaven, dolloping all their dull existing boring life. For sure they will walk away, unhappy, why? Because they feel they didn’t tell you enough or you didn’t listen enough. So remember those who gossip to you will always gossip about you. ~ David O’Brien


Be careful who you trust. If someone will discuss others with you, they will certainly discuss you with others!



If someone will discuss others with you

Sunday, November 16, 2014

आहिस्ता चल ज़िन्दगी

आहिस्ता चल ज़िन्दगी, अभी कई क़र्ज़ चुकाना बाकी है,

कुछ दर्द मिटाना बाकी है, कुछ फ़र्ज़ निभाना बाकी है;


रफ्तार में तेरे चलने से कुछ रूठ गए, कुछ छुट गए ;

रूठों को मनाना बाकी है, रोतो को हसाना बाकी है ;


कुछ हसरतें अभी अधूरी है, कुछ काम भी और ज़रूरी है ;

ख्वाइशें जो घुट गयी इस दिल में, उनको दफनाना अभी बाकी है ;


कुछ रिश्ते बनके टूट गए, कुछ जुड़ते जुड़ते छूट गए;

उन टूटे-छूटे रिश्तों के ज़ख्मों को मिटाना बाकी है ;


तू आगे चल में आता हु, क्या छोड़ तुजे जी पाऊंगा ?

इन साँसों पर हक है जिनका , उनको समझाना बाकी है ;


आहिस्ता चल जिंदगी , अभी कई क़र्ज़ चुकाना बाकी है ..



आहिस्ता चल ज़िन्दगी

Friday, November 14, 2014

Create SharePoint List Dynamically using Powershell Script


Create SharePoint List Dynamically using Powershell Script



In this post we will see how to create Sharepoint List dynamically using powershell script .


Please note that you can use notepad++ to write powershell scripts and save them with extension “.ps1″.


There are few variables which you need to assign some value e.g. site url and list name etc.

I would recommend to create this type of variables out side the function as I’ve done here.

Reason being is simple, you can use this variable in other functions in your script file.

Also, to make it workable we will add powershell Snap-in as mentioned in my last post.


Script:


#URL of the site where you wanna create your list dynamically.
$web = Get-SPWeb http://your site url

#List name
$ListName = "myList"
try

Write-Host "Adding PowerShell Snap-in" -ForegroundColor Green

# Try to get the PowerShell Snappin. If not, then adding the PowerShell snappin on the Catch Block
Get-PSSnapin "Microsoft.SharePoint.PowerShell"

catch

Add-PSSnapin "Microsoft.SharePoint.PowerShell"

Write-Host "Finished Adding PowerShell Snap-in" -ForegroundColor Green


#List type or template
$spTemplate = $web.ListTemplates["Custom List"]

#Get all the lists to the list collection
$spListCollection=$web.Lists

try

#adding the new list to the list collection
$spListCollection.Add($ListName,$ListName,$spTemplate)

Catch

Write-Host "Please Try Again..." -ForegroundColor Green
$web.Dispose()


Line $spTemplate = $web.ListTemplates["Custom List"] defines under which template we want our new list to be added.

In this example we are adding it to Custom List.


$spListCollection=$web.Lists will retrieve collection of existing sites and assign it to a variable.


$spListCollection.Add($ListName,$ListName,$spTemplate) will add a new list to Custom List template.


Now, I will explain how to Save and Execute this script.


Save this script with name e.g “CreateList.ps1”

To execute this open powershell management as administrator.

Goto the location where you saved your script

Type following command which will execute your script

PS C:\> .\CreateList.ps1


To check your list go to site contents and look for the list with name “myList”.



Create SharePoint List Dynamically using Powershell Script

Thursday, November 13, 2014

Microsoft takes. NET open source and cross-platform

image


Microsoft takes. NET open source and cross-platform


Since 12 years, .net framework has been a programming model for developers who want to build app for windows. On 12 November 2014 microsoft takes a bold step and announces that they are taking .net core 5 as cross platform and open source. That means you can ship a private version of the .NET Core Framework with your app.


Some of the features of asp.net 5


CrossPlatform compatability


.net core will be shipped via nuget.That means you can ship a private version of the .NET Core Framework with your app..NET Core CLR for Windows, Mac and Linux and it will be both open source and it will be supported by Microsoft. It’ll all happen at https://github.com/dotnet. Open sourcing the Jit and the .NET GC and making them both cross-platform.


ASP.NET 5.0 ability to work everywhere


ASP.NET 5 will be available for Windows, Mac, and Linux. Mac and Linux support will come soon and it’s all going to happen in the open on GitHub at https://github.com/aspnet. ASP.NET 5 will include a web server for Mac and Linux called kestrel built on libuv, and you could front it with Nginx for production. There is a new FREE SKU for Visual Studio for open source developers and students called Visual Studio Community Visual Studio 2015 and ASP.NET 5 will support gulp, grunt, bower and npm for front end developers. Much of the .NET Core Framework 4.6 and its Reference Source source is going on GitHub. It’s being relicensed under the MIT license.



Microsoft takes. NET open source and cross-platform

Tuesday, November 11, 2014

Adding PowerShell Snap-in Sharepoint 2013


PowerShell Snap-in Sharepoint 2013



Windows PowerShell is a command-line shell and scripting language that provides an administrator full access to applicable application programming interfaces (APIs). Administrators can interact directly with SharePoint 2013 to manipulate web applications, site collections, sites, lists and much more. In addition, an administrator can script cmdlets (pronounced “command-lets”).


You can manage most aspects of SharePoint 2013 in the SharePoint Management Shell. You can create new site collections, web applications, user accounts, service applications, proxies, and more.


Commands that you type in the SharePoint Management Shell return SharePoint objects that are based on the Microsoft .NET Framework.

You can apply these objects as input to subsequent commands or store the objects in local variables for later use.


To execute any powershell script, adding PowerShell Snap-in is required.
Here is the script to add it!


try

Write-Host "Adding PowerShell Snap-in" -ForegroundColor Green

# Try to get the PowerShell Snappin. If not, then adding the PowerShell snappin on the Catch Block
Get-PSSnapin "Microsoft.SharePoint.PowerShell"

catch

Add-PSSnapin "Microsoft.SharePoint.PowerShell"

Write-Host "Finished Adding PowerShell Snap-in" -ForegroundColor Green

Above lines can be used in any powershell script to get it started.

It is recommend that you use Windows PowerShell when performing command-line administrative tasks.

The Stsadm command-line tool has been deprecated, but is included to support compatibility with previous product versions.


We will see it’s use in other powershell scripts in next post.


PowerShell Snap-in Sharepoint 2013



Adding PowerShell Snap-in Sharepoint 2013

Monday, November 10, 2014

Poem - ताकि घर चल सके

30 + उम्र के मित्रो के लिए एक कविता l जरूर पड़े…


ताकि घर चल सके


जीवन में पैतीस पार का मर्द……..


कैसा होता है ?


थोड़ी सी सफेदी कनपटियों के पास,


खुल रहा हो जैसे आसमां बारिश के बाद,


जिम्मेदारियों के बोझ से झुकते हुए कंधे,


जिंदगी की भट्टी में खुद को गलाता हुआ,


अनुभव की पूंजी हाथ में लिए,


परिवार को वो सब देने की जद्दोजहद में,


जो उसे नहीं मिल पाया था,


बस बहे जा रहा है समय की धारा में,


एक खूबसूरत सी बीवी,


एक-दो प्यारे से बच्चे,


पूरा दिन दुनिया से लड़ कर थका हारा,


रात को घर आता है, सुकून की तलाश में,


लेकिन क्या मिल पाता है सुकून उसे,


दरवाजे पर ही तैयार हैं बच्चे,


पापा से ये मंगाया था, वो मंगाया था,


नहीं लाए तो क्यों नहीं लाए,


लाए तो ये क्यों लाए वो क्यों नहीं लाए,


अब वो क्या कहे बच्चों से,


कि जेब में पैसे थोड़े कम थे,


कभी प्यार से, कभी डांट कर,


समझा देता है उनको,


एक बूंद आंसू की जमी रह जाती है,


आँख के कोने में,


लेकिन दिखती नहीं बच्चों को,


उस दिन दिखेगी उन्हें, जब वो खुद, बन जाएंगे माँ बाप अपने बच्चों के,


खाने की थाली में दो रोटी के साथ,


परोस दी हैं पत्नी ने दस चिंताएं,


कभी,


तुम्हीं नें बच्चों को सर चढ़ा रखा है,


कुछ कहते ही नहीं,


कभी,


हर वक्त डांटते ही रहते हो बच्चों को,


कभी प्यार से बात भी कर लिया करो,


लड़की सयानी हो रही है,


तुम्हें तो कुछ दिखाई ही नहीं देता,


लड़का हाथ से निकला जा रहा है,


तुम्हें तो कोई फिक्र ही नहीं है,


पड़ोसियों के झगड़े, मुहल्ले की बातें,


शिकवे शिकायतें दुनिया भर की,


सबको पानी के घूंट के साथ,


गले के नीचे उतार लेता है,


जिसने एक बार हलाहल पान किया,


वो सदियों नीलकंठ बन पूजा गया,


यहाँ रोज़ थोड़ा थोड़ा विष पीना पड़ता है,


जिंदा रहने की चाह में,


फिर लेटते ही बिस्तर पर,


मर जाता है एक रात के लिए,


क्योंकि


सुबह फिर जिंदा होना है,


काम पर जाना है,


कमा कर लाना है,


ताकि घर चल सके,….ताकि घर चल सके…..ताकि घर चल सके।।।।👍👍👍👍👍👍



Poem - ताकि घर चल सके

Thursday, November 6, 2014

Android 4.4.4 update for the Xperia Z2 and Z2 Tablet

image


Sony has begun rolling out its Android 4.4.4 update (build 23.0.1.A.0.167) for the Xperia Z2and Z2 Tablet today, which contains a whole host of new tweaks and features to play with.

While the move on up to Android 4.4.4 doesn’t change much on its own, Sony has used the update to throw a load of new features at its slightly older flagship model. Including: PS4 Remote Play, Hi-Res audio playback, new camera features, and some more general changes to the handset’s software. Let’s take a quick look at all the goodies.


PS4 Remote Play has just made its way to Sony’s range of Xperia Z3 devices too and allows users to stream and play games from their PS4 directly to their Sony handset with their wireless Dualshock 4 controller. Sony’s Hi-Res Audio enables PCM and DSD file playback, DSEE HX MP3 enhancement, and also includes pre-set EQ settings for a selection of Sony headphones. The update also contains Sony’s latest Smart Social Camera app features, such as Sound Photo, AR fun, Multi camera and Face in.


Furthermore, Sony has made a couple of tweaks to the general operating system. Ultra STAMINA Mode makes an appearance, allowing users to squeeze out a little extra battery life by disabling certain functions. Sony has also added in Quick Settings, Smart screen rotation, Record Screen, and smartwatch remote Bluetooth Unlock features. All in all, this is a pretty substantial update.

The Xperia Z2 Android 4.4.4 update is already live in several corners of the world, including South-East Asia, Latin America and the Middle East. Other regions should see the update head their way in the coming days.



Android 4.4.4 update for the Xperia Z2 and Z2 Tablet

Wednesday, August 20, 2014

A lesson learnt in Life

Just loved these lines about LIFE..!!


When I got enough confidence, the stage was gone..


When I was sure of losing, I won..


When I needed people the most, they left me..


When I learnt to dry my tears, I found a shoulder to cry on..


When I mastered the skill of hating, Someone started loving me from the core of the heart..


& While waiting for light for hours when I fell asleep, the sun came out..


That’s LIFE !!

No matter what u plan u never know what life has planned for u..


“Success introduces you to the world, But Failure introduces the world to you ..”

- Always be Happy !!


Often when we lose hope and think this is the end, God smiles from above and says, “Relax, sweetheart; it’s just a bend, not the end!!

👍👍



A lesson learnt in Life

Monday, July 28, 2014

Poems - आहिस्ता चल ज़िन्दगी

आहिस्ता चल ज़िन्दगी,

अभी कई क़र्ज़ चुकाना बाकी है,

कुछ दर्द मिटाना बाकी है,

कुछ फ़र्ज़ निभाना बाकी है;


रफ्तार में तेरे चलने से

कुछ रूठ गए, कुछ छुट गए ;

रूठों को मनाना बाकी है,

रोतों को हसाना बाकी है ;


कुछ हसरतें अभी अधूरी है,

कुछ काम भी और ज़रूरी है ;

ख्वाइशें जो घुट गयी इस दिल में, उनको दफनाना अभी बाकी है ;


कुछ रिश्ते बनके टूट गए,

कुछ जुड़ते जुड़ते छूट गए;

उन टूटे-छूटे रिश्तों के

ज़ख्मों को मिटाना बाकी है ;


तू आगे चल में आता हुँ,

क्या छोड़ तुजे जी पाऊंगा ?

इन साँसों पर हक है जिनका,

उनको समझाना बाकी है ;


आहिस्ता चल जिंदगी,

अभी कई क़र्ज़ चुकाना बाकी है । 



Poems - आहिस्ता चल ज़िन्दगी

Saturday, June 28, 2014

Tips to soak up all cucumber nutrition

cucumber

helpful tips to soak up all cucumber nutrition facts



-Slice tomatoes, cucumbers and shallots. Mix with red wine vinegar and 1 tbsp. olive oil. Toss and enjoy!

-Dice cucumbers and watermelon for a refreshing summer salad.

-Chop 1 cup cucumbers and add to low fat Greek yogurt and the juice of 1 lemon for raita sandwich topper.

-Add 1 cup cucumber to blender or juicer for cucumber juice. Add a splash of lime juice for additional flavor.

-Use cucumber sticks or rounds instead of potato chips for your favorite dip!

Adding a little cucumber to your diet can boost fat burning and give you plenty of health benefits. Knowing cucumber nutrition facts can help increase fat burning efforts.


and it is beneficial for :


1-Cucumber can be used for skin problems because of its diuretic, cooling and cleansing property


2-Another benefit of cucumber is in helping to heal a range of illnesses — including lung, stomach and chest problem, gout, arthritis and tapeworm


3-To reduce heartburn or sooth acid stomach, drink fresh cucumber juice. The same applies for people suffering from gastritis or ulcer.


4-To reduce swelling and soothe the eyes, place a cucumber slice over closed eyes.


5-Cucumber juice, when taken daily may help to control cases of eczema, arthritis and gout.



Tips to soak up all cucumber nutrition

Eye Care for Computer Users

Eye Care for Computer Users

Eye Care for Computer Users




Computers have become indispensable in work place. Professionals spend more time working at computer workstations. The combination of fixed and constrained body postures, work overload and unsuitable workstations can lead to health problems like aches and pains in the shoulders, forearm, wrist, hand, back & neck pain and eyes strain.


Normal blink rate in human is 16-20 per minute. When this blink rate gets reduced to 6-8 blinks/minute, it results in dry eyes. Near focusing for long hours causes eye strain. Early presbyopia (need for reading glasses) sets in. Other symptoms include headache, eye strain, blurred vision, dry or irritated eyes, double vision, light sensitivity, neck ache, back aches etc.


The pre disposing factors which mainly cause discomfort are


1.Work place conditions

2.Working habits

3.Visual conditions

4.Nature of work

5.Length of time spent at computer

6.Reduced blinking rate

7.In co ordination between design of work station and design of glasses.


A Good Chair: Feet should rest on the floor. Angle should be of 90 degrees at the knee. Arm rest is desirable. Back rest must support the area from the upper ridge of the pelvis to the shoulder blades.The curve in the back rest must support the hollow in lower back. An adjustable tilt is desirable.


computer


Lighting – Required illumination on the working surface. Lower level illuminance for general areas. (3:1ratio)


Eye Care Tips for computer users and professionals~


Monitor should be more than 5 inches from the eyes.


Ideal viewing area is 6 inches below the horizontal eye level.


Work with fonts of darker shades on light background.


Attach an anti-glare screen in front of the monitor.


Use screen mounted document holder at the same plane.


Use suspended lights from ceiling & windows with curtains to avoid light hitting directly on eyes.


Avoid sitting in front of AC or in a room with low humidity.


20-20-20 rule – Take short breaks for your eyes every 20 minutes between your work for 20 seconds and look 20 feet away.


Give proper rest to the eyes – Close your eyes for 20 seconds at least every half an hour.


Correct near vision with glasses.


Use of Anti reflective coating glasses can reduce glare from a monitor.


Contact lens users need to lubricate their eyes frequently.


Lastly working at the computer is not harmful to eyes, but make sure to examine your eyes at least once a year



Eye Care for Computer Users

Benefits of Drinking Green Tea

Green Tea

10 Great Benefits of Drinking Green Tea



  1. It is used for treatment and prevention of cancer.

  2. It is used to stop Alzheimer’s and Parkinson’s diseases.

  3. It is used to raise the metabolism and increase fat oxidation.

  4. It reduces the risk of heart diseases and heart attacks by reducing the risk of thrombosis.

  5. It reduces the risk of esophageal cancer.

  6. Drinking green tea inhibits the growth of certain cancer cells, reduces the level of cholesterol in blood, improves the ratio of good cholesterol to bad cholesterol.

  7. It is used to treat rheumatoid arthritis and cardiovascular diseases

  8. it is used to treat impaired immune function.

  9. Some researches show that,drinking green tea regularly may help prevent tooth decay by killing the bacteria which causes the dental plaque.


Benefits of Drinking Green Tea

Friday, June 27, 2014

BANANA - Few very interesting FACTS

Banana

BANANA – Few very interesting FACTS




This is interesting. After reading this, you’ll never look at a banana in the same way again.


Bananas contain three natural sugars – sucrose, fructose and glucose combined with fiber. A banana gives an instant, sustained and substantial boost of energy.


Research has proven that just two bananas provide enough energy for a strenuous 90-minute workout. No wonder the banana is the number one fruit with the world’s leading athletes.


But energy isn’t the only way a banana can help us keep fit. It can also help overcome or prevent a substantial number of illnesses and conditions, making it a must to add to our daily diet.


DEPRESSION:

According to a recent survey undertaken by MIND amongst people suffering from depression, many felt much better after eating a banana. This is because bananas contain tryptophan, a type of protein that the body converts into serotonin, known to make you relax, improve your mood and generally make you feel happier.


PMS:

Forget the pills – eat a banana. The vitamin B6 it contains regulates blood glucose levels, which can affect your mood.


ANEMIA:

High in iron, bananas can stimulate the production of hemoglobin in the blood and so helps in cases of anemia.


BLOOD PRESSURE:

This unique tropical fruit is extremely high in potassium yet low in salt, making it perfect to beat blood pressure So much so, the US Food and Drug Administration has just allowed the banana industry to make official claims for the fruit’s ability to reduce the risk of blood pressure and stroke.


BRAIN POWER:

200 students at a Twickenham (Middlesex) school ( England ) were helped through their exams this year by eating bananas at breakfast, break, and lunch in a bid to boost their brain power. Research has shown that the potassium-packed fruit can assist learning by making pupils more alert.


CONSTIPATION:

High in fiber, including bananas in the diet can help restore normal bowel action, helping to overcome the problem without resorting to laxatives.


HANGOVERS:

One of the quickest ways of curing a hangover is to make a banana milkshake, sweetened with honey. The banana calms the stomach and, with the help of the honey, builds up depleted blood sugar levels, while the milk soothes and re-hydrates your system.


HEARTBURN:

Bananas have a natural antacid effect in the body, so if you suffer from heartburn, try eating a banana for soothing relief.


MORNING SICKNESS:

Snacking on bananas between meals helps to keep blood sugar levels up and avoid morning sickness.


MOSQUITO BITES:

Before reaching for the insect bite cream, try rubbing the affected area with the inside of a banana skin. Many people find it amazingly successful at reducing swelling and irritation.


NERVES:

Bananas are high in B vitamins that help calm the nervous system..


Overweight and at work? Studies at the Institute of Psychology in Austria found pressure at work leads to gorging on comfort food like chocolate and chips. Looking at 5,000 hospital patients, researchers found the most obese were more likely to be in high-pressure jobs. The report concluded that, to avoid panic-induced food cravings, we need to control our blood sugar levels by snacking on high carbohydrate foods every two hours to keep levels steady.


ULCERS:

The banana is used as the dietary food against intestinal disorders because of its soft texture and smoothness. It is the only raw fruit that can be eaten without distress in over-chronicler cases. It also neutralizes over-acidity and reduces irritation by coating the lining of the stomach.


TEMPERATURE CONTROL:

Many other cultures see bananas as a ‘cooling’ fruit that can lower both the physical and emotional temperature of expectant mothers. In Thailand , for example, pregnant women eat bananas to ensure their baby is born with a cool temperature.


So, a banana really is a natural remedy for many ills. When you compare it to an apple, it has FOUR TIMES the protein, TWICE the carbohydrate, THREE TIMES the phosphorus, five times the vitamin A and iron, and twice the other vitamins and minerals.. It is also rich in potassium and is one of the best value foods around So maybe its time to change that well-known phrase so that we say, ‘A BANANA a day keeps the doctor away!’


PS: Bananas must be the reason monkeys are so happy all the time! ;):D



BANANA - Few very interesting FACTS

Get rid of blackheads and whiteheads

blackheads

How to we get rid of blackheads and whiteheads



Maintaining a clear and beautiful skin, takes time, consistency and effort. Dermatologist may recommend lots of products, but some of them can be expensive and may actually take a long time to work. You can, however, incorporate some home remedies for blackheads and whiteheads into your daily beauty regimen and in a few weeks, you will experience a drastic reduction or even total elimination of the problem.


  1. Toothpaste – Toothpaste is an effective blackhead and whitehead remover. Apply a thin paste to your infected areas and let it sit on your face for at least 25 minutes. You will probably feel a burning sensation when you apply the toothpaste, but this is normal and will pass. Once you remove the toothpaste, the top of your blackheads and whiteheads will disappear, but you still need to thoroughly wash your face to remove the buildup underneath. Repeat this home remedy every other day for two weeks.

  2. Tomato – Tomatoes have natural antiseptic properties that dry up whiteheads and blackheads. Peel and mash a small tomato. Apply the tomato pulp to your blackheads and whiteheads before going to bed. Leave the tomato pulp on your face while you sleep and then wash your face in warm water in the morning.

  3. Lemon -Wash your face in warm water. Then, squeeze the juice of one lemon into a bowl. Add in a pinch of salt and stir the mixture. Apply the mixture to your blackheads and whiteheads. Leave the mixture on for approximately 20 minutes and then wash your face with warm water again.

  4. Lime – You can also use equal parts of lime juice and cinnamon powder and apply this mixture to blackheads. Leave it on overnight and rinse it off in the morning

  5. Cornstarch – Mix about a three-to-one cornstarch to vinegar ratio into a paste. Apply it to your problem areas and let sit for 15 to 30 minutes. Remove the paste with warm water and a washcloth.

  6. Yogurt - Mix three tablespoons of plain yogurt with two tablespoons of oatmeal. Add one teaspoon of olive oil and one tablespoon of lemon juice to the mixture. Stir the mixture thoroughly and apply it to the effective area of the face. Let the mixture sit for five to seven minutes then rinse off with cold water.

  7. Almond or oatmeal – Mix either oatmeal or almond powder with just enough rose water to make a spreadable paste. Apply it to your problem areas with your fingertips first and then apply it to the rest of your face. Let it set for about 15 minutes and then rinse your face with cold water.

  8. Rice – Soak rice in milk for 5 hours and then grind this in a blender until it is paste-like in consistency. Use the paste as a scrub on affected areas of the body.

  9. Potatoes – Grate raw potatoes and then rub the area with the mixture. Wash it off after 15 minutes.

  10. Fenugreek leaves – Crush some fenugreek leaves and mix with water to form a paste. Put this on the face for 15 minutes and then remove it. Do this every night to keep your face free of blackheads.

  11. Coriander leaves – Mix some coriander leaves and a little turmeric powder with water and form a paste. Use this as a mask to eliminate blackheads.

  12. Oatmeal -Grind oatmeal into a powder in a blender and then add some rose water. Use this on affected areas for 15 minutes and then wash it off with cold water.

  13. Baking soda – Prepare a mixture of equal parts of baking soda and water and rub it onto your face or other body areas prone to blackheads. Leave it on for 15 minutes and then rinse it off with warm water.

  14. Honey is also good for removing blackheads. Spread honey on the affected area and remove it after 15 minutes.

Remember – Be gentle to your skin. Never pinch, scrape, poke, press, or squeeze too hard!


Get rid of blackheads and whiteheads

Get rid of blackheads and whiteheads



Get rid of blackheads and whiteheads

Sunday, June 15, 2014

Celkon Campus A35K Kitkat SmartPhone Under 3k Launched

Celkon Campus A35K Kitkat SmartPhone Under 3k Launched in India


Hyderabad-based smartphone maker Celkon has launched a low-cost KitKat OS handset Campus A35K in India, via online store.
celkon-campus-a35k

Priced just under ₹3,000, the new Campus A35K is currently the cheapest smartphone in the Indian market to ship with Android KitKat operating system.


The feature-rich Celkon phone sports a 3.5-inch HVGA (320x480p) display and comes packed with 1GHz processor, 256MB RAM, 512MB inbuilt storage (expandable up to 32GB), a 3.2-megapixel main camera, a 0.3-megapixel (VGA) snapper on the front and a 1400 mAh battery.


On the connectivity front, it supports 3G network, Bluetooth, Wi-Fi, GPRS/EDGE and houses dual-SIM slots.


As of now, Campus A35K has been exclusively made available at the online store Snapdeal for ₹2,999. The ultra low price tag of Celkon phone is expected to create a fierce price war among local smartphone vendors.


Motorola Moto E had a similar impact last month, when it was released for just ₹6,999. It was then the most affordable KitKat smartphone in India but soon, domestic brands followed suit to flood the market with low cost KitKat phones. And now, with Campus A35K, Celkon has further intensified the competition in the market.


The Indian smartphone market is expected to witness the arrival of a new breed of Mozilla-Firefox OS-based handsets, in the coming months (July & August). To make it competitive with Android OS-based devices, Intex is set to launch Cloud FX with a 2.0-megapixel camera for less than ₹2,000.


In related news, Karbonn Mobiles has also released a budget smartphone, A50S, for ₹2,790. It features a 3.5-inch HVGA TFT LCD display, dual-core CPU, 256MB RAM, 512MB inbuilt storage (expandable up to 32GB), a 2.0-megapixel main camera, a VGA camera on front, a 1100 mAh and ships with Android v4.2.2 Jelly Bean OS out-of-the-box. It has been made available exclusively at e-commerce website Flipkart.



Celkon Campus A35K Kitkat SmartPhone Under 3k Launched

Wednesday, June 11, 2014

Basic C# Interview Questions and Answers

Learn C#


Basic C# Interview Questions and Answers


Below is the list of 125 basic C# interview questions with their answers. These C# interview questions and answers are very simple and straight-forward which cover the basic concepts of C# mostly related to object oriented concepts. So if you are preparing for C# interview, I will suggest you to must go through these 125 C# basic interview questions and answers to revise your C# concepts. Here goes the list of 125 basic C# interview questions and answers.


1. What is C#?


C# (pronounced “C sharp”) is a simple, modern, object-oriented, and type-safe programming language. It will immediately be familiar to C and C++ programmers. C# combines the high productivity of Rapid Application Development (RAD) languages.


2. What are the types of comment in C#?


There are 3 types of comments in C#.


  • Single line (//)

  • Multi (/* */)

  • Page/XML Comments (///).


3. What are the namespaces used in C#.NET?


Namespace is a logical grouping of class.

using System;

using System.Collections.Generic;

using System.Windows.Forms;


4. What are the characteristics of C#?


There are several characteristics of C# are :


  • Simple


  • Type safe


  • Flexible


  • Object oriented


  • Compatible


  • Consistent


  • Interoperable


  • Modern

5. What are the different categories of inheritance?


Inheritance in Object Oriented Programming is of four types:
Single inheritance: Contains one base class and one derived class.


Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.


Multilevel inheritance: Contains a class derived from a derived class.


Multiple inheritance: Contains several base classes and a derived class.


6. What are the basic concepts of object oriented programming?


It is necessary to understand some of the concepts used extensively in object oriented programming.These include:


  • Objects


  • Classes


  • Data abstraction and encapsulation


  • Inheritance


  • Polymorphism


  • Dynamic Binding


  • Message passing.

7. Can you inherit multiple interfaces?


Yes. Multiple interfaces may be inherited in C#.


8. What is inheritance?


Inheritance is deriving the new class from the already existing one.


9. Define scope?


Scope refers to the region of code in which a variable may be accessed.


10. What is the difference between public, static and void?


public: The keyword public is an access modifier that tells the C# compiler that the Main method is accessible by anyone.


static: The keyword static declares that the Main method is a global one and can be called without creating an instance of the class. The compiler stores the address of the method as the entry point and uses this information to begin execution before any objects are created.


void: The keyword void is a type modifier that states that the Main method does not return any value.



11. What are the modifiers in C#?


  • Abstract

  • Sealed

  • Virtual

  • Const

  • Event

  • Extern

  • Override

  • Readonly

  • Static

  • New

12. What are the types of access modifiers in C#?


Access modifiers in C# are :


  • public

  • protect

  • private

  • internal

  • internal protect

13. What is boxing and unboxing?


Implicit conversion of value type to reference type of a variable is known as BOXING, for example integer to object type conversion.


Conversion of reference type variable back to value type is called as UnBoxing.


14. What is object?


An object is an instance of a class. An object is created by using operator new. A class that creates an object in memory will contain the information about the values and behaviors (or methods) of that specific object.


15. Where are the types of arrays in C#?


  1. Single-Dimensional

  2. Multidimensional

  3. Jagged arrays.

16. What is the difference between Object and Instance?


An instance of a user-defined type is called an object. We can instantiate many objects from one class.


An object is an instance of a class.


17. Define destructors?


A destructor is called for a class object when that object passes out of scope or is explicitly deleted.A destructors as the name implies is used to destroy the objects that have been created by a constructors.Like a constructor , the destructor is a member function whose name is the same as the class name but is precised by a tilde.


18. What is the use of enumerated data type?


An enumerated data type is another user defined type which provides a way for attaching names to numbers thereby increasing comprehensibility of the code. The enum keyword automatically enumerates a list of words by assigning them values 0,1,2, and so on.


19. Define Constructors?


A constructor is a member function with the same name as its class. The constructor is invoked whenever an object of its associated class is created.It is called constructor because it constructs the values of data members of the class.


20. What is encapsulation?


The wrapping up of data and functions into a single unit (called class) is known as encapsulation. Encapsulation containing and hiding information about an object, such as internal data structures and code.



21.Does c# support multiple inheritance?


No,its impossible which accepts multi level inheritance.


22. What is ENUM?


Enum are used to define constants.


23. What is a data set?


A DataSet is an in memory representation of data loaded from any data source.


24. What is the difference between private and public keyword?


Private: The private keyword is the default access level and most restrictive among all other access levels. It gives least permission to a type or type member. A private member is accessible only within the body of the class in which it is declared.


Public: The public keyword is most liberal among all access levels, with no restrictions to access what so ever. A public member is accessible not only from within, but also from outside, and gives free access to any member declared within the body or outside the body.


25. Define polymorphism?


Polymorphism means one name, multiple forms. It allows us to have more than one function with the same name in a program. It allows us to have overloading of operators so that an operation can exhibit different behaviors in different instances.


26. What is Jagged Arrays?


A jagged array is an array whose elements are arrays.


The elements of a jagged array can be of different dimensions and sizes.


A jagged array is sometimes called an array–of–arrays.


27. What is an abstract base class?


An abstract class is a class that is designed to be specifically used as a base class. An abstract class contains at least one pure virtual function.


28. How is method overriding different from method overloading?


When overriding a method, you change the behavior of the method for the derived class. Overloading a method simply involves having another method with the same name within the class.


29. What is the difference between ref & out parameters?


An argument passed to a ref parameter must first be initialized. Compare this to an out parameter, whose argument does not have to be explicitly initialized before being passed to an out parameter.


30. What is the use of using statement in C#?


The using statement is used to obtain a resource, execute a statement, and then dispose of that resource.



31.What is serialization?


Serialization is the process of converting an object into a stream of bytes.


De-serialization is the opposite process of creating an object from a stream of bytes.


Serialization / De-serialization is mostly used to transport objects.


32. What are the difference between Structure and Class?


  • Structures are value type and Classes are reference type

  • Structures can not have contractors or destructors.

  • Classes can have both contractors and destructors.


  • Structures do not support Inheritance, while Classes support Inheritance.

33. What is difference between Class And Interface?


Class is logical representation of object. It is collection of data and related sub procedures with defination.


Interface is also a class containg methods which is not having any definations.Class does not support multiple inheritance. But interface can support.


34. What is Delegates?


Delegates are a type-safe, object-oriented implementation of function pointers and are used in many situations where a component needs to call back to the component that is using it.


35. What is Authentication and Authorization?


Authentication is the process of identifying users. Authentication is identifying/validating the user against the credentials (username and password).


Authorization performs after authentication. Authorization is the process of granting access to those users based on identity.


Authorization allowing access of specific resource to user.


36. What is a base class?


A class declaration may specify a base class by following the class name with a colon and the name of the base class. omitting a base class specification is the same as deriving from type object.


37. Can “this” be used within a static method?


No ‘This’ cannot be used in a static method. As only static variables/methods can be used in a static method.


38. What is difference between constants, readonly and, static ?


Constants: The value can’t be changed.


Read-only: The value will be initialized only once from the constructor of the class.


Static: Value can be initialized once.


39. What are the different types of statements supported in C#?


C# supports several different kinds of statements are


  • Block statements

  • Declaration statements

  • Expression statements

  • Selection statements

  • Iteration statements

  • Jump statements

  • Try catch statements

  • Checked and unchecked

  • Lock statement

40. What is an interface class?


It is an abstract class with public abstract methods all of which must be implemented in the inherited classes.



Basic C# Interview Questions and Answers

Saturday, May 31, 2014

Barish Ka Ye Mousam

Zappmania-Barish-Ka-Mausam

Barish Ka Ye Mousam




Barish Ka Ye Mousam Koch Yaad Dilata Hai

Kisi Kay Saath Honay Ka Ehsaas Dilata Hai

Fiza Bhi Sard Hai Yaadain Bhi Taaza Hai

Ye Mousam Kisi Ka Pyaar Dil May Jagata Hai

Bheegi Hoye Raatain Khamosh Si Baatain

Aisay Main Koch Kaho Tu Her Lafz Madhem Ho Jata Hai

Barsat Ki Hain Bondain, Bondain May Hai Khushbo

Ye Lumha To Dil Ka Ehsaas Chuu Jata Hai

Aisay Main Tum Bhi Keh Do Dil Ki Baat

Ye Mousam Tu Pal Bhar Main Beet Jata Ha,

Barish ka ye mousam kuch yaad dilaata h



Barish Ka Ye Mousam

Samsung Galaxy Mega 6.3 Receiving Android 4.4 KitKat Update

galaxy-mega-6.3 and mega 5.8

Samsung Galaxy Mega 6.3 Receiving Android 4.4 KitKat Update




Samsung is gradually rolling out the Android 4.4 KitKat update for its top-of-the-line Galaxy smartphones and the latest to join the league seems to be the Galaxy Mega 6.3 phablet.

Users in Russia are reporting that the Samsung Galaxy Mega 6.3 is receiving the Android 4.4 KitKat (update) via Kies software, according to Sammobile, with build number I9200XXUDNE4. The report speculates the update should soon be available over-the-air (OTA) for Galaxy Mega 6.3 users in Russia


New features on the Galaxy Mega 6.3 that came with the KitKat update noted by the report includes:


  • faster performance;

  • white status bar icons;

  • better battery life;

  • full-screen mode for album art when playing music;

  • camera shortcut on the lock screen,

  • support for wireless printing and

  • support for setting default messaging and launcher apps.

The Android 4.4 KitKat update for Galaxy Mega 6.3 users outside Russia should also start rolling out over the course of the next few weeks.

Notably, a recent report had suggested that the Galaxy Mega 6.3 was undergoing final KitKat build-testing and should receive the update in June. As the leak seems to be true now, we can expect that the Galaxy Grand 2 and the Galaxy Mega 5.8 will also receive the Android KitKat soon.



Samsung Galaxy Mega 6.3 Receiving Android 4.4 KitKat Update

Sunday, May 25, 2014

गंगा बहती हो क्यूँ - Ganga Behti Ho Kyon


गंगा बहती हो क्यूँ – Ganga Behti Ho Kyon (Bhupen Hazarika)




Performed By: भूपेन हज़ारिका, कविता कृष्णमूर्ति, हरिहरन, शान


आसामी

बिस्तिर्नो पारोरे, ओखोंक्यो जोनोरे

हाहाकार क्सुनिऊ निशोब्दे निरोबे

बुरहा लुइत तुमि, बुरहा लुइत बुआ कियो?

हिन्दी

विस्तार है अपार, प्रजा दोनों पार

करे हाहाकार निःशब्द सदा

ओ गंगा तुम

ओ गंगा बहती हो क्यूँ?


नैतिकता नष्ट हुई, मानवता भ्रष्ट हुई

निर्लज्ज भाव से बहती हो क्यूँ?

इतिहास की पुकार, करे हुंकार

ओ गंगा की धार

निर्बल जन को

सबल-संग्रामी, समग्रोगामी

बनाती नहीं हो क्यूँ?


अनपढ़ जन अक्षरहिन

अनगीन जन खाद्यविहीन

नेत्रविहीन दिक्षमौन हो क्यूँ?

इतिहास की पुकार…


व्यक्ति रहे व्यक्ति केंद्रित

सकल समाज व्यक्तित्व रहित

निष्प्राण समाज को छोड़ती ना क्यूँ?

इतिहास की पुकार…


रुदस्विनी क्यूँ न रहीं?

तुम निश्चय चितन नहीं

प्राणों में प्रेरणा देती ना क्यूँ?

उनमद अवमी कुरुक्षेत्रग्रमी

गंगे जननी, नव भारत में

भीष्मरूपी सुतसमरजयी जनती नहीं हो क्यूँ?

विस्तार है अपार…
गंगा बहती हो क्यूँ – Ganga Behti Ho Kyon (Bhupen Hazarika)

गंगा बहती हो क्यूँ – Ganga Behti Ho Kyon (Bhupen Hazarika)




गंगा बहती हो क्यूँ - Ganga Behti Ho Kyon

Sunday, May 18, 2014

List of Presidents of India

List of Presidents of India (1947-2014)



Below is the list of all Presidents of India from 1947 to 2014.
* Acting President






































































































S.No.
NameTookofficeLeftofficePolitical partyNotes
13Pranab Mukherjee25-Jul-12Till dateIndian National CongressMukherjee held various posts in the cabinet ministry for the Government of India such as Finance Minister, Foreign Minister, Defence Minister and Deputy Chairman of the Planning Commission.
12Pratibha Patil25-Jul-0725-Jul-12Indian National CongressPatil was the first woman to become President of India. She was also the first female Governor of Rajasthan
11A. P. J. Abdul Kalam25-Jul-0225-Jul-07IndependentKalam was a scientist who played a leading role in the development of India's ballistic missile and nuclear weapons programs. Kalam also received the Bharat Ratna.
10Kocheril Raman Narayanan25-Jul-9725-Jul-02IndependentNarayanan served as India's ambassador to Thailand, Turkey, China and United States of America. He received doctorates in Science and Law and was also a chancellor in several universities. He was also the vice-chancellor of Jawaharlal Nehru University.
9Shankar Dayal Sharma25-Jul-9225-Jul-97Indian National CongressSharma was Chief Minister of Madhya Pradesh, and the Indian Minister for Communications. He has also served as the governor of Andhra Pradesh, Punjab and Maharashtra.
8Ramaswamy Venkataraman25-Jul-8725-Jul-92Indian National CongressIn 1942, Venkataraman was jailed by the British for his involvement in the India's independence movement.After his release, he was elected to independent India’s Provisional Parliament as a member of the Congress Party in 1950 and eventually joinedthe central government, where he first served as Minister of Finance and Industry and later as Minister of Defence.
7Giani Zail Singh25-Jul-8225-Jul-87Indian National CongressIn March 1972, Singh assumed the position of chief Minister of Punjab, and in 1980, he became Union Home Minister.
6Neelam Sanjiva Reddy25-Jul-7725-Jul-82Janata PartyReddy was the only Member ofParliament from the Janata Party to get elected from Andhra Pradesh. He was unanimously elected Speaker of the Lok Sabha on 26 March 1977 and relinquished this office on 13 July 1977 to become the 6th President ofIndia.

Basappa Danappa Jatti *11-Feb-7725-Jul-77IndependentJatti was the vice president of India during Ahmed's term of office, and was sworn in as acting president upon Ahmed's death. He earlier functioned as the Chief Minister for the State of Mysore.
5Fakhruddin Ali Ahmed24-Aug-7411-Feb-77Indian National CongressFakhruddin Ali Ahmed served as a Minister before being elected as president. He died in 1977 before his term of office ended, and was the second Indian president to have diedduring a term of office.
4Varahagiri Venkata Giri24-Aug-6924-Aug-74IndependentGiri is the only person to have served as both an acting president and president of India. He was a recipient ofthe Bharat Ratna, and has functioned as Indian Minister of Labour and High Commissioner to Ceylon (Sri Lanka).

Muhammad Hidayatullah *20-Jul-6924-Aug-69IndependentHidayatullah served as the Chief Justice of India, and was a recipient of the Order of the British Empire. He served as acting president until the election of Giri as the President of India.

Varahagiri Venkata Giri *3-May-6920-Jul-69IndependentGiri was appointed as acting president following the death of Hussain. He resigned in a few months to take partin the presidential elections.
3Zakir Hussain13-May-673-May-69IndependentHussain was vice chancellor of the Aligarh Muslim University and a recipient of Padma Vibhushan and Bharat Ratna. He died before his term of office was ended.
2Sarvepalli Radhakrishnan13-May-6213-May-67IndependentRadhakrishnan was a prominent philosopher, writer, a Knight of the Realm and also held the position of vice chancellor of the Andhra University and Banaras Hindu University. Hewas also made a Knight of the Golden Army of Angels by Pope Paul VI.
1Rajendra Prasad26-Jan-5013-May-62Indian National CongressPrasad was the first President of independent India. He was also an independence activist of the Indian Independence Movement. Prasad was the only president to serve for two terms in office.

* Acting President



List of Presidents of India

List of Presidents of India

List of Presidents of India (1947-2014)



Below is the list of all Presidents of India from 1947 to 2014.






































































































S.No.
NameTookofficeLeftofficePolitical partyNotes
13Pranab Mukherjee25-Jul-12Till dateIndian National CongressMukherjee held various posts in the cabinet ministry for the Government of India such as Finance Minister, Foreign Minister, Defence Minister and Deputy Chairman of the Planning Commission.
12Pratibha Patil25-Jul-0725-Jul-12Indian National CongressPatil was the first woman to become President of India. She was also the first female Governor of Rajasthan
11A. P. J. Abdul Kalam25-Jul-0225-Jul-07IndependentKalam was a scientist who played a leading role in the development of India's ballistic missile and nuclear weapons programs. Kalam also received the Bharat Ratna.
10Kocheril Raman Narayanan25-Jul-9725-Jul-02IndependentNarayanan served as India's ambassador to Thailand, Turkey, China and United States of America. He received doctorates in Science and Law and was also a chancellor in several universities. He was also the vice-chancellor of Jawaharlal Nehru University.
9Shankar Dayal Sharma25-Jul-9225-Jul-97Indian National CongressSharma was Chief Minister of Madhya Pradesh, and the Indian Minister for Communications. He has also served as the governor of Andhra Pradesh, Punjab and Maharashtra.
8Ramaswamy Venkataraman25-Jul-8725-Jul-92Indian National CongressIn 1942, Venkataraman was jailed by the British for his involvement in the India's independence movement.After his release, he was elected to independent India’s Provisional Parliament as a member of the Congress Party in 1950 and eventually joinedthe central government, where he first served as Minister of Finance and Industry and later as Minister of Defence.
7Giani Zail Singh25-Jul-8225-Jul-87Indian National CongressIn March 1972, Singh assumed the position of chief Minister of Punjab, and in 1980, he became Union Home Minister.
6Neelam Sanjiva Reddy25-Jul-7725-Jul-82Janata PartyReddy was the only Member ofParliament from the Janata Party to get elected from Andhra Pradesh. He was unanimously elected Speaker of the Lok Sabha on 26 March 1977 and relinquished this office on 13 July 1977 to become the 6th President ofIndia.

Basappa Danappa Jatti *11-Feb-7725-Jul-77IndependentJatti was the vice president of India during Ahmed's term of office, and was sworn in as acting president upon Ahmed's death. He earlier functioned as the Chief Minister for the State of Mysore.
5Fakhruddin Ali Ahmed24-Aug-7411-Feb-77Indian National CongressFakhruddin Ali Ahmed served as a Minister before being elected as president. He died in 1977 before his term of office ended, and was the second Indian president to have diedduring a term of office.
4Varahagiri Venkata Giri24-Aug-6924-Aug-74IndependentGiri is the only person to have served as both an acting president and president of India. He was a recipient ofthe Bharat Ratna, and has functioned as Indian Minister of Labour and High Commissioner to Ceylon (Sri Lanka).

Muhammad Hidayatullah *20-Jul-6924-Aug-69IndependentHidayatullah served as the Chief Justice of India, and was a recipient of the Order of the British Empire. He served as acting president until the election of Giri as the President of India.

Varahagiri Venkata Giri *3-May-6920-Jul-69IndependentGiri was appointed as acting president following the death of Hussain. He resigned in a few months to take partin the presidential elections.
3Zakir Hussain13-May-673-May-69IndependentHussain was vice chancellor of the Aligarh Muslim University and a recipient of Padma Vibhushan and Bharat Ratna. He died before his term of office was ended.
2Sarvepalli Radhakrishnan13-May-6213-May-67IndependentRadhakrishnan was a prominent philosopher, writer, a Knight of the Realm and also held the position of vice chancellor of the Andhra University and Banaras Hindu University. Hewas also made a Knight of the Golden Army of Angels by Pope Paul VI.
1Rajendra Prasad26-Jan-5013-May-62Indian National CongressPrasad was the first President of independent India. He was also an independence activist of the Indian Independence Movement. Prasad was the only president to serve for two terms in office.

List of Presidents of India

Joke: Rajnikant For NAMO

Joke: Rajnikant For NAMO


Rajnikant For NAMO

Joke: Rajnikant For NAMO


Rajnikant : Mota Bhai… Bas Karu… Ya Aur Seat Chaahiye!!

Modi : Bas Chhote Bas Kar… Already Opposition Mein Koi Nahi Hai.. Ab Kya Padosi Desh ki seat Laayega Kya!?


Joke: Rajnikant For NAMO


Joke: Rajnikant For NAMO



Joke: Rajnikant For NAMO

Friday, May 16, 2014

Samsung Galaxy Mega KitKat update closing in fast

Google-Android

Samsung Galaxy Mega KitKat update closing in fast


Samsung Galaxy Mega 5.8 and Mega 6.3 have been launched last year with Android 4.2 Jelly Bean out of the box, and ever since the handsets have hit the shelves, Samsung has not launched any note-worthy updates for them. Fortunately, this does not mean that the Mega line-up will not be getting any updates in the future.

Android 4.4 is slowly but surely making its way across numerous smartphones, and in Samsung’s camp, there’s actually a lot of work to be done. This is the byproduct of launching smartphones across all market segments like there’s no tomorrow, and there are actually quite a lot of devices to keep track of when it comes down to KitKat’s availability.


The Samsung Galaxy Mega KitKat update (Android 4.4) is closing in fast. A leaked document seems to confirm that the Samsung Galaxy Mega models will all be getting updated to Android 4.4 (KitKat). Check out the details below.


galaxy-mega-kitkat


According to a recently leaked internal document listing the KitKat update status for a handful of Samsung smartphones, both the Samsung Galaxy Mega 5.8 and 6.3 are getting ready for the big day. The Android 4.4 KitKat update for these handsets is listed as being under “Testing” and the estimated time of arrival is set to June 2014.


The Samsung Galaxy Mega KitKat update is expected to bring a handful of new features to the table, including some of the latest TouchWiz goodies, such as Ultra Battery saving mode. The Mega series has been released last year as a budget-friendlier alternative to the Note series


Do any of you happen to own the Galaxy Mega 5.8 or 6.3? Are you excited for KitKat’s arrival? Don’t hesitate to share your thoughts below, and stick around for more



Samsung Galaxy Mega KitKat update closing in fast

Monday, May 12, 2014

Prism Interview Questions and Answers

Prism Interview Questions and Answers


What is Prism? 


Prism is the framework or the set of guidelines which is used to develop the WPF desktop application as well as the Silverlight Rich Internet applications(RIA). So it’s a kind of Design pattern to Develop the XMAL based application. It also used to develop the Windows 7 applications. Prism mainly helps to design the loosely coupled components which can be easily integrated with the other components of the overall application. Prism mainly used to build the composite applications which need various other components to be integrated.


Prism has RegionManager, EventAggregator and Commands all with the purpose of solving decoupling issues related to UI components.


Prism mainly guides of creating the applications using the Model-View-ViewModel (MVVM) model, Managed Extensibility Framework (MEF), and navigation in the application.


To use the Prism framework, we need to use their library called as Prism Library. So prism Library is the in-built set of components which can be used in developing the WPF and Silverlight applications.


What are objectives of Prism?


Following are the objectives of using Prism.


  • Create an application from modules that can be built, assembled, and, optionally, deployed by independent teams using WPF or Silverlight.

  • Minimize cross-team dependencies and allow teams to specialize in different areas, such as user interface (UI) design, business logic implementation, and infrastructure code development.

  • Use an architecture that promotes reusability across independent teams.

  • Increase the quality of applications by abstracting common services that are available to all the teams.

  • Incrementally integrate new capabilities.

What is Dependency Injection?


Dependency Injection is a practice where objects are designed in a manner where they receive instances of the objects from other pieces of code, instead of constructing them internally. This means that any object implementing the interface which is required by the object can be substituted in without changing the code, which simplifies testing, and improves decoupling.


Let’s assume that we have object dependency when an object ‘x’ uses an object ‘y’, we say that ‘x’ is dependent on ‘y’. Object dependency becomes a problem when object ‘x’ needs to use another object dynamically, object ‘z’, instead of ‘y’. Strong dependency mixes both object (Data) and relation (logic) in one place and result in tight coupling that render the code much harder to modify and adjust. Dependency injection allows objects to relate to each other but through an interface so that object ‘x’ will use interface ‘i’ while both ‘y’ & ‘z’ implement the interface ‘i’. This methodology allows the isolation between the implementation, creation, and logical dependency of an object.


The Prism Library includes the UnityBootstrapper and MefBootstrapper classes, which implement most of the functionality necessary to use either Unity or MEF as the dependency injection container in your application. In addition to the stages shown in the previous illustration, each bootstrapper adds some steps specific to its container.


What is an Event Aggregator?


EventAggregator is the utility service which contains the events and allows the decouple the publisher and subscriber so that they can be buildup independently. Decouple is primarily useful when a new module needs to be added or removed or modified. The new module can be added as per the event fired and defined in the shell.


The EventAggregator service is primarily a container for events that allow decoupling of publishers and subscribers so they can evolve independently. This decoupling is useful in modularized applications because new modules can be added that respond to events defined by the shell or, more likely, other modules.


In the Composite Application Library, EventAggregator allows subscribers or publishers to locate a specific EventBase. The event aggregator also allows for multiple publishers and multiple subscribers, as shown in figure below.

The EventAggregator class is offered as a service in the container and can be retrieved through the IEventAggregator interface. The event aggregator is responsible for locating or building events and for keeping a collection of the events in the system.


The real work of connecting publishers and subscribers is done by the CompositePresentationEvent class. This is the only implementation of the EventBase class that is included in the Composite Application Library. This class maintains the list of subscribers and handles event dispatching to the subscribers.


What is Shell?


The shell is the main window of the application where the primary user interface (UI) content is contained. The shell may be composed of multiple windows if desired, but most commonly it is just a single main window that contains multiple views. The shell may contain named regions where modules can specify the views that will appear. It may also define certain top-level UI elements, such as the main menu and toolbar. The shell defines the overall appearance for the application. It may define styles and borders that are present and visible in the shell layout itself, and it may also define styles, templates, and themes that get applied to the views that are plugged into the shell. 


What is view? 


Views are the composite portions of the user interface that are contained in the shell’s window(s). It is easiest to think about a view as a user control that defines a rectangular portion of the client area in the main window. However, views in the Composite Application Library do not have to be defined with a user control. You can use a Windows Presentation Foundation (WPF) data template to define a view that will be rendered based on the data in your model. A view could also share screen real estate with other views due to the rendering and compositing capabilities of WPF. In simple terms, a view is just a collection of user interface elements that define part of the rendering of the user interface. It is a unit of encapsulation for defining the separable portions of your UI.


What is Bootstrapper?


Bootstrapper is an utility in WPF engine which is mainly responsible for the initialization of the application by using the composite application library. By using the bootstrapper we can find out how the components of the application are wired up in the composite application library. The bootstrapper responsibility to create the Shell or main window. Composite application library has the default abstract class UnityBootstrapper which actually handles the initialization.


A bootstrapper is a class that is responsible for the initialization of an application built using the Prism Library. By using a bootstrapper, you have more control of how the Prism Library components are wired up to your application.


The Prism Library includes a default abstract Bootstrapper base class that can be specialized for use with any container. Many of the methods on the bootstrapper classes are virtual methods. You can override these methods as appropriate in your own custom bootstrapper implementation.


What are the basic stages of bootstrapping process? 


Basic stages of the bootstrapping process are as follows.


The Prism Library provides some additional base classes, derived from Bootstrapper, that have default implementations that are appropriate for most applications. The only stages left for your application bootstrapper to implement are creating and initializing the shell.


What is ILoggerFacade? 


ILoggerFacade is an interface used in Prism Framework for logging purpose.


The simplest approach to logging in Prism is to override the LoggerFacade property in your Bootstrapper. By overridding the LoggerFacade, you can pass in an instance of any Logger you want with any configuration needed as long as the logger implements the ILoggerFacade interface.


A simple Example is given below. 


using log4net;


using Microsoft.Practices.Prism.Logging;


namespace FsNoteMaster3



class Log4NetLogger : ILoggerFacade



#region Fields


 


// Member variables


private readonly ILog m_Logger = LogManager.GetLogger(typeof(Log4NetLogger));


 


#endregion


 


#region ILoggerFacade Members


 


/// <summary>


/// Writes a log message.


/// </summary>


/// <param name=”message”>The message to write.</param>


/// <param name=”category”>The message category.</param>


/// <param name=”priority”>Not used by Log4Net; pass Priority.None.</param>


public void Log(string message, Category category, Priority priority)



switch (category)



case Category.Debug:


m_Logger.Debug(message);


break;


case Category.Warn:


m_Logger.Warn(message);


break;


case Category.Exception:


m_Logger.Error(message);


break;


case Category.Info:


m_Logger.Info(message);


break;




 


#endregion




 What are Region and Region Managers?


In Prism framework, we define the region through XAML code and once a region is defined, automatically it will be registered with the RegionManager. Actually the Bootstrapper registers a service called the RegionManager at run time.


RegionManager is a dictionary where the key is name of the region. The value of the key is the reference of the IRegion interface. RegionAdapter is used to create the instance reference of the IRegion interface.


What are MEF and Unity?


Unity is mostly used for static dependencies and is more an “internal” technology, meaning outsiders do not need to know that unity is being used in the application. Unity is a IOC container. Use it to make your app more loosely coupled.


The MEF (Managed Extensibility Framework) is the new concept in .net 4.0. It is used to create the lightweight and extensible applications to create Managed Extensibility Framework. It is not only allows the extension but also reused within the application.


MEF should be used for dynamic dependencies, it is great at dynamically loading components and with the use of attributes it make creating application extensions or an application that can be extended by others easy and streamlined.


How to navigate to another page in WPF?


There is a class NavigationService which can be used for navigation of the WPF window:


this.NavigationService.GoForward();


OR



this.NavigationService.Navigate(“NextPage.xaml”)




Prism Interview Questions and Answers

ASP.NET Interview Questions And Answers Part-3

ASP.NET Interview Questions And Answers Part-3



How to identify which control caused Postback?

 



Below code will help you to identify the control which caused the postback.The name of the control which caused the postback will be set in__EVENTTARGET by __doPostBack JavaScript function before the form issubmitted.

 


string ctrlname = page.Request.Params.Get(“__EVENTTARGET”);

if (ctrlname != null && ctrlname != string.Empty)


return this.Page.FindControl(ctrlname);

 



How to Encrypt/Decrypt the web.config file in .NET?

 




public static void mEncryptWebConfig(string appPath, string protectedSection, stringdataProtectionProvider)


System.Configuration.Configuration webConfig =WebConfigurationManager.OpenWebConfiguration(appPath);

ConfigurationSection webConfigSection = webConfig.GetSection(protectedSection); if (!webConfigSection.SectionInformation.IsProtected)


webConfigSection.SectionInformation.ProtectSection(dataProtectionProvider); �

webConfig.Save();


public static void mDecryptWebConfig(string appPath, string protectedSection)


System.Configuration.Configuration webConfig =WebConfigurationManager.OpenWebConfiguration(appPath);

ConfigurationSection webConfigSection = webConfig.GetSection(protectedSection); if (webConfigSection.SectionInformation.IsProtected)


webConfigSection.SectionInformation.UnprotectSection();

webConfig.Save();

Can we set Master page dynamically at runtime?

 




Yes. Set the MasterPageFile property only during the PreInit page event—that is, before the runtime begins working on the request (since the rendering of the page with the master page occurs prior to the Init event)protected void Page_PreInit(object sender, EventArgs e)


MasterPageFile = “simple2.master”;

If you try to set the MasterPageFile property in Init or Load event handlers, an exception is raised.Note: The Master property represents the current instance of the master page object, is a read-only property, and can’t be set programmatically. The Master property is set by the runtime after loading the content of the file referenced by the MasterPageFile property.The above code needs to add in every page of the site. Instead, it is easy enough to add that code to a base page class that you can inherit from for you pages in the site. In case if you do not already have the base page, you can use the following web.config settings to have a base class without having to modify the existing aspx pages.<system.web>

<!– … –>

<pages pageBaseType=”MyWeb.UI.MyPageBase” />

<!– … –>

</system.web>
How to update web.config programatically?

 



Below is sample code to update web.config:protected void EditConfigButton_Click(object sender, EventArgs e)


Configuration objConfig = WebConfigurationManager.OpenWebConfiguration(“~”);

AppSettingsSection objAppsettings = (AppSettingsSection)objConfig.GetSection(“appSettings”); �

//Edit

if (objAppsettings != null)

objAppsettings.Settings["test"].Value = “newvalueFromCode”;

objConfig.Save();

 



How to implement singleton design pattern in C#?

 




The intent of the Singleton pattern as defined in Design Patterns is to “ensure a class has only one instance, and provide a global point of access to it”. The singleton pattern is a design pattern used to implement the mathematical concept of a singleton, by restricting the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system. The concept is sometimes generalized to systems that operate more efficiently when only one object exists, or that restrict the instantiation to a certain number of objects (say, five). Some consider it an anti-pattern, judging that it is overused, introduces unnecessary limitations in situations where a sole instance of a class is not actually required, and introduces global state into an application. 

Below is sample implementation:


/// <summary>

/// Thread-safe singleton example created at first call

/// </summary>

public sealed class Singleton


private static readonly Singleton _instance = new Singleton();


private Singleton()


public static Singleton Instance


get


return _instance;



How to provide security in .NET web services?



 



Following are few authentication technics to secure a .NET Web Services
  1. Windows-Based Security
    1. Basic Windows Authentication

    2. Digest Windows Authentication

    3. Integrated Windows Authentication


  2. Custom Authentication
    1. Log-in Method

    2. SOAP Headers

    3. SOAP header with cookie

    4. SOAP Extensions

    5. SOAP extension with encryption


I listed three Windows-based and five custom authentication techniques for Web services. Obviously, there are many more permutations and variations on this theme. Table 1 lists the authentication options I discussed, and the main points to consider when choosing an authentication mechanism:


  • Is the password sent in clear text and therefore requires HTTPS?

  • What are the platform requirements on both the client and the server side?

  • When does authentication take place, on the first call only, or on every call? What are the throughput implications of that?

Table 1: Comparing Windows-based and custom authentication techniques for Web services.






































Authentication MethodPassword Sent in Clear TextRequires WindowsAuthenticate on First Call Only

Basic Authentication



Yes



No



Yes



Digest Authentication



No



No



Yes



Integrated Authentication



No



Client/Server



Yes



Log-in method



Yes



No



Yes



SOAP header



Yes



No



No



SOAP header with cookie



Yes



No



Yes



SOAP extension



Yes



Client/Server



Depends



SOAP extension with encryption



No



Client/Server



Depends




 



Following three patterns govern the ASP.NET Page Framework.
  1. Front Controller Pattern

  2. Page Controller Pattern

  3. Model View Controller Pattern

When ASP.NET determines which HttpHandler to pass a request to, it uses something similar to a Front Controller. Front Controller is characterized by a single handler for all requests (like System.Web.UI.Page). Once the request reaches the Page class, though, the Page Controller pattern takes over.


 


Within the ASP.NET implementation of Page Controller, there are elements of the Model View Controller pattern. Model View Controller separates the model (business objects, data, and processes) from the view (the display of information). The controller responds to user input and updates the model and view. Roughly speaking, an ASPX page represents the View while its codebehind file represents a hybrid Model-Controller. If you were to pull all business and data-related code out of the codebehind and leave only event handling code, this would turn the codebehind into a pure Controller while the new class containing the business logic would be the Model.

 




How can I create an non zero base indexed array?



 



Yes, It’s possible to create the arrays that have non-zero based index.You can dynamically create your own arrays by calling Array’s static CreateInstance method. There are several overloads of this method, but they all allow you to specify the type of the elements in the array, the number of dimensions in the array, the lower bounds of each dimension, and the number of elements in each dimension.But keep in mind that nonzero-based arrays are not CLS (Common Language Specification)-compliant.The following code demonstrates how to dynamically create a two-dimensional array of System.Decimal values.

 


public sealed class Program


public static void Main()


// We want a 2-dim array [2001..2010][1..4]

Int32[] lowerBounds = 2001, 1 ;

Int32[] lengths = 10, 4 ;

Decimal[,] quarterlyIncome =

(Decimal[,])Array.CreateInstance(typeof(Decimal), lengths, lowerBounds);


Console.WriteLine(“0,4 1, 9 2, 9 3, 9, 4, 9”,

“Year”, “Q1″, “Q2″, “Q3″, “Q4″);


Int32 firstYear = quarterlyIncome.GetLowerBound(0);

Int32 lastYear = quarterlyIncome.GetUpperBound(0);

Int32 firstQuarter = quarterlyIncome.GetLowerBound(1);

Int32 lastQuarter = quarterlyIncome.GetUpperBound(1);


for (Int32 year = firstYear; year <= lastYear; year++)


Console.Write(year + ” “);

for (Int32 quarter = firstQuarter; quarter <= lastQuarter; quarter++)


Console.Write(“0,9:c “, quarterlyIncome[year, quarter]);


Console.WriteLine();



The first dimension represents calendar years and goes from 2001 to 2010, inclusive. The second dimension represents quarters and goes from 1 to 4, inclusive.


 


Output:


 

 




Why can’t I serialize hashtables?



 




The thing about XML Serialization is that it’s not just about creating a stream of bytes. It’s also about creating an XML Schema that this stream of bytes would validate against. There’s no good way in XML Schema to represent a dictionary. This limitation is not only Hashtable, the XmlSerializer cannot process classes implementing the IDictionary interface due to the fact that a hashtable does not have a counterpart in the XSD type system. The only solution is to implement a custom hashtable that does not implement theIDictionary interface.
How form based authentication works in ASP.NET?

 


Forms authentication uses an authentication ticket that is created when a user logs on to a site, and then it tracks the user throughout the site. The forms authentication ticket is usually contained inside a cookie. However, ASP.NET version 2.0 supports cookieless forms authentication, which results in the ticket being passed in a query string.If the user requests a page that requires authenticated access and that user has not previously logged on to the site, then the user is redirected to a configured loginUrl under authentication section of web.config.This processing is handled by the FormsAuthenticationModule class, which is an HTTP module that participates in the regular ASP.NET page-processing cycle and intercepts every request to the website. If it fails to find valid authentication ticket, it will redirect to the logon page.The logon page prompts the user to supply credentials, typically a user name and password. These credentials are then passed to the server and validated against a user store, such as a SQL Server database or XML. After the user’s credentials are authenticated, we have to issue Forms authentication ticket before we redirected the user to the originally requested page. If you redirect the user without issuing Forms authentication ticket, FormsAuthenticationModule will again takes the user to login page as it fails to find valid ticket.

We can issue Forms authentication ticket in multiple ways beside on requirement


  1. Using FormsAuthentication.RedirectFromLoginPage

    [CODE=cs]

  2. if (objUserBLL.Validate(txtUser.Text, txtPassword.Text))


  3. FormsAuthentication.RedirectFromLoginPage(txtUser.Text, false);


  4. [/CODE]


    1. Using FormsAuthentication.SetAuthCookie

      [CODE=cs]

    2. if (objUserBLL.Validate(txtUser.Text, txtPassword.Text))


    3. string Role = objUserBLL.GetUserRole(txtUser.Text);

    4. if (Role.Equals(“JobSeeker”))


    5. FormsAuthentication.SetAuthCookie(txtUser.Text, false);

    6. Response.Redirect(“~/JobSeeker/Dashboard.aspx”);


    7. else if (Role.Equals(“Recruiter”))


    8. FormsAuthentication.SetAuthCookie(txtUser.Text, false);

    9. Response.Redirect(“~/Recruiter/Dashboard.aspx”);


    10. 20.


      [/CODE]



      ASP.NET Interview Questions And Answers Part-3

Wednesday, May 7, 2014

7 Pillars of ASP.NET - Interview Question

ASP Dot NET


7 Pillars of ASP.NET – Interview Question


If you are preparing for ASP.NET interview, must be ready for basic ASP.NET interview question “What are the Pillars of ASP.NET?” Pillars of ASP.NET means the fundamentals of ASP.NET like .NET Framework, CLS, CTS, MSIL, JIT, Object Oriented Concepts, Assemblies, DLLs, XCopy Deployment etc. I have listed down 7 Pillars of ASP.NET in detail.


7 Pillars of ASP.NET:


When ASP.NET was first released, there were seven key facts that differentiated it from previous Microsoft products and competing platforms. If you’re coming to ASP.NET from another web development platform, or you’re an old-hand .NET coder who has yet to try programming for the Web, these sections will quickly give you a bit of ASP.NET insight.


1: ASP.NET is integrated with the .NET Framework


The .NET Framework is divided into an almost painstaking collection of functional parts, with tens of thousands of types (the .NET term for classes, structures, interfaces, and other core programming ingredients).


2: ASP.NET is Compiled, Not Interpreted


ASP.NET applications, like all .NET applications, are always compiled. In fact, it’s impossible to execute C# or Visual Basic code without it being compiled first.


3: ASP.NET is Multilanguage


No matter what language you use, the code is compiled into MSIL. MSIL is a stepping stone for every managed application.


4: ASP.NET is Hosted by the Common Language Runtime


Perhaps the most important aspect of the ASP.NET engine is that it runs inside the runtime environment of the CLR. The whole of the .NET Framework—that is, all namespaces, applications, and classes—is referred to as managed code. Basic features of CLR are:


A) Automatic memory management and garbage collection

B) Type safety

C) Extensible metadata

D) Structured error handling

E) Multithreading


5: ASP.NET is Object-Oriented


ASP.NET is truly object oriented. Not only does your code have full access to all objects in the .NET Framework, but you can also exploit all the conventions of an OOP (object-oriented programming) environment.


6: ASP.NET supports all Browsers


ASP.NET addresses the problem of cross browser compatibility in a remarkably intelligent way. Although you can retrieve information about the client browser and its capabilities in an ASP.NET page, ASP.NET actually encourages developers to ignore these considerations and use a rich suite of web server controls. These server controls render their markup adaptively by taking the client’s capabilities into account.


7: ASP.NET is Easy to Deploy and Configure


Every installation of the .NET Framework provides the same core classes. As a result, deploying an ASP.NET application is relatively simple. For no-frills deployment, you simply need to copy all the files to a virtual directory on a production server (using an FTP program or even a command-line command like XCOPY).



7 Pillars of ASP.NET - Interview Question