20111116

Strawberry Perl: How to install a cpan module with a proxy

goto the portable shell:

----------------------------------------------
Welcome to Strawberry Perl Portable Edition!
* URL - http://www.strawberryperl.com/
* see README.portable.TXT for more info
----------------------------------------------
Perl executable: H:\sperl\perl\bin\perl.exe
Perl version : 5.12.3

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.


Type in cpan

H:\sperl>cpan

enter

o conf http_proxy http://10.0.0.1:83

or whatever your proxy is

20110630

How to update a row in YUI2 DataTable

Here's how to update the data in a YUI2 ScrollingDataTable:

this.subscribe('cellClickEvent',function(e, obj) {
    var target                  = e.target,
        column                  = this.getColumn(target),
        record                  = this.getRecord(target),
        data                    = record.getData(),
        recordIndex             = this.getRecordIndex(record);

//manipulate data here
      this.updateRow( recordIndex, data);   

A Switch and A New Direction

This is going to be a collection of little scripts and other stuff from now on.

YUI2 Datatable:

Here's how you refresh the data through the DataSource:

this.DS.sendRequest( null, {
scope: this,
success: function( sRequest, oResponse, oPayload) {
this.onDataReturnInitializeTable( sRequest, oResponse, oPayload);
},
failure: function( sRequest, oResponse, oPayload) {
}
}, this);