Re: Unshare an Activity

2009-02-16 Thread Bert Freudenberg

On 16.02.2009, at 00:21, Jorge Saldivar wrote:

 Hi all,

 I am doing an activity for blind childrens and I need to know If  
 some one knows if sugar has a way to programmaticaly unshare a  
 shared activity?, and if it has, how can i do that?.

 If I join a shared activity I can use the leave method from activity  
 object of presenceservice to leave the shared activity, but, if I  
 share how can I stop sharing it?


The shared activity has a Leave() function:

http://wiki.laptop.org/go/Low-level_Activity_API#Leaving

I am not entirely sure if or how this is exposed in the Python  
toolkit. The default UI does not expose leaving/re-joining.

The activity will of course continue to be shared between the other  
participants.

- Bert -


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Testing] Wireless test results

2009-02-16 Thread Ties Stuij
On Mon, Feb 16, 2009 at 12:22 PM, Gary C Martin g...@garycmartin.com wrote:
 On 16 Feb 2009, at 05:32, Chris Ball wrote:

 Hi,

 Last I checked, it was either the firmware or the kernel changes
 that did it.  I posted my findings to the mailing list in the past
 two weeks.

 I think your findings actually say it was either the firmware,
 kernel,
 or something else altogether.  It'd be good to downgrade both at
 once,
 but still on candidate-800, so that we can check that at least *one*
 of
 the two is the problem.

 I should be asleep, but instead have been zigzagging through old 
 http://xs-dev.laptop.org/~cscott/xo-1/streams/staging/
  staging builds testing WPA and the dialogue cancel dance for the
 last 4hrs:

 790 working
 4 working
 5 working
 6 working -
 7 intermittent
 11 intermittent
 15 broken
 800 broken

 Intermittent means it can occasionally associate with a WPA access
 point with no cancel dance, but usually I had to dance. Broken means I
 had to dance every time.

 One thing I noticed when testing the working 4, 5 and 6 that may help,
 is that if you do naughtily click an already connected WPA access
 point you'll get back to one round of the WPA cancel dance. If you
 make sure you first  select 'disconnect' then click the AP again, you
 get correctly re-associated, no dance required. This suggests that
 clicking a connected AP should either do NOP, or should at least
 disconnect properly before trying to connect again.

 The sound you just heard was my head hitting the pillow :-)

I reported this before with build 26 I believe, but it might be of use
to point out again. Also on 800, the ability of the XO to connect to
an AP have been greatly increased over 767. At the moment connecting
to a WPA ap succeeds one in two times. On 767 it varied from 1 in 5 to
1 in 10 to 1 in can't be bothered to try and connect to the fr!@@n
access point. I already supplied some logs, but if you'd like some
more specific testing output of our setup, I'd be happy to supply it.
Just tell what you want to know.

/Ties
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] mkusbinstall fails -SUCCESS

2009-02-16 Thread David Leeming
Martin,

All solved - I did not read all that Pia has written on the XS installing
server wiki page - it's all there. I missed the bit about editing ks.cfg

Well done Pia and sorry to be too impatient to follow instructions :)

I now have 0.5.1 running on the eBox

David Leeming
Technical Advisor, People First Network, Honiara, Solomon Islands
Alternative email address: leemingda...@yahoo.com.au 



-Original Message-
From: Martin Langhoff [mailto:martin.langh...@gmail.com] 
Sent: Monday, 16 February 2009 6:49 p.m.
To: David Leeming
Cc: qu...@laptop.org; server-de...@lists.laptop.org; Pia Waugh
Subject: Re: [Server-devel] mkusbinstall fails -SUCCESS

On Mon, Feb 16, 2009 at 8:40 PM, David Leeming
leem...@pipolfastaem.gov.sb wrote:
 OK it worked thanks to all of you. You were all right. A combination of
 weird small errors with hardware and sum packages that weren't installed
on
 Ubuntu...

Good to hear you found the way to get it started...

 HOWEVER - the installation fails right at the end when performing
 post-installation config - installing bootloader:

 An unhandled exception occurred. This is most likely a bug. Please save a

Yes, I've seen this on various hardware. It's not really a hw bug,
it's just some odd incompatibility with the installer sw (anaconda).

Can you get your hands on a USB-CDROM?

If not, the next step to study is starting up the install from that
USB stick, and then telling it it's an NFS-based installation, and
pointing it to an NFS server...

... it's a hard road if you don't have a CDROM... :-/

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

___
Server-devel mailing list
server-de...@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: Unshare an Activity

2009-02-16 Thread Bert Freudenberg
On 16.02.2009, at 09:10, Bert Freudenberg wrote:

 On 16.02.2009, at 00:21, Jorge Saldivar wrote:

 Hi all,

 I am doing an activity for blind childrens and I need to know If
 some one knows if sugar has a way to programmaticaly unshare a
 shared activity?, and if it has, how can i do that?.

 If I join a shared activity I can use the leave method from activity
 object of presenceservice to leave the shared activity, but, if I
 share how can I stop sharing it?


 The shared activity has a Leave() function:

Err, you knew that already. To early. Need coffee.

But, even if you initiated the sharing, you can leave the shared  
activity. After an activity has been shared, all participants are equal.

 The activity will of course continue to be shared between the other
 participants.


I think there is no way to force un-sharing of an activity. You  
could only implement it yourself by sending a message to all other  
participants while still shared, and each one of them leaves the  
activity.

- Bert -


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Wireless test results (Was: Announcing the first 8.2.1 release candidate)

2009-02-16 Thread Bert Freudenberg

On 16.02.2009, at 04:48, Gary C Martin wrote:

 On 16 Feb 2009, at 03:18, James Cameron wrote:

 On Mon, Feb 16, 2009 at 03:05:59AM +, Gary C Martin wrote:
 Summary: 8.2.1 has regressed relative to 8.2 for WPA access points.
 You now have to enter the security string; it will fail to associate
 and prompt you for the security string again; you have to cancel  
 this
 dialogue; it will start trawling for a mesh; you have to click the  
 AP
 again; it will now connect.

 Good simplification of previous workaround, well done.

 Do we have an idea at which build this might have crept in? I'm just
 downloading 790 for a little regression testing (as it's easy for me
 to reproduce), I think after that it's out with the snake boots and
 butterfly net to start hunting through deepest, darkest, 
 http://xs-dev.laptop.org/~cscott/xo-1/streams/staging/

 Any pointers?


Not really, but instead of random testing a look at the package  
changes might be helpful:

http://dev.laptop.org/~bert/staging-pkgs.html

