Streamlining Rails Applications: Associating Devise Users with Posts

In the world of web development, one of the most powerful features of Rails is its seamless ability to manage user authentication through Devise. But what happens when you want to extend this functionality to allow users to create and manage their own resources, like posts? Let’s dive into how you can associate Devise users … Continue reading Streamlining Rails Applications: Associating Devise Users with Posts

Getting Started with the Faker Gem: A Fun Tool for Generating Test Data!

Getting Started with the Faker Gem: November 7, 2024 If you've ever needed some random data for testing or just wanted to add a bit of fun to your project, the Faker gem is here to help! Faker generates realistic, random data, like names, addresses, phone numbers, and even fictional characters, in seconds. Originally inspired … Continue reading Getting Started with the Faker Gem: A Fun Tool for Generating Test Data!

Optimizing Garbage Collection in Rails with Autotuner

Garbage collection (GC) is an essential part of Ruby's memory management system, but it can sometimes introduce performance bottlenecks, especially in web applications running in production. For Rails applications, optimizing GC behavior can lead to improved response times, faster boot-ups, and reduced resource usage. The Autotuner gem provides an intelligent way to analyze GC performance … Continue reading Optimizing Garbage Collection in Rails with Autotuner

Are you programming, or are you still playing like you did at the beginning?

Regarding Python, I have extensive experience with MicroPython, Django, Matplotlib, Pandas, and so on. However, in the last few years, I have focused on Ruby on Rails and Ruby and miss using Jupyter. That said, with Ruby, you have tools like IRB, Rails console, Pry, RSpec, and all these amazing tools, so you don’t necessarily … Continue reading Are you programming, or are you still playing like you did at the beginning?

Some code to learn

import network sta_if = network.WLAN(network.STA_IF) sta_if.active(True) sta_if.scan() sta_if.connect("los_tres_ositos", "VQLzxuGs1") sta_if.isconnected() from microWebSrv import MicroWebSrv # ---------------------------------------------------------------------------- @MicroWebSrv.route('/test') def _httpHandlerTestGet(httpClient, httpResponse) : @MicroWebSrv.route('/test', 'POST') def _httpHandlerTestPost(httpClient, httpResponse) : @MicroWebSrv.route('/ggerman') def _httpHandlerGgermanGet(httpClient, httpResponse) : @MicroWebSrv.route('/ggerman', 'POST') def _httpHandlerGgermanPost(httpClient, httpResponse) : @MicroWebSrv.route('/edit/') # /edit/123 -> args['index']=123 @MicroWebSrv.route('/edit//abc/') # /edit/123/abc/bar -> args['index']=123 args['foo']='bar' @MicroWebSrv.route('/edit') # /edit -> args={} def … Continue reading Some code to learn

Programador: ColibrΓ­ Wii – ESP8266 (Primera parte)

ESP8266: Wii ColibrΓ­ es un proyecto que tiene como finalidad generar dispositivos que se manejen vΓ­a WiFi. En este post les dejo una forma casera de armar un programador para el dispositivo ESP8266 como vemos en la foto. En el primer caso baje el voltaje de 5v a 3.3v que utiliza el dispositivo usando dos … Continue reading Programador: ColibrΓ­ Wii – ESP8266 (Primera parte)

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