Author Archives: jess

Connecting Rails to Microsoft Exchange / SMTP Email Server

When a client first asked me to switch from Sendgrid to use their smtp exchange server, I figured it’d be really simple…like connecting to a gmail account. However, I ran into a few issues. Like a lot in programming, it … Continue reading

Posted in General | Tagged , , , | Leave a comment

Setting up a Godaddy domain for heroku

If you have a client using Godaddy, here’s a quick tip for setting up a Godaddy domain for heroku. heroku domains:add www.example.com That’s easy enough to go into Godaddy’s DNS manager and add a cname for www and link it … Continue reading

Posted in General | Tagged , , | Leave a comment

Setting Up SSL on Heroku

I really love Heroku. The simplicity and beauty of how it all works just makes me happy. However, unlike most of their instructions/documentation, I recently ran into a bit of trouble when setting up a custom domain ssl. Looking back … Continue reading

Posted in General | Leave a comment

Using the sanitize gem – Clean HTML

I recently had a need to sanatize html entered by users in an app. The app (www.csepub.com) allowed professors to enter homework assignments for their ebooks. One type of homework assignment is a written assignment. The app needed to allow … Continue reading

Posted in General, Programming | Tagged , , , | 2 Comments

Ruby on Rails – Increment and decrement

If you’re using rails and have an integer column in database that you want to increment or decrement, rails provides a nice abstraction for you to use. Normally you’d have do something like this: def increase_credits update_attributes(:credits => credits + … Continue reading

Posted in General | Leave a comment

Rails uniq_by – Unique Results From ActiveRecord Relations

I just discovered a neat method in rails called uniq_by. http://apidock.com/rails/Array/uniq_by It allows you to get a unique set of results from an active record relation. Ruby provides a way to get unique results from an array like so: a … Continue reading

Posted in General | Tagged , | Leave a comment

Debugging Magento Duplicate Entry Database Error

I recently got a call from a client that has a Magento cart. He was getting an error when saving a product:

#1062 - Duplicate entry '59-0-1-229' for key 1

Continue reading

Posted in General | Leave a comment

Read The Code

Several monts ago, John Nunemaker bloged “Stop Googling“.  It was about reading the code in an open source project oppsed to Googling it.  He was a bit funstrated at someone who Googled, polled friends, and basically searched everywhere besides the source … Continue reading

Posted in General | Leave a comment

Ditch FTP For GIT

Ever since I started learning Ruby On Rails several years ago, I’ve been using git. Git is a cool tool you can use for version control, or in some cases, simple incremental backups. It basically keeps track of your code … Continue reading

Posted in General, Programming, Web Design | 3 Comments

Highlights From LessMoney

The past weekend I attended a conference for web development/creative agencies.  The topic was how to make your business better and was taught by some of the best in the industry:  LessEverything. I’m sure everyone got a little something different … Continue reading

Posted in General, Web Design | 1 Comment