here is how to:
Search on Google from Firefox address bar (like Google Chrome)
* Type about:config into your address bar.
* In the small filter box, type keyword.URL.
* Right click the keyword.URL value and click “Modify” (screenshot below). Enter the following URL into the popup box (you would want to copy this URL before clicking Modify):
http://www.google.com/search?btnG=Google+Search&q=
taken from: http://www.techzilo.com/search-google-address-bar-firefox-google-chrome/
Python, IaC, algo trading, programming, server administration, Linux, PHP, CakePHP, PostgreSQL, MySQL, Joomla ...
Monday, May 31, 2010
Saturday, May 29, 2010
encoding with man command
i was tired of seeing unwanted strange characters when viewing man pages.... so i found that doing
alias man="man --encoding latin1"
resolved the problem for me.
My terminal is latin1 encoded, so I think 'man' know how to do the translations, as I know see everything right : )
alias man="man --encoding latin1"
resolved the problem for me.
My terminal is latin1 encoded, so I think 'man' know how to do the translations, as I know see everything right : )
Wednesday, May 26, 2010
see all attached javscript events to all objects on the dome... with jquery
see all attached javscript events to all objects on the dome... with jquery
you can execute directly in firebug:
or
you can execute directly in firebug:
$.fn.listHandlers = function(events, outputFunction) {execute with:
return this.each(function(i){
var elem = this,
dEvents = $(this).data('events');
if (!dEvents) {return;}
$.each(dEvents, function(name, handler){
if((new RegExp('^(' + (events === '*' ? '.+' : events.replace(',','|').replace(/^on/i,'')) + ')$' ,'i')).test(name)) {
$.each(handler, function(i,handler){
outputFunction(elem, '\n' + i + ': [' + name + '] : ' + handler );
});
}
});
});
};
$('*').listHandlers('*', console.info);
or
// List all onclick handlers of all anchor elements:
$('a').listHandlers('onclick', console.info);
// List all handlers for all events of all elements:
$('*').listHandlers('*', console.info);
// Write a custom output function:
$('#whatever').listHandlers('click',function(element,data){
$('body').prepend('<br />' + element.nodeName + ': <br /><pre>' + data + '<\/pre>');
});
taken from: http://stackoverflow.com/questions/570960/how-to-debug-javascript-jquery-event-bindings-with-firebug-or-similar-tool
Subscribe to:
Posts (Atom)
cancel script completely on ctrl-c
I found this question interesting: basically how to cancel completely a script and all child processes : You do this by creating a subro...
-
I've been using WinScp and a script to compress files at maximum compressión, name the file as name_YYMMDD-HHMM.rar, and send them to a...
-
tomado de: http://el-directorio.org/ErroresComunesPhpmyadmin ARREGLAR ERROR 1045 (28000): Access denied for user 'root'@'localho...
-
Styling Excel cells with mso-number-format mso-number-format:"0" NO Decimals mso-number-format:...