[Solved]How to remove Render-Blocking javascripts

When a browser loads a webpage, while rendering it it has to parse the page. During the parsing process, if the browser comes across an external script it has to download it too which stops the parsing process until the JavaScript file is completely downloaded by the browser. With each file, it has to repeat […]

[Solved]How to create a HTML table from PHP array

While working on a project last week I encountered a situation in which an array was supposed to be converted to a HTML table. Basically I was working on a WordPress plugin and required the array to be dynamic with any number of items and keys in it so hard coding the table structure was […]

Top 7 Laptops of 2014

Finding the right laptop is no easy challenge. With so many models on the market, it’s easy to get bogged down in technical jargon. There’s no single model that will suit everyone, because we all have different priorities. What’s important is finding a laptop that works for you. A new laptop can be a major […]

Prevent your site from being shown in iFrames using javascript

Data scraping is one of many pains bloggers and web developers face these days. Someone works hard enough to create a unique content and a unique code or script making their website useful and someone else simply uses iframes to show all their effort on their own website and getting all the credit. Or for […]

You can now change Facebook Cover privacy settings

Facebook has just launched the feature for its users that they can limit the visibility of old facebook covers to their contacts which they chose to. The old facebook covers can be shown to public, as they were before, or they can be limited to friends only or specified people. Or you can chose “only […]

[Solved]I’m getting SSL certificate error in all my browsers

One of the members of the facebook group asked the following question recently: Yar i am getting ssl certificate eror in all my browsers… na google khulta hai aur na hi twitter ye kia musibat hai .. kaise hal hoga ye any one help me.. This post is dedicated to him. The issues was, that […]

Simple AJAX post() function

This is a simple post function of AJAX using jquery. It will submit the data as POST to the specified php file and the data can then be worked normally as $_POST.   $(“button”).click(function(){  $.post(“submit_to.php”,  {    name:”Nabtron”,    description:”technology”  },  function(data,status){    alert(“Data: ” + data + “\nStatus: ” + status);  });});      

beforeSend for .post in AJAX

beforesend is really useful when you need to show some spinner while the data is being submitted and the response from the server is awaited. However I found it hard to find any set protocol to do that for .post function for AJAX in jQuery. This beforesend function does work for AJAX protocol but not […]

PHP mail function (for sending $_POST or $_GET data from form or AJAX)

This post is to give an example of simple PHP mail function. The first one is a simple mail function with minimum elements in it. The second one is a theme for sending $_POST posted data via email.   <?php $email_to=”someemail@somedomain.com”; $email_subject=”the posted variables”; $email_message=”Theinitial message”; $headers = “From: Beacze\r\n”. “Reply-To: developer@nabtron.com\r\n’” . “X-Mailer: PHP/” […]

[Solved] #1063 – Incorrect column specifier for column . . .

While adding auto increment value to one of the columns in my mysql database table, I got the error saying: Error SQL query: ALTER TABLE `tablename` ADD `id` VARCHAR(11) NOT NULL AUTO_INCREMENT AFTER `userid`, ADD PRIMARY KEY (`id`) ; MySQL said:  #1063 – Incorrect column specifier for column ‘id’  Solution The error can easily be […]