Recent Blogs

Using Minio in Github actions to mock s3

09 Feb 2021 - 2 minute read

I recently added Github Actions for simples3. In a recent PR, a contributor added support for custom endpoints. I was currently running go test on the library using a local .env files which contains real AWS keys and an actual s3 bucket. I realized that we can mock this using a minio server as well. Coming from having used Gitlab pipelines, it seemed to be straightforward to do. I would simply have to run a service and just set the appropriate environment vars.

The Ethics of Invention

20 Dec 2020 - 4 minute read
categories: books tags: books techpolicy

The Ethics of Invention by Sheila Jasanoff is not a book on ethics, but rather a book about the complicated relationship between Technology, Law, and Policy. By the title, one might think that this is yet another “Techlash” book written to be read by Tech Luddites. Rather, the book argues for a middle ground between uncontrolled enthusiasm for technology and the timeless, often understandable, hatred for technological progress. The main focus of the book is to highlight the tendency of humans to give or delegate power to technological systems, which end up governing human behavior without even them noticing it happening under their noses.

Does NPD Governance Framework give Government a backdoor into private companies

03 Dec 2020 - 3 minute read
categories: uncategorized tags: techpolicy opinion

Ministry of Electronics and Information Technology (MEITY) had released a report 1 on the “Non-Personal Data Governance Framework” in July 2020 2. The report recommends the establishment of a Non-Personal Data Regulatory Authority with an enabling role as well as enforcing role. 2 Along with this, the report defines Non Personal Data as: 3 Non-personal data: When the data is not ‘personal data’ (as defined under the PDP Bill), or the data is without any personally identifiable information (PII).

The x4ivygA51F Rabbit Hole

25 Nov 2020 - 2 minute read
categories: notes

I recently read the blog about the 200 most common passwords of 2020. It was also featured in Jon Snader’s recent blog post. When the original post was made, I had glanced at the mysterious x4ivygA51F, which appeared at the 148th spot. But when I read the blog post again and searched for an update on it, no one had been able to figure out what that meant. There were some guesses.

Generating Go docs using gomarkdoc and pandoc

24 Nov 2020 - 2 minute read
categories: notes golang tags: linux foss golang

I recently had to distribute the documentation of an internal library to users. Go developers are used to their editor to providing them with auto completion, usually with the help of gopls. A lot of times it is necessary for users to be able to browse a comprehensive list of methods and data types available for reference. For open source projects, we rely on godoc.org and pkg.go.dev. But unfortunately, it is not easy to host one for internal projects.

Use of Facial Recognition Tech by Law Enforcement

16 Nov 2020 - 2 minute read
categories: uncategorized tags: techpolicy opinion

The use of Facial Recognition by law enforcement to identify offenders is one of the cases where the regulation of the technology lags way behind, and there is an urgent need to bring about policy to reduce potential pain in our society. Apart from the serious problems that are inherent with the technology like mis-identification and minimal mapping between the training sets and the actual photos. According to a recent report in TechCrunch 1, the Home Minister of India admitted to using a data set trained on the Aadhaar Database to identify individuals involved in a recent riot.

Goodbye upi.link

24 Feb 2020 - 2 minute read
categories: upi.link

Dear upi.link users Thanks for using upi.link and making it grow organically to over ~2k daily hits. Due to a takedown request for the domain upi.link from the NPCI I have had to shutdown upi.link for now. I had created upi.link to solve my own problem. Till date, sharing a upi request outside an App is not possible without an intermediary for free. After sharing a prototype with people in my workplace, I found out that it was useful beyond what I had imagined.

Utopia for Realists

26 Nov 2019 - 3 minute read
categories: books tags: books sociology

This book was a recent recommendation from Dr Kailash Nadh. A small but heavy book, that is engaging and well researched. Rutger Bregman has done a thorough job of making arguments for three major policy ideas whose time has come in the land of plenty that we live in (as compared to a human living a century ago). Universal Basic Income Reducing Working Hours Open Borders Universal Basic Income or UBI, might sound ludicrous at the first glance, but numerous studies and on-field experiments have time and again shown that the way ahead for the welfare-state might be direct money transfer (not just benefits).

Building Go Plugins inside Docker

24 Nov 2019 - 2 minute read
categories: tutorials tags: golang docker

Using Go plugins in your projects comes with a lot of caveats. As of writing, there hasn’t been much development on the feature recently. The commit history shows us that the last commit happened nearly 2 years ago. On the gopher slack, the sentiment, more or less, is that this is not a priority anymore. Along with this, there are multiple issues that come up with maintaining projects that use it:

Creating archive pages grouped by year in Hugo

15 Nov 2019 - 2 minute read
categories: tutorials tags: hugo blog golang

I was on the hunt to find out how to organize my blog and project archive pages by year in Hugo. After being unable to find any easy solutions I decided I would sit down and write the go template to render these pages myself. The idea was simple, iterate over the list divided by year into sub lists and render tables, but it turned out to be a bit tricky.