Everything i know about Threads

I am going to cover a huge concept here. How python code executes  Multitasking Process based multitask (Multiprocessing) Thread based multitask (Multi-threading) GIL (Global Interpreter Lock) Green Thread Thread based programming is hard. There are no two ways about it. Every time one thinks he or she understands everything there is to know about how … Continue reading Everything i know about Threads

Access Specifiers/ Private-Protected in Python OOP

By default all methods and attributes in a python class are public. That means They can be accessed by the class members and by the module which contains it's import. There is no inbuilt syntax available for private, protected, friend, protected friend attribute in python, but you can do necessary changes to your variables to … Continue reading Access Specifiers/ Private-Protected in Python OOP

Map Reduce Filter Python

There are 3 unique functions defined in python to help the dev write some really good code. Mainly Map, Reduce & Filter. I will also discuss about Lambda and some other techniques in the next blogs. MAP It's a very special functions that maps a sequence to a method and create a new sequence. To be specific it takes … Continue reading Map Reduce Filter Python

Multiple Inheritance.. Beauty of Python

The beauty of python is unlike java it supports multiple inheritance. In python version 2.2 the algorithm was simple enough: a depth-first left-to-right search to obtain the attributes to use with derived class. Unlike other python algorithm that overrides names as they are found, multiple inheritance takes first name that is found. Because of this … Continue reading Multiple Inheritance.. Beauty of Python

Harness the Power of Python

Hi Everyone. I would like to introduce my Youtube channel named Code Box for better and good coding practice and learning. I have started uploading Videos to my channel. First Playlist is for getting started with python learning. I will me uploading 5 videos to the playlist and i am aiming to cover the following … Continue reading Harness the Power of Python

Python 2, Python 3 or both ?

Python programs are generally expected to run slower than Java programs, but they also take much less time to develop. Python programs are typically 3-5 times shorter than equivalent Java programs. It is often 5-10 times shorter than equivalent C++ code! Anecdotal evidence suggests that one Python programmer can finish in two months what two … Continue reading Python 2, Python 3 or both ?

Host Multiple projects on same server and same port with different domain name with apache.

This Particular blog is about hosting multiple application with different domains on the same server machine with apache. And guess what both are running on same port 😀 I came across many ways of hosting multiple applications on a server. I tried running them on different In every way i got what i needed but … Continue reading Host Multiple projects on same server and same port with different domain name with apache.

Connecting to 3G usb modem in ubuntu.

I am using sakis3g to connect to a 3g modem. will explain each step in detail. URL to download the tar file: Click here to download once you have downloaded the file please follow the steps below to : sudo mkdir /usr/bin/modem3g sudo chmod 777 /usr/bin/modem3g sudo cp ~/Downloads/sakis3g.tar.gz /usr/bin/modem3g cd /usr/bin/modem3g sudo tar -zxvf … Continue reading Connecting to 3G usb modem in ubuntu.