[Sugar-devel] [ASLO] Release Get Internet Archive Books-6

2010-06-28 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4194

Sugar Platform:
0.82 - 0.88

Download Now:
http://activities.sugarlabs.org/downloads/file/26960/get_ia_books-6.xo

Release notes:
Version 6 adds the option to download EPUBs from the Internet Archive as well 
as PDF's and DjVu's.  You should be aware that at this time the EPUBs from IA 
are not of the best quality.  Most contain OCR errors that have not been 
corrected.  For most users the DjVu option will still be the most useful.



Sugar Labs Activities
http://activities.sugarlabs.org

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


[Sugar-devel] [ASLO] Release Abacus-16

2010-06-28 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4293

Sugar Platform:
0.82 - 0.88

Download Now:
http://activities.sugarlabs.org/downloads/file/26963/abacus-16.xo

Release notes:
* added colored beads to decimal abacus and rods


Sugar Labs Activities
http://activities.sugarlabs.org

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


Re: [Sugar-devel] Schoolserver icon

2010-06-28 Thread Gary Martin
On 28 Jun 2010, at 23:57, Bernie Innocenti wrote:

>> FWIW There are some simple school house type icons that
>> could sugarise well, pretty much something like this very
>> quick shape, perhaps making sure it's not too church like.
>> There's other variations that can be flat top based, and/or
>> place a round clock face in the top section and a couple of
>> windows in the lower section. I could generate a few
>> versions around this theme and see what works for folks?
> 
> I'm ok with the one you posted, but I'm not a designer so I'll simply
> step back and enjoy the fight :-)

Here's a few more misc. plays around school building shape. Maybe I'm being too 
literal here and should stray more down the server/resource aspect, rather than 
a school aspect? Shout if you think one works better than others (or some 
specific feature):



Schoolserver icon ideas.pdf
Description: Adobe PDF document


Regards,
--Gary

> 
> No matter which one you end up selecting, we'll sneak a little Eye of
> Providence in it :-)
> 
> -- 
>   // Bernie Innocenti - http://codewiz.org/
> \X/  Sugar Labs   - http://sugarlabs.org/

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


[Sugar-devel] Sugar Digest 2010-06-28

2010-06-28 Thread Walter Bender
===Sugar Digest===

1. Between World Cup matches, I have had a busy, but fun-filled June.

The month began with POSSE Worcester, organized by Mel Chua. Mel,
Peter Robinson, and I spent five days with about a dozen computer
science professors from Johns Hopkins, Clark, Union, University of New
Hampshire, and Worcester State in a workshop that covered everything
you need to know to become a FOSS developer. We used Sugar as our
example and walked them through how to modify an activity: everything
from cloning a project on git.sugarlabs.org to requesting a merge to
updating the wiki. They really got into it and over the course of the
week, some significant patches were contributed to Abacus, Measure,
and Physics. It was a bit unsettling to have all of these CS
professors digging deeply into my code (Abacus), but in fact, they
taught me a lot. (I think we should recruit engineering faculty to
review patches). Mel organized a great week and I think the
participants will undoubtedly generate interest in their students in
FOSS and Sugar when classes resume in September.

At the end of the following week, I headed south. I made a quick stop
in Miami in order to pick up a visa for Paraguay. I spent four days in
Asunción and Caacupé with Bernie, Raul, Cecilia, and Paraguay Educa
team. I got a chance to catch up with some old friends and meet
face-to-face for the first time many people I had only met in IRC.
Caacupé, about one-hour east of the capital, is the site their pilot
deployment; I had a chance to visit two schools and meet many
teachers, students, mentors, and even some parents. (The parents were
attending a workshop at one of the schools where they were learning
about the Sugar Journal. They voiced one complaint: the children don't
give them enough time on their computers!) The children were quite
proficient with Sugar and it was integrated into many classroom
activities. The teachers weren't asking how to use the computer – they
had mastered that; rather they were discussing how they could best use
Sugar for learning. My one disappointment was observing a Scratch
project where the children were using sensor input to control their
animations. It was clear that they had not made the connection between
their actions in the physical world and the reactions of their
avatars. My hypothesis is that Scratch is abstracting away too much of
the detail. A quick demo of Measure made the connection much more
tangible. (I need to finish the rebase to GST-Mixer in order to get
Measure working again on the OLPC XO 1.0 hardware.) Over the weekend,
Raul and I watched futbol: Paraguay vs Slovakia. Whenever Paraguay
scored, the crowds in the street jumped up and down, shouting: "If you
are not jumping, you must be Argentine!" Between goals, we spent time
with Patica and the learning team discussing tactics for deeper
engagement into powerful ideas by teachers and students.

The following Monday, I gave a Turtle Art workshop to the teacher
facilitation team. We covered a lot of ground – they each prepared a
Turtle Art portfolio presentation of some Sugar project that they had
worked on previously. We explored the use of Turtle Art collaboration:
we created a solar system simulation where each planet was a turtle
shared from a separate laptop. (The children had been using Paint to
draw models of planetary orbits, hence it was an obvious example. We
discussed using Sugar to explore different representations and
consequently looked at the Abacus activity. I demonstrated how you
could represent the same number on different abacuses and in
discussion, we invented a new (to me) abacus, which lets you add and
subtract common fractions. (I implemented the "Caacupé" abacus in v15,
which I released today.)

A final story from Paraguay. Cecilia told me story of a young boy who
wanted to know what his sister was texting to her boy friend. He
couldn't read, so he transcribed the text to the Speak activity in
order to listen to her words.

That night I flew to Argentina. I spent Tuesday in Buenos Aires with
Kalil Nicholas, Claudia Urea, and Antonio Battro. Antonio was quite
taken with the Visual Match activity, which he appropriately renamed
"Dimensions". We met with the City of Buenos Aires ministry of
education, to whom I demonstrated Sugar. (One of the ministry
delegation had Sugar running in a virtual machine on his MacBook.) I
spent the afternoon watch Argentina play futbol will talking Sugar
with Gonzalo Odiard. Gonzalo and the rest of Sugar Labs Argentina have
been doing a great job of squashing bugs, enhancing activities, and,
as I was to find out later in the week, helping with the La Rioja
deployment. Gonzalo demoed Paint, which he had modified to take
advantage of the slide keys at the top of the XO keyboard: running
your finger along the slider changes the brush size. It was exactly
what I had imaged when we designed the membrane keyboard.

Tuesday night, I was in Montevideo; I stayed with Pablo Flores from
Ceibal Jam. Pablo live

Re: [Sugar-devel] [PATCH] Journal Volumes Backup and Restore

2010-06-28 Thread James Cameron
On Mon, Jun 28, 2010 at 05:21:39PM -0400, Martin Abente wrote:
> On Mon, 28 Jun 2010 16:13:33 -0400, Martin Langhoff
>  wrote:
> > On Mon, Jun 28, 2010 at 3:58 PM, Martin Abente
> >  wrote:
> >> Well, originally I added a XS backup and restore option (Journal
> >> Management) into the Control Panel. Even when it was not intended for
> >> upstreaming, I sent it to the mailing list, therefore a discussion
> >> started
> >> about where these backup and restore options should go. Finally, this
> >> idea
> >> of having the options in the resouces (volumes) palette was the most
> >> wanted.
> > 
> > By whom? ... what is the scenario where you need to click on the backup
> > button?
> > 
> 
> The ones that replied to the previous emails sent by Esteban Arias a few
> months ago, James Cameron, Bernie and myself.
> http://lists.sugarlabs.org/archive/sugar-devel/2010-April/023273.html

My expectation was that the child user would use backup daily, or more
frequently, and a full restore only if a laptop was reimaged or all
content was lost.

> >> Not yet, it does a full restore from the one that is available on the
> >> storage device.
> > 
> > What worries me with this is that it _destroys anything done since the
> > last backup_.
> 
> Yes, it is a problem to loose _some_ data. But it is a bigger problem to
> not being able to backup and restore, loosing _all_ data. For now this is
> the state of the art :)

