Monthly Archives: January 2013

EXT.MessageBox Samples

Generating different styles of message boxes // Basic alert Ext.MessageBox.alert(‘Status’, ‘Changes saved successfully.’); // Show a dialog using config options Ext.Msg.show({       title:’Save Changes?’,       msg: ‘Your are closing a tab that has unsaved changes. Would you like to save your changes?’,       buttons: Ext.Msg.YESNOCANCEL,       //fn: processResult,      animEl: ‘elId’ }); //Prompt for user… Read More »

Logical Defined-Or in Perl

// It’s exactly the same as ||, except that it tests the left hand side’s definiteness instead of its truth. Thus, EXPR1 // EXPR2 returns the value of EXPR1 if it’s defined, otherwise, the value of EXPR2 is returned. For Example : $home= $ENV{HOME} // $ENV{LOGDIR} // (getpwuid($<))[7] // die “You’re homeless!n”;