Focusing a DIV in JavaScript

It is possible to focus a DIV or another HTML elements with JavaScript by using the tabindex tag, this tag allows us to stablish whether an element can be focused or not, with “-1″ value elements can’t be tabbed but

Posted in JavaScript Tagged with: , , ,

Positioning System

Positioning System was my degree final project, it is a web application made with AngularJS, SlimPHP and MySQL which allows the monitoring of software-instensive systems, as well it is useful to manage the integration of multiple projects like software developments.

Posted in AngularJS, Bases de datos, JavaScript, MySQL, PHP Tagged with: , , ,

Tetris game made in C

This is an old university project in which the objective was to create a classic tetris game in C language with OpenGL, in addition it allows music management. Video demo:

Posted in C++, Games, OpenGL Tagged with: , , ,

Largest prime factor in Python

This is the problem number four in the Project Euler which reads: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? My own solution to resolve this

Posted in Project Euler Tagged with: , , ,

Model from database tables with Doctrine ORM

Sometimes it is required to use some kind of reverse engineer with Doctrine ORM to extract models from an existing database, this time we have a MySQL database and we want to extract the models. Before start, we need to

Posted in Bases de datos, PHP Tagged with: , , , ,

Rutas relativas en Python

Un problema con el que se suele lidiar a diario en Python es el tratamiento de rutas relativas, dejo un pequeño snippet de gran utilidad para manejar rutas relativas:

Posted in Python Tagged with: , , ,

Número de caminos entre nodos de un grafo

Con el fin de ayudar a los compañeros que han acudido a mi blog solicitando ayuda para la práctica he invertido unas cuantas horas en resolver el problema añadido de este año “Obtener el número de caminos entre nodos de

Posted in ADA, Algoritmos Tagged with: , , , ,

Complejidad de algoritmos a través de sus tiempos de ejecución

Práctica propuesta en la UPM para la asignatura “Algorítmica y Complejidad” en el curso 2012-2013: Link al enunciado de la práctica en formato pdf Fichero de ejemplo de entradas en formato pdf Aquí dejo la solución propuesta por un compañero:

Posted in ADA, Algoritmos Tagged with: , , ,

Videotutorial – Arduino Ethernet LED Control

In this videotutorial I want to show you how to control a green LED from a web interface by using Arduino Ethernet Shield. What we need? 1 KOhm resistor 1 Arduino Ethernet Shield 1 Green Led This is the schematic

Posted in Arduino Tagged with: , , , , ,

Videotutorial – How to: Decompile .jar and .class files

In this brief tutorial I want to show you how to decompile Java .jar and .class files, and it’s also valid for .apk files from Android platform. We just need “JAD Java Decompiler” and WinRar/Zip. First step is to extract

Posted in Java Tagged with: , , , ,