NavBar

Showing posts with label text editor. Show all posts
Showing posts with label text editor. Show all posts

Saturday, December 27, 2014

Week's Progress

I started reading Practicing Rails by Justin Weiss.  Kinda pricey ebook and I'm not convinced it was worth the price so far.

I started working on (and deployed to Heroku) a site for a small machining business.  This is my first solo project I've done without following a tutorial (even though I used my past tutorials as references).

The big features of this project are:
  1. Creation of a contact form that emails site owner directly when a visitor sends a contact request.  No database- it is similar to the app I built during the Learn Rails tutorial.  The contact form uses ActiveModel class.
  2. Utilized Bootstrap theme template for the design.  This was the first time I've tried to adapt and customize a pre-designed template for a Rails project.  Definitely had its frustrating moments!
Of course, during the process, there were little issues that came up and required troubleshooting, but I got it all fixed and working!

What I learned during this process was that I need to work on planning work and creating sketches of the pages I'm making so I keep myself limited to one task at a time and not spread out and skipping around from task to task.    This mainly happened when I added the bootstrap features and started adding the div classes to each individual view for the bootstrap template design.

Oh, and my github streak is up to 13 days!   My understanding is better of Rails framework.  Thinking of how things go together in MVC is going better for me.  I'm pleased with that.

Goals for next week:

  • I'm going to keep reading Practicing Rails.  Try to finish this week.
  • Work on a personal website for myself.
Goals for January:

Saturday, December 20, 2014

Saturday night.

coding in bed.
Here's how I spent my Saturday late night.... In bed, working on coding while reading Kehoe's learn rails guide. 

So far, I think I liked one month rails' style better for my learning style, but I'm doing the best I can!  I worked on integrating a contact form into my app using simple_forms and google_drive gems.

Thursday, December 18, 2014

Learn Rails Tutorial started!

I started Daniel Kehoe's Learn Rails book on Tuesday.  I'm excited to do this tutorial!  I decided to do it before starting Hartl's Rails tutorial to get more practice and because the application I will be building during the book will be suitable for a small business... it includes contact form and mailing list features.  This will be great since the first independent project I'm going to take on is making a new website for my dad's business!

I got through chaper 12, setting up my new project and getting git setup along the way, and then got stuck for hours on the dumbest mistake ever.  I'm pretty embarassed that I wasted my evening on such a silly error.  I was editing my .bashrc file and secrets.yml file in the app to setup environment variables in the bash file so they aren't revealed in the secrets.yml file.  I kept getting one of two errors:  my secret_key_base wasn't defined in the secrets.yml file and an error similar to this one: "ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 18 column 1 (Psych::SyntaxError)"

After systematically going through replacing variables in secrets.yml file with hard values, checking the multiple bash files on my computer for conflicts (bash_profile, bashrc, profile, zshrc, etc), I finally found the problem and felt so dumb.  When I was opening up my bash files, I was just clicking them in Finder and the default textEdit program for Mac was opening them instead of opening them in my text editor, Atom.  So, the problem was, that the textEdit program was adding formatting that couldn't be interpreted properly by my computer.  DUMB!  Once I went through them and re-did my bashrc file in Atom, it all works!

I could continue to beat myself up for making this mistake, but it is better to laugh at it and learn, and never make it again!

Wednesday, November 12, 2014

Day 3 Progress Update

I continued some exercises on the UWaterloo Computer Science Circles Python Tutorial, but then their website was unresponsive, so I am switching gears and started some video lessons on Epicodus.  I'm excited to learn HTML/CSS and hopefully can update my blog to reflect what I learn.  I'm not keen on the stock formats!

I installed the recommended text editor Atom instead of Sublime Text, since it is free and recommended by Epicodus.

I went through 5 or so lessons of Epicodus today.  I then switched gears and looked at setting up my dev enviro for Ruby on Rails.  I looked at the Ruby4kids site, then tried the tryruby short interactive tutorial.  I then got frustrated figuring out how to get darn Ruby on my Mac w/OSX Yosemite 10.10.  I guess I'm dumb and thought the install would be straight-forward.  I finally googled and found some step by step instructions and will hopefully get that set up tomorrow!