Setting up dev environment for SciPy

Hi everyone! 👋

I got an email from someone pretty recently who wanted to setup a dev environment for SciPy. He had made changes to the source code of SciPy and now wanted to test if his changes were working or not. He had gotten so far without actually testing the code. In this post I will share details on how to setup a dev environment the right way. I will focus mainly on Mac OS. Continue reading Setting up dev environment for SciPy

Advertisements

Speeding up Python code using multithreading

Hi lovely people! 👋 A lot of times we end up writing code in Python which does remote requests or reads multiple files or does processing on some data. And in a lot of those cases I have seen programmers using a simple for loop which takes forever to finish executing. For example: Continue reading Speeding up Python code using multithreading

Running Python in the Browser

Running Python in the web browser has been getting a lot of attention lately. Shaun Taylor-Morgan knows what he’s talking about here – he works for Anvil, a full-featured application platform for writing full-stack web apps with nothing but Python. So I invited him to give us an overview and comparison of the open-source solutions for running Python code in your web browser.

Continue reading Running Python in the Browser

Python dis module and constant folding

Hi people! Recently, I was super confused when I found out that:

>>> pow(3,89)

runs slower than:

>>> 3**89

I tried to think of a suitable answer but couldn’t find any. I timed the execution of both of these statements using the timeit module in Python3:

Continue reading Python dis module and constant folding

Issues with how we teach

Throughout my life, I used to ask myself, “How do people invent something?”. In my case, I was specifically concerned with Maths, Physics, and Computer Science.

I would ask myself, “I know how to use these formulas but how did someone come up with these formulas?”.

Continue reading Issues with how we teach

Research Writeup: Deanonymization and Proximity Detection Using Wi-Fi

Hi everyone! If you have been following my blog for a while you will know that I did research at Colgate University over the summers. My research was on Wi-Fi and how I can do some interesting stuff using it. The university just published its annual catalogue of all the research projects which happened over the summer.  My research was done under the mentorship of Aaron Gember-Jacobson. I could not have asked for a better advisor. Here is the writeup of my project:

Continue reading Research Writeup: Deanonymization and Proximity Detection Using Wi-Fi

Email Security & Privacy

Hi everyone! I hope all of you are doing well. Things have been super exciting on my side. Just got done with a file system checker project in C for my Operating Systems class. It was mentally draining but equally rewarding. This blog post is not about Python but rather about Emails. Continue reading Email Security & Privacy