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
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 ]
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 ]
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 ]
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 ]
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 ]
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 ]
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 ]
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 ]









