Rory Walker|Ruby on Rails Prototypes & MVPs

We specialize in working with small to medium sized businesses who are looking to realize an idea, or build an app from scratch.

How about one that understands your budget and is ready to work with you to identify your business’s problems and pain points; and only move forward if it’s a perfect fit.

Developers who would help you:

  • Build loyalty with your customers.
  • Improve your bottom line.
  • Create a large return on investment on the web.

We solve your problems, not ours.

Prototype & MVPs Development

Whether you’re looking to realize an idea, or build an app from scratch. We will help make it a reality.

Starting from $3000 - Learn More

Update : NetTuts - has a guide on great Tweaks for Sublime Text 3 

Flat is in, right?

Lately I’ve been spending more time in the /rails and /ruby subreddits. Both are most definitely worth a subscribe if you are into Ruby development.

I came across the flatland theme for Sublime Text 3 (SB) (my editor of choice from I came across it on HN probably 2 years back) It looked beautiful, don’t just take my word for it, see below.

image

I had to have it! They were three ways to install all with varying levels of effort. I was in bed reading; so the one with the least effort caught my eye. The “Package Control option" - mhmm didn’t know that SB had that. It reminded me of the Application Center from Ubuntu. You just search for whatever resources/package you want and you can install it from right there in the editor. So I tried the command but I had to install it first, which was a breeze.

Step 1 - Open your console in SB - “Control + ` " (under tilda)
Step 2
- Enter the following to install to install Package Control on SB

import urllib.request,os,hashlib; h = ‘7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0’; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( ‘http://sublime.wbond.net/’ + pf.replace(’ ‘, ‘%20’)).read(); dh = hashlib.sha256(by).hexdigest(); print(‘Error validating download (got %s instead of %s), please try manual install’ % (dh, h)) if dh != h else open(os.path.join( ipp, pf), ‘wb’ ).write(by)

Step 3 - Restart SB
Step 4 - Open Package Control using - “Shift + Command + P
Step 5 - Select Package Control:Install Package
Step 6 - Search and select “Theme - Flatland
Step 7 - Enable in your User Preferences by adding

theme”: “Flatland Dark.sublime-theme”

Google defines regret as - feel sad, repentant, or disappointed over (something that has happened or been done, esp. a loss or missed opportunity).

image

We all have regrets, some try to convince themselves that they don’t. Others say it was all a learning experience. I’m in latter camp. I believe that life comes with regrets; things that you should of done: make that move on that girl, put in that extra day of studying and even apply to that job.

I won’t go into my teenager regrets, however I will share a few of my regrets over the past 3 years.

Not listening to my mom and setting up a monthly automated savings from salary.

I was hired at my first job before completing my final year, (I was working from home in Kingston whilst preparing for my final exams). I remember the first time I got paid. It seemed so much. I thought to myself “how can I spend all of this money?” (looking back - that seems so FUNNY and naive of me to say). Mom was quite adamant that I set up an automated deposit from my salary and I just overlooked it. I was always a saver and continued saving my money, but I always had access to it. So if anything came up, I would just use my savings. It wasn’t until 2 years after that I saw the brilliance in my mother’s words and decided to set one up. I could of saved so much money over that time period.. but hey such is life.

Getting a Credit Card(CC), and not being my usual responsible self

I learnt quite early that CC debt is killer, mostly from horror stories heard from family and friends. So I vowed to never get one. 10 years back when I started my Video Game importing business; I was made a supplement holder on my mother’s credit card. I only could spend what I deposited to the account. Not knowing about actual CC limits, I remember thinking how do people get into trouble with CC’s.

Late 2012 when I heading to Orlando for my first half marathon with Citi Runners, I was amassing my vacation funds. I received some advice that I should take out a CC to help cover the vacation.. Wrong move.

I decided to do this..I won’t go into details, but I’ve now learnt the ideal way to handle a CC is to pretty much treat it like a Debit Card. Only spend what you have and can pay back at the end of the month.

I came across a statement recently, it goes something like this

"If you need a Credit Card to buy a PS4; you can’t afford one. Don’t buy it"

Other regrets come to mind; some work related, programming related, school related. However that’s life and we all live and we learn.

N.B. - My two regrets are finance related. I’m big on personal finance right now. If you are - I recommend subscribing to the /personalfinance subreddit on Reddit. It is exceptional 

Using Environments variables have always been recommended during (Ruby/Rails) development, primarily so your important credentials aren’t  pushed online for everyone else to see.

I was embarrassed to say that I wasn’t quite sure how to set them up. In the past when I googled, I remember there being few ways, one involving your bash profile (I wrote a Ruby 2 years back about customizing your bash profile). However I never felt comfortable setting my environment variables that way.

Then I discovered the Figaro gem, once installed it creates an application.yml file that easily allows your set your project specific environment variables.

image

How to install


1.) Add to your Gemfile and run “bundle install”

gem ‘figaro’

2.) Run the generator - This creates the application.yml in your config folder

rails generate figaro:install

3.) Add your variables to the file

4.) Pushing to Heroku (Optional)

rake figaro:heroku

That’s it, simple as Pie.

For more info checkout the official docs