One Line Fix for Terminal.app

Anybody that uses Terminal.app on Mac OS to regularly connect to Linux servers — particularly those that use screen — will be aware of the issues with backspace. The following terminal one liner seems to resolve the issues:

$ defaults write com.apple.Terminal TermCapString xterm

 Comments (0)

Move to Linode

I’ve just moved this website over to a Linode VPS. The experience so far has been brilliant. The Linode control panel is excellent and provides all the facilities you could possibly need. I’d decided to move from shared hosting as I felt I was beginning to outgrow it. I needed more flexibility and what better way to get that flexibility than with a virtual machine!

 Comments (0)

Automatic Screen for SSH Login

Add the following to the end of your ~/.bashrc file and you’ll always be in a screen session when you SSH into your box.

#======================================================================
# Auto-screen invocation. see: http://taint.org/wk/RemoteLoginAutoScreen
# if we're coming from a remote SSH connection, in an interactive session
# then automatically put us into a screen(1) session.   Only try once
# -- if $STARTED_SCREEN is set, don't try it again, to avoid looping
# if screen fails for some reason.
if [ "$PS1" != "" -a "${STARTED_SCREEN:-x}" = x -a "${SSH_TTY:-x}" != x ]
then
    STARTED_SCREEN=1 ; export STARTED_SCREEN
    [ -d $HOME/lib/screen-logs ] || mkdir -p $HOME/lib/screen-logs
    sleep 1
    screen -x && clear && exit 0
    if [ "$?" != "0" ]; then
        screen && clear && exit 0
    fi
    # normally, execution of this rc script ends here...
    echo "Screen failed! continuing with normal bash startup"
fi
# [end of auto-screen snippet]
# ======================================================================

Replace screen with byobu if you use that.

Remember to use ^a-d to disconnect from your SSH session.

 Comments (0)

Record Companies want Apple to pay for 30 second previews

This is further proof that the big record companies simply don’t get it:

“(On iTunes), you can stream radio, and you can preview tracks, things that we should be getting paid performance income for.”

—David Renzer, CEO Universal Music Publishing Group

 Comments (0)

VanadiumJS

VanadiumJS is a rather nice, easy to use javascript validation library for HTML forms. Using it is as simple as including the .js file (and jQuery) and adding classes to your inputs.

 

← Previous  1 2 3 4 … 22 Next →

Twitter

Pages