Domain: catonmat.net
Stories and comments across the archive that link to catonmat.net.
Comments · 10
-
Re:The Art of Computer Programming
It is quite funny. But not actually true.
-
Re: Ah, yes... but... FUCK BETA!
As a super-programmer who's better and more smug than any other programmer in the universe, I would just like to say that you're ALL wrong and only *I* have it right. There are only two ways to do any programming task: MY way and the WRONG way. And none of you know MY way, so that kind of narrows it down.
-
Re:But...Agile teaches us...
You're ALL doing programming all wrong!! Just ask this guy.
-
Re:Word
<Tangent alert>
"Programming: You're doing it completely wrong"Quick web search shows it was the late John McCarthy, of AI and Lisp fame. There are two slightly different flavors. Man, shame that I did not recognize the guy's name, after the obligatory slashdot story I know I vaguely must have read when he died last year... and having used lisp flavors in 3 different college courses...
< / Tangent >
-
Now what do I do?
I've had this picture on my office door for ages.
How can I put a black border around that?
-
Re:Nope, he didn't
Mod parent up. There was a comment on the article that referenced cache oblivious algorithms, which was a new concept to me and very interesting. Basically, this set of algorithms assumes a memory hierarchy (e.g. fast ram vs slow disk) that is optimized to limit the number of times the slower memory is accessed. Importantly, cache oblivious algorithms are optimal REGARDLESS of the size of the cache. That's opposed to a cache aware algorithm, like a normal b-tree, where the size of each node is set according to the page size of the machine.
A very helpful overview here from MIT Opencourseware: http://www.catonmat.net/blog/mit-introduction-to-algorithms-part-fourteen/
-
Re:"Good programmers write good code...
Peteris Krumins has a blog called good coders code, great reuse, mostly about algorithms, perl, sed and such things. He might have borrowed the idea for the title also.
-
Re:Shell history tricksHow could you not include ^R and ^S
^Rstring # recall the last command with string in it
This can then be used again and again, ^R^R , to go back through each of those commands
This allows you to jump back 1, 2, 3, 4... or however many commands in history that include any specific string.
Pass up the command by hitting ^R too many times?
^S to the rescue! ^S then goes forward in your match historyDo not use ^S outside of ^R though, or it will freeze your terminals output(commands still run even though you do not get any output until the following is done) for which you will need to ^Q to unfreeze.
As for other history tricks that you did not get in to... All great!
echo !-2:2
^replacethis^withthis
!?string?
echo !!:$:h
echo !!:$:e
echo !!:$:r
echo repeat this twice !#:1*
fc
shopt -s histverify
export HISTIGNORE="&:[ ]*:fg:bg:jobs:kill:exit:logout"
here is a simple cheat-sheet for some of the stuff. -
Re:File size - 1GB now
Perl You Tube Uploader
I absolutely love this script. I even wrote a wrapper for it which has my password and login and uses the file name as the description, etc.
If I have a ton of videos I need to upload, right before I go to bed I just do a youtube_batch *.mp4. When I wake up everything is online.
Direct link to perl script -
Re:File size - 1GB now
Perl You Tube Uploader
I absolutely love this script. I even wrote a wrapper for it which has my password and login and uses the file name as the description, etc.
If I have a ton of videos I need to upload, right before I go to bed I just do a youtube_batch *.mp4. When I wake up everything is online.
Direct link to perl script