Posts

Showing posts from 2017

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…

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

Image
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

Image
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

Image
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

Image
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

Image
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

Image
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

Image
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.



Multithreading web scraping with Python

Image
Hello my friends today in this entry we are going to talk about a very trendy topic, web scraping and how to do it with our beautiful Python programming language, so open your Python Idle and get set because in this Tutorial Entry we are going to code once again.

Python Best Seller Books

Image
Hello my friends, I have taught you the ways that you can learn Python Programming through the Internet with Online Courses, but there is other way that you can learn from the best at writing about Python, and that is through Python best seller books, these are the books that gained their reputation by the readers reviews, in other terms they are really recommended to learn from reading, if you are that kind of person that rather choose reading a good book instead of watch videos onilne, you have come to the right place, here  I show you a list of the best sellers books about Python that you could find on Amazon at a very low price Python Best Seller Books

Python Mugs

Image
Hello my friends, are you a Python Geeky guy or girl? And you want to have those things in your life to feel closer to Python? How about mugs of Python Programming? Remember that Python is also a philosophy, the Zen of Python, so here in this entry I give you a pretty cool list about mugs with Python references that you could find on Amazon at a very low price

Python Mugs
You can click on any of these images that will take you to amazon.com
A please share this entry with your friends and programming fellows, help me growth blog. Best regards!

Check out my other entries on the Store


Python best seller BooksPython T-Shirts

Python T-Shirts

Image
Hello my friends, are you a Python Geeky guy or girl? And you want to have those things in your life to feel closer to Python? How about a T-Shirt of Python Programming? Remember that Python is also a philosophy, the Zen of Python, so here in this entry I give you a pretty cool list about T-Shirts with Python references that you could find on Amazon at a very low price

Python T-Shirts
You can click on any of these images that will take you to amazon.com A please share this entry with your friends and programming fellows, help me growth blog. Best regards!
Check out my other entries on the Store
Python best seller

Learning Python - Where to start?

Image
Hello my friends in this entry I'm not going to code as usual but rather to talk about some of the common questions that Python enthusiastic ask when they want a fresh start in learning Python. I will give you my personal recommendations based on my own experience learning this beautiful language and what comes next.



Where do we start?In my experience the best way to start learning Python is through a MOOC (Massive Online Open Course), the advantages of taking an online course start by stating that the best teachers that you could find have an online course, who are they? Well, I'm not sure if they are the best in the world but they must be the best in the U.S.A., teachers from the first top computer science schools in this country, another advantage is that these online systems you can manage yourself your learning experience, from when to attend to class (watch the lessons), and deliver the homework and tests at your own pace, with automated grading, and finally communities a…

A Python Tale on Object Oriented Programming (Part II)

Image
Hello my friends, today’s entry is going to be the second part about Object Oriented Programming with Python, if you haven't read the first part of this set please go to with this link, now let's create a table to summarize what we have so far of our Clock Class.

A Python Tale on Object Oriented Programming (Part I)

Image
Hello my friends, today's entry is going to be about Object Oriented Programming with Python, we are going to program an abstraction of a simple Clock in Python, in such a way we can understand the importance and convenience on why you should program in the Object Oriented Paradigm, and why you should do it with Python.  So let's start by talking a little bit about Object Oriented Programming. Accordantly to the Wikipedia, "Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods." This is in fact the structure of an object, but doesn't state so much on why does this exists? Well in the nature and also in the mankind created world, there is an intrinsic structure, some kind of organization, in such a way that you can abstract anything in the world with these same constructs, data and pr…