1. Windows: Use Graphviz without Installation

    Graphviz is open source graph visualization software that is incredibly popular. In this post, we see how to run it on Windows without installing the software package.…


  2. Windows: Setting Environment Variables and Changing the PATH Permanently

    Every now and then, you need to edit the Windows system PATH or add an Environment variable. This is especially so if you want to use applications without installing them. This post shows how you can do that.…


  3. Windows: Exporting Office Apps Customisations

    If you use the Quick Access Toolbar in Office apps (and you really should) or customise the Ribbon, you have to redo your setup again when you move PCs or set up your PC again. This post covers the built-in way to make this task easier.…


  4. Windows: Taming Windows Search

    I discovered that Windows Search was taking approximately 139GB (out of the 300GB) on my system drive, and decided to look for ways to tame it a bit. These are my notes as reference (and for future setups).…


  5. Shoutout to some really useful online JSON tools (2024 Edition)

    Just a shout-out to a few great online JSON tools that I use quite a lot when working with new JSON files. This is the version of the post updated in Nov 2024 with a couple of new additions.…


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

    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.…


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

    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 see a few more details below.…


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

    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.…


  9. Windows: Set an icon for the Windows Terminal Shortcut

    I have a shortcut to Windows Terminal in my Quick Launch bar, but it often does not show the icon, so I set out to fix it. This post documents what is needed.…


  10. Migrating Sequence Diagrams from WebSequenceDiagrams to Mermaid

    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.…


  11. Windows: Make the Windows Hotspot Network Private

    For some applications (in my case, Spacedesk), it helps to make the wireless network you are on marked as Private (if it is trusted) so that the firewall allows connections. This is a bit complicated when the wireless network is created by Windows using the Hotspot functionality.…


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

    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.…


  13. Hosting HTML, JS and CSS pages simply with GitHub Pages

    If you already have a set of HTML, Javascript and CSS pages ready to go and want to host it some place, GitHub Pages tied to a repository may not be a bad way to host it easily. This post explains what I did to achieve exactly that.…


  14. OpenLayers - Grayscale, dark maps and more with CSS Filters

    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.…


  15. Quick Notes about Structurizr - Part 1

    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.…


  16. Windows Batchfile Programming Notes - Part 1

    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.…


  17. Portable setup for PostgreSQL on Windows (Pg16 Edition)

    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 PostgreSQL only some times and do not want it running all the time, or if you want to use different versions and want to have them switched on from time to time, or if you just want a portable setup that you can copy to any computer and get it running, then this post is for you.…


  18. Windows: Name your command windows

    If you use Windows and the Command Prompt, you can sometimes get lost in the different command prompt windows/ tabs that are open. This is a simple thing you can do to make it slightly easier to know which window is for what.…


  19. Rails 7.1 automatically loads lib! Now, what?

    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


  20. Fix: Rails main Rubocop Error on Windows

    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.…


  21. Using Rails main for Development

    This post covers how to run on Rails main rather than a released version for developing your web application.…


  22. JRuby 9.4 on Windows: Day 0 - install and Hello World

    JRuby is a Java implementation of Ruby that runs atop the Java Virtual Machine. The JRuby wiki has this to say:…


  23. Ruby Tips 13 - Find code that has not been documented with YARD

    I use YARD for documenting my Ruby and Rails code. One of the things that it does when it runs is that it gives you the stats of your documentation coverage. I often forget how to find what has not been documented and this is to help me remember it.…


  24. Rubymine warning - Typo: in word

    When using Rubymine, you will invariably reach the point where it starts complaining that a word that makes sense to you is considered a typo by Rubymine and highlighted as a warning. I normally try to keep these clean if I can.…


  25. Ruby Tips 12 - Simplify your code with Ruby Array values_at

    A programming language like Ruby comes with lots of features and capabilities which we often don’t learn in detail and instead end up rewriting things in our application code. This post shows how values_at in the Ruby Array class can simplify your code in some cases.…




All Posts by Tags