very basic code which we use offten in our day to day development and sometime we stucked . i write those issue here with simple solution. You will get codes of html, css, javascript, jquery, json,ajax, node.js, vue.js, nuxt.js, php and Mysql
Sunday, June 5, 2016
Sunday, May 29, 2016
11 Top Most Tools for Performance Testing of your web appliation
Whether you run a high traffic website or a small blog on a low cost shared host, you should optimize your site and your server to run as efficiently as possible.
These 11 tools will help you to analyze your site performance.
These 11 tools will help you to analyze your site performance.
Thursday, April 7, 2016
Add Decimal in your amount at desire position
Code
$amount = 560; $decimalPosition = 2; $divideBy = pow(10, $decimalPosition ); $newNumber = number_format( $totalTax / $divideBy , 2, '.',''); echo $newNumber;
OutPut
5.60
Second Way
$decimal_point = 2;
$totalTax=1260; //1.260
$a=substr($totalTax,0,-$decimal_point); //560 ka 5
$b=substr($totalTax,-$decimal_point,$decimal_point); //560 ka 60
$c = $a.'.'.$b;
echo $c;
Third Way
/********* in one line ****************************************\
$d = (substr($totalTax,0,-$decimal_point)).'.'.(substr($totalTax,-$decimal_point,$decimal_point));
echo $d;
Tuesday, March 8, 2016
What is the difference between Synchronous and Asynchronous ajax request
Every developer want to know about Synchronous vs Asynchronous
Most of the developer often faces this question in interview.I was also questioned several times so i plan to write a small post so that others can get help.
I found a nice explanation on stackoverflow.
See below explanation-:
Here i found another nice one explanation.
Finally i come to this conclusion
Labels:
Ajax,
Asynchronous,
Interview question,
Synchronous
Friday, March 4, 2016
Get directory path in symfony 2.8 and 3.0
Get base path -:
echo 'path is '.realpath($this->container->getParameter('kernel.root_dir').'/..');
echo 'path is '.realpath($this->container->getParameter('kernel.root_dir').'/..');
Subscribe to:
Posts (Atom)

