Articles by Chris Janton

You are currently browsing Chris Janton’s articles.

PHPmac – The Largest Online Resource Totally Dedicated to Mac Users of PHP

The mod_gzip module for Apache will compress the pages as it sends them. Of course, it will only do this if the browser that your audience is using is compatible.

Make this file in your home directory – call it “term_banner”

#!/bin/sh
echo -ne “\033]0;$1\007″

make sure that the file is protected by a
chmod +x term_banner

now add this alias to your .bash_profile -

alias termb=~/term_banner

now invoke it like this

termb “Some Title”

Here’s the VMS command procedure that you want…

$ esc[0,8]=27
$ bell[0,8]=7
$ write sys$output “”esc’]0;”p1”’bell’”

Remember the first argument to the command is used – enclose it in quotes.
so like this

@term_banner “”F$getjpi(0,”USERNAME”)’ – ”F$TRNLNM(“SYS$NODE”)’”

Many people may be familiar with the su UNIX command and its sibling sudo. This allows a user to do stuff as the “root user.” However, the su command can also be used to change the identity of a user (and thus have access t… [Mac OS X Hints]

That Control-click pop-up menu containing …”Copy HTML with Attribution” — th [NetNewsWire]

afp: technical: Serving – Postfix with SASL and TLS

This article will walk you through installing an updated version of Postfix on Mac OS X 10.3 (Panther), complete with SASL and TLS support which uses system logins for authentication. If you prefer to see this as wide as possible, check out this expanding version with larger fonts, just for Wietse.

MacDevCenter.com: Tapping RSS with Shell Scripts [Mar. 12, 2004]

To look at it from within the Terminal, I’m going to utilize the powerful curl application, piping the output to head to ensure that I’m not drowned in output:

Actually has some good examples of “sed”.

I’m running an older PowerBook, one that has the capabilities to run GarageBand but (thanks to my burgeoning music collection) not the required 1.2+ GB of disk space. I wanted to install GarageBand on an external drive, loop… [Mac OS X Hints]

Open Source Developer Technology Center

Bookmark this page for technical information about the use of open source tools and languages in conjunction with Oracle.

What’s New

The Hitchhiker’s Guide to PHP

Setting Up Oracle and PHP on Mac OS X

If you are a developer who works with Oracle applications and has been itching for an alternative to Windows or Linux—or if you are an experienced OS X user and are looking at basing your next project on Oracle—this article is for you. It assumes that you are comfortable working in the shell environment and have a working installation of OS X 10.3 (Panther) or 10.2 (Jaguar), including the developer tools and an administrator account.

for bash with GLTerm and/or Apple Terminal

Please note – this doesn’t work on windows that are connected via SSH, but the prompt seems to work properly.

I just use the alias term_banner to get the window name changed.

alias term_banner='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'

case "$TERM_PROGRAM" in
    Apple_Terminal)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
    export PS1='\! \$ '
    ;;
    GLterm)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
    export PS1='\! \$ '
    ;;
    *)
    export PS1='\u@\h:\W:\! \$ '
    ;;
esac

That’s in .bash_profile for any that care.

« Older entries