Archivo

Archivo para 31 mayo 2011

Mac OS: PATH Variable Bearbeitung

mayo 31, 2011 Deja un comentario

1. Terminal öffnen.
2. /etc/paths bearbeiten.
3. Terminal neu starten.
4. Finito.

Categorías:linux, macos, vim

Pootle

mayo 31, 2011 Deja un comentario

Pottle ist ein Online-Übersetzung und Verwaltungswerkzeug.

http://translate.sourceforge.net/wiki/pootle/installation#optional_software

po2prop Übersetzt die po Dateien zu .properties Dateien.

Installing Pootle

EnvironmentError: mysql_config not found
When trying to install MySQL-python 1.2.2
simply run under ubuntu: sudo apt-get install libmysqlclient-dev python2.6-dev and then : sudo easy_install MySQL-python

Setup script exited with error: command ‘gcc’ failed with exit status 1
sudo apt-get install python-dev

easy_install MySQL-python

gettext Files
  • POT
  • PO
  • MO

Poodle -> “Update files from templates” aktualisiert die .po Dateien.
vim localsettings.py -> AUTOSYNC = True

Workflow

1. prop2po some.properties some.po
2. PO Datei erstellen: msginit --locale=fr --input=name.pot
3. Translate.
4. po2prop -t some.properties some.po some-other.properties

http://codex.wordpress.org/Translating_WordPress

http://www.mail-archive.com/translate-pootle@lists.sourceforge.net/msg02652.html

Categorías:Uncategorized

MK_25052011

mayo 25, 2011 Deja un comentario

Es ist nicht möglich mit dem init() Method mit einem anderen Server eine Verbidung erstellen. Es gibt auch keine Möglichkeit zu wissen, ob der Server schon gestartet und bereits für eine Anfrage ist oder nicht. Meine Idee war ein anderes Service zu erstellen aber scheinbar lohn es sich nicht.

Mit ServletContextListener funktioniert auch nicht. Wenn das ServletContextListener ausgeführt ist, ist der Server noch nicht bereits.

Servlets:
- init()
- service()
- destroy()
- doGet()
- doPost()

web.xml

<servlet></servlet>

<servlet-mapping></servlet-mapping>

Servlet Context
  • Alle Servlets haben das gleiche Servlet Context
  • Es gibt ein Context pro Web-Anwendung
Servlet Listener
Servlet Context Listener
  • Interface
  • Receives notifications
  • Es muss in der Descriptor Datei konfiguriert sein
  • Executed once the web application is deployed
  • Detects when the application is removed
Http Session Listener
  • HttpSessionListener befasst sich mit dem Objekt HttpSession
  • Links

    http://www.java-tips.org/java-tutorials/tutorials/introduction-to-servlet-listener-using-eclipse.html

    Categorías:java, servlets
    Seguir

    Get every new post delivered to your Inbox.