Friday, June 5, 2009

Google's Page Speed

At Google, we focus constantly on speed; we believe that making our websites load and display faster improves the user's experience and helps them become more productive. Today, we want to share with the web community some of the best practices we've used and developed over the years, by open-sourcing Page Speed.

Page Speed is a tool we've been using internally to improve the performance of our web pages -- it's a Firefox Add-on integrated with Firebug. When you run Page Speed, you get immediate suggestions on how you can change your web pages to improve their speed. For example, Page Speed automatically optimizes images for you, giving you a compressed image that you can use immediately on your web site. It also identifies issues such as JavaScript and CSS loaded by your page that wasn't actually used to display the page, which can help reduce time your users spend waiting for the page to download and display.

Page Speed's suggestions are based on a set of commonly accepted best practices that we and other websites implement. To help you understand the suggestions and rules, we have created detailed documentation to describe the rationale behind each of the rules. We look forward to your feedback on the Webmaster Help Forum.

We hope you give Page Speed a try.

Wednesday, May 20, 2009

OCR tools

- OCRopus
- tesseract-ocr

Checklist for Design Pattern

grap from (http://hillside.net/patterns/writing/checklist.htm)

A Pattern...
Describes a single kind of problem.
Describes the context in which the problem occurs.
Describes the solution as a constructable software entity.
Describes design steps or rules for constructing the solution.
Describes the forces leading to the solution.
Describes evidence that the solution optimally resolves forces.
Describes details that are allowed to vary, and those that are not.
Describes at least one actual instance of use.
Describes evidence of generality across different instances.
Describes or refers to variants and subpatterns.
Describes or refers to other patterns that it relies upon.
Describes or refers to other patterns that rely upon this pattern.
Relates to other patterns with similar contexts, problems, or solutions.

Thursday, December 4, 2008

Javascript Hashmap

tmpNodeMap = {
stor : {},
set : function (key,val) {this.stor[key] = val;},
get : function (key) {return this.stor[key];}
};


----> start of test <----

function test(key, val)
{
tmpNodeMap.set(key, val);
console.log('get key:'+key+'; val:'+tmpNodeMap.get(key));
}

test('set', 'aaaaaaaaaa');
test('get', '0000');
test('hala', 'aaa');
test('aaat', 'sss');


----> end of test <----