Quantcast
Channel: Prisoner Number Six » Programming
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Crear librerías dinámicas en Mac OSX

Compilando sqllite3 para Mac OSX sale un archivo objeto sqlite3.o. Con el podemos enlazarlo estáticamente con nuestro ejecutable: bellucci:sqlite-autoconf-3070400 david$ gcc libsqlite3.o test.c -o...

View Article



Image may be NSFW.
Clik here to view.

Añadir librerías nativas en NetBeans

Compilando un proyecto en NetBeans, necesitaba referenciar librerías externas y nativas, es decir dll’s, dyn o so en Windows, Mac OSX y Linux respectivamente. En linea de comandos cuando se instancia...

View Article

Image may be NSFW.
Clik here to view.

Actualizar la Haskell Platform en Mac OS X

Hace tiempo (¿febrero?) que publicaron una actualización de la plataforma Haskell. Como es un lenguaje con un ecosistema desconocido para mi preferí desinstalar la antigua plataforma antes de instalar...

View Article

Image may be NSFW.
Clik here to view.

La sentencia ‘with’ de Python

‘with’ se introdujo en Python 2.5. En esa versión no estaba disponible directamente (eso fue a partir de la 2.6) y había que importarla con ‘with_statement’. ‘with’ es una sentencia relacionada con la...

View Article

Image may be NSFW.
Clik here to view.

Iteradores en Python

Un iterador es un objeto sobre el que se puede…iterar. Aunque parece una obviedad es así. No puedes iterar sobre un número o tipo entero, ya que carece de la capacidad de iterar. Pero por ejemplo una...

View Article


Image may be NSFW.
Clik here to view.

Decoradores en Python

Los decoradores nos permiten agregar funcionalidad adicional a una función o clase. En Python hay algunos decoradores definidos por el propio lenguaje. Así, cuando queremos declarar a una función de...

View Article

Image may be NSFW.
Clik here to view.

Salida a color en Git

Por defecto Git no usa colores en la salida de los comandos por linea. Si trabajamos bastante con la consola tener la salida a color se agradece, sobre todo para ver los parches. Para añadir esa opción...

View Article

Image may be NSFW.
Clik here to view.

Protocols in Objective C

Just a reference note on how to implement a “protocol” in Objective C. First. We define our protocol in a file named “Protocol.h”: @protocol Protocol @required - (void)requiredMethod:(NSString*)param;...

View Article


Image may be NSFW.
Clik here to view.

Designated Initializers in Objective C

Object construction in Objective C is a two phase procedure. First the object has to be allocated in memory, hence the ‘alloc’ message we always see when a object is invoked this way (and not for...

View Article


Image may be NSFW.
Clik here to view.

Calling Python from C++

Just a little snippet of code to show how to call python (an entire Python interpreter) from inside a C++ program: #include <Python.h> int main(int argc, char const *argv[]) {...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images