• RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

MacOS: Know which process is using a specific port

Sometimes we need to know which process is using a specific port, to do this in a MacOS we have to open a terminal and execute: sudo lsof -i : For example to know the process that is using the port 49100 we should execute: sudo lsof -i :49100

Continue

OpenStreetMap: Download maps/tiles

Sometimes we will want to have access to the OpenStreetMap (OSM) in an offline mode, for that we will have to download all the tiles of OSM. We can download the tiles following these steps: First we will have to locate the area of the world that we want to download, to do this we will have to get the  [ Read More ]

Continue

Enable cocos2d templates on Xcode 4

Recently I migrated form Xcode 3.x to Xcode 4 and I realize that my templates of cocos2d was gone. So after a little of research I found that it seems that the templates on Xcode 4 are a bit different from the previous versions and for that reason old cocos2d doesn’t work any more with the last version of Xcode.  [ Read More ]

Continue

iPhone/iPad ejecutar codigo una unica vez

Muchas veces es necesario ejecutar codigo una unica vez en nuestra aplicacion, por ejemplo para crear una estructura de directorios. En principio no existe ningun listener que nos permita ejecutar codigo cuando se instala la aplicacion. Para simularlo podemos realizar lo siguiente: #define K_LAUNCHED_BEFORE @"launchedBefore" NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; BOOL launchedBefore = [defaults boolForKey: K_LAUNCHED_BEFORE]; if (!launchedBefore) { //el  [ Read More ]

Continue

Cargar un UIImageView desde una URL

Recientemente desarrollando una aplicación para el iPad me tope con el problema de cargar un UIImageView. La solución es bastante simple aca va: - (void) loadImage: (UIImageView*) img url:(NSString *) imgUrl { NSData* imageData = [[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:imgUrl]]; UIImage* image = [[UIImage alloc] initWithData:imageData]; [img setImage:image]; [imageData release]; [image release]; } Básicamente este método recibe dos parámetros un UIImageView y  [ Read More ]

Continue

Instalar Snow Leopard sin usar DVD

Recientemente me tope con un problema. En mi Macbook Pro tenia instalado Leopard (MacOS 10.5) y dado que queria comenzar a desarrollar aplicaciones para iphone/ipad usando la ultima SDK necesitaba Snow Leopard (MacOS 10.6) en lugar de Leopard. Consegui un DVD pero en ese momento recorde que mi Macbook Pro no tiene leactora de DVD DL (double layer). Fue así  [ Read More ]

Continue

Some time we have the case that our apache server doesn’t recognize the

Continue

Setup Zend Framework based application on a shared hosting

Who knows me already know that in general if I have to develop an application in PHP I go for Zend Framework as the base. One problem that I faces many times is try to deploy an application with Zend in a shared hosting, as you know your document root of Apache should be pointed to the public folder, BUT  [ Read More ]

Continue

Customize TinyMCE editor

Sometimes you need to customize the presentation and styles of the TinyMCE editor, this can be a very awkward situation First of all if you need to delete the second and third row of the toolbar you have to make something like this in the setup of the editor: theme_advanced_buttons2: “”, theme_advanced_buttons3: “”, Also you can disable some buttons that  [ Read More ]

Continue

List of countries

Every time I start to build some web site I always deal with the thing to populate the list of countries in the world. I had to google this list several times so I decided to put it here so I know where to look in the future and maybe I can help somebody else. CREATE TABLE IF NOT EXISTS  [ Read More ]

Continue

MacOS: Know which pr

Sometimes we need to know which process is using a ...

OpenStreetMap: Downl

Sometimes we will want to have access to the OpenStreetMap ...

Enable cocos2d templ

Recently I migrated form Xcode 3.x to Xcode 4 and ...

iPhone/iPad ejecutar

Muchas veces es necesario ejecutar codigo una unica vez en ...

Cargar un UIImageVie

Recientemente desarrollando una aplicación para el iPad me tope con ...