PlayGo Patches/Commit access

2008-07-19 Thread Andrés Ambrois
  Hello all!

  I've recently started learning python and sugar programming and, while 
trying to be useful in the meantime, have been tinkering around with the 
PlayGo activity. 
  I have a few patches that add basic scorekeeping, error messages 
(like: There already is a stone there!), and small code cleanup. I'd like 
to start tackling bigger problems (like collaboration) in the future. 
However, cjb told me on #sugar the best way to get this commited is having 
commit access to the git repo. I couldn't find a Commit access application 
in the wiki, so I'm using part of the project hosting application here :) :

1. Project name   : PlayGo
2. Existing website, if any : http://wiki.laptop.org/go/PlayGo
3. One-line description : A Go game activity

6. Committer list:
Username   Full name SSH2 key URLE-mail
    -   
--
#1  aa  Andrés Ambrois  http://aambrois.homeip.net/site/files/id_rsa.pub  
[EMAIL PROTECTED]

11. Translation
   [X] Set up the laptop.org Pootle server to allow translation commits to be 
made

12. Notes/comments: The project already is on the git repository: 
http://dev.laptop.org/git?p=projects/PlayGo;a=summary . But I couldn't find 
it in the pootle server. It'd be great to have it added. 

Also, I'm Uruguayan so I'll take care of the spanish translation :). If anyone 
needs any help with Spanish, I'm usually around at #olpc :D
-- 
 -Andrés


signature.asc
Description: This is a digitally signed message part.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: PlayGo Patches/Commit access

2008-07-19 Thread Andrés Ambrois
On Saturday 19 July 2008 21:25:55 Nate Ridderman wrote:
 Andr�s,

 Go is one of my favorite games, so I'm excited to see that someone has
 picked up development again! It requires such balance between
 aggressiveness and defense, as well as local play vs spreading out on the
 board - I think it's a great game for kids to learn. I look forward to
 trying out a new version, and I agree that collaboration is an important
 problem to tackle soon. Adding GnuGo (http://www.gnu.org/software/gnugo/)
 support would be a great addition too. It would be nice to support GnuGo
 and collaboration over the same networking framework, but I don't know
 enough about the
 collaboration framework and Bitfrost to know if this is a possibility.
 GnuGo generally runs as it's own process and communicates over GTP (
 http://www.gnu.org/software/gnugo/gnugo_19.html#SEC196).

 It seems there's a lack of documentation for people like yourself who want
 to pick up development on an existing activity. Most people who want shell
 access to dev.laptop.org also want to host a new activity. I wasn't able to
 find anything on the wiki about requesting shell access. Maybe putting a
 blurb on the wiki about who to contact would be helpful.

 Nate

Dear Nate,

  Thanks for your interest! I also like Go a lot, even though I'm very bad at 
it! :P. I also think it's a great game for kids, most strong go players start 
very young, and a lot turn pro before age 15. 
  GnuGo integration is certainly the way to go (no pun intended XD), maybe we 
can use a local gnugo instance speaking GTP with the Activity, for what I 
see, it shouldn't be too hard. The standard API for sharing (Telepathy tubes) 
can be used by the host to tell the other player what's going on. I'm just 
thinking out loud here, as I yet have to delve into the sharing API. Maybe 
one of the experts here can give us some pointers :). 

-- 
 -Andrés


signature.asc
Description: This is a digitally signed message part.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: PlayGo Patches/Commit access

2008-07-21 Thread Andrés Ambrois
On Sunday 20 July 2008 01:14:48 Edward Cherlin wrote:
 2008/7/19 Andrés Ambrois [EMAIL PROTECTED]:
   Hello all!
 
   I've recently started learning python and sugar programming and, while
  trying to be useful in the meantime, have been tinkering around with the
  PlayGo activity.

 Thanks. I wrote to the American Go Association when we started this
 project, and they wrote back, We can't tell you how excited we are.
 They put a note in their e-mail newsletter about us. When we can take
 our software to one of their events, we can talk about getting
 assorted game records and go literature into a library content bundle.

 I was a 6-kyu player in my youth, according to the teachers in my
 school in Korea, where I was a Peace Corps Volunteer. I learned at a
 chess club when I was eleven. If I had had access to the literature
 available now, I am sure I would have made amateur dan. I am delighted
 to see children getting opportunities I didn't have back then, and
 being able to help get even more opportunities to way more children.

 I can read the Korean and Japanese go literature a little, and I can
 provide pointers to a lot of on-line resources.

 The Hip-Hop Chess Federation is also interested in our work, as is
 International Chess Master Josh Waitzkin, author of The Art of
 Learning. Walter Bender started discussions with his book and chess
 tutorial software publishers about Free licenses on versions of the
 book and software.

 I have literature and contacts for a great many more games. We aren't
 going to run out of programming exercises for a very long time.

 Very cool! Thanks for your support, and count on me bugging you when/if I get 
a chance to start working on the finer details :).

   I have a few patches that add basic scorekeeping,

 Do you mean scoring at the very end of a game, or scoring games in
 matches, or what? Can your code estimate who is ahead in a game?

I added another text box on the bottom of the board that reads: Whites: X - 
Blacks: Y during the game. No end results yet. I haven't even added a Pass 
button XD. 

  error messages
  (like: There already is a stone there!), and small code cleanup.

 Is there a ko rule implemented? Can we get all of the different rule
 sets as options (Japan, China, Korea, Ing)?

  Yup, I implemented basic Ko, and it works on single player. Sharing works, 
