Check what services are accepting network connections

This network statistics command is your friend; e.g., $ netstat -tnlp (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:1521 0.0.0.0:* LISTEN - tcp 0 0 0.

OCIEnvNlsCreate() failed again

I encountered OCIEnvNlsCreate() failed again, this time on Fedora 12. I was looking for that same file to export environment variables – Apache’s SetEnv directive does not work – and there is no equivalent of /etc/apache2/envvars as far as I can tell. Many others seem to have encountered this same problem before, but never found the solution. Eventually I did, in an Oracle-hosted article about Oracle, PHP and Linux. It’s not called out explicitly, so here’s my go at it: insert the call to oracle_env.

Using grep with Subversion

I use grep alot, but it false positives when searching in a Subversion working copy. So I’m using the -r flag to recursively search for the phrase quick brown fox: $ grep -r 'quick brown fox' * app/controllers/users_controller.php: quick brown fox app/controllers/.svn/text-base/users_controller.php.svn-base: quick brown fox I don’t really want a hit on anything in .svn, so exclude it like --exclude-dir=.svn.

Corwin of Amber on Progress

Opened up a terminal window today, and I so enjoyed this one: ________________________________________ ( Steady movement is more important than ) ( speed, much of the time. So long as ) ( there is a regular progression of ) ( stimuli to get your mental hooks into, ) ( there is room for lateral movement. ) ( Once this begins, its rate is a matter ) ( of discretion. ) ( ) ( -- Corwin, Prince of Amber ) ----------------------------------------

Creating a branch in Subversion

Beginning at the root of your repository: svn mkdir branches/wayne cd branches/wayne svn merge http://your.subversion.server/projectName/trunk svn ci -m 'Issuing "svn merge http://your.subversion.server/projectName/trunk".'

Changing hostname

When /etc/hostname is updated, be sure to follow suit in the default tnsnames.ora and listener.ora. Mine were in: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin Otherwise you’ll get an ORA-12541 error.