Manejando datos

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

Extract HTML code from URL in Python and C#

Posted by in c#, Python

In this post, I am going to code a small Python exercise of extracting the HTML code from a URL. You can find the Python on GitHub. Python code We need the packages urllib2: The result from this code is the HTML code from the URL: With this easy and short code I end up my objective: get the HTML code of a website. If you want to extract information, you will need new packages, but I explain it in a future post. Now, coding on C# I am going…read more

Small data

Posted by in Big Data

Big Data is gaining more and more importance, but … what if we don’t have so many data? Another way of the problem is … can we analize data from another point of view? Let’s read this post http://pandodaily.com/2013/09/18/big-data-does-size-really-matter/?goback=.gde_4762568_member_275234744#!, because it describes perfectly how to use information, what are the benefit of collecting and analizing data: Big Data has no importanc, except if you know how to use it Big Data and Small Data Big Data tries to define people or consumer behaviour where Small Data tries to retrieve emotions…read more

Twitter Bootstrap for tables and lists

Posted by in Frameworks

This second tip for Twitter Bootstrap (TB) is dedicated to work with tables. NOTE: you can try also tables with PureCSS , another front-end framwork. We are esing the template we create in the previous post. Now we insert a simple table in our template, like this: <table> <thead> <th>Columna</th> <th>Numero</th> <th>Color</th> </thead> <tbody> <tr> <td>Hola</td> <td>2</td> <td>Amarillo</td> </tr> <tr> <td>Hola 2</td> <td>3</td> <td>Verde</td> </tr> <tr> <td>Adios</td> <td>5</td> <td>Azul</td> </tr> <tr> <td>Eooo</td> <td>3</td> <td>Gris</td> </tr> <tr> <td>Hasta luego</td> <td>5</td> <td>Naranja</td> </tr> </tbody> </table> The result: ColumnaNumeroColor Hola 2 Amarillo Hola…read more