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

2009-02-12 Thread Mike Dawson
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 service of some sort, the method I
 previously outlined can also be used here for standalone mode of the
 tests. This way, the learner can also practice with them and learn
 outside of class hours.

 The WikiBrowse activity (WikipediaEN.activity on G1G1 8.2 laptops)
 starts a local python Web server and fires up a WebActivity (Browse)
 instance pointing at it.

 Better, Browse's engine is XULRunner 1.9 and it has support for most of
 the HTML 5 offline application spec
 http://www.w3.org/TR/2008/WD-html5-20080122/#offline.
 E.g. http://starkravingfinkle.org/projects/offline/todo.html is an
 expanding form you can fill out while offline that will update the web
 server when next online.  It should work on an XO (I can't try it, my
 wireless router is bust! :-( ).

 I concur with where you're going.  *Never* ever bet against the browser.
  Browse or a custom WebView activity can do everything that Firefox 3
 can do, without worrying about compatibility with abysmal MS Internet
 Explorer that's keeping the web stuck in 2004.
 E.g. http://wiki.laptop.org/go/FindTheCountry -- why bother with crappy
 static PDF atlases when interactive technology like that is available?
 And you can View  Source it!


 This is one of the coolest things I've seen in a long time!!! This is
 definitely going down in the SVG examples section for my class in
 Spring.

 Sameer
 --
 Dr. Sameer Verma, Ph.D.
 Associate Professor of Information Systems
 San Francisco State University
 San Francisco CA 94132 USA
 http://verma.sfsu.edu/
 http://opensource.sfsu.edu/
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org

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

2009-02-12 Thread Simon Schampijer
Martin Langhoff wrote:
 On Thu, Feb 12, 2009 at 6:47 PM,  martin.langh...@gmail.com wrote:
 When starting up, call seed_xs_cookie() to
 
 Hi Simon,
 
 Hoping for some review :-) . Do you think this patch can make it into
 the sucrose-0.82 branch? With a tad of elbow grease, it also applies
 on top of master.
 
 The reason I ask for it on the 0.82 branch is that
 
  - It's low low risk -- in fact, the interesting ops are wrapped in a
 try/except block so a failure won't stop Browse from starting up.
 
  - It allows me to do a XS 0.5.2 or 0.6 relatively soon that
 integrates smoothly with the XO 0.8.2.x series. Deployments can ensure
 that they have an updated Browse.xo...
 
 cheers,

Is your main request to get it into 0.82.1? Is this only a temporary 
solution and we get something else later?

Thanks,
Simon

PS: I am not a security person - so for this discussion of security 
impact you are better of asking someone else - I can only comment on the 
general layout of the patch.

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


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

2009-02-12 Thread Tomeu Vizoso
On Thu, Feb 12, 2009 at 11:25, 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?

Only the service_name needs to be unique. Which version of Sugar are
you using? If 0.82, the activity icon is not appearing on the activity
list?

See http://en.flossmanuals.net/Sugar/HomeView in case you dind't knew about it.

Also feel free to email the sugar-devel mailing list for questions
about sugar development.

Regards,

