Virendra Chandak

50 Added | 1 Magazine | 5 Likes | 1 Follower | @VirendraChandak |

What does int(11) means in MySQL?

A very common misconception about what int(11) means in MySQL is that the column can store maximum integer value with 11 digits in length. However, …

MySQL

How to add custom nodes to WordPress RSS feed

Recently I was working on a WordPress site and wanted to add a custom node to the WordPress RSS Feeds. In my previous post How to add featured image …

Web Design

Voting Functionality in a website - Virendra's TechTalk

In this post I will give the step by step explanation of how we can add Voting Functionality to a website. At the end of this article we will have a …

PHP

Optimizing / Speeding up websites - Virendra's TechTalk

In this article I will list a few things that can be done to speed up website. I will give just brief description on each topic and give links to …

Web Development

Creating multiple virtual hosts/websites in Wampserver - Virendra's TechTalk

To create multiple websites, it would be helpful to have each website setup on the local computer. With Wampserver (or just Apache) we can easily …

Linux

Tools for Web Development - Virendra's TechTalk

With so many tools available for Web Development its hard to find the right tools for the job. In this post I will mention some of the tools that I …

Web Design

Cachebuster code in JavaScript - Virendra's TechTalk

The JavaScript, CSS and other files used in a website are often cached by the browser. Sometimes we might want the browser to always fetch the file …

JavaScript

.htaccess tips - Virendra's TechTalk

Topics Covered:<p>What is .htaccess file?<br>• When to use .htaccess file?<br>• Disadvantage of using .htaccess file<br>• Authentication using .htaccess file<br>• Custom Error …

Linux

more .htaccess tips - Virendra's TechTalk

In my previous post <b>.htaccess tips</b> I had started with what is .htaccess file and some things that can be done using it. In this post I’ll cover more …

Ip Address

Getting real client IP address in PHP - Virendra's TechTalk

Many times we need the visitor’s ipaddress for validation, security, spam prevention, etc. Getting the Visitor’s ipaddress is very easy in PHP.<p>The …

PHP

How and when to use robots.txt file - Virendra's TechTalk

We have heard of crawlers and bots are crawling our sites to scrap content for various reasons like indexing in search engines, identifying content, …

404 Error Page Best Practices - Virendra's TechTalk

A 404 error page is the page that the user may reach due to various reasons. Some of the reasons are:<p>The user has entered / spelt the URL …

Marketing

Notepad++ Keyboard Shortcuts - Virendra's Techtalk

I have been using Notepad++ everyday for coding at home and work for past 2-3 years. I don’t remember using any other editor during this entire …

Operating Systems

Migrating servers using DNS TTL for minimum downtime - Virendra's TechTalk

You have your site running on an old hardware and want to migrate it to a new upgraded hardware which would result in change of the ipaddress of your …

Information Security

PHP isset() vs empty() vs is_null() - Virendra's TechTalk

PHP has different functions which can be used to test the value of a variable. Three useful functions for this are <b>isset()</b>, <b>empty()</b> and <b>is_null()</b>. All …

MySQL

Make a div stick to top when scrolled to - Virendra's TechTalk

There are times when you would want to display a bar at the top of the page when user scrolls on the page and it should go back to its original …

Internet Explorer

Get search query string from search engines using PHP - Virendra's TechTalk

I have often come across situations when I would like to implement some functionality based on what the user searched for in a search engine like …

PHP

PHP double quotes vs single quotes - Virendra's TechTalk

Strings in PHP can be specified in four different ways: single quoted, double quoted, heredoc syntax and (since PHP 5.3.0) nowdoc syntax, the first …

Web Development

Sticky Header and Footer using CSS - Virendra's TechTalk

In some sites we want to keep the Header and Footer always visible and fixed to top and bottom of the screen respectively. In this article I will …

CSS

CSS !important Declarations - Virendra's TechTalk

Recently I came across lot of code using CSS !important declaration. I had known that this declaration existed but I didn’t knew what it was and had …

CSS

Parts of URL - Virendra's TechTalk

We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts …

Ip Address

Get various parts of URL using JavaScript - Virendra's TechTalk

Recently I wanted to get a domain name of the page on which I was currently on. I was trying to parse the entire URL of the page and then parse it …

JavaScript

Schedule crons using crontab - Virendra's TechTalk

Many times we need to have some process to run automatically at set times or after set intervals. This can be easily done in Linux/Unix by using cron …

Linux

How to make a WordPress menu item open in a new window/tab - Virendra's TechTalk

Recently I wanted to add some links to WordPress Menu, which were not pointing to my domain and hence wanted to open them in new tabs. Doing this is …

Web Design

How to Find and Replace Data in MySQL - Virendra's TechTalk

Recently, while migrating my blog, I had to find all the occurrences of my old URL and replace it with my URL. One way of doing this was to get a …

How to remove WordPress version number - Virendra's TechTalk

By default WordPress adds a meta tag which displays the WordPress version number that your WordPress site is running on. The version number is added …

Web Design

How to remove WordPress version parameter from JS and CSS files - Virendra's Techtalk

In my last post I mentioned how we can remove WordPress version number from the page source and RSS feeds. However, they are not the only places …

CSS

MySQL ordering results by specific field values - Virendra's TechTalk

In MySQL we can sort the results in ascending or descending order very easily by using the <b>ORDER BY</b> clause. However, there are times when you want to …

Databases

WordPress $ is not defined even if jQuery is loaded - Virendra's TechTalk

Many times while using WordPress, if we try to use “$” to access jQuery, we get an error the “$ is not defined”. This happens because the jQuery …

JavaScript

How to apply a function to every array element in PHP - Virendra's TechTalk

I often come across situations in which I need to apply some function to every element of an array in PHP. For example, to sanitize the user input, …

JavaScript