but it bypasses most of the rule-enforcing code, so it's not very nice, so 
I'll have to spend some time fixing that. 


-- 
 -Andrés


signature.asc
Description: This is a digitally signed message part.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: PlayGo Patches/Commit access

2008-07-21 Thread Andrés Ambrois
On Monday 21 July 2008 08:50:53 Bastien wrote:
 Hi Andr�s!

 I'm also a Go player and I'd really love to see this activity improve.

 Is it already possible to share this activity so that children can play
 together from two different XOs?  I was unable to get this working when
 I last tried.  If this is not possible yet, I think this should be a top
 priority, more than making it possible to play against GnuGo.

  Yes, I don't own an XO, but I've tried running two sugar-jhbuild instances, 
and it works fine. Well, there's no turn enforcement (you can play anywhere 
anytime, even if it's the other guys turn), and you can't really tell if 
anyone connected until they place a stone. So its very rough around the 
edges. 

  I also agree on the GnuGo priority. KISS first :). 

 As for requests about getting commit access, I thought each activity had
 a maintainer with its email well advertized, but this is not the case.

 The maintainer's email could appear either on the activity wiki page
 and/or in the git repository.  Sadly enough, there is no such contact
 information neither on http://wiki.laptop.org/go/PlayGo nor in the git
 repo: http://dev.laptop.org/git?p=projects/PlayGo;a=summary (there is
 only Gerard J. Cerchio as a name...)

 Another good place to find the name of the maintainer would be
 http://wiki.laptop.org/go/Activities

 In other git repos, the Owner is often an email, which makes it
 straightforward for anyone to jump into a project.  See for example
 http://repo.or.cz/

 In gitorious.org or github.com, you can send messages to the owner:

   http://gitorious.org/projects/basecms
   http://github.com/agnathan/odf2logos/tree/master

 Looking forward to kibbitzing with people around here...

  The only mention I could find is on http://blog.circlesoft.com/ But if there 
ever was a maintainer, it's clear that the project is completely orphaned. 

-- 
 -Andrés


signature.asc
Description: This is a digitally signed message part.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Server-devel] Password-less authentication with moodle (Martin Langhoff)

2008-10-06 Thread Andrés Ambrois
Hi Greg!

  Thanks for your insight. Currently, the scope of our project is restricted 
to the application (id est Moodle) layer, and my question was directed towards 
authentication at that level.But your notes are very relevant for 
installations in the future. Thank you!

  In reply to your comments, school servers in Uruguay have no public 
presence. I dont know the details but I would think this is done with a 
firewall blocking everything but monitoring services used by LATU. 

  With some luck we will be able to work on these lower layer problems in 
deployment at later stages. 

  Cheers!