- Bert -


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread Simon Schampijer
Martin Langhoff wrote:
 On Sat, Feb 14, 2009 at 9:11 AM, Simon Schampijer si...@schampijer.de wrote:
 Please find attached the patch against master.
 
 Looks good to me (but I know nothing of what's changed in master...)
 
 - i use the backup_url to see if we are associated with a schoolserver
 - why did you use the jabber server for this 'xs_fqdn = prof.jabber_server'?
 
 Good question. Neither is the right one. In a XS driven net, both are
 equal. In a XS-on-the-internet situation, the public XS may decide
 to not offer backup service. Of the 3 (moodle/webapps, xmpp, backup),
 backup is the most burdensome on the server.
 
 So I think there is a (very marginal) advantage to using the jabber
 server. But the most important hting is that 0.82.x and master use the
 same, so whatever you do, both should use the same...

Our registration URL is REGISTER_URL = 'http://schoolserver:8080/', 
wouldn't the right Domain than be 'schoolserver'? Since the cookie is 
about the registration with the schoolserver this makes most sense to me 
(the jabber server could be somewhere else).

 (The right fix is to have a 'schoolserver fqdn'  entry in the
 profile... but that's for the next Sugar dev cycle I guess...)
 
 - c.execute('''CREATE TABLE IF NOT EXISTS
 + moz_cookies
 + (id INTEGER PRIMARY KEY,
 +  name TEXT,
 +  value TEXT,
 +  host TEXT,
 +  path TEXT,
 +  expiry INTEGER,
 +  lastAccessed INTEGER,
 +  isSecure INTEGER,
 +  isHttpOnly INTEGER);''')

 - is the ';' correct here or a typo?
 
 typo

ok;

 - i only except for sqlite3.Error
 
 Is that the only thing that could go wrong? My thinking has been: if
 we fail, let the startup succeed. This is a good feature, but not a
 showstopper.
 
 - what bothers me a bit is that you don't get an error when the database
 does not exist - sqlite creates a new one actually - so we might return as
 well on 'if not os.path.exists(os.path.join(_profile_path,
 'cookies.sqlite'))'

Well, all the calls in the try block are sqlite3 ones - if they fail - 
we catch it. If something else goes wrong - we want to fail and not hide ;p

 The DB does not exist on the first use of Browse. Actually, it does
 not get created until the first website sets the first cookie, AFAICS.
 
 That means that on the first use of Browse the user goes to the XS and
 doesn't get autenticated. So if the DB doesn't exist, _we want to
 create it_. It's not a failure, it's success.

Ok, sounds good.

 - the method could even be a function as it does not interact at all with
 the class itself, not sure what is nicer
 
 I'd prefer a function, but it's not my codebase, so follow the style... :-)

Done.

BTW: Is there a spec you used for the cookie format? I find field 
descriptions like expires - you name it expiry.

Thanks,
Simon
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: power consumption after shutdown

2009-02-16 Thread James Cameron
On Mon, Feb 16, 2009 at 12:19:41AM -0500, Richard A. Smith wrote:
 qu...@laptop.org wrote:

 (If one discharges an XO battery outside the XO using a home lighting
 circuit, the displayed state of charge will be inconsistent.  Persisting
 in this practice results in increasing inconsistency.  Ceasing the
 practice results in decreasing inconsistency over several XO moderated
 charge and discharge cycles.  The inconsistency results in forced
 power-down before the state of charge would suggest, manifesting as my
 XO stops too soon.)

 How far off is it?  The EC actually tries to detect this.  The ACR  
 register will decrease when you use the battery outside the laptop.

Last I checked, some months ago, it was no more than about 30% error.  I
didn't proceed with the test beyond about that point.

Good to know it tries to do something about it.

-- 
James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: HTML-based/Browser apps (was Re: anti-cheating)

2009-02-16 Thread Mike Dawson
Dear Wade,

Thanks for that - I got it co-operating - I found that something had
gone wrong with inkscape.

Indeed there is some relation to the finance activity - we are
focusing on finding the economic info and presenting it (e.g. we have
a listing of common businesses that people start such as a fruit cart,
how much capital is required etc).

Basic accounting is definitely nice and we have translated your
Finance activity into Dari and Pashto.  The challenge we face is that
people here can be very suspicious as the tax system is 'under
construction' - so we will make it available - and as we establish
trust we should be able to watch how it used.

Thanks/Regards,

-Mike

2009/2/12 Wade Brainerd wad...@gmail.com:
 Hey Mike,
 Make sure to restart Sugar between activity changes (Ctrl+Alt+Erase) as the
 shell doesn't automatically pick up changes yet.
 Also, make sure the .SVG is located in the same folder as the activity.info
 file.  You might try copying a .svg from another activity (say Browse) and
 renaming it to activity-econdev.svg just to make sure the correct file is
 being found.
 Finally, make sure the activity is Starred in the list view or it will not
 appear in the circle.
 -
 Your home finance initiative sounds like it dovetails nicely with my
 http://wiki.laptop.org/go/Finance activity.  It's an extremely simple home
 financial calculator ala Quicken.  I wrote it in the hopes that children
 might help their parents keep track of income and expenses and make budgets.
 If you have time, please take a look and let me know what you think!
 Cheers,
 Wade
 On Thu, Feb 12, 2009 at 5:25 AM, Mike Dawson mikeofmanches...@gmail.com
 wrote:

 Hey All,

 The offline spec is indeed something very cool - I had some time back
 done some work with XSL to try to create something that would have a
 similar effect with Apache cocoon - but nothing can (or should) beat a
 w3c standard.

 What we are trying to do in Afghanistan to see if we can offset the
 cost of the laptop is deliver info to the parents using the XO to see
 if we can help them to increase their income - things like home
 business ideas (e.g. Afghan carpets), CV writing etc. for when the
 kids are asleep...

 As HTML seems to be the most portable / compact choice we have made a
 collection of info as such - but as per the previous post we would
 rather have it a bit more prominent than making the .xol collection
 file.

 I hence copied the help activity to a new folder Econdev.activity:

 Left helpactivity.py as it was except for changing the line:

 HOME = os.path.join(activity.get_bundle_path(), 'econdev/index.html')

 Created activity
 [Activity]
 name = Economic Development
 activity_version = 10
 service_name = af.asmed.EconomicDevelopment
 icon = activity-econdev
 class = helpactivity.HelpActivity
 license = GPLv2

 Then there is an SVG I made in Inkscape activity/activity-econdev.svg
 - yet somehow when this folder Econdev.activity is copied to
 ~/Activities and sugar etc. is restarted - no icon turning up.  I also
 tried packaging it as a .xo file and then running the install script
 that put it under /usr/share - it turns up, but no icon...

 I went through the log viewer and there didn't seem to be any special
 mention of it...   Is there possibly a problem from not changing the
 Class name of the helpactivity to be unique - or some naming
 convention that I have neglected here?

 Our stuff (in English, Dari and Pashto) will go up on olpc.af and as a
 collection...

 Thanks,

 -Mike

 PS:
 I have to hang my head in shame that I have not yet done much Python /
 XO activity coding (yet) - I've done more Java/J2EE and Linux server
 admin thus far.  I will take time over the weekend...

 2009/1/13 Sameer Verma sve...@sfsu.edu:
  On Mon, Jan 12, 2009 at 2:15 AM, S Page i...@skierpage.com wrote:
  Carlos Nazareno wrote:
 
  - I'd also like to see more work done on a method to easily bundle
  Gnash or HTML-based/Browser applications as stand-alone activities, or
  at least launch the browser with the wrapped activity loaded upon
  startup.
 
  See the Help activity in 8.2.0, it instantiates the WebView from
  hulahop
  that underlies Browse and points it at help/XO_Introduction.html.
 
  But is it so bad to make your HTML-based application an installable
  collection that shows up in the OLPC Library navigation on the Browse
  home page?  See http://wiki.laptop.org/go/Creating_a_collection.
   Just
  because most library content is static non-interactive ebook material
  is
  no reason really cool browser apps shouldn't go in the OLPC Library.
 
  One thing that might make collections more appealing and feel like
  applications is if the collection's library.info icon (which seems
  otherwise unused?!) or the web site's favicon would appear in the
  Journal instead or as well as the generic globe icon of Browse.  I
  filed
  a confused ticket #9188 for this enhancement.
 
  - Using a local daemon or 

