Posts

Rules and Benifits of provident fund in india

Image
There n number of benfits in  provident fund in india for example the person getting 20,000 per month and gains 5% increment per annum can get 1.38 croses after 35 years of service. For more detail please visit the http://www.bemoneyaware.com/blog/epf/

Top 10 MySQL Queries

This are the top 10 MySQL queries are usually written once and then wrapped in class functions to minimize code repetition. 1. Create Table You would not use the create table query every time the script executes in normal scenarios. CREATE TABLE  'emp' ( 'id' INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, 'name' VARCHAR(45) NOT NULL, 'lastname' VARCHAR(45), 'dept' VARCHAR(45) DEFAULT 'sales', PRIMARY KEY ('id') ) ENGINE = InnoDB; The above query creates a table "emp" in the selected database. We will have an "id" column as auto increment and with a PRIMARY KEY constraint, which ensures an incremented integer value is added every time a new row is inserted; the constraint checks for non-duplicate value. You can specify the "Engine" to be used while creating the table.  We used "InnoDB" here because it allows FOREIGN KEY and transactions. 2. Insert Query Now that you have a t...

Progress bar in jquery blockui

The progress bar are mostly used in user friendly interface that user can know the process status and gets the result.Here the jquery as library name blockui where is process the progress bar while requesting the server in back end. Recently i was using the ajax functionality often and embedded the progress bar gif file,after the find the block ui  jquery library  in https://malsup.github.io/jquery.blockUI.js By implementing script on top as <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>             <script src="https://malsup.github.io/jquery.blockUI.js"></script> just implementing the function like     var showProgress = function() {     $.blockUI({ message: '<img src="3.GIF" />' });     };         var hideProgress = function() {     $.unblockUI...

Two types of javascript object

 The JavaScript is object based scripting language and so mostly the object is used access the value or function in which there are several types in it they are This are the two types that are used to access object and its properties. object literal object array try{   sr={};//object literal sd=[];//object array   rds:function pl = new Object(); pl.s="sam"; pl.d=1; pl.c="dadawd"; sr.s="samuel"; sd.s="jar"; alert(pl.s); alert(sr.s); alert(sd.s); } catch(err) {     alert(err.message); }

happy ganesh chaturthi 2014

Image

curl error handling method

The post data using curl php and  curl error handling can be checked using the curl_errno() function in curl,which get error no of the exception occured while running the curl file.like I was working on an api in which i used following code i had error no of 28 which is know as request time out,so according to curl there several error no with detail. php curl examples php curl code: error_reporting(E_ALL); ini_set('display_errors', 1); try{ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL,     'http://example.com'); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $content = curl_exec($ch); $curlerrno = curl_errno($ch); curl_close($ch); print $curlerrno; var_dump($content); }catch (Exception $e) {     echo 'Caught exception: ',  $e-&gt;getMessage(), "\n"; } list of error number: $error_codes =array( [ 1 ] => 'CURLE_UNSUPPORTED_PRO...

TUBEZ - Radiation-Free Air tube Headset www.Smart-Safe.com

Image