A blog about software engineering and beyond!

Generating C# bindings for native libraries by using ChatGPT

One of the most boring and tedious work in wrapping native libraries in C# is writing the DllImport functions. Fortunatley, Large Language Models like ChatGPT has become powerful enough to be able to generate C# bindings from a C header file. Or at the very least, they give you a good foundation that you can tweak and improve upon.


Working remotely from Iraq as a Software Developer

Disclaimer: I am writing about my personal experience here. Your mileage may vary.


Automatic periodic backups from PostgreSQL to S3 using Cron

If you're managing your own databases you'll need to make sure you database is backed up properly. A good option is to store your backups in an S3-compatible object storage.