Tomeu

 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 service of some sort, the method I
 previously outlined can also be used here for standalone mode of the
 tests. This way, the learner can also practice with them and learn
 outside of class hours.

 The WikiBrowse activity (WikipediaEN.activity on G1G1 8.2 laptops)
 starts a local python Web server and fires up a WebActivity (Browse)
 instance pointing at it.

 Better, Browse's engine is XULRunner 1.9 and it has support for most of
 the HTML 5 offline application spec
 http://www.w3.org/TR/2008/WD-html5-20080122/#offline.
 E.g. http://starkravingfinkle.org/projects/offline/todo.html is an
 expanding form you can fill out while offline that will update the web
 server when next online.  It should work on an XO (I can't try it, my
 wireless router is bust! :-( ).

 I concur with where you're going.  *Never* ever bet against the browser.
  Browse or a custom WebView activity can do everything that Firefox 3
 can do, without worrying about compatibility with abysmal MS Internet
 Explorer that's keeping the web stuck in 2004.
 E.g. http://wiki.laptop.org/go/FindTheCountry -- why bother with crappy
 static PDF atlases when interactive technology like that is available?
 And you can View  Source it!


 This is one of the coolest things I've seen in a long time!!! This is
 definitely going down in the SVG examples 

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

2009-02-12 Thread Simon Schampijer
Martin Langhoff wrote:
 On Thu, Feb 12, 2009 at 11:32 PM, Simon Schampijer si...@schampijer.de 
 wrote:
 Is your main request to get it into 0.82.1? Is this only a temporary
 solution and we get something else later?
 
 I think it'll be our current solution for a while... both branches?
 
 PS: I am not a security person - so for this discussion of security impact
 you are better of asking someone else - I can only comment on the general
 layout of the patch.
 
 The main 'right way' in security terms is following the 'Plan A' that
 I outlined in my other email. 

_

Plan A - HTTPS to the rescue

Use HTTPS and client certs. On the Browse.xo, either create a client
cert at first boot or derive one from the SSL priv key we already
have. Lacking a PKI ( in this case XSs will have self-signed certs,
and the whole network will often be offline), we will need to grab the
cert from the
XS at registration time so we can whitelist it for Browse.xo. This is
safer, allows us to upgrade later to always using HTTPS if desired.

It has downsides however
  - we'll have to change the registration protocol, and deal with
up/downwards compat issues.
  - https is significantly more costly in terms of CPU on the XS



Just to understand better.

Is the main issue that we have to change the protocol - or are you more 
worried about the CPU cost?

So as I understand the process: At registration time with the XS the 
cert is created and transferred to the client. Probably stored than in 
the profile. Browse does than integrate it when it starts. The cert 
integration itself in Browse should not be hard.

Thanks for clearing up,
Simon


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


New staging build 32

2009-02-12 Thread Build Announcer v2
http://xs-dev.laptop.org/~cscott/xo-1/streams/staging/build32

Changes in build 32 from build: 30

Size delta: 0.00M

-bootfw q2e30-1.olpc2.unsigned
+bootfw q2e32-1.olpc2.unsigned

--- Changes for bootfw q2e32-1.olpc2.unsigned from q2e30-1.olpc2.unsigned ---
  + Fix bug that caused very low batteries to incorrectly be marked as full.
  + Charge LED blinks a pattern of 4 when trickle charging
  + Changed duplicate error codes between NiMh and LiFePO4 to be unique.
  + Fix bug that caused very low batteries to incorrectly be marked as full.
  + Charge LED blinks a pattern of 4 when trickle charging
  + Changed duplicate error codes between NiMh and LiFePO4 to be unique.
  + OLPC keyjector support
  + OLPC trac 9229 - pretty boot was hiding the Windows logo screen.
  + ISO9660 filesystem reader - don't force filenames to upper case
  + OLPC trac 9227 - reset wlan when starting Windows
  + OLPC trac 9226 - virtualize AC97 PCI config base address so Windows XO 
Audio always works

--
This mail was automatically generated
See http://dev.laptop.org/~rwh/announcer/staging-pkgs.html for aggregate logs
See http://dev.laptop.org/~rwh/announcer/joyride_vs_update1.html for a 
comparison
___
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-12 Thread Simon Schampijer
Martin Langhoff wrote:
 On Thu, Feb 12, 2009 at 11:54 PM, Simon Schampijer si...@schampijer.de 
 wrote:
 Plan A - HTTPS to the rescue
 Just to understand better.

 Is the main issue that we have to change the protocol - or are you more
 worried about the CPU cost?
 
 Both. And also HTTPS network load, as HTTPS is a lot less cache-friendly.
 
 So as I understand the process: At registration time with the XS the cert is
 created and transferred to the client. Probably stored than in the profile.
 Browse does than integrate it when it starts. The cert integration itself in
 Browse should not be hard.
 
 You are right, it shouldn't be hard if you seed it in the same way
 my patch is seeding the cookies.
 
 Carol pointed out another alternative a couple of emails ago. Seems to
 sidestep the registration rework, but may be complex to implement.
 
 But I'm more than happy with my simple Plan C :-) - which is about as
 safe as gmail over http as most people use everyday!

As save as having your email indexed by the provider... :)

