Suchtube: YouTube search as a service
Let me introduce you Suchtube
, Youtube search as a service.
Making DB backups with Ruby
The past week I mounted a DB backup system, for a couple of Ruby web apps (Rails and Sinatra), using the Backup gem. I found the process pretty straightforward, so I decided to share my experience.
Calling super in Ruby
Ruby, like most programming languages, has a set of reserved identifiers, keywords: if
, else
, return
, do
, while
, self
, yield
, true
, false
, etc.
Rails Notifications: Subscribe to internal events
We’re all agree that it is very useful (and necessary) to know how our application is performing in production (detect bottlenecks, generate statistics, measure metrics, etc).
Jekyll-Timeago: Time ago date filter for Jekyll
Custom and simple implementation of timeago
date filter. Main features:
Download file via Ajax request
Everything retrieved via Ajax goes into javascript “memory” space. This is because JavaScript can’t interact with disk. That would be a security issue. Ajax is not designed to do this kind of stuff. But as always, there are some tricks … Here is a simple approach of how to get it in a Ruby on Rails based application.
Introducing Unscoped Associations
Ruby on Rails is a great framework with a lot of built-in options and customizations, specially regarding the data/models layer (Active Record). One of them is the ability to collect instances of a particular class using a default_scope
. Very useful to collect “scoped” data by default, but pulling objects via associations is also affected, leading sometimes to weird behavior (think in “soft deletes”).
Hello world!
For a long time I wanted to have a personal site and blog. One day surfing on the Internet I found Jekyll
and offers me everything that I need in a simple and easy way: static pages generator (html, js and css), blogging system (posts, categories, etc), generate content using Markdown, templates and layouts engine, GitHub Pages integration, customization and a lot of other interesting stuff. And it’s written in Ruby, one of my favourite languages.