Accessing Old HFS formatted disks on Mac OS 10.15 or later

Submitted by daniel on Mon, 09/08/2021 - 18:21

Apple discontinued support for classic HFS (also known as Mac OS Standard) volumes in MacOS 10.15 Catalina. As a result, Macs running the latest version of MacOS cannot mount volumes created on vintage machines — such as those running Mac OS 8 and Mac OS 9.

Officially Apple discontinued support of HFS in 10.12 Sierra

Enabling 5ghz wifi on your Virgin Hub

Submitted by daniel on Fri, 18/12/2020 - 19:05

Not sure how well documented this is but my Virgin SuperHub 3 supports 5Ghz frequency (802.11a/n/ac mixed) as well as the default 2.4Ghz (802.11b/g/n mixed). 

The newest generation of Wi-Fi signaling in popular use, 802.11ac utilizes dual band wireless technology, supporting simultaneous connections on both the 2.4 GHz and 5 GHz Wi-Fi bands. 802.11ac offers backward compatibility to 802.11b/g/n and bandwidth rated up to 1300 Mbps on the 5 GHz band plus up to 450 Mbps on 2.4 GHz.

Disabling Firewalld on recently updated CentOS 7 server

Submitted by daniel on Wed, 16/12/2020 - 14:52

I have spent much longer than I expected figuring out why I could not login to my server using ssh on a recently updated CentOS server.

It turns out on CentOS 7 the default firewall Iptables is replaced by Firewalld. The issue that I experienced meant that 2 firewalls were enabled that did not work well with each other.

To avoid that the different firewall services influence each other, run only one of them on a RHEL host, and disable the other services. 


Stock Price Tracking

Submitted by daniel on Fri, 04/12/2020 - 03:02

Say we have an array of values that represents the stock price of duckduckgo over time.


const stocks = [1, 0, 5, 14,  -1, 10];

How do we write a function that tells us what the biggest margin is? What is the optimal price that we can both buy and sell at? We cannot sell stock before we buy it. 

One approach requires iterating though each number and calculate the delta of every price in the future to ensure that we only make comparisons going forward in time. 

Here is an example


Adding an external repo to your composer.json

Submitted by daniel on Mon, 30/11/2020 - 16:45

Sometimes it may be useful to specify a patched branch of a particular project. I recently came across an issue where it was not possible to patch a module, but I was able to create an issue branch  and  pull request. Pending approval and review I was still able to reference this branch in my composer file, This was useful in this case as this particular dependency broke the composer pipeline, install update etc. Here I show you how this can be done.

1. Add Your repo

Getting started with DNSMasq for local development

Submitted by daniel on Fri, 20/11/2020 - 15:11

Typically it is not uncommon to use yours hosts file to redirect network traffic on your local machine to point to your local environment where appropriate. That works pretty well for most circumstances however it can become a little tiresome if you are managing a large number of projects and quickly your hosts file can become quite long and unwieldy.

One alternative to using your hosts file is to use a local dns server. One such option is DNSMasq.

Getting started with Remote Images in Drupal

Submitted by daniel on Wed, 18/11/2020 - 19:10

In a previous article I touched on the oEmbed standard and a little about the use of remote media including remote images.

Of course embedding images into to page whether hosted remotely or locally is not a new thing. Embedding remote images from the Drupal UI is not supported out of the box. Of course you can manually edit the html using your wysiwyg editor, but that is not very user friendly and is not a great user experience. Furthermore doing so increases that the risk your markup may be malformed etc

Support for oEmbed opens up wealth of opportunities for embedded content

Submitted by daniel on Wed, 18/11/2020 - 15:01

Drupal 8.6.0 has an out-of-box adds support for embedding remote YouTube and Vimeo videos by means of the oEmbed format. You may notice these are often encapsulated in an iframe. You can see this evident in a new media type being defined called 'Remote Video' available form /admin/structure/media. A new icon is also available form your wysiwyg that allows you to embed the new format in your page or block.

NASA Streams Space-X Resilience launch live on Youtube

Submitted by daniel on Sun, 15/11/2020 - 22:55

NASA’s SpaceX Crew-1 mission will be the first crew rotation flight of a U.S. commercial spacecraft with astronauts to the International Space Station. NASA astronauts Michael Hopkins, Victor Glover, Shannon Walker, and Japanese astronaut Soichi Noguchi are set to launch on SpaceX’s Crew Dragon spacecraft and Falcon 9 rocket. The astronauts named the spacecraft Resilience, highlighting the dedication the teams involved with the mission have displayed and to demonstrate that when we work together, there is no limit to what we can achieve.