When thinking about it a bit more - the big plus with your approach that 
it's only affects Browse - code wise, which is when back porting to 0.82 
a big plus, actually maybe the only way.

Cheers,
Simon
___
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-12 Thread Martin Langhoff
On Fri, Feb 13, 2009 at 12:19 AM, Simon Schampijer si...@schampijer.de wrote:
 When thinking about it a bit more - the big plus with your approach that
 it's only affects Browse - code wise, which is when back porting to 0.82 a
 big plus, actually maybe the only way.

Bingo! I think you're starting to read my mind...



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


joyride, staging builds, sugar releases

2009-02-12 Thread victor
Sorry to insist on this, but I have not got it quite yet.

Joyrides = obsolete (even though the builder script keeps
churning them out and telling the olpc devel list).

staging = what are these? Obsolete too?

release builds = only last week there was a release build
announced on the olpc devel list. Are these obsolete too?

And another thing: olpc-update is not to be used anymore,
or is it still on?

Any clarification greatly appreciated!

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


Re: joyride, staging builds, sugar releases

2009-02-12 Thread Daniel Drake
2009/2/12 victor victor.lazzar...@nuim.ie:
 Sorry to insist on this, but I have not got it quite yet.

 Joyrides = obsolete (even though the builder script keeps
 churning them out and telling the olpc devel list).

Obsolete, but not really obsoleted by anything usable *yet*.

 staging = what are these? Obsolete too?

This is where we are staging changes to be used in v8.2.1.

 release builds = only last week there was a release build
 announced on the olpc devel list. Are these obsolete too?

You are referring to the v8.2.1 candidate release? This is not
obsolete, it is being pushed to various deployments.

 And another thing: olpc-update is not to be used anymore,
 or is it still on?

It is still on for v8.2. It's future is perhaps a bit uncertain (maybe
once we have working pure-Fedora builds it won't be active for a
while, but it possibly will be resuscitated or replaced in future).


I think the real question is: who are you developing for?

v8.2 is pretty frozen and slow moving  - the upcoming 8.2.1 includes
only a handful of fixes (plus a couple of features for much improved
deployability, that do not really affect the user experience). It will
be adopted by deployments over the next few months, and will continue
to be rolled out for probably a long time (e.g. Uruguay still using
build 656 even though development terminated a long time ago).
There may be an 8.2.2 with a similar collection of small fixes,
depending on demand from deployments.

If you want to develop for these deployments on this timeline, then
you should work on top of 8.2 (sugar-0.82) and limit yourself to
activity-level changes only.


As for the future, the hope is that we will have a
similarly-functional OS that includes the latest version of sugar
asap. OLPC is working with Fedora on this, and while I suspect that
the end result will be pushed as a reference OS by OLPC, there are
also some other efforts which I think OLPC would probably be happy to
flash onto machines at the factory (I can't speak officially, I am
only a volunteer right now), including debXO, and a possibility of the
community taking the 8.2 OS release and adding sugar-0.84 and some
other things as an intermediate step before the pure-Fedora builds are
suitable replacements. However, I personally think that all of these
efforts are 6-12 months away (at least) from producing something
adoptable by deployments.

If you want to develop for the-future-with-unknown-timeframe, then you
should work upstream at sugarlabs for sugar-0.84.

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


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

