Restoring a Macintosh Plus from 1988

Lo and behold, a Macintosh Plus from 1988. Complete with all original receipts, hardware, and software. 

 

A nice introductory message I sent to a friend

 

The Macintosh Plus was way before my time, but my fondness of pure computing keeps me interested in old hardware like this. I picked this up from an older gentlemen who used this computer during his studies at UBC (Vancouver).

 

Block sponsored ads on Kijiji with a Chrome Extension

The amount of sponsored ads and injected ads on Kijiji.ca is staggering. When you search for an item and no results are found, Kijiji will "fake" results and add multiple pages....of nothing. Say you searched for a dining table, you might receive a few real results, while the rest of the pages are Wayfair.ca ads.

Taking a look at the before and after below: 

Tags

Search multiple grocery stores at once

tl;dr check out https://grocerygoose.ca

Code: https://github.com/snacsnoc/grocery-app

The price of groceries in Canada has absolutely skyrocketed over the past six months. Everytime I go to the grocery store, I am no longer shocked at the price increase. In fact, it's almost a bit of a game finding something that hasn't gone up.

A great example is Loblaw's No Name potato chips. On sale they were 97 cents, regularly priced at 99 cents. Great value for something so simple. I went to an Independant Grocer two weeks ago, expecting to be shocked but what I received was a heart attack instead. The price increased by 150%! The sale price now is $5.00 for 2 bags.

Python init system for Snacklinux

I've been thinking about this for a while. It's not really practical, but just for fun. Essentially rewriting the tools needed for a minimal Linux distro with just the kernel. I found this PyCon presentation(video on Youtube) about this very subject. Unfortunately there's no mention of it past 2006 but oh well. Another use for such a thing would like be similar to Docker but with the build process of SnackLinux. Being able to launch a customizable Python image with custom kernel is complete overkill but that's what makes programming fun I think.

arm64 port for SnackLinux

It's with great success that I can announce SnackLinux has working arm64 build instructions, along with updated x86.

I haven't updated SnackLinux since 2018 or so, with the first commit on Feb 13 2013. Almost 10 years now, crazy! My longest-standing open source project that I've maintained. Honestly, it doesn't do much but at least it runs. I never put a whole lot of work into SnackLinux over the years with moving around the province, changing careers and changing my overall life.

It's nice having a constant hobby to always be able to chip away at when you have the time. Almost comforting in a way.

Anyway, i486 ISO builds work. I'm working on x86_64 ISOs. arm64/aarch64 kernel image and root filesystem builds work.

Download here | Code

Tags

Generating images for your podcast

I listen to Legends of the Old West podcast, it's a western-themed episodic podcast centered around outlaws.The narrator is great, the character actions are descriptive but I'm left wanting more.

With the surge of Stable Diffusion projects, I was inspired to make something AI generated art themed.

What I ended up with is transcribing the podcast audio into text, and then generating images based off of that. Take a look below for an example.


The bulk of the work is done by Vosk, an offline open source speech recognition toolkit. We convert the input MP3 to wav, send it through Vosk and receive a generated JSON output file.

Tags

Tuya Smart Home Temperature Monitor + Python (tinytuya)

Why look go outside and check the temperature if you can automate it and use Python?

I purchased this inexpensive wifi-enabled temperature monitor from Aliexpress for approx $20 CAD. The goal was to log the temperature and humidty throughout the seasons and make a graph at the end of the year.

During the setup of the device, you have to use their cloud smart home app. You can only guess what they do with your data (hey, maybe they’ll see how cold it gets here in winter and feel bad for me). You’ll have to use the app to connect the developer account to your device.

Tags

Merge big CSV files with Pandas and Python

I deal with large CSV at work, mostly database dumps. Google Sheets and Numbers/Excel just can't keep up with formula changes for 300k+ lines. What do we do? We use Python.

The use case here is replicating a the VLOOKUP function with a left join. We want to get the matching criteria from our referenced CSV file, but only the matching (otherwise that would be a full outer join).

Here's what our data looks like:

We want to look up the lat/long in our reference file and join on zip code. Here's what that data looks like:

Note the matching "zip" column names.

Here's the code:

Tags

Fix Choppy/Skipping audio in Mac OS Maverick

Sometimes during a Facetime call or watching your favorite dumb crime show on some sketchy Russian streaming site, your audio sounds like it's farting through a tin can. Sometimes choppy and not very clear, whatever audio that's playing doesn't sound right.



One way to fix it is by killing Core Audio, which is responsible for processing audio.



 

sudo killall coreaudiod

 

Tags