Programming Leftovers
-
Running Shell in Builder - Even a Stopped Clock
Builder has been absolutely wonderful for a designer to dive in and fix up graphics assets for Application. It allows to easily build and test run patches before submitting a merge/pull request on apps hosted on gitlab or github. Ideally you’d press the run button and voilá.
What has been far from wonderful — doing even one line fixes for the GNOME Shell was very hard to test for anyone not building shell daily. getting the environment ready every release has been a chore. From virtual machines, jhbuild, toolbox, jhbuild in VMs to jhbuild in toolbox there was a dozen of way to fail building the latest shell.
-
Sharing argparse arguments with subcommands
argparse subcommands are great, but they have a quirk in which options are only available right after the subcommand that define them.
-
How to Make Vim the Default Editor for Git and OS in Ubuntu and Macos - LinuxWizardry
Most git commands require you to either write or update a message. Typically, when you resolve a merge conflict or you try to modify a commit it opens up an editor for you to make the change. While this is not particular to Linux, on Linux systems you ussually have the option of using Emacs or Vim. By default git will use Emacs which in some cases can be annoying if you don’t know how to use it.
In this article we are going to learn how to change the default editor to Vim so that any time you need to update a commit message or anything like that you get Vim to open up. Besically using the command below you can change the default editor to Vim
-
Ευάγγελος Μπαλάσκας - GitLab as a Terraform state backend - Evaggelos Balaskas - System Engineer
Using Terraform for personal projects, is a good way to create your lab in a reproducible manner. Wherever your lab is, either in the “cloud” aka other’s people computers or in a self-hosted environment, you can run your Infrastructure as code (IaC) instead of performing manual tasks each time.
My preferable way is to use QEMU/KVM (Kernel Virtual Machine) on my libvirt (self-hosted) lab. You can quickly build a k8s cluster or test a few virtual machines with different software, without paying extra money to cloud providers.
Terraform uses a state file to store your entire infra in json format. This file will be the source of truth for your infrastructure. Any changes you make in the code, terraform will figure out what needs to add/destroy and run only what have changed.
-
Stop requiring only one assertion per unit test: Multiple assertions are fine - Stack Overflow Blog
Assertion Roulette doesn’t mean that multiple assertions are bad.
When I coach teams or individual developers in test-driven development (TDD) or unit testing, I frequently encounter a particular notion: Multiple assertions are bad. A test must have only one assertion.
That idea is rarely helpful.
-
5 Open-Source JavaScript Data Chart Libraries Worth Considering
Every business and organization has unique data requirements that a simple JavaScript timeline chart cannot satisfy. Consequently, a trusted and reliable JavaScript Chart Library is required. Effective data presentation is becoming more and more crucial in this digital age. This aids advancement and competitive analysis for firms and organizations. Continue reading to learn more about some top JavaScript chart libraries.
-
This Week in PSC (086) | Perl Steering Council [blogs.perl.org]
We're trying out new ways to send out these regular announcements of what we get up to on the Perl Steering Council. This will be a regular posting that gives a brief summary of what we discussed in our weekly (or at least, near-weekly, give or take scheduling clashes) meetings.