Welcome to my website. I am always posting links to photo albums, art, technology and other creations. Everything that you will see on my numerous personal sites is powered by the formVistaTM Website Management Engine.

icon.linkedin.jpgicon.twitter.jpg

  • Subscribe to this RSS Feed
  • How to search for a string in a group of text files from the Linux command line
    07/03/2009 8:29PM

    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' -sl

  • How to ignore a file for inclusion in an SVN repository
    07/03/2009 8:24PM

    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 (SVN_EDITOR, EDITOR)
    
    # Add the following value with a new line, save, and exit:
    *.txt
    
    # See that things worked
    svn propget svn:ignore .    # So you can see the properties
    svn status --no-ignore      # You should see an 'I' next to the ignored files
    
    # Commit
    svn commit -m "New Ignores" # You must commit the new property change
    
    
    # ---------------------------------------------------------------------
    #     Ignore a single file secret.txt in the /trunk/ directory
    # ---------------------------------------------------------------------
    
    # Go to the directory
    cd trunk/
    
    # Add just the single file to the current directories ignore list (like above)
    # Note the dot at the end of the command is important
    svn propset svn:ignore secret.txt .
    
    # See that things worked
    svn propget svn:ignore .    # Notice the single file was added to the list
    svn status --no-ignore      # You should see an 'I' next to the ignored files
    
    # Commit
    svn commit -m "Its secret"  # You must commit the new property change
    
  • How to shutdown a Windows XP machine when logged in remotely
    07/03/2009 8:22PM

    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 0

  • ASP .NET Script to Render Selected and Unselected Links Depending on Which Page You are Viewing
    06/16/2009 11:14AM
    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.
    Attachment: nbi_asp_navigation.zip 9714 bytes
  • 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?
    06/12/2009 10:54PM
    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.
Advanced Search

Categories

Archives