If you are trying to develop a python package and facing difficulties in doing so, this article may help. The Issue Recently, I was trying to develop a python package for a data science project. I generated my project using Data Science Cookiecutter. The folders were organized in the following way - ├── LICENSE ├──…Read more The Problem with Python Package Structure in dev Mode
programming
How I learn new Framework/Language/Library/Tools
Frameworks come-and-go. There's nothing you can do. But one thing you can do is - adapt. And if you don't, you'll be forgotten like your framework/tools. Most of us fear new stuff. We fear change. Adaptation is very easy if you can overcome the fear of it. It is not only true for the framework…Read more How I learn new Framework/Language/Library/Tools
Forecasting from Times Series model using Python
Playing with large set of data is always fun if you know how to do it. You can fetch interesting information from it. As part of my Master's course I have had opportunity to work on forecasting using Times Series modeling. And yes, now I can predict future without being a clairvoyant. 😀 Considering popularity…Read more Forecasting from Times Series model using Python
Dynamic form field based on another model’s entries and save them in a m2m way in Django
It's been a while since I have done this type of brain storming stuff. Today is my country's victory day and I have got some free time. Objective: I have a inventory model named Item. An item can have many attributes such as height, width etc. Think about a system where more attributes can be…Read more Dynamic form field based on another model’s entries and save them in a m2m way in Django
Solution of infinite digest loop for ng-repeat with object property filter in AngularJS
Few months ago I wrote a code in AngularJS which was something like this: <ul ng-repeat="course in courses|filter:{is_taken:true }" > <li>{{ course.name }}</li> </ul> It was generating a digesting loop error. Though the data was showing correctly. Soon I realized that it was generating because for each turn in ng-repeat loop, courses are filtered…Read more Solution of infinite digest loop for ng-repeat with object property filter in AngularJS
AJAX requests in CakePHP without disabling SecurityComponent
Security is always a big deal for a software specially for web app where you don't know your users' intention. To ensure some common security measure, CakePHP provides SecurityComponent with its core. Let's come to the point. If you try to POST any request through AJAX, you will get Bad Request exception and your request…Read more AJAX requests in CakePHP without disabling SecurityComponent