Re: Devel Digest, Vol 36, Issue 59

2009-02-16 Thread James Simmons
To the Sugar release team:

While we're discussing favorite fixes I'm wondering if anyone is working on 
my favorite.  It affects Read as well as my own Activities.  The problem is the 
saving of custom metadata, like page number for Read.  If you use Read, exit 
and later Resume the document, Read will return to the page you left off on.  
It will do this as long as you don't turn off the computer.  Unfortunately, the 
metadata it uses to do this will not survive a reboot, so if you shut down your 
XO and return to reading the document the next day you'll go back to page 1 
because it cannot remember what page you left off on.  This problem affects any 
Activity that reads existing Journal entries but does not update them.  This 
has been an annoyance since I got my XO over a year ago, the bug report has 
been posted, yet it never gets fixed.  It looks like there have been many 
improvements to the Journal, so I'm hoping someone will look at this one.

=== Keep error when displaying a file in Browse, Read, ImageViewer ===
This is one of my favorite fixes as this has been broken for quite a 
while. When trying to display for example an image in Browse or the 
ImageViewer there was an keep error when closing the activity.

Thanks,

James Simmons




___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Devel Digest, Vol 36, Issue 59

2009-02-16 Thread Tomeu Vizoso
On Mon, Feb 16, 2009 at 16:34, James Simmons jim.simm...@walgreens.com wrote:
 To the Sugar release team:

 While we're discussing favorite fixes I'm wondering if anyone is working on 
 my favorite.  It affects Read as well as my own Activities.  The problem is 
 the saving of custom metadata, like page number for Read.

This actually got fixed some time ago, as per these release notes:

http://sugarlabs.org/go/DevelopmentTeam/Release/Releases/Sucrose/0.83.1#sugar-datastore

Btw, better address questions like this to sugar-de...@sugarlabs.org
where all sugar developers are.

Regards,

Tomeu

 If you use Read, exit and later Resume the document, Read will return to the 
 page you left off on.  It will do this as long as you don't turn off the 
 computer.  Unfortunately, the metadata it uses to do this will not survive a 
 reboot, so if you shut down your XO and return to reading the document the 
 next day you'll go back to page 1 because it cannot remember what page you 
 left off on.  This problem affects any Activity that reads existing Journal 
 entries but does not update them.  This has been an annoyance since I got my 
 XO over a year ago, the bug report has been posted, yet it never gets fixed.  
 It looks like there have been many improvements to the Journal, so I'm hoping 
 someone will look at this one.

 === Keep error when displaying a file in Browse, Read, ImageViewer ===
 This is one of my favorite fixes as this has been broken for quite a
 while. When trying to display for example an image in Browse or the
 ImageViewer there was an keep error when closing the activity.

 Thanks,

 James Simmons




 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Wireless test results

2009-02-16 Thread Hal Murray
  - WPA works with some percentage chance of success 

For me, WPA never works automatically and almost always works when I poke my 
AP icon.  (That's after I've given it my password the first time.)

That includes both power up and returning from closing the cover.

I think Daniel Drake has a test case for this on a thread from 
  Message-id: 818423da0902040602v607297a5ka8434db3b5fe6...@mail.gmail.com
  Subject: 8.2.1 wireless testing results #2
  From: Daniel Drake d...@laptop.org
  Date: Wed, 4 Feb 2009 11:02:50 -0300 (06:02 PST)


I have to wait long enough for the automatic stuff to give up and get out 
of the way.  Normally, I wait until things in the Neighborhood view stop 
blinking.  That may not be quite long enough.

A couple of times it's asked me for a password which didn't work.  I think 
that was because I didn't wait long enough.

As long as I wait long enough, it works.  Maybe not 100%, but close enough 
that I can blame any quirks on not waiting long enough.



g...@garycmartin.com said:
 One thing I noticed when testing the working 4, 5 and 6 that may help,
   is that if you do naughtily click an already connected WPA access
 point you'll get back to one round of the WPA cancel dance. If you
 make sure you first  select 'disconnect' then click the AP again, you
  get correctly re-associated, no dance required. This suggests that
 clicking a connected AP should either do NOP, or should at least
 disconnect properly before trying to connect again. 

This may be a wild goose chase ...

I've got an XO with 2 network circles in the lower-right frame view.

The one on the left is my AP.  It's working.

The one on the right says it's Mesh Network 1 looking for a Mesh Portal.  The 
Mesh 1 circle in the Neighborhood view is blinking.  It's been that way all 
night.  I'll leave it for a while in case anybody wants me to poke at it to 
get more info.

I've also seen what seems like a similar quirk.  After the connection to my 
AP stabilized, the popup on the Frame icon said Channel 1.  My AP is using 
channel 6 which is what the popup normally shows.

I suspect a missing lock, but it might be only in the UI part of things.




-- 
These are my opinions, not necessarily my employer's.  I hate spam.



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: etextRead activity and espeak

2009-02-16 Thread James Simmons
Tony,

I have some good news on TTS with Read Etexts.  It turns out that 
speech-dispatcher is available through yum update, and it does work on 
the XO.  If you follow the instructions at 
http://wiki.laptop.org/go/Read_Etexts#Using_Text_to_Speech you should be 
able to get Read Etexts to do TTS with working highlighting.

Now the bad news:

1).  You're going to have to adjust the Rate using the Speech toolbar 
tab down so that highlighting can keep up with speech.
2).  Read Etexts does not pause between paragraphs and may not pause 
between sentences.  I *really* need to fix this.
3).  My test environment for developing Read Etexts does not have TTS 
working properly yet.  It worked when I was using Xubuntu, but I cleared 
that off and replaced it with Fedora 10, which unlike the XO uses pulse 
audio.  You can configure speech-dispatcher to use pulse-audio, and it 
will seem to work, but not for long.  That's been my experience so far, 
anyway.  Without a robust TTS test environment I'm not going to be able 
to improve on what I have for awhile.  I haven't given up yet.
4).  You need to start the speech-dispatcher service using the Terminal 
before you can use TTS.  I know damned well that there is a way to start 
this when the XO boots up, but I don't know how to do it.  Perhaps one 
of the others on the mailing list can suggest something.

My wife is impressed that kids in Nepal might be using an Activity I 
wrote, and after seeing my demo of it she agreed the kids deserved 
better.  So she may tolerate more hours of basement hacking than she 
normally does.

