1. Rubymine and RuboCop complain - no such file to load

    When using Rubymine with RuboCop in a slightly complex Ruby project, you might occasionally see an error like this which you feel is strange since the path in question is available to your Ruby program since the $LOAD_PATH is changed within the script.…


  2. Exporting a List of Installed Programs in Windows 10

    At long last, I am changing my PC – moving up from my old workhorse to, well, a newer work horse. However, it usually takes me a few weeks to get my new computer set up. Over the (past 20) years, I have ended up customizing my Windows PC in a certain way that I think helps my productivity. This means that I expect a lot of software to be there on my PC and certain things to be configured in specific ways.…


  3. Git Notes #01

    These are two short notes to remind myself about how a couple of things in Git work.…


  4. Navigate to a command file's directory in Windows CMD Shell

    I use Ruby a lot on Windows and it’s quite common to use a simple Command file to launch the script, especially when scheduling it using something like Windows Scheduler or PyCron. When launching a Command script in Windows, it will usually have an empty environment and will launch in something like c:\windows\system32 instead of the directory where the command scripts is. Often, it’s quite useful to move to the directory of the script so that everything works with relative paths.…


  5. Ruby Tricks 5 - Adding a Time Zone to a Date Time String

    Every now and then, we get data that has a date time string in the local time zone but with no time zone specified. This short note is on how to attach the correct time zone to the data so that it can be used in systems that rely on the time zone.…


  6. TE@Onghu - T-Engine, T-Kernel, uT-Kernel and TRON Information

    Way back in time from 2004 – 2010, I spent a lot of time working in embedded real-time operating systems, mainly focusing on the use of µC/OS-II and the Japanese T-Kernel which evolved up from the TRON real-time kernel that was in wide use in embedded systems in Japan. At that time, I was the first person outside Japan to port the T-Kernel to a different CPU – I had ported the kernel in 2004 to the TriCore (a CPU with RISC, microcontroller and DSP instructions in the same CPU core instruction set) from Infineon Technologies.…


  7. Using Bundler Package to Distribute Gems and Ruby Applications together

    There are a few ways to ensure that your Ruby application/ script has all its dependencies available when you set it up or deploy. The most common way is to use Bundler so that you can specify your Gemfile and Bundler can help set up the gems on a remote server when you deploy. Rails lets you “freeze” your gems to the vendor directory which is convenient so that you can package everything together and distribute it. I wanted to do the same for a non-Rails Ruby application but finding material on this is quite difficult since everything leads back to Rails and finding recent material is quite difficult.…


  8. Ruby Tricks 4 - Using a Ruby Gem from a Private BitBucket Repository

    All Ruby and Rails developers need to use Ruby gems for common work. It’s also a great practice for you to create your own Gems to separate functionality that you can reuse across your projects. You can publish your gems to the world using the RubyGems site which is the starting point for almost all gems!…


  9. Ruby Tricks 3 - Finding all Dependencies of a Ruby Gem

    Recently, for some work, I had a question about all the dependencies that a gem had. I went to the gem specification file and took a look – that obviously had a list of gems which had their own dependencies. I wanted to have a way to get all the dependencies so that I would know what I was dragging in by using a seemingly simple gem [like many people, I was wondering if using a Rails module by itself would drag too many things in].…


  10. Journey to Jekyll: Part 6 - SSL with ZeroSSL on IBM Cloud/ Bluemix

    This site is set up on IBM Cloud and built using Jekyll. When I took a casual look at securing this blog site with HTTPS, it looked like using ZeroSSL (as a free SSL certificate provider) should have been quite easy.…


  11. Journey to Jekyll: Part 5 - Showing .directories with Staticfile Buildpack

    If you’re using IBM Cloud and Staticfile Buildpack for Jekyll and want to show the contents of directories that start with a “.” on your statically generated site, you need to do a couple of things.…


  12. Journey to Jekyll: Part 4 - Adding .directories to your site

    We have looked at how to get your Jekyll site up and running. In some cases, you need to have a directory on your site that starts with a “.” – usually, some system item requires it. By default, when Jekyll is building your site, it will ignore directories in the root of your Jekyll project that start with a “.” and uses directories that start with an “_” as inputs for building the site.…


  13. Power BI - Create new table by expanding columns

    I use Power BI to visualise the team I work with and to see where we have been spending our time. Recently, I was trying to see if I could visualise what people would be busy with over the next few months and found it a bit challenging since the source data becomes multi-dimensional. I used a small Ruby script to bail me out of the immediate need that I had but I wanted to look for a method that worked within Power BI itself (using PowerQuery and/ or DAX) so that the solution was self-contained.…


  14. My Hardware Setup at Home

    With the recent discussions around working from home and home-based learning due to COVID-19, someone asked me what equipment I use at home, and I wrote up something to make a list of what serves me well. It’s equipment that I have collected over the better part of 10 years buying some things new and some things used to end up with a setup that works well for me. For most part, I have the same setup in the office which makes muscle memory work more effectively.…


  15. Launching a Windows 10 App from the Command Line

    I’m trying to note down things that have helped me while using Windows – to the point that I feel that my setup is geared towards me, and it sometimes, becomes a challenge when using someone else’s computer temporarily. The post is for me to remember how I did something but if it helps someone, that’s a plus!…