Re: How do you like to read a phone number?

2008-12-29 Thread Roland Mas
Michele Renda, 2008-12-29 13:00:01 +0100 :

 Please, who has some time, can you please write your country (Italy,
 France, etc.) and the way how usually is normal to read a phone
 number in your country (with international prefix)

  For France (+33), the usual format is +33 # ## ## ## ##
(international format) or 0# ## ## ## ## (without the international
prefix).  Sometimes the ## components are grouped by pairs, giving two
blocks of digits, but that's not quite common.  Digits (or groups of
digits) are usually separated by spaces, but sometimes by dots (as in
0#.##.##.##.##).

Roland.
-- 
Roland Mas

Sauvez une souris, mangez votre chat.

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


Re: How do you like to read a phone number?

2008-12-29 Thread Roland Mas
Michele Renda, 2008-12-29 13:27:45 +0100 :

 Il 29/12/2008 13:20, Roland Mas ha scritto:
For France (+33), the usual format is +33 # ## ## ## ##
 (international format) or 0# ## ## ## ## (without the international
 prefix)
 Thank you for your answer.

 I have a question: this is valid for every number? (both Fix and
 Mobil?)

  Yes.  Normal numbers in mainland France are 10 digits (including
initial 0), as well as most special numbers (toll-free or
premium-rate).  That includes landlines, mobile phones, and the
numbers provided by most ADSL ISPs when they provide VOIP to their
subscribers.  A few special numbers are shorter, such as the directory
enquiries, some 4-digit numbers for rapid access to some large
corporations or entities, and some 6-digit numbers that are (as far as
I know) mostly used for sending SMS at a premium rate and get
something in return (ringtones, background images, horoscopes and so
on).

 And for you... for example... when you dial a number, is more easy
 to read a number in this format +33 # ## ## ## ## ?

  My personal preference is +33 #  , but it is not very
common.  Most people don't know (or don't want to see) the +33 part,
and they usually see (and write) five pairs of digits.

 and the last question... there is a rule in France to separate a
 fixed number / mobile number?

  Yes, although the IP/telephony convergence is blurring the line a
bit.  Historically, 01 to 05 numbers (+33 1 to +33 5) are geographical
numbers corresponding to landlines.  06 numbers are mobile phones.  08
numbers are for special rates (toll-free or premium-rate) as well as
VOIP.  VOIP numbers are theoretically migrating to be 09, but not
everyone knows or uses their 09 number.  Also, some VOIP providers
give numbers that look like they're geographical, whereas some others
give out 08 or 09 numbers.

  http://en.wikipedia.org/wiki/Telephone_numbers_in_France has all the
details.

Roland.
-- 
Roland Mas

Give a man a fire and he's warm for a day, but set fire to him and he's
warm for the rest of his life -- Solid Jackson, in Jingo (Terry Pratchett)

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


Re: [debian] how to build emacs 23?

2008-10-07 Thread Roland Mas
[EMAIL PROTECTED], 2008-10-07 10:02:56 +0200 :

 I would like to build emacs 23 for Freerunner on Debian, but I have
 no clear idea how to do it. Pointers would be appreciated.

  Unofficial source packages are available on
http://emacs.orebokech.com/

Roland.
-- 
Roland Mas

In every life you got some trouble, when you worry you make it double.
  -- in Don't worry, be happy (Bobby McFerrin)

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


Re: [debian gps] How to check gps

2008-09-24 Thread Roland Mas
Fox Mulder, 2008-09-24 17:51:30 +0200 :

 If someone of you manage to use fso-gpsd with tangogps for more than
 a few minutes without problems than please report it. My try to do
 so ended in a failure why i use (old) gpsd at the moment.

It works for me.  I don't record traces these days because I'm stuck
at home working, but I get a fix that lasts for as long as I've looked
at it so far.

Roland.
-- 
Roland Mas

Au royaume des aveugles, les borgnes n'ont qu'un oeil.

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


Re: [debian gps] How to check gps

2008-09-24 Thread Roland Mas
Fox Mulder, 2008-09-24 18:10:13 +0200 :

 It works for me.  I don't record traces these days because I'm
 stuck at home working, but I get a fix that lasts for as long as
 I've looked at it so far.

 And you use debian and only deinstalled gpsd und installed fso-gpsd
 for that to work?

  Yes.

 Is the gps-time correctly shown in tangogps?

  I must confess I don't look at GPS time that often (NTP is there for
a reason :-).  Now you mention it, it seems to believe we are
currently on the 30th of November, 2008 at midnight.

Roland.
-- 
Roland Mas

Bonjour, je suis un virus de signature.  Propagez-moi dans la vôtre !

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


