Knowledge and references to share

Part of what I plan to share here are tips and tricks that apply to various systems.

  • “You can’t parse [X]HTML with regex.” descent into madness.

    I’m quoting the original answer below, just in case stack overflow ever disappears. https://stackoverflow.com/a/1732454 You can’t parse [X]HTML with regex. Because HTML can’t be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of…

  • Falsehoods Programmers Believe

    I like to post about things I have found, and then found interesting enough to share with coworkers. This is one of them. Especially since we are software developers and have to deal with implementing these assumptions. This is the one that started it: https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/ And this one is a collection of other lists: https://github.com/kdeldycke/awesome-falsehood

  • WSH JScript embedded in Batch file

  • Bast: Bash & Windows Batch in same file

  • PUSHD – ? Batch Tip

    There is one annoying limitation to the cmd.exe command line interperter bundled with Windows. That program refuses to have a UNC path as a current directory. There are a pair of command you can use to get around this. Those commands are PUSHD and

  • Setlocal – First Batch Tip

    I have several batch file tips to share. The first one deals with setlocal.  This command will give you a context in which you can change environment variables without worrying about what they should be after your batch file. All you need to do is call setlocal at the beginning of your batch file and…

  • Dropbox

    I’ve started using Dropbox to manage keep my desktop and laptop in sync.  The desktop is Windows and the laptop is Arch Linux.  So far, I have used it for documents and Portable Applications.  I’m considering using it as a central repository for the git version control program.  One of the nice things I have…

  • Deleting a locked file

    I was deleting a Cygwin installation and the folder was locked for some reasons.  So I went in and deleted each folder in the Cygwin folder.  All of those I deleted successfully.  However, the root Cygwin folder was still locked.  I found the program File & Folder Unlocker and that worked well.

Leave a comment