Laur's blog
Sign in Subscribe

key

A collection of 4 posts
DRF: What is 'source' in Fields?
django

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
Sep 30, 2017 1 min read
Add Primary Key Column to PostgreSQL Table
add

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
Mar 23, 2015 1 min read
Multipool.us APIs
api

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
May 15, 2014 10 min read
Simulate INSert key on mac OSX
commander

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
Dec 4, 2013 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost