• Trends
  • Topics
  • Nodes
Search for keywords, #hashtags, $sites, add a dash to exclude, e.g. -$theonion.com

From onghu.com

Rails 8.0 with Ruby 3.3 on Windows: It just works! (and what to do if it doesn't!)

0 1

Rails 8.0 was released just a few days back and as a user primarily on Windows, I was keen to see it all works and runs on Windows. I had done this check previously with Rails 7.1 on Ruby 3.2 on Windows and it had worked fine. Thanks to the stellar work of everyone involved, it just works. Let’s...

on Tue, 9AM

From onghu.com

Notes on Using Licensed and Licensee for OSS Licensing and SBOM: Rails Apps

0 1

Have you ever wondered what Open Source Software (OSS) is being using in your product and what licenses apply to these dependencies? GitHub/licensed is a tool that can help to scan your codebase and create a list of licenses for you. Let’s look at how to use it for Rails applications.

on Sun, 4PM

From onghu.com

10 + 1 Tips for Beginners who are Starting Out

0 1

I noticed and responded to a Tweet that simply asked – what tips would you give to beginners who are just starting out (in coding/ programming)?

on Nov 16

From onghu.com

Migrating Sequence Diagrams from WebSequenceDiagrams to Mermaid

0 0

Both WebSequenceDiagrams.com and Mermaid support the creation of sequence diagrams using plain text. While the formats are similar, there are some small differences that mean that you probably cannot just paste diagram text from one into the other. This post lists the items that I found recently.

on Nov 10

From onghu.com

Making Mermaid Sequence Diagrams Prettier - Part 1

0 0

I like Mermaid but I find the rendered diagrams do not look at pretty as some of the other tools, so I set out to find out more on how the diagrams could be styled to look different. In this post, I summarise my findings and approach for styling sequence diagrams (the diagram that I want to use...

on Nov 10

From onghu.com

Ruby Tips 14 - Copy a file with a new base name

0 0

Every now and then, we want to save a file before we overwrite it. This simple code helps extract the base name, give it a new name, and then copy it to the same folder as the original file.

on Oct 19

From onghu.com

You're probably not using your Calendar enough

0 0

Just over six years back, I wrote up my 6 tips for travel, calendars and time zones to share what I have found to be helpful while travelling. When travel resumed after COVID-19 and I started to travel again, I realised that I have started to use my calendar on the phone even more to help when I...

on Aug 4

From onghu.com

Why we like to use JRuby

0 1

We use JRuby quite a bit both for Rails applications and also for general Ruby scripts. I do get asked why one would use JRuby instead of Ruby (meaning C Ruby). This short post is an attempt to list out the main reasons we like to use JRuby. As background, I should mention that we are more a...

on Jul 29

From onghu.com

OpenLayers - Grayscale, dark maps and more with CSS Filters

0 0

This week, I needed to render a simple map with some markers on it, and I felt that it would be great to have it shown in grayscale. While looking for that, I stumbled on the weird and wonderful world of CSS filters and how they can be used to style web maps.

on Jun 25

From onghu.com

Rails: Load multiple records by ID (find v where)

0 0

ActiveRecord includes lots of handy methods to query data from the database. Sometimes, it can be confusing which ones work in which way and . This post touches on a common need – look up multiple records from a database table given the ID of the records.

on Jun 24

From onghu.com

Rails 7.1 automatically loads lib! Now, what?

0 0

All the directories under app are automatically loaded by Rails in production. Further, since Rails 7.1, it’s quite easy to get Rails to automatically load all the files in the lib directory. This is enabled by having this obvious sounding line in config/application.rb

on Jun 9

From onghu.com

Quick Notes about Structurizr - Part 1

0 0

For the past few months, I have been using Structurizr Lite for documenting my architectures as code. While doing this, I have had to find out some things. This is just a collection of these things.

on May 19

From onghu.com

Grace under fire: thoughts on support during an issue

0 1

For a while, I have wanted to put down my thoughts on how we should behave when providing support to the users of our systems if an important issue has been found. More specifically, these ideas come from providing support in enterprise setups where you might work with a system integrator or a...

on May 15

From onghu.com

Windows Batchfile Programming Notes - Part 1

0 0

I’m converting a shell script to a Windows batchfile and had to search up a few things to fill in the gaps. These are notes for me to be able to find these details again.

on May 5

From onghu.com

Portable setup for PostgreSQL on Windows (Pg16 Edition)

0 0

The normal method for using PostgreSQL on your Windows machine is to download the installer and then set it up. It’s easy and will do all the necessary things that you need for it. It will also set up services and other things that you might need. On the other hand, if you’re someone who uses...

on May 4

From onghu.com

Fix: Rails main Rubocop Error on Windows

0 0

In an earlier post, we saw how to install and use Rails main on Windows for developing your web application. This post describes an error related to Rubocop and how to fix it.

on Apr 20

From onghu.com

Portable setup for PostgreSQL on Windows

0 0

The normal method for using PostgreSQL on your Windows machine is to download the installer and then set it up. It’s easy and will do all the necessary things that you need for it. It will also set up services and other things that you might need. On the other hand, if you’re someone who uses...

on Mar 17

From onghu.com

Rendering Mermaid Diagrams in Textile pages in Jekyll

0 0

Recently, I have taken a strong interest in Diagrams as Code and specifically, I have been looking at Mermaid, Structurizr and C4 models. I want to be able to include some diagrams in this blog but wanted to do it without using extra gems. This post explains how to do it if you’re writing pages...

on Jan 3

From onghu.com

Ruby 3.3 on Windows: Day 0 - install and Hello World

0 0

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write (from the Ruby web site). On Christmas Day 2023, the core team released version 3.3 with major improvements and new features...

on Dec 27

From onghu.com

Rails 7.1 with Ruby 3.2 on Windows: It just works!

0 0

Rails 7.1 was released a couple of days back and as a Ruby user primarily on Windows, I was keen to see if it works and runs on Windows.

on Oct 8, 2023