theflyingdeveloper.com
Host and deploy your next Rails project with Dokku - The Flying Developer
http://theflyingdeveloper.com/host-and-deploy-your-next-rails-project-with-dokku
Host and deploy your next Rails project with Dokku. I built jabcal.ca. Over the weekend. To show it to the world, I did what I usually do: fire up a free Heroku dyno and. Git push heroku master. Of course, I could drop $35/month for a dedicated dyno to be kept online permanently, or cheat and use NewRelic or Pingdom to keep the dyno alive by pinging it periodically. Neither of these solutions appealed to me, so I started researching alternate hosting solutions. I’ve used DigitalOcean before, bu...It&rsqu...
theflyingdeveloper.com
Meeple.me - The Flying Developer
http://theflyingdeveloper.com/meeple-dot-me
About 6 weeks ago I started a new side project: Meeple.me. Here’s what it’s about. Meeple.me is a webapp for people who organize board game events. It aims to answer the following question:. What are we playing tonight? It does this by asking everyone attending an event two questions. What games can you provide? What games do you want to play? The available answers for the second question are seeded with the responses to the first. Built with Jekyll using Scribble theme.
theflyingdeveloper.com
Discover gems with Ruby Toolbox - The Flying Developer
http://theflyingdeveloper.com/gem-discovery
Discover gems with Ruby Toolbox. Building a toolbox of frequently-used gems is an important part of being an effective ruby developer. Being able to pull out the right gem for the task at hand saves hours of needless work. But what do you do when you’re presented with a new problem or task that you’ve not dealt with before? How do you figure out if there’s already a gem that encapsulates the functionality you’re about to write? How do you even find out what your options are? Enter The Ruby Toolbox.
theflyingdeveloper.com
Nginx, OmniAuth, and SSL: A debugging tale - The Flying Developer
http://theflyingdeveloper.com/debugging-ssl-nginx-and-omniauth
Nginx, OmniAuth, and SSL: A debugging tale. While developing https:/ webhookbook.com. I ran into a really strange issue. In production, my OAuth calls to GitHub were failing with an. Looking for a potential cause, I was disappointed that OmniAuth was only providing a simple. Error with no further message. To get more info, I dived into my nginx logs. Notice the insecure protocol. Huh. My entire site is behind SSL, so why is Omniauth sending an insecure callback URL? Time for some more digging. Request...
theflyingdeveloper.com
Remember: Your Git Commit Email is Public - The Flying Developer
http://theflyingdeveloper.com/your-git-commit-email-is-public
Remember: Your Git Commit Email is Public. Here’s a fact I don’t think a lot of people know. Or rather they do know, but haven’t thought about:. Your git commit email is public. I spend a lot of my time on GitHub looking for talented developers to work with me at Shopify. In order to get in touch with them, I usually just click the email link on their profile. Here’s my profile page as an example: http:/ davefp.github.com. Built with Jekyll using Scribble theme.
theflyingdeveloper.com
Raspberry Pi Print Server Tutorial: Part 1 - The Flying Developer
http://theflyingdeveloper.com/raspberry-pi-print-server-tutorial-part-1
Raspberry Pi Print Server Tutorial: Part 1. This is part 1 of my guide to using a Raspberry Pi as a print server. The instructions here have been tested on a Raspberry Pi Model B, with a fresh Arch Linux ARM (2013-06-06) install. Original Wiki page (now defunct and outdated). This tutorial assumes you have Arch Linux installed on your Pi, and have SSH access to it. Naturally, you’ll also need a CUPS compatible printer. We’re going to need the following packages:. The main CUPS package. In part 2, we&rsqu...
theflyingdeveloper.com
Web Intents are Bloody Fantastic - The Flying Developer
http://theflyingdeveloper.com/web-intents-are-bloody-fantastic
Web Intents are Bloody Fantastic. One of my favourite things about Android are Intents. Having the ability to make a general request (e.g. ‘share this link’) and allowing any capable app to fulfill that request is incredibly powerful. What if we could do the same on the web? If Google gets their way, we might just see that happening. The best way to get your head around the concept is to watch the following Google I/O talk on the subject. If you look closely, you may be able to see me in the audience!
theflyingdeveloper.com
Controller-Specific Assets with Rails 4 - The Flying Developer
http://theflyingdeveloper.com/controller-specific-assets-with-rails-4
Controller-Specific Assets with Rails 4. I gave a talk on this subject at the June 2014 meetup of Ottawa Ruby. I’ve embedded the screencast below (sorry about the poor audio in places):. Whenever you generate a controller in Rails, you’re given (amongst other things) a couple of asset files:. App /assets /stylesheets controller name.css /javascripts controller name.js.coffee. The initial content of these files reads:. Except… Not quite. Directive. That means they’ll include every asset in the d...Fortuna...
theflyingdeveloper.com
Regular Expressions That Aren't - The Flying Developer
http://theflyingdeveloper.com/regular-expressions-that-arent
Regular Expressions That Aren't. Today there appeared an article on Reddit. Titled ‘ The true power of regular expressions. Rsquo;. The author goes into quite a lot of detail explaining that ‘modern’ regular expression engines are much more powerful than their traditional counterparts and finishes up by saying that they’re NP-complete. What? When programmers talk about regular expressions they aren’t talking about formal grammars. They are talking about the regular expression. So what’s to be done? Ldquo...
theflyingdeveloper.com
Gems You Shouldn't Leave Development Without - The Flying Developer
http://theflyingdeveloper.com/gems-you-shouldnt-leave-development-without
Gems You Shouldn't Leave Development Without. A couple of weeks ago I gave a talk at Ottawa Ruby. Called ‘Gems you Shouldn’t Leave Development Without’. You can find the video and slides below, as well as notes adapted from the slides:. Makes assets shut the hell up in development. Adds a much better error page for development. Also a REPL if you add. Pry is a great alternative to IRB. Pry-debugger adds your favourite debug commands:. Allows you to set breakpoints too. OK, Let’s Talk Production. Stops He...