Johnathan.org

October 2015 Archives

Starting Soon: Bloc.io

I officially signed up last week for Bloc.io’s Full-stack developer bootcamp becuase I feel while I can learn a good deal of stuff on my own, I’m not going to make on my own to the level I need to be in order to make a fundamental career shift to software development that will actually still support my family.

The program doesn’t officially start until the 9th of November so I have a little over a week to go. It’ll be a long year and change and a lot of new stuff will come my way. I’ve only scratched the surface of what Ruby and Rails can do. I started a simple Rails app a couple days ago that could one day turn into the platform for any and all of my sites, if I stick to it, enough. Right now, I don’t know enough on how to make it great.

With time, I will, and as I progress the app will improve. My goal is to one day have it replace WordPress as my blog, portfolio of work, and anything else about me I feature online. I may even adapt it to restart my photography portfolio.

I’m really looking forward to what I’ll be learning in the coming months and I’ll be sure to share all of it with you.

How to Fix Misspelled Column Names in a Ruby on Rails Database

I came across a small issue this afternoon while building out one of my first Ruby on Rails apps. When I generated the database table, I misspelled a column name. Luckily for me, it’s easy enough to fix and this is how I did it.

1. Create a New Migration

At the command line from within your Rails application folder, run this:

.gist table { margin-bottom: 0; }

You’ll be generating a new database migration with the name FixColumnName (which interprets to [timestamp]_fix_column_name.rb) inside the db/migrate folder inside your rails application. Open that .rb file and update it so it looks something like this:.gist table { margin-bottom: 0; }

:table_name – the name of the table in question

:old_column – the misspelled column name

:new_column – the correct column name

If you have multiple columns you need to change, introduce additional rename_column functions:

.gist table { margin-bottom: 0; }

Keep in mind that after this migration, you’ll need to update your references to the column everywhere within your app.

Seems like a simple fix but as someone who’s relatively new to Ruby on Rails, this saved me a load of time figuring out what to do and preventing me from starting over.

Future Ruby on Rails Developer

“Rails Developer” has a nice ring to it, don’t you think?

In my hunt to figure out where I want my career to head long term, I keep coming back to the idea of software development. I’ve told stories about how I had a rare opportunity a couple years back and I didn’t take it. Well, this time I’m the one creating the opportunity.

Right now I’m working on a self-paced course through Coder Manual and I’m having a great time. However, it may be billed as a complete “bootcamp” but the next stage for me really needs to be one-on-one with a touch of free-wheeling. It’s easy to follow along and build the same stuff the instructor is building. Where the real learning takes place is when free flowing creativity starts to happen.

This is where Bloc comes in. A long-term coding bootcamp, Bloc covers front end, rails, and full stack development with the end goal of being job-ready as a junior ruby on rails developer.

I’ve considered other languages like Python, Java, Swift and Objective-C, but none of those really hit home for me what I want to do. Rails as a platform allows developers to build complex and fully-featured web applications that can do amazing things while not having to focus on the medial.

Looking forward to what’s ahead.

The iMac as Told From the Inside

“When we did the previous mouse we spent so much time dialing those feet, the material, the geometry, everything, so that it sounds good and feels good when you move it on the table,” says Ternus, whose title is VP for Mac, iPad, Ecosystem and Audio Engineering. “But then you change the mass of the product and you change the resonant frequency of the product and all of a sudden the feet that we loved weren’t great anymore. They weren’t what we wanted.”

What exactly was wrong with it? I wanted to know.

“It had just changed… kind of… the sound,” says Ternus, who has been working for Apple since 2001. “They all make a noise — the question is getting a noise we like. It sounded… not right.”

Steven Levy received an exclusive view into the world of development behind Apple’s new iMacs and other hardware. It’s a super interesting read and if you’re a Mac user, a must read.

Headspace

I’m always looking for new an interesting ways to stimulate my brain. I’m also always looking for new ways to clear my head when necessary.

This is where Headspace comes in. I’ve used Headspace for a total of one day as of this writing and so far, I’m pretty impressed. Only time will tell if it’ll be worth investing money in. After my first session, I did feel a bit more relaxed and “with the program.”

Headspace is free with a premium subscription option. Once you get past the first level, you need to pay, but the price is pretty affordable. Paying monthly will set you back $12.95 each month. If you pay up a year in advance, it drops to the equivalvent of $7.99 a month.

When you start using Headspace, you’re greeted by a soft spoken gentleman (his name is Andy) who first walks you through the process and how Headpsace works. Once you dive in, you’re introduced to your first ten minute session. Find a place where you won’t be bothered. You don’t necessarily have to find a quiet place, as the voiceover will help you take advantage of the noise.

You can work through the daily meditations on your computer via headspace.com or on their mobile app available for all major mobile platforms.

Feel like paying? Subscribing to Headspace opens up a whole host of situation-specific meditations for things like health, mental performance, and even a series on how to improve your meditation game. One category I find the most beneficial is the SOS category of meditations. If you’re working through a troubling situation or are literally freaking out, the SOS option will help you get your head back in the game and bring your mind back down to Earth.

I won’t give away the rest but I will say that I enjoyed my first Headspace experience. I recommend you give it a shot. I think you’l enjoy it, too. Check it out at headspace.com or download the iOS or Android app.

Johnathan Lyman
Kenmore, WA,
United States
 
blogging, design, technology, software, development, gaming, photography