DRF: What is ‘source’ in Fields?

For a couple of days I’ve been trying to de-serialise a JSON to a model. My problem is the model and the JSON have different fields, mainly to keep the model pythonic and independent of a specific JSON source. So… I’ve been trying to use the source parameter for each Field in my serialiser to […]

Add Primary Key Column to PostgreSQL Table

The other day I got a question: How to add a numeric PK column to an already existent table? A quick look on the net showed that it is indeed possible to add an auto-incrementing PK to an already existing table (if you don’t have already a PK that is!). The code is quite simple […]

Multipool.us APIs

Multipool is a multi-coin mining pool, capable of dynamically switching between currencies, to maximise the profitability. They offer an API which allows nice access to their data. Unfortunately, I’ve found that it’s quite difficult to find what’s what, so I’ve decided to document it. Below you’ll find some extra info on URLs and structure of […]

Simulate INSert key on mac OSX

Every once in a while I use MC (Midnight Commander) on OSX, simply because after all these years the two-pane file manager is still easier and quicker to use than the Finder. TL;DR: use <CTRL>+T to simulate INS key. Origins In my PC days, I used Norton Commander to do file operations. In my Linux […]

Scroll to top