Skip to main content


Featured Post

Introduction to Python Tales

Hello my friends, my name is Nelson Carrasquel, and perhaps as you I have the philosophy of coding for life, since 2013 when I started programming with Python (I have started before in 2008 with Delphi and some Visual Basic, but that is my dark past) my value as a Developer really increased due to the things that I found that could be possible with Python, now Python (with some Javascript) are the core languages for almost every challenge that I face in the programming world. I am a Chemical Engineer graduated from the UCV (Central University of Venezuela) in 2015, was working as an engineer for almost two years for an Automation and Control Systems Company, programming with LabVIEW almost all the time, but also I was tutoring as a part time job, helping students from all around the world (Not all the world but all the America) in their Python and Javascript assignments and projects; I found out that I really enjoy teaching and tutoring programming languages, and from that on I was kin…
Recent posts

Handling Relational Database with Python (Part I - Setting Database Up)

Hello my fellows Pythoneers in this new entry I’m going to talk about a cool topic, and that is handling SQL database systems with Python, but first let’s talks as usual about some background theory so we can put you in context.
Relational DatabaseA really quick definition about this concept is that al digital data is organized and stored as separated groups of data that a have relations on somehow between these groups, in the same storage, normally called database, we could have several data groups, these data groups in terms of SQL are called tables, and each table have unique records of information, these records are called rows. So structurally speaking it would be something like this. Database -> Table -> Row Tables are organized as concerns in your applications, each table have a fixed  number of columns in which each column represent a feature of attribute of those elements that we want to save in each table. And finally every row is a unique entry. We can understand these co…

Python Free Books

Hello my friends in an earlier post I talked about some dive deep Python Books that you could purchase to start learning Python, you can check that entry in this link, and now I have decided to write this entry to give you a list of online and free Python books.

These books are supposed to be hosted documentation; they are written in restructured text (reStructuredText) and translated into beautiful HTML or PDF with a tool called Sphinx. This documentation format is supposed to be used for writing your own packages and modules documentation, but experts also use them to write practical books and tutorials of different languages and they can be uploaded and hosted for free in different online platforms, one of them is read the docs website.

Interactive Plotting with Python and Matplotlib

Hello my friends, in this new entry I am going to show you how to make cool animations with some algebra and Python, algebra? Yes my friend, because animating an object is based on some transformation of coordinates, translating or rotating for example,  but we will get into that don't worry; Now let's talk about the Python Tools that we are going to use. ·Numpy ·Matplotlib With numpy we can make and manipulate arrays with Python, the  array type in this package has methods that can use for common operations in algebra, among other uses with also are going to take into account the trigonometric functions, sin and cos, useful for rotations. With matplotlib we can create pretty cool plots, and turning the interactive mode on, we can make some iteractive plots hence a cool animation. Let me show you the final result for our code so you can have a pretty good idea.

Data Processing using Python Generators

Hello my friends in this Entry we are going to talk about data processing with Python, but we are going to process data using a pipeline approach, to a better understanding on this you can go back an entry earlier were I explained Iterators and Generators. In this entry we are going to move forward in applying generators to process data with pipelines. But first let's talk about Comprehension. Python ComprehensionComprehension is a way of creating sequences from iterators in a one line simple statement; we have several kinds of comprehensions  Python List ComprehensionFor example if we want to build a list with the first 10 squares values of the positive integer numbers we can do it like this >>>squares= [x **2for x inrange(1, 11)] >>>squares [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
We can also create compounds lists with if statements, let's now build the same squares but only taking the even ones. >>>squares=[x**2forxinrange(1,

A Python Tale of Iterators and Generators

Hello my friends in this Entry we are going to talk about a really cool topic (Well that's what I think) that is Iterators and Generators with the Python Programming Language, and for explaining each of this I'm going to build a class representing a Linked List data structure and how you can use Python Built-in Functions to iterate, create iterators or generators on custom classes.

Singleton - Design Patterns in Python

Hello my friends, here in this quickly entry we are going to talk about the most basic but very useful Design Pattern and that is the Singleton, but first let's discuss as always a little about theory.
Design PatternsThis is the next step in the programing learning curve, after Object Oriented Programming there is a list of topics that you could learn next, I strongly recommend Python Design Patterns. Accordingly to the Wikipedia, “a software design pattern is a general reusable solution to a commonly occurring problem within a given context in software design”, in other words is the same code to the same kind of problems; in general we tend to find the same kind of problems when we are designing our software, and we tend to solve this problems with the same solution, in time and each time this solution is improved and finally is considered a standard or a pattern in software design, so it becomes a design pattern.

Python to Exe to Windows Installer

Hello my friends, for this entry we are going to talk about a topic very often asked in the social media, how can we compile Python to a Windows Executable? Well in short answer, you cannot, because Python is not a compiled language, instead it is an interpreted language, but what we can do is to trick the Python Interpreter to run only a specific script as a windows executable, and after that we can create a Python Binary Installer, pretty cool right? Well follow me in the next lines to explain you how you can turn a Python GUI program into a Windows Executable.