Thursday, May 28, 2009

Javascript Profiler

Hi all,

This is very important to know that which part of JavaScript code is taking too much of time.Which are functions are called ,for how many times,each function taking how much time so that
we can optimize your code.

I have doing R & D for almost one or two day
to find  how to optimize my JavaScript code,finally we got a tool from
which JavaScript code can be optimized.
There is extension in Firefox called Profiler which gives a detail report that how many functions will be called for a particular event and how many times.

In our case i have tested by clicking on show regions button(just
one click) and the report shows how many functions and which function
is taking too much of time.

The screen shot for the same is shown below


Please revert back with your valuable feedback and suggestions.

Thanks
Kailash

Tuesday, February 3, 2009

Pentaho Open Source BI

Hi I have found pentaho the best open source BI.
using this you can create pivot kind of reports.

Kailash

Monday, September 8, 2008

Force download PHP

function force_download ($data, $name, $mimetype='', $filesize=false) {
// File size not set?
if ($filesize == false OR !is_numeric($filesize)) {
$filesize = strlen($data);
}

// Mimetype not set?
if (empty($mimetype)) {
$mimetype = 'application/octet-stream';
}

// Make sure there's not anything else left
ob_clean_all();

// Start sending headers
header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); // required for certain browsers
header("Content-Transfer-Encoding: binary");
header("Content-Type: " . $mimetype);
header("Content-Length: " . $filesize);
header("Content-Disposition: attachment; filename=\"" . $name . "\";" );

// Send data
echo $data;
die();
}
force_download('i am kailash kumar','data.doc');

Monday, December 31, 2007

Software Engineer from Bangalore