First steps with Popcorn.js
Mozilla’s Popcorn.js enables developers to manipulate content in relation to a video: display/hide elements, manipulate a timeline, or simply execute arbitrary code. The advantage this technique has...
View ArticleRake tasks, arguments, and external scripts
I’ve previously covered how to use an external script from within a Rake task. This time, we want to be able to pass an optional argument to our task, that will be used within our external script, too....
View ArticleLeveraging the Ruby language for code readability
Recently, I created a rake task to load dummy data into a Rails app. I wanted the data to be somewhat random to make it easier to spot design issues depending on data being filled in or left blank. But...
View ArticleA simple Backbone.Marionette tutorial
In this series of posts, we’ll cover writing a simple Backbone.js application as a primer. You can see the live result here. The original application is at...
View ArticleA simple Backbone.Marionette tutorial (part 2)
In the previous post, we started building a simple cat leader board (see it live!) and got all the way to displaying the list of cat names. Let’s finish and get to the result! Update (June 2013): I’ve...
View ArticleTutorial: a full Backbone.Marionette application (part 1)
In previous posts, I introduced you to Backbone.Marionette which provides many niceties to help you build complex Backbone.js apps. We’ll cover more advanced topics here, such as Backbone.History,...
View ArticleTutorial: a full Backbone.Marionette application (part 2)
In the previous post, we started writing our application (see it live!) and now have a functional app, even if it still is somewhat basic. Update (June, 2013): I’ve written a book on Marionette. It...
View ArticleTutorial: Nested views using Backbone Marionette’s CompositeView
A reader recently asked me how I would go about using Marionette to create an accordion like Twitter’s Bootstrap collapse component. In this post, I’ll not only give you my take on the answer, but also...
View ArticleUsing jQuery promises to render Backbone views after fetching data
So I’ve been working through Brian Mann’s Marionette screencasts at Backbonerails.com. They’re absolutely top notch material, and I can’t recommend them enough. So if you want to learn how to go about...
View ArticleRendering a view after multiple async functions return (using promises)
In the last post, we saw how to use jQuery’s promises to render a view once data had been returned from an asynchronous function. Let’s take the concept a little further and see how we could render the...
View ArticlePoolToy: A (toy) process pool manager in Elixir 1.6 (part 1.5)
Managing a single pool (continued) (This post is part of a series on writing a process pool manager in Elixir.) After last post, we’ve got a pretty fancy-looking pool: Unfortunately, we don’t have any...
View ArticlePoolToy: A (toy) process pool manager in Elixir 1.6 (part 1.6)
Managing a single pool (continued) (This post is part of a series on writing a process pool manager in Elixir.) So we’ve got a working pool we can check worker processes in/out of (previous post)....
View ArticlePoolToy: A (toy) process pool manager in Elixir 1.6 (part 1.7)
Managing a single pool (continued) (This post is part of a series on writing a process pool manager in Elixir.) We’ve now realized (in last post) that storing the references to the client monitors in a...
View ArticlePoolToy: A (toy) process pool manager in Elixir 1.6 (part 1.8)
Managing a single pool (continued) (This post is part of a series on writing a process pool manager in Elixir.) First, let’s point out the problem in our current pool design as we left after last post:...
View ArticlePoolToy: A (toy) process pool manager in Elixir 1.6 (part 1.9)
Managing a single pool (continued) (This post is part of a series on writing a process pool manager in Elixir.) Figuring out the shenanigans Let’s get on the same page (after last post) as to what is...
View ArticlePoolToy: A (toy) process pool manager in Elixir 1.6 (part 2.1)
Preparing for multiple pools (This post is part of a series on writing a process pool manager in Elixir.) When we left each other after last post, we had a working single pool that looked something...
View ArticlePoolToy: A (toy) process pool manager in Elixir 1.6 (part 2.2)
Implementing multiple pools (This post is part of a series on writing a process pool manager in Elixir.) In the last post, we did most of the work enabling us to have multiple pools within PoolToy....
View ArticlePoolToy: A (toy) process pool manager in Elixir 1.6 (part 2.3)
Starting pools (This post is part of a series on writing a process pool manager in Elixir.) Previously, we got pretty excited about the possibility of starting multiple pools, only to have our dreams...
View ArticleOTP 21 introduces handle_continue callback to GenServer
When using GenServers, it is sometimes necessary to perform long-running code during the initialization. The common pattern for handling this is to send a message to self() from within the init...
View ArticleRecovering an encrypted home partition on Ubuntu
I recently found myself needing to restore data from a backup of an ecryptfs-encrypted Ubuntu home partition. This didn’t go as smoothly as when testing backup restoration (in part because ecryptfs has...
View Article