src="/computing/running-ubuntu-in-virtualbox/images/abstract-penguin_hu67780d8962699415443dbec889740de1_329683_520x320_fill_box_center_3.png"
class="card-img-top img-fluid"
alt="And abstract image of programming code surrounded by a light bulb."
width="520"
height="320"
loading="lazy"
>
Notes on Successfully Running Ubuntu in VirtualBox
January 26, 2024
As a Software Developer who likes to use Ubuntu for Development but can sometimes only run it as just another window in Windows, I would like to share some nuanced VirtualBox configurations I built up over the years.
Continue reading
src="/computing/setting-default-values-in-github-actions-workflows/images/programming-code-surrounding-a-light-bulb_hu770c90c8b64a69e4d183a776faccd5af_947068_520x320_fill_box_top_3.png"
class="card-img-top img-fluid"
alt="And abstract image of programming code surrounded by a light bulb."
width="520"
height="320"
loading="lazy"
>
Setting Default Values in GitHub Actions Workflows
October 20, 2023
GitHub Actions is a powerful platform for automating workflows and tasks in your software development process. When creating workflows, you often need to set default values for variables or parameters, especially when certain values are not always going to be provided. In this blog post, let’s explore two techniques to set default values in GitHub Actions workflows, including a handy ! contains() approach and the double pipe || hack. We’ll also discuss the potential limitations of the double pipe hack.
Continue reading
src="/computing/triggering-a-github-actions-workflow-with-a-slack-slash-command/images/_hud6addc6c40aa074591337ef15f096a9b_1093409_3f00ff298749796ea9acc1a62ffd1fad.png"
class="card-img-top img-fluid"
alt="A post style illustration of a slack slash command that shows an Octocat"
width="520"
height="320"
loading="lazy"
>
Triggering a GitHub Actions Workflow with a Slack Slash Command
May 10, 2021
In this post I am going to show how you can trigger a GitHub Actions workflow with a Slack Slash command.
Continue reading
src="/computing/serving-static-assets-from-bloomreach-cms/images/hippo_hu757f65a653ebf2063b5b1c0ff8bb7c85_2134978_520x320_fill_box_center_3.png"
class="card-img-top img-fluid"
alt="An abstract illustration, featuring a stylized file icons with a mini hippo design prominently displayed."
width="520"
height="320"
loading="lazy"
>
Serving Static Assets from Bloomreach CMS
June 19, 2019
Serving a static files with Bloomreach (formally known as Hippo CMS), such as BingVerify.xml, is not as simple as dropping it in the webapp folder. However, with a little extra configuration Bloomreach CMS will serve the file.
Continue reading
src="/computing/java-junit-reset-a-singleton/images/junit-reset-a-singleton_hu4c5bb5c477df1a75419433dc580e8bb1_1373945_520x320_fill_box_center_3.png"
class="card-img-top img-fluid"
alt="Illustration of Java code resetting a singleton in a JUnit."
width="520"
height="320"
loading="lazy"
>
Java JUnit: Reset a singleton
February 28, 2018
Java singleton’s are hard to unit test because the state of the singleton is altered as each test runs. But for testing sake you can reset the singleton’s state use reflection. Here is an example that worked for me.
Continue reading
src="/computing/java-stream-api-arraylist-to-jsonarray/images/java-stream-api-arraylist-to-jsonarray_hu9ea289fc5bd53289fa9326258a1fe765_1479169_520x320_fill_box_bottom_3.png"
class="card-img-top img-fluid"
alt="Illustration of Java code converting an ArrayList to a JsonArray, displayed on a simple and clean background."
width="520"
height="320"
loading="lazy"
>
Java Stream API: ArrayList to JsonArray
February 3, 2017
You can convert an ArrayList to a Java EE JsonArray using a Java Stream in the following way.
Continue reading
src="/computing/wildfly-removing-a-failed-deployment-with-jboss-cli/images/a_huc6f0f2cd1f9eb99ca0c7608505059d7d_2964702_d32468030c74cf7787340bad4c3da544.png"
class="card-img-top img-fluid"
alt="Humorous illustration of a server mascot panicking while removing a failed deployment with JBoss CLI, with error messages flying around."
width="520"
height="320"
loading="lazy"
>
WildFly: Removing a Failed Deployment with JBoss CLI
September 5, 2016
I was having trouble working out how to remove the WAR file of a failed deployment from WildFly using the JBoss CLI. I found that I could not simply type undeploy <WAR name> to remove a failed deployment from WildFly using the JBoss CLI. However, I did find that the following command let me remove a failed deployment and it’s WAR file.
Continue reading
src="/computing/find-the-context-path-with-jsf/images/find-the-context-path-with-jsf_huf4afd298b3488c62c5e26a4cc9af3215_1104355_520x320_fill_box_center_3.png"
class="card-img-top img-fluid"
alt="Illustration of a laptop displaying Java code related to finding the context path with JSF, set against a web development-themed background."
width="520"
height="320"
loading="lazy"
>
Find the Context Path with JSF
September 22, 2015
Sometimes JSF does not have a component that will produce a particular type of HTML element. That’s not a problem but, I always forget the three method deep route to the context path. I always find I have to work through an IDE’s code completion tool to find the application’s path.
Continue reading
src="/computing/how-to-store-variables-in-jsf-facelets/images/store-variables-in-jsf_hubc07c3f98fb7f8e2431f3ce9c2b83c49_218745_520x320_fill_q75_box_bottom.jpg"
class="card-img-top img-fluid"
alt=""
width="520"
height="320"
loading="lazy"
>
How to Store Variables in JSF Facelets
September 7, 2015
JSF Facelets can store the returned value yielded from a call to an EJB. Doing so will mean the EJB does less work.
Continue reading