Michael Cordell's Blog

Passwords: a Primer

You may have heard that you should use a random password to protect yourself. Or that you should use a different password on all your different online accounts. Or that you should use some r@nd0m characters in your password. This article serves as a short primer on passwords and why they are more and more of a problem. …

Book Review: Eloquent Ruby

Eloquent Ruby By: Russ Olsen Eloquent Ruby is an essential read for any aspiring or current ruby programmer. I think it serves particularly well as as an “intro” text to Ruby for those who have other programming experience and/or Ruby experience. Personally, I am often bored by intro texts, and lose intrest …

Guard and Capybara's save_and_open_page

I noticed a problem while running Guard where it would appear to malfunction and become unresponsive. The tests would still run or at least complete (according to growl), but I wouldn’t see errors and the guard prompt would never return. I wasn’t sure quite why this was happening. Here’s a sample of …

Using MAMP and Pow in harmony

I wanted to use Pow to serve my rails apps during development. However, Pow takes over all port 80 requests. This means that if you are also using MAMP (or any web server) for local development, those sites are inaccessible. I don’t want to run MAMP on a different port, so what to do? First, uninstall Pow, …

Useful Rails blog posts

A list of specific blog posts (not written by me) that I believe are helpful for a Rails developer: Development Matt Brictson on Lightning-Fast Sass Reloading in Rails 3.2. How to get CodeKit like reloads with your rails project. This little task is amazing, and will greatly speed stylistic chages. Bryan Helmkamp on 7 …

Ruby: Classes, Modules, and Mixins

Below is a short review of classes and modules. This post is written so I can cement these concepts for myself. The source material is Metaprogramming Ruby and is mainly a rephrasing of concepts from it. If you would like to understand more, I recommend the book. Objects Starting for the bottom, the most basic unit is, …

Ruby and Rails Book List

Read Ruby on Rails Tutorial: Learn Web Development with Rails Eloquent Ruby [Review]({% post_url 2013-08-27-book-review:-eloquent-ruby %}) Metaprogramming Ruby The RSpec Book [Review]({% post_url 2013-09-14-book-review:-the-rspec-book %}) Practical Object-Oriented Design in Ruby Objects on Rails David …

Ruby Notes

Objects objects are collections of instance variables and a link to their class Classes Classes are instances of Class which is a subclass of Module CamelCased Instance Variables Objects of the same class can have different sets of instance variables as they only exist upon assignment Method calls The object …

Cloning a larger linux OS hard drive to a smaller one

I needed to upgrade my linux server’s hard drive from a traditional HDD to a SSD. Unfortunately the old hard drive was 80 GB and the new one is 64 GB. There are commercial programs for this purpose but I figured I could do it with freeware. To that end, you will need: Linux live CD (anything with Gparted on it …

Building a better static page

In an effort to gain a better understand of the full stack in web development I tasked myself with improving my static pages. While I am concurrently learning web application development, I thought it would be beneficial to try and solve and better understand a static page. What follows are the simple tricks and tools …

Pages