Tuesday, 27 June 2017

CouchDB auto-generate UUID _id attributes with POST

I was trying to PUT a new document in CouchDB and have the database assign a UUID.

It turns out that if you make a POST request instead of a PUT, and explicitly include the correct Content-Type header, CouchDB will generate the UUID for you.

For example, using cURL:

curl -X POST http://user:password@example.com:5984/exampledb/ \
     -H "Content-Type: application/json" \
     -d '{"amos": true}'

No DHCP IP on eth0 with Ubuntu Server 26.04 (64-bit) on Raspberry Pi 4b

This week I was attempting to get up and running with Ubuntu Server 26.04 (64-bit) on a Pi 4b using Raspberry Pi Imager 1.8.5. I noticed t...