Rails alias_method_chain

I am totally new to Ruby and Rails and, frankly, it all is a little too magical for my tastes. I’m developing a plugin for Redmine at the moment, and I need to wrap the “update” and “create” method for Issues. So I’m using the alias_method_chain to create aliases for method names to specify what I’m doing.. I think… here is some code:  Ruby |  copy code |? 1 2 def self.included(base)3 base.send(:include, InstanceMethods)4 base.class_eval do 5 alias_method_chain :update, :alert_pmxbot [...]

VIM at Novapy

VIM at Novapy

We had a wonderful gathering this past Thursday at Nova Python’s March meetup. Matt showed up with some great information about how he spends his day in VIM, and also talked about a few plugins that he doesn’t use personally. but are popular anyway. According to our comments, people learned a lot. That means, to me at least, the meetup was a success. The official slides are available online at http://www.slideshare.net/majmcdonald/vim-and-python-12038822. You should also scroll through [...]

Recess Framework Quick Tip

Recess Framework Quick Tip

Recess has an apps/ directory to allow you to load several different applications in one Recess instance. I typically don’t follow this pattern in production because I don’t want to restart multiple applications when I make a code update to just one of them. I have several installations of Recess with one application in each install. This does have one problem; APC cache keys. Recess has cache keys in several files: recess/lang/Library.class.php recess/database/pdo/PdoDataSource.class.php bootstrap.php These [...]

Burgers and Beer

A great time was had by all at The Counter this evening. We had an all time high turn out at near 100%! Several new faces joined today as well. Perhaps the time/date change was helpful? Alex was able to make it out from DC. He brought me up to date on Python Packges and the near term plans. pyDanny(original nova Django coordinator) and Audrey made it out from LA. They provided some great insight on Meetups and [...]

NOVA Python January

NOVA Python January

Today’s meetup went pretty well. Kenneth Reitz gave his Python for Humans talk. The main focus (I felt) was on PEP 20′s “There should be one– and preferably only one –obvious way to do it”. The major problem being that new adopters are faced with multiple choices to do everyday things like file system access and web requests. Some of these choices are old (urllib2) and deprecated (easy_install). We discussed Python 3k and its unicode [...]