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.
Created new package (Eventsims)
Feel free to download my new package called Eventsims . It is a Ruby package for simulating discrete events and workplace scenario. A similar package that I made for Python users is called Eventsim and has an extra feature than the Ruby one. It can be found on the Pypi website
How to make $100K from OSS
Technical firms and individual developers release open-source as a low cost marketing strategy, then use other montization methods to profit from their hard work. [more inside]
Cassandra & Ruby
A small guide covering my steps while learning Cassandra and using its Ruby driver: http://lucasnogueira.me/en/Cassandra-and-Ruby/
Focus with well structured RSpec tests
Writing well structured rspec tests: [more inside]
Wrap Your Dependencies
Learn how to prevent dependencies in your application from spidering out of control and make your app reselient to change: http://www.markphelps.me/2015/07/30/wrap-your-dependencies.html
Delayed Job Gem for CSV
It is essential to have a fast server as the delay in processing can literally kill a business’ revenue stream and frustrate the users. The speed of a website is the actual time it takes for a web page to load on the screen after being requested by the browser. Now consider a scenario where you need to use huge database and send emails to a list longer than the Wall of China. Exaggeration or not, sending emails to a long list of people will take time, increasing the processing time which will slow the server and annoy the users. To read full visit : Railscarma Blog
comp: Add function composition to Procs and Methods
A Ruby library to add function composition between Procs, Methods and any object that responds to call: https://github.com/mudge/comp
Subtle difference in implementation of ENV in MRI-ruby and JRUBY
ENV makes the environment variables of the running process available within a Ruby-script. But there is a subtle difference in implementation between MRI-Ruby and JRuby. Read this article to find out more.
Lessons Learned Building a Git-Based Knowledge Base for my SaaS product
In my latest post, I’m sharing what I learned using Jekyll/Ruby/Git to build a Knowledge Base, including a couple of liquid filters and plugins, and a freely reusable template which you can start from.
Exception handling and testing it with Minitest
Exception handling is not something we always think of in advance. Instead of being proactive, we are almost always reactive. We wait for the disaster to happen and than we adapt our code for it. In my last blog post I cover some exception handling techniques and how to test them using Minitest. Check it out here.
Dr. Jekyll's Themes of the Month - July 2015 Edition - Holo Alfa, etc.
Hello, To highlight ready-to-fork themes for Jekyll I try to post the latest (and greatest) additions once a month. For the July’15 Edition let’s welcome: Holo Alfa by Stijn van Cuijk • { Personal } by Panos Sakkos • Jekyll Clean Dark by Pavel Makhov Any theme missing? Add your theme! Cheers.
RubySpec is Reborn!
RubySpec is now actively maintained at ruby/rubyspec and MRI, JRuby, Opal and various individuals are contributing to it. Any contribution is welcome! Read the story!
How to predict the future of programming
A lot of the problems we face as software developers don’t change. Sure, our solutions evolve. But the same solutions discovered by the last generation of developers can still help us today. So, do you want to know the answers to the problems you’ll face in the future? The best thing you can do is look to the past.
Dragonfly gem - auto-orient for all the images
A short post about auto-orienting Dragonfly picture attachments using ImageMagick auto-orient parameter. http://dev.mensfeld.pl/2015/07/ruby-dragonfly-gem-auto-orient-all-the-images/
YAML Quick Reference (Cheat Sheet) for Jekyll Datafiles @ Planet Jekyll
Hello, I’ve added another quick reference in the Planet Jekyll series. YAML examples for Jekyll datafiles include: List of Key/Value Records (e.g. books.yml) • Nested List of Key/Value Records (e.g. nav.yml) • Hash (Dictionary) of Key/Value Records (e.g. people.yml) • Multi-Line Strings • And some more. Questions? Comments? Welcome. Cheers.
Introduction to Writing Acceptance Tests with Cucumber
Improve your testing skills with acceptance testing. Cucumber makes you a better developer by helping you see your code through the eyes of the user. https://semaphoreci.com/community/tutorials/introduction-to-writing-acceptance-tests-with-cucumber
Playing with Phoenix Framework – Rails’ younger brother
Elixir Phoenix Framework for Rails developers. http://blog.elpassion.com/playing-with-phoenix-framework-rails-younger-brother/
Object Oriented Design Basics : Flexible Design
Software does not exist in a vacuum. It interacts with environment and the environment interacts with it. The environment is market forces, users, external systems, operating systems, competing software, changes in law etc. It evolves, either it improves or decays over time. The only thing that is constant is change demanded by the environment. To read more, check out the Flexible Design article.
PR Log: Turn Pull Requests into Changelog Entries
tf/pr_log (MIT license) is a small command line tool which fetches recent pull requests from a GitHub repository and inserts changelog items. It encourages handcrafted changelogs and plays nicely with existing changelog content. It uses GitHub milestones and labels to filter items and insert custom prefixes like “Bug fix”. In most cases it can parse its configuration automatically from the project’s gemspec. [more inside]
How to restore support for Nginx’s gzip_static in Rails 4.2
Nginx has the ability to serve static .gz files instead of compressing assets on the fly, which is great for performance. The Rails asset pipeline has supported this feature in the past, but unfortunately, this support is currently missing in Rails 4.2 and Sprockets 3. The Rails team is aware of the problem and has promised a fix, but in the meantime, here’s a workaround to restore this great feature.
How to clear all Sidekiq queues, using the power of emoji
It’s easy to find code snippets that will delete the jobs from one Sidekiq queue. But we have lots of queues. I want to clear the jobs from all of them. After a little digging, I came up with an emoji-based approach that seems to work well. http://blog.honeybadger.io/how-to-clear-all-sidekiq-queues-using-the-power-of-emoji/
Ruby geoprocessing with GRASS GIS
Ruby can be a nice language to drive the powerful GRASS GIS. Please visit http://grasswiki.osgeo.org/wiki/GRASS_and_Ruby for more information.
I Love Ruby 2016 beta rolling out
Hello people, I love Ruby 2016 Beta edition is rolling out. Grab it here http://is.gd/rubybook
Clipping Images for Rails: Using Paperclip
Implementing file uploading can be one of the most fun parts of writing a Rails application. But it can also be a bit confusing if you’ve never done it before. This blog post looks at the paperclip gem, and how to both implement it and understand what it’s doing behind the scenes.