I hope you'll try out Read Etexts with speech-dispatcher installed and 
let me know what you think.

Thanks,

James Simmons


Tony Anderson wrote:
 Hi,

 The educational team at OLENepal would like a 'karaoke-style' text 
 reader above all other activities on the XO. This is primarily for 
 English. Looking at the activity code, it looks like the speech code 
 is there but disabled.

 Would it be possible to release a version that supports espeak without 
 the Speech-Dispatcher pending its implementation in Sugar? This would 
 give us a chance to experiment with creating 'read-aloud' stories.

 Tony



  Thanks for your response.  I never questioned that there was still
  interest in TTS on the XO.  What I was wondering is if there was any
  progress made by Hemant Goyal or anyone else in getting the
  Speech-Dispatcher software included with the Sugar distribution, if the
  newer version of Python that resolved the power management issue was
  included, etc.  I've sent a couple of emails to Hemant and haven't 
 heard
  back from him.  I was wondering if he was still working on these 
 things,
  or if someone else had taken over his work, etc.  He was making RPMs 
 for
  Fedora for installing speech-dispatcher.
 
  James Simmons



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Guidance sought on collaboration techniques

2009-02-16 Thread James Simmons
Wade,

This weekend I tried to get my two computers running Fedora 10 with the 
Sugar RPMs to share with one another, with no luck.  Back when I was 
using Xubuntu there was a collabora server that the Xubuntu RPMs had 
installed by default, and I was able to set up my XO to use it using a 
command line something like this:

sugar-control-panel -s jabber olpc.collabora.co.uk

When I try to do that now I get a python stack trace (if that's the 
right word) and I still get an empty neighborhood view..

I was lead to believe a few months ago that two instances of Sugar on 
the same network would find each other and be able to share even without 
a jabber server between them.  I couldn't get that to work then and it 
doesn't work now.

In any case, I have two machines running Fedora 10 and I want them to be 
able to collaborate.  I should be able to run multiple instances of 
Sugar on one of these machines as well.  I don't have my own jabber 
server.  How would you suggest I set up a test environment for 
collaboration?

Thanks again,

James Simmons


Wade Brainerd wrote:
 Hey James,

 FYI here is the collaboration code in Colors!

 http://git.sugarlabs.org/projects/colors/repos/mainline/blobs/master/colors.py#line641

 It's fairly well commented but let me know if you have any questions 
 about how it works, or what you should do differently in Read Etexts.


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: power consumption after shutdown

2009-02-16 Thread Frederick Grose
In a discussion thread like this, it would good to have a source code link
for all to reference, now and in the future.
Thanks for all the contributions!

On Mon, Feb 16, 2009 at 3:36 AM, James Cameron qu...@laptop.org wrote:

 On Mon, Feb 16, 2009 at 12:19:41AM -0500, Richard A. Smith wrote:
  qu...@laptop.org wrote:
 
  (If one discharges an XO battery outside the XO using a home lighting
  circuit, the displayed state of charge will be inconsistent.  Persisting
  in this practice results in increasing inconsistency.  Ceasing the
  practice results in decreasing inconsistency over several XO moderated
  charge and discharge cycles.  The inconsistency results in forced
  power-down before the state of charge would suggest, manifesting as my
  XO stops too soon.)
 
  How far off is it?  The EC actually tries to detect this.  The ACR
  register will decrease when you use the battery outside the laptop.

 Last I checked, some months ago, it was no more than about 30% error.  I
 didn't proceed with the test beyond about that point.

 Good to know it tries to do something about it.

 --
 James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: power consumption after shutdown

2009-02-16 Thread pgf
frederick wrote:
  In a discussion thread like this, it would good to have a source code link
  for all to reference, now and in the future.
  Thanks for all the contributions!

unfortunately, the code in question (i.e., the EC firmware) is
one of the few small bodies of code on the XO which isn't open.

paul

  
  On Mon, Feb 16, 2009 at 3:36 AM, James Cameron qu...@laptop.org wrote:
  
   On Mon, Feb 16, 2009 at 12:19:41AM -0500, Richard A. Smith wrote:
qu...@laptop.org wrote:
   
(If one discharges an XO battery outside the XO using a home lighting
circuit, the displayed state of charge will be inconsistent.  Persisting
in this practice results in increasing inconsistency.  Ceasing the
practice results in decreasing inconsistency over several XO moderated
charge and discharge cycles.  The inconsistency results in forced
power-down before the state of charge would suggest, manifesting as my
XO stops too soon.)
   
How far off is it?  The EC actually tries to detect this.  The ACR
register will decrease when you use the battery outside the laptop.
  
   Last I checked, some months ago, it was no more than about 30% error.  I
   didn't proceed with the test beyond about that point.
  
   Good to know it tries to do something about it.
  
   --
   James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/
   ___
   Devel mailing list
   Devel@lists.laptop.org
   http://lists.laptop.org/listinfo/devel
  
  part 2 text/plain 129
  ___
  Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel

=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: power consumption after shutdown

2009-02-16 Thread Richard A. Smith
Richard A. Smith wrote:

 The instrumented setup only has a current measurement resolution down to 
 about 1mA.  So there's room for a lot of error in that measurement. 
 Looking at the schematics I see that there are quite a few other parts 
 that share the 3.3V rail with the EC so 1mA or so seems reasonable.
 
 I've started a long term measurement test using the ACR guage inside the 
 battery.  I'll check it on Monday.

Based on a long term (44 hour) test I've measured that the average draw 
of the XO when powered off is 1.64 mA.

Although this seems to match my previous measurement it actually does 
not.  This is a measurement of the battery voltage rail.  So 1.64 mA * 
6.68V = 11mW.  I was expecting a number half of that.

The previous measurement was on the suspend 3.3V rail which would be 
5.3mW so there's 5.7mW unaccounted for.  Some of this is probably the 
switching regulator since I doubt its very efficient in this range.

In any case Leaving the battery in the XO will cost you about 1.3%/day.

-- 
Richard Smith  rich...@laptop.org
One Laptop Per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Activities migration status

2009-02-16 Thread Gary C Martin
On 10 Feb 2009, at 00:29, S Page wrote:

 Ed McNierney wrote:

 On the other hand, anyone working on Sugar efforts such as Activity
 development should be encouraged to put all those efforts under the
 Sugar Labs roof where they can be more readily available to the  
 entire
 Sugar community (not just the OLPC portion of it).

 Then http://wiki.laptop.org/go/Project_hosting  is obsolete.  What's  
 the
 equivalent page on sugarlabs.org?

Try:

http://git.sugarlabs.org/

Its running Gitorious, no need to request permissions/accounts.

 Parts of http://wiki.laptop.org/go/Creating_an_activity are also
 out-of-date.

Personally I rely on source code and pydocs, but I know that doesn't  
work for all. I'll try and take a look at that page, before I do, any  
pointers at to bits you found out-of-date? Here's closest thing on SL,  
the almanac (migrated from laptop wiki) I find that useful:

