The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Easy Gem Configuration Variables with Defaults
Made a thing that makes setting up configurable gem variables with optional defaults super easy. Implementation details here - http://viget.com/extend/easy-gem-configuration-variables-with-defaults
Paperdragon: Explicit Image Processing
Paperdragon is a new alternative to Paperclip and CarrierWave. Its very explicit API uses Dragonfly under the hood and gives you control about every aspect for processing uploaded images.
ITTIA DB SQL Now Available for QNX Neutrino RTOS 6.6
ITTIA DB SQL offers big data capabilities for smart embedded systems with limited local resources, enabling the distribution of a large data set across a wide array of devices, and the potential to store millions of rows per device. Applications can then run queries on individual devices, or pool data together in a back-end system for data warehousing and data mining. In this way, developers benefit from highly reliable embedded database software with a strong track record in mission-critical systems.
How you can implement living documentation
This is part 3 in my series about living documentation. Here I discuss effective ways to implement end-to-end tests. Part 2 discussed how we can write better living documentation, and Part 1 discussed why you should give living documentation a chance.
Rails Fundamentals: Include vs Joins
A fundamental Active Record feature known as eager loading regularly trips up new Rails developers to the detriment of their application’s performance. In this post I offer a concrete example illustrating the difference between the includes and joins approaches, complete with a log of the queries executed when each approach is implemented.
Ruby version usage in commercial projects, 2014 edition
Following up on last year’s report, here’s a chart of Ruby versions used in commercial projects, sourced from Semaphore CI.
Ruby resources for intermediate to advanced developers.
After a list of free resources for Ruby beginners, this time we’ve coined a list of handy Ruby resources to follow for intermediate to advanced devs.
We just wrote a tutorial series on integ...
We just wrote a tutorial series on integrating Bootstrap with Rails: [more inside]
How to use Ruby's English "and"/"or" operators without going nuts
Ruby has both symbolic (&&/||) and English logical and/or operators. The differences between these operators can be confusing, to the point that many programmers simply avoid using the English versions entirely rather than deal with their sometimes surprising behavior. I’ve made a screencast which explains why the very features which make these operators problematic in a boolean logic setting also make them perfect for certain elegant control flow idioms.
The lesser-known features in Rails 4.2
The first beta of Rails 4.2 was announced last week, and it already looks amazing. I’m really excited to use ActiveJob, Web Console, Adequate Record, and Foreign Key support in my own apps. But the beauty of Rails is in the details. And if you do a little digging, you’ll find some less advertised features that will totally improve your daily work with Rails.
When Should You Not Use Heroku?
Heroku is awesome. It’s a great first stop for deployment. But when is it not the right thing? [more inside]
Normalizr - yet another attribute normalizer
Hi guys! I just released normalizr - lightweight and flexible solution for attribute normalization. Check this out!
Developing with MS SQL on your Mac
We recently had to set up a MS SQL database on a Mac for a client project. So, we thought we’d put together this mini tutorial just incase you ever have to do the same.
Install PostgreSQL on Mac OS X
Postgres has a reputation of being hard to set up, but it seems things are changing now. check out our blog post on how to install Postgres for Mac OS X! [more inside]
Praxis, a ruby framework that takes a different approach to creating APIs.
We’ve just unveiled the first release of Praxis, a ruby framework that takes a different approach to creating APIs. With Praxis you can have different sets of people design, review and implement your API, while resting assured that the resulting code is always consistent with your API specs. Building APIs with Praxis leads to better designs, faster developer times and result in precise documentation that is apt for both human (web browsable) and machine consumption (JSON definition files). [more inside]
RoR based open source extension for Spree/PayU integration
An open source extension that integrates PayU payment gateway with Spree stores.
Cache-controller article from 2009; still interesting
I found this article/blog post from 2009 regarding caching. Still relevant. [more inside]
Digging Rails - How Rails Initializes Itself
I’m reading Rails source code and wanna share what I have learnt as a series of blogs. Here is the first one, How Rails initializes itself.
Green Ruby News #81
Like every week, here is a fresh list of the links from last week on Green Ruby News #81.
Installing Rhodes on Ubuntu and making it run on Ruby 2.1
When you want to write a mobile app, but you don’t want to quit Ruby, it’s worth looking into Rhodes. Unfortunately it might not be so simple to use it on Ubuntu (or any other Linux). Also it won’t work out of the box with anything newer than 1.9.3. I wrote a simple how to bypass all of those issues: Installing Rhodes on Ubuntu and making it run on Ruby 2.1
Dockerfile.erb
A tiny Ruby script to generate a Dockerfile from a Dockerfile.erb template.
JRuby: Performance Plus the Whole Java World on a Silver Platter
Could JRuby have made the largest contribution to the Ruby community? JRuby gives you access to an additional 84,000 libraries. [more inside]
command line power tool for facebook
Hi guys, I just created http://huydx.com/facy, a colorful and fun facebook terminal client, which helps you interact with facebook without being distracted by images in a compact way.