Posts in Sin categoría

GWT UIBinder + i18n

octubre 15th, 2012 Posted by Sin categoría 0 thoughts on “GWT UIBinder + i18n”

1) Hay que hacer es modificar el module.gwt.xml y agregar los locales que van a ser soportados en la aplicación

<!--Defines all possible locales we'll use-->
<extend-property name="locale" values="en,ru"/>
<!--Defines default locale-->
<set-property-fallback name="locale" value="en"/>


2) Luego hay que poner las etiquetas dentro del archivo .ui.xml


<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'

ui:generateFormat="com.google.gwt.i18n.rebind.format.PropertiesFormat"
ui:generateKeys="com.google.gwt.i18n.server.keygen.MD5KeyGenerator"
ui:generateLocales="en,ru">
<g:HTMLPanel>
<ui:msg key="msg2" description="test description2">Test2!</ui:msg>
<ui:msg key="msg1" description="test description">Test!</ui:msg>
<ui:msg>Test3!</ui:msg>
</g:HTMLPanel>
</ui:UiBinder>

3) Compilar el proyecto con el parámetro -extra /tmp/gwt. Esto lo que va a hacer es generar los archivos .properties. Genera uno por cada ui.xml por cada idioma.

4) Hay que copiar los archivos generados en la misma carpeta en la cual se encuentra la vista.

5) Renombrar el archivo y eliminar el nombre del paquete.

6) Realizar la traducción de los archivos.

7) Recompilar el proyecto.

8) Ahora se pueden probar los diferentes locales agregando ?locale=es (por ejemplo) en la url.

Cómo llamar a shouldAutorotate utilizando un UITabBarController

mayo 13th, 2012 Posted by Sin categoría 0 thoughts on “Cómo llamar a shouldAutorotate utilizando un UITabBarController”

Para que el método shouldAutorotate pueda ser llamado desde un ViewController que es parte de un UITabBarController hay que extender la clase UITabBarController.

En el h

#import 

@interface MyTabBarController : MyTabBarController

@end

Y para permitir que la aplicación rote en determinado controller poner en el m 

#import "MyTabBarController.h"
#import "MyViewController.h"

@implementation MyTabBarController

- (void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
NSLog(@"Pasando");
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
if(self.selectedIndex == 0 && [[[self.viewControllers objectAtIndex:0] visibleViewController] isKindOfClass:[MyViewController class]])
return YES;
else
return NO;
}

@end

Cómo instalar XCode Command Line Tools en Xcode 4

mayo 11th, 2012 Posted by Sin categoría 0 thoughts on “Cómo instalar XCode Command Line Tools en Xcode 4”

Al descargar Xcode 4 desde el AppStore en Lion OSX no se instalan automaticamente las Command Line Tools, por ejemplo libtools.

Para instalarlas hay que abrir Xcode e ir a Xcode > Preferences > Download, seleccionar “Command Line Tools” y hacer click en Install.

Cómo actualizar el password de admin de Magento con un query SQL

mayo 3rd, 2012 Posted by Sin categoría 0 thoughts on “Cómo actualizar el password de admin de Magento con un query SQL”

1. Abrir phpMyAdmin 
2. Lanzar el siguiente query:

UPDATE `admin_user` SET `password` = MD5('PASSWORD') WHERE `username` = 'admin';

So you have an awesome idea?

junio 8th, 2011 Posted by Sin categoría 0 thoughts on “So you have an awesome idea?”

The resume is dead

junio 8th, 2011 Posted by Sin categoría 0 thoughts on “The resume is dead”

http://the99percent.com/tips/7025/The-Resume-Is-Dead-The-Bio-Is-King

El groncho y la dama.

marzo 10th, 2011 Posted by Sin categoría 0 thoughts on “El groncho y la dama.”

Joysticks History Chart

marzo 10th, 2011 Posted by Sin categoría 0 thoughts on “Joysticks History Chart”

Google I/O 2009 – Best Practices for Architecting GWT App

noviembre 8th, 2010 Posted by Sin categoría 0 thoughts on “Google I/O 2009 – Best Practices for Architecting GWT App”

Google I/O 2009 – ..Scalable, Complex Apps on App Engine

noviembre 8th, 2010 Posted by Sin categoría 0 thoughts on “Google I/O 2009 – ..Scalable, Complex Apps on App Engine”

I’m trying to learn english, if you find some mistakes in my redaction, please make a comment with my error

Copyright © 2018 programadorfreelanceargentina.com

Programador Freelance Argentina