In case anyone else was as annoyed by the Ubuntu 11.04 "Window Grippers" (aka the obnoxiously large resize handles), instructions to disable them can be found here.
Saving the world, from one obnoxious UI change at a time...
20110612
20110524
grep 2.8
So I was sitting around today, lamenting the fact that grep isn't multithreaded, and decided to actually do something about it. Since all of the appropriate Google searches just seem to list other people lamenting the same fact, I started messing around with things. Turns out, I can get a 20-50% speedup just by doing this:
(Word to the Wise: There is also a similar, but very wrong way to do it...)
So after tuning the threading numbers there, and feeling pretty good about myself, I decided to look up the mainline GNU Grep source, and see if there wasn't something I could do to help. So I pull up the current source, and upgrade my box to use grep 2.8 instead of Gentoo's stable 2.5.4, and Holy Snapdragon! (Yes, I actually said that...) I got a 10x-60x speedup on the workloads I was testing. Yes, you read that right. My tests that were taking 48-80 seconds, were now finishing in 1-2 seconds. I dunno what kinda magic they threw into grep 2.8 but good work guys. Still no multithreading, but with the new version, I have real trouble just finding a workload that needs it.
So, my Gentoo countrymen, if ever there were a time to use unstable, this is it!
find $files -type f -print0 | xargs -0 -n10 -P8 grep -H $ARGS "$pattern"
(Word to the Wise: There is also a similar, but very wrong way to do it...)
find $files -print0 | xargs -0 -n10 -P8 grep -H -r "$pattern"
So after tuning the threading numbers there, and feeling pretty good about myself, I decided to look up the mainline GNU Grep source, and see if there wasn't something I could do to help. So I pull up the current source, and upgrade my box to use grep 2.8 instead of Gentoo's stable 2.5.4, and Holy Snapdragon! (Yes, I actually said that...) I got a 10x-60x speedup on the workloads I was testing. Yes, you read that right. My tests that were taking 48-80 seconds, were now finishing in 1-2 seconds. I dunno what kinda magic they threw into grep 2.8 but good work guys. Still no multithreading, but with the new version, I have real trouble just finding a workload that needs it.
So, my Gentoo countrymen, if ever there were a time to use unstable, this is it!
20110507
Skype and Gentoo amd64
I have a weird problem where my skype video intermittently (read mostly) doesn't work.
I found a solution here:
http://papers.ch/?p=94
Apparently it doesn't figure out it needs to load the 32-bit versions of v4l ...
I found a solution here:
http://papers.ch/?p=94
Apparently it doesn't figure out it needs to load the 32-bit versions of v4l ...
20110505
Bash-ism
Fun fact of the day: "echo *" and "echo */" do not do the same thing... (with the obvious distinction).
20110419
Standards of Proof
Standards of Proof in the Internet Age
The Dark Ages
1960?-1970?: Published Work
Birth of the Internet
1970-1979: Electronic Article by a University Professor
ca 1980: a posting on Usenet
The Web
late 1980s - early 1990s: some grad student's personal website
ca 1992: AOL encyclopedia article
ca 1996: a page on GeoCities
late 1990s: corporate sponsored web pages
Social Networking
early 2000s: some guys Blog
ca 2006: a video on YouTube
2007: a Wikipedia article
2009: some celebrity's Twitter feed
2010: a poll of your Facebook followers
Source: My Personal Thoughts, April 2011.
(Some of the above mentioned sources were consulted for historical accuracy... the rest was fabricated.)
The Dark Ages
1960?-1970?: Published Work
Birth of the Internet
1970-1979: Electronic Article by a University Professor
ca 1980: a posting on Usenet
The Web
late 1980s - early 1990s: some grad student's personal website
ca 1992: AOL encyclopedia article
ca 1996: a page on GeoCities
late 1990s: corporate sponsored web pages
Social Networking
early 2000s: some guys Blog
ca 2006: a video on YouTube
2007: a Wikipedia article
2009: some celebrity's Twitter feed
2010: a poll of your Facebook followers
Source: My Personal Thoughts, April 2011.
(Some of the above mentioned sources were consulted for historical accuracy... the rest was fabricated.)
20110323
Firefox 4 animations....
I just installed Firefox 4, and the juries still out, but I needed to disable the tab animations just to make it usable.
What is with people and fancy UI animations these days? I mean, they're fun to write, and they're cool for about 10 seconds, and then it's just annoying. Like, after I've clicked a button, or closed a tab, I'm done with it. I've already moved on, and am paying attention to something else, so if it suddenly starts flashing, or blinking, or sliding, it's completely distracting.
But thank you Firefox 4 developers for adding an option to disable it! The nice thing about open source is there's usually someone who complains loud enough to get an option added. :-D
What is with people and fancy UI animations these days? I mean, they're fun to write, and they're cool for about 10 seconds, and then it's just annoying. Like, after I've clicked a button, or closed a tab, I'm done with it. I've already moved on, and am paying attention to something else, so if it suddenly starts flashing, or blinking, or sliding, it's completely distracting.
But thank you Firefox 4 developers for adding an option to disable it! The nice thing about open source is there's usually someone who complains loud enough to get an option added. :-D
20110227
Copyright and Eminent Domain
Can Congress legally restrict the copyright terms if it wanted to? Or, having granted a property right, are they restricted to claiming eminent domain, and issuing compensation for seizure of private property as required by the Constitution? They certainly seem capable of extending copyright (having previously done so).
Perhaps one could argue that a copyright is essentially a state-granted monopoly rather than a property right, and is thus subject to various restrictions, that Congress has the right to change and regulate at any time. Of course, those with vested (and yet unvested, if Congress extends it again) interests in promoting the term "Intellectual Property" would no doubt disagree. Perhaps we should start calling it "Intellectual Monopoly Rights" and see if it remains as popular.
Dunno. Food for thought.
Perhaps one could argue that a copyright is essentially a state-granted monopoly rather than a property right, and is thus subject to various restrictions, that Congress has the right to change and regulate at any time. Of course, those with vested (and yet unvested, if Congress extends it again) interests in promoting the term "Intellectual Property" would no doubt disagree. Perhaps we should start calling it "Intellectual Monopoly Rights" and see if it remains as popular.
Dunno. Food for thought.
Subscribe to:
Posts (Atom)