Quick HowTo Create a Subversion Repository

This assumes that you are creating the repo on your local drive.

First, create the directory in which you’ll store your repo.

Then, use svnadmin to create the repository in that directory:

svnadmin create /path/to/directory/

The typical convention is to set up an initial directory structure as follows:

/trunk

/branches

/tags

To do so, do the following:

mkdir svntemp

cd svntemp

mkdir trunk branches tags

svn import -m ‘Import of initial directory structure’ file:///path/to/repo

Now cd to whatever working directory → Continue reading “Quick HowTo Create a Subversion Repository”

Launch Your New or Updated Website Early and Update it Often

When designing and developing a new website it is tempting to try to do everything before launching it. My recommendation is to launch your new or updated site early and then make regular, incremental updates.

A good website is never finished; you are always making updates/changes/revisions to it. If you build your site on a flexible framework, one with an easy-to-use content management system, then it makes it that much easier to go back on a regular basis → Continue reading “Launch Your New or Updated Website Early and Update it Often”

CSS Styling for the HTML Superscript Tag

Anyone who has used it knows that the default styling for the HTML <sup> tag leaves a lot to be desired.  The biggest is that it modifies the line-height of the line on which it it rendered.

Here is some CSS that fixes that behavior:

sup
    {
    height: 0;
    line-height: 1px;
    position: relative;
    top: -0.6em;
    vertical-align: baseline !important;
    vertical-align: bottom;
    }
Continue reading “CSS Styling for the HTML Superscript Tag”

How to search for a string in a group of text files from the Linux command line

If you have ever wanted to recursively search through all of the files in a directory for a specific string, here is the bash command to do it:

find . | xargs grep ‘string’ -slContinue reading “How to search for a string in a group of text files from the Linux command line”

How to ignore a file for inclusion in an SVN repository

Here is a link to a great article that explains how to set your SVN repository to ignore a file, or collection of files.

Below is the mirrored content should the page no longer be available.

# ---------------------------------------------------------------------
#      Ignore all the .txt files in the /trunk/Blah/ directory
# ---------------------------------------------------------------------

# Go to the directory
cd trunk/Blah/              # The directory with the files

# Start editing the properties for the current directory
svn propedit svn:ignore .   # Opens an editor 
Continue reading “How to ignore a file for inclusion in an SVN repository”

How to shutdown a Windows XP machine when logged in remotely

If you have ever used a workstation whereby you login through remote access, you’ll notice that you cannot shut down the machine (even if you are able to boot it remotely).

If you want to shut it down simply run the following command at a command prompt:

%systemroot%system32shutdown.exe -s -t 0Continue reading “How to shutdown a Windows XP machine when logged in remotely”

ASP .NET Script to Render Selected and Unselected Links Depending on Which Page You are Viewing

Attached is a .zip file that contains the source code and a set of example web pages that will allow you to dynamically render links (or any html tag for that matter) with one of two classes depending on which page you are viewing

It gives you the ability to render nav bars that display items as selected and unselected.→ Continue reading “ASP .NET Script to Render Selected and Unselected Links Depending on Which Page You are Viewing”

Why does the overflow: auto setting on a div nested in a table cell not render the scroll bars properly in IE 6, IE 7, and Firefox 2 and Firefox 3?

If you have ever seen Firefox 2 and 3, IE 6 and/or IE 7 render the scroll bars on a div that has the overflow: auto property set what follows is a full description of the problem and a solution.

Click here for said solution.Continue reading “Why does the overflow: auto setting on a div nested in a table cell not render the scroll bars properly in IE 6, IE 7, and Firefox 2 and Firefox 3?”