Sharing out the code that calculate the excel column label by increment. Suitable for any version of excel.
Wednesday, January 19, 2011
Sunday, January 16, 2011
IE8 : jquery : ajaxfileupload : Syntax Error: Unterminated string constant
The problem
Write a web app to upload a file, read the content then return the content in HTML table using JSON format then display the result dynamically at current HTML page. Below is the JSON return by a PHP script.
Write a web app to upload a file, read the content then return the content in HTML table using JSON format then display the result dynamically at current HTML page. Below is the JSON return by a PHP script.
{filename: 'input.dat',total_recipient: '1',totalcolumn: '3',samples: '<table width="400px"><thead><tr><th>Column 1</th><th>Column 2</th><th>Column 3</th></tr></thead><tbody><tr><td>name</td><td>phone no</td><td>address</td></tr></tbody></table>',columntag: '{Col_1},{Col_2},{Col_3},'}As usual it work perfectly on FF 3.5.3, but when come to IE8 I got the error message "Syntax Error: Unterminated string constant".
Saturday, January 15, 2011
IE8 : Object doesn't support this property or method
The problem
Try to load following html to IE8 then insert some text to the input box and click the button. It should just alert the text you had key in but it give a javascript error "Object doesn't support this property or method". Below code work perferly on FF 3.5.3.
Try to load following html to IE8 then insert some text to the input box and click the button. It should just alert the text you had key in but it give a javascript error "Object doesn't support this property or method". Below code work perferly on FF 3.5.3.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>ID Test</TITLE>
<script type="text/javascript">
function testnow()
{
inputvalue = document.getElementById('inputvalue').value;
alert ("input value is ["+inputvalue+"]");
}
</script></HEAD>
<BODY>
<H3>Input Text</H3>
<input id="inputvalue" type="tet"></input>
<BR/>
<button onclick="testnow()">click me</button>
</BODY></HTML>
Saturday, May 8, 2010
Machine Image Tool - A GUI Disk Dump Tool
While involving in cloud computing project, migrate virtual machine image is a common activity in order to use current virtual machine image in EUCALYPTUS environment.
However, for non technical people to
However, for non technical people to
- mount a loop file,
- list the partition in the mounted loop file and
- using disk dump (dd) to dump the partition to a file
Saturday, May 1, 2010
Grid Monitoring Tool
Most of the distributed system like grid or cloud is using ganglia as resource monitoring tool. Out of the box solution provided by ganglia is powerful and useful enough for operation center. However, in term of flexibility and ease of integration to external application, is not straight forward.
I had designed and developed a web apps that run on top of ganglia with few enhanced features as below.
I had designed and developed a web apps that run on top of ganglia with few enhanced features as below.
- Process and save ganglia gmetad xml file to relational database
- API and hook to process user defined data in gmetad XML
- Event triggering and configuration
- Threshold configuration
- Job monitoring and statistic
- New UI and data presentation to give new better overview of resource status
- Data mining and report generation
- User authentication and authorization
Friday, April 30, 2010
Get Microsoft Window Administrator Password from Amazon EC2 Instance
Who ever use Amazon EC2 Window instance will know that for the first launch of the instant, you need to use ec2-get-password command line tool to retrieve the preset administrator password. For a non technical user, this is a barrier to use EC2.
Lately, my ex colleague team is building a web application to ease the user to use EC2 and Eucalyptus service. Above problem is a major problem for them too because it involve x509 certificate and encrypted string that gathered from EC2 API.
Lately, my ex colleague team is building a web application to ease the user to use EC2 and Eucalyptus service. Above problem is a major problem for them too because it involve x509 certificate and encrypted string that gathered from EC2 API.
Friday, June 26, 2009
Freelance Projects
Following is some of the projects (wish can be published) I had done previously, mainly in PHP and javascript.
Subscribe to:
Posts (Atom)


