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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Glimmer DSL for SWT Mandelbrot Fractal and Hello, Cursor! Samples
Glimmer DSL for SWT v4.18.4.9 is out! During college, I remember spending very long and tiring nights at the computer lab to implement an Assembly language renderer of the Mandelbrot Fractal. Much has changed since then. We have multi-core processors today, let alone the wonderful Ruby programming language, so I wrote this with Glimmer DSL for SWT by taking advantage of the multi-threaded JRuby and saturating all CPU cores. [more inside]
ActiveWorkflow 0.9.14 release
in this release we bring you various improvements in the user interface, a more lightweight and focused core, and a new API feature that allows you to export your workflows. For more see: https://github.com/automaticmode/active_workflow [more inside]
New Dodge (Ð) Examples Using the crypto-lite Gem - Priv/Pub Keys, Addr - Much Wow!
Hello, I added some new dodge (Ð) examples on how-to use the crypto-lite gem. New examples include: Derive the (elliptic curve) public key from the private key, Generate the Dodge Address from the (Elliptic Curve) Public Key, and so on. Happy secure programming with ruby. Cheers. Prosit.
Reminder: Ruby Open Data Week 2021, March 6th to 12th - 7 Days of Ruby Open Data Gems
Hello, a reminder: Ruby Open Data Week 2021, March 6th to March 12th - 7 Days of Ruby (Open Data) Gems is upcoming. Have your say! Claim a free day! Yes, you can. Help by highlighting open data gems in the ruby universe with your write-up. Cheers. Prost.
ActiveRecord For Databases Without Unique Ids
We don’t get to choose our families. Some of us don’t even get to choose our databases. What do you do if you have the bad luck to inherit a database with non-unique ids? In this case study, Regan Ryan shows us how his team faced the challenge. https://www.honeybadger.io/blog/activerecord-without-unique-id/
Sidekiq in Rails 6
A deep dive into a favourite background-processing system for Ruby on Rails. Updated February 2021 for Ruby on Rails 6.1 and Sidekiq 6.1.3 while also adding a step-by-step guide for deploying to Heroku. https://medium.com/better-programming/how-to-use-sidekiq-in-rails-6-f3b76678362d
Data Science w/ 10 000 CryptoPunks - Statistics - Calculate Rarity & Popularity
Hello, I have written a little article on how to calculate rarity & popularity by type, by accessories, & more for the 10 000 crypto punks population. What hair-style is hot? What’s the latest trend in beards? Goat? Handlebars? Or Mustache? Is Green the new Blue for Clown Eye Shadows? Find the answers and more. Happy data crunching with ruby. Cheers. Prost
Connector - Minimalist Web Browser Built in Ruby
Announcing Connector! A minimalist open-source web browser built in Ruby with Glimmer DSL for SWT. https://github.com/AndyObtiva/connector Thanks to Ruby and Glimmer, I can now build my own web browser in less than an hour. Could this be the new frontier in web privacy? Don’t like common browser privacy? Just roll your own browser in less than a day! https://github.com/AndyObtiva/glimmer-dsl-swt
cryptopunks gem v1.0 - mint your own 24×24 pixel punk images off chain
Hello, I have put together the cryptopunks gem v1.0 that incl. a command line tool that lets you mint your own 24×24 pixel punk images off chain from the True Official Genuine CryptoPunks™ sha256-verified original 10 000 unique character collection; incl. 2x/4x/8x zoom for bigger sizes. Yes, you can use cryptopunks in your own scripts too. Happy minting. Cheers. Prost.
Testing cursor-based pagination with Webmock
A story of discovering API pagination nuances, implementing client for such APIs and testing its interactions: [more inside]
Ruby on Rails View Patterns and Anti-patterns
Rails views are sometimes amazing and fast, and at other times, they can have all sorts of issues. If you want to increase confidence over how you handle your views, then this blog post is for you. [more inside]
Well-behaved Ruby Objects: Equality
A “well-behaved” object in Ruby needs to understand What makes two Ruby objects “equal”? Which version of “equal” (there are several in Ruby)? What makes an object usable as a Hash key? And is that the same thing that makes them Comparable? https://stevenharman.net/well-behaved-ruby-object-equality
Hotwire in Action 🚀
The main goal of this repository is to find a Website that used Hotwire in action, free open source Hotwire apps and learn + start contributing 🚀 [more inside]
3 ways to use Regexp capture groups with back-references
Taking advantage of capture groups to manipulate Strings in Ruby.. SEE MORE
20 Years of Wikipedia! The State-of-Wikipedia & Wikidata in the Ruby Universe?
Hello, let’s celebrate 20 Years of Wikipedia! Happy Birthday! The big question - What’s the State-of-Wikipedia & Wikidata in the Ruby Universe? Looking for Parser, API Clients, Template Functions, Apps, & more. Join the discussion. Any recommendations or tips & tricks more than welcome. Cheers. Prost.
Much Dodge (Ð)? Free (Online) Blockchain Programming Book(lets) with Ruby
Hello, I’ve put together my humble free (online) collection of Blockchain Programming Book(lets) with Ruby on the readme. Get started in crypto. Grow your own money on merkle trees or breed kitties using the sooper-sekretoo mix genes genome science formula and more. Happy (secure) programming with ruby. Cheers. Prost.
Start with StandardError
A short summary of the reasons you should choose StandardError over RuntimeError or Exception when defining a new exception for your app. [more inside]