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.
Ruby & The Strategy Pattern
Learn about the Strategy pattern and how to implement it in Ruby.
Calculating readability of an article/webpage in Ruby
- When you are writing something like article, text, document etc you are focusing on readability. If you are not then you should. As readability influence how a reader can read and understand the content, how you are presenting the content etc. It would also influence how much likely one is to share your article as well. To find the readability there are a lot of statistical tests. Few are listed below.
Replacing a Complex Regular Expression with a Simple Parser
When we have to work with text, we often reach for regular expressions. But they’re not the easiest solution to every problem. Recently I was struggling with a large regexp, when I realized it’d be less work to write a parser. This article explains the process. - http://blog.honeybadger.io/replacing-regular-expressions-with-parsers/
The Hidden Cost of Metaprogramming
How can metaprogramming make your code harder to read? Is there a performance impact to using metaprogramming methods? Find out the answers in this article:
Refactoring From Inheritance To Composition To Data
“Prefer composition over inheritance” is a popular saying amongst programmers. In this article, I want to demonstrate what that looks like.
Roadmap for APIQ CMS v1
What to expect and what’s not in upcoming APIQ CMS v1 release -
Single file Rails applications
I’ll show you how to create Rails applications that are contained within a single file and walk you through an example:
Who's Who - The Biggest (Static) Website Design Stars in Jekyll - New Authors Page
Hello, to highlight all the great open source contributors sharing ready-to-use (ready-to-fork) static website themes & templates for Jekyll ‘n’ friends I’ve put together an authors page ranked by GitHub stars @ Dr Jekyll’s Themes. Congrats to the winners: #1 Mark Otto (3) ★5998 (Poole, Hyde, Lanyon), #2 Michael Rose (5) ★4254 (Minimal Mistakes, Basically Basic, HiPSTeR, …) #3 Barry Clark (1) ★3653 (Now). Happy publishing with Jekyll & friends. PS: Dr Jekyll’s is (of course) built w/ Jekyll ;-) and open source ‘n’ public domain.
[Screencast] Plotting Points on a Map from Scratch
Using the Google Maps Javascript API, learn how to plot markers onto a map. Load markers and info windows through AJAX calls to your Rails JSON API.
SO[L]ID - Liskov Substitution Principle
Learn how to keep objects of the same type and subtypes substitutable
Shorten the IRB prompt
I hate to waste real estate on my screen. So here is a 0:43 min mini screencast about how to shorten your IRB prompt.
Implementing Classification using Logistic Regression in Ruby
In this blog post we will walk through how to implement a simple classification algorithm in Ruby using logistic regression. We will use the gem liblinear-ruby to help us setup a model, train it and make predictions in a matter of minutes -
HexaPDF 0.5.0 - Support for Advanced Text Layout
This latest release of HexaPDF has gained advanced text layout functionality (like horizontal/vertical alignment, arbitrarily shaped text, kerning/ligatures and more) -
Server-Side React Rendering
Server-Side React Rendering Read more
Awesome Ruby Newsletter Issue 58
This week’s weekly issue covers the following topics: Read more
Dr Jekyll's Themes Adds Trending Page - Most Starred Static Website Jekyll Themes
Hello, I’ve relaunched the Dr Jekyll’s Themes front page / site. Now showing the top themes, the latest (newest) themes, the trendiest (most starred this month), and the first of all 200+ on the front page. The new trending page shows the most starred (fastest growing) this month. Congrats to Michael Rose’s Minimal Mistakes (⇑377) for the trendiest static website theme. Happy publishing w/ Jekyll. PS: Dr Jekyll’s is (of course) built w/ Jekyll ;-) and open source ‘n’ public domain.
Dynos spinning other dynos with Heroku
Dynamically scaling a single dyno up and down turned out to be a simple, cost-effective solution for doing high-memory, short tasks.
Crystal, TDD and Conway's Game of life
The Game of Life is a cellular automation devised by the British mathematician John Horton Conway in 1970. I’ve been using it as a challenge to learn and teach programming languages in the past 5 years. Read more
Html2Docx Gem
Html2Docx gem first relase. This version include paragraph style and inline tags supporting. I will implement table, image, links, heading and table of contents. Read more
Rails Quiz: XSS Edition
Think you know all about protecting Rails applications from XSS attacks? Test your knowledge with this mini-quiz!
Faster Rails: Indexing Large Database Tables Without Downtime
How to index large database tables in Rails without downtime: