Posts tagged Rails

Mar11

Bloggy Blog

BigNerdRanch Merb Rails Ruby TechStuff simplelog | comments

I spent the last week playing with Mephisto (a Rails blogging engine turned CMS). I thought it would be a good platform for a site that I may be about to work on.

I spent the last week fighting with Mephisto trying to get it to behave the way I want it to work in production on my host.

Continue reading »

Feb03

Upgrading Rails (2.0.2 to 2.1.2 to 2.2.2) - Lessons Learned

Rails TechStuff | comments

We have an app that I upgraded to 2.0 during it’s infancy about a year ago. Since then 2 versions have been released (2.1.x and 2.2.x) and a third one is looming on the horizon (2.3).

I read a blog post that recommended upgrading to 2.1.2 en route to 2.2. That way you could see what messages you get about things that will be deprecated. I chose this route.

Continue reading »

Nov02

So, Merb. What's That All About?

Rails Ruby BigNerdRanch TechStuff | comments

I am poking around a little with a second framework for ruby. I’ve spent the last year working in Ruby on Rails, and I really enjoy it. A couple of my classmates from the Big Nerd Ranch have been playing with a new framework called Merb. It looks interesting, and I think it will help me be a better programmer all around - better at Rails, too.

Continue reading »

Oct25

The Year Of Ruby

NonTech Ruby TechStuff BigNerdRanch Rails | comments

This past week marked an anniversary for me. We are in the midst of launching a massive project at work, and on October 22, 2007 I made a binder to help with testing this big system. Around that same time my coworker convinced (tricked?) me to learn ruby.

Continue reading »

Sep14

I heart ruby-prof

Ruby Rails TechStuff | comments

I learned something else at the Lone Star Ruby Conference that I was just able to put to use.

First, some background…

I am using the built-in object serialization that Rails provides to marshal a whole bunch of objects while the app waits for the user’s confirmation to proceed. The objects are then read back and reconstituted. It’s really slick how it works. The objects are serialized in YAML format in the database. The database that I am using in this app is Sybase, and the data row cannot exceed 32k, so I was looking to make sure the yamilfied objects didn’t get over that size threshold.

Continue reading »

Sep09

Rails Bulk Data Insert

TechStuff Rails | comments

I just got back from the Lone Star Ruby Conference. It was really good, and I picked up some nice bits that I was able to work into a rails app for work during periods of downtime at the conference.

Continue reading »

Jul10

Marshal Ruby Objects With YAML

Rails TechStuff | comments

I found a lot of documentation that told me how to put an object into a YAML file. In my particular case I am reading through a file that needs to create or update a lot of things. I show the user what’s about to happen and give them 1 last chance to back out.

Continue reading »

Jul09

Conferences

Rails TechStuff | comments

I work for a market research company that is also a part of AOL (which is also a part of Time Warner). Our stock price is not awesome right now, either.

So I went to an industry “technology” conference in NYC a week or two ago. It was really just an excuse for the industry organization to bilk some cash out of our companies. The content was really light, and I was disappointed to see that the ratio of legit “tech” people to “brass” people was terribly skewed in the executives’ favor.

Continue reading »

May31

iTunes Now Playing

TechStuff Rails Apple | comments

I’ve wanted to include a little blog candy for a while, and this weekend I made it happen. I like how you can see what’s playing on my iTunes in iChat or AIM (Adium actually). I wanted to do the same thing on my blog.

Continue reading »

May28

Mongrel And Site Stats

DreamHost Rails TechStuff | comments

I recently got a VPS with Dreamhost, and am now serving this blog with 1 mongrel rather than a handful of FastCGI processes. So far the default out of the box DH config is doing me right. This blog doesn’t see a firehose of traffic. Yet.

Continue reading »

May17

VPS Baby (Cacheing Is Cool)

DreamHost Rails TechStuff | comments

I am on my Dreamhost VPS now. I can see how heavy Apache or a Rails app is as I monitor my memory usage with top. I have a handful of rails apps running on my VPS, and I am more mindful of these sorts of things all of the sudden. I think I may have been one of those jackasses sucking down the shared host resources…. Sorry other people on lara.

