Skip to content

Instantly share code, notes, and snippets.

View noahdominic's full-sized avatar

Noah Dominic noahdominic

View GitHub Profile

Automated Image Compression for Web Development with Python

In web development, the performance of a website is a crucial factor that can significantly impact UX. One effective way to optimise a website is by compressing images to reduce their file size. To streamline this process for my personal projects, I've created a Python script that automates image compression and organisation. This may be of use to you.

@noahdominic
noahdominic / flac-to-aac-writeup.md
Last active September 13, 2023 10:02
How I converted my FLAC/MP3 library to AAC for iOS

Converting My FLAC/MP3 Library to AAC for iOS

💡 NB: If you want just the script, skip to the last part.

💡 NB2: I'll be using Python. If you're a bash fan, this might not be for you.


I began collecting a personal library of music files back in the era of infrared file transfers.

@noahdominic
noahdominic / error detection.md
Created October 29, 2018 03:04
error detection

Error detection

Networks must be able to transfer data from one device to another with acceptable accuracy. For most applications, a system must guarantee that the data received are identical to the data transmitted. However, data can be corrupted during transmission. Thus, applications must have a mechanism for detecting and correcting errors.

Introduction

Types of Errors

  1. Single-bit error. Happens when only one (1) bit of a given data unit (byte, character, packet) is changed from 0 to 1 or 1 to 0.
  2. Burst error Happens when two or more bits of a given data unit is changed. This kind of error is more likely to happen because most noises don’t last fast enough to affect only one byte. For example, if one is transmitting data at 1 kbps and a noise occurs at 1/100 s, 10 bits will be affected. If one is transmitting at 1 Mbps, the same noise affects 10000 bits.