Building APIs in Ruby with Sinatra or Rails

November 12, 2024 Building an API (Application Programming Interface) is a common task in web development today. APIs allow different applications to communicate with each other, share data, and perform various tasks without a direct user interface. Ruby, one of the most flexible and developer-friendly languages, offers two powerful frameworks—Sinatra and Ruby on Rails—both of … Continue reading Building APIs in Ruby with Sinatra or Rails

Automate, Test, Repeat: The Art of Blending Rake Tasks with RSpec

February 2, 2025 In the ever-evolving world of Ruby and Rails development, two tools often steal the spotlight: Rake, the silent workhorse automating mundane tasks, and RSpec, the meticulous detective ensuring your code behaves as expected. But what happens when you bring these two together? Magic. Let’s explore how combining Rake tasks with RSpec tests … Continue reading Automate, Test, Repeat: The Art of Blending Rake Tasks with RSpec

Metaprogramming in Ruby: Unleashing the Magic of Dynamic Code

November 12, 2024 Ruby is celebrated for its unique ability to make coding feel almost magical, largely thanks to its flexible metaprogramming capabilities. Whether you're building DSLs or elegantly manipulating class structures, metaprogramming in Ruby unlocks new horizons. Here’s a deep dive into how you can harness this "magic" and take full advantage of Ruby's … Continue reading Metaprogramming in Ruby: Unleashing the Magic of Dynamic Code

Compartiendo mi Docker ggerman/games

#docker @docker Este container contiene algunos de los juevos viejos que a mi me apasionaban de chico. Para empaquetarlo utilize este tutorial: http://www.jamescoyle.net/how-to/1512-export-and-import-a-docker-image-between-nodes Para ser mas especifico esta linea: docker save ggerman/games > docker-games.tar Github ayuda: https://github.com/ggerman/docker-games https://github.com/ggerman/docker-games.git # bzip2 -d docker-games.tar.bz2 Para recuperarlo luego de bajarlo es con esta linea: (previa instalación de http://docs.docker.com/mac/started/ ) docker load … Continue reading Compartiendo mi Docker ggerman/games

Configurando vigilancia casera con IP Webcam 4 Android

Desde hace tiempo que intento ver la forma de monitorear la casa y descubrí que mediante el software:  https://play.google.com/store/apps/details?id=com.pas.webcam podemos reciclar los smartphones viejos que tenemos (o mangueamos) y generar una red de vigilancia a un bajo costo (aunque una camara IP sale $1500 o u$s 110 mas o menos cosa que poner 4 camaras serian … Continue reading Configurando vigilancia casera con IP Webcam 4 Android