Reverberations

News, Views, Rants and Raves About Technology and More

Archive for the ‘Hax0r’ Category

Google Gears and Linux

leave a comment »

“Google Gears” could not be installed because it is not compatible with
your Firefox build type (Linux_x86-gcc3). Please contact the author of this
item about the problem.

Found the fix in this Google group post which says re-installing Gears should fix this issue.

On more digging, it appears that there are several bugs reported with this issue e.g. Bug # 975, 977. Apparently someone uploaded a custom gears xpi to fix versioning issue. Google indeed has moved on to phase out Gears in favour of HTML5.

Tags:

Advertisements

Written by Brajesh

January 9, 2010 at 4:01 am

Posted in Coding, Google, Hax0r

Simple Update Protocol (SUP)

leave a comment »

Paul Buchheit (the creator and ex-lead developer of Gmail) of FriendFeed has suggested a new format – Simple Update Protocol (SUP) to minimize multiple feed polling.

The idea is simple –

  • The feed provider will generate a live or cached feed for ALL recent updates with an ID field to identify the updated entities.
  • The feed consumer will poll this SUP feed instead of polling individual RSS feed.
  • The feed consumer will request only relevant updated feeds.

HTTP header If-Modified-Since does something similar. But, that would still means requesting for each individual feed.

The proposal looks good for both feed generators and consumers, and not very difficult to implement either. However, the format is too vulnerable to feature creep and standardization can be a painful process.

Written by Brajesh

August 28, 2008 at 3:10 pm

Internet Explorer’s Trailing Comma Woes

with 8 comments

Internet Explorer is notorious for breaking on trailing commas in JavaScript array declaration. e.g.

var obj = {
     a: 1,
      b: 2,
};

fails on IE, while all other browsers just ignore the innocuous trailing comma after second element.

Weeding out these commas from JavaScript code is absolute PITA. However, here is a regular expression search string I wrote to search such instances in the code.

,\s*\n+\s*[\}\)\]]

Even better,
,\s*\n+(\s*\/\/.*\n)*\s*[\}\)\]]
matches multiple new lines and comments.

Written by Brajesh

March 18, 2008 at 10:31 pm

Compiling Greasemonkey Scripts to xpi (Firefox Extension)

leave a comment »

Written by Brajesh

November 28, 2007 at 4:36 am

Gmail Updated

leave a comment »

Gmail’s new version rolled out for me today, and first thing I noticed that it had reset my gmail chat config (basically I had switched off gmail chat), my greasemonkey scripts were broken and I had a firebug extension warning on top.

While I have no gripe about greasemonkey, resetting gmail chat setting means I’ve to check rest of my settings to be sure anything else is not broken.

New version seems quicker, with additional options in “More Actions” menu and updated “Contacts” section.

Written by Brajesh

October 30, 2007 at 2:34 pm

Direct Link to IMDb Movie Quotes

leave a comment »

A small greasemonkey script to get direct link to a quote on IMDb’s “memorable quotes” page. This script creates a “#” with a link to corresponding quote.

Written by Brajesh

October 20, 2007 at 10:09 am

Cookie Stealer

leave a comment »

Someone has been posting cookie stealing greasemonkey scripts at userscripts.org.

Any of the following code snippets are red flags.

.php?cookie=

encodeURIComponent(document.cookie)

Written by Brajesh

July 8, 2007 at 5:03 am

Posted in Coding, greasemonkey, Hax0r