Often we need to do alternate things in every steps of a django template for loop while doing things in a loop in a django template. For example, let's say you want to create a widget similar to the following image widget - to show various job types In this example, The Job Type widget…
Category: Tips
TIL – Find the git commit that deleted a file in a git repository
The below command filters commits that deleted file using diff-filter from git log git log --diff-filter=D -- deleted_file.example It takes advantage of the flag diff-filter.
How to download a file from a website link using Python script or, code snippet
In this article, I’m going to demonstrate some code snippets that you can utilize to download files from the Internet using Python. Before we begin, you might be wondering why go through all the hassles of writing scripts to download files when you can simply click and download it by opening it on a browser!…
Setup Real Time Login Alert using a Telegram Bot in Linux VPS
In this article, We are going to setup linux vps login alert based on PAM using Telegram Bot. I am assuming you already have a vps and know how to use ssh to login. 1. Create a Telegram Bot and Get the Access Token To create a Telegram bot, we will need a telegram account.…
The Term “Good Programming” – in a nutshell
Nowadays the term Programming is becoming very popular! Specially among those who are involved in any profession related to Computer Science or, Web Development & Design. Most of them do programming more or less everyday! But, not everyone who code is a good programmer! One of the biggest reason behind this is to be a…
কিভাবে পাইথনের বেসিকস শিখবো?
বেসিক থেকে ইন্টারমিডিয়েট লেভেলের পাইথন প্রোগ্রামার হিসেবে নিজেকে গড়ে তোলা শুরুতেই বলে রাখি, কোন প্রোগ্রামিং ল্যাঙ্গুয়েজ আয়ত্ত করা সোজা কথা না। কারণ, আমি নিশ্চিতভাবেই বলতে পারি, প্রোগ্রামিং এর বিভিন্ন নতুন কনসেপ্ট গুলো বুঝে আত্মস্থ করা এবং সেটাকে কাজে লাগানো অনেক কঠিন, এটাই স্বাভাবিক তা না হলে আপনি অবশ্যই গিফটেড ;)। যদি সি এস ই বা কম্পিউটার সায়েন্স…
Classic 2048 Game Tips & Tricks
আজকে আমি ২০৪৮ গেইমের কিছু ট্রিক্স ও টিপস আপনাদের সাথে শেয়ার করবো। ৪ ক্রস ৪ বোর্ডের এই ক্লাসিক গেইমের মজার কিছু ফিচার নিয়েও আলোচনা করা হবে
How to take Password input in Python
Did you know? There is a python module in Python Standard Library called getpass. The purpose of this library is to securely take input from user! The module is very handy for sensitive inputs such as passwords / keys or any kind of credentials. Simplest example of getpass could be this: import getpass password =…
When to use Abstract Class in Python?
In this article, I would like to answer a common question that pops up in mind whenever we start to learn Object Oriented Programming in Python. But before we begin exploring the use case, first lets briefly discuss about what really is an abstract class in python: Abstract Class Abstract Class is a class that…