SpicyCode

The ramblings of Chad Humphries

Languages of Interest

I’ve been tinkering with a lot of other languages recently, here are a few of them.  What languages are you looking at?

ROCamlLisp, and IO

Advertisements

Written by spicycode

April 28, 2008 at 6:48 pm

Posted in programming

Standing up: 100% complete

Recently I decided to try a stand up desk again.  I’ve used one a few jobs previous where I had to assemble all manor of electronic devices and rather liked it.   At home this has the duel benefit of keeping me focused, and keeping my son out of my computer equipment.

I’ll keep you up to date with how it goes.  I’m interested to see how standing at home and sitting at work compare with regards to comfort.

Written by spicycode

April 28, 2008 at 5:49 pm

Posted in misc

Revisiting the documentation project

I was up late last night and I ended up at the caboo.se rdoc project again. In case you haven’t heard caboo.se is running a documentation drive for rails.

They have a site up at rdoc.caboo.se that allows you to view the rails docs and submit documentation changes inline.

Take 20 minutes one day and see if there is something you can help improve the documentation for. It’s one easy way we can all give back to the community.

Written by spicycode

February 17, 2008 at 6:01 pm

Posted in programming

Tagged with ,

bashing around the old shell prompt

Digging about the interwebs I discovered many a interesting thing about bash. (Note: Bash junkies and long time users will wince as these are probably nigh ancient widely known bits of knowledge).

Flip the Last Two Characters (from bashhelp)

If you type like me your fingers spit characters out in the wrong order on occasion. ctrl-t swaps the order that the last two character appear in.

Searching Bash History (from bashhelp)

As you enter commands at the CLI they are saved in a file ~./.bash_history. From the bash prompt you can browse the most recently used commands through the least recently used commands by pressing the up arrow. Pressing the down arrow does the opposite.

If you have entered a command a long time ago and need to execute it again you can search for it. Type the command ‘ctrl-r’ and enter the text you want to search for.

Lists Using { and } (from bashhelp)

The characters { and } allow for list creation. In other words you can have a command be executed on each item in the list. This is perhaps best explained with examples:

# This will create/modify the files temp1, temp2, temp3, and temp4 and as 
# in the example below when the files share common parts of the name you can do:
$ touch {temp1,temp2,temp3,temp4} 
# This will move all four of the files into a directory foobar.
$ mv temp{1,2,3,4} ./foobar/ 

Aliases (from bashhelp)

To see what aliases are currently active, simply type alias at the command prompt and all active aliases will be listed. To “disable” an alias type unalias followed by the alias name.

Bash Completion (from bashhelp) Basic completion will work in any bash shell. It allows for completion of:

  1. File Names
  2. Directory Names
  3. Executable Names
  4. User Names (when they are prefixed with a ~)
  5. Host Names (when they are prefixed with a @)
  6. Variable Names (when they are prefixed with a $)

A rather hodge-podge extraction of bash tidbits but I found them very, very useful.

Written by spicycode

January 27, 2008 at 6:23 pm

Posted in programming

Tagged with

Updates to pih

A few minor updates to programming is hard. I’ve had these on the hard drive for a while, and with my machine going in for repair I’ve deployed the changes prior to being without a computer.

  1. Tag split/restore on comma is fixed for some update situations
  2. Caching updated for rss feeds
  3. CSS fixed for readability on Safari
  4. Minor speed/performance enhancements
  5. Invalid url handling resolved
  6. Display of source url in code list and detail view

Written by spicycode

December 29, 2007 at 6:25 pm

Posted in misc

Tagged with

Installing subversion

I was installing subversion a few days back via MacPorts and I noticed the description.

subversion: A cvs like version control system, but without the suck.

Written by spicycode

December 28, 2007 at 6:27 pm

Posted in programming

Tagged with

Hiding /opt from Finder

Simple way via the command line:

sudo SetFile -a V /opt killall Finder

Written by spicycode

December 4, 2007 at 6:49 pm

Posted in osx

Tagged with