Re: [debian gps] How to check gps

2008-09-24 Thread Roland Mas
Fox Mulder, 2008-09-24 18:28:25 +0200 :

 Ok, than this bug still exists.

  Actually... I left the FR running since my last mail, and it now
displays the correct GPS time.  I didn't keep an eye on it, so I don't
know how long it took.

Roland.
-- 
Roland Mas

Bee There Orr Bee A Rectangular Thyng!
  -- in Soul Music (Terry Pratchett)

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


Re: Numptyphysics on [EMAIL PROTECTED]

2008-09-01 Thread Roland Mas
Michele Renda, 2008-09-01 10:56:52 +0200 :

 It will be nice to have a little repository for all the person that
 use Debian on FR where they can find the programs that are
 unavailable on the Debian official channed !

That's exactly what the pkg-fso repository is about, you know.

Roland.
-- 
Roland Mas

It would be hard to be deader without special training.
  -- in Theatre of Cruelty (Terry Pratchett)

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


Re: Debian on the FreeRunner -- now official

2008-08-16 Thread Roland Mas
Risto H. Kurppa, 2008-08-16 12:31:22 +0300 :

 On Sat, Aug 16, 2008 at 12:22 PM, arne anka [EMAIL PROTECTED] wrote:
 So now people, let's write a page that lists some cool (read:
 recommended or so..) apps that you can run on debian here :)

 i am far more intersted to switch to a useful desktop manager and still to
 be able to use the phone part.
 at least i'd like to know how i do access installed applications, zhone
 only presents that four predefined buttons.

 .. let me know if you find it out. Installing gdm and xfce4 would
 take approx 85 megs, I only have 70 left after the installation on
 my kit-512MB card (didn't wanto to empty 8GB one - especially when
 there's been some sdhc io-reports..) so can't try it yet.

  Hints to free up some space:
- Remove /usr/share/man
- Remove /usr/share/doc
- Remove unneeded directories in /usr/share/locale/ (mine now contains
  only the English variants, plus French)

  The files in there will reappear if you reinstall or upgrade
packages, so this is only a temporary trick.  Nice results, though:

debian-gta02:~# df -h /
FilesystemSize  Used Avail Use% Mounted on
rootfs462M  287M  151M  66% /
debian-gta02:~# 

  Still not small enough to fit into NAND flash, unfortunately.

Roland.
-- 
Roland Mas

C r  ' s  d   a  ue   ell r   a  u i r .  
  -- Signatures à collectionner, série n°1, partie 1/3.

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


Re: atd: how to start a job every 10 minutes ?

2008-08-15 Thread Roland Mas
Harald Koenig, 2008-08-15 12:04:44 +0200 :

 Hi,

 I'd like to trigger at jobs every ~10 minutes (so that RTC resumes
 from suspend) but somehow atd (Om 2008.8) behaves strange

 any hints how to deal with atd and trigger jobs ?

You may want ot look at cron instead of at.  at is for one-time jobs,
cron is for recurring jobs.

Roland.
-- 
Roland Mas

... all in all it's just another rule in the firewall.
  -- Ping Flood

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


Re: 2008.9 - Was Re: Third request: what *is* the warranty on the Freerunner?

2008-08-14 Thread Roland Mas
Jay Vaughan, 2008-08-13 22:47:28 +0200 :

  Oh come on.  After reading all your (and others') scary messages
 about that, I decided to give it a try.  So I pointed my browser to
 http://wiki.openmoko.org/wiki/MokoMakefile.  Half an hour later, I
 had a build in progress.  Most of that half-hour was spent waiting
 for stuff to download, and part of the rest was due to my running
 the whole stuff in a particular isolated environment (cowbuilder
 chroot, for those who care) with its own characteristics (stuff
 runs as root, and I didn't have a home directory).

 great that its working for you, looking forward to future news of
 your .ipk URL's ..

  I'm more likely to provide *.deb, actually, but that's just because
I'm an arrogant, smug, elitist Debian bastard (and not ashamed of it,
either).

  Of course, the build hasn't completed yet (I have a few *.ipk
 already, but the webpage mentions 5 hours on a computer that's
 rather faster than mine), but if pasting less than 15 commands
 straight from a web page is too high a barrier to entry for
 prospective developers, I doubt they'd be able to accomplish much
 even if it was a single command to run.

 since where did i say that i couldn't follow the instructions on the
 wiki?

  You didn't, as far as I know.  You did, however, complain loudly
