Blog / Tech

Gaming on Linux

July 28, 2019

I just finished playing Final Fantasy XII: The Zodiac Age on Linux. In the 70 hours of playtime, the game ran flawlessly. I couldn't recall a single crash or slowdown.

And guess what? There is no native Linux port of this game! I played the Windows version on Linux thanks to Proton and Steam Play. No special tweaking required, just click "Install" and "Play." My Xbox One S controller was detected automatically, it feels ...

Dealing with datetime objects and time zones in Python 3

June 29, 2019

Working with datetime objects and time zones is one of those things I always struggle with when writing code in Python. I always have to look things up and double check the outputs (such as making sure daylight savings time was taken into account) to make sure I'm doing things correctly.

This blog post is really more of a reference for myself when making adjustments to datetime objects that involve time zones so I won't ...

How to reset the primary key sequence in PostgreSQL with Django

March 19, 2019

I was working on some fairly big features involving new Django models for one of our apps and when I pushed to our staging environment, I got this error during deployment at the database migration step:

duplicate key value violates unique constraint "auth_permission_pkey" DETAIL: Key (id)=(55) already exists

It looks like new records were getting added to the auth_permission table. I was puzzled as I didn't make any changes related to the Django auth app. ...

Django 2.1 SameSite cookie issue with Safari 12

February 16, 2019

We just ran into this issue two days ago as we've recently upgraded the Django version for one of our Shopify apps to version 2.1.

We had a user tried to use the app and he kept getting redirected to the login page during the OAuth flow. He then tried it on Chrome and it worked fine so we narrowed down the issue to his web browser, which was Safari, specifically version 12 of Safari ...

The Best Books I Read in 2018

February 3, 2019

I was just going through some of the highlights I made on my Kindle to reflect on some lessons and insights I've learned from a bunch of books I read last year and thought I should write a blog post about the best ones.

Below are 6 of the best books I read in 2018. Many of these I'd probably come back to again in the future.

1. The Internet of Money Vol. 1 & ...

Older