I may not understand the design yet.

To lose all data sounds simple; child does backup of empty journal, child
fills journal with valuable content, child does restore.  Result empty
journal?

I think that could be solved by a merge restore.  This is just for
discussion, I'm not offering code or suggesting you defer your work just
for this.

Merge restore logic would be:

for each item in backup
if item is not in journal
attempt to restore it

Failure to proceed due to lack of disk space should be handled; by
advising the user that there is not enough available space to restore
the whole backup, and that only a portion of the backup was restored.

Being able to view the backup content in the journal would allow per
item restore.

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Schoolserver icon

2010-06-28 Thread Bernie Innocenti
El Mon, 28-06-2010 a las 21:36 +0100, Gary Martin escribió:

> A joke right? Something I missed from the early days?

No joke! Sugar Labs is actually a masonic lodge. Oops, now I'll have to
kill you.


> Any way,
> just incase not ;-b – the occult and also Masonic all seeing
> eye seem a very dangerous choice, not to mention the warning
> hazard triangle icon (now I do just about remember the no
> 'triangles' episode) :-)

I guess we'll have to change it to an eye in a circle, then! :-)


> FWIW There are some simple school house type icons that
> could sugarise well, pretty much something like this very
> quick shape, perhaps making sure it's not too church like.
> There's other variations that can be flat top based, and/or
> place a round clock face in the top section and a couple of
> windows in the lower section. I could generate a few
> versions around this theme and see what works for folks?

I'm ok with the one you posted, but I'm not a designer so I'll simply
step back and enjoy the fight :-)

No matter which one you end up selecting, we'll sneak a little Eye of
Providence in it :-)

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/

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


Re: [Sugar-devel] Python tutorial for Pippy

2010-06-28 Thread samir menon
"You could not have picked better words to say to a teacher (though
"here's a million dollars" would also be nice), so thank you. :)"

Your very welcome!

Just an idea on the last TODO in your program: Implementing multi-line programs:
Implement a gtk window that has a text input area so that the user can
format easily.

~Samir

On Monday, June 28, 2010, Dinko Galetic  wrote:
>
>
> On Mon, Jun 28, 2010 at 3:47 PM, samir menon  wrote:
>
>
> I have been looking for something like this for quite a while. I am going to 
> try to teach my little brother, (about 10) , to learn programming, and this 
> seems like the perfect way to do it.
> You could not have picked better words to say to a teacher (though "here's a 
> million dollars" would also be nice), so thank you. :)
>
> -I am on python 3.1, was this written in 2.6 or something?
>
>
> Yes, that's right (2.6), it's not a Windows/Linux thing.
> If you're interested in teaching your brother Python 3.x, lowercase() got 
> replaced with ascii_lowercase(), and "print something" now has to be 
> "print(something)". Python 2.6 supports both "print x" and "print(x)", 
> however I chose the former approach in my tutorial because it's a bit simpler 
> and I can postpone explaining functions a bit. I plan to show that "print(x)" 
> also works, but after the lesson on functions.
>  Other than that (by looking at your code) I see that this is an awesome 
> program!
>
>
> Glad to hear it. Stick around - I'll be posting the rest of my lessons when I 
> get enough thumbs-up on this one.
>
> Kind regards,
> Dinko Galetic
>
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [ASLO] Release Read-87

2010-06-28 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4028

Sugar Platform:
0.84 - 0.84

Download Now:
http://activities.sugarlabs.org/downloads/file/26962/read-87.xo

Release notes:
* This release fixes a problem with backwards-scrolling.


Sugar Labs Activities
http://activities.sugarlabs.org

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


Re: [Sugar-devel] [PATCH] Journal Volumes Backup and Restore

2010-06-28 Thread Martin Abente
On Mon, 28 Jun 2010 16:13:33 -0400, Martin Langhoff
 wrote:
> On Mon, Jun 28, 2010 at 3:58 PM, Martin Abente
>  wrote:
>> Well, originally I added a XS backup and restore option (Journal
>> Management) into the Control Panel. Even when it was not intended for
>> upstreaming, I sent it to the mailing list, therefore a discussion
>> started
>> about where these backup and restore options should go. Finally, this
>> idea
>> of having the options in the resouces (volumes) palette was the most
>> wanted.
> 
> By whom? ... what is the scenario where you need to click on the backup
> button?
> 

The ones that replied to the previous emails sent by Esteban Arias a few
months ago, James Cameron, Bernie and myself.
http://lists.sugarlabs.org/archive/sugar-devel/2010-April/023273.html

> [ The only one *I* know of is just before an upgrade... once a year? ]
>

I think regular backups are healthy and we should encourage kids to do
them.
NOTE: This is a backup to removable storage devices, not talking about the
automated xs backup.

>> Not yet, it does a full restore from the one that is available on the
>> storage device.
> 
> What worries me with this is that it _destroys anything done since the
> last backup_.
> 

Yes, it is a problem to loose _some_ data. But it is a bigger problem to
not being able to backup and restore, loosing _all_ data. For now this is
the state of the art :)

>> At first sight it seemed easy to just append data
> 
> It _is_ easy...
> 
>> to cover scenarios (Corner cases). Mostly the ones when you have to
>> consider the very few space available
> 
> But the "full restore" case also has to handle low-disk-space. What do
> you do when the data to restore does not fit in the disk? (For
> example, because the user has downloaded & installed large
> activities...)
> 

We have no complete solution for that problem, still working on it. 


Help in the form of working code is always welcome :)

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


[Sugar-devel] [PATCH] Add cpu and memory resource indicator to frame

2010-06-28 Thread anishmangal2002
This patch adds an icon to the frame, whose palette
menu displays the memory and cpu resources. For computing
free memory, the code reads the /proc/meminfo file (thanks
quozl) and for computing cpu usage, the code reads the
/proc/stat file.

The palette menu entries are only updated (in one second
intervals) when the palette menu is visible thus
possibly saving cpu cycles.

Signed-off-by: anishmangal2002 
---
 extensions/deviceicon/resources.py |  142 
 1 files changed, 142 insertions(+), 0 deletions(-)
 create mode 100644 extensions/deviceicon/resources.py