http://sugarlabs.org/go/ActivityTeam/Resources

--Gary

 --
 =S Page
 ___
 Sugar-devel mailing list
 sugar-de...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Testing] Wireless test results

2009-02-16 Thread rihowa...@gmail.com
I find 767,  with either q2e18 or q2e24, connecting to a WPA AP  
succeeds 100% of the time for me using a Linksys WRT54g L.

  With OFW q2e32 I have seen the network connection die. Seems like  
the stack is dead.  I assume it is the marvell driver that is  
delivered with q2e32.  My other XO running 767 with q2e18 maintains  
its connectivity.

On Feb 16, 2009, at 12:11 AM, Ties Stuij wrote:

 On Mon, Feb 16, 2009 at 12:22 PM, Gary C Martin  
 g...@garycmartin.com wrote:
 On 16 Feb 2009, at 05:32, Chris Ball wrote:

 Hi,

 Last I checked, it was either the firmware or the kernel changes
 that did it.  I posted my findings to the mailing list in the past
 two weeks.

 I think your findings actually say it was either the firmware,
 kernel,
 or something else altogether.  It'd be good to downgrade both at
 once,
 but still on candidate-800, so that we can check that at least *one*
 of
 the two is the problem.

 I should be asleep, but instead have been zigzagging through old  
 http://xs-dev.laptop.org/~cscott/xo-1/streams/staging/
  staging builds testing WPA and the dialogue cancel dance for the
 last 4hrs:

 790 working
 4 working
 5 working
 6 working -
 7 intermittent
 11 intermittent
 15 broken
 800 broken

 Intermittent means it can occasionally associate with a WPA access
 point with no cancel dance, but usually I had to dance. Broken  
 means I
 had to dance every time.

 One thing I noticed when testing the working 4, 5 and 6 that may  
 help,
 is that if you do naughtily click an already connected WPA access
 point you'll get back to one round of the WPA cancel dance. If you
 make sure you first  select 'disconnect' then click the AP again, you
 get correctly re-associated, no dance required. This suggests that
 clicking a connected AP should either do NOP, or should at least
 disconnect properly before trying to connect again.

 The sound you just heard was my head hitting the pillow :-)

 I reported this before with build 26 I believe, but it might be of use
 to point out again. Also on 800, the ability of the XO to connect to
 an AP have been greatly increased over 767. At the moment connecting
 to a WPA ap succeeds one in two times. On 767 it varied from 1 in 5 to
 1 in 10 to 1 in can't be bothered to try and connect to the fr!@@n
 access point. I already supplied some logs, but if you'd like some
 more specific testing output of our setup, I'd be happy to supply it.
 Just tell what you want to know.

 /Ties
 ___
 Testing mailing list
 test...@lists.laptop.org
 http://lists.laptop.org/listinfo/testing

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] consequences of re-registering with XS

2009-02-16 Thread Daniel Drake
2009/2/14 Martin Langhoff martin.langh...@gmail.com:
 On Fri, Feb 13, 2009 at 2:25 AM, Daniel Drake d...@laptop.org wrote:
 To avoid this situation in future (should we ever run into it again,
 fingers crossed we won't), we are considering a small modification to
 the paraguay OS build which makes the Discard network history button
 also clear the XS registration information (by deleting the
 server.backup1 line from sugar config). This code modification can be
 done with a single sed call, since there is already an unused sugar
 function to clear registration info.

 And if you post it as a nice patch, I'll push for it to be folded into
 Sugar. It's been on my Sugar wishlist for a while...

I've come short of a nice patch (too many pressures at the moment,
sorry) but I have shared our hack here:
http://dev.sugarlabs.org/ticket/362

 Nope. If an XO forgets it's registered and registers again, nothing
 bad happens. The XS welcomes back the long lost son, no prickly
 questions asked.

Excellent, thanks for the clarification.

Daniel
___
Server-devel mailing list
server-de...@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] consequences of re-registering with XS

2009-02-16 Thread Martin Langhoff
On Tue, Feb 17, 2009 at 10:01 AM, Daniel Drake d...@laptop.org wrote:
 I've come short of a nice patch (too many pressures at the moment,
 sorry) but I have shared our hack here:
 http://dev.sugarlabs.org/ticket/362

Looks reasonable... and hackish :-)

Registration sets both backup server and jabber server. Once backup
server is cleared, I assume that a new registration attempt will set
_both_ without choking or throwing exceptions... if not, then it'd be
a good idea to remove both.

In fact, it might be a good idea anyway: once you've de-registered, as
a user my expectation would be that it does _not_ try to connect to
the jabber server set at registration time. That registration sets 2
values is an internal detail, as a user, both values should be unset
together...

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
server-de...@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Testing] Wireless test results

2009-02-16 Thread Mitch Bradley
The OS is supposed to reload the wireless firmware so the firmware that 
is in OFW shouldn't affect the OS behavior.


rihowa...@gmail.com wrote:
 I find 767,  with either q2e18 or q2e24, connecting to a WPA AP  
 succeeds 100% of the time for me using a Linksys WRT54g L.

   With OFW q2e32 I have seen the network connection die. Seems like  
 the stack is dead.  I assume it is the marvell driver that is  
 delivered with q2e32.  My other XO running 767 with q2e18 maintains  
 its connectivity.

 On Feb 16, 2009, at 12:11 AM, Ties Stuij wrote:

   
 On Mon, Feb 16, 2009 at 12:22 PM, Gary C Martin  
 g...@garycmartin.com wrote:
 
 On 16 Feb 2009, at 05:32, Chris Ball wrote:

   
 Hi,

 
 Last I checked, it was either the firmware or the kernel changes
 that did it.  I posted my findings to the mailing list in the past
 two weeks.
   
 I think your findings actually say it was either the firmware,
 kernel,
 or something else altogether.  It'd be good to downgrade both at
 once,
 but still on candidate-800, so that we can check that at least *one*
 of
 the two is the problem.
 
 I should be asleep, but instead have been zigzagging through old  
 http://xs-dev.laptop.org/~cscott/xo-1/streams/staging/
  staging builds testing WPA and the dialogue cancel dance for the
 last 4hrs:

 790 working
 4 working
 5 working
 6 working -
 7 intermittent
 11 intermittent
 15 broken
 800 broken

 Intermittent means it can occasionally associate with a WPA access
 point with no cancel dance, but usually I had to dance. Broken  
 means I
 had to dance every time.

 One thing I noticed when testing the working 4, 5 and 6 that may  
 help,
 is that if you do naughtily click an already connected WPA access
 point you'll get back to one round of the WPA cancel dance. If you
 make sure you first  select 'disconnect' then click the AP again, you
 get correctly re-associated, no dance required. This suggests that
 clicking a connected AP should either do NOP, or should at least
 disconnect properly before trying to connect again.

 The sound you just heard was my head hitting the pillow :-)
   
 I reported this before with build 26 I believe, but it might be of use
 to point out again. Also on 800, the ability of the XO to connect to
 an AP have been greatly increased over 767. At the moment connecting
 to a WPA ap succeeds one in two times. On 767 it varied from 1 in 5 to
 1 in 10 to 1 in can't be bothered to try and connect to the fr!@@n
 access point. I already supplied some logs, but if you'd like some
 more specific testing output of our setup, I'd be happy to supply it.
 Just tell what you want to know.

 /Ties
 ___
 Testing mailing list
 test...@lists.laptop.org
 http://lists.laptop.org/listinfo/testing
 

 ___
 Testing mailing list
 test...@lists.laptop.org
 http://lists.laptop.org/listinfo/testing
   

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread Martin Langhoff
On Mon, Feb 16, 2009 at 9:36 PM, Simon Schampijer si...@schampijer.de wrote:
 Our registration URL is REGISTER_URL = 'http://schoolserver:8080/', wouldn't
 the right Domain than be 'schoolserver'? Since the cookie is about the
 registration with the schoolserver this makes most sense to me (the jabber
 server could be somewhere else).

