Posts

Learning to use Screen ! Here's a cheat sheet

ctrl-a c: create a new window ctrl-a ": list windows and select one ctrl-a A: name a window ctrl-a w: show all windows ctrl-a N: switch to window N, where N is an int (1,2,3, etc...) ctrl-a ctrl-a: switch between windows ctrl-a d: detach window ctrl-a [: start copy move, move like in Vi. ctrl-a ]: paste from buffer ctrl-a S: create a split screen

giving write access to apache2

Giving write access for apache2 (probably this is a quick fix) I would not recommend this in production. Apparently, suPHP is the norm. But for what I am doing, this should suffice: chgrp -R www-data /var/www chmod -R g+w /var/www

when you need to download the web! or a very small part of it....

wget is your friend. I needed to download the web version of one of my courses for records, wget did the trick! This article is pretty good at showing some examples:

Go beyond your limits

Awesome life example from Bruce Lee: Bruce had me up to three miles a day, really at a good pace. We’d run the three miles in twenty-one or twenty-two minutes. Just under eight minutes a mile [Note: when running on his own in 1968, Lee would get his time down to six-and-a half minutes per mile]. So this morning he said to me “We’re going to go five.” I said, “Bruce, I can’t go five. I’m a helluva lot older than you are, and I can’t do five.” He said, “When we get to three, we’ll shift gears and it’s only two more and you’ll do it.” I said “Okay, hell, I’ll go for it.” So we get to three, we go into the fourth mile and I’m okay for three or four minutes, and then I really begin to give out. I’m tired, my heart’s pounding, I can’t go any more and so I say to him, “Bruce if I run any more,” —and we’re still running-“if I run any more I’m liable to have a heart attack and die.” He said, “Then die.” It made me so mad that I went the full five miles. Afterward I went to the shower and then I...

converting videos with ffmpeg

I had to work on some video conversion and I found a good post from the Linux Journal on commands and tips for converting videos. http://www.linuxjournal.com/article/8517 A command example: ffmpeg -i eSeetrackFlash.flv -b 20000k -s 896x536 target_0.7.avi explanation to be continued

adding new source to repository

Just a quick command to add a new source to the repository: sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Interesting quotes !

From Antoine de Saint-Exupery: "A designer knows he has arrived at perfection not when there is no longer anything to add, but when there is no longer anything to take away"