diff --git a/extensions/deviceicon/resources.py 
b/extensions/deviceicon/resources.py
new file mode 100644
index 000..5da55ef
--- /dev/null
+++ b/extensions/deviceicon/resources.py
@@ -0,0 +1,142 @@
+# Copyright (C) 2010 Activity Central (http://activitycentral.org/)
+# Author: Anish Mangal 
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+from gettext import gettext as _
+
+import logging
+import gobject
+import gtk
+import gconf
+
+from sugar.graphics.tray import TrayIcon
+from sugar.graphics.xocolor import XoColor
+from sugar.graphics.palette import Palette
+from sugar.graphics import style
+from jarabe.frame.frameinvoker import FrameWidgetInvoker
+
+class DeviceView(TrayIcon):
+
+FRAME_POSITION_RELATIVE = 500
+
+def __init__(self):
+icon_name = 'computer'
+
+client = gconf.client_get_default()
+color = XoColor(client.get_string('/desktop/sugar/user/color'))
+TrayIcon.__init__(self, icon_name=icon_name, xo_color=color)
+self.set_palette_invoker(FrameWidgetInvoker(self))
+self.connect('button-release-event', self.__button_release_event_cb)
+self.connect('expose-event', self.__expose_event_cb)
+
+def create_palette(self):
+palette = ResourcePalette(_('System Resources'))
+palette.set_group_id('frame')
+return palette
+
+def __button_release_event_cb(self, widget, event):
+return True
+
+def __expose_event_cb(self, *args):
+pass
+
+class ResourcePalette(Palette):
+
+def __init__(self, primary_text):
+Palette.__init__(self, label=primary_text)
+
+self.connect('popup', self.__popup_cb)
+self.connect('popdown', self.__popdown_cb)
+
+self.updating = False
+self.proc_stat_old = []
+self.proc_stat_new = []
+
+vbox = gtk.VBox()
+self.set_content(vbox)
+
+self._cpu_text = gtk.Label()
+vbox.pack_start(self._cpu_text, padding=10)
+self._cpu_text.show()
+self._cpu_bar = gtk.ProgressBar()
+self._cpu_bar.set_size_request(
+style.zoom(style.GRID_CELL_SIZE * 4), -1)
+vbox.pack_start(self._cpu_bar, padding=10)
+self._cpu_bar.show()
+
+self._memory_text = gtk.Label()
+vbox.pack_start(self._memory_text, padding=10)
+self._memory_text.show()
+self._memory_bar = gtk.ProgressBar()
+self._memory_bar.set_size_request(
+style.zoom(style.GRID_CELL_SIZE * 4), -1)
+vbox.pack_start(self._memory_bar, padding=10)
+self._memory_bar.show()
+
+vbox.show()
+gobject.timeout_add(1000, self.__timer_cb)
+
+def __getTimeList(self):
+statFile = file("/proc/stat", "r")
+timeList = statFile.readline().split(" ")[2:6]
+statFile.close()
+for i in range(len(timeList)) :
+timeList[i] = int(timeList[i])
+return timeList
+
+def __timer_cb(self):
+if self.updating:
+# Computing CPU usage statistics
+self.proc_stat_new = self.__getTimeList()
+
+for i in range(len(self.proc_stat_new)) :
+self.proc_stat_new[i] -= self.proc_stat_old[i]
+
+cpu_free = (self.proc_stat_new[len(self.proc_stat_new) - 1] * 
100.00 /
+sum(self.proc_stat_new))
+
+self._cpu_text.set_label('CPU free: %d%%' % cpu_free)
+self._cpu_text.show()
+self._cpu_bar.set_fraction(cpu_free/100.0)
+
+memory_free = self.__percentage_memory_available()
+self._memory_text.set_label('Memory free: %d%%' % memory_free)
+self._memory_text.show()
+self._memory_bar.set_fraction(memory_free/100.0)

Re: [Sugar-devel] Schoolserver icon

2010-06-28 Thread Gary Martin
On 28 Jun 2010, at 19:49, Bernie Innocenti wrote:

> El Mon, 28-06-2010 a las 14:25 -0400, Walter Bender escribió:
>> On Mon, Jun 28, 2010 at 2:20 PM, Bernie Innocenti  wrote:
>> There were some design proposals from a time long ago and far away
>> (2006, Pentagram) I believe.
> 
> In case we forgot what it looked like, I'd like to propose the attached
> one ;-)

A joke right? Something I missed from the early days? Any way, just incase not 
;-b – the occult and also Masonic all seeing eye seem a very dangerous choice, 
not to mention the warning hazard triangle icon (now I do just about remember 
the no 'triangles' episode) :-)

FWIW There are some simple school house type icons that could sugarise well, 
pretty much something like this very quick shape, perhaps making sure it's not 
too church like. There's other variations that can be flat top based, and/or 
place a round clock face in the top section and a couple of windows in the 
lower section. I could generate a few versions around this theme and see what 
works for folks?



Schoolserver.pdf
Description: Adobe PDF document


Regards,
--Gary

> -- 
>   // Bernie Innocenti - http://codewiz.org/
> \X/  Sugar Labs   - http://sugarlabs.org/
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel

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


Re: [Sugar-devel] [PATCH] Journal Volumes Backup and Restore

2010-06-28 Thread Martin Langhoff
On Mon, Jun 28, 2010 at 3:58 PM, Martin Abente
 wrote:
> Well, originally I added a XS backup and restore option (Journal
> Management) into the Control Panel. Even when it was not intended for
> upstreaming, I sent it to the mailing list, therefore a discussion started
> about where these backup and restore options should go. Finally, this idea
> of having the options in the resouces (volumes) palette was the most
> wanted.

By whom? ... what is the scenario where you need to click on the backup button?

[ The only one *I* know of is just before an upgrade... once a year? ]

> Not yet, it does a full restore from the one that is available on the
> storage device.

What worries me with this is that it _destroys anything done since the
last backup_.

> At first sight it seemed easy to just append data

It _is_ easy...

> to cover scenarios (Corner cases). Mostly the ones when you have to
> consider the very few space available

But the "full restore" case also has to handle low-disk-space. What do
you do when the data to restore does not fit in the disk? (For
example, because the user has downloaded & installed large
activities...)

cheers,


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


[Sugar-devel] [ASLO] Release Abacus-15

2010-06-28 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4293

Sugar Platform:
0.82 - 0.88

Download Now:
http://activities.sugarlabs.org/downloads/file/26961/abacus-15.xo

Release notes:
* added Caacupe abacus (add and subtract fractions)
* added Cuisenaire-Rods-like Abacus


Sugar Labs Activities
http://activities.sugarlabs.org

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


Re: [Sugar-devel] [PATCH] Journal Volumes Backup and Restore

2010-06-28 Thread Martin Abente
On Mon, 28 Jun 2010 15:11:04 -0400, Martin Langhoff
 wrote:
> Hi Martin,
> 
> great to see action on this front. Thanks for working on this.
> 
> I have a few questions
> 
>  - Why is the UI in the main Journal UI? A manual backup should be a
> very infrequent op. (And same with a "full" restore).
>

Well, originally I added a XS backup and restore option (Journal
Management) into the Control Panel. Even when it was not intended for
upstreaming, I sent it to the mailing list, therefore a discussion started
about where these backup and restore options should go. Finally, this idea
of having the options in the resouces (volumes) palette was the most
wanted. 

The arguments favoring this idea were based on user friendliness: It seems
easier and makes more sense to find those options in the same context of
the resource that provides them.

>  - Is the 'restore' option a 'full restore' or does it allow to browse
> existing backup snapshots?
> 

Not yet, it does a full restore from the one that is available on the
storage device. For the Schoolserver backup, we plan to let users choose
from the list of available backups, in the future.

> ...If it is a 'full restore', is it destructive? What does it do with
> documents that already exist but have been modified locally? What does
> it do with space concerns (ie: if the backup won't fit on disk) ?
> 

Yes, the entries added after the last backup will be lost.

At first sight it seemed easy to just append data, but there are many hard
to cover scenarios (Corner cases). Mostly the ones when you have to
consider the very few space available. So for the time being we don't merge
backups, still better than loosing all data :).

> cheers,
> 
> 
> 
> -- 
>  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
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Statistical data for download are not up to date

2010-06-28 Thread Aleksey Lim
On Mon, Jun 28, 2010 at 06:48:36PM +0200, Behavior Vehikel wrote:
> Hi,
> 
> the statistical data for download are not up to date.
> Who can fix this issue?
> 
> kind regards
> Thomas
> 
> # Fields: 
> [date;addons_downloaded;addons_in_use;addons_created;addons_updated;users_created;reviews_created;collections_created]
> 2010-06-27,0,37,0,0,4,0,0
> 2010-06-20,0,37,3,6,27,1,0
> 2010-06-13,0,37,0,3,34,3,1
> 2010-06-06,11171,595,3,14,44,0,0
> 2010-05-30,51759,568,4,13,38,1,3
> 2010-05-23,58118,1229,0,6,58,1,1

Thanks for the notice, should work for now.

-- 
Aleksey
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Journal Volumes Backup and Restore

2010-06-28 Thread Martin Langhoff
Hi Martin,

great to see action on this front. Thanks for working on this.

I have a few questions

 - Why is the UI in the main Journal UI? A manual backup should be a
very infrequent op. (And same with a "full" restore).

 - Is the 'restore' option a 'full restore' or does it allow to browse
existing backup snapshots?

...If it is a 'full restore', is it destructive? What does it do with
documents that already exist but have been modified locally? What does
it do with space concerns (ie: if the backup won't fit on disk) ?

cheers,


m

On Mon, Jun 28, 2010 at 3:01 PM, Martin Abente
 wrote:
> Add a basic backup and restore feature for the Sugar Journal.
> It provides:
>
> - Generic Backup and Restore dialog GUI.
> - Process manager class as an abstraction layer between the dialog and
>  backup/restore scripts. (Allowing to work with many backup and restore
>  technologies, using the same GUI, with no need for script rewrite).
> - Basic file system Volume Restore and Backup scripts implemented in Python.
> - New backup and restore options for journal volumes palettes.
>
> This patch is based on Esteban Arias (Plan Ceibal) Volume Backup and Restore
> patch, with a few changes:
>
> - Refactor original Backup dialog class into a generic dialog class.
> - Create specialized VolumeBackupDialog and VolumeRestoreDialog subclasses.
> - Rewrite backup and restore scripts in python for an easier sugar 
> interaction.
> - Add backup identification helpers to jarabe.journal.misc.
> ---
>  bin/Makefile.am                       |    4 +-
>  bin/journal-backup-volume             |   56 
>  bin/journal-restore-volume            |   65 +
>  src/jarabe/journal/Makefile.am        |    3 +-
>  src/jarabe/journal/misc.py            |   27 
>  src/jarabe/journal/processdialog.py   |  233 
> +
>  src/jarabe/journal/volumestoolbar.py  |    5 +-
>  src/jarabe/model/Makefile.am          |    3 +-
>  src/jarabe/model/processmanagement.py |   98 ++
>  src/jarabe/view/palettes.py           |   44 ++
>  10 files changed, 533 insertions(+), 5 deletions(-)
>  create mode 100644 bin/journal-backup-volume
>  create mode 100644 bin/journal-restore-volume
>  create mode 100644 src/jarabe/journal/processdialog.py
>  create mode 100644 src/jarabe/model/processmanagement.py
>
> diff --git a/bin/Makefile.am b/bin/Makefile.am
> index 05a9215..8cc87b5 100644
> --- a/bin/Makefile.am
> +++ b/bin/Makefile.am
> @@ -5,7 +5,9 @@ python_scripts =                \
>        sugar-install-bundle    \
>        sugar-launch            \
>        sugar-session           \
> -       sugar-ui-check
> +       sugar-ui-check          \
> +       journal-backup-volume           \
> +       journal-restore-volume
>
>  bin_SCRIPTS =                  \
>        sugar                   \
> diff --git a/bin/journal-backup-volume b/bin/journal-backup-volume
> new file mode 100644
> index 000..10bdba9
> --- /dev/null
> +++ b/bin/journal-backup-volume
> @@ -0,0 +1,56 @@
> +#!/usr/bin/env python
> +# Copyright (C) 2010, Paraguay Educa 
> +#
> +# This program is free software: you can redistribute it and/or modify
> +# it under the terms of the GNU General Public License as published by
> +# the Free Software Foundation, either version 3 of the License, or
> +# (at your option) any later version.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program.  If not, see .
> +#
> +
> +import os
> +import sys
> +import subprocess
> +import logging
> +
> +from sugar import env
> +#from sugar.datastore import datastore
> +
> +backup_identifier = sys.argv[2]
> +volume_path = sys.argv[1]
> +
> +if len(sys.argv) != 3:
> +    print 'Usage: %s  ' % sys.argv[0]
> +    exit(1)
> +
> +logging.debug('Backup started')
> +
> +backup_path = os.path.join(volume_path, 'backup', backup_identifier)
> +
> +if not os.path.exists(backup_path):
> +    os.makedirs(backup_path)
> +
> +#datastore.freeze()
> +
> +result = 0
> +try:
> +    cmd = ['tar', '-C', env.get_profile_path(), '-czf', \
> +           os.path.join(backup_path, 'datastore.tar.gz'), 'datastore']
> +
> +    subprocess.check_call(cmd)
> +
> +except Exception, e:
> +    logging.error('Backup failed: %s', str(e))
> +    result = 1
> +
> +#datastore.thaw()
> +
> +logging.debug('Backup finished')
> +exit(result)
> diff --git a/bin/journal-restore-volume b/bin/journal-restore-volume
> new file mode 100644
> index 000..3150fca
> --- /dev/null
> +++ b/bin/journal-restore-volume
> @@ -0,0 +1,65 @@
> +#!/usr/bin/env python
> +# Copyright (C) 2010, Paraguay Educa 
> +#
> +# This program is free software: you can redistribute it and/or modify
> 

Re: [Sugar-devel] [PATCH] Journal XS backup and restore

2010-06-28 Thread Martin Abente
The patch depends on this one
http://lists.sugarlabs.org/archive/sugar-devel/2010-June/025094.html
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Schoolserver icon

2010-06-28 Thread Martin Langhoff
On Mon, Jun 28, 2010 at 2:49 PM, Bernie Innocenti  wrote:
> In case we forgot what it looked like, I'd like to propose the attached
> one ;-)

Motion approved!



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
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [PATCH] Journal Volumes Backup and Restore

2010-06-28 Thread Martin Abente
Add a basic backup and restore feature for the Sugar Journal.
It provides:

- Generic Backup and Restore dialog GUI.
- Process manager class as an abstraction layer between the dialog and
  backup/restore scripts. (Allowing to work with many backup and restore
  technologies, using the same GUI, with no need for script rewrite).
- Basic file system Volume Restore and Backup scripts implemented in Python.
- New backup and restore options for journal volumes palettes.

This patch is based on Esteban Arias (Plan Ceibal) Volume Backup and Restore
patch, with a few changes:

- Refactor original Backup dialog class into a generic dialog class.
- Create specialized VolumeBackupDialog and VolumeRestoreDialog subclasses.
- Rewrite backup and restore scripts in python for an easier sugar interaction.
- Add backup identification helpers to jarabe.journal.misc.
---
 bin/Makefile.am   |4 +-
 bin/journal-backup-volume |   56 
 bin/journal-restore-volume|   65 +
 src/jarabe/journal/Makefile.am|3 +-
 src/jarabe/journal/misc.py|   27 
 src/jarabe/journal/processdialog.py   |  233 +
 src/jarabe/journal/volumestoolbar.py  |5 +-
 src/jarabe/model/Makefile.am  |3 +-
 src/jarabe/model/processmanagement.py |   98 ++
 src/jarabe/view/palettes.py   |   44 ++
 10 files changed, 533 insertions(+), 5 deletions(-)
 create mode 100644 bin/journal-backup-volume
 create mode 100644 bin/journal-restore-volume
 create mode 100644 src/jarabe/journal/processdialog.py
 create mode 100644 src/jarabe/model/processmanagement.py

diff --git a/bin/Makefile.am b/bin/Makefile.am
index 05a9215..8cc87b5 100644
--- a/bin/Makefile.am
+++ b/bin/Makefile.am
@@ -5,7 +5,9 @@ python_scripts =\
sugar-install-bundle\
sugar-launch\
sugar-session   \
-   sugar-ui-check
+   sugar-ui-check  \
+   journal-backup-volume   \
+   journal-restore-volume
 
 bin_SCRIPTS =  \
sugar   \
diff --git a/bin/journal-backup-volume b/bin/journal-backup-volume
new file mode 100644
index 000..10bdba9
--- /dev/null
+++ b/bin/journal-backup-volume
@@ -0,0 +1,56 @@
+#!/usr/bin/env python
+# Copyright (C) 2010, Paraguay Educa 
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see .
+#
+
+import os
+import sys
+import subprocess
+import logging
+
+from sugar import env
+#from sugar.datastore import datastore
+
+backup_identifier = sys.argv[2]
+volume_path = sys.argv[1]
+
+if len(sys.argv) != 3:
+print 'Usage: %s  ' % sys.argv[0]
+exit(1)
+
+logging.debug('Backup started')
+
+backup_path = os.path.join(volume_path, 'backup', backup_identifier)
+
+if not os.path.exists(backup_path):
+os.makedirs(backup_path)
+
+#datastore.freeze()
+
+result = 0
+try:
+cmd = ['tar', '-C', env.get_profile_path(), '-czf', \
+   os.path.join(backup_path, 'datastore.tar.gz'), 'datastore']
+
+subprocess.check_call(cmd)
+
+except Exception, e:
+logging.error('Backup failed: %s', str(e))
+result = 1
+
+#datastore.thaw()
+
+logging.debug('Backup finished')
+exit(result)
diff --git a/bin/journal-restore-volume b/bin/journal-restore-volume
new file mode 100644
index 000..3150fca
--- /dev/null
+++ b/bin/journal-restore-volume
@@ -0,0 +1,65 @@
+#!/usr/bin/env python
+# Copyright (C) 2010, Paraguay Educa 
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see .
+#
+
+import os
+import sys
+import shutil
+import logging
+import subprocess
+
+from sugar import env
+#from sugar.datastore import datastore
+
+backup_identifier = sys.argv[2]
+volume_path = sys.argv[1]
+
+if len(sys.argv) != 3:
+print 'Usage: %s  ' % sys.a

[Sugar-devel] [PATCH] Journal XS backup and restore

2010-06-28 Thread Martin Abente
Include a new journal volumes toolbar icon. The icon represents
the schoolserver. The icon palette provides a backup and restore
options.
---
 src/jarabe/desktop/favoritesview.py  |2 +
 src/jarabe/journal/processdialog.py  |   26 ++
 src/jarabe/journal/volumestoolbar.py |   32 +++-
 src/jarabe/view/palettes.py  |   39 +-
 4 files changed, 97 insertions(+), 2 deletions(-)

diff --git a/src/jarabe/desktop/favoritesview.py 
b/src/jarabe/desktop/favoritesview.py
index aca945a..a311b52 100644
--- a/src/jarabe/desktop/favoritesview.py
+++ b/src/jarabe/desktop/favoritesview.py
@@ -42,6 +42,7 @@ from jarabe.view import launcher
 from jarabe.model.buddy import BuddyModel
 from jarabe.model import shell
 from jarabe.model import bundleregistry
+from jarabe.journal.journalactivity import get_journal
 from jarabe.journal import misc
 
 from jarabe.desktop import schoolserver
@@ -328,6 +329,7 @@ class FavoritesView(hippo.Canvas):
 alert.props.msg = _('You are now registered ' \
 'with your school server.')
 self._my_icon.remove_register_menu()
+get_journal()._volumes_toolbar.setup_xs_button()
 
 ok_icon = Icon(icon_name='dialog-ok')
 alert.add_button(gtk.RESPONSE_OK, _('Ok'), ok_icon)
diff --git a/src/jarabe/journal/processdialog.py 
b/src/jarabe/journal/processdialog.py
index 05bc14b..cb29030 100644
--- a/src/jarabe/journal/processdialog.py
+++ b/src/jarabe/journal/processdialog.py
@@ -231,3 +231,29 @@ class VolumeRestoreDialog(ProcessDialog):
 self._title.set_markup('%s' % _('Restore'))
 self._message.set_text(_('Journal content will be restored from %s') % 
volume_path)
 
