Random stuff on a futile day…

  • GWT is awesome for building JavaScript UI’s, and an easy way too. But integrating it with databases could cost u a whole single* day and yet u may remain with the same screen showing “Could not connect”, not advancing a single LoC.
  • When you mean a backup, the data SHOULD exist in two places at the minimum.
  • You can lose  488.211GB of data even without a complete hard-drive failure and no clue how.
  • You can be the coordinator of an event even without you knowing.
  • The day long uninterrupted cable connection gets cut only when u r watching something u like.
  • and finally, you can spend a whole day thinking of “Wat to do?” faster than actually doing something.

JSON : JavaScript Object Notation

Def Looks Like :

“Quotes”: [
{ “Symbol”: “BAJAJ-AUTO”, “Company Name”: “BAJAJ AUTO LIMITED” },
{ “Symbol”: “BAJAJELEC”, “Company Name”: “BAJAJ ELECTRICALS LIMITED” },

And the easiest way to convert your data to it is :

1. Assign your stuff to logically arranged array elements.

2. Used the JSON object’s encode() function.

explode()-ing and stripping stuff;
your for() nonsense{
$value{“item”}{$i}{“Symbol”}= $cols[0];
$value{“item”}{$i}{“Company Name”}= $cols[1];
$json = new Services_JSON();
$output = $json->encode($value);

For using the JSON Object, you will need an definition PHP class which can be downloaded from http://pear.php.net/pepr/pepr-proposal-show.php?id=198

Happy Pongal and GWT-ing 😉


~ by toolweb on January 13, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: