Ignored By Dinosaurs rails feed rails Some more ruminating about Laravel https://www.ignoredbydinosaurs.com/posts/261-some-more-ruminating-about-laravel <h3>Expository info (skippable)</h3> <p>So, for nigh 6-7 years now I've been a Rails enthusiast. I bought the PragProg AWDWR book when it was covering Rails 2.x and had the beach and hammock on the cover, and then proceeded to take years to figure out everything the book was actually talking about from the bottom of the stack to the top. I find it very enjoyable to be able to get my ideas out (in code), and Rails is still one of the cushiest frameworks around in terms of ease of use. It's almost as...</p> Thu, 28 May 2015 14:23:14 -0400 A URL strategy https://www.ignoredbydinosaurs.com/posts/258-a-url-strategy <p>I've got this decoupled CMS brewing in my head, and wanted to jot down what I think would be a kind of cool method for generating URLs and URL redirects and making sure everything stays in sync without having to maintain a giant table of redirects (ala Drupal).</p> <p>The basic scheme would look like this -- <code>site.com/{item_type}/{item_id}/{item_slug}</code>. The type parameter could probably be optional, but it's there for now. An example URL could be...</code></p> Tue, 28 Apr 2015 20:28:35 -0400 Getting up to speed with Rails 4 "russian doll" caching and Redis https://www.ignoredbydinosaurs.com/posts/224-getting-up-to-speed-with-rails-4-russian-doll-caching-and-redis <h3>Russian Doll caching</h3> <p>It's a well branded name for something that makes total sense after reading one blog post. <a href="https://signalvnoise.com/posts/3112-how-basecamp-next-got-to-be-so-damn-fast-without-using-much-client-side-ui">The second half of this blog post</a> will actually get you pretty much there.</p> <p>If you're coming from a PHP/Drupal background like me, you might be surprised to find out that the database is <em>not</em> the bottleneck in Rails-land. Whereas on your typical Drupal page you might have anywhere from 50 to 1000 database queries being run, you'll be hard pressed to find a Rails app that comes...</p> Wed, 19 Feb 2014 15:59:11 -0500 Converting mp3s to ogg files in the background with Sidekiq and FFmpeg https://www.ignoredbydinosaurs.com/posts/128-converting-mp3s-ogg-files-background-sidekiq-and-ffmpeg <p>I have a friend for whom I'm building a site right now, and I chose Rails to do so. I think I'll probably reach for Rails for most sites I build until I get bored of it, which isn't going to happen any time soon. I also learned a few things about different browser's implementations of HTML5 audio, which I'll get into first.</p> <p>My buddy is in a band, and so part of the functionality of the site is a photo gallery, and another part is a music player. Whereas in the past I'd have just reached...</p> Thu, 25 Apr 2013 18:49:11 -0400 How (and why) to set up your Mac for Rails development - part 1 https://www.ignoredbydinosaurs.com/posts/23-how-and-why-set-your-mac-rails-development-part-1 <p>The short version -</p> <p><a href="https://github.com/JGrubb/laptop">https://github.com/JGrubb/laptop</a></p> <hr> <p>The longer version -</p> <p>Setting up your Macintosh for Rails development is actually sort of like Rail development itself - you have to at least kind of know about a lot of different things before you can really get anywhere. I'd say I'm new to Rails development even though I've been poking at it since 2.1. 2.1 is the first version I remember after I first bought a Mac and started trying to teach myself to "program". It's taken me...</p> Sun, 01 Jul 2012 05:00:00 -0400 Markdown in Rails 3 with RedCarpet https://www.ignoredbydinosaurs.com/posts/164-markdown-rails-3-redcarpet <p><strong>updated Jan 2014 for Rails 4, see bottom</strong></p> <hr /> <p>I just got this blog up and running yesterday, a marathon of pain but ultimately successful. So today I wanted to add some Markdown action so I didn't have to drop into TextMate to add <code><p></code> tags to everything all the time.</p> <p>RedCarpet seemed to be the gem that was recommended, but it's recently seen a complete API overhaul that has rendered useless the vast majority of the de facto documentation out there. So, viewers of the <a href="http://railscasts.com/episodes/272-markdown-with-redcarpet">Markdown Railscast</a>,...</p> Sat, 02 Jun 2012 05:00:00 -0400 Praise Jah!! https://www.ignoredbydinosaurs.com/posts/212-praise-jah <p>My first post on my new blog! I wrote this one all by myself, with the help of hundreds and hundreds of open source collaborators, Stack Overflow commenters, IRC, Google Groups, and sheer force of WILL!!!</p> <p>This is my first running, production Ruby on Rails app. It took me about two days/6 hours to write, and about 4 days/30 hours to deploy. Deploy means "make work on the web so people can see it" and it was every bit the pain in the ass that I'd heard it was supposed to be. But by god, here...</p> Fri, 01 Jun 2012 05:00:00 -0400 Chapter 6b - the layman's introduction to database migrations in Ruby on Rails https://www.ignoredbydinosaurs.com/posts/118-chapter-6b-laymans-introduction-database-migrations-ruby-rails <p>This is not for programmers. This is for myself, because when I first started poking at Rails 6 months ago, I didn't have any idea why I needed to edit a migration file, much less what a migration was, except that it must have something to do with a database. I only knew that because of the command </p> <p><code>$rake db:migrate</code></p> <p><</p> <p>p that I was told to perform and the fact that it had the letters "db" in it.</p> <p><</p> <p>p</p> <p>So here's the deal. This morning I talked about <a href="http://ignoredByDinosaurs.com/2009/10/chapter-6a-version-control/">version control</a> and it's place in the...</p> Thu, 15 Oct 2009 02:19:30 -0400