Call me silly, but I really want to set it to the fqdn to avoid
exposing the cookie too much. Browse.xo homepage links to
http://schoolserver/ and that will match any wildcard dns entry,
needlessly pushing out info that is better kept quiet.

The XS will redirect to its own fqdn -- and there Browse.xo will send
the cookie.

 Well, all the calls in the try block are sqlite3 ones - if they fail - we
 catch it. If something else goes wrong - we want to fail and not hide ;p

This is of course a matter of style, and I'm not familiar with the
Sugar coding style. So with curiosity I ask... why? My PoV is that
this is an enhancement to the core function of Browse.xo . A
nice-to-have thing. If it fails (and noting that it happens at startup
time), it should not stop the user from getting the core functionality
of Browse.

 BTW: Is there a spec you used for the cookie format? I find field
 descriptions like expires - you name it expiry.

Well, there are some post-facto specs on the old 'cookies.txt' format,
but since it's moved to sqlite I don't think anyone has spec'd it.
Still, if you look at the cookies.txt formats, it is self-explanatory.

In terms of where I got the fieldnames from, I did:

$ cd .mozilla/firefox/2hrgnz74.default/
$ ls cookies.
cookies.sqlite  cookies.txt
$ sqlite3 cookies.sqlite
SQLite version 3.5.9
Enter .help for instructions
sqlite .schema moz_cookies
CREATE TABLE moz_cookies (id INTEGER PRIMARY KEY, name TEXT, value
TEXT, host TEXT, path TEXT,expiry INTEGER, lastAccessed INTEGER,
isSecure INTEGER, isHttpOnly INTEGER);

and I copy/pasted that. That's how the semicolon sneaked in :-/

thanks!


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] mkusbinstall fails -SUCCESS

2009-02-16 Thread Martin Langhoff
On Mon, Feb 16, 2009 at 9:21 PM, David Leeming
leem...@pipolfastaem.gov.sb wrote:
 All solved - I did not read all that Pia has written on the XS installing
 server wiki page - it's all there. I missed the bit about editing ks.cfg

I didn't know WTF you were talking about. Looking at the wikipage,
looks like Pia has found that removing the driveorder line solves the
problem.

Great find! (I just wish I had heard of it earlier!) Pia, how did you
figure that out? Is there more info that would be good to know on that
track?

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
server-de...@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: Unshare an Activity

2009-02-16 Thread Jorge Saldivar
Thanks Bert!


 But, even if you initiated the sharing, you can leave the shared activity.
 After an activity has been shared, all participants are equal.


I know that I you join a shared activity you can leave it, calling the leave
method but what happend if i share the activity???, how can I unshare it??,
or close the connection??, or some thing link that??.

I think there is no way to force un-sharing of an activity. You could only
 implement it yourself by sending a message to all other participants while
 still shared, and each one of them leaves the activity.


Ok, all the participants leave but how can the participant that shared the
activity unsahred it after all leave?

Thanks.



-- 
Jorge Saldivar
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Unshare an Activity

2009-02-16 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jorge Saldivar wrote:
 Thanks Bert!
 
 
 But, even if you initiated the sharing, you can leave the shared activity.
 After an activity has been shared, all participants are equal.

 
 I know that I you join a shared activity you can leave it, calling the leave
 method but what happend if i share the activity???, how can I unshare it??,
 or close the connection??, or some thing link that??.

This is the problem with your understanding.  A shared activity is
_initiated_ by one user, but this user does not _own_ the shared activity.
 The user who initially shared the activity can turn off his computer, and
the other users can still continue to share with each other.  You can see
this with the Chat activity, for example.

Sharing can only continue without the initiator if the sharing code for a
specific activity supports it.  If you are writing an activity, you must
figure out how to handle the case where the initiator leaves.  If you
cannot support continued sharing after that point, then you may wish to
notify the user that the instance is no longer shared.  However, it is
better to design your networking code so that sharing can continue.

- --Ben
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkmZ3rYACgkQUJT6e6HFtqTrxQCfRyxdcBovZMnozHecOu32jIph
28IAn0L6e3332NVba4oFJgg4/vHHdzl1
=mt9d
-END PGP SIGNATURE-
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: power consumption after shutdown

2009-02-16 Thread S Page
I made http://wiki.laptop.org/go/XO_Troubleshooting_Battery#Tips but you 
folks can do a much better edit.

 In q2e32 I've pulled in some of my batman.fth stuff.

I noted this in the same page's batman.fth section.

--
=S
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread Simon Schampijer
Martin Langhoff wrote:
 On Mon, Feb 16, 2009 at 9:36 PM, Simon Schampijer si...@schampijer.de wrote:
 Our registration URL is REGISTER_URL = 'http://schoolserver:8080/', wouldn't
 the right Domain than be 'schoolserver'? Since the cookie is about the
 registration with the schoolserver this makes most sense to me (the jabber
 server could be somewhere else).
 
 Call me silly, but I really want to set it to the fqdn to avoid
 exposing the cookie too much. Browse.xo homepage links to
 http://schoolserver/ and that will match any wildcard dns entry,
 needlessly pushing out info that is better kept quiet.

Well, your cal - using the schoolserver url then?

 The XS will redirect to its own fqdn -- and there Browse.xo will send
 the cookie.
 
 Well, all the calls in the try block are sqlite3 ones - if they fail - we
 catch it. If something else goes wrong - we want to fail and not hide ;p
 
 This is of course a matter of style, and I'm not familiar with the
 Sugar coding style. So with curiosity I ask... why? My PoV is that
 this is an enhancement to the core function of Browse.xo . A
 nice-to-have thing. If it fails (and noting that it happens at startup
 time), it should not stop the user from getting the core functionality
 of Browse.

