How to Save A Life When You Are Wealthy

  1. Have a doctor friend or a set of concierge doctors in different timezones

  2. Buy a fancy EKG machine

  • You’ll want one that can interpret the rhythm well or just send it to your group of doctors. Next time you or a family is having chest pain get an EKG
  • Newer ones can be hooked up with a spare laptop and have better algorithims
  1. Buy an AED
  • A good one can be had for a thousand dollars and you’ll have to replace every couple of years but can be the difference between life and death. Recommended brand: Philips
  1. Become BLS certified
  • (Good) CPR saves lives
  1. Learn how to put in an IV and have spare IV Fluids on hand
  • Sometimes something as simple as fixing dehydration when you are ill can prevent a hospital visit (where you are bound to experience some sort of medical error)
  • IVF costs about 200$/Liter online (good website:
February 3, 2023

Adding Captcha to Django project

  1. add django-recaptcha to requirements.txt

  2. Add captcha’ to your installed apps in

  3. Create your own custom login form. I usually have a custom folder for forms that I am subclassing so project_name/overrides/login/

    from django.contrib.auth import forms as auth_forms

    from captcha.fields import ReCaptchaField

    from captcha.widgets import ReCaptchaV2Checkbox

    class ProjectLoginForm(auth_forms.AuthenticationForm):
        captcha = ReCaptchaField(

        def __init__(self, *args, **kwargs):
  1. Create your own custom login view


from django.shortcuts import redirect
from django.contrib.auth import views as auth_views

class ProjectLoginView(auth_views.LoginView):

    def __init__(self, *args, **kwargs):

  1. Go to and add in your new subclasses

from project_name.overrides.login.views import ProjectLoginView
from project_name.overrides.login.forms import ProjectLoginForm
  1. Create a new /account/login url as so

url(r'^account/login/$', ProjectLoginView.as_view(template_name='project_name/login.html', form_class=ProjectLoginForm), name='login')

All done!

January 9, 2023

Wash Trading Mousepads

I love Icemat glass mousepads. I’ve bought about 5 of them (only because I’ve broken a couple with phones falling on them or having them fall off my desk). Prior to Covid, I only owned 2 so have acquired about 3 more since then. For those not familiar with the icemat, it is a glass mousepad that was popular among gamers and computer enthusiasts in the early 2000s. It was known for its smooth and durable surface, which provided excellent tracking for optical and laser mice. However, the icemat was eventually discontinued and became a rarity in the market. Refer to my blog post here Finding a replacement icemat

As a big fan of the icemat, I started buying a large number of them around 2 years ago. I then relisted them on at absurdly high prices, hoping to capitalize on their rarity and nostalgia factor. I sold one to a friend of mine at and absurd price and then managed to sell 1 at these inflated prices to someone else. This ended up catching the attention of other buyers.

The news of these high sales seemed to have spread. People started listing icemats at several hundreds of dollars but in reality I think I was the only person purchasing them. Realistically, the icemat is probably only worth around a hundred dollars at most. The inflated prices are a result of my artificial manipulation of the market, which created a false sense of the actual price of the icemat. Here you can see some of the absurd prices the icemat is going for:

December 8, 2022

Can you afford to be an entrepreneur?

With modern insurance plans how does one afford to be an entrepreneur?

Asked a group of friends who are solo developers running their own companies/projects (without VC funding) how much they pay for health insurance? All are paying upwards of 500$/month for healthcare with deductibles above 7-8 thousand dollars. Several have stopped working solo due to health issues that have blown them past any sort of runway they had. Currently the only solutions’ that I can see are:

  1. Entrepreneurs must already be extremely wealthy to have a nest egg that will support them through illness

  2. Under the age of 26 so they can be on their parents insurance

  3. Get married so they can be on their spouses plan

  4. Get VC funding -> Hire a bunch of people -> Get an employee health care plan for everyone

How does an American afford to become an entrepreneur?

November 22, 2022

How to automatically update all git repos in a folder

As someone who has many github repo folders on their server I wanted an easy way to update all of them regularly with minimal points of failure so I made this script:


# store the current dir

# Let the person running the script know what's going on.
echo "\nPulling in latest changes for all repositories...\n"

# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
    echo "";
    echo ""$i"";

    # We have to go to the .git parent directory to call the pull command
    cd "$i";
    cd ..;

    # finally pull 
    # the old name
    git pull origin master;
    # the new PC friendly name
    git pull origin main;

    # lets get back to the CUR_DIR
    cd $CUR_DIR

echo "Complete!"

I have it run automatically every 10 minutes using cron

*/10 * * * * cd ~/ && bash ~/

Obviously it would be more ideal if it only ran when a repo was updated but like I said, I wanted less points of failure.

November 11, 2022

Copilot causes popular projects to become more popular

I have been using Github copilot for the past several months and I honestly think its one of the best tools’ I have ever used. I suspect it is writing about 50% of the code I produce and only about 10-20% of the time it is wrong/needs to be changed.

Approximately a week ago I started using HTMX and noticed that I would have to explicitly force co-pilot to use htmx by telling it in the comments despite it being littered all over my project. After an inflection point I no longer had to tell it. A similar experience happened on the backend side as co-pilot would often recommend using requests versus urllib. This raises several interesting questions:

  1. Will the popular libraries become more popular as copilot, by default, will suggest using them?

  2. How will computer science eduction move forward? Outside of fundamental topics any sort of simple high school or college level programming assignment can be done in 10 seconds using copilot

  3. My experience is skewed as a full stack developer who often jumps between 3 or 4 different languages. The biggest advantage for me is that copilot can help me remember’ the different formatting of the languages rather than the logic of the code. I suspect that the advantages of copilot is lessened by those who work in a single language but I can’t confirm that?

  4. What is the ideal price point for this? I would easily pay 50-100$ a month to use this but I suspect I am in the minority.

October 24, 2022
Subscribe to my newsletter to get notified of new posts