Re: Converting Blackberry contacts into QTopia

2008-05-29 Thread Michael Shiloh



Marco Trevisan (Treviño) wrote:

Ian Darwin wrote:

I won't say it was easy or pretty, but I did it.


Cool... I want do it also with my Motorola phone importing contacts, 
SMSs and events from the binary seem files... Maybe I could use some of 
your advices!




Marco, and others: I'm going to create an entry on my blog for those of 
you switching from X to Openmoko. Please add your experiences.


Michael

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Converting Blackberry contacts into QTopia

2008-05-28 Thread Marco Trevisan (Treviño)

Ian Darwin wrote:

I won't say it was easy or pretty, but I did it.


Cool... I want do it also with my Motorola phone importing contacts, 
SMSs and events from the binary seem files... Maybe I could use some of 
your advices!


--
Treviño's World - Life and Linux
http://www.3v1n0.net/


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Password safe (was: Re: Converting Blackberry contacts into QTopia)

2008-05-28 Thread Uncle Kridley

Ian Darwin wrote:
The only two things I really need the Blackberry for (apart from stable 
calling :-)) are the password safe (which I have written a replacement 
for, and others exist)...


I'm totally dependent on gnukeyring on my Treo, so this is good news. 
I'd been hoping that somebody with some GUI coding experience would 
build one on Openmoko, since I've never written a (non-web) GUI program.


Are you going to release your password safe?  What are the others you 
speak of?


I thought that perhaps gnome-keyring could be ported to Openmoko...

--
   --
  Dirk Bergstrom   [EMAIL PROTECTED]
 http://otisbean.com/

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Converting Blackberry contacts into QTopia

2008-05-28 Thread Ian Darwin

I won't say it was easy or pretty, but I did it.

The only two things I really need the Blackberry for (apart from stable 
calling :-)) are the password safe (which I have written a replacement 
for, and others exist), and the alarm clock (might have to put a new 
fresh battery in my alarm watch).


Trying to cut the umbilical cord to my Blackberry 7290 before its aging 
bones turn to dust, I've been moving stuff to my ASU-software Freerunner.


Note that ** I do not advocate that anybody else do this yet**.

I'm just documenting what I did in case anybody else likes living on the 
edge (Hey, I run OpenBSD -current on my laptop, so I can put up with 
e.g., OpenOffice being broken for a day or two while I resolve 
conflicting ports updates). Or if somebody wants to try this once things 
are more stable :-)


1) Getting contacts out of Blackberry (requires Unix or Linux, might 
work on Windows with emulation of UNIX: cygwin, mingw, etc).


Download 'barry' from http://www.netdirect.ca/software/packages/barry/

Run btool to dump the Contacts database to "contacts.txt" (I forget the 
exact syntax here, sorry). Do NOT use the LDIF option!


2) Convert contacts to SQL format for SQLite.

Download my barrycontacts2qtsql from 
http://www.darwinsys.com/openmoko/barrycontacts2qtsql


Or, setup an anoncvs form my repo as per instructions
at http://javacook.darwinsys.com/download.html; it's in the "scripts" 
project, as are the backup and restore scripts cited below (hundreds of 
other UNIX shell scripts too); this way you'll get updates if I make any.


Run it:

awk -F': +' -f $(SCRIPTS)/barrycontacts2qtsql contacts.txt > contacts.sql

3) Grab a copy of the existing database

ian:15$ cat bkup_om_contacts
#!/bin/sh

scp phone2:/Applications/Qtopia/qtopia_db.sqlite ~/openmoko/


4) Merge bb contacts into sqlite

In theory using any sql database tool (I used my own SQLRunner tool (see 
http://javacook.darwinsys.com/download.html) with the sqlite-jdbc driver 
from www.zentus.com/sqlitejdbc/ - but that is a LOT of work for you to 
set up; you can probably use the sqlite-browser from
http://sqlitebrowser.sourceforge.net/ and use the "Import Database" 
feature (which does allow you to add to an existing database). Untested 
though.


5) Make sure Contacts is not running, then Scp the merged database back 
to the phone.


ian:16$ cat restore_om_contacts
#!/bin/sh

scp ~/openmoko/qtopia_db.sqlite phone2:/Applications/Qtopia/
ian:17$

6) Lauch the Contacts application.

I now have 800 or so entries in my Contacts list!

For information on setting up TCP/IP to the phone, don't ask me, it's on 
the Wiki.


The three scripts of mine that I mention here can be downloaded  in 
updated versions from my private CVS repo ; see the above download.html 
page for details.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community