On Monday 06 October 2008 11:58:49 Greg Smith wrote:
 Hi Andres,

 I missed one key one.

 Have a known clean backup. Add user data to it if you can, but backup
 regularly. Be ready to restore to a clean backup on short notice if you
 are compromised and need to start from scratch.

 Thanks,

 Greg S

 Greg Smith wrote:
  Hi Andres,
 
  A few comments to get you warmed up. I will ask the current EduBlog team
  to give you more suggestions and details too.
 
  1 - My understanding of the current XS design is that it has one
  interface visible to the Internet and another visible to the school
  only. It seems pretty secure that way but it can open up a bunch of
  security issues if you expose the School side interface to the Internet.
   You may need to do that in order to run EduBlog on the Internet so let
  us know ASAP which services are available on public routed interfaces.
 
  2 - Use denyhosts (http://denyhosts.sourceforge.net/) or some other
  protection against dictionary style attacks on any public facing
  interfaces.
 
  3 - Put an anti-virus tool on the box. e.g. clamAV. Especially if your
  PHP, Apache, Moodle, SQL services are visible publicly its important to
  have a second line of defense in case some virus SW gets on the box.
 
  4 - Run a port scan yourself (e.g. Nessus). Also, watch and protect
  yourself against being port scanned by an attacker.
 
  Those are some suggestion off the top of my head.  I'll try to collect
  all suggestions from EduBlog round 1 and get those to you as well.
 
  HTHs.
 
  Thanks,
 
  Greg S
 
  
 
  Date: Sun, 5 Oct 2008 14:52:25 +1300 From: Martin Langhoff
  [EMAIL PROTECTED] Subject: Re: [Server-devel] Password-less
  authentication with moodle To:  Andr?s Ambrois 
  [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Message-ID:
  [EMAIL PROTECTED]
  Content-Type: text/plain; charset=ISO-8859-1 On Sun, Oct 5, 2008 at 5:29
 
  AM, Andr?s Ambrois [EMAIL PROTECTED] wrote:
 - What's your timeframe?

 The timeframe for our project is 5 weeks starting from last
 
  Wednesday, in
 
 which I need to cover the interface (Moodle and Wordpress theming),
 
  course
 
 configuration, authentication, modifying Write to enable blog
 
  posting, and
 
 document all this for a manual.
 
  Ouch - that's very tight!
 
 I'm glad I wasn't that far off  :) . Are these required
 
  modifications documented
 
 somewhere?
 
  Not yet. We're finishing off 0.5 - will be looking into this for 0.6
  or 0.7, not too far away, unlikely to be done in the next 5 weeks
  either :-/
 
  cheers,
 
 
 
  m

 ___
 Server-devel mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/server-devel

-- 
  -Andrés
___
Server-devel mailing list
[EMAIL PROTECTED]
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Password-less authentication with moodle

2008-10-08 Thread Andrés Ambrois
On Wednesday 08 October 2008 13:34:53 Greg Smith wrote:
 Hi Andres,

 Looks like I answered the wrong question, sorry :-(

 Can you tell us more about where the Moodle and EduBlog will be deployed?

 Will it go on the existing Debian based servers in Uruguay or will it go
 on a server which is in a data center and access from Uruguay schools
 via WAN (private or Internet)?

 In terms of authentication to Moodle, I think the best you can do with
 the XO is to have user name/password on the first try. Then Moodle
 cookies the browser so its recognized and you don't need to login again.

 That's my guess but I think Tarun knows more about the available options.

 Let me know if that is closer to what you are asking.

 Thanks,

 Greg S


  No worries, this is all good input for us! :)

  The solution should be independent of whether the system is installed in a 
school server or in a central one. This is because the first tests are likely 
to be conducted on a central server, and later deployed to the school servers 
(I understand these are Debian boxes, yes). 

  The authentication scheme we have more or less agreed on using goes like 
this: 

--- The system checks for a cookie that stores a username and a hash of its 
password. 

-- If a cookie is found and correct. The user is logged in and 
transported to the blogging system. Inside the system, the user can choose to 
view his/her password to be able to log in from another computer. 

-- If a cookie is not found or incorrect, the user is sent to a 
username/password login page. 

- If the user is on an XO [0], in addition to username/password 
fields, there is a link to the signup process, at the end of which a password 
is randomly generated, and a cookie stored on the XO for future passwordless 
logins. 

  With this scheme we contemplate passwordless logins from the XO (because the 
signup process is only available when accessing from an XO, and thus the 
cookie is only stored on XOs), and username/password logins from other 
devices. 

We have also decided there will be several EduBlog (Moodle) accounts 
associated with each XO (cookie), so other people (e.g. relatives) can use the 
system from the XO. There will be an interface to invite (actually add other 
accounts) people this way, and a drop-down menu to switch to these other 
accounts after automatic login. 

  Cheers!

  --
 
  Message: 2
  Date: Mon, 6 Oct 2008 20:22:48 -0200
  From: Andr?s Ambrois [EMAIL PROTECTED]
  Subject: Re: [Server-devel] Password-less authentication with moodle
  (Martin Langhoff)
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Message-ID: [EMAIL PROTECTED]
  Content-Type: text/plain;  charset=iso-8859-1
 
  Hi Greg!
 
Thanks for your insight. Currently, the scope of our project is
  restricted to the application (id est Moodle) layer, and my question was
  directed towards authentication at that level.But your notes are very
  relevant for installations in the future. Thank you!
 
In reply to your comments, school servers in Uruguay have no public
  presence. I dont know the details but I would think this is done with a
  firewall blocking everything but monitoring services used by LATU.
 
With some luck we will be able to work on these lower layer problems in
  deployment at later stages.
 
Cheers!
 
  On Monday 06 October 2008 11:58:49 Greg Smith wrote:
  Hi Andres,
 
  I missed one key one.
 
  Have a known clean backup. Add user data to it if you can, but backup
  regularly. Be ready to restore to a clean backup on short notice if you
  are compromised and need to start from scratch.
 
  Thanks,
 
  Greg S
 
  Greg Smith wrote:
  Hi Andres,
 
  A few comments to get you warmed up. I will ask the current EduBlog
  team to give you more suggestions and details too.
 
  1 - My understanding of the current XS design is that it has one
  interface visible to the Internet and another visible to the school
  only. It seems pretty secure that way but it can open up a bunch of
  security issues if you expose the School side interface to the
  Internet. You may need to do that in order to run EduBlog on the
  Internet so let us know ASAP which services are available on public
  routed interfaces.
 
  2 - Use denyhosts (http://denyhosts.sourceforge.net/) or some other
  protection against dictionary style attacks on any public facing
  interfaces.
 
  3 - Put an anti-virus tool on the box. e.g. clamAV. Especially if your
  PHP, Apache, Moodle, SQL services are visible publicly its important to
  have a second line of defense in case some virus SW gets on the box.
 
  4 - Run a port scan yourself (e.g. Nessus). Also, watch and protect
  yourself against being port scanned by an attacker.
 
  Those are some suggestion off the top of my head.  I'll try to collect
  all suggestions from EduBlog round 1 and get those to you as well.
 
  HTHs.
 
  Thanks,
 
  Greg S
 
  
 
  Date: Sun, 5 Oct 2008 

Re: simple hacks to improve the performance of the Sugar UI

2008-10-17 Thread Andrés Ambrois
On Friday 17 October 2008 17:56:05 Erik Garrison wrote:
 XO Users,

 In short, I have bundled a set of 'hacks' which generally (and in my
 observation, dramatically) improve the user-perceived responsiveness of
 the Sugar UI.  The hack bundle is available at
 http://dev.laptop.org/~erik/faster-hacks.zip


Here are a couple of more patches for your bag of tricks: 

[PATCH] sugar-homewindow-no-transition.patch

This removes the usage of TransitionBox from HomeWindow.py. TransitionBox is 
used to animate the Xo Guy while moving between zoom levels. 
This patch makes transition from activities to the home box almost 
instantaneous and removes the annoying flickering. 

[PATCH] sugar-optionally_disable_frame_on_tabbing_v2.patch

This is an updated version of your patch that also sets _RAISE_DELAY to 0 if 
/home/olpc/no-frame-on-tabbing is present. It makes tabbing almost 
instantaneous on my XO. 

--

I have tried your hacks and I must say the frame behaves a lot better with 
compositing enabled. I haven't run any serious memory pressure tests, but I 
can have around 8-9 activities open before encountering OOM problems. No idea 
what the previous statistics were. 

Cheers!
-- 
  -Andrés
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: simple hacks to improve the performance of the Sugar UI

2008-10-17 Thread Andrés Ambrois
On Saturday 18 October 2008 03:35:14 Andrés Ambrois wrote:

 Here are a couple of more patches for your bag of tricks:

*Gah*  forgot the attachments

-- 
  -Andrés
--- tabbinghandler.py.bak	2008-10-17 20:04:11.0 +
+++ tabbinghandler.py	2008-10-18 00:19:06.0 +
@@ -15,6 +15,7 @@
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 import logging
+import os
 import gtk
 import gobject
 
@@ -22,7 +23,7 @@
 from view.frame import frame
 from model import shellmodel
 
-_RAISE_DELAY = 250
+_RAISE_DELAY = 0
 
 class TabbingHandler(object):
 def __init__(self, modifier):
@@ -59,7 +60,8 @@
 else:
 shell = view.Shell.get_instance()
 
-self._frame.show(self._frame.MODE_NON_INTERACTIVE)
+if not os.path.exists('/home/olpc/no-frame-on-tabbing'):
+self._frame.show(self._frame.MODE_NON_INTERACTIVE)
 
 def __timeout_cb(self):
 self._activate_current()
--- tabbinghandler.py.bak	2008-10-17 20:04:11.0 +
+++ tabbinghandler.py	2008-10-18 02:54:08.0 +
@@ -15,6 +15,7 @@
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 import logging
+import os
 import gtk
 import gobject
 
@@ -22,7 +23,10 @@
 from view.frame import frame
 from model import shellmodel
 
-_RAISE_DELAY = 250
+if os.path.exists('/home/olpc/no-frame-on-tabbing'):
+_RAISE_DELAY = 0
+else:
+_RAISE_DELAY = 250
 
 class TabbingHandler(object):
 def __init__(self, modifier):
@@ -59,7 +63,8 @@
 else:
 shell = view.Shell.get_instance()
 
-self._frame.show(self._frame.MODE_NON_INTERACTIVE)
+if not os.path.exists('/home/olpc/no-frame-on-tabbing'):
+self._frame.show(self._frame.MODE_NON_INTERACTIVE)
 
 def __timeout_cb(self):
 self._activate_current()
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: simple hacks to improve the performance of the Sugar UI

2008-10-17 Thread Andrés Ambrois
On Saturday 18 October 2008 03:45:49 Andrés Ambrois wrote:
 On Saturday 18 October 2008 03:35:14 Andrés Ambrois wrote:
  Here are a couple of more patches for your bag of tricks:

 *Gah*  forgot the attachments

Its almost 4 am here, please bear with me...

Scratch that first one, here is sugar-homewindow-no-transition.patch

-- 
  -Andrés
--- HomeWindow.py.orig	2008-10-18 00:16:52.0 -0200
+++ HomeWindow.py	2008-10-18 00:06:19.0 -0200
@@ -22,7 +22,6 @@
 from view.home.MeshBox import MeshBox
 from view.home.HomeBox import HomeBox
 from view.home.FriendsBox import FriendsBox
-from view.home.transitionbox import TransitionBox
 from model.shellmodel import ShellModel
 from model import shellmodel
 
@@ -60,15 +59,11 @@
 self._home_box = HomeBox()
 self._friends_box = FriendsBox()
 self._mesh_box = MeshBox()
-self._transition_box = TransitionBox()
 
 self._activate_view()
 self.add(self._home_box)
 self._home_box.show()
 
-self._transition_box.connect('completed',
- self._transition_completed_cb)
-
 model = shellmodel.get_instance()
 model.connect('notify::zoom-level', self.__zoom_level_changed_cb)
 
@@ -120,22 +115,7 @@
 self._level = level
 self._activate_view()
 
 self.remove(self.get_child())
-self.add(self._transition_box)
-self._transition_box.show()
-
-if self._level == ShellModel.ZOOM_HOME:
-size = style.XLARGE_ICON_SIZE
-elif self._level == ShellModel.ZOOM_FRIENDS:
-size = style.LARGE_ICON_SIZE
-elif self._level == ShellModel.ZOOM_MESH:
-size = style.STANDARD_ICON_SIZE
-
-self._transition_box.set_size(size)
-
-def _transition_completed_cb(self, transition_box):
-current_child = self.get_child()
-self.remove(current_child)
 
 if self._level == ShellModel.ZOOM_HOME:
 self.add(self._home_box)
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: G1G1 updates, Lennon video and other vids

2008-12-29 Thread Andrés Ambrois
On Saturday 27 December 2008 20:28:10 da...@lang.hm wrote:
 On Sat, 27 Dec 2008, Samuel Klein wrote:
  Hi,
 
  The Lennon video that's been murmured about for weeks has been
  released.  I'm curious to see reactions from the list.  If anyone
  makes a screensaver version of the opening sequence, which I love,
  I'll send you my first attempt at a memory-doubled XO.  I'm hoping to
  get more details about how it was made to post as well...  It's had
  50,000 views (wow, make that 65k since I wrote this draft at lunch) in
  the past day.  Details and a couple other awesome video links are up
  on the blog.
   http://blog.laptop.org

 personal opinion here, I don't like using digital fakery to make dead
 celebreties say things that they never said (movies that are clearly
 fiction are an exception to this)

 In this case I think the quality of the audio splicing also leave a lot to
 be desired (but then again, I've never listened to recordings of Lennon
 talking, so it could be his real speech pattern)

 the other videos on the blog are very interesting. I hadn't heard of this
 blog before, thanks for the pointer.

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

  I also wouldn't feel comfortable articulating dead people imagery to make it 
seem like they said something they didn't. No matter how obvious it may seem 
that it is an actor, no matter how much his wife agrees with the statement. 

  I feel Sagan's voice in this video would have made a true a deep message: 
http://www.youtube.com/watch?v=hLkC7ralR30

  I would suggest Sagan's Cosmos and Pale Blue Dot passages for future ads of 
this nature. There are countless great poets out there, no need to fake them 
:)
-- 
  -Andrés


signature.asc
Description: This is a digitally signed message part.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Is it possible to disable sharing for an Activity?

2009-02-02 Thread Andrés Ambrois
On Monday 02 February 2009 21:30:46 Carol Farlow Lerche wrote:
 I'm guessing someone has already suggested this on some list or other, but
 in my experience kids like to watch over each other's shoulder, and a
 default collaboration of everyone watches, one person types vnc would in
 my opinion be the 80 of a collaboration 80-20 rule.  I think this ought to
 be implemented in the sugar infrastructure, and then let activities that
 have an obvious extended collaboration (such as two person games or shared
 authorship documents) do something more.

Please take a look at Chris Ball's recent work on MPX over VNC: 
http://blog.printf.net/articles/2009/01/26/multi-pointer-remote-desktop

 2009/2/2 Wade Brainerd wad...@gmail.com

  There might be something in the Sugar Almanac, see
  http://sugarlabs.org/go/ActivityTeam/Resources for a link.
 
  Alternately, an example of how to disable sharing is here:
 
 
  http://git.sugarlabs.org/projects/math/repos/mainline/blobs/master/mathac
 tivity.py#line75
 
  Note to Sugar toolkit guys, I'd love to have a formal API to indicate
  collaboration not supported.
 
  Best,
  Wade
 
  On Mon, Feb 2, 2009 at 6:10 PM, James Simmons 
jim.simm...@walgreens.comwrote:
  First, I want to praise whoever put together the Sugar packages for
  Fedora 10.  After struggling with Xubuntu and with sugar-jhbuild on
  openSUSE I finally have a sugar test environment where everything seems
  to work!  It was well worth wiping out my openSUSE install and starting
  over with a new distribution.  I'll probably do the same to my Xubuntu
  box eventually.
 
  Second, now that I have this I want to perfect collaboration on my two
  Activities, Read Etexts and View Slides.  Unfortunately, I am convinced
  that collaboration in View Slides that involves sending large Zip
  archives over the network is not and never will be practical.  What I'm
  thinking about now is making the person sharing a slide show see only
  the image being viewed on the XO that has the full presentation.  The
  master XO would page through the slides and those sharing would follow
  along.  I'm not sure that's practical, either.
 
  While I'm figuring this out, what I'd really like to do is release a
  version of View Slides that has no collaboration at all.  This would
  mean hiding the control on the Activity toolbar that supports
  collaboration.  When I figure out something intelligent to do with
  collaboration I'll restore it.  Is this possible, and how would I go
  about doing it?
 
  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



signature.asc
Description: This is a digitally signed message part.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] FoodForce II Beta Release

2009-05-08 Thread Andrés Ambrois
On Friday 08 May 2009 03:24:30 pm Mohit Taneja wrote:
 Hi,

 The Beta version of the FoodForce2 game has been developed for the XO. The
 features that have been incorporated are :
snip

Congratulations! Looks great! I had a chance to see a presentation on this 
game last October in El Salvador and I was impressed with the work. 

May I ask what license is it under?

 FoodForce2 Team

-- 
  Andrés
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Fwd: Xo 1.5 wlan]

2009-05-31 Thread Andrés Ambrois
On Sunday 31 May 2009 11:15:58 am Tomeu Vizoso wrote:
 On Sun, May 31, 2009 at 16:09, Tiago Marques tiago...@gmail.com wrote:
  On 5/31/09, John Watlington w...@laptop.org wrote:
  On May 30, 2009, at 12:04 PM, Reinder E.N. de Haan wrote:
  Subject: Xo 1.5 wlan
  Date: Thu, 07 May 2009 19:56:27 +0200
  From: Reinder de Haan r...@mveas.com
  To: John Watlington w...@laptop.org
 
  Hello,
 
  I have a couple of questions regarding the wlan module in xo 1.5;
 
  1) will it be an off the shelf module (3th party) or a quanta/olpc
  'private' module
 
  One of the complications of the Gen 1.5 design has been improving
  the WLAN module.   The existing module takes lots of power, and
  the USB driver still needs extensive modification to speed up
  suspend/resume.
 
  Being power the major concern, will wireless range also be enhanced in
  some way? Most of the early claims that the XO had a top class
  wireless range have not materialized, at least when I compare it to
  other devices like a Fon2100 or an IPW2200 from Intel, which is
  probably the device with best wireless range that I've ever seen.
 
  A way to change the transmit power in software would be great for
  power and range, depending on the application. Does the module have
  anything like that or are you just mainly focusing on power and
  relegating range to 2nd place?

 I think that there have been recent improvements in the algorithm for
 choosing the transmission power in the linux kernel. I'm not sure if
 all wifi drivers benefit from it, but a laptop with b43 has improved
 dramatically its range after updating to Ubuntu Jaunty.

I think what you're talking about is the rate selection algorithm, I dont 
think the kernel dynamically changes the Tx power. 

Linux has moved to minstrel [0] as its default rate control algorithm, which 
is way better than what we had previously in dealing with lots of collisions, 
where slower rates may not increase the chance of getting a packet through. 
This scenario is common in schools with lots of XOs. 

Some drivers still have their own algorithm, it is probable that the closed 
fullmac Marvell implementation has one. 

[0] 
http://linuxwireless.org/en/developers/Documentation/mac80211/RateControl/minstrel



  Best regards,
 
  Tiago Marques
 
  Unlike Gen 1, we don't have the time or expected market to
  develop and certify a custom module.
 
  The current plan is to use an existing WLAN module, based on
  the Marvell 88W8686 and connected to the system using an
  SDIO interface.
 
  2) if it is a private module please break out jtag and the serial port
  for debugging (xo 1.0 only had jtag.. serial ended right at the
  balls of
  the chip :-(
 
  Sorry, the module doesn't bring any of the internal debugging signal
  out.
 
  3a) if its a 3th party moduel is it posible to buy it somewhere ?
 
  Yes and no.   There are 88W8686-based SDIO modules already
  available, and electrically/software-wise they will be identical to the
  one we are planning to use.
 
  The actual module used in XO-1.5 will have a half-height miniPCI-e
  form factor.   Even if you could buy it in small quantities, you
  would have
  to arrange an adapter board to use internally.
 
  Cheers,
  wad
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] RFH - Journal corruption reports fom 8.2.1 users in Uy

