Categories
General

Async multithreading in python – 1. Setup and single file async

First up, Celery is an open-source Python library which is used to run the tasks asynchronously. A simple use case is where you need to run a webserver and a compute intensive process on the same machine. The compute intensive process can hold up the entire machine leading the webserver to crash and denial of […]

Categories
General

Async multi-threading in python (celery)

Python is not really known as a language for servers. However the community simply refuses to die down and will force fit python into everything. In the pythonic way, great libraries are written to support all kinds of functionalities. Today am going in a rabbit hole to figure out the way to do asynchronous programming […]

Categories
General

Books I read in 2022

In my own contribution to the fashion du jour, listing down the (mostly) written words that absorbed my attention in the year gone by. In no particular order except what my memory serves Ponniyin Selvan – Book 1: Got me interested from the movie and began diving into the book. Discovered the movie doesn’t do […]

Categories
Analytics Clickstream

DIY Clickstream -4: Deployment

In this concluding part of this mini-series, we will be deploying our framework on a production server on apache There are also few final touches we need to close from the previous parts namely 2. To ensure that we send events in blocks of 10 seconds, we will create an array of events in local […]

Categories
Analytics Clickstream

DIY Clickstream framework – 3. Events storage in database

Here we are going to store the events captured in the last post in a database. The steps are as follows To accept events, we will require a persistently running server. That purpose is fulfilled by Django Django follows a Model-View-Template architecture. Create Django app – events Now I will create a Django project and […]

Categories
Analytics Clickstream

DIY clickstream framework – 2. Data Capture

We are going to first focus on data capture. Essentially this means the following But before I go there a few housekeeping things in order Website we will be used to test our clickstream http://adiganguli.com/test-shopping/ Github account for the code: Client (Event capture in browser) and Server (Store events) Ok lets get started First thing […]

Categories
Analytics Clickstream

DIY clickstream framework – 1. Intro

We are going to create a clickstream framework from scratch. In all my years in analytics, I stumbled on clickstream data quite recently. What I saw honestly blew my mind. The ability to see what your users do on your website gives a powerful ability to influence and recommend them on the path you want. […]

Categories
General

The beauty of code

UBS trading desk – Before and After automation The world is getting increasingly divided between 2 sets of people or between haves and have nots guys who can code and guys who can’t . There used to be a time when coding actually was very esoteric when you you had to learn some fairly complicated […]

Categories
General

Is my startup investible now?

If you try to raise money before you can convince investors, you’ll not only waste your time, but also burn your reputation with those investors. — Paul Graham, How to raise money Summary of post- Startups need to have a spike in Idea+Team OR product OR Traction OR an aggregate spike combining all of the three to […]

Categories
General

Eight lessons I learnt from my startup

Was going through some old documents and came across a note I had written to myself when I was just shutting down my startup a year back. Usually when the ink dries, you find it was colored with emotions of the time. However find these points to be as relevant as ever for me. For […]