Continue reading »

May11

Random Bits

DreamHost TechStuff Rails | comments

I don’t have anything mind-blowing to share, but I have been busy with a lot of random things.

At work we’re still working on this phat rails project. It’s a support application for an even bigger project. Most recently we cobbled together an image server that serves images via Tomcat (which is what the primary application is server through) using an HTTP request. Why did we do this? Because Apache modrewrite is not our idea of fun. The rails app takes the images and thumbifies them in real time using RMagick (rails ImageMagick). I’ll then use a lightbox plugin to show the full image. Yay.

Continue reading »

Apr24

Capistrano, Subversion, and Sybase

TechStuff Rails | comments

I posted a few weeks ago about the troubles I had with capistrano and CVS. I got the project converted from CVS to Subversion, but the versioning was all jacked up. No worries - I’ll start with version 1 in svn.

Continue reading »

Apr04

Local Ruby Brigade Talk

TechStuff Rails BigNerdRanch | comments

I participated in a lightening talk at the local Ruby Brigade meeting the other day. Nothing fancy - just a little recap on my Big Nerd Ranch experience.

The group is pretty smart, but I thought I was probably not the only nuby in the area, so it might be topical for someone else.

Continue reading »

Mar28

Ruby on Rails Is A Good

TechStuff Rails | comments

I stumbled across a post the other day that stopped me down and made me think a bit.

I don’t know that I necessarily follow the logic completely. I do prefer ruby at this point over anything else. I do really dislike programming in tcl and php. That was true before I picked up ruby, though.

Continue reading »

Mar23

In Place Editing

TechStuff Rails | comments

I like the in_place_edit plugin.

I needed it to work with validations in my model, though. It doesn’t.

I also needed it to work with a select box. It doesn’t.

So after some googling I found a few extensions that accommodate each of these shortcomings….

Continue reading »

Mar16

Capistrano + CVS = Fail

BigNerdRanch Rails TechStuff | comments

We use CVS at work. We have an app that a handful of people are working on. Deployment by hand kind of sucks.

No problem, I say. Capistrano works with CVS now. Hooray!

It does “work” inasmuch as it does not barf when you run cap. It doesn’t so much actually work, though. For me. The CVS command that it generates is crazy honked. Maybe my CVS is bad – it’s not you Capistrano, it’s me.

Continue reading »

Mar08

Nasty Perl Habit

TechStuff Rails | comments

I have been working in ruby and in rails for a few months now. I came back to my Large Multinational Corporation recharged with a new zest for life. Flowers smell better. The sky is bluer. My children suddenly started behaving.

Continue reading »

Feb29

Rails Pet Peeve

TechStuff Rails | comments

There is something that has been bugging me since I first looked at the skateboard book. I love the framework, and I love ruby. I also love consistency.

Having a button that does something (submits the form maybe) and a link that does something else (cancels the form maybe) bugs me. I see this a lot, and it always bugs me. I understand that we shouldn’t have links that do destructive things. But what’s wrong with having a complementary button to the submit?

Continue reading »

Feb13

Syntax Highlighting Test Post

Rails simplelog TechStuff | comments

This is a test post with some ruby code in it.

  def show
    @product = Product.find(params[:id])
  end

  def new
    @product = Product.new
  end
Continue reading »

Feb11

Big Nerd Ranch

TechStuff Rails BigNerdRanch | comments

I Am A Big Nerd

I had seen a banner for the Big Nerd Ranch on a site somewhere back in December as I was plowing through the skateboard book, and I thought it was pretty clever. I actually thought it looked really great. I sort of filed it away and went on my merry way.

Continue reading »

Feb10

Typo: No, SimpleLog: YES

Rails DreamHost Typo simplelog TechStuff | comments

Hello, World. There - I said it. This is the first post on my shiny new blog. It’s actually my second run at a blog, but you wouldn’t know that because I couldn’t get the first run to deploy. I will admit that I am not a Rails jedi (yet), but I did spend a LOT of time crawling through Google to get the thing running. I even found a nice blog that was written about a week and a half ago for the EXACT steps I needed to do to get it to work on the host that I am using (Dreamhost).

Continue reading »