Monthly Archives: October 2006

SAMBA Server and Ubuntu

Install SAMBA Server on Ubuntu Server with the following command:

sudo apt-get install samba smbfs

Next, we need to set up the share in /etc/samba/smb.conf:

[global]
hosts allow 192.168.0 #allows everyone in my house to access all the shares

[share]
comment = My Test Share
writeable = no
locking = no
path = /share/
public = yes

Next we need to add smb users, which are already existing users on the linux box:

sudo adduser joe
sudo smbpasswd joe

Finally, (re)start the server:

sudo /etc/init.d/samba start|restart

CVS and Ubuntu (and some WordPress weirdness)

Managing users/groups for CVS. Here’s how to allow user joe to modify code in a CVS directory. Depending on how your permissions were set up, the following commands may or may not have to be run with sudo.

First, we need to create a group dev that will eventually have rw access to the CVS directory:

groupadd dev

Then, we need to add user joe to the dev group:

usermod -G dev -a joe

The -G flag adds joe to the dev group, while the -a flag assures that joe retains his original group as well. Without the -a flag, joe would only be a member of dev, erasing his previous group.

Then, change the group ownership of the target directory, in our case /cvs/test/:

chgrp -R dev /cvs/test/

Finally, add group rwx permissions for the dev group:

c hmod 774 -R /cvs/test/

Note: Apparently, WordPress does not allow me to publish the word “ch”+”mod” as one word. A page comes up with “An appropriate representation of the requested resource /wp-admin/post.php could not be found on this server.” and of course all my work is gone.

In any case, in the last line above, the “c” and the “hmod” should be one word.

Things Every REAL Man Should Do Before He Dies

I found a link today describing “Things that every man should do before he dies.”

Needless to say, I was very disappointed because the list seems to have been written by editors of Stuff or Maxim, and let’s face it, every one of us has done at least 4 or 5 things on this list multiple times.
To this, I answer with my own list of Things Every REAL Man Should Do Before He Dies

Continue reading

Scrubs

It’s been probably more than five years since I’ve been addicted to a TV show (no, the NBA and WC2006 does not count). I’ve been able to take great pride in the fact that I seldom watch TV. I basked in my snobbishness. Until now.

Scrubs is one refreshingly funny TV sitcom. What it lacks in canned laughter, it more than makes up for in its weird sense of humor, oddball characters, and relatively realistic plot lines. It also helps that one of the main doctors played the character of Bob Slydell from Office Space (you know, the Michael Bolton fan who admires Bolton’s version of When a Man Loves a Woman) portraying a world-class jerk with a soft heart.

This show is a funny take on the entire field of medicine, but not as dark as House — another one of my favorites.  Since I got the DVR, it has been an endless barrage of Scrubs. O, waiting-for-a-show-feeling, how have I missed you!

MySQL Notes

The following in MySQL:

describe <table_name>;

is the same as MSSQL’s:

select * from information_schema.columns where table_name='<table_name>';

How do you drop an unnamed constraint (in this case a primary key) from a table in MS SQL? After two hours of searching? The answer:

First, find the constraint name using

select * from information_schema.CONSTRAINT_COLUMN_USAGE;

Then, simply:

alter table table_name drop constraint constraint_name;

THEN, to add a new primary key

alter table table_name add new_column int identity(1,1) primary key not null;