Python Category

Introduction A running program is called a process. Each process has its own system state, which includes memory, lists of open files, a program counter that keeps track of the instruction being executed, and a call stack used to hold the local variables of functions. Normally, a process executes statements one after the other in a single sequence […]

Share
/ / March 29, 2014

What are we going to talk about What is a Context Manager. How to use a Context Manager. How to write your own Context Manager. Few words about contextlib. 1. What is a Context Manager ? Coding is done in blocks, you probably familiar with it already: If something is true – execute this block. […]

Share
/ / March 21, 2014

In this tutorial, I’ll demonstrate how to create vintage (just like Instagram does) photos with Python and ImageMagick. Wait? What? Yes, you can do this very thing with Python and ImageMagick, and that’s just scratching the surface! We Made Digital Vintage Photos, Before it Was Cool Once upon a time – technically 22 years ago – ImageMagick was […]

Share
/ / February 21, 2014

In this tutorial, our goal is to create a Python Library which is a FTP class that is well written, useful, and expandable. Outlining our Objective It’s always important to first outline exactly what functionality your class should include. In our case: connecting to a server create a folder on the server upload a file […]

Share
/ / February 10, 2014

Welcome to Python Regimen, where I’m going to teach you the ins and outs of Python development… from scratch. In this first section, we’re going to choose a version, install Python, and then create the obligatory “Hello world” script. If you’re already familiar with Python, feel free to skip ahead to a later sections in the […]

Share
/ / January 31, 2014

From time to time, servers and databases are stolen or compromised. With this in mind, it is important to ensure that some crucial user data, such as passwords, can not be recovered. Today, we are going to learn the basics behind hashing and what it takes to protect passwords in your web applications. Disclaimer Cryptology […]

Share
/ / January 15, 2014

For many Python programmers, object oriented programming is a frightening concept, full of complicated syntax and other roadblocks. Object Oriented Programming (OOP) is a very powerful way of organizing your code, and a solid understanding of the concepts behind it can really help you get the most out of your coding. Understanding Object-Oriented Programming Object-oriented programming […]

Share
/ / January 5, 2014

Metaprogramming Metaprogramming is the ability for a program to reason about itself or to modify. Metaprogramming is the writing of computer programs that write or manipulate other programs (or themselves) as their data, or that do part of the work at compile time that would otherwise be done at runtime. – Definition from the Wikipedia, emphasis added […]

Share
/ / December 30, 2013

What is Functional Programming ? Functional Programming is when functions, not objects or procedures, are the fundamental building blocks of a program. The idea is that you can pass functions as parameters to other functions and return them as values. Functional programming involves writing code that does not change state. The primary reason for doing so is so […]

Share
/ / December 24, 2013

Data Structures Data structures are basically just that – they are structures which can hold some data together. In other words, they are used to store a collection of related data. There are four built-in data structures in Python - List, Tuple, Dictionary and Set. Many applications do not require other structures, but when they do we have a lot of other options like - Collections, Array, Heapq, Bisect, Weakref, Copy and Pprint. In […]

Share
/ / December 21, 2013