Sheer Alpine mountains and forested valleys are both neighbour and inspiration for Italian designer and architect Riccardo Monte. His home, a 250-year-old former animal shed, is tucked into a tiny Italian village in the Ossola valley, not far from the Swiss border and Lake Maggiore. Riccardo lives with his English partner, photographer and filmmaker Katie […]
I am using FastAPI for building an application. I have the place where i set some custom response headers. There is the standard example from FastAPI docs from fastapi import FastAPI, Response app = FastAPI() @app.get(“/headers-and-object/”) def get_headers(response: Response): response.headers[“X-Cat-Dog”] = “alone in the world” return {“message”: “Hello World”} fastapi dev test.py –host 0.0.0.0 –port […]
Trello Android recently converted from using Gson to Moshi for handling JSON. It was a bit tricky so I wanted to document the process. (For context, Trello Android primarily parses JSON. We rarely serialize JSON, and thus most of the focus here is on deserializing.) There were three main reasons for the switch from Gson […]