about how it's hard to keep up with them with regards to code changes
and build environments.  Which is what I was replying to: there's a
make target to update all of that in the MokoMakefile, so it's one
command to type.

 the issue is that there is no one stable, common, build system - or
 distribution channel - for developers to pop their stuff into, and
 with the moving targets of 'fso' vs. 'asu' vs 'om2007.2' vs
 'underground' vs 'etc', its a bother.

  Choice in build systems isn't bad per se, as far as I know.  And
choice a definite bonus when it comes to distribution channels: I
wouldn't want the official feeds to contain random contributed
packages.  I don't have a problem with people adding unofficial
repositories and publishing the URLs, though.

  I do agree with the probably excessive multiplicity of targets, but
my feeling is that this is going to settle down.  OM2007.2 seems to
have entered maintenance-only mode, I expect ASU/OM2008.8 to follow
the same path, and I envision most of the momentum moving to FSO.  As
for the distribution system underneath, I'd be happy to see it migrate
to Debian proper, since that would gain us the whole Debian
repositories, build systems, tools and experience to build on, but
maybe that's just me dreaming (although I'm quite impressed with the
fact that the pkg-fso team has managed to prepare a working
Debian-based image with FSO and Zhone in a few days).

  Half an hour.  15 commands to copy and paste.  How much more
 hand-holding does a developer need?

 please, do not assume i am a fool unless you would consider like
 countenance.

  Whoa, calm down.  I do not assume you are a fool.  I was just
pointing out a discrepancy between your loud complaints about the
barrier to entry, which looked scary to me, and how it's actually
rather easy to setup a development environment.

 its not the hand-holding or the trick makefiles.  its the dire lack
 of a dictator to rally around and form a federation ..  and as a
 result, actually, building apps for the phone *with* the phone is
 turning out to be, frankly, a lot more workable - and lightweight -
 than over a year of mokomakefile groupthink right about now ..

  One more reason that NIH-syndrome is evil.  Should have gone for
Debian right at the start :-)

  (In order not to degenerate into a DSW, here are my own
contributions so far: 1. a Python script to load and save contacts to
files in 2007.2, and 2. a failed attempt at another script to switch
from lock-and-suspend to lock-only when a call is active.  You win
hands down.)

Roland.
-- 
Roland Mas

Why did the elephant cross the road?
Because it was the chicken's day off.

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


Re: 2008.9 - Was Re: Third request: what *is* the warranty on the Freerunner?

2008-08-14 Thread Roland Mas
arne anka, 2008-08-14 14:24:58 +0200 :

   I'm more likely to provide *.deb, actually, but that's just because
 I'm an arrogant, smug, elitist Debian bastard (and not ashamed of it,
 either).

 yeah! that's the spirit!
 you don't have by chance a blog or so where you jot down your experiences  
 with debian on fr? i think, i am going to try it this weekend.

I have a blog, but I haven't started mentioning the FR on it yet.  Nor
have I started running Debian on the FR.  OM2007.2 works for me, and
I'm loathe to switch to something else until it stabilises a bit.
Probably some time around FSO milestone 3.

  In the meantime, there is http://wiki.debian.org/pkg-fso.

Roland.
-- 
Roland Mas

How does an octopus go into battle?
Fully-armed.

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


Re: 2008.9 - Was Re: Third request: what *is* the warranty on the Freerunner?

2008-08-13 Thread Roland Mas
Jay Vaughan, 2008-08-13 14:42:23 +0200 :

 Idea of Open Source projects is to release them before they're
 ready, to let community work on them as well.

 That would be fine in our case, *if* we could work on them
 concurrently, but there is so much cruft in dealing with the build
 environment - and too many forks in the details - that it makes it
 very unproductive to try to contribute.

  Oh come on.  After reading all your (and others') scary messages
about that, I decided to give it a try.  So I pointed my browser to
http://wiki.openmoko.org/wiki/MokoMakefile.  Half an hour later, I had
a build in progress.  Most of that half-hour was spent waiting for
stuff to download, and part of the rest was due to my running the
whole stuff in a particular isolated environment (cowbuilder chroot,
for those who care) with its own characteristics (stuff runs as root,
and I didn't have a home directory).

  Of course, the build hasn't completed yet (I have a few *.ipk
already, but the webpage mentions 5 hours on a computer that's rather
faster than mine), but if pasting less than 15 commands straight from
a web page is too high a barrier to entry for prospective developers,
I doubt they'd be able to accomplish much even if it was a single
command to run.

  Half an hour.  15 commands to copy and paste.  How much more
hand-holding does a developer need?

Roland.
-- 
Roland Mas

A man walks into a bar.
Bang.

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


Re: GPRS / Wifi

2008-08-10 Thread Roland Mas
Mike Baroukh, 2008-08-10 00:52:11 +0200 :

 But I'm asking this : When using wifi or usb, I don't need a proxy.
 When using GPRS, I need a proxy.
 I will not re-configure anything each time.

 Does somebody know if there is a solution ?

  Putting scripts into /etc/network/if-up.d would probably work.

 for each connection, there would be parameters :
 - ip (static or dhcp)

  This should be configured in /etc/network/interfaces

 - nameserver
 - gateway

  This info can come from the DHCP server, the PPP remote end, or
static in /etc/network/interfaces again.

 - proxy (http / https / ftp  ...)
 - proxy type (transparent or not)
 - user/password for proxy
 - may be max upload/download bandwith
 - may be firewall rules

  Scripts are your friends there :-)

 Last : may be it could connect to internet transparently if needed by an
 application.

  At least on Debian, there's a diald package that does exactly
this.  I guess it could be ported to Openmoko.

Roland.
-- 
Roland Mas

M-x execute-extended-command

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


Re: GPRS / Wifi

2008-08-10 Thread Roland Mas
Mike Baroukh, 2008-08-10 12:43:49 +0200 :


 Putting scripts into /etc/network/if-up.d would probably work.

 Not so easy :
 - you may have 2 places where the same interface has different
 parameters (wifi at home and wifi at work ...). So you can't just add
 [pre|post]-up parameters in /etc/network/interface.

Yes you can.  I do that on my laptop already: the scripts do the
detection of what Wifi access points are in the vicinity, and change
various parameters accordingly (WEP key, HTTP proxy, and I even used
to change the contents of /etc/apt/sources.list at some point).

 - Not so easy to configure tangogps, maemo, wget, mail client, ...

  Because they use different configuration schemes, I guess.  As for
Tangogps, I think you can already change the configuration with
gconftool-2.  As for the others, I don't know.

 Thats why I think that place parameters should be part of the framework
 and not just scripting.
 Application then could be compiled for the framework and using shared
 informations on how to connect.

  That looks like overkill to me.  Why add more complexity to the
framework when you already have a $http_proxy environment variable?

 Finally, connection parameters should not be part of the system.
 They are part of my profiles = they don't ahve to be in
 /etc/network/interface.

  And on that point, I wholeheartedly disagree.  Down that way lies
madness, and application-specific parameters, and a whole mess of
synchronisation problems and hard-to-debug stuff.

 Personnaly, to connect wifi, I prefer to use a script like

 INTERFACE=eth0
 ifconfig $INTERFACE up
 iwconfig $INTERFACE essid myessid
 iwconfig $INTERFACE mode managed
 iwconfig $INTERFACE channel 7
 iwconfig $INTERFACE key open my wep key
 udhcpc -i eth0

  I prefer using just ifup eth1 and have pre/post scripts in
