varDx - Easy PHP flat-file storage

Jan 09, 2019

PHP allows serialization, which is cool, but how do you store and use this data? Sure, you could use databases (SQL, et al.), but what if you don't want to deal with DBs just to store a few objects?

A few months ago, I wrote varDx, a tiny library (~2KB, <100 lines) which solves this problem. It allows you to read/write objects to/from flat files easily.

Usage is as simple as this:

<?php
require 'varDx.php';

$dx = new \varDx\cDX; //create an object
$dx->def('file.dat'); //define data file

$val1 = "this is a string";

$dx->write('str1', $val1); //writes key to file
echo $dx->read('data1'); //returns key value from file

It has functions for reading, writing, modifying, checking and deleting data. Get the code from the Github repository, and see the README file for more documentation.

Software for the Gotek USB Floppy Emulator

Jan 04, 2019

I recently purchased the Gotek USB Floppy Emulator for use with my old Yamaha PSR-550 synthesizer. It works perfectly, but unfortunately, the software that comes with the emulator is in Chinese and impossible to navigate and use.

After some searching, I found this site, which offers a download for some software which appears to be identical to the one that comes with the emulator, except that it's in English - and actually works.

The software originates from a German company which used to produce a very similar emulator (that I suspect Gotek copied).

The German company's website it now down, but I've uploaded a copy of the software (which appears to be abandonware) to my server, and you can download it here

Also, if for some reason you require a copy of the original documentation and software that comes with the Gotek emulator, I've uploaded a copy of that too, which you can download from here.

 

I'm back

Jan 04, 2019

So... I finally set up my new blog after I broke the old one beyond repair while experimenting last summer. Only took 1.5 years...

Anyhow, I (probably) won't be migrating my old posts over because I'll have to manually convert XML to JSON and then configure the metadata for each page and I honestly can't be bothered to. 

It's nice to have a blog again, however. I have a few ideas for upcoming posts. Dunno when I'll get the time to write them up, though, since exams are coming up. Welp.