2009-02-12 Thread Wade Brainerd
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.infofile.  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.comwrote:

 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 service of some sort, the method I
  previously outlined can also be used here for standalone mode of the
  tests. This way, the learner can also practice with them and learn
  outside of class hours.
 
  The WikiBrowse activity (WikipediaEN.activity on G1G1 8.2 laptops)
  starts a local python Web server and fires up a WebActivity (Browse)
  instance pointing at it.
 
  Better, Browse's engine is XULRunner 1.9 and it has support for most of
  the HTML 5 offline application spec
  http://www.w3.org/TR/2008/WD-html5-20080122/#offline.
  E.g. http://starkravingfinkle.org/projects/offline/todo.html is an
  expanding form you can fill out while offline that will update the web
  server when next online.  It should work on an XO (I can't try it, 

Re: etextRead activity and espeak

2009-02-12 Thread James Simmons
Tony,

Read Etexts does *not* have speech disabled.  If you install 
speech-dispatcher and configure it to use espeak (NOT espeak-generic) 
then it will work.  What happens in my code is I try to import 
speech-dispatcher python and if I don't find it then I hide the Speech 
tab on the toolbar.  Hemant Goyal was working on creating RPMs for 
speech-dispatcher for Fedora a few months ago, and it may be possible to 
do a yum install to get it.  It will drag in a bunch of other stuff you 
don't need, though, based on my experiences with the RPMs he gave me to 
try out.

The reason the Activity needs speech-dispatcher rather than just espeak 
alone is that the Python code needs to be called back on word breaks.  
That's the only way to do karaoke highlighting, and espeak by itself 
won't do it.  I would also warn you that the highlighting is not 
perfect.  Sometimes it skips a word.  The way I wrote the code keeps it 
from falling behind and highlighting the wrong word, but it will skip 
one every so often, at least a couple per page.  The folks on the 
speech-dispatcher mailing list seemed to think that festival might work 
better than espeak as far as these callbacks were concerned.

The other thing to warn you about is that multithreaded Python apps 
prevent the power management code from kicking in, or at least this 
happened with the version of Python that the XO was using when I wrote 
the Activity.  This may be resolved now; I can't say.  There was some 
talk here that a newer version of Python would resolve the issue.

I stopped working on these Activities in late September of last year 
when my basement experienced some flooding.  It was January before the 
mold remediation was done and I was able to go back down there to 
program.  Also, I wiped out both Linux installs I was using with espeak 
and replaced them with Fedora 10, so I don't currently have 
speech-dispatcher installed and configured, and it will take me awhile 
to remember what I did.  I was really counting on Hemant to get SD ready 
for the XO, but he isn't responding to my emails these days.

So, in summary, this may turn out to be more of a do-it-yourself project 
than you had hoped for.  I would dearly love to have Read Etexts used by 
kids in Nepal, so be assured that I will do everything I can to help.  
If you want to experiment with what I created the best way would be to 
get an old computer that runs sugar-jhbuild or use Fedora 10 with the 
Sugar packages and install speech-dispatcher.  Get that working before 
you try using an actual XO.

I've been thinking about Read Etexts ever since Kindle 2 was announced 
and I heard it has text to speech built in.  I have always thought that 
really good support for ebooks would make the XO a Kindle-killer.  It 
would cost less, be readable in sunlight, give you access to thousands 
of free books, and when you get one a kid in a foreign land gets one 
too.  What's not to like?

Sorry I can't be more encouraging,

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-12 Thread James Simmons

Wade,

I'll have to check out the code in Colors!  What I really need is some 
sample code and some good docs on the APIs available.  What I have now 
was copied from the Read activity, and not all of it is clear to me.  If 
I understood what APIs were available that would be a big help.  I will 
welcome feedback on my code once I have something good enough to 
criticize, but I'm not there yet.


Thanks,

James Simmons


Wade Brainerd wrote:

Hey James,

I can help you out with this if you want.

Your collaboration design sounds fine to me.  I did something similar 
in Colors! where certain parts of the UI are disabled on the joining 
instances.


What point are you at now?  Do you need an example to get started 
with, or feedback about existing code, or just ideas about which APIs 
to use?  


Best,
Wade

On Wed, Feb 11, 2009 at 4:55 PM, James Simmons 
jim.simm...@walgreens.com mailto:jim.simm...@walgreens.com wrote:


Benjamin,

I had been using two machines to develop my Activities.  One ran
Xubuntu
and used the sugar packages provided with the Sugar Live CD that
someone
made up.  These were not perfect, but it was a simpler way to set up a
Sugar test environment than anything else available at the time.  My
second box was running openSUSE 10.2 and I attempted to install
Sugar-jhbuild on it with middling success.  I had both pointing to the
Collabora server to test sharing, and what I found was the sharing
through that server worked OK for small files (like Read Etexts used)
but took forever for slideshows, and frequently ran out of gas in the
middle of a transfer.  As for collaboration between two instances of
Sugar with no jabber server between them, that never worked at
all, even
a little bit.

As of last night both machines have Fedora 10 with the Sugar RPMs
installed, so this should eliminate lots of problems I had in the
past.
I don't expect it to make large file transfers through the jabber
server
any faster, though.  Plus, in my opinion copying a file from one XO to
another would be better done as a function of the Journal.  It
isn't my
idea of what real collaboration should be.  The VNC idea, while
worthwhile, doesn't excite me either.

As an XO user I have no use for collaboration.  I have nobody to play
with.  I could strip the collaboration code out of both my Activities
and have something more than adequate for my own use.  My goal is to
create Activities that will get other kids excited about using
them.  My
idea is a modest step in that direction.  If I get that much working
other ideas may come.

I would like to stick with API's that are currently available for a
couple of reasons:

1).  I want to use the Sugar environment in Fedora 10.  Now that I
finally have a robust test environment I don't want to lose it.
2).  I want to make the Activity available to the largest number of
users possible.

