How to install Vyper using pyenv and Virtualenv on macOS

Initially, setting up Vyper (an experimental language, with python-like syntax, for writing smart contracts on ethereum) seemed as simple as following the instructions. it wasn't. If you like to skip the details/troubleshooting, head over to TL;DR pyenv I've written about why I prefer pyenv earlier I'm not sure whether my “misfortune” was due to pyenv, but it could be. To top it off, I also used virtualenv as suggested in the official docs.

Diagrams in Orgmode

Recently, I had to create a technical document for a project, and I started with org-mode since that was easiest. Basic markup is easy in org, and was enough for me to get started. In order to share with external parties, I exported to HTML. In past I had tried docx but that did not work well, I wanted to export to PDF, but it requires pdflatex which seemed a lot of hassle.

How to Sync Github Fork with the original

First add the original repo as upstream remote using : 1 git remote add upstream https://github.com/ORIGINAL_OWNER You need to do this only once. Now each time you want to get the changes from the original, do the following : 1 2 3 git fetch upstream git checkout master git merge upstream/master See the github documentation for details.

How to use python to test your Ethereum Smart Contracts

Background I recently started working on Ethereum Blockchain development. Most of the tools, including the solidity language are biased towards javascript. While I managed to get started using truffle when it came to testing, I found that javascript tests were (IMO) unnecessarily too long. But that is the nature of the language. I have always been more comfortable with python than JS. I liked and have used py.test in my previous projects.

Pay Gap on the Gender-Blind Platform (Uber)

Freakonomics podcast did an episode understanding the gender pay gap, that exists between the male and female driver even if the platform does not treat them differently based on the gender. Uber has a lot of data about the rides, drivers and earnings. Let's see what they found out. How much ? Male drivers earn 7% more than their female counterpart. And seven percent is not very different than the overall average we see across all firms, even in the traditional labor market.