Wolfmans Howlings

A programmers Blog about Programming solutions and a few other issues

New merb based blog

Posted by Jim Morris on Tue Jan 13 23:33:26 -0800 2009

I just replaced the blog engine I was using (an older version of Typo) with a custom one I just wrote in Merb. It should look identical to the old typo based blog, as I used the same theme.

Hopefully I imported the data correctly so all old article url's that are scattered all over will still bring up the correct article and the RSS feeds should continue to work.

... Show more ...

Posted in Ruby,Merb  |  Tags merb,sequel  |  3 comments

a Capistrano scm module for local SVN access

Posted by Jim Morris on Wed Dec 06 21:42:05 -0800 2006

UPDATE 2007-06-09 This method has been deprecated in Cap 2.0.

UPDATE 2007-02-21 I have updated the files to correctly update revisions.log

... Show more ...

Posted in Rails,Ruby  |  Tags capistrano,subversion  |  26 comments

JEdit Ruby/Rails Snippets or superabbrevs

Posted by Jim Morris on Fri Nov 24 19:05:52 -0800 2006

I imported the rest of the Textmate ruby and rails snippets I had to combine them into the one ruby file though.

I have added about 80 new ones to the existing ones by Scott Becker that I found here

... Show more ...

Posted in JEdit,Rails,Ruby  |  Tags ruby,rails,jedit,snippets,superabbrevs  |  8 comments

JEdit - Textmate for the rest of us?

Posted by Jim Morris on Tue Nov 21 23:20:07 -0800 2006

OK after expounding on how much I like Epsilon as an editor, I finally hit a wall with it. I wanted tabs of the currently open files, and it simply does not provide that facility yet. (I know all modern editors do!). On X11 (IE Linux and OS/X) Epsilon is not really a graphical app, it does open an X11 window, but within it most dialogs and lists (like buffer lists etc) are text, a little like a curses app. The advantage is it opens really fast, and loads huge files pretty fast. The downside is you don't get all those nice windowing facilities like movable pop-up windows, dialogs, trees and tabs!

So after hearing so much about JEdit, I bit the bullet and gave it a whirl. Following the instructions from a number of blogs (too numerous to mention) I installed it on my KUbuntu Linux box, with all the plugins people recommend, and of course the Ruby plugin and SupperAbbrevs (The beta version), so I have my snippets!

... Show more ...

Posted in JEdit,Rails,Ruby  |  Tags ruby,rails,jedit,textmate  |  6 comments

Epsilon Programmers Editor

Posted by Jim Morris on Sat Sep 30 17:20:15 -0700 2006

I use Lugarus excellent Epsilon Editor for most of my programming editing needs, on Win32 and Linux.

(An exception is for Java programming where I use Eclipse).

... Show more ...

Posted in Linux,Rails,Ruby  |  Tags ide,ruby,rails,epsilon,editor  |  1 comments

Using Ruby SVN bindings to get file status

Posted by Jim Morris on Mon Sep 04 11:51:35 -0700 2006

If you Google around for information or even some documentation on the ruby SVN bindings you will find plenty of comments that it simply is not documented, so when I wanted to add an SVN status check to a UI I was working on (a project browser window for Rails), I had to "Use the source Luke". However given the bindings are actually mostly automatically generated by SWIG, and the actual details are hidden in a goo of swig generated c code, even that was a challenge.

Eventually I realized that the API was almost identical to the c level subversion API, not surprisingly, and for the most part it works the way you would expect. However I could not find any examples of the client status call, so here it is for anyone else struggling with this issue.

... Show more ...

Posted in Ruby,svn  |  Tags ruby,subversion,svn,rubysvn  |  3 comments

Experiences with Komodo Pro and Ruby

Posted by Jim Morris on Wed Aug 09 22:39:06 -0700 2006

I got a license for Komodo Pro, (Komodo-Professional-3.5.3-262321-linux-libcpp5-x86) and started trying to use it, I have the latest KUbuntu, with GTK installed so I had no problems installing Komodo as far as libraries and requirements were concerned, however running it had me stumped, I ran into immediate problems (some of my own making I'll admit).

First I saw a stream of errors on the screen, they didn't seem fatal but are annoying, for instance...

... Show more ...

Posted in Rails,Ruby  |  Tags komodo,ide,ruby,rails,editors,epsilon  |  1 comments

metaWeblog api in typo fails on some posts

Posted by Jim Morris on Sat Jun 03 23:32:02 -0700 2006

I was using a ruby script to post my blogs from the command line, and it used the xmlrpc/client which would occasionally fail with this error...

/usr/local/lib/ruby/1.8/xmlrpc/client.rb:546:in `do_rpc': HTTP-Error: 500 Internal Server Error  (RuntimeError)
    from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:420:in `call2'
    from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:410:in `call'
    from send2blog.rb:103
... Show more ...

Posted in Rails,Ruby  |  Tags typo,metaweblog  |  1 comments

Capistrano deploy from local repository

Posted by Jim Morris on Fri May 26 17:08:00 -0700 2006

UPDATE 2006-12-06 I have replaced this with a full blown SCM module that works much better, see this posting

... Show more ...

Posted in Rails,Ruby  |  Tags ruby,rails,capistrano,deployment  |  no comments

Howto format ruby code for blogs

Posted by Jim Morris on Fri May 26 00:14:00 -0700 2006

How do I get that nice formatted ruby code inline?

Well if you are on typo trunk use this...

<typo:code lang="ruby">
   ...ruby code...
</typo:code>
... Show more ...

Posted in Ruby  |  Tags ruby,syntax,highlighting  |  10 comments