RSSAmplifier

Blog

My random nerd notes

Rael G.C.

raelcunha.comRSS feed ↗10 posts

Latest posts

Erro ao compilar ruby 2.5, 2.6, 2.7 e 3.0 no Ubuntu

Desde o Ubuntu 22.04, versões mais antigas da linguagem Ruby como 2.5 , 2.6 , 2.7 e 3.0 dão erro ao serem compiladas por usarem OpenSSL 1.1 , que nas versões atuais foi substituído pela versão 3 . Então, se você tentar instalar alguma dessas versões usando o rvm , você vai ver vários erros falando que alguma coisa is deprecated: Since OpenSSL 3.0 . Mas é possível compilar o OpenSSL 1.1 e fazer o…

Cannot build ruby 2.5, 2.6, 2.7 and 3.0 on Ubuntu

Since Ubuntu 22.04, old Ruby versions like 2.5 , 2.6 , 2.7 and 3.0 cannot be compiled because they rely on OpenSSL 1.1 and it has been replaced by version 3 . So, if you try to install those versions using rvm , you’ll get an error that something is deprecated: Since OpenSSL 3.0 . But we can build OpenSSL 1.1 and point rvm to it. First check if you have the build-essentials package installed: sudo…

Instalando o Droidcam no Ubuntu usando DKMS

O programa e aplicativo DroidCam transforma seu celular em uma webcam para o seu computador. Você pode usá-lo com programas de chat como Zoom, Discord, MS Teams. Estou detalhando os passos para instalá-lo no Ubuntu usando o app clássico . É possível instalá-lo usando o app que funciona como um plugin do OBS . Além disso, os passos abaixo usarão o dkms , que é um mecanismo do Linux para permitir a…

Install Droidcam on Ubuntu using DKMS

DroidCam turns your phone into a webcam for your computer. You can use it with chat programs like Zoom, Discord, MS Teams. I’m describing the steps to install it on Ubuntu using the classic app . It has an alternative app that works like an OBS plugin . Additionally the below steps will use dkms , which is a Linux mechanism to allow automatically recompile a driver when a new kernel is installed.…

Rails e Vite

Se você deseja apenas usar Vite como substituto do Webpacker integrado ao Rails (como era no Rails 6), basta usar Vite Ruby . O objetivo deste artigo é diferente: ter 2 ambientes separados (Rails API e React frontend) usando o Vite, mas com algum grau de integração: você pode usar o Puma em produção para servir o aplicativo React (ou seja, apenas um contêiner) você pode usar node para automatizar…

Rails and Vite

If you just want to use Vite as a replacement for the Rails included Webpacker (as it was up to Rails 6), you can simply use Vite Ruby . The goal of this article is different: to have 2 separate environments (Rails API and React frontend) using Vite, but with some degree of integration: you can use Puma in production to serve the React App (i.e., one container only) you can use node to automate…

Instalar Node e Ruby (on Rails) usando asdf

Eu percebi que muitas pessoas têm dificuldade em configurar o Node e o Ruby. Eu sempre usei o nvm e o rvm para gerenciar cada linguagem (até porque sou eu quem gera os binários para o Ubuntu no time do rvm ), mas o asdf é um gerenciador de versões de tempo de execução múltiplo que pode lidar com ambos. Instalar asdf Você precisará do curl e git instalados. Se não estiverem instalados, instale com:…

Install Node and Ruby (on Rails) using asdf

I’ve realized that a lot of people have a hard time configuring Node and Ruby. While I’ve been used to install nvm and rvm to manage each language (even because I’m the one building Ubuntu binaries in the rvm team), asdf is a multiple runtime version manager that can handle both. Install asdf You’ll need curl and git installed. If not installed, install with: sudo apt install curl git Now install…

Curso Rápido de Postgres

As anotações abaixo, assim como no antigo artigo sobre Oracle são focadas em usuários vindos do MySQL. Então vou assumir que você sabe o básico de SQL e está familiarizado com a linha de comando e operações como criar, exportar e importar bases de dados. Lembre-se: a documentação do Postgres é sua melhor amiga! Uma conta de usuário no Postgres é chamada de role . E ele (PostGres) espera uma role…

Postgres Crash Course

These Postgres notes, like the old Oracle article is focused on users coming from MySQL. So, I’m assuming that you know the SQL basics and are familiar with command line tools, database creation, dump and import operations. Remember that Postgres documentation is your friend. A PostgreSQL user account is called role . It expects a role matching an Unix user. Let’s create a new role for current…