/etc/network/interfaces or /etc/network/*.d, but that's a matter of
taste.

Roland.
-- 
Roland Mas

- Ogenki desuka, yau de poêle ?
- Genki desu, ture en zinc.

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


Re: wrong offset of mouse in landscape mode (and scummvm)

2008-08-06 Thread Roland Mas
Dale Maggee, 2008-08-07 02:31:23 +1000 :

[...]

 I'm having exactly the same problem with scummVM as described above.
 Looking I found /usr/bin/scummvm, but trying to run it i get :

 /bin/sh: /usr/bin/scummvm: not found

 which is very odd, because I can type /usr/bin/scum[TAB], and it
 autocompletes to scummvm. the file is marked as executable. I can't
 see anything wrong.

This usually means a broken (or missing) interpreter.  If
/usr/bin/scummvm is a compiled binary, then the interpreter would be
libc6/ld.so, but I assume you'd have been bitten by that earlier...

Roland.
-- 
Roland Mas

Êtes vous sûr ? (O/N)
  -- Derniers mots d'un ordinateur

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


Re: Ringtone and vibration configuration

2008-07-26 Thread Roland Mas
Hans L, 2008-07-26 03:55:14 -0500 :

 I think next I will attempt to make a program to record beats in
 real time by pressing the touchpad to the beat.

And next, you'll port Guitar Hero or Frets On Fire, and you'll be
adulated by lots of people :-)

Roland.
-- 
Roland Mas

The cherry blossom / Tumbles from the highest tree / One needs more petrol
  -- in Good Omens (Terry Pratchett and Neil Gaiman)

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


Re: sysfsutils -- the script

2008-07-24 Thread Roland Mas
arne anka, 2008-07-23 20:03:21 +0200 :

 sysfsutils (at least on debian/unstable) contains a script, that
 reads a configfiole on startup and sets values in /sys/ accordingly.

  Thanks for the script.

[...]

 class/leds/gta02-power:orange/trigger=bat-charging
 class/leds/gta02-power:blue/trigger=bat-full
 class/leds/gta02-aux:red/trigger=nand-disk

 when chargin the orange led should shine, when full the blue.

  For some reason, once the battery has started charging, it doesn't
seem to stop.  Sometimes the LED briefly flickers when I unplug the
USB cable, but it comes up again.  The icon in the top of the screen
changes to a battery rather than one with a lightning-bolt in it, but
what does it know, the LED is directly plugged into the kernel, so I
guess it's authoritative.  Apparently the hardware guys finally found
an infinite source of energy!

...that, or the kernel just forgets to switch the LED off.  Andy?

Roland.
-- 
Roland Mas

Reincarnation likes a joke as much as the next philosophical hypothesis.
  -- in The Truth (Terry Pratchett)

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


Re: sysfsutils -- the script

2008-07-24 Thread Roland Mas
Andy Green, 2008-07-24 09:34:12 +0100 :

[...]

 | ...that, or the kernel just forgets to switch the LED off.  Andy?

 Should be fixed in the last couple of days
[...]
 If you're running today's kernel, then... obviously not fixed
 enough!

I believe I am.  My installed kernel is from Jul 23 06:34:19 CEST with
Version: 2:2.6.24+git24+be0f111b3d1570dec174ff301d08bad995ccf1e6-r0
(and yes, I have rebooted into it :-)

Roland.
-- 
Roland Mas

La menace de la baffe pèse plus lourd que la baffe elle-même.
  -- in Sri Raoul le petit yogi (Gaudelette)

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


Re: How to import vCard into contacts

2008-07-24 Thread Roland Mas
Maciej Piechotka, 2008-07-24 11:58:03 +0200 :

 On my previous phone I had large collection of the contacts (email,
 phones etc.). I've exported it by gammu to the vCard format. How to
 import them into OpenMoko Contacts?

http://wiki.openmoko.org/wiki/Import_Vcf_Contacts

Roland.
-- 
Roland Mas

Just because you're dead doesn't mean they aren't still out to get you.
  -- Virgil, in Ye Gods! (Tom Holt)

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


Re: Has anyone tried the invisibleSHIELD on the freerunner?

2008-07-23 Thread Roland Mas
Cédric Berger, 2008-07-23 14:10:44 +0200 :

 (I'm french... I just try not to use too wrong words to describe :-)

I assume you got it from Zagg; were there any surprises such as
customs/taxes surcharge?  I've been caught quite a few times by
interesting prices that turned up not too interesting after the
customs took their toll :-/

Roland.
-- 
Roland Mas

One... two... one, two, many, lots!
  -- Lias, in Soul music (Terry Pratchett)

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


Re: Reason for GPS problems found!

2008-07-21 Thread Roland Mas
Andy Green, 2008-07-20 18:50:02 +0100 :

 Thanks for this report, I went and looked and found I didn't take
 care of the case where last packet transferred was not a bulk read
 packet: that what happens on resume.  I added a patch to stable
 branch that should be out tomorrow hopefully and give the same
 SD_CLK performance with or without resumes.

Based on a handful of tests, and without tweaking the new parameter, I
can confirm that the GPS problem seems fixed for me, even after
suspending, even indoors.  Let me get this straight: Andy, you rock.
Others @openmoko: you rock too.  So there.

  Now this gets me wondering whether the Freerunner could sustain an
Openstreetmap editor for realtime map-making :-)

Roland.
-- 
Roland Mas

Homme qui plus rien à dire, citer proverbe chinois.
  -- Proverbe chinois.

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


Re: Matchbox Keyboard Layout Change

2008-07-21 Thread Roland Mas
shawn sullivan, 2008-07-21 09:01:26 -0600 :

 Dvorak, here I come!

Er, Dvorak on a touchscreen might be exactly the wrong thing to
do... you don't really want to alternate taps on both sides of the
screen, do you?

  Unless you meant some layout optimised especially for the FR
touchscreen according to the same methods that gave us the Dvorak-ish
keyboard layouts, in which case I'm all in favour :-)

Roland.
-- 
Roland Mas

Why did the elephant cross the road?
Because it was the chicken's day off.

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


Re: Rules based policy engine

2008-07-20 Thread Roland Mas
Scott Derrick, 2008-07-20 06:45:44 -0600 :

 If GPS position is going to be a phone answering rule you would have
 to have the GPS sub system running all the time. It can't wake from
 sleep and acquire a position soon enough go be part of the
 decision. Not sure what that will do to battery life.

  You could approximate with the GSM cell identifiers.

Roland.
-- 
Roland Mas

Et c'est tellement plus mignon de se faire traiter de con en chanson...
  -- in En chantant (Michel Sardou)

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


Re: Special Letters?

2008-07-20 Thread Roland Mas
arne anka, 2008-07-20 16:01:34 +0200 :

 sadly enough i currently have no clue what causes the lack of
 anything non-ascii, would have expected he fr to be unicode driven.

I think it is Unicode driven.  My contacts have some non-ascii
characters in their names, and they display just fine.  I guess the
problem is mostly the input method.

Roland.
-- 
Roland Mas

Bee There Orr Bee A Rectangular Thyng!
  -- in Soul Music (Terry Pratchett)

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


Re: Import Contacts

2008-07-20 Thread Roland Mas
C R McClenaghan, 2008-07-16 10:35:13 -0700 :

 All,

 I get the following error using manage-contacts.py in the following
 way from SSH:

   python manage-contacts.py load vCards.vcf

[...]

 dbus.exceptions.DBusException:
 org.freedesktop.DBus.Error.UnknownMethod: Method addContact with
 signature s on interface
 org.gnome.evolution.dataserver.addressbook.Book doesn't exist

 I have installed via opkg python-dbus per wiki instructions.

Strange.  It still works here.  You do have openmoko-contacts2
installed, right?  You're not using ASU or Qtopia or something?

Roland.
-- 
Roland Mas

Despite rumour, Death isn't cruel - merely terribly, terribly good at his job.
  -- in Sourcery (Terry Pratchett)

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


Re: Import Contacts

2008-07-20 Thread Roland Mas
Jeffrey Ratcliffe, 2008-07-20 20:13:29 +0200 :

 I have the same problem, and additionally, the dump option runs
 without error, but also without output.

I just tried again, and I managed to get these symptoms when running
the script too soon after a boot.  The second run went on fine.  Maybe
something needs the daemon to be started, and it's not started
initially...

Roland.
-- 
Roland Mas

Au royaume des aveugles, il y a des borgnes à ne pas dépasser.
  -- in Soeur Marie-Thérèse des Batignolles (Maëster)

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


Re: Reason for GPS problems found!

2008-07-19 Thread Roland Mas
Timo Jyrinki, 2008-07-18 13:42:02 +0300 :

 Does anyone else have a reliability problem now with the new
 kernel and GPS when SD card is used?

Am Fr  18. Juli 2008 schrieb Roland Mas:

 I have.  Didn't manage to properly isolate the problem, but my gut
 feeling is that Andy's patch to disable SD when acquiring the first
 fix does only that for, well, the first fix.  *Apparently*, there are
 circumstances where running agpsgui once, getting a fix, exiting and
 restarting afterwards, doesn't result in the FR getting a new fix.  As
 you said, rebooting solves the problem, but suspend/resume cycles
 don't seem to reliably fix it.

Joerg Reisenweber, 2008-07-19 00:26:14 +0200 :

 Sorry! There's *no* disabling of SDcard for FF! 

  My apologies.  I was under the impression that the gist of the
kernel patch was to temporarily switch off the clock for the SD card
reader when it's not in use, and that this was able to reduce
interference with GPS signals, thus helping TTFF.  But I haven't
touched radio comms for years, so I might be completely off.

 Who's talking about suspend/resume cycles, did I miss sth?

  I am.  Since rebooting seemed to have an influence on the problem, I
thought it could help if I tried suspending and report my results.

 Please read the appropriate posts describing the way this patch
 works.  Otherwise, please don't conclude on false assumptions, but
 just report what you observed. Thanks for regarding this, helps a
 lot!

  That's what I was trying to do.  I suppose my wording was not good
enough, and I apologise for that.

Roland.
-- 
Roland Mas

Bee There Orr Bee A Rectangular Thyng!
  -- in Soul Music (Terry Pratchett)

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


Re: Import Contacts

2008-07-18 Thread Roland Mas
Alexander Lehner, 2008-07-18 04:06:53 +0200 :

 - unicode/UTF8

 I managed to convert vcard fields into proper UTF-8 (from plain
 ASCII).  But it seems to me that UTF-8 conversion is not well
 supported with the basic (python) set-up on the phone. I had to do
 this on my linux host.

  To be honest, the main reason I wrote manage-contacts.py was to be
able to edit contacts on my main computer :-)  I'm frightened enough
by the input method of the Freerunner, I don't even want to think
about entering Unicode characters on it just yet.

 Also, the resulting characters were not correctly displayed in my
 case even though contacts import did not complain (any experience
 here whether display of e.g. german umlaute works?)

  No umlaute here, but I do have some French accented letters such as
é and è and aven one æ, and they display fine.  I even tried typing my
Japanese teacher's name in Japanese, but apparently there's no
Japanese-capable font in OM2007.2 so far.

  While I'm at it: it might be interesting setting a proper locale
name in /etc/profile, so contacts are sorted according properly.  I
did that with export LANG=fr_FR.UTF-8, so names starting with É sort
among the names starting with E rather than at the very end.  The
backside of that is that agpsui tries to interpret gpsd's output as
fr_FR, with its decimal separator set to a comma rather than a dot,
and therefore wrong data comes out.  But I suspect that's just a bug.

Roland.
-- 
Roland Mas

/* Halley */ (Halley's comment.)

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


Re: Battery Lifetime

2008-07-18 Thread Roland Mas
Andy Green, 2008-07-18 10:29:54 +0100 :

 Somebody in the thread at some point said:
 | What's wrong with 100's of resumes / day, as long as each one takes no
 | longer
 | than 2~3sec, and is on low power profile?
 |
 | the screen becomes senstive to tapping -- and if your fr is in a place
 | where taps to the screen might occur frequently (say in your bag) it
 will
 | never suspend.

 Touchscreen is not a wake from suspend source, so as you suggest it
 didn't get to suspend to make this trouble.  Answer for that is in the X
 world, giving an easy way to get into suspend immediately if you know it
 goes to your bag.

The scenario, as I understand it, is this:
1. Freerunner gets into suspend (either manually or after some time);
2. Freerunner is put into bag;
3. GSM ping gets the phone out of suspend;
4. Freerunner is still in the bag (and you're walking to/from work),
so its touchscreen prevents further suspends.

Roland.
-- 
Roland Mas

Qu'est-ce qui est petit, jaune et vachement dangereux ?
Un canari avec le mot de passe de root.

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


Re: Battery Lifetime

2008-07-18 Thread Roland Mas
arne anka, 2008-07-18 15:09:01 +0200 :

 is there a way to detect when it wakes? a hook to plug custom
 actions into? 

You might try sticking a script in /etc/apm/resume.d, at least as a
first approach.

Roland.
-- 
Roland Mas

Certains disent que les vrais hommes ne font pas de backups.
Mais ils disent aussi que même les vrais hommes pleurent parfois.

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


Re: Reason for GPS problems found!

2008-07-18 Thread Roland Mas
Timo Jyrinki, 2008-07-18 13:42:02 +0300 :

 Does anyone else have a reliability problem now with the new kernel
 and GPS when SD card is used?

I have.  Didn't manage to properly isolate the problem, but my gut
feeling is that Andy's patch to disable SD when acquiring the first
fix does only that for, well, the first fix.  *Apparently*, there are
circumstances where running agpsgui once, getting a fix, exiting and
restarting afterwards, doesn't result in the FR getting a new fix.  As
you said, rebooting solves the problem, but suspend/resume cycles
don't seem to reliably fix it.

Roland.
-- 
Roland Mas

Au royaume des aveugles, il y a des borgnes à ne pas dépasser.
  -- in Soeur Marie-Thérèse des Batignolles (Maëster)

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


Re: Calendar

2008-07-17 Thread Roland Mas
Steven **, 2008-07-17 14:56:39 -0500 :

 I believe the command to install it is: opkg install openmoko-dates2

 It works ok.  It's just really slow sometimes.

I gather it's based on the EDS backend.  So, for the obvious question:
can one make that EDS talk to a remote calendar server?  I have a
CalDAV server that I use with Sunbird/Iceowl and Evolution, on both my
main computer and my laptop when I'm away from home, and I'd just
*love* to access it from my phone too.  Any insight would be most
welcome.

Roland.
-- 
Roland Mas

Plant a radish, get a radish, never any doubt!
  -- Bellamy  Hucklebee, in The Fantasticks

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


Re: Import Contacts

2008-07-14 Thread Roland Mas
Andreas Dalsgaard, 2008-07-14 14:01:07 +0200 :

[...]

 Take a quick look at the attached import_contacts.py script, it is
 based on Al Johnson modification to Wurps script.

Please pardon my intruding into a thread, I just subscribed to the
list.  I have also worked on contacts management, mostly to allow
myself to fix non-ASCII names in a real editor with a real keyboard.

  The result is the attached script, which improves on the previous
ones in the following ways:

- you can run it through SSH, and it looks for a DBUS session;
- you can dump all contacts to a file (a series of concatenated
  vcards);
- you an reload that file (after having altered it), and it'll update
  contacts when they already exist (based on UID) or create
  new contacts otherwise.

  So, basically:

$ scp manage-contacts.py openmoko:
$ ssh openmoko python manage-contacts.py dump  contacts.txt
$ emacs/vim/nano/gedit/whatever contacts.txt
$ ssh openmoko python manage-contacts.py load  contacts.txt

  As far as I'm concerned (look, I'm a Debian integrist, I'm
*supposed* to care about these things :-), my modifications to the
initial script are subject to the WTFPL.

Roland.
-- 
Roland Mas

Plus on en fout, plus y'en a du riz.
  -- Proverbe chinois.
#!/usr/bin/python
# coding=utf-8

from __future__ import with_statement

import dbus
import sys, os
import tempfile
import re, string, time

ps = os.popen ('ps auxe | grep -m 1 DBUS_SESSION_BUS_ADDRESS')
l = ps.read ()
r = re.compile ('DBUS_SESSION_BUS_ADDRESS=(\S+)')
m = r.search (l)
a = m.expand ('\\1')
os.environ ['DBUS_SESSION_BUS_ADDRESS'] = a

bus_name = 'org.gnome.evolution.dataserver.AddressBook'
obj_name = '/org/gnome/evolution/dataserver/addressbook/file_3a__2f__2f__2f_home_2f_root_2f__2e_evolution_2f_addressbook_2f_local_2f_system'

addressBook = None
def getAddressBook ():
  global addressBook
  if addressBook is None:
sb = dbus.SessionBus ()
obj = sb.get_object (bus_name, obj_name)
addressBook = dbus.Interface (obj, 'org.gnome.evolution.dataserver.addressbook.Book')
  return addressBook

if len (sys.argv) != 2:
  print (Expects a single argument, 'dump' or 'load')
  print (With 'dump', dumps all contacts as vcards to STDOUT)
  print (With 'load', loads vcards from STDIN)
  exit (1)

def dump_contacts ():
  # Note: this is a gross hack, but I didn't manage to get getContactList to work
  strings = os.popen ('strings /home/root/.evolution/addressbook/local/system/addressbook.db | grep ^pas-id- | sort -u').readlines ()
  for id in strings:
id = id.rstrip ()
try:
  print getAddressBook ().getContact (id) + \r
except:
  pass

def load_contacts ():
  contacts = parse_stdin ()
  ab = getAddressBook ()
  l = contacts.keys ()
  l.sort ()
  for k in contacts.keys ():
try:
  c = ab.getContact (k)
  print Contact already exists, modifying
  try:
ab.modifyContact (contacts [k])
  except:
print Got error when modifying  + c
except:
  print New contact
  ab.addContact (contacts [k])

def parse_stdin ():
  lines = sys.stdin.readlines ()
  contacts = {}
  cur = []
  index = 0
  for l in lines:
line = l.rstrip ()
if line == '':
  continue
if line == 'END:VCARD':
  cur.append (line)
  seen = ''
  for record in cur:
if record.startswith ('UID:'):
  seen = record [4:]
  seen = seen.rstrip ()
  if seen == '':
seen = 'new-contact-' + str(index)
index += 1
  contacts [seen] = string.join (cur, '\r\n')
  cur = []
else:
  if line.startswith ('REV:'):
cur.append ('REV: ' + time.strftime ('%Y-%m-%dT%H:%M:%SZ', time.gmtime()))
  else:
cur.append (line)
  return contacts

if sys.argv [1] == 'load':
  load_contacts ()
else:
  dump_contacts ()
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Import Contacts

2008-07-14 Thread Roland Mas
Roland Mas, 2008-07-14 15:09:34 +0200 :

 - you can dump all contacts to a file (a series of concatenated
   vcards);

Forgot to mention: that feature uses a gross hack, I'd be happy to see
it cleaned up.  I just didn't manage to find the query syntax for the
getContactList() method.

Roland.
-- 
Roland Mas

Le weblog entièrement nu -- http://roland.entierement.nu/
Le photoblog entièrement net -- http://roland.entierement.net/

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


Re: Import Contacts

2008-07-14 Thread Roland Mas
smurfy - phil, 2008-07-14 15:30:22 +0200 :

 Please update

 http://wiki.openmoko.org/wiki/Import_Vcf_Contacts

 with your new versions, if you need space i could place it @my
 domain (like my first version :D)

Space isn't a problem (I uploaded the script to [1]), but I'm
reluctant to create yet another account on yet another website.  Could
you add the link (and maybe rephrase the text on the article to remove
the thing about running from a terminal rather than SSH)?

  Thanks,

Roland.

[1] http://www.placard.fr.eu.org/~roland/tmp/manage-contacts.py
-- 
Roland Mas

  ()Campagne du ruban ASCII :
  /\Contre les mails en HTML et les vcard !

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