+class XSBackupDialog(ProcessDialog):
+
+def __init__(self, xs_hostname):
+ProcessDialog.__init__(self, 'journal-backup', [])
+self._resetup_information(xs_hostname)
+
+def _resetup_information(self, xs_hostname):
+self._start_message = _('Please wait, saving journal content to %s') % 
xs_hostname
+self._finished_message = _('The journal content has been saved.')
+
+self._title.set_markup('%s' % _('Backup'))
+self._message.set_text(_('Journal content will be saved to %s') % 
xs_hostname)
+
+class XSRestoreDialog(ProcessDialog):
+
+def __init__(self, xs_hostname):
+ProcessDialog.__init__(self, 'journal-restore', [])
+self._resetup_information(xs_hostname)
+
+def _resetup_information(self, xs_hostname):
+self._start_message = _('Please wait, restoring journal content from 
%s') % xs_hostname
+self._finished_message = _('The journal content has been restored.')
+
+self._title.set_markup('%s' % _('Restore'))
+self._message.set_text(_('Journal content will be restored from %s') % 
xs_hostname)
+
diff --git a/src/jarabe/journal/volumestoolbar.py 
b/src/jarabe/journal/volumestoolbar.py
index 2e64fe2..311e38a 100644
--- a/src/jarabe/journal/volumestoolbar.py
+++ b/src/jarabe/journal/volumestoolbar.py
@@ -22,12 +22,14 @@ import gio
 import gtk
 import gconf
 
+from sugar.graphics.toolbutton import ToolButton
 from sugar.graphics.radiotoolbutton import RadioToolButton
+from sugar.graphics.icon import Icon
 from sugar.graphics.palette import Palette
 from sugar.graphics.xocolor import XoColor
 
 from jarabe.journal import model
-from jarabe.view.palettes import JournalVolumePalette
+from jarabe.view.palettes import JournalVolumePalette, JournalXSPalette
 
 class VolumesToolbar(gtk.Toolbar):
 __gtype_name__ = 'VolumesToolbar'
@@ -52,6 +54,7 @@ class VolumesToolbar(gtk.Toolbar):
 
 self.connect('destroy', self.__destroy_cb)
 
+self.setup_xs_button()
 gobject.idle_add(self._set_up_volumes)
 
 def __destroy_cb(self, widget):
@@ -59,6 +62,21 @@ class VolumesToolbar(gtk.Toolbar):
 volume_monitor.disconnect(self._mount_added_hid)
 volume_monitor.disconnect(self._mount_removed_hid)
 
+def setup_xs_button(self):
+client = gconf.client_get_default()
+backup_url = client.get_string('/desktop/sugar/backup_url')
+
+if backup_url:
+xs_button = XSButton()
+xs_button.set_palette(JournalXSPalette(backup_url))
+#xs_button.props.group = self._volume_buttons[0]
+xs_button.show()
+
+self._volume_buttons.append(xs_button)
+position = len(self._volume_buttons) - 1
+self.insert(xs_button, position)
+self.show()
+
 def _set_up_volumes(self):
 volume_monitor = gio.volume_monitor_get()
 self._mount_added_hid = \
@@ -180,3 +198,15 @@ class JournalButton(BaseButton):
 color = XoColor(client.get_string('/desktop/sugar/user/color'))
 self.props.xo_color = color
 
+class XSButton(ToolButton):
+def __init__(self):
+ToolButton.__init__(self)
+self.set_icon('computer')
+
+   

Re: [Sugar-devel] Schoolserver icon

2010-06-28 Thread Bernie Innocenti
El Mon, 28-06-2010 a las 14:25 -0400, Walter Bender escribió:
> On Mon, Jun 28, 2010 at 2:20 PM, Bernie Innocenti  wrote:
> There were some design proposals from a time long ago and far away
> (2006, Pentagram) I believe.

In case we forgot what it looked like, I'd like to propose the attached
one ;-)

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/
<>___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] SPEAK for Haitian Creole

2010-06-28 Thread Aleksey Lim
On Mon, Jun 28, 2010 at 11:27:20AM -0400, Walter Bender wrote:
> CCing Sugar devel.
> 
> On Mon, Jun 28, 2010 at 11:18 AM, Michel DeGraff  wrote:
> > Greetings Walter,
> >
> > I hope this email will find you well---and keeping cool!
> >
> > I am now involved in a project at an elementary school in Haiti that's 
> > making what I think are the most progressive uses of XOs to date!
> >
> > One thing, among others, that I'd like to help with at the school is to 
> > bring them a version of SPEAK on the XOs that can correctly pronounce 
> > Haitian Creole.
> >
> > It seems that Google Translate already uses eSpeak modules for Haitian 
> > Creole, and the result is relatively decent.
> >
> > Can you advise me on how I could get these Haitian Creole eSpeak modules 
> > ported on the XO?

There is no need in special treatment in Speak activity to pick up new
eSpeak languages, you need only update espeak in your distribution...
But I don't see any mentions in eSpeak sources about Haitian Creole,
better to ask eSpeak people on http://espeak.sourceforge.net/.

> Step One is to post a ticket (bugs.sugarlabs.org) to request an
> "enhancement". There is a "component" for Speak. Any background
> material -- links to the specific modules you've identified would be
> helpful.
> 
> regards.
> 
> -walter
> >
> > It would be so wonderful if  the Kreyòl-speaking kids can also use SPEAK on 
> > the XOs. That could be used as a boost for their learning of reading and 
> > writing in Kreyòl.
> >
> > I very much look forward to hearing from you.  Thank you in advance!
> >
> >                          -michel.
> > 
> > Michel DeGraff
> > MIT Linguistics & Philosophy
> > 77 Massachusetts Ave
> > Cambridge MA 02139
> > degr...@mit.edu
> > http://web.mit.edu/linguistics/people/faculty/degraff
> > 
> >
> >
> 
> 
> 
> -- 
> Walter Bender
> Sugar Labs
> http://www.sugarlabs.org
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
> 

-- 
Aleksey
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Schoolserver icon

2010-06-28 Thread Walter Bender
On Mon, Jun 28, 2010 at 2:20 PM, Bernie Innocenti  wrote:
> Hello,
>
> we don't seem to have an appropriate icon for the schoolserver in
> sugar-artwork. What would you recommend?
>
> We're using it in the contect of backup/restore to schoolserver, but in
> the future it should probably be used in the network neighborhood to
> access services provided by the schoolserver.

There were some design proposals from a time long ago and far away
(2006, Pentagram) I believe.

-walter

> --
>   // Bernie Innocenti - http://codewiz.org/
>  \X/  Sugar Labs       - http://sugarlabs.org/
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



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


[Sugar-devel] Schoolserver icon

2010-06-28 Thread Bernie Innocenti
Hello,

we don't seem to have an appropriate icon for the schoolserver in
sugar-artwork. What would you recommend?

We're using it in the contect of backup/restore to schoolserver, but in
the future it should probably be used in the network neighborhood to
access services provided by the schoolserver.

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/

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


[Sugar-devel] sugar-shell

2010-06-28 Thread Kevin Mauricio Benavides Castro
hola a todos lo de la lista he observado que en algunas ocasiones, en
algunas XO cuando los niños habre una actividad no la carga y mas bien les
aparece en la parte de la vista hogar y en la parte de donde esta el diario
sale la actividad como que si estuviera iniciada, si coloco el puntero
justamente ahi me sale sugar-shell

en otras he observado que cuando intentas instalar la ultima version de
TortugArte v.88 da el mismo problema del mensaje de sugar-shell

esto es la primera vez que observo este error alguien ya le ha pasado antes.


-- 
Abrazoss..

One Laptop Per Child - http://wiki.laptop.org/go/User:Kevin.benavides
--
Voluntary sugarlabs
Implementation of SOAS
http://wiki.sugarlabs.org/go/User:Kevin.benavides
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Statistical data for download are not up to date

2010-06-28 Thread Behavior Vehikel
Hi,

the statistical data for download are not up to date.
Who can fix this issue?

kind regards
Thomas

# Fields: 
[date;addons_downloaded;addons_in_use;addons_created;addons_updated;users_created;reviews_created;collections_created]
2010-06-27,0,37,0,0,4,0,0
2010-06-20,0,37,3,6,27,1,0
2010-06-13,0,37,0,3,34,3,1
2010-06-06,11171,595,3,14,44,0,0
2010-05-30,51759,568,4,13,38,1,3
2010-05-23,58118,1229,0,6,58,1,1


-- 
http://digital-defect.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Cleaning up XO like never was used

2010-06-28 Thread Martin Langhoff
On Mon, Jun 28, 2010 at 10:30 AM, Guillermo Narvaez  wrote:
> once registered, the xo hide the 'register' option on the user menu,
> now I need to leave it ready for use. Removing the ~/.sugar directory
> is useful but i need that XO 'forget' it registration.

Hi Guillermo,

can you tell us a bit more of background on why you are trying to
unregister? If it's for demo / testing, rm ~/.sugar and restarting
will work.

cheers,


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


Re: [Sugar-devel] SPEAK for Haitian Creole

2010-06-28 Thread Walter Bender
CCing Sugar devel.

On Mon, Jun 28, 2010 at 11:18 AM, Michel DeGraff  wrote:
> Greetings Walter,
>
> I hope this email will find you well---and keeping cool!
>
> I am now involved in a project at an elementary school in Haiti that's making 
> what I think are the most progressive uses of XOs to date!
>
> One thing, among others, that I'd like to help with at the school is to bring 
> them a version of SPEAK on the XOs that can correctly pronounce Haitian 
> Creole.
>
> It seems that Google Translate already uses eSpeak modules for Haitian 
> Creole, and the result is relatively decent.
>
> Can you advise me on how I could get these Haitian Creole eSpeak modules 
> ported on the XO?

Step One is to post a ticket (bugs.sugarlabs.org) to request an
"enhancement". There is a "component" for Speak. Any background
material -- links to the specific modules you've identified would be
helpful.

regards.

-walter
>
> It would be so wonderful if  the Kreyòl-speaking kids can also use SPEAK on 
> the XOs. That could be used as a boost for their learning of reading and 
> writing in Kreyòl.
>
> I very much look forward to hearing from you.  Thank you in advance!
>
>                          -michel.
> 
> Michel DeGraff
> MIT Linguistics & Philosophy
> 77 Massachusetts Ave
> Cambridge MA 02139
> degr...@mit.edu
> http://web.mit.edu/linguistics/people/faculty/degraff
> 
>
>



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


Re: [Sugar-devel] Cleaning up XO like never was used

2010-06-28 Thread Luke Faraone
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/28/2010 10:30 AM, Guillermo Narvaez wrote:
> Hi list!
> 
> once registered, the xo hide the 'register' option on the user menu,
> now I need to leave it ready for use. Removing the ~/.sugar directory
> is useful but i need that XO 'forget' it registration.

I'm confused. Removing ~/.sugar will remove any record of the
registration on the Laptop. Is that not happening for you?

- -- 
Luke Faraone
http://luke.faraone.cc/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkwou8gACgkQtrC51grHAgZ+PACglRkBA71WtW3QWBqqcBI+RTMX
RFAAnAlpuUgAMK0D+vh1NYkY39ylOx95
=jtqR
-END PGP SIGNATURE-

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


[Sugar-devel] Cleaning up XO like never was used

2010-06-28 Thread Guillermo Narvaez
Hi list!

once registered, the xo hide the 'register' option on the user menu,
now I need to leave it ready for use. Removing the ~/.sugar directory
is useful but i need that XO 'forget' it registration.

How can I do that?

Guillermo Narváez
Area: Servidores Escuela

Programa "Joaquin Victor Gonzalez"
La Rioja | Argentina
IRC: irc.freenode.org #olpc-larioja
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Python tutorial for Pippy

2010-06-28 Thread Dinko Galetic
On Mon, Jun 28, 2010 at 3:47 PM, samir menon  wrote:

> I have been looking for something like this for quite a while. I am going
> to try to teach my little brother, (about 10) , to learn programming, and
> this seems like the perfect way to do it.


You could not have picked better words to say to a teacher (though "here's a
million dollars" would also be nice), so thank you. :)

-I am on python 3.1, was this written in 2.6 or something?
>

Yes, that's right (2.6), it's not a Windows/Linux thing.
If you're interested in teaching your brother Python 3.x, lowercase() got
replaced with ascii_lowercase(), and "print something" now has to be
"print(something)". Python 2.6 supports both "print x" and "print(x)",
however I chose the former approach in my tutorial because it's a bit
simpler and I can postpone explaining functions a bit. I plan to show that
"print(x)" also works, but after the lesson on functions.


> Other than that (by looking at your code) I see that this is an awesome
> program! [?]
>

Glad to hear it. Stick around - I'll be posting the rest of my lessons when
I get enough thumbs-up on this one.

Kind regards,
Dinko Galetic
<<330.gif>>___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Python tutorial for Pippy

2010-06-28 Thread samir menon
I have been looking for something like this for quite a while. I am going to
try to teach my little brother, (about 10) , to learn programming, and this
seems like the perfect way to do it. I have been learning python myself and
was very intriuged (sp?) by your code. However, when I went to run it, I
encountered a few problems: (BTW, I am on a windows machine, should I try
running it on my XO?)
-The function lowercase() ... is that in an older version of python?
-I am on python 3.1, was this written in 2.6 or something?

Other than that (by looking at your code) I see that this is an awesome
program! [?]

~Samir

On Sun, Jun 27, 2010 at 8:13 AM, Dinko Galetic wrote:

> Hello everyone,
>
> I'm currently working on a Python tutorial for Pippy as part of my GSOC
> project.
> I've written several lessons and am now wrapping them in Python code to
> make them interactive. I've attached a prototype of what I'm trying to
> accomplish and I'm hoping for your reviews (it's also available in my Pippy
> branch).
>
> I imagined the lessons being put in /data/tutorial/ and that they are
> accessed the same way Pippy examples are. Each such file would just have a
> few lines of comments to explain what the lesson is about and how to use it,
> and "import lesson, lesson.run() ". The lesson.py files would be in
> /library/pippy/tutorial/ or somewhere similar.
>
> Comments on ANY part of it would be greatly appreciated, even if it's just
> a suggestion to use a different variable name in the examples the learner
> will see, or to (no matter how slightly) modify the way something is
> explained. It's really important to teach programming as clearly as
> possible, IMO.
>
> Kind regards,
> Dinko
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
<<330.gif>>___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Keep error Write 60

2010-06-28 Thread Martin Langhoff
Hi David,

I agree on your concern about the bug. Very important.

One thing to note however is that the 'keep' button is very different
from a 'save' button in conventional software.

- Sugar activities save automatically (frequently, and then when you close it).

- The 'keep' button is to "save as a different document" --
potentially with a different name. (see the recent discussion about
it)

In short, what I am saying is that the bug you are hitting might be
slightly different from what you expect,



m


On Sun, Jun 27, 2010 at 12:54 AM, David Leeming
 wrote:
> I would like to find out if others can reproduce this error. It seems a quite 
> fundamental thing to want to do, i.e. save/Keep some work that was developed 
> collaboratively using Write. I am therefore unsure whether it's just 
> something with me. But I have come across this before in different 
> situations. I'll open a ticket if it is indeed a bug.
>
> David
>
>
> -Original Message-
> From: sugar-devel-boun...@lists.sugarlabs.org 
> [mailto:sugar-devel-boun...@lists.sugarlabs.org] On Behalf Of Kevin Mark
> Sent: Sunday, 27 June 2010 1:41 p.m.
> To: sugar-devel@lists.sugarlabs.org
> Subject: Re: [Sugar-devel] Keep error Write 60
>
> On Sun, Jun 27, 2010 at 12:25:24PM +1100, David Leeming wrote:
>> I am doing some training for people using G1G1 XO-1 with Write 60 (the latest
>> stable version according to the OLPC wiki)
>>
>>
>>
>> I want to share a table, have all participants enter something, then save it.
>>
>>
>>
>> In practice I get “Keep Error” whatever I try and the inputs by participants
>> cannot be saved either on the sharing XO or those sharing. I tried renaming 
>> and
>> saving on both categories but no luck. Renaming, the renamed file does not 
>> even
>> appear in the journal.
>>
>>
>>
>> Version 63 is listed on the Activities/G1G1 page, but it does not load in my
>> XOs – tries to load but fails.
>>
>>
>>
>>
>>
>> I’ve seen this before.
>>
>>
>>
>> David Leeming
>
> version 60 is the current sugar 0.82 version
> version 63 is the current sugar 0.84 version
> as listed on activities.sugarlabs.org
>
>
> --
> |  .''`.  == Debian GNU/Linux ==.| http://kevix.myopenid.com..|
> | : :' :     The Universal OS| mysite.verizon.net/kevin.mark/.|
> | `. `'   http://www.debian.org/.| http://counter.li.org [#238656]|
> |___`-Unless I ask to be CCd,.assume I am subscribed._|
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



-- 
 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
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [GSoC] [Patch] Sugar Smolt Control Panel Integration

2010-06-28 Thread Sascha Silbe
Excerpts from Sebastian Dziallas's message of Sun Jun 27 21:07:11 +0200 2010:

> I've been working on an integration of Smolt
> (https://fedorahosted.org/smolt/) into Sugar as part of my GSoC. The
Nice!

> The repository lives here
> (http://git.sugarlabs.org/projects/sugar/repos/sugar-smolt) and
A quick look doesn't show any major mistakes (take that as praise ;) ).
There are a few minor style issues; pylint + pep8 might catch some of
the easy ones (like EOL spaces and naming conventions for constants).

Some questions I had:
- Why do you recommend to delete the profile (including UUID) after
  submission? Isn't one of the purposes of smolt support to be able
  to help individual users with hardware trouble (which would require
  knowing the UUID of the user)?
- Is the privacy policy really large enough that we need to destroy the
  widget even while the section view is active? (If section views are
  kept in memory even after they got closed, that should be fixed rather
  than worked around).

Suggestions:
- Only show the section if smolt is actually installed (not all distros
  have it). Might need support on the Sugar side as this check is
  currently hardcoded for the keyboard and power sections. The latter
  one even checks for /ofw, but that's stuff for the OHM support thread,
  not this one.
- Don't store the handler ids of the GTK callbacks if you don't use them.
  We don't need to keep a reference in our code to protect them from
  garbage collection.
- Maybe deactivate the Delete button if no profile is present? (Submitting
  a second time can be useful so that button should always be active).
- Assuming smoltSendProfile is synchronous (i.e. doesn't finish until
  sending the profile has either been finished successfully or failed),
  you should run it in the background. The Sugar shell is currently a
  single process, so running synchronously will block everything.
- Check for smolt errors (rc, stderr) and relay them to the user.


> I marked the ticket as r?, so a review would be appreciated, too.
Sending the patch to the mailing list makes it easier to review, so you'll
get more feedback that way.
My config is rather complicated because of the email address scheme I use,
but maybe it shows you how to automate everything so sending the patch to
the ML is as simple as typing a single git command. For patches that might
need to be revised before they can be committed I use TopGit.
"git rebase -i" is nice as well, but only works if you don't publish your
repository.

This is my ~/.gitconfig :

[user]
email = sascha-...@silbe.org
name = Sascha Silbe
[url "gitori...@git.sugarlabs.org:"]
pushInsteadOf = git://git.sugarlabs.org/
[alias]
send-to-ml-multi = "!git send-email -s --annotate --summary 
--cover-letter --add-header=\"Reply-To: Sascha Silbe 
\""
send-to-ml-single = "!git send-email -s -p --stat 
--add-header=\"Reply-To: Sascha Silbe \""
tg-send-to-ml-single = "!tg mail -s \"-p --stat 
--add-header=\\\"Reply-To: Sascha Silbe \\\"\""
[sendemail]
from = Sascha Silbe 
chainreplyto = false
signedoffcc = false
suppressfrom = true
confirm = always
[color]
diff = auto

And this is (part of) my .git/config for sugar:

[format]
headers = Mail-Followup-To: 
[sendemail]
to = sugar-devel 
envelopesender = sascha-ml-ui-sugar-de...@silbe.org


Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/


signature.asc
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Keep error Write 60

2010-06-28 Thread Tomeu Vizoso
On Sun, Jun 27, 2010 at 06:54, David Leeming
 wrote:
> I would like to find out if others can reproduce this error. It seems a quite 
> fundamental thing to want to do, i.e. save/Keep some work that was developed 
> collaboratively using Write. I am therefore unsure whether it's just 
> something with me. But I have come across this before in different 
> situations. I'll open a ticket if it is indeed a bug.

Errors when saving should never happen, can you file a bug with logs attached?

http://wiki.sugarlabs.org/go/BugSquad/Get_Logs

Thanks,

Tomeu

> David
>
>
> -Original Message-
> From: sugar-devel-boun...@lists.sugarlabs.org 
> [mailto:sugar-devel-boun...@lists.sugarlabs.org] On Behalf Of Kevin Mark
> Sent: Sunday, 27 June 2010 1:41 p.m.
> To: sugar-devel@lists.sugarlabs.org
> Subject: Re: [Sugar-devel] Keep error Write 60
>
> On Sun, Jun 27, 2010 at 12:25:24PM +1100, David Leeming wrote:
>> I am doing some training for people using G1G1 XO-1 with Write 60 (the latest
>> stable version according to the OLPC wiki)
>>
>>
>>
>> I want to share a table, have all participants enter something, then save it.
>>
>>
>>
>> In practice I get “Keep Error” whatever I try and the inputs by participants
>> cannot be saved either on the sharing XO or those sharing. I tried renaming 
>> and
>> saving on both categories but no luck. Renaming, the renamed file does not 
>> even
>> appear in the journal.
>>
>>
>>
>> Version 63 is listed on the Activities/G1G1 page, but it does not load in my
>> XOs – tries to load but fails.
>>
>>
>>
>>
>>
>> I’ve seen this before.
>>
>>
>>
>> David Leeming
>
> version 60 is the current sugar 0.82 version
> version 63 is the current sugar 0.84 version
> as listed on activities.sugarlabs.org
>
>
> --
> |  .''`.  == Debian GNU/Linux ==.| http://kevix.myopenid.com..|
> | : :' :     The Universal OS| mysite.verizon.net/kevin.mark/.|
> | `. `'   http://www.debian.org/.| http://counter.li.org [#238656]|
> |___`-Unless I ask to be CCd,.assume I am subscribed._|
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel