CommonThread

Displaying articles with tag

HAML Broke My Textmate Footnotes

Posted by ben, Sat Jul 28 20:19:00 UTC 2007

I recently installed HAML to give it a try and noticed that on HAML pages my Texmate Footnotes weren’t showing up. If you are anything like me you are not quite sure how you made it before the Textmate Footnotes Plugin. That might be a stretch but at least you really like them and wish that they would show up on your HAML pages. I found an easy way to patch the footnotes plugin so that it runs for HAML pages as well.

open /vendor/plugins/footnotes/lib/textmate_footnotes.rb and change out the section in the add_footnotes! method that checks the file types … [“rhtml”, “rxhtml”] ... to include HAML ... [“rhtml”, “rxhtml”, “haml”]

Then restart script/server and you are in business

1 comment | Filed Under: | Tags:

Where Did I Leave That Mongrel?

Posted by ben, Thu Jun 07 23:16:00 UTC 2007

If you have used mongrel long enough you may have noticed that mongrel can leave behind orphaned PID files. making it hard to restart mongrel until you clean up the PID files. Someone was nice enough to create a patch for this. it patches the mongrel_rails script to check for orphaned PID files and delete them so that mongrel can start properly.

To apply the patch …
  1. download mongrel_stale_pid_file.patch to the server
  2. cd to the mongrel folder … usually /usr/lib/ruby/gems/1.8/gems/mongrel-XXX (where XXX is the version)
  3. run …
    patch -p0 < /path/to/mongrel_stale_pid_file.patch

IF YOU ARE RUNNING SWIFTIPLY YOU NEED TO DO ONE MORE THING

If you are running swiftiply it runs it own version of the mongrel_rails executable. So, it will need to be patched as well. Simply repeat steps 2 & 3 from above but from the swiftiply folder … usually /usr/lib/ruby/gems/1.8/gems/swiftiply-XXX (where XXX is the version)

0 comments | Filed Under: | Tags:

Categories