Doug's Web Development Blog

web development with Ruby on Rails and more.

How I Added Images to My Postit App With AJAX and MetaInspector

| Comments

In Tealeaf Academy’s second course Rapid Prototyping with Ruby on Rails we built an app called Postit. It’s bassically a clone of the popular site Reddit.com. Of of the featues of this app is to add a URL to the site you are posting about. I decided to add a feature for grabbing an image on that URL. To do this I used some AJAX and a web scraping gem. Here is what the page looks like in action.

Here is the link to the actual working app http://shielded-retreat-9536.herokuapp.com/

Ruby on Rails Project - Punch Clock App

| Comments

So I’m done with week 2 of the Tealeaf Ruby on Rails course and I’ve learned to do basic CRUD ( create, read, update, delete) actions using Rail’s resourses , models, form helpers, and views.

I thought this would be a good time start on a side project I had saved in my back pocket. This would be a good chance to practice what I’ve learned as well as start my own project. The idea is pretty simple, it’s called “Punch Clock”, for now at least. It allows you to create different jobs or tasks, and then track the time you spent working on them. Here  the Github repository

Tealeaf - Rapid Prototyping With Ruby on Rails Cousre Done!

| Comments

It’s been a few weeks since I last posted about my journey to becoming a Ruby on Rails developer through Tealeaf Academy . At this point I’m done with their second course “Rapid Prototyping with Ruby on Rails” . This blog post is actually my final assignment for the course. I have learned to build a basic rails app from start to finish and I’ve even been able to apply some custom features that weren’t discussed in the course.

Say Hello to Rails and All of It’s Magic!

| Comments

I’m through the first week of course 2 with Tealeaf Academy (Rapid prototyping with Ruby on Rails) It’s been very demanding to say the least, but still very fun and engaging.  There was a lot of information to absorb and I learned a lot.

Before week 1 officially started, I was asked to read this Getting Started with Rails guide. I did actually get through it and build the example project, but by the end I wasn’t very confident about Rails, which is ok, because that’s what the course is for.

Putting It All Together. Web Development With Ruby, HTTP, Ajax , MVC With Sinatra

| Comments

I just finished up Tealeaf Academy course 1 of 3 . It’s has been an outstanding learning experience! I feel like I’ve come really far as a programmer, and I can take on small projects in Ruby on my own. When I say small projects I mean a simple program that doesn’t require a database (databases are in course 2), like a game. I’ve done blackjack and tic-tac-toe, so I guess the next game could be something like checkers or hangman. If you have any ideas feel free to leave them in the comments. Maybe we could collaborate on a game or other small project. It might be a fun side project.

Anyway….here’s a recap of what I’ve learned since my last post. Here is the Blackjack Game I made while learning all of these things.

First Steps With Ruby and Web Development

| Comments

All I want to do is be a professional web developer, make some money, love what I do, and live happily ever after.

Not to much to ask right? So where do I start? My journey actually began a while ago and I have some basic knowledge. I know HTML, CSS, some PHP and a little javascrpt. But that alone is not enough to get a job in today’s market. Now adays, you need more that that. There are basically two types of web developers.

  1. Front End
  2. Back End

The differences are ilustrated very well in this youtube video.

Database Transaction With mySQL and PHP

| Comments

I fellow student from O’Reilly School Of Technology asked me about using transactions in SQL to batch together multiple table updates. It turns out this is pretty easy. If you’re reading this you probably know why this is a good idea, but I’ll briefly explain why just in case you’re not sure.

The most important thing when dealing with relational databases is to keep all the data, in all the tables consistent with your database rules. For example, if you have two tables where one depends on data from the other you wouldn’t want to insert data into one if there was a problem with inserting data into the other. Below are two very simple tables.