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.

NSA recommends Ruby as one of 5 languages

“ C#, Go, Java, Ruby, Rust, and Swift” The NSA recommends to use one of these languages to prevent memory based attacks. Memory violations cause up to 70% of all security violations regarding to Microsoft and Google researchers. A great day for Ruby! If someone asks you why you use Ruby for your project you can simply point them to this article https://media.defense.gov/2022/Nov/10/2003112742/-1/-1/0/CSI_SOFTWARE_MEMORY_SAFETY.PDF

You left out Rust
@Keaton Roux. Thx! I corrected it. Getting rusty

The inherent unreliability of after_commit callbacks and most service objects

Service objects and/or after_commit callbacks are ubiquitous in most real-world Rails applications. Whether it’s a good idea or not (ActiveRecord callbacks - I’m looking at you) is a different story, but one thing that is notoriously overlooked in the application design is reliability. And yes, the service objects are equally bad as after_commit callbacks in that regard. [more inside]

Released ActiveWorkflow 0.9.16

ActiveWorkflow 0.9.16 has been released. This is a minor release that adds the ability to wipe out workflow state (useful during workflow development) by removing all messages, log records and agent memory with a single button (with confirmation, just in case). Heroku “demo” mode was removed since a free tier seems to be no longer available (you can still deploy to Heroku with your own configuration). Multiple dependencies were updated.

Released ruby-nmap 1.0.0!

Released ruby-nmap 1.0.0! This major release switches to the brand new command_mapper library (which handles mapping in nmap options to class attributes), adds support for more nmap options, and improves parsing of structured NSE script output data from nmap XML output. See the UPGRADING guide on how to upgrade from 0.10.0 to 1.0.0.

artfactory gem in Action - Generate Pixel Art Via Text-To-Image Prompts

Hello, In the ongoing learn pixel art programming with ruby series I put together a new artfactory gem that let’s you generate pixel art via text-to-image prompts - no A.I. training or models needed / required ;-). The “magic” works via all-in-one image spritesheets (and meta datasets in .csv). To get you started I “right-clicked & saved” about a dozen “on-blockchain” artwork layers for easy “off-blockchain” (re)use. Happy pixel pushing and profile pict(ure) pixel art generation with ruby.

25 Days of Punk (Pixel) Head / Character Art Collections - December 1st to 25th

Hello, Some years ago I used to organize and publish “25 Days of Ruby Gems - Ruby Advent Calendar 2020, December 1st - December 25th” and such (ironically I am cancel-cultured and perma-banned twice in the ruby world, that is, on r/ruby and ruby-talk (- see the (Ruby) Case Studies @ Choose A Conduct for the backstory). Anyways, let’s (re)try and revive the tradition with a punk (pixel) art twist (or is that pivot?). The idea is to publish a (free ruby pixel art programming how-to) article a day starting December 1st, 2022 that shows how you can put together (yes, you can!) do-it-yourself (DIY) a punk (pixel) art collection (from scratch). Yes, in ruby. You are more than welcome to “claim” a day and sign-up for an article in the series. .

[ANN] Perfect Shape 1.0.6 Released

PerfectShape is a collection of pure Ruby geometric algorithms that are mostly useful for GUI (Graphical User Interface) manipulation like checking viewport rectangle intersection or containment of a mouse click point in popular geometry shapes such as rectangle, square, arc (open, chord, and pie), ellipse, circle, polygon, and paths containing lines, quadratic bézier curves, and cubic bezier curves, potentially with affine transforms applied like translation, scale, rotation, shear/skew, and inversion (including both the Ray Casting Algorithm, aka Even-odd Rule, and the Winding Number Algorithm, aka Nonzero Rule). Additionally, PerfectShape::Math contains some purely mathematical algorithms, like IEEE 754-1985 Remainder. https://github.com/AndyObtiva/perfect-shape

Loading older posts