I’ve previously written that I want a system that can handle multiple authentication sources. After hammering on it a bit, there are some pitfalls that exist with this kind of scenario.
Textmate ERB <%= and <% Different Hightlighting
I can’t be the only person that has run into the accidental no-output from erb tags. Let’s use textmate’s syntax highlighting to solve this problem (or at least make it less obnoxious).
Rails 2.0 Command-line Shortcuts
I just ran across a little confusion with Rails 2 command-line shortcuts. It was while I was teaching a co-worker how to use them. Let’s see how things can be a little confusing…
Terminal Colors in OSX (Dark Blue Madness Fix)
Editor Note: Just use iTerm. It works great.
This is posted in other places, but I want to make sure that it doesn’t get lost to the wilds of the interwebs.
The default black background themes in Terminal suck if you are doing ANSI colors in the terminal. I like colors in the term, but the dark-blue is aneurysm inducing. So, after futzing with the defaults a bunch, I decided to see if the internet had any solutions. By his noodlyness, they did.
Problem With Four Days on Rails
I am working with a new developer who has Ruby experience, but no Rails experience. I pointed him at the Rails site and told him to run though some of the tutorials. I was surprised that the Four Days on Rails tutorial had such a weird introduction to database stuff.
Mercurial, Apache2 and Mod_rewrite
So, as previously mentioned, I had gotten mercurial working in Redmine, but I was having trouble getting mercurial to work with apache2. Part of the issue is that unlike most webserver environments, most RoR Apache2 -> Mongrel Cluster (Let’s call this RAM from now on) setups are using mod_rewrite and mod_proxy to do URL jujitsu. This can (and did) cause a bit of problem for me.
Mephisto Mongrel Cluster (Continued)
So, in regards to “this problem”:http://pol.llovet.name/2008/3/28/mephisto-mongrel-cluster-stops-responding, the server hasn’t frozen in 10 hours or so, problem solved?
Redmine and Mercurial
I was setting up a Mercurial repo for Redmine today. As it turns out, Redmine chokes on initial repositories. After creating a single file and checking it in as an “initial commit” ( I just touched the .hgignore file), it worked just fine.
I am, however, having trouble getting apache2+mercurial to work happily. For some reason, the hgwebdir.cgi script isn’t being run, it’s just spitting out the text.
Mephisto Mongrel Cluster Stops Responding
So, this site has only been up for a couple days, but I’ve had to restart the mongrel cluster twice. Interestingly, it doesn’t respond to a mongrel_rails cluster::restart, I have to do a cluster::stop, then a start to get it back up. Then it works fine for a while.
User Authentication and Authorization in Ruby on Rails
The system I am working on needs a good authentication (authn) and authorization (authz) system. So far, I can’t find anything that would work for me, so it looks like I’ll have to build one.
