LinuxDave

Life, Linux and Crazy Videos

Find and Replace multiple Unix/Linux Files

Filed under: Linux — December 21, 2005 @ 4:21 pm

Need to do some substitution on multiple files? Try this command:

find ./ -type f -exec sed -i 's/findme/replacewithme/' {} \;

Dreamhost Promo Code

Filed under: Linux — November 14, 2005 @ 3:10 pm

If you are looking for some excellent linux webhosting, I suggest checking out Dreamhost. They have the best I’ve ever seen!
PHP (4 and 5), perl, RubyOnRails, CGI, MySQL on Debian servers. Doesn’t get much better than that.

Use coupon code LINUXDAVE and you get 50 dollars off ANYTHING.

Check out their plans.

The World’s Population can fit and live within Texas

Filed under: Science Tuesday — October 11, 2005 @ 6:32 am

Welcome to Science Tuesday. Every Tuesday I will (well, I might) post some cool science-related fact.

Here’s a good one:
You probably didn’t know (or care) that the population of the world can live within the state boundaries of Texas.

You don’t believe me?

Proof:

Area in sq miles (Texas) 270,000 square miles

Convert this to square feet: 5280×5280=square feet in a square mile = 28,000,000 square feet in a square mile

Multiply the sq feet per sq mile times the number of square miles in Texas:
28,000,000 x 270,000= 7,560,000,000,000

Divide 7,560,000,000,000 by the population the earth 6,000,000,000
= 1260 sq. feet per person

That is the size of a class room for every person in the world. Brilliant!

This also works that every person in the world can get a 4×4 square and fit in
Rhode Island.

Why would you want to live like this in either of these states? I have no idea. But it is possible!

Philip Glass performs Orion at the Ravinia

Filed under: Life — October 3, 2005 @ 10:17 pm

This summer, I got a chance to see the American premiere of Philip Glass’ “Orion”.

This event was hosted at the beautiful Ravinia:

The concert was wonderful. There were more instruments that I couldn’t name than ones I could present. I even got Philip Glass to sign a CD for me!

Check out all this pics from my trip to Ravinia in Chicago.

CVS Server Setup Made Simple

Filed under: Linux — September 17, 2005 @ 1:12 pm

CVS, or the Concurrent Versioning System, allows groups of people (mostly developers) the ability to maintain and document changes in code for shared projects.

If you don’t have time to read the large, but well written CVS Admin Manual, and aren’t jumping on the Subversion bandwagon quite yet, try these simple steps to get going in cvs securely over ssh:

  1. First, set up all the user ssh accounts, if they are not added already.
  2. Now, lets add the directory (as root, of course) for our cvs repository:

    mkdir /w/cvs
    chmod 2770 /w/cvs

  3. Add the cvs group and give that dir to them:

    groupadd cvs
    chown root:cvs /w/cvs
    cvs -d /w/cvs init

  4. We will need to set the CVS_UMASK for each user as such in the shell of the remote machine they’ll be using CVS from, and set the CVS_RSH to ssh :

    export CVS_UMASK=002
    export CVS_RSH=ssh

    Now Set the CVSROOT:

    export CVSROOT=:ext:username@hostname:/w/cvs

  5. If desirable, research ssh-agent/ssh-keygen and use keys for passwordless authentication.
  6. That’s it! Lets add a project:

    cd /home/user/someproject
    cvs -d /w/cvs import -m "New Project Import" project someproject release

    The -m will add the “New Project Import” as a comment to your action. You can view these by doing this:

    cvs -l somefile

I’ve used cvs for a number of years. Here are some tips that I wish someone would have told me when I started:

  • cvs update on a regular basis. Do it before you start working on ANYTHING. It will save you the headache of merging code at some point.
  • Leave accurate log comments. You will need them down the road, when you don’t remember what you were thinking when you changed some bit of code.
  • Double-check your permissions on the cvs directories. You don’t need those getting messed up by a user who doesn’t know what he/she is doing.
  • Make sure backups are happening. You should be backing your repository every night.
  • Make sure the disk doesn’t fill up! Repositories can get big in a hurry.
  • Want to view your repository over the web? Check out viewcvs or cvsweb.

Chu Chu Rockets Commercial

Filed under: Crazy Videos — September 15, 2005 @ 10:01 pm

Chu Chu Rockets Commercial VideoHere is a crazy video of a crazy game. Chu Chu Rocket for Dreamcast. It WILL make your mind bleed.

I present to you, the Chu Chu Rockets lyrics:
ChuuChuu Roketto!
Nezumi wo tasukeru
ChuuChuu Roketto!
Neko wa kowai
ChuuChuu Roketto!
Roketto sugoi
Zu ba ba ba ba!!

Chu Chu Rockets Commercial 1.86MB

Hey Ya Charlie Brown Video

Filed under: Crazy Videos — September 15, 2005 @ 9:18 pm

Hey Ya Charlie Brown! Hey Ya Charlie Brown

Shake it.
Shake it.
Shake it like a Polaroid picture!
Charlie Brown, Snoopy and the rest of the Peanuts gang dances to Hey Ya! by Outkast.

Hey Ya Charlie Brown Video ~8MB