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.
parse CSV to Hash
For my personal purpose i needed to map complex and unstructured csv files, i’ve wrote a gems csv2hash for help me to do that, is a parser based rules, i hope this gems can be useful for another persons.
Many to many relationships with hstore
In this post, I show you how to build alternative many-to-many relationships without creating join tables. [more inside]
Rails 4.2 active job and global id new gems
I just wrote an introduction about how the new gems active job and global id interact in rails 4.2
FastAttributes 0.7.0 is just released
FastAttributes is a gem which defines attributes with their types in your model and does it in the fastest way. Version 0.7.0 is just released and since now, it supports lenient data types.
Green Ruby News #82
Finished my weekly links harvesting, check the result on Green Ruby News #82.
Make the most of SQS using Ruby
While not particularly famous in the Ruby community, SQS is a really amazing queueing service, check out what it can do for you and how little Ruby code you have to write to use it.
DescriptiveStatistics is a gem that adds...
DescriptiveStatistics is a gem that adds methods to the Enumerable module to allow easy calculation of basic descriptive statistics of Numeric sample data in collections that have included Enumerable such as Array, Hash, Set, and Range. The statistics that can be calculated include Number, Sum, Mean, Median, Mode, Variance, Standard Deviation, Percentile, Percentile Rank, Descriptive Statistics, and Quartiles. [more inside]
Creating a simple ToDo with Rails
Creating a simple ToDo application With Rails.
From Sinatra to Amazon Simple Queue Service (SQS)
Amazon provides Simple Queue Service also knows as SQS. It is a fast, reliable, scalable, fully managed message queuing service in the cloud that you can use from your applications. This is how you can use it from Sinatra/Ruby.
Getting Started with Spree, Wombat and Ninefold
Imagine developing an application where you need to grab shipping data in real time, send products, inventory, and order information over at least ten different APIs including Amazon and eBay. When I first heard that I had to do this, there could only be one answer: “Challenge accepted”. Continue reading.
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]