Blog

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 ...

Get Low Stock Notifications for Your Shopify Store with EZ Inventory

February 23, 2019

This feature could probably be a separate Shopify app on its own but we decided to make it part of EZ Inventory to provide more value to our customers.

In addition to being able to automatically update your products' inventory levels in your Shopify store, you can also now set up low stock alerts for each of your product variants. You'll receive an email notification almost instantly when the stock level reaches or goes ...

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 ...

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 ...

Goals for 2019

December 29, 2018

It's that time of the year again, where we look back on what we've accomplished for the current year and set goals for the new year.

Overall, I say 2018 had been another good, low-stress year for me. I didn't run into any major problems and things had gone quite well especially on the business side of things.

It did feel like 2018 just flew by. It feels like I wrote the ...

Older