Author Archive

JavaScript: SHA-256 Implementation

October 3rd, 2021
Posted in TypeScript | No Comments

This weekend I decided to experiment with using JavaScript to implement client-side processing of files using a web browser. To make it interesting, I wanted to see if it was possible to implement a cryptographically strong hash function: SHA-256. This exercise gave me exposure to Web Workers and the Stream API. I encountered compatibility challenges. […]

Using GoDaddy API for Dynamic DNS

September 27th, 2021

It has been difficult accessing my home computer, with potentially a dynamically allocated IP address, from anywhere on the Internet after became a paid service. The following bash script made available by TheBelcherman on the GoDaddy Community forum simulates the functionality of by programmatically updating a DNS record that has GoDaddy as its […]

Manipulating Raspberry Pi GPIO Ports with C#

September 18th, 2021
Posted in 日本語 | No Comments

Quarantine and working from home because of COVID-19 has provided an opportunity for me to take up Japanese again. I studied Japanese for years in high school and college, but I was unable to consume media intended for a Japanese audience. I hope that I can practice reading Kanji with posts like these.

This is the first post in which I try to translate snippets of technology articles written in Japanese. I hope that I can provide translations for longer snippets as my Japanese language skills improve. The following snippet is from Let’s Manipulate the Raspberry Pi GPIO Ports Using C# by Ken Takae:

C#とえば、Windows環境かんきょうだけとおもわれがちですが、.Net CoreをLinux環境にインストールすれば、C#で開発かいはつしたアプリケーションが動作どうさします。また、Raspberry Pi(ラズベリーパイ)でも、C#を使つかってIoT開発をおこなうことができます。

My translation:

Although when speaking of C# one tends to think about only the Windows environment, if .Net Core is installed in the Linux environment, applications developed in C# operate [in the Linux environment]. Moreover, even with a Raspberry Pi, it is possible to use C# and carry out IoT development.

~がち: a suffix to express an undesirable tendency in someone or something. Formed by Verb-masuがちだ or Nounがちだ.

Source: C#でラズパイのGPIOを操作しよう~LEDを点灯させる
Reference: Makino, Seiichi and Michio Tsutsui. A Dictionary of Intermediate Japanese Grammar. The Japan Times, 2001, pp. 47-50.

~/.ssh/config: Preferring IPv6 SSH Connections

September 12th, 2021

I was interested in forcing ssh to use IPv6 if the connection is available. I considered writing a bash script that would test connectivity and would invoke ssh with the appropriate command line arguments. After reviewing the ssh configuration file documentation, I determined it was possible to implement what I wanted without standalone scripts. I […]

MIT License

September 8th, 2021
Posted in Legal | No Comments

The MIT License is presented below: Copyright <YEAR> <COPYRIGHT HOLDER> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies […]