Useful Rails blog posts August 14th 2013
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 July 27th 2013
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 July 16th 2013
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 Chelimsky’s …
Ruby Notes July 16th 2013
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 that the …
Cloning a larger linux OS hard drive to a smaller one July 6th 2013
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 July 2nd 2013
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 …
Git Notes June 18th 2013
Switch to remote branch git fetch git checkout -b **local** **remote/branch** Merge branch back into master git checkout master git merge **branchname** Delete remote branch git push origin :**branchname**
Netatalk fix for Ubuntu 12.04 June 14th 2013
Ubuntu 12.04 breaks netatalk and when you try to login in to the apple share you will get errors such as this in /var/log/syslog: Jun 14 13:03:13 GlaDoS afpd[4395]: =============================================================== Jun 14 13:03:13 GlaDoS afpd[4395]: INTERNAL ERROR: Signal 11 in pid 4395 (2.2.1) Jun 14 …
Stopping mdadm assemble on ubuntu boot June 14th 2013
Soft raid setup with mdadm I have a Raid-6 running and it currently has 6 drives. My Mobo has 6 sata ports, one of which is used up for the boot drive (not involved in the array). The sixth array drive is on a PCI sata/raid card. The server is headless, which is important because I do not want degraded array events to …
Rails notes June 8th 2013
Create a controller without tests. rails generate controller {controller name} {views/methods} --no-test-framework Create integration test rails generate integration_test {test_name} Roll back a migration rake db:rollback Rspec test for Mass Assign Vulnerbility (or attribute not being accessible): describe …