2009-08-20 Thread Andrés Ambrois
On Thursday 20 August 2009 06:58:48 pm Martin Langhoff wrote:
 On Thu, Aug 20, 2009 at 7:44 PM, Tomeu Vizosoto...@sugarlabs.org wrote:
  Would be nice to have more details about the failure so we can both
  fix it and propose the best tool for the job. Maybe a ceibal jam
  volunteer with some linux knowledge would like to work with us on
  this?

 Many are reading olpc-sur -- I hope someone might help.

I'll help in any way I can. Would an upload webservice similar to Sacha's for 
uploading the necessary datastore bits help? We can then distribute a simple 
cli tool that uploads the data.

Will collecting the indexes be enough or do you need the whole datastore?

 cheers,



 m

-- 
  -Andrés
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] RFH - Journal corruption reports fom 8.2.1 users in Uy

2009-08-21 Thread Andrés Ambrois
On Friday 21 August 2009 05:08:28 am Martin Langhoff wrote:
 2009/8/21 Tomeu Vizoso to...@sugarlabs.org:
  Yes, though if we manage to get the logs dir of a machine just after
  the DS was lost, there's lots of chances we are going to be able to

 The ones on the ramdisk? :-(

  I think ~/.sugar/default/logs

  We're holding a jam the 29th, so maybe someone affected could attend, 
otherwise it'll be very hard for teachers to upload large files (ADSL broadband 
has a 128 Kbps uplink here in .uy). 

  I'll post a mail in Sur and olpc-uruguay, after I get some sleep. 


 m

-- 
  -Andrés
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] RFH - Journal corruption reports fom 8.2.1 users in Uy

2009-08-21 Thread Andrés Ambrois
On Friday 21 August 2009 05:10:21 am Tomeu Vizoso wrote:
 2009/8/21 Martin Langhoff martin.langh...@gmail.com:
  2009/8/21 Tomeu Vizoso to...@sugarlabs.org:
  Yes, though if we manage to get the logs dir of a machine just after
  the DS was lost, there's lots of chances we are going to be able to
 
  The ones on the ramdisk? :-(

 Is ~/.sugar/default/logs in the ramdisk? This would be the first time
 I hear about it.

 If it's like that, maybe Andres could modify a XO to have that dir in
 the nand and wait for it to happen?

Remember that Ceibal XOs have root access locked-down. And I recently found 
out that since the key-delegation stuff was implemented, we can't request 
developer keys. Not from OLPC at least, and LATU is not providing that service 
that I know...

I'll also try to flash an XO with 8.2.1 and try to reproduce. 

 Regards,

 Tomeu

  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

-- 
  -Andrés
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Is Project Ceibal violating the GNU General Public License?

2009-08-24 Thread Andrés Ambrois
On Monday 24 August 2009 10:11:54 am Walter Bender wrote:
 On Mon, Aug 24, 2009 at 3:48 AM, John Gilmoreg...@toad.com wrote:
  Re: [Sugar-devel] RFH - Journal corruption reports fom 8.2.1 users in Uy
 
  Remember that Ceibal XOs have root access locked-down. And I recently
  found out that since the key-delegation stuff was implemented, we can't
  request developer keys. Not from OLPC at least, and LATU is not
  providing that service that I know...
 
  Could someone please clarify this?

 According to Ceilbal (24-08-09):

 We have delivered developer keys in the past, and we will deliver them to
 the owner of the machine upon request.

 Therefore, I do not think that there is a violation of the GPL.

I wrote to Ceibal asking for information and this is what they replied:

Hola Andrés, 
Debido al sistema de seguridad incorporado en la XO, el Plan Ceibal no brinda 
la clave de desarrollador. Esto se debe, a que una persona con acceso a la 
clave podría desactivar la seguridad de la máquina.
 Cualquier otra consulta, no dudes en volver a comunicarte.

Translation:

Hello Andrés,

Because of the security system built into the XO, Plan Ceibal doesn't provide 
developer keys. This is because a person with access to the key could 
deactivate the security of the machine.
Don't hesitate in contacting us for any other questions. 

 -walter

  It sounds like Project Ceibal is explicitly violating the GNU General
  Public License on much or all of the software that it ships:
 
   *  It provides binaries without source code, and without a written
  offer of source code.
 
   *  It provides binaries in a physical form (laptop) which is
  protected against modification by the end-user, so that those
  users cannot replace the GPLv3-licensed software on the laptop
  with later versions.  More than 20 packages shipped are GPLv3
  licensed, as of 12 months ago, including the Coreutils (most
  shell commands), tar and cpio (used for software updates), and
  gettext (internationalization).  GPLv3 requires that the relevant
  passwords or keys must be supplied to the end user -- including
  both the developer key and the root password.
 
   *  Some programs are modified, but the modified versions are not
  marked to distinguish them from the original GPL-licensed
  programs.
 
  There are other less important violations as well (most are documented
  at bugs.laptop.org; search for GPL).
 
  I would be happy to learn that the children receiving these laptops
  have full access to source code, ability to upgrade their laptops
  at will, and can tell modified from unmodified software.  Please let
  me know what is really happening in the schools of Uruguay.
 
 John Gilmore
  ___
  Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel

-- 
  -Andrés
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Testing] first play with new XO 1.5 machines

2009-10-21 Thread Andrés Ambrois
On Wednesday 21 October 2009 06:41:54 pm Ed McNierney wrote:
 I also want to point out that in cases where 802.11s mesh operation is
 desirable, the Open802.11s stack (http://www.open80211s.org/) should
 be investigated.  There's no reason Open802.11s software can't be used
 to make an XO a Mesh Portal Point (MPP).  The only thing we're really
 losing in XO-1.5 is the ability of an XO to serve as a MPP in low-
 power mode, when the laptop is otherwise asleep.  It would be great to
 get that working someday, but not today.

Huge +1 on not reinventing the wheel and using upstream's capabilities for 
meshing*. AFAIK the only way to use the open11s support in the mac80211 stack 
on the XO-1 is with a thin firmware and the libertas_tf driver, is this option 
available for the new chip in the XO-1.5? I'm guessing this device also uses a 
fullmac driver. 

*: I am aware that OLPC's efforts in 11s predate proper support in mac80211 and 
thus were the only option. 

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

-- 
  -Andrés
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: wlan interface (was: first play with new XO 1.5 machines)

2009-10-23 Thread Andrés Ambrois
On Friday 23 October 2009 09:09:31 am Daniel Drake wrote:
 2009/10/23 Albert Cahalan acaha...@gmail.com:
  Thus, properly done, the XO labled C might have either of:
 
  a. wlan0 to reach A, and wlan1 to reach B (same hardware)
  b. wlan0, from which wlan0_0 and wlan0_1 are instantiated
 
 It can't do this, unless it has 2 independent clocks in the wifi
 hardware. I do not know of any hardware that does this.
 
 The issue is that A and B are both hosting their own networks, they
 are both beacon masters, spewing beacons based off their own clocks.
 
 C can either talk with A, by finding the beacons, adjusting its own
 clock to match. (at this point, any frames coming from B will be heard
 as noise)
 or it can adjust to B's clock, in order to speak to it (and everyone
 else who's synchronized to B). At this point, frames coming from A are
 just noise.

I agree. The radio and association limitations in wifi are not so easy to 
abstract away. 

A drop in replacement to 802.11s that might be worth looking at is batman-
adv[0]. It does proactive routing (in the spirit of Cerebro) at layer 2. 

[0] http://www.open-mesh.org/wiki/batman-adv

 Daniel
 

-- 
  -Andrés
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO 1.5 - CONTENTION WINDOW

2009-12-02 Thread Andrés Ambrois
On Wednesday 02 December 2009 10:49:38 am Martin Langhoff wrote:
 On Wed, Dec 2, 2009 at 1:32 PM, Daniel Drake d...@laptop.org wrote:
  Ok, and what about the documentation?
 
 Also - what does the firmware on the card do with that? Could it be
 overwritten by a DCW algorythm?

Are you sure that you're using a PHY mode with fixed bounds for the CW? The 
default values you suggest (31-1023) are for DCF. I think those are set by the 
AP in HCF. You could check if those values change in different environments 
(with an AP that properly supports those extensions) to test that.

Here's what 802.11-2007 says about the Hybrid Coordination Function:
The contention window limits aCWmin and aCWmax, from which the random
 backoff is computed, are not fixed per PHY, as with DCF, but are variable
 (contained in the MIB attribute tables dot11QAPEDCACWmin and
 dot11QAPEDCACWmax for an AP and in the MIB attribute tables
 dot11EDCATableCWmin and dot11EDCATableCWmax for a non-AP STA) and assigned
 by a management entity or by an AP.


 m
 

-- 
  -Andrés
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [IAEP] Mesh Dreams = OLSR

2010-08-24 Thread Andrés Ambrois
On Tuesday, August 24, 2010 11:26:23 am Chris Ball wrote:
 Hi Reuben,
 
 Consider the benefits of using open source software versus our
 closed source firmware and partnering with communities like
 Freifunk whose network is ~ 800 node, guifi.net is almost 10k
 nodes in Barcelona, Athens Wireless is 5k nodes.
 
 The fact that a custom mesh algorithm would have to run on the CPU --
 prohibiting any kind of idle-suspend -- makes it a non-starter for an
 XO deployment in my eyes.  Did you have any thoughts on this?

We (MontevideoLibre, a free wireless community network) have been using OLSR 
for a while now. And though the topology in a typical OLPC scenario is very 
different, we've talked about assembling an image running OLSRd for a while. 

Anyway, I dont have time for a full response to this thread right now, but I 
had a conversation with smithbone and silbe a while back that may be 
illustrative of the worse-case scenario in terms of power consumption:

aasilbe: I think a working PoC could gather a lot interest from 
deployments...
silbe aa: one thing to consider is the power draw. with libertas_tf, the 
host CPU needs to be powered on. 
aayes
aasilbe: do you have an idea of what that means in actual numbers?
aaperhaps smithbone has a guesstimate 
silbe aa: counter-question: are you thinking of running the protocol while 
the XO is powered off (screen off, everything in suspend with wake-on-WLAN) 
or just during regular operation?
silbe for the latter case, it might not make much of a difference, 
especially if automatic power management (automatic suspend) is disabled.
smithbone Running the system is going to cost you in the 5W range. 
silbe in the powered off case it's going to make a huge difference. I 
don't think it'll be able to run for more than 3h while there's any traffic.
aasilbe: one of the things I want to find out is the convergence time of 
the different options
silbe aa: i.e. the time until the network/mesh is stable?
aayes
silbe aa: if you were in europe, you might try getting funding from the EU 
for that ;)
aasilbe: also, BATMAN has a layer 2 kernel module, maybe we could make 
it aware of the PM state?
silbe they seem to pay some pretty sums for mesh research
 * aa migrates to Europe
