Writing

Notes on software, data, and economics.

Posts

The Two Kinds of Scale

The Two Kinds of Scale

3 min readRitij Jain

A reforestation team keeps a map of a planting site. Each dot marks a field observation, like a photo or a note on how a sapling is doing. At the start of the season, the map has 20 observations. By t…

What Would Markdown for Spreadsheets Look Like?

What Would Markdown for Spreadsheets Look Like?

2 min readRitij Jain

I wanted to open a spreadsheet in a text editor and see what had changed. If a total moved, I wanted to know whether someone edited the inputs or rewrote the formula. A spreadsheet in layers My first…

Working With Custom Primary Key in Django Models

Working With Custom Primary Key in Django Models

1 min readRitij Jain

Django adds an auto-incrementing id field when a model has no explicit primary key. A lookup such as get object or 404(MyModel, pk=1) looks for the row whose primary key is 1 . It returns a 404 if tha…

Pudhina Fresh Jekyll Theme

Pudhina Fresh Jekyll Theme

1 min readRitij JainUpdated

A minimal yet feature-rich Jekyll theme made for personal websites and blogs. Pudhina Fresh is free and open source. Live demo: ritijjain.github.io/pudhina-fresh. This website previously used Pudhina…

IB IA/Essay Examples From May 2019

IB IA/Essay Examples From May 2019

1 min readRitij Jain

My IAs/Essays from IB May 2019 examination session – Mathematics HL IA, Economics HL IA, and TOK Essay. These were assessed in the May 2019 examination session. Maths HL IA \ Mathematical-Exploration.…

WeatherPie Django Weather App

WeatherPie Django Weather App

1 min readRitij Jain

Most weather apps do a decent job delivering weather conditions and the forecast but leave it up to the user to interpret them and decide what clothing in their closet might work that day. However, th…

GPA Calculator Spreadsheet

GPA Calculator Spreadsheet

1 min readRitij Jain

Amid COVID-19, many universities are offering alternate grading options to help students with maintaining a good GPA. For example, Penn State is giving students an option to change their grade of C or…

Economic Output Density – GDP Per Square Kilometer

Economic Output Density – GDP Per Square Kilometer

3 min readRitij JainUpdated

Divide an economy’s GDP by its land area and small, densely populated places stand out. I call this economic output density . A country with large forests or deserts can have a low value even if its c…