Categories
Uncategorized

How to change username and password of your Cpanel account ?

There may be times where you would like to change your Cpanel username or password. But how do you do it ? This tutorial will be discussing this… Can I change my Cpanel Username ? Here you will get mixed answers, most hosting providers will not allow you to change username, because cPanel accounts are tied to […]

Categories
Uncategorized

Check if a File exists using C#

If you want to check if a specific file exists on a local machine at a particular path using C# programming language, you can do so by using the File.Exists() method. To use this first you need to import the System.IO namespace. using System.IO; Next, below is a sample code that checks if a file […]

Categories
Uncategorized

What is Kies Air for Android ? How to Install and Use it ?

What is Kies Air ? Kies air is a mobile application which enables Wi-Fi mobile-to-device connections and browser-based management. You can use Kies air without PC software or a USB connection. How to Install Kies Air ? Kies Air can be installed from the Android Market (now called Google Play) here is a link to it. How […]

Categories
Uncategorized

Check Box in Webgrid MVC 3

Below is a simple demonstration on how to use checkbox inside a webgrid column in MVC 3. I had a field called ‘HasPassport’ in my model which was of type **boolean **for which I required a checkbox column, to show a checked checkbox for every true value and an unchecked checkbox otherwise. Using the WebGrid.Column’s […]

Categories
Uncategorized

Can we have static constants in C# ?

Can we have constants defined as static ? Is the below line of code valid ? [sourcecode language=”csharp”] public static const string NAME = “Yasser”; [/sourcecode] Well the answer is a BIG NO ! Try pasting the above code into your visual studio, and it throws the following error. Explanation : Constants inherently means static. If you have any […]

Categories
Uncategorized

How to create a virtual directory in IIS using Windows 7

What is a Virtual Directory ? A virtual directory represents a web application and it points to a physical folder in your computer. How to create it in IIS on Windows 7 ? In IIS (Internet Information Services Manager), as shown in the screenshot below, right click on a website under which you want to create a […]

Categories
Uncategorized

How to restrict my input type=“file” to accept only (png/jpeg) image files

I wanted to restrict my input file tag to accept only .png images. I had read about this **accept attribute **provided under the input tag. Firstly this feature is not supported by all the browsers out there (not even Firefox to some extent here is fiddle link to it). So here is what I had to […]

Categories
Uncategorized

My Skype button shows me Offline, even when I am Online

This is in continuation with the post : Get a Skype Button on your WordPress blog Solution : Check the “Allow my status to be shown on the web” settings which is shown under privacy tab in Skype. Here is how you do it, 1. Open Skype program.2. Select Tools -> Options on Windows or select Preferences […]

Categories
Uncategorized

Get a Skype Button on your WordPress blog

Skype buttons can now be used on your website, blog ( yes WordPress too ! ) and even in your email signature to let other people contact you easily. You simply need to visit this url (http://www.skype.com/intl/en/tell-a-friend/wizard/), below is how I have filled out my form, at the end of the form you will get an […]

Categories
Uncategorized

OOPS Basic Concepts

1. What is OOPS ? • It stands for Object Oriented Programming. It is a programming concept/design.• Object-Oriented Programming (OOP) uses a different set of programming languages than the old procedural programming languages (C, Pascal, etc.).• Everything in OOP is grouped as “objects”. Example:• Your “hand” is a class. Your body has two objects of type […]