Random Wits

Life is too short for a diary

$ about
├── tags

├── bookshelf

├── resources

├── quotes

├── habits

└── bio






Posts Tagged “python”

Thu 08 Apr 2021

How to Make(Or Lose) Money in Stocks Part1

Recently I finished watching web-series Scam 1992. It's based on story of Harshad Mehta, a famous Indian stockbrocker who made fortunes in stocks. Despite his iconic success & failure, the series rekindled my interest in world of "stocks". I guess the famous dialogue "Risk Hai Toh Ishq Hai" has stuck with me.

I still consider myself a novice in stocks. There's a no magic bullet to make money in stocks. However you can leverage scripts to reduce time to accumulate information. I'll share one such approach in helping buying or selling stocks...

Continue reading → stocks python finance money google selenium


Thu 10 Dec 2020

EnvCommandError in Windows using Poetry

Poetry is a great dependency management tool in python. It's better than managing a flat file like `requirements.txt`. There are also other great tools like pipenv. However I found poetry much simpler in resolving dependencies.

Recently poetry has been crashing on my Windows machine. However, I have not encountered this issue in other platform like Linux. Folks who are unfamiliar with poetry, below is a quick refresher...

Continue reading → windows python poetry bug


Fri 10 Jan 2020

Connect to an Oracle Database using kerberos with python

Previously I had written python scripts connecting to oracle database. However recently the server was upgraded with kerberos & most of the scripts were failings.

After few digging, I learnt few things about kerberos authentication. Kerberos is a network authentication protocol which uses tickets to authenticate access to services..

Continue reading → kerberos projects python docker oracle database