aa:P
silbe aa: it should just integrate into the kernel PM QoS framework I 
cuppose, see Documentation/power/pm_qos_interface.txt
aasilbe: will do
silbe aa: oh, and some recent mail from me has a link to nice slides 
explaining the PM QoS framework
aasilbe, smithbone: do you guys know if wol would work with libertas_tf?
aasilbe: to sugar-devel?
silbe aa: no idea, sorry.
silbe aa: I think to de...@l.l.o
aasilbe: found it, thanks!
smithbone aa: which gen?
aasmithbone: XO-1
smithbone aa: on XO-1 the wakeup is generated by strobing a signal to the 
EC. So libertas_tf would need to support strobing that signal
aasmithbone: thanks a lot, is this documented somewhere?
aatoo bad the firmware is closed :(   
smithbone aa: no. because none of the systems you are talking about have 
open documentation
aasmithbone: I understand 
smithbone aa: But I can certainly tell someone what gpio on the wlan module 
to strobe and for how long.

-- 
  -Andrés


signature.asc
Description: This is a digitally signed message part.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[Server-devel] Password-less authentication with moodle

2008-10-03 Thread Andrés Ambrois
  Hello all!

  I am, together with Pablo Flores, working in preparing EduBlog for 
deployment in Ceibal (yay!). However, one of the big challenges ahead is 
deciding on the security infrastructure needed. So I've decided to consult the 
gurus at server-devel =) .

  The problem is not in finding novel or ultra-secure algorithms, but in easily 
deployable and usable mechanisms. The MAC authentication method, described in 
earlier threads, is an easy hack, but not very secure (MACs can be spoofed, 
etc), however I wonder if an auth plugin for moodle with this scheme has been 
implemented. 

  The other real solution that comes to mind would be TLS (SSL), maybe using 
the DSA SSH key generated in first-boot? I believe this would involved 
modifying Browse to use that file, and also gathering the XOs public keys 
manually and add them to the server, which is a logistic nightmare. I hope I'm 
wrong in this, could you advise me?

  Being password-less is one of the key concepts in the XO's design. And 
rightly so, for both usability reasons, and the logistic problem of handling 
lost/compromised passwords. So we need to try and stick to it as much as 
possible. 

  Cheers!
-- 
  -Andrés
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Password-less authentication with moodle

2008-10-04 Thread Andrés Ambrois
Hola Martin!

On Saturday 04 October 2008 09:22:11 Martin Langhoff wrote:
 On Fri, Oct 3, 2008 at 7:22 PM, Andrés Ambrois [EMAIL PROTECTED] 
wrote:
   I am, together with Pablo Flores, working in preparing EduBlog for
  deployment in Ceibal (yay!). However, one of the big challenges ahead is
  deciding on the security infrastructure needed. So I've decided to
  consult the gurus at server-devel =) .

 Hola Andres!

 - What's your timeframe?

The timeframe for our project is 5 weeks starting from last Wednesday, in 
which I need to cover the interface (Moodle and Wordpress theming), course 
configuration, authentication, modifying Write to enable blog posting, and 
document all this for a manual. 

 - Are the Ceibal machines registering with the Ceibal servers in any way?

 My understanding of the current security architecture in Ceibal is almost 
non-existent, as I'm not working in LATU, and it has been a black box for 
external developers. I realize this will seriously hamper any take at the 
authentication problem, but I guess it's clear that there's little I can 
accomplish in this sense from the timeframe above. 

However, I believe there will be someone exclusively working on the security 
of the system. I will make sure to point him/her to this thread on Monday when 
we meet. 

   The other real solution that comes to mind would be TLS (SSL), maybe
  using the DSA SSH key generated in first-boot? I believe this would
  involved modifying Browse to use that file, and also gathering the XOs
  public keys manually and add them to the server, which is a logistic
  nightmare. I hope I'm wrong in this, could you advise me?

 That is one of the paths we are exploring :-) with an additional tweak
 to the 'register' action that retrieves the self-signed cert of the
 server on the XO as a trusted cert, and gives the XS the cert of the
 XO.

 This of course needs a change in the register API - (minor) code
 changes on the XO core Sugar libs and in Browse.

I'm glad I wasn't that far off :). Are these required modifications documented 
somewhere?

 cheers,



 m

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