How to use unrar in Ubuntu

[If unrar is not installed]

$ sudo apt-get unrar

[To extract a file]

$ unrar e file.rar

How to import a SQL file in MySQL from command line

$ mysql -u username -p -h localhost data-base-name < data.sql

Amazon WS and ffmpg

http://drupal.org/node/259128#comment-971037
http://drupal.org/node/281427
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=686
http://developer.amazonwebservices.com/connect/message.jspa?messageID=140392

How to create a GWT library

http://swe-strongsteve.blogspot.com/2010/11/creating-re-usable-composites-using-gwt.html

GWT 2.1 MVP and Composite

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2812e1b15a2a98a6

GWT Places Tuto

http://tbroyer.posterous.com/gwt-21-places
http://www.methodknowledgy.com/2010/09/using-gwts-application-framework-judiciously/

GWT dinamic host page

http://code.google.com/intl/es-AR/webtoolkit/articles/dynamic_host_page.html

DAOs with Objectify

http://turbomanage.wordpress.com/2010/02/09/generic-dao-for-objectify-2/

Send a file to the browser with GWT

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8c708ac2da186d17

GWT and Maven

http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html

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

Calling appengine from gwt dispatch

http://turbomanage.wordpress.com/2009/10/07/calling-appengine-securely-from-gwt-with-gwt-dispatch/

Google talks about GWT

http://www.linuxuser.co.uk/interviews/google-talk-2-google-web-toolkit-webm/

Appengine as backend for iphone apps

http://gamesfromwithin.com/google-app-engine-as-back-end-for-iphone-apps

GWT Designer Tutorial

http://giantflyingsaucer.com/blog/?p=1606

Videos about appengine

http://arachnotube.appspot.com/

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

Google I/O 2010 - Data pipelines with Google App Engine



How to get twitter statuses in json format

file_get_content("http://api.twitter.com/1/statuses/user_timeline.json?screen_name=carna3d");

How to test GWT apps in Hosted Mode with a Tomcat Server

http://code.google.com/intl/es-AR/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s

How to get client ip in a Java Servlet

req.getRemoteAddr();
req.getRemoteHost();

How to install Subversion on Eclipse in Snow Leopard

You must install Tigris Subversion, on Eclipse: Help -> Software Updates -> http://subclipse.tigris.org/update_1.6.x

And you need Java HL, to get this you can install Subversion binaries from http://www.open.collab.net/downloads/community/

 Restart Eclipse and voilá.

How to set default encoding in Eclipse

Window -> Preferences -> Workspace -> Text file encoding

How to know if i am working on development or production in appengine?

private boolean isDevelopment() {
        return ( SystemProperty.environment.value() == SystemProperty.Environment.Value.Development );

}

How to capture GET parameters in GWT

String param = Window.Location.getParameter("param");

NumberFormat in GWT

String vat = NumberFormat.getFormat("0.00").format(country.getVAT());

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

How to create a session in Java

To create a session attribute:

HttpSession sesion = req.getSession(true);
sesion.setAttribute("allowed", "YES");

To get a session parameter:

HttpSession sesion = req.getSession(true);
String allowed = (String) sesion.getAttribute("allowed");

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

How to generate a random number in java

int x = ((int) Math.random() * 100);

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

How to rollback an unsucesful deploy to appengine

sh /paht/to/appengine-sdk/bin/appcfg.sh rollback path/to/project/war/

How to get user locale in a Java Servlet

Locale locale = request.getLocale();
Enumeration locales = request.getLocales();

appengine hot deploy on mac

1. Install JRebel
2. In Eclipse go to Help -> Install New Software... and download JRebel plugin http://www.zeroturnaround.com/update-site
3. Specified jrebel.jar jar in Eclipse / JRebel.
4. Modify dev_appserver.sh and let it something like this:

java -ea -cp "$JAR_FILE" \
com.google.appengine.tools.KickStart
--jvm_flag=-javaagent:$REBEL_HOME/jrebel.jar --jvm_flag=-noverify \
com.google.appengine.tools.development.DevAppServerMain $*

5. Add to the Run Configuration this VM Argument

-javaagent:/path/to/jrebel/jrebel.jar -noverify

6. Now it must works!

Taken from this steps for Windows http://androidisland.blogspot.com/2010/09/appengine-jrebel-and-eclipse-getting.html

Cómo instalar trac en ubuntu

http://sonidolibre.wordpress.com/2008/09/11/trac-instalacion-y-primeras-configuraciones/

Cómo agregar y eliminar virtual hosts en Apache

Para agregar: a2ensite sitio

Para eliminar: a2dissite sitio

Cómo instalar phpmyadmin en Ubuntu

sudo aptitude install phpmyadmin

Cómo configurar subdominio con Ubuntu

cd /etc/apache2/sites-available
cp default nuevo-subdominio
vi nuevo-subdominio

quitar la primer linea

modificar

VirtualHostName * por
VirtualHostName nuevo-subdominio.dominio.com

relanzar apache

Cómo cambiar el directorio HOME de un usuario en Linux

usermod -d /ruta/al/directorio/nuevo/ usuario

Cómo agregar usuario a grupo en Ubuntu

sudo adduser usuario grupo

ex:

sudo adduser vsftpd nogroup

Cómo instalar apache2 + mysql + php

sudo aptitude update
sudo aptitude upgrade
sudo aptitude install mysql-server
sudo /usr/bin/mysqladmin -u root password pon_tu_pass
sudo aptitude install apache2
sudo aptitude install php5
sudo aptitude install libapache2-mod-auth-mysql
sudo aptitude install php5-mysql
sudo /etc/init.d/apache2 restart
sudo gedit /var/www/test.php

Cómo setear UTF-8 como el default encoding de Eclipse

Project Properties > Resource > Text file encoding = UTF-8

Cómo ubicar un div al final de la página

Para poner un footer al final de la página, el cual aún al hacer scroll siga ahí abajo:

en el css

#dock {
position: fixed;
bottom: 0;
height: 64px;
width: 100%;
background: #cecece;
}

en el html antes del </body>

<div id="dock"></div>

Cómo activar mod_rewrite en Apache2 en Ubuntu

1> $ sudo a2enmod rewrite
2> $ sudo vim /etc/apache2/sites-enabled/000-default y cambiar las lineas que dicen AllowOverride None por AllowOverride All
3> $ sudo /etc/init.d/apache2 force-reload

Cómo utilizar Quartz con Tomcat

1. Bajar Quartz desde http://www.quartz-scheduler.org/ y poner el .jar en el classpath

2. Poner esto en el web.xml


QuartzInitializer
org.quartz.ee.servlet.QuartzInitializerServlet

shutdown-on-unload
true

2

How to set an id to a GWT TextBox

TextBox myTextBox = new TextBox();
myTextBox.getElement().setId("my_text_box_id");