Surendra Sharma

Surendra Sharma

Search This Blog

Tuesday, February 10, 2015

Tip for how to check your Aadhaar- Gas linkage Status

To get subsidy on LPG gas cylinder. You need to link your Aadhar Card number with gas agency and bank.

If you had applied your Aadhar card linkage request at Bharat Gas and Bank then you can check the status at below link

Enter your Aadhar card or cell number and click on Proceed button. Check the status on the status screen as shown below

Please leave your comments or share this tip if it’s useful for you.

Tip for how and where to check status of any modification request of Aadhar Card

If you have applied for any information update request in Aadhar card like Name, mobile number, address, date of birth, email then you can check update status at below link

You have to enter your Aadhar number and URN and on click of Get Status button you can check the status.

Please leave your comments or share this tip if it’s useful for you.

Friday, February 6, 2015

Empty strings are not allowed. Parameter name: fieldname

If you are getting “Empty strings are not allowed. Parameter name: fieldname” error in Sitecore then to fix it, do the Publish. Please note that only publish item will not work here. Either publish the site in smart way or do the full site publish.

Please leave your comments or share this tip if it’s useful for you.

Wednesday, February 4, 2015

How to update your Android mobile with new OS version Lollipop

The first thing is that your mobile should itself ask for system update. If not then you can also check it from Settings-> About Phone -> System Updates

The new #Lollipop setup is 378 MB in size.

First download and install the setup.

After installation, Lollipop optimizing all the apps, upgrading contact database according to new updates.

One thing to remember here is that you cannot make any call for next 15 min during this installation process or better word is you cannot do anything with your cell during installation for next 15 min.

Don't worry about installation of new OS. It will keep your all the apps and settings as it is.
After installation, I suggest just restart your mobile.

I notice lots of improvements in terms of UI, animation, phone contact screen, settings, performance etc.

So oo ahead and do the installation and become the part of new android world.

Please leave your comments or share this tip if it’s useful for you.

Tuesday, February 3, 2015

Script for LuckyOrange tracking code

Like Google Analytic, there are other analytic support available on web. One of them is #LuckyOrange

To work with this you need Site ID. I represented it in sample code as “NNNNN”. Below is script that you need to place it between <head> </head> section of webpage. The code is asynchronous and will not block your page from loading.

<script type='text/javascript'>
    window.__wtw_lucky_site_id = 'NNNNN';

    (function () {
        var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true;
        wa.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://cdn') + '';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s);


Please leave your comments or share this code if it’s useful for you.

Monday, February 2, 2015

How to attach or execute batch file with Visual Studio Build process

There are some scenario in project development when one need to execute some EXE or batch file after successful Visual Studio build process.

Question is how to do that?

Here is a way

Create sample batch file and save it. Note down the complete batch file path suppose it’s “D:\ShareForAll\My Batch File.bat”. Follow below steps to attach it to Visual Studio.

·         Now open Visual Studio project.
·         Right click project in solution explorer and select Properties
·         Click on Build Events
·         Enter commands in Post-build event command line as in below image
o    You can enter any DOS command here.
o    To execute Batch file, write call “<filepath.bat>”

Please leave your comments or share this tip if it’s useful for you.

Sunday, February 1, 2015

How to download outlook calendar file from ASP.Net website

Sometime we need to show schedule of some events on website and allow user to download the calendar for outlook which user can save in their local computer or allow them to directly open it in outlook.

The trick here is same to write the code for downloading any file from response, only thing to remember is the calendar content and content type “text/calendar”.

Here is the code

        protected void Button2_Click(object sender, EventArgs e)
            System.Text.StringBuilder sbICSFile = new System.Text.StringBuilder();
            DateTime dtNow = DateTime.Now;


            sbICSFile.AppendLine("DESCRIPTION:Test Desc");

            Response.ContentType = "text/calendar";
            Response.AddHeader("content-disposition", "attachment; filename=CalendarEvent1.ics");

Please leave your comments or share this code if it’s useful for you.