Double pointers as function arguments

One of the topics that confuse programmers the most about memory management is the usage of double pointers when modifying references (addresses) inside functions. This problem is often encountered when trying to modify non-random-access data structures, like linked lists, queues, stacks, trees, graphs, etc.

Continue reading

Depth First Search

DFS is an algorithm used to visit all the nodes in a graph or tree, by visiting them branch by branch to their maximum depth.

Continue reading

Breadth First Search

BFS is an algorithm used to visit all the nodes in a graph or tree, visiting them by levels of distance from the origin node.
Continue reading

How to fix “UnboundLocalError: local variable ‘full_path’ referenced before assignment” in Django 1.4

In Django 1.4, whenever I execute

python manage.py syncdb

This error appears after the creation of all the tables:

Continue reading

How to install a problematic ticket printer in Windows 7

I just bought a very simple ticket printer (text only printer) at a very low price. It is an EC Printer, model 5890X (267), made in China by a mexican company.

Continue reading

Familias verbales

En el Náhuatl existen 6 familias de verbos, agrupados por terminaciones cuyo uso y transformaciones son similares:

Continue reading

Django 1.4 AJAX debug style error

In Django 1.4, whenever I wanted to show server errors when making AJAX requests, I couldn’t see the formatted error page, only the response text. This is something new in Django 1.4, because previous versions didn’t have this problem.

Continue reading

Show object history as a popup in Django Admin

If you wish to create a button that opens an object’s history inside a popup without the main bar and the breadcrumb, you have to override the history_view function of your ModelAdmin like this:

Continue reading

Django Admin multiple admin order fields

I made an override of the ChangeList function so the admin_order_field of a ModelAdmin allows more than one field to order the change list when a column header is clicked.

Continue reading

Angle between two vectors or two lines

You can easily transform lines into vectors by substracting the endpoint minus the startpoint of the line.

Continue reading

Adjetivos Indefinidos

Son aquellos que hacen referencia a la cantidad de objetos que se nombran pero sin precisar con exactitud.

Continue reading

Adjetivos Demostrativos

Como en el Español, existen adjetivos demostrativos singulares y plurales.

Continue reading

Colores

Para la cultura Nahuatl, son 6 los colores básicos:
Continue reading

Adjetivos posesivos

En el Español existen dos tipos de adjetivos posesivos: los que se colocan antes y los que se colocan después del sustantivo. En el Nahuatl sólo hay uno  para cada persona y siempre acompaña al sustantivo:

Continue reading

Diminutivo

A diferencia del aumentativo, el diminutivo no puede denotar un grado de respeto cuando se dirige a personas. El diminutivo indica pequeñez y/o falta de importancia, sin importar si se habla de un animal, una cosa o una persona.

Continue reading

Aumentativo

Existen dos maneras para dar sensación de mayor importancia, proporción o tamaño en Nahuatl: Continue reading

Abstracto

Para otorgarle abstracción a un sustantivo, se utiliza la terminación yotl en sustitución de la terminación básica. En muchas ocasiones debe analizarse el sentido metafórico para encontrar la abstracción del sustantivo.
Continue reading