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/
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)