I think telepathy might do the job for me if I just understood it
better.  All I'm asking it to do is send some messages to a list of
buddies and have them initiate some file transfers.  Chat is already
doing the first part, I think, and the Read code might be persuaded to
do the second.

Thanks,

James Simmons


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




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


Re: FoodForce2 Storyboard

2009-02-12 Thread Ankur Verma
I guess there is some error with the attached file. I am unable to download
it.

--
Ankur

2009/2/11 Mohit Taneja mohitge...@gmail.com

 Hi All,
 Please find attached the storyboard for the game FoodForce2.

 Looking forward to your feedback.

 Regards,
 Mohit

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




-- 
Best regards,
Ankur Verma
Email : an...@laptop.org
___
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-12 Thread Carol Farlow Lerche
Martin, I want to understand what https traffic you are concerned will
affect performance and caching.  As far as I understand the need for https,
it would only be used infrequently, when reauthenticating to the server.
I.e..:

1. XO connects to Moodle without valid cookie and is redirected to https
login.

2. https client cert is exchanged, and cookie of limited duration is
planted).

3. XO connects to Moodle, cookie is valid, no redirection needed.

There might be particular use cases where the data in transit needed to be
protected against snooping, but a use case analysis needs to be done to
identify these.  I can't imagine that it would be needed in day-to-day
classroom use by students.

On Thu, Feb 12, 2009 at 6:55 AM, da...@lang.hm wrote:

 On Fri, 13 Feb 2009, Martin Langhoff wrote:

  On Thu, Feb 12, 2009 at 11:54 PM, Simon Schampijer si...@schampijer.de
 wrote:
  Plan A - HTTPS to the rescue
  Just to understand better.
 
  Is the main issue that we have to change the protocol - or are you more
  worried about the CPU cost?
 
  Both. And also HTTPS network load, as HTTPS is a lot less cache-friendly.

 note that if the XS is acting as a proxy the cache issue can be addressed.
 The XS can get a copy of the XO client cert at registration time, and with
 it can decrypt the HTTPS traffic and cache the unencrypted version. this
 is a lot of cpu, but it's on the XS not the XO, so it shouldn't be as bad
 (and there are hardware SSL encryption cards available that can be put in
 an XS for high-volume situations)

 it's not just a matter of downloading a package and installing it, but
 it's not rocket science either.

 this would have the side effect of making the XS security even more
 critical, but I think that it's already critical enough that this won't
 really make much difference in how it's secured.

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




-- 
It is difficult to get a man to understand something, when his salary
depends upon his not understanding it. -- Upton Sinclair
___
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-12 Thread Hal Murray

 note that if the XS is acting as a proxy the cache issue can be
 addressed.  The XS can get a copy of the XO client cert at
 registration time, and with  it can decrypt the HTTPS traffic and
 cache the unencrypted version. this  is a lot of cpu, but it's on the
 XS not the XO, so it shouldn't be as bad  (and there are hardware SSL
 encryption cards available that can be put in  an XS for high-volume
 situations) 

I'm not a security wizard, but I get uncomfortable when anybody suggests 
giving out copies of keys, certs, or passwords.

Is this an acceptable case?  Why?  How would you explain the subtlies to a 
kid?  How many adults give their passwords to phishers?



-- 
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: [Sugar-devel] Activities migration status