Well, it gets the core functionality. If a method can only throw 
exceptions A I do not need to except for all exceptions. Not clearly 
defining which errors one is looking for does more hide errors. My POV :)

 BTW: Is there a spec you used for the cookie format? I find field
 descriptions like expires - you name it expiry.
 
 Well, there are some post-facto specs on the old 'cookies.txt' format,
 but since it's moved to sqlite I don't think anyone has spec'd it.
 Still, if you look at the cookies.txt formats, it is self-explanatory.
 
 In terms of where I got the fieldnames from, I did:
 
 $ cd .mozilla/firefox/2hrgnz74.default/
 $ ls cookies.
 cookies.sqlite  cookies.txt
 $ sqlite3 cookies.sqlite
 SQLite version 3.5.9
 Enter .help for instructions
 sqlite .schema moz_cookies
 CREATE TABLE moz_cookies (id INTEGER PRIMARY KEY, name TEXT, value
 TEXT, host TEXT, path TEXT,expiry INTEGER, lastAccessed INTEGER,
 isSecure INTEGER, isHttpOnly INTEGER);
 
 and I copy/pasted that. That's how the semicolon sneaked in :-/
 
 thanks!
 
 
 m

Thanks will have a look,
Simon
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: power consumption after shutdown

2009-02-16 Thread Richard A. Smith
S Page wrote:
 I made http://wiki.laptop.org/go/XO_Troubleshooting_Battery#Tips but you 
 folks can do a much better edit.
 
 In q2e32 I've pulled in some of my batman.fth stuff.
 
 I noted this in the same page's batman.fth section.

I don't see it.

In q2e32 i've changed the names of some of the functions a bit and 
re-did some things.  There's a lot of cruft in batman.fth that I don't 
need to carry over.

The existing batman.fth on the wiki will probably complain when loaded 
on q2e32.  I've got a new one that I need to push up.  I'll go do that now.

Currently none of the functions that use the data formatting functions 
like 'bat-recover' are pulled in.  So you still need batman.fth for 
charge balance issues.

-- 
Richard Smith  rich...@laptop.org
One Laptop Per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Unshare an Activity

2009-02-16 Thread Jorge Saldivar
Thanks Benjamin for the answer.

Now I understand many things that previously were not clear to me.

Excuse continue bothering you.

I am going to explain a little bit more.

I am doing an activity which are a club with many board games each one in
different rooms of the club. The idea is that you can enter in room and play
the game through the mesh with a friend that is in the same room and when
the game end *without close de activity stop sharing the game*.

How can I do that??.

Now I use on the both side the leave method from the activity object of the
presence service to tell presence service leave the shared activity but when
I call the method get_activites of the presence service to know if the
activity stop sharing it return that the activity is still there in the
mesh.

This is why I believe that the procedure to stop share an activity is noy
simply use the leave method from the activity object of the presence
service.

I hope you can help me.

Thanks!.



-- 
Jorge Saldivar
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Unshare an Activity

2009-02-16 Thread Walter Bender
Is the club itself the activity? In which case you'd be continually
sharing as long as you were at the club?

-walter

2009/2/16 Jorge Saldivar jorgesaldi...@gmail.com:
 Thanks Benjamin for the answer.

 Now I understand many things that previously were not clear to me.

 Excuse continue bothering you.

 I am going to explain a little bit more.

 I am doing an activity which are a club with many board games each one in
 different rooms of the club. The idea is that you can enter in room and play
 the game through the mesh with a friend that is in the same room and when
 the game end without close de activity stop sharing the game.

 How can I do that??.

 Now I use on the both side the leave method from the activity object of the
 presence service to tell presence service leave the shared activity but when
 I call the method get_activites of the presence service to know if the
 activity stop sharing it return that the activity is still there in the
 mesh.

 This is why I believe that the procedure to stop share an activity is noy
 simply use the leave method from the activity object of the presence
 service.

 I hope you can help me.

 Thanks!.



 --
 Jorge Saldivar

 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel





-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Unshare an Activity

2009-02-16 Thread Jorge Saldivar
Hi Walter,

Is the club itself the activity?


Yes, the club is the activity. The club has several mini games in this case
board games.


 In which case you'd be continually
 sharing as long as you were at the club?


When you start the activity it set up private, but when you enter in room
(of the club) to play a mini game it share in the neighborhood waiting for
some how wants to play that mini game in that room. After finish the mini
game the two players leave the room of club (not stop the club activity) and
the mini game should be stop sharing because they finish their mini game and
the two player return to the corridors of the club and they are free to
enter in another room to start another mini game.

Answer you question?

Thanks

-- 
Jorge Saldivar
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Unshare an Activity

2009-02-16 Thread Walter Bender
In the scenario you describe, from the Sugar POV, you are always
sharing. You can control internally to your club a sharing state among
rooms an individuals that you can turn on and off at will.

-walter

On Mon, Feb 16, 2009 at 6:06 PM, Jorge Saldivar jorgesaldi...@gmail.com wrote:
 Hi Walter,

 Is the club itself the activity?

 Yes, the club is the activity. The club has several mini games in this case
 board games.


 In which case you'd be continually
 sharing as long as you were at the club?

 When you start the activity it set up private, but when you enter in room
 (of the club) to play a mini game it share in the neighborhood waiting for
 some how wants to play that mini game in that room. After finish the mini
 game the two players leave the room of club (not stop the club activity) and
 the mini game should be stop sharing because they finish their mini game and
 the two player return to the corridors of the club and they are free to
 enter in another room to start another mini game.

 Answer you question?

 Thanks

 --
 Jorge Saldivar




-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Unshare an Activity

2009-02-16 Thread Jorge Saldivar
Just to undestand.

Once you share an activity, in sugar you do not have a way to stop it,
unless stop the activity?.


-- 
Jorge Saldivar
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread Martin Langhoff
On Tue, Feb 17, 2009 at 11:03 AM, Simon Schampijer si...@schampijer.de wrote:
 Well, your call - using the schoolserver url then?

The fqdn from backup server or jabber server. Either will do until we
fix the registration stuff.

 Well, it gets the core functionality. If a method can only throw exceptions
 A I do not need to except for all exceptions. Not clearly defining which
 errors one is looking for does more hide errors. My POV :)

Makes sense.

I take it you're happy to fix things up so taht the 2 branches are
reasonably in sync? Thanks!



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Unshare an Activity

2009-02-16 Thread Daniel Drake
2009/2/16 Jorge Saldivar jorgesaldi...@gmail.com:
 Just to undestand.

 Once you share an activity, in sugar you do not have a way to stop it,
 unless stop the activity?.

You could look at other games (e.g. connect 4) which face similar
scenarios (only useful with 2 participants).

It sounds like you are reinventing the wheel with your club idea --
the club already exists, it's the neighborhood view. Perhaps you
should write 1 activity per card game?

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Testing] Wireless test results

2009-02-16 Thread James Cameron
On Mon, Feb 16, 2009 at 11:21:34AM -1000, Mitch Bradley wrote:
 The OS is supposed to reload the wireless firmware so the firmware that  
 is in OFW shouldn't affect the OS behavior.

Agreed.  It shouldn't.  I wonder if it does, through some mechanism we
don't know yet.  Has anyone else got the recent OS build to operate fine
on WPA with an older version of OFW?

-- 
James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Testing] Wireless test results

2009-02-16 Thread Mitch Bradley
James Cameron wrote:
 On Mon, Feb 16, 2009 at 11:21:34AM -1000, Mitch Bradley wrote:
   
 The OS is supposed to reload the wireless firmware so the firmware that  
 is in OFW shouldn't affect the OS behavior.
 

 Agreed.  It shouldn't.  I wonder if it does, through some mechanism we
 don't know yet.  Has anyone else got the recent OS build to operate fine
 on WPA with an older version of OFW?

   
One could try adding wlan-reset to /boot/olpc.fth, thus ensuring that 
the wireless module
is not carrying over any state from the firmware.

In the normal case of booting from NAND (or USB or SD), OFW doesn't even 
turn on the wireless module.  This is easy to confirm - just observe 
that the wireless led doesn't turn on until well into the OS startup.  
I'm quite sure that the OS wireless code doesn't extract the wireless 
firmware image from OFW - it could in theory do so, but I'm sure that it 
doesn't - it gets it from the filesystem.

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Unshare an Activity

2009-02-16 Thread Hal Murray

 This is the problem with your understanding.  A shared activity is
 _initiated_ by one user, but this user does not _own_ the shared
 activity.
  The user who initially shared the activity can turn off his computer,
 and the other users can still continue to share with each other.  You
 can see this with the Chat activity, for example. 

I'm missing a key idea.

Some activities have persistent data, say a document.  Another example would 
be the high score database for a game.

That data has to live somewhere and/or somebody has to own it.  You can put 
it on a server, or one of the users can act as the server, perhaps the one 
who initiates the shared activity.


I think another example that was discussed recently was viewing a batch of 
slides.  One proposal was that the other users only loaded the page they were 
interested in.  I think that leaves the initiating user acting as the server.


Are there two types of sharing, one with persistent data and another without?




-- 
These are my opinions, not necessarily my employer's.  I hate spam.



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


any way to display Nand full boot message in Nepali?

2009-02-16 Thread Bryan Berry
I am quite happy that the XO now displays a Disk full message when the
nand is full and notifies the user that a number of journal entries will
be deleted. Is there any way to display that same text in Nepali for our
users here in Nepal?


-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: any way to display Nand full boot message in Nepali?

2009-02-16 Thread Chris Ball
Hi,

[removing sugar-devel@ since this is OLPC-disk-image-specific]

I am quite happy that the XO now displays a Disk full message
when the nand is full and notifies the user that a number of
journal entries will be deleted. Is there any way to display that
same text in Nepali for our users here in Nepal?

You can modify the text in /etc/init.d/diskspace{check,recover}.
It is not localized past English and Spanish, because it runs before
almost anything else on the system.

I think you might end up finding that it runs before the Unicode
environment has started, which would stop you from printing Nepali.
(You can move it later in the boot sequence to work around this,
but as you do so you're increasing the chance that something else
will break due to no disk space before the script gets to run.)

- Chris.
-- 
Chris Ball   c...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: any way to display Nand full boot message in Nepali?

2009-02-16 Thread Bryan Berry
-Original Message-
From: Chris Ball c...@laptop.org
You can modify the text in /etc/init.d/diskspace{check,recover}.
It is not localized past English and Spanish, because it runs before
almost anything else on the system.

Thanks cjb, will take a look at this

-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] IRC channel/using ejabberdctl

2009-02-16 Thread Martin Langhoff
Hi Yifan,

This is the right place to ask for help. Tell us a bit more about the
steps you are following after the initial installation is complete.

some more specific questions

 - what domain did you pass to domain_config ?
 - can you send the ejabberd log? it is in /var/log/ejabberd/

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
server-de...@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Collaboration problem again 0.5.1

2009-02-16 Thread Martin Langhoff
On Tue, Feb 17, 2009 at 1:08 PM, David Leeming
leem...@pipolfastaem.gov.sb wrote:
 9-0.5.1
 ejabberd-xs-2.0.1-12.fc9.olpc.i386

Hmmm, the versions are correct -- I can't test this right now in a
clean environment, as I have bits and pieces of different versions
everywhere because I am working on something else ATM.

Posting the logs from /var/log/ejabberd/ would be great. Enable
verbose logging (see the /etc/ejabberd/ejabberd-xs.conf file), delete
the user registration, the logs, restart ejabberd and do the whole
dance of first time success, second time failure. At that point the
log should have good info.

On the run up to the release, I could not get this problem to happen
in my testing in NZ, and neither could Reuben at 1CC. Nobody else
seems to have tried any RC. We discussed various times setting up a
phonecall with David but it didn't happen. Sigh.

If anyone can help a bit, much appreciated. Trying to repro (2 XOs and
1 XS are enough) would be fantastic. I will try to get into diagnosing
this but it will take me a while before I am free.




m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
server-de...@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: Unshare an Activity

2009-02-16 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hal Murray wrote:
 This is the problem with your understanding.  A shared activity is
 _initiated_ by one user, but this user does not _own_ the shared
 activity.
  The user who initially shared the activity can turn off his computer,
 and the other users can still continue to share with each other.  You
 can see this with the Chat activity, for example. 
 
 I'm missing a key idea.
 
 Some activities have persistent data, say a document.  Another example would 
 be the high score database for a game.

I'm not sure what you mean by persistent, but I believe I understand
your overall point.  Many activity implementations work internally by
designating one of the participants as a super-node or server, and then
using that machine as a central point for maintaining canonical copies of
data and synchronizing communications.  A good example of a current
Activity written in this way is Write, in which the main copy of the
document is kept on the server, which is also the machine on which the
instance was initiated.

In the current Sugar design, an Activity like Write that behaves in this
way is considered broken.  That is, the Sugar UI presents an abstraction
in which all nodes of an Activity are equal, and in principle sharing
continues regardless of who leaves.  This is deliberate, because that's
the desired behavior.  Sugar was designed with an eye toward sharing on a
mesh network, where all network links are unreliable, and sharing must
degrade minimally in the face of connection failures.

In the case of Write, the authors are attempting to reach this point by
writing code to elect a new super-node if the current one leaves the
shared session.  I believe that code has not yet been released.  The last
time I checked, if the initiator of a Write session left the shared
session, the remaining users would still be nominally sharing according
to Sugar, but no data would actually be transferred between them.

It's possible that Sugar should grow some UI to indicate if a single group
member is a keystone, and sharing will break if the connection to that
user drops.  That is, however, a fairly ugly thing to try to communicate
to a user, and given a choice we would rather make it unnecessary.

Personally, I've been working on writing a communications library called
Groupthink that ensures that all state is correctly replicated across all
activity instances.  Any Activity that can be written using Groupthink
will automatically be immune to the loss of any single member.

- --Ben
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkmaQuoACgkQUJT6e6HFtqTcjQCePlhnRJiX7uI7eeQPZTG7Ih5w
0BUAn0+f1YQNHI0yQ/PBDTPb2TX+dgjp
=Lk5L
-END PGP SIGNATURE-
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] Collaboration problem again 0.5.1

2009-02-16 Thread Martin Langhoff
2009/2/17 David Leeming leem...@pipolfastaem.gov.sb:
 I thought this was fixed in 0.5.1 

What do the following commands say?

   cat /etc/fedora-release

   rpm -qa ejabberd-xs

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel