Thiemo Mättig

Thiemo Mättig

»I strongly disagree that Ubuntu and Gnome decided to disable the standard Unix Middle Mouse paste. […] May the managers behind this decision find a soon and painful end. You make my life hard.« Uh, I would not put it that way. But yea, this is painful. I got sooo used to the quick middle mouse button copy-paste that does not interfere with the clipboard. I absolutely need it. Here is how to re-enable it in the more recent Ubuntu versions that disabled it: Ask Ubuntu: How do I enable Middle mouse button emulation?
Kommentar hinzufügen
How to compare a.k.a. »diff« binary files in Ubuntu, or Linux in general? The cmp command kind of supports this via it's -l (verbose) switch, but outputs octal numbers for some reason. Nobody uses octal numbers. Try this:
cmp -l first.bin second.bin | mawk 'function c( o ) { for ( d = i = 0; i++ < length( o ); ) d = d * 8 + substr( o, i, 1 ); return d } { printf "%08X %02X %02X\n", $1 - 1, c( $2 ), c( $3 ) }'
Source: Superuser.com.
Kommentar hinzufügen
I keep quoting the hilarious »Memorizing Six Git Commands – A Practical Guide« by @ThePracticalDev, because I find it so true. Quick, can you name more than six? It was about time I would list mine. So here they are, extracted from my Bash history, in alphabetical order:
Weiter lesen …
Kommentar hinzufügen
»Catch click events before the DOM is loaded«. This solution relies on jQuery, but can be rewritten to work without. The idea is to add onclick="return earlyClickHandler.call( this );" snippets to the HTML source where needed. This tiny function is guaranteed to be there, because it is part of the documents <head>. What it does is delaying these clicks until the load event happened. »Catching clicks with clickCatcher before your JavaScript files have loaded/events been applied« explains a very similar solution that works without messing with the HTML and performs better because it does not leave active onclick handlers in the DOM when they are not needed any more.
Kommentar hinzufügen
»They want people to be nice to each other, and they are kind of dragging us in the direction, some of us kicking and screaming, to be – you know – generally kind.« »20 years of Open Source – stories from the early days«, keynote at FOSS Backstage 2018 by Danese Cooper (PayPal).
Kommentar hinzufügen
(bereits 3 Kommentare)

[ Ältere Einträge → ]

Impressum & Datenschutz