2009-02-12 Thread David Farning
On Thu, Feb 12, 2009 at 7:27 PM, Samuel Klein meta...@gmail.com wrote:
 Is there no way to move/create an activity so that the same code push
 will update both sl's gitorious and olpc's git?

 Until there is a policy of sorts in place, and better yet an endowment
 supporting long-term maintenance of a server hosting projects (one of
 the two mentioned so far in this thread, or a dedicated
 project-hosting service elsewhere), I would focus on creating good
 mirrors, rather than on picking any particular single host.  There is
 currently still risk of losing people's work.

While you wait for a best case scenario We will continue to move
forward one step at a time.

david

 SJ

 On Wed, Feb 11, 2009 at 3:39 PM, Luke Faraone l...@faraone.cc wrote:
 On Wed, Feb 11, 2009 at 3:26 PM, Samuel Klein meta...@gmail.com wrote:

 I like that part.  Are there criteria for removing someone's project
 if it's deemed inappropriate?

 Not yet, but I assume if someone thinks that somebody else's use of SL
 infrastrucutre is not under the project scope we'll discuss it on the
 sugar-devel or IAEP mailing list.

 --
 Luke Faraone
 http://luke.faraone.cc

 ___
 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: FoodForce2 Storyboard

2009-02-12 Thread James Cameron
The attachment was readable using xpdf.  Nice work.  You should seek
hosting for HTTP download of large attachments though, because many many
people are given the attachment who may not need 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: FoodForce2 Storyboard

2009-02-12 Thread Mohit Taneja
Sure,
I would keep that thing in mind next time.

Regards,
Mohit

On Fri, Feb 13, 2009 at 8:49 AM, James Cameron qu...@laptop.org wrote:

 The attachment was readable using xpdf.  Nice work.  You should seek
 hosting for HTTP download of large attachments though, because many many
 people are given the attachment who may not need it.

 --
 James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/




-- 

Joan Rivers  - Never floss with a stranger.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] XS 0.5.1 RC - Last round of testing...

2009-02-12 Thread Sameer Verma
On Wed, Feb 11, 2009 at 10:37 PM, Sameer Verma sve...@sfsu.edu wrote:
 On Wed, Feb 11, 2009 at 8:42 PM, Martin Langhoff
 martin.langh...@gmail.com wrote:
 On Thu, Feb 12, 2009 at 2:41 PM, Sameer Verma sve...@sfsu.edu wrote:
 was with eth0 not showing up. It looks like I am the victim of the
 dreaded Realtek 8139 bug. It worked in XS 0.4 but in 0.5.1 it refuses
 to show up.

 Strange, but it does look like a driver problem.

 The links you provide show various different problems with that NIC.
 In some cases, irqpoll in the kernel boot line fixes, in others some
 fiddling with ethtool was needed...

 It'll be good to know which of the fixes helps you :-)

 appending irqpoll has fixed that problem. Now, I've hit another bug.
 This is yum broken with _sha256 as stated here.
 http://fedoraforum.org/forum/showthread.php?t=193507

 I'm going to try the workaround.


 BTW, if you upgraded from XS-0.4, it might be a good idea to rm
 /etc/udev/rules.d/70-persistent-net.rules

 No, this was a clean install. I'm running the server for testing only,
 so I can afford to wipe it clean.

 Sameer
 --
 Dr. Sameer Verma, Ph.D.
 Associate Professor of Information Systems
 San Francisco State University
 San Francisco CA 94132 USA
 http://verma.sfsu.edu/
 http://opensource.sfsu.edu/



So, after mucking around last night and today, I wiped my XS box and
reformatted it to remove ALL traces of 0.4  I have a clean 0.5.1
install on it. md5sum of the ISO is c0fde10b93cab3cb1a3bc3a42ceb5408

I've circumvented the realtek 8139 problem by appending irqpoll in
grub.conf That seems to work, although I have to bring up eth0
manually and issuing dhcient eth0

I still hit the bug of _sha256 as mentioned here:
https://bugzilla.redhat.com/show_bug.cgi?id=454179

Note that I am not upgrading anything. Its a clean install. I believe
the appropriate word for this is: AARGH!

I wish Fedora had  LTS or Stable branch (it does...kinda...in
RHEL...are we allowed to say CentOS here?) but that's another thread
and another rant. It does remind me of why I don't run anything on
Fedora anymore.

