note to self

Syncing Nokia E55 Symbian S60v3 with Gmail contacts

My phone gave up and the circuit board of it had to be replaced by Nokia service. This resulted in loosing all unbackuped data from phone. (Needless to say, it was quite long since I'd made a backup.)

I've been syncing my Google Calendar to my Nokia E55 S60v3 phone for a while with Mail for Exchange and that works smoothly as long as you have on one Google Calendar to sync to. I thought I'd give it a try to sync my contacts to Gmail also, since I've already set up MfE.

First step was to backup everything both on the phone and exporting Gmail contacts.

Setup own Trac on Kapsi server

Short note how to setup your own Trac (0.11) on kapsi.fi (where I run my services):
- cd ~
- mkdir trac
- trac-admin trac initenv
-- Fill in name
-- SQLite probably is enough
-- No VCS
-- No repo
- trac-admin trac deploy sites/mysite.example.com/www/trac
- cd sites/mysite.example.com/www/trac/cgi-bin
- rm trac.cgi trac.wsgi
- chmod 755 trac.fcgi
- Browse to http://mysite.example.com/trac/cgi-bin/trac.fcgi/

Clean up URL
- cd sites/mysite.example.com/www/trac
- vim .htaccess
- Put this in the file:

RewriteEngine On

New desktop computer

So,

Just recently I got time and some extra cash to upgrade my home desktop computer. My old one was bought back in 2003, so it was time to move along.

I had a budget around 1000€ and this did not include a screen, keyboard or mouse, but a color inkjet printer to our network was a must.

Vaadin 6.3 widget and GWT dev mode

Vaadin 6.3-pre1 is just around the corner, so I decided to give the package a try and make an own custom component which includes a client side widget. Then I'll do some debugging of the client side code.

Vaadin 6.3 includes GWT 2.0, so the old Vaadin 6.2 + GWT 1.7 way of using OOPHM does not work as is any more.

My environment is:
Mac OS X 10.5.8
Java 5 or 6
Firefox 3.5.8
Eclipse 3.5 Galileo
Vaadin Eclipse Plug-In (Experimental)
Tomcat 6.0.20

Step-by-step how I did it:

Access Trac with certificate login from Eclipse using Mylyn's Trac connector

Just a quick scratch about how to access your Trac from Eclipse IDE by authenticating with certificates

1. Make sure the root certificate is found by JVM as a trusted certificate if you have your own.
Open this link and check the subject: "When I try to add my site to the task repositories, I get a Java error that says SSL Handshake failed. What do I do?"

2. Add the following lines to eclipse.ini

-Djavax.net.ssl.keyStore=/path/to/yourcert.p12
-Djavax.net.ssl.keyStorePassword=yourpassword

Backup prefixed tables in MySQL without PHP

Just a quick note which took me some time and advice asking to find out. I have a database with two drupal installations separated by a table prefix, say drupal1_ and drupal2_. Lets call my database simply myDB.

If I'd like to backup only certain tables to an SQL file using mysqldump, I'd have to list all the table names separately. This is not nice at least since module installations and upgrades might add prefixed tables to the database dynamically over time. The other catch is that I want to do this without PHP.

Eclipse ${user} variable

I've grown tired of changing the template for my Eclipse projects which uses the built in ${user} variable while generating JavaDoc comments. Mostly this variable is not my real name and often not even a proper nick name, so I like to change it to be my real name.

So, by editing the eclipse.ini file and adding a flag

-vmargs
...
-Duser.name=Jonas Granvik

I get this changed and now the ${user} variable is my real name instead of my user name which I logged in to the OS with.

Invalid <META> tag in Transformer output with Java

I have a Java String with some xml-formatted xhtml code. First I parse this into a Document with

	public Document getDocumentFromString(String xml) throws SAXException, IOException, ParserConfigurationException {
		DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
		DocumentBuilder db = dbf.newDocumentBuilder();
 
		return db.parse(new InputSource(new StringReader(xml)));
	}

Setup of Orbeon Forms with JBoss Portal

This is a quick note on how to get Orbeon Forms 3.7.0beta nightly running on JBoss Portal 2.7.1 bundled with JBoss AS. These instructions seems to missing in the Orbeon docs.

Syndicate content