The Term “Good Programming” – in a nutshell

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

Classic 2048 - 4x4 Board Game

আজকে আমি ২০৪৮ গেইমের কিছু ট্রিক্স ও টিপস আপনাদের সাথে শেয়ার করবো। ৪ ক্রস ৪ বোর্ডের এই ক্লাসিক গেইমের মজার কিছু ফিচার নিয়েও আলোচনা করা হবে

How to run Multiple Terminal Sessions on Linux VPS Server

In this article, I will introduce you with one of the handy tool for your vps servers. It is an extremely useful app for maintaining multiple terminal sessions through just one window! This Command Line Utility is called Screen.You may think of it as a Manager who manages different terminal sessions for you using shell.…

Python Nested List Comprehension for…in goes from left to right!

The Confusion Scenario: You were asked to write the equivalent list comprehension of the following code: for i in range(6): for j in range(i): j Before, starting with the above one we try the simplest one: t = [] for i in range(6): t.append(i**2) We already know the syntax of list comprehension is as follows: expression…

TIL – How to extract 7z compressed file?

It's pretty simple, in ubuntu you will need a package called: p7zip-full, You can install it from apt using the following command: apt-get install p7zip-full This will enable the 7z command for you. Using that command you can extract the 7z compressed file. For example let's say you have a file my_file.7z. To extract this…

Making a Stand Alone Executable from a Python Script using PyInstaller

There are plenty of tools available for converting python script into executable. For example, check out: PyInstallerpy2exe For Python 2, I used to prefer py2exe. It is a neat tool that does the trick by making a stand alone executable from python script. The one problem I faced was, py2exe used to support only python 2! Then I moved on to…

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…