Anyway, this is getting in the way. Is anyone seeing this too? If so,
then its a significant barrier for 0.5.1

Suggestions?

Sameer
-- 
Dr. Sameer Verma, Ph.D.
Associate Professor of Information Systems
San Francisco State University
San Francisco CA 94132 USA
http://verma.sfsu.edu/
http://opensource.sfsu.edu/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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

2009-02-12 Thread Daniel Drake
Hi,

As I noted here:
http://wiki.laptop.org/go/Deployment_wishlist#Delete_registration_info
we are in a sticky situation where a load of XOs are registered to one
XS, which no longer exists. We want to register them to a new one, and
we are having to manually go to each laptop and modify the sugar
config file to allow us to register again.

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.

Of course, this means that the users (children) can now trivially lose
their registration data. Are there any undesirable consequences of
this that I am missing?

For example, what happens if a user deletes the registration data and
then re-registers with the same server.. does the XS cope with that
happily?

Any other points I should keep in mind, or any other options to
avoiding this small nightmare in future?

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


Re: [Server-devel] xs-activation-server over IPv6

2009-02-12 Thread Daniel Drake
2009/2/8 Martin Langhoff martin.langh...@gmail.com:
 So initially I am going with #1-- do you think you can tweak the
 initrd a bit more to poke at ef01 over mesh, and ef02 over abg?
 Looking at activate.py, adding it to the array in try_network()...

Thanks, done!
New patch at http://dev.laptop.org/ticket/9246

Are your XS-side changes included in the latest 0.5.1 release, or is
this scheduled for later?

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


Re: [Server-devel] rsync on xs-dev

2009-02-12 Thread John Watlington

Currently only through ssh.
I assume you mean an rsync daemon, serving up the xs images ?
I think that could be arranged...

wad

On Feb 12, 2009, at 6:53 PM, Sameer Verma wrote:

 Does xs-dev.laptop.org support rsync?

 Sameer
 -- 
 Dr. Sameer Verma, Ph.D.
 Associate Professor of Information Systems
 San Francisco State University
 San Francisco CA 94132 USA
 http://verma.sfsu.edu/
 http://opensource.sfsu.edu/
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel

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


Re: [Server-devel] rsync on xs-dev

2009-02-12 Thread Sameer Verma
On Thu, Feb 12, 2009 at 4:25 PM, John Watlington w...@laptop.org wrote:

 Currently only through ssh.
 I assume you mean an rsync daemon, serving up the xs images ?
 I think that could be arranged...


I was trying to rsync ISOs last night (updating an older release) but
it didn't work...might help those who have limited bandwidth.

Sameer
 wad

 On Feb 12, 2009, at 6:53 PM, Sameer Verma wrote:

 Does xs-dev.laptop.org support rsync?

 Sameer
 --
 Dr. Sameer Verma, Ph.D.
 Associate Professor of Information Systems
 San Francisco State University
 San Francisco CA 94132 USA
 http://verma.sfsu.edu/
 http://opensource.sfsu.edu/
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel

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


Re: [Server-devel] rsync on xs-dev

2009-02-12 Thread quozl
On Thu, Feb 12, 2009 at 06:27:03PM -0800, Sameer Verma wrote:
 I was trying to rsync ISOs last night (updating an older release) but
 it didn't work...might help those who have limited bandwidth.

You can rsync over SSH, and you can use --partial to ensure that the
data you have got so far is not wasted for when you have to restart.

Bare rsync is merely slightly more efficient, since the data is not
encrypted and encapsulated by the SSH connection.

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


[Server-devel] Install from NFS server

2009-02-12 Thread David Leeming
I am trying to install the server on a machine without CD drive via NFS
server. I have set up the latter and the new machine seems to be finding the
share. But it reports:

 

That directory does not seem to contain an OLPC school server installation
tree

 

I have put only the 0.5.1 image in the shared folder. 

 

Can U help. What else should be in the shared folder?

 

I am using a USB flash drive to kick start but can't get anywhere with that
when it comes to the directory containing the school server image, it
reports that the directory does not seem to contain any (whereas it does).
So I am now pointing it at an NFS server when it gets to that stage

 

David Leeming

 

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