Episode 25: SQL Injection

Posted over 7 years back at Railscasts

One of the most common security problems for dynamic sites is SQL Injection. Thankfully Rails does everything it can in solving this issue, but you still need to be aware of it.

Optimal Ad Follow-Up

Posted over 7 years back at PJ Hyett

It’s time to put my money where my mouth is based upon what I wrote a month ago regarding optimal ad placement.

The first thing I should mention is I’ve actually reduced the amount of ads since then. There are now only two posts that contain ads. They account for 85% of all incoming traffic, so I see no reason to bother visitors looking at any of my other posts.

Furthermore, I originally had placed two large ads at the top, but I’ve cut it down to just one and floated it to the left. The net effect of these changes is fewer page impressions, but no loss in revenue.

Observant viewers may have also noticed that I’ve added Kontera links to those two posts as well, which has been good for another $15 this month on top of my Adsense revenue.

12,781 pages divided by 27 days is around 473 page impressions per day. Perfect for paying for hosting, but tack on a couple of zeros to that number and suddenly you might just be able to quit your day job based upon how well you can monetize the traffic.

As a forewarning, I’ve been researching and experimenting with all things Adsense, Adwords, and Domaining, so you may see more posts of this nature. If you just want to read about Ruby and Rails, head over to Err the Blog.

More docs

Posted over 7 years back at The Hobo Blog

p.s. As I mentioned a while back, the manual source is in Markdown, and the PDF manual is generated by Safari from HTML + CSS. Anyone got any bright ideas for getting a contents page with page numbers on it?

More docs

Posted over 7 years back at The Hobo Blog

p.s. As I mentioned a while back, the manual source is in Markdown, and the PDF manual is generated by Safari from HTML + CSS. Anyone got any bright ideas for getting a contents page with page numbers on it?

Episode 24: The Stack Trace

Posted over 7 years back at Railscasts

The stack trace can be a very useful tool when it comes to debugging. Learn the ins and outs of how the stack trace works in this episode. Note: I am using an older version of the Rails bundle here so it might be a little different than yours. The command in the newer version is called Install Plugin and requires you to type textmate_footnotes in the search.

MyConfPlan: Check Me Out

Posted over 7 years back at zerosum dirt(nap) - Home

Dr Nic Williams wrote a nice little app to allow folks to plot out the sessions they’ll be attending at Railsconf (or any conference, for that matter) and share them with others. In case you’re curious, check out my tentative session list.

Some of those decisions are tough ones! In particular, I’d like to see both Nutter’s JRuby talk as well as Dan Webb’s javascript-fu presentation. I’d also like to attend both Matthew Bass’ homesteading talk as well as Brian Leonard’s Tooling/NetBeans session. Sigh, decisions decisions.

Also of note: Dr Nic built MyConfPlan in Hobo, which seems to have come a long way since I last checked it out. Very cool stuff.

Zed Shaw - Ruby on Rails Podcast

Posted over 7 years back at Ruby on Rails Podcast

The author of Mongrel talks about its development and condemns HTTP while offering to save the internet with hate.
Also mentioned:

Manual updated

Posted over 7 years back at The Hobo Blog

I’ve just uploaded a new version of the manual. Highlights of the new content are:

DRYML:

  • Dynamic inner-tags

Hobo Model Controller:

  • Controller customisation
  • Controller data filters
  • Auto-complete (the controller side of things only)

Probably most significant is the controller customisation stuff. I’ve mentioned the new mechanism in a blog-post or two, but now the whole set of options is documented.

Enjoy.

Manual updated

Posted over 7 years back at The Hobo Blog

I’ve just uploaded a new version of the manual. Highlights of the new content are:

DRYML:

  • Dynamic inner-tags

Hobo Model Controller:

  • Controller customisation
  • Controller data filters
  • Auto-complete (the controller side of things only)

Probably most significant is the controller customisation stuff. I’ve mentioned the new mechanism in a blog-post or two, but now the whole set of options is documented.

Enjoy.

Episode 23: Counter Cache Column

Posted over 7 years back at Railscasts

If you need to display the record count for a has_many association, you can improve performance by caching that number in a column.

Episode 22: Eager Loading

Posted over 7 years back at Railscasts

One way to improve performance is to cut down on the number of SQL queries. You can do this through eager loading. Learn all about it in this episode!

Hobo 0.5.2 released

Posted over 7 years back at The Hobo Blog

OK 0.5.2 is now available, both in the svn trunk and as a gem

* hobo-0.5.2.gem

* Changelog

The important breaking change is that the customisation hooks in your hobo_model_controllers no longer work. e.g. if you have

def create_response
  redirect_to "..."
end

That will no longer work. The equivalent is now:

def create
  hobo_create :html_response => proc { 
  redirect_to "..."
  }
end

If you have done a lot of stuff with those hooks, you might want to wait until tomorrow before grabbing 0.5.2. I’m hoping to put a decent chunk of time into catching up with the documentation tomorrow.

Enjoy!

Hobo 0.5.2 released

Posted over 7 years back at The Hobo Blog

OK 0.5.2 is now available, both in the svn trunk and as a gem

* hobo-0.5.2.gem

* Changelog

The important breaking change is that the customisation hooks in your hobo_model_controllers no longer work. e.g. if you have

def create_response
  redirect_to "..."
end

That will no longer work. The equivalent is now:

def create
  hobo_create :html_response => proc { 
  redirect_to "..."
  }
end

If you have done a lot of stuff with those hooks, you might want to wait until tomorrow before grabbing 0.5.2. I’m hoping to put a decent chunk of time into catching up with the documentation tomorrow.

Enjoy!

Episode 21: Super Simple Authentication

Posted over 7 years back at Railscasts

The final piece of the administration puzzle: authentication. There are many different approaches which is why I saved this step for last. This episode will cover a few techniques including the simple solution used for this site.

Episode 20: Restricting Access

Posted over 7 years back at Railscasts

In this second part of the series on administration, you will learn how to lock down the site to keep the public from accessing the administration features.