RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

How I Write Code: Pen & Paper

Even though I love programming, I try not to sit in front of a computer screen too much. I do not find staring at a screen all day beneficial, not for my physical health, nor for my mental health. In the last few years, I’ve started a habit of sketching my programming ideas using pen and paper. I’m not talking here about todo lists, or making diagrams. I’m talking about actually writing code using pen and paper. Let me explain.

Released ruby-masscan 0.1.0

This is the first release of ruby-masscan, a Ruby interface to masscan. Masscan is an “Internet-scale” port scanner and is capable of scanning whole class A subnets very quickly. ruby-masscan supports automating the masscan command from Ruby and parses masscan’s binary, list, and JSON output files.

hexdump 1.0.0 released!

hexdump.rb 1.0.0 has been released! This major release adds lots of hexdump features, such as ability to decode typed data (uint16, int32, float64, etc), zero-padding, skipping the first N bytes or only reading N bytes, index offsets, omitting repeating rows, better UTF character encoding support, column/chars grouping, ANSI styling/highlighting, and micro-optimizations that allow it to process 1Mb of data per second. Not only is hexdump 1.0.0 Ruby’s most advanced hexdump library, it also competes feature-wise with other language’s hexdump libraries. Checkout the Examples to see more!

command_kit 0.2.0 released!

command_kit 0.2.0 adds support for ANSI background colors, FreeBSD/OpenBSD/NetBSD OS detection, Linux distro detection, xdg-open/open support for opening a file in it’s preferred or registered application, package manager detection and integration, and sudo detection and integration. command_kit is a Ruby toolkit for building clean, correct, and robust CLI commands as plain-old Ruby classes.

bundler-audit 0.9.0 released!

bundler-audit 0.9.0 has been released. This release adds support for JUnit output (--format junit), a new --config option, improvements to the bundle:audit rake tasks, and a compatibility fix for psych >= 4.0.0 and the upcoming Ruby 3.1.0 release. Update today!

Released 0.9.0.1 with a hotfix/workaround to support Psych < 3.1.0 and allow…

My Recipe for Optimizing the Performance of Rails Applications

Rails performance audits have been my main occupation and source of income for over a year now. In this blog post, I’ll share a few secrets of my trade. Read on if you want to learn how I approach optimizing an unknown codebase, what tools I use, and which fixes are usually most impactful. You can treat this post as a generalized roadmap for your DIY performance audit with multiple links to more in-depth resources. [more inside]

How to Draw Shiba Inu or Kawaii Dog - Do-It-Yourself (DIY) Pixel Art (24x24) Series

Hello, I have put together a new pixel art getting started guide titled How to Draw Shiba Inu or Kawaii Dog - Handmade (24x24) Pixel Art. Yes, you can. Get inspired by watching pixel art videos on the internets and turn the paper version into ready-to-mint digital gold originals!

This post has been reported a few times, but I’m letting it stay as while it is…

RSpec Tracer is a specs dependency analysis tool and a test skipper for RSpec

RSpec Tracer is a specs dependency analysis tool and a test skipper for RSpec. It maintains a list of files for each test, enabling itself to skip tests in the subsequent runs if none of the dependent files are changed. It uses Ruby’s built-in coverage library to keep track of the coverage for each test. For each test executed, the coverage diff provides the desired file list. RSpec Tracer takes care of reporting the correct code coverage when skipping tests by using the cached reports. Also, note that it will never skip any tests which failed or were pending in the last runs. Knowing the examples and files dependency gives us a better insight into the codebase, and we have a clear idea of what to test for when making any changes. With this data, we can also analyze the coupling between different components and much more. [more inside]

Loading older posts