Blogs

How to Git 101 5 November, 2023 07:09
You know the basics of things, you’re not new to this. Clearly you need version control because you’ve been programming already. In that programming you’ve learnt the basics of how things work. So lets skip explaining the fluff—let’s just explain in short brief bursts the quick-and-dirty of what you need to know to get started.

MTU/MSS - Finding the best settings 18 June, 2023 01:38
The internet is connected with a vast range of technologies and therefore have different characteristics regarding speed, throughput and bandwidth. The different technologies making up the link may include Ethernet, PPPoE, Frame Relay or ATM; each with their own largest packet size—Maximum Transmission Unit (MTU). Typical sizes include 1500 for Ethernet or 9202 for Ethernet with Jumbo Frames, 1492 for PPPoE, and 2304 for WLAN. If a packet is larger then the MTU of the technology used, then fragmentation must occur. This is when the packet is split up into smaller packets so they are smaller then the MTU. Larger MTU’s reduce fragmentation, however, over a larger network where packet loss is susceptible, larger packets require larger re-transmissions as opposed to a small packet being dropped only requiring a small packet being resent. Larger packets also increase system performance by reducing the number of packets processed during a transmission—often referred to by routers as Packets Per Second (PPS).

DataFlex - Implementing Liquid templating by binding with Rust 27 May, 2023 18:39
We want to create dynamic emails that end users can customize as their needs change. To do this we will need a way to offer them customisations that allow for semi complex structures and rules.

DataFlex - COM Automation vs DLL calling overhead 11 February, 2023 15:39
In DataFlex, there’s a few common ways to share code between applications. One is via SOAP and Webservices, which is generally used externally and over a network. The other is using COM Automation and DLL’s. The latter two not being able to be written in DataFlex but are able to be consumed by.

Snippets

This section is a collection of snippets that I have collected over time!

Exchange online - Add an email alias through Active Directory Azure AD Connect
How to add email aliases to Exchange Online when syncing through Azure AD connect.

DataFlex - Clear a data dictionary but keep its parents
Clear a datadiction but keep its parents so you can easily create a collection of child records that all have the same parents.

PostgreSQL - A collection of useful snippets
A collection of useful PostgreSQL queries and scripts

AWS - Make all objects in S3 bucket public
Make all objects in a S3 bucket public

Powershell - A simple script to send emails through a remote SMTP server
A simple Powershell script to connect to a SMTP server and send an email

Git - Some useful snippets
A collection of random Git snippets when consulting on multiple repos

WordPress - Some useful snippets
A collection of random Git snippets when consulting on multiple repos

Windows Subsystem for Linux - How to compact an overgrown disk
Overtime a WSL2 partition may grow and not be reclaimed. The following will fix that.

C# - Communicating with Ruby on Rails using signed cookies
When making a C# program that talks to an existing Ruby on Rails program, the following is helpful for working with signed cookies.

Ruby - Creating a basic Rack server
Sometimes it’s just easier to create a base RACK app so you can handle basic requests so you can write some Ruby and make a simple API.

See more…