Manejando datos

SQLAlchemy, a Python ORM for databases

Posted by in Databases, Python

I haven’t talked about Python for a long time, not because I don’t have things to tell, but because I’ve been focused on what I’ve already explained here, and I haven’t expanded on other fields. In today’s post, I present SQLAlchemy, a powerful Python library for working with relational databases. The basic concept is the antipode to what I have always done (I still have to rethink this new way of programming): The use of normal Python objects to represent database tables and query execution There are a number of…read more

ES6: arrow functions

Posted by in Javascript and TypeScript

Let’s keep on learning ES6 features, and after the first entrance on a few tips, today’s lesson is dedicated to arrow functions. The concept behind this functions are sintax reduce, they are anonimous functions, no bind with “this”, and always returning a value. They are defined with an arrow: () => { } The sintax is simple: and it can be equal to: As you can verify, the sentences are shorter, and easier to read, although the sintax depends on how paramaters the functions needs (in case it needs). By…read more

Generating statics maps with Google Maps and Python

Posted by in Python

Today’s entrance is dedicated to solve a problem that I received from on of the readers of this blog, and I would like to share with you the solution: a small Python script using Google Maps for creating images of static maps to show locations. The main goal is to use this static maps as part of informs, and by using thi script my reader could accelerate and automatize this process. The alternative was doing it using ArcGIS, doing several steps. The problem There is alist of named points with…read more

Improving Forms with Twitter Bootstrap

Posted by in Frameworks

The first time I wrote about Twitter Bootstrap in this blog was to start with forms. Today’s entrance is for improving the knowledge when creating and using forms. Let’s go! Forms with Bootstrap The tag form is needed for creating a form, but also, it’s very important to include the attribute role=form. The best way to manage the data is by creating groups: create a DIV with the class form-group, and so, all its content (inputs controls) will be treat with the same behaviour. If you know about grids in…read more

List groups and panels with Twitter Bootstrap

Posted by in Frameworks, Programming

Using Twitter Bootstrap is fun, and you already could read here about forms, tables and lists, menus, … Today it’s time for list groups, labels and panels. List Groups For list groups, you need to know how to use all classes starting with list-group for declaring a list, and list-group-item for the different items of the list. The basic structure is this: As you can see, you can use either tags li or a, and the apearence is the same (except if the item is a link). The work is…read more