Archives
All the articles I've archived.
-
Codex + git worktrees: avoiding index.lock in multi-agent workflows
Practical patterns for safely using git worktrees with multiple concurrent agents without hitting Git lock errors.
-
Build & Maintain Sitemap for Sitepress
Generate your sitemap.xml file for Sitepress content
-
Awesome Hotwire
Awesome Hotwire Resources, Screencasts & Tutorials
-
Welcome to my playground
A brief overview of the new berry.sh and what to expect in the future
-
The Rails SaaS Conference
A recount of my experience at the Rails SaaS conference, a "next-generation" conference dedicated to the intersection of business and software development.
-
Instructure: The Best Job I Ever Left
Note: The opinions expressed in this post are not necessarily representative of all employees or their experiences. Unlike my other posts of the past …
-
Useful Ember Code Examples
Sharing JavaScript via JSBin, JSFiddle, etc. is great but it can be hard to keep track of them. Here is a list of useful Ember code examples. …
-
GitHub's Copy to Clipboard With Ember
GitHub recently replaced the copy and paste functionality with ZeroClipboard, a library for copying text to the clipboard that uses an invisible …
-
Authentication With EmberJS - Part 3
If you have not yet gone through Part 1 and Part 2, I recommend you do. You can check out the code up to this point with the following: $ git clone …
-
Authentication With EmberJS - Part 2
If you have not yet gone through Part 1, I recommend you do. You can check out the code up to this point with the following: $ git clone https:// …
-
Authentication With EmberJS - Part 1
Updated Feb 20, 2014 to use Ember v1.4.1 Authentication with Ember is difficult. I have spent a couple of weeks trying out different approaches and …
-
Useful Functions in the Ember Namespace
Have you been frustrated at all with Ember because of a lack of common functionality? Well, if you are you are probably like how I was and forgot to …
-
Using Flash Messages With EmberJS
In a recent app I have written in Ember, I found that the need to display flash messages came up. This has always been given to me for free with …
-
AngularJS on Rails 4 - Part 2
Let’s pick up where we left off. If you haven’t already, make sure you go through Part 1 to create your base Rails app with the API setup …
-
AngularJS on Rails 4 - Part 1
<div style=
-
What Is the Best Memory Config for RubyMine?
RubyMine has become awesomer and awesomer over the years and is now my primary development tool for Rails development. One thing I’ve found …
-
Bootstrapping AngularJS With Yeoman
<div style=
-
Simple Fix for Pagination With Twitter Bootstrap
As a Rails guy, I always perform my table pagination using mislav’s will paginate gem. However, when I use it combined with Twitter Bootstrap, …
-
Airbrake Exception Logging in Your Grails Application
Airbrake has a Java library that can be used in your Grails application fairly easily. A couple of items that the library doesn’t do is make it …
-
Tools I Use as a Developer
<div style=
-
Stupid Simple POST/GET With Groovy HTTPBuilder
I was frustrated as hell today finding examples on how to use HTTPBuilder to perform a simple POST and GET request in my Grails application. I now …
-
Grails Authentication With Shiro
Source code for the example project can be found at https://github.com/cavneb/grails-shiro-example. Shiro is a security framework that is meant to …
-
Asset Pipeline for Dummies
The Rails asset pipeline is very powerful, but often misunderstood. At the Utah Ruby User Group, most of the attendees aren’t sure how to use …
-
Grails Domain Classes and Enums
For a long time, I have been creating static int values to represent states in domain classes. For example, I would have something like the following …
-
Groovy & Grails - Want to Know More?
For those who are new to Groovy and Grails, here are a list of screencasts I created a while ago, along with a couple of slideshare presentations.
-
Bunny RabbitMQ
Recently I was asked to implement Redis/Resque into an existing project that already had Redis up and running with another Redis server. This ended …
-
Google+ for the Facebook User
Google+ vs. Facebook If you're like me, most of your family, if not all, communicates with each other via Facebook. For some reason, it has just become easier to post a quick message online.
-
How to Fix the Iconv Require Error in Ruby 1.9 and RVM
This post was copied from exceptions.wordpress.com with minor updates. So you are working with RVM / Rails 3 / Ruby 1.9.2 and you keep on getting the …
-
Multi-Associative GORM Criteria With Projections
I have three domain classes: Lead, Submission and BuyerLog: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 class Lead { static hasMany = [ …
-
Paginator for Those Suffering From PostgreSQL Count( ) Speed Issues
Our company has been using PostgreSQL for a very long time and has found it a very solid product for our needs. One thing that we’ve run into …
-
Grails Screencasts
Grails Screencasts Here are several screencasts that I did for TeachMeToCode.com Introduction to Grails – Part 1 Are you new to Grails? Grails is an excellent alternative to Ruby on Rails,.
-
Roll Your Own Ajax-Based Captcha in Grails
Recently, I was asked to come up with a better solution to our captcha needs. We have been using ReCaptcha, which is great but difficult to read at …
-
Uploading Files in Grails
Here’s the slides from a presentation I did at the UGGUG in May 2010. I found that I needed to use it again today so I posted it. Here is the …
-
Passing Data From View to Layout via pageProperty
I am writing a new Grails application which uses the website template Admintasia. Part of the layout gsp file has a section for the header and sub- …
-
Using Tag Lib Within Controllers and Services
So let’s say you want to utilize the standard grails tag lib of formatNumber within your domain class, controller or service. How would you go …
-
Using Criteria Builder With Projections
Something I had to dig around for today was how to perform a sum on a table using Criteria Builder. It seems that it is treated a bit different than …
-
Multi-Line Rails Logger Trick
One thing that I like to do with my logger output is allow for multi-line output. It makes it much easier to read and keeps my code cleaner. Instead …
-
Using Multiple SMTP Accounts With Rails & ActionMailer
Recently I ran into a problem where I needed to be able to send emails via two different SMTP accounts within the same Rails application. I scoured …
-
Creating Custom SOAP Requests With Ruby and Net::HTTP
I interviewed at a company a while ago and one of the questions they asked me was the familiar “You have 8 golf balls and a justice scale. One …
-
RubyCocoa and NSTables De-Mystified
I spent a good 3 hours today trying to figure out exactly how to get NSTables working while using RubyCocoa. Now that I finally figured it out (to a …
-
How to Create Tabs With CSS and jQuery From Scratch
Another feature that is often added to Web 2.0 sites is tabbed content. I’m not talking about tabbed navigation. Tabbed content is when …