reading

Showcasing RubyLearning’s Awesome Rubyists

Showcasing RubyLearning’s Awesome Rubyists

RubyLearning has been associated with some amazing, talented Rubyists these last 5 years. I am compiling a list (in alphabetical order) showcasing these awesome Rubyists who have either undergone some of the courses at RubyLearning or have been instrumental in taking RubyLearning to the next level.

Quick and easy static pages in Rails

Sometimes you have a Rails app, the core functionality is not a CMS, and you need to add some static pages to your app that don’t get changed often, eg, an about us page, privacy policy, etc.
This post shows you a quick and easy way to do that in about 60 seconds, without using a [...]

Rails 3 Beta is out – check out Rails Upgrade plugin

In case you haven’t heard, Rails 3 is now in Beta.
Just a quick post to say, if you haven’t already, check out the Rails upgrade plugin, this will quickly show you what bits of your code need to be updated to work with Rails 3.
Also, check out the full release notes, lots of juicy stuff [...]

Sometimes the best way to create is to remove

Over the life cycle of a project many features may be developed, sometimes just to account for one variation or tiny use case, get used once, and are then not used again for the next 5 years (if ever).
One of my personal pet peeves is overly complicated software with too many redundant, old, unused features.

Decrypt/Reverse MD5 / SHA1 Password Hashes

There is a nice little tool over on tmto.org that allows you to decrypt (or should I say, reverse) MD5 or SHA1 hashes. Essentially, someone has forward hash’ed all a-z letters, put them in a database, then matches your hash against what is in the DB to find what the original string was.

Decrypt/Reverse MD5 / SHA1 Password Hashes

There is a nice little tool over on tmto.org that allows you to decrypt (or should I say, reverse) MD5 or SHA1 hashes. Essentially, someone has forward hash’ed all a-z letters, put them in a database, then matches your hash against what is in the DB to find what the original string was.

Caching with Rails Part 1: Page Caching

alt text

Why do it?

There are three types of caching in Rails. In this tutorial we are going to concentrate on Page Caching. Page caching is the simplest and fastest form of caching in Rails. If you want to reduce the amount of times your Rails app hits the database then why not add some page caching.

Installing AutoTest

I think autotest is one of the best things about developing in Rails. If you don’t know, autotest runs in the background watching all of your application files.

Ruby Highline – Examples

Examples

Basic usage:

  ask("Company?  ") { |q| q.default = "none" }

Validation:

  ask("Age?  ", Integer) { |q| q.in = 0..105 }
  ask("Name?  (last, first)  ")
 { |q| q.validate = /\A\w+, ?\w+\Z/ }

Type conversion for answers:

  ask("Birthday?  ", Date)
  ask("Interests?  (comma sep list)  ",
lambda { |str| str.split(/,\s*/) })

Reading passwords:

Wireframing your Rails Apps

A really useful way to mockup your applications before coding is to use wire framing software to create the screens and layout of your application.

Syndicate content