May 2012
7 posts
Moving!
I’m moving my blog off Tumblr: Personal: http://blog.mervine.net/ Everything else: http://www.rubyops.net/ Thanks! —J
May 29th
Installing ack with Macports →
May 16th
3 tags
Bring Vimcast to LA!  →
May 15th
May 6th
May 6th
1,635 notes
May 6th
May 6th
April 2012
16 posts
Ruby: "&&" and "||" > "and" and "or"  →
Who knew!!
Apr 30th
6 tags
More on RSpec and Rake
Here’s a simple way to specify load order using rake and rspec… With files: RSpec::Core::RakeTask.new(:spec) do |task| task.pattern = [ "./spec/fileone_spec.rb", "./spec/filetwo_spec.rb" ] end With directories: RSpec::Core::RakeTask.new(:spec) do |task| task.pattern = [ "./spec/dirone", "./spec/dirtwo" ] end
Apr 24th
RSpec2 and Rake →
I was looking for the following and found it here… require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :default => :spec
Apr 17th
4 tags
rSpec -- testing protected and private methods
Add the following to the top of your _spec file… before(:each) do MyClass.send(:public, *MyClass.protected_instance_methods) MyClass.send(:public, *MyClass.private_instance_methods) end EOM
Apr 17th
3 tags
Apr 16th
2 notes
Apr 16th
Apr 15th
3 notes
3 tags
Apr 14th
2 notes
3 tags
Apr 14th
3 notes
Apr 12th
60 notes
Apr 9th
17 notes
2 tags
[PMV] My Little Wu-Tang Clan - Shame on a Nigga →
That last pic of my daughter fondly made me think of this vid.
Apr 9th
Apr 9th
Apr 9th
Apr 9th
Apr 2nd
71,491 notes
March 2012
32 posts
Mar 31st
Mar 31st
Mar 31st
Mar 31st
Mar 30th
1 note
1 tag
Hunger Games?
Everyone I know and trust on movies said it was crap. Bad acting, not true to the book, etc. I never read it, should I see it?
Mar 28th
2 notes
9 tags
Ruby on Rails: Custom Models sans Database
I’m building an application that uses a API JSON as it’s data source. Decided I wanted it to be all ActiveRecord pretty. I found the this, which I used as a guide, but I needed to expand on it, hence this post… enjoy. Update: Modified self.find to make it more like Rails find and added self.where to do what find was doing, but what Rails where does. Note, it doesn’t...
Mar 22nd
3 notes
13 tags
How-to: Setup MySQL and RoR on AWS
Warning!! When I wrote this, I misunderstood the AWS pricing models when I was originally putting this together. The following configuration would run you about $8 per month for the first year and around $16 per month each following year. Please see Amazon’s AWS Pricing page for details. Introduction I have been working on setting up RoR with MySQL on an AWS instance and ran in to some...
Mar 20th
1 note
4 tags
Mar 19th
4 tags
Using Nginx and AWS to proxy sub-domains
Lately I’ve been thinking on ways to use free cloud services to handle a decent amount of traffic at no cost (or perhaps low cost). I have a co-worker that’s using three free Heroku accounts to serve as a backend for his iPhone application, which using a random number generator, randomly connects to one of the three servers, thus allowing him to serve three connections per second,...
Mar 18th
Mar 17th
4 notes
3 tags
Mar 15th
8 notes
4 tags
How to set up your own private Git server on Linux →
Bradley Wright: One of the things I’m attempting to achieve this year is simplifying my life somewhat. Given how much of my life revolves around technology, a large part of this will be consolidating the various services I consume (and often pay for). The mention of payment is important, as up until now I’ve been paying the awesome GitHub for their basic plan. I don’t have many private...
Mar 15th
649 notes
2 tags
“We can’t solve problems by using the same kind of thinking we used when we...”
– Albert Einstein (via @brownstone_one)
Mar 15th
“In the corporate world, you’re either bomb shelter, the sheltered or the...”
– me
Mar 14th
Mar 14th
Mar 14th
4 tags
Ruby: dynamically generated object with accessors
Hello - I was working on created a super class for use in importing various unknown data types from hashs, so I started playing around with dynamic instance variable and attr_accessor generation and came up with the following, which I thought I would share. Enjoy! EDIT: I’ve commented out the method_missing logic and instead am specifically defining the methods using...
Mar 13th
6 tags
Mar 13th
2 notes
Mar 13th
1 note
5 tags
RSpec speed-up by tweaking ruby garbage collection →
Some developers I’ve worked with have seen up to 50% gains using this. Thanks @DougMcInnes for passing this on.
Mar 12th
Mar 9th
8 notes
2 tags
Mar 7th
2 notes
3 tags
Mar 6th
25 notes
3 tags
Mar 6th
3 notes
1 tag
Mar 6th
208 notes
1 tag
“Be who you are and say what you feel, because those who mind don’t matter...”
– Dr. Seuss
Mar 5th