Posts tagged JavaScript

Batch minimize js with python and Closure

March 1, 2013, 12:38 a.m. javascript , Python

There maybe much better ways of  batch minimizing Javascript files. But this is my way and sharing it just in case someone else finds it useful.  ...

Ruby Rails - Could not find a JavaScript runtime

April 21, 2012, 1:22 p.m. JavaScript , Ruby , virtualization

I recently had a series of posts on learing Ruby in less than 48 hours. I managed to do so in spite of running into considerable issues with installation of Ruby or various Gems. But those issues are nothing in comparison to the stumbling blocks and pitfalls the RoR trail.  In the end what worked wa ...

Zebra Stripes on Google Apps Spreadsheets

Nov. 22, 2011, 1:53 p.m. cloud , Google Apps , JavaScript

It was a bit of a surprise to find that there is no easy way to add zebra stripes to a Google spreadsheet. There is a template with Zebra stripes added in.  But if you sort the spreadsheet, you lose the stripes, or it gets randomized. However I did run across a small script by Otávio A. Ribeiro that ...

Adding a JS library to existing greasemonkey scripts

Aug. 29, 2011, 1:58 p.m. Greasemonkey , JavaScript , jQuery

So the other day, I posted about how adding jQuery to a greasemonkey scripts has become pretty easy. It wasn’t always like  that. The same approach can also be used to add YUI, Prototype etc to any GreaseMonkey script. Now suppose you want to add such a library to existing GreaseMonkey code? Well it ...

Greasemonkey and Jquery Revisited

Aug. 26, 2011, 2:07 p.m. Greasemonkey , JavaScript , Macbook

Thousands have geeks have been combining the power of Greasemonkey and Jquery thanks to a small to a small tip published by Joan Piedra which explains how to load jQuery by adding script tags to the web page using Greasemonkey code. This approach was needed because jQuery and Greasemonkey didn’t pla ...

CouchDB or Java which one should I hate?

Nov. 13, 2010, 3:20 a.m. cloud , JavaScript , lame , nosql , SQL

Never been a fan of RDBMS no sirree. But that has never stopped me from using them (but with many repitions of the phrase 'databases suck'). Then along came non relation databases and then no-sql. For a while I had to modify my phrase to 'SQL Databases suck'. But it wasn't long before I started dabb ...

Have we been misled about cloud hosting?

June 12, 2010, 4:31 p.m. JavaScript , virtualization

Amazon recently announced that S3 support has been enabled in the AWS management console. Sounds great. Except that it doesn't work. Once you click on the S3 tab in the console the process seems to hang. The reason amazon and other cloud hosting companies want us to switch over to the cloud is becau ...

ExtJS , YUI and jQuery

May 3, 2010, 12:12 p.m. Ajax , ExtJS , JavaScript , jQuery , RIA , YUI

I needed to build a data grid, and even though I am a big fan of jQuery, I thought of using YUI instead. It's just a matter of keeping up with the Joneses (I wasn't familiar with YUI at the time this was started). A data grid has many names, the geeks at Yahoo! call it a DataTable. Call it by any n ...

Twitter Search API inconsistency

Nov. 29, 2009, 1:43 p.m. JavaScript , search , twitter , XML

In recent weeks, it seems like I spent most of my time finding bugs in the twitter API or third party libraries. Maybe I should get a job in their testing team. This latest bug was discovered in the twitter search API. The from_user and the from_user_id fields do not quite match. Here are some examp ...

jQuery TableSorter and XSL Transformation

Sept. 1, 2009, 7:36 a.m. Ajax , JavaScript , jQuery , XML

Jquery and it's plugins are so popular because they allow you to do in a couple of lines of code what might otherwise take days and days of effort.. The tablesorter plugin is one that allows you to sort an HTML table by clicking on any of the column names in the table header. I am talking of a real ...

json_encode/json_decode vs serialize/unserialize and fools vs idiots.

Aug. 1, 2009, 1:01 a.m. JavaScript , religion , Wordpress

If you want to write good , fast, memory efficient code (pick any three) you need to start off with good fast memory efficient algorithms. Using fprintf instead of fwrite or  java.util.ArrayList instead of java.util.Vector or $.ajax instead of $.get doesn't really make any difference at all. If you ...

Wordpress Chart Plugin

Jan. 3, 2009, 1:13 a.m. JavaScript , Wordpress

Wouldn't it be nice if the monthly archives could be displayed in the form for a chart? Unfortunately there isn't a plugin to do that. Well at least there wasn't one till now. I have just created a very basic plug-in it still needs a bit more work so I am not going to release it just yet. It's made ...

JSObject and JSExceptions

March 20, 2006, 2:50 a.m. JavaScript

If you tried out read my article on java and javascript interaction and then tried out the demo you will probably see the expected result. The sample code provided is compatible with IE, Firefox and Safari. However if you tried to call javascript methods from your applet while using the Safari brows ...