[sugar] July 21, Sucrose 0.81.5 Tarballs Due

2008-07-20 Thread Marco Pesenti Gritti
Dear maintainers,

the next development release is tomorrow the 21th July. Please provide 
source code
tarballs by the end of tomorrow for the following modules:

http://wiki.sugarlabs.org/go/ReleaseTeam/Roadmap#Glucose_Modules 
http://wiki.sugarlabs.org/go/ReleaseTeam/Roadmap#Glucose_Modules
http://wiki.sugarlabs.org/go/ReleaseTeam/Roadmap#Fructose_Modules 
http://wiki.sugarlabs.org/go/ReleaseTeam/Roadmap#Fructose_Modules

Please announce them as explained here:

http://wiki.sugarlabs.org/go/ReleaseTeam#Module_release 
http://wiki.sugarlabs.org/go/ReleaseTeam#Module_release

Thanks,
Marco
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Using threads in an Activity

2008-07-20 Thread Tomeu Vizoso
On Sun, Jul 20, 2008 at 4:26 AM, Shikhar [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to use threads in my activity.  However, the UI locks up
 while the thread runs. Actually, it is somewhat strange what happens:
 the thread is already initialized and running, waiting on a Queue for a
 work request. After I make a request, this is when the UI locks up
 (although the request completes)

 I have tried both gtk.gdk.threads_init() and gobject.threads_init() in
 my activity initialization before I call super

I think you need to do it earlier, in the module scope.

HTH,

Tomeu
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Using threads in an Activity

2008-07-20 Thread Erik Blankinship
Here is some code which runs multiple threads successfully on an xo.  Look
for ServerThread:

http://mediamods.com/public-svn/map-activity/Map.activity/map.py

On Sat, Jul 19, 2008 at 10:26 PM, Shikhar [EMAIL PROTECTED] wrote:

 Hi,

 I am trying to use threads in my activity.  However, the UI locks up
 while the thread runs. Actually, it is somewhat strange what happens:
 the thread is already initialized and running, waiting on a Queue for a
 work request. After I make a request, this is when the UI locks up
 (although the request completes)

 I have tried both gtk.gdk.threads_init() and gobject.threads_init() in
 my activity initialization before I call super

 What am I missing?

 Hope not being very inane...

 Thanks,

 Shikhar http://lists.laptop.org/listinfo/sugar

___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Design Question

2008-07-20 Thread Bobby Powers
On Sat, Jul 19, 2008 at 7:19 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote:
 Works quite well here in a MP with last joyride. Just did some light
 testing, though.

I've also tested it (lightly) on 3 machines running Joyride ~2170.

 Tomeu

 On Sat, Jul 19, 2008 at 1:06 PM, Walter Bender [EMAIL PROTECTED] wrote:
 Not good news. I don't recall that anything should have changed
 between B4 and the C series that would have impacted Record. I'll have
 to check it out on more machines...

 -walter

 On Sat, Jul 19, 2008 at 1:14 AM, Gary C Martin [EMAIL PROTECTED] wrote:
 On 19 Jul 2008, at 00:18, Walter Bender wrote:

 (Now that we have a reasonably stable joyride-with a working Record
 activity again-I'll try to get a quick user study pulled together in
 Peru on this topic by someone less bias than myself.)

 Hmmm, not convinced Record-55 is working well enough yet (Joyride-2174),
 unless it's just failing on my B4 hardware. I get everything from a black
 feed, to a green/purple stripy feed. Not managed to actually record anything
 with it yet. Doesn't seem to help launching Record first after a reboot and
 with no other activities (think that was one of the open bugs).

just did that (boot then launch record) and it worked alright for me
(on a MP machine).

bobby

 --Gary


 ___
 Sugar mailing list
 Sugar@lists.laptop.org
 http://lists.laptop.org/listinfo/sugar

 ___
 Sugar mailing list
 Sugar@lists.laptop.org
 http://lists.laptop.org/listinfo/sugar

___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Autosave in 8.2.0?

2008-07-20 Thread Marco Pesenti Gritti
On Sun, Jul 20, 2008 at 5:44 PM, Bert Freudenberg [EMAIL PROTECTED] wrote:
 Thanks for not answering,

Hmm? Both Tomeu and me answered.

http://lists.laptop.org/pipermail/devel/2008-July/016914.html
http://lists.laptop.org/pipermail/devel/2008-July/016951.html

 and not updating the API doc,

The time I can devote to OLPC is *very* limited these days and I had
no time until today to even check this API was working properly... I
just finished up the python Activity bits and I have a patch up for
review. I will try to update the doc on monday.

 and me having
 to dig through Sugar patches to find out how this works.

 I updated the doc:
 http://wiki.laptop.org/go/Low-level_Activity_API#D-Bus_Methods
 ===
org.laptop.Activity.SyncData()
Called when the laptop is about to shutdown, reboot, or suspend. The
 activity must save its state in the datastore.
 ===
 Apparently this does not send a reason for having to sync - IMHO
 suspend is not as severe a reason as impending shutdown/reboot so an
 activity might want to choose to not save on suspend if suspends are
 as frequent as we anticipate.

This code never went in actually... See the mails I referenced.

Marco
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Using threads in an Activity

2008-07-20 Thread Hemant Goyal
Hi Shikar,

You might want to look at how James Simmons uses threads in his ReadEtexts
Activity to do speech synthesis using a thread too..

http://dev.laptop.org/git?p=activities/readetexts;a=blob;f=ReadEtextsActivity.py;h=c8c7086a4dd9448a2f81b96150dcb551c6d5d217;hb=HEAD

Around line 56 or so...

Hope it helps :)

Best,
Hemant
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Using threads in an Activity

2008-07-20 Thread Shikhar
Thank you for all the replies, I fixed the problem by simplifying things 
a little, the code examples helped :-)
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Autosave in 8.2.0?

2008-07-20 Thread Tomeu Vizoso
On Sun, Jul 20, 2008 at 5:44 PM, Bert Freudenberg [EMAIL PROTECTED] wrote:
 Am 17.07.2008 um 07:37 schrieb Bert Freudenberg:

 Am 17.07.2008 um 00:10 schrieb Tomeu Vizoso:

 Marco has added a session manager to Sugar (in 8.2.0) that takes care
 of telling activities to save their work because the system is being
 shut down. Haven't verified if this is complete and working. Have
 you,
 Marco? If so, this would also take care of the case where kids shut
 down before closing all running activities first.


 How does this work from an activity's pov?

 - Bert -


 Thanks for not answering, and not updating the API doc, and me having
 to dig through Sugar patches to find out how this works.

Bert, you should know better than others how things are here. We
cannot manage to do the things we know that must be done, much less we
can do those properly. If I was in any regular job, I would limit
myself to do what I can, and do it right. Here we just cannot behave
like that.

You are right to be frustrated by this situation, but please don't ask
us to do more than what is in our hands. If you know anyone who would
like to join us in this craziness, please point them to
http://www.laptop.org/en/jobs.shtml .

Regards,

Tomeu
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Design Question

2008-07-20 Thread Brian Jordan
+1 for ring view... but as an every-activity-on-your-computer ring,
rather than by default having nothing shown, by default have every
activity shown.


On Fri, Jul 18, 2008 at 4:53 PM, Greg Smith [EMAIL PROTECTED] wrote:
 Hi All,

 Can I get a quick +1/-1 on this question related to
 http://dev.laptop.org/ticket/7331

 The new Home View in 8.2.0 will have three available styles. We need to
 pick one to default on first upgrade or install.

 Choices are:
 http://wiki.laptop.org/go/Image:Home_Freeform_View8.2.png
 http://wiki.laptop.org/go/Image:Home_Ring_View8.2.png
 http://wiki.laptop.org/go/Image:Home_List_View8.2.png

 from: http://wiki.laptop.org/go/Release_Notes/8.2.0

 Vote for your favorite as default first exposure to OX and let's see
 if we are close to consensus...

 Votes from teachers and kids count double :-)

 Thanks,

 Greg S



 ___
 Sugar mailing list
 Sugar@lists.laptop.org
 http://lists.laptop.org/listinfo/sugar

___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


[sugar] Record-55 issue was B4 hardware failure (Was: Design Question)

2008-07-20 Thread Gary C Martin
On 20 Jul 2008, at 13:40, Bobby Powers wrote:

 On Sat, Jul 19, 2008 at 7:19 AM, Tomeu Vizoso  
 [EMAIL PROTECTED] wrote:
 Works quite well here in a MP with last joyride. Just did some light
 testing, though.

 I've also tested it (lightly) on 3 machines running Joyride ~2170.

 Tomeu

 On Sat, Jul 19, 2008 at 1:06 PM, Walter Bender [EMAIL PROTECTED] 
  wrote:
 Not good news. I don't recall that anything should have changed
 between B4 and the C series that would have impacted Record. I'll  
 have
 to check it out on more machines...

 -walter

 On Sat, Jul 19, 2008 at 1:14 AM, Gary C Martin  
 [EMAIL PROTECTED] wrote:
 On 19 Jul 2008, at 00:18, Walter Bender wrote:

 (Now that we have a reasonably stable joyride-with a working  
 Record
 activity again-I'll try to get a quick user study pulled  
 together in
 Peru on this topic by someone less bias than myself.)

 Hmmm, not convinced Record-55 is working well enough yet  
 (Joyride-2174),
 unless it's just failing on my B4 hardware. I get everything from  
 a black
 feed, to a green/purple stripy feed. Not managed to actually  
 record anything
 with it yet. Doesn't seem to help launching Record first after a  
 reboot and
 with no other activities (think that was one of the open bugs).

 just did that (boot then launch record) and it worked alright for me
 (on a MP machine).

 bobby

Thanks for all the feedback.

OK, after a lot of testing and looking through logs I finally  
accidently stumbled on the problem. It seems to be a HW fault on my  
B4. Perhaps a dry solder joint, cracked pcb or camera component not  
seated correctly. If I squeeze the right side of the screen, just  
below the camera lense, Record-55 starts displaying the video image,  
sometimes blank, sometimes green/purple, sometimes back to normal.  
Managed to successfully recorded a video clip while the image was good.

I'm reasonably handy with a soldering iron so I'll open up the unit  
and see if I can see the specific cause. Is there a specific place I  
should report this HW issue incase it is more than single an unlucky  
occurrence?

--Gary


___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Design Question

2008-07-20 Thread Marco Pesenti Gritti
On Sun, Jul 20, 2008 at 10:14 PM, Brian Jordan [EMAIL PROTECTED] wrote:
 +1 for ring view... but as an every-activity-on-your-computer ring,
 rather than by default having nothing shown, by default have every
 activity shown.

You should never have nothing in the ring by default. If you
reproduced such a case, it's a bug and it should be reported.

Thanks,
Marco
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Design Question

2008-07-20 Thread Alexander Ortner
+1 for the ring


(i am new to open source, so please be patient with me)

i know this question doesn't really belong here, but: why was the sugar UI
changed? can i find a discussion about this anywhere? the new version lost
the frame, didn't it? at least it'S not there in my sugar jhbuild env.

regards,

ali
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Record-55 issue was B4 hardware failure (Was: Design Question)

2008-07-20 Thread John Watlington

Take a look at:
http://wiki.laptop.org/go/ 
XO_Troubleshooting_AV#Errors_communicating_with_the_camera

The majority of these problems are due to a latch on the flex cable  
connector coming loose.
If you disassemble the laptop, and find that it was due to another  
source, pleased either
add it to the guide or let me know.

Cheers,
wad

On Jul 20, 2008, at 5:40 PM, Gary C Martin wrote:

 On 20 Jul 2008, at 13:40, Bobby Powers wrote:

 On Sat, Jul 19, 2008 at 7:19 AM, Tomeu Vizoso
 [EMAIL PROTECTED] wrote:
 Works quite well here in a MP with last joyride. Just did some light
 testing, though.

 I've also tested it (lightly) on 3 machines running Joyride ~2170.

 Tomeu

 On Sat, Jul 19, 2008 at 1:06 PM, Walter Bender  
 [EMAIL PROTECTED]
 wrote:
 Not good news. I don't recall that anything should have changed
 between B4 and the C series that would have impacted Record. I'll
 have
 to check it out on more machines...

 -walter

 On Sat, Jul 19, 2008 at 1:14 AM, Gary C Martin
 [EMAIL PROTECTED] wrote:
 On 19 Jul 2008, at 00:18, Walter Bender wrote:

 (Now that we have a reasonably stable joyride-with a working
 Record
 activity again-I'll try to get a quick user study pulled
 together in
 Peru on this topic by someone less bias than myself.)

 Hmmm, not convinced Record-55 is working well enough yet
 (Joyride-2174),
 unless it's just failing on my B4 hardware. I get everything from
 a black
 feed, to a green/purple stripy feed. Not managed to actually
 record anything
 with it yet. Doesn't seem to help launching Record first after a
 reboot and
 with no other activities (think that was one of the open bugs).

 just did that (boot then launch record) and it worked alright for me
 (on a MP machine).

 bobby

 Thanks for all the feedback.

 OK, after a lot of testing and looking through logs I finally
 accidently stumbled on the problem. It seems to be a HW fault on my
 B4. Perhaps a dry solder joint, cracked pcb or camera component not
 seated correctly. If I squeeze the right side of the screen, just
 below the camera lense, Record-55 starts displaying the video image,
 sometimes blank, sometimes green/purple, sometimes back to normal.
 Managed to successfully recorded a video clip while the image was  
 good.

 I'm reasonably handy with a soldering iron so I'll open up the unit
 and see if I can see the specific cause. Is there a specific place I
 should report this HW issue incase it is more than single an unlucky
 occurrence?

 --Gary


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

___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] pulsing icon code move from sugar to sugar-toolkit?

2008-07-20 Thread Marco Pesenti Gritti
On Sun, Jul 20, 2008 at 4:34 AM, Martin Dengler
[EMAIL PROTECTED] wrote:
 1) whether anyone thinks this is too invasive to get in to Sucrose
   0.82 / OLPC 8.2.0; and

Yeah, it sounds too invasive to me, I'd rather put some good thinking
and land it in the next release cycle. What user visible feature does
it allow to implement?

Marco
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


[sugar] Trac workflow

2008-07-20 Thread Marco Pesenti Gritti
Hello,

I noticed several inconsistencies in the way we deal with tickets,
which makes working with trac harder than it should be. Here is an
attempt to describe the workflow from the Sugar point of view:

1 Developer looks for the first time at a ticket. If the problem is
obvious, switch action to code, otherwise to diagnose.
2 Developer diagnose the problem, describe it and switch action to code.
3 Developer writes a patch, submit it for review per
http://wiki.sugarlabs.org/go/DevelopmentTeam/CodeReview, switch action
to review.
5 Reviewer gives r+, action is still review.
6 Developer check in the patch in git and switch action to add to build.
7 Module maintainer releases a new version or build a snapshot and
switches all the fixed tickets to test in build.
8 Developer tests in build and switch action to finalize.

Can you think of any problem with this? (I'm sure there are side
cases, I'm just trying to address the common case here).

Marco
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] pulsing icon code move from sugar to sugar-toolkit?

2008-07-20 Thread Martin Dengler
On Mon, Jul 21, 2008 at 12:45:16AM +0200, Marco Pesenti Gritti wrote:
 On Sun, Jul 20, 2008 at 4:34 AM, Martin Dengler
 [EMAIL PROTECTED] wrote:
  1) whether anyone thinks this is too invasive to get in to Sucrose
0.82 / OLPC 8.2.0; and
 
 Yeah, it sounds too invasive to me

Just to point out: it is a one line code change in icon.py and then
moving (and refactoring, but that can be deferred) code from sugar's
pulsingicon.py to sugar-toolkit's pulsingicon.py (using from
sugar.graphics.pulsingicon import * to keep sugar's
shell.view.pulsingicon exported symbols unchanged).

 What user visible feature does it allow to implement?

#6995 ( http://dev.laptop.org/ticket/6995 ) - move mesh icon to the
 frame, and its concomitant make AP and mesh icons pulse and
 otherwise consistent with Mesh/Neighborhood view's icons work.

 Marco

Martin


pgpWw6tXLwHbW.pgp
Description: PGP signature
___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar


Re: [sugar] Design Question

2008-07-20 Thread Bert Freudenberg

Am 20.07.2008 um 14:14 schrieb Alexander Ortner:

 +1 for the ring


 (i am new to open source, so please be patient with me)

 i know this question doesn't really belong here, but: why was the  
 sugar UI changed? can i find a discussion about this anywhere? the  
 new version lost the frame, didn't it? at least it'S not there in my  
 sugar jhbuild env.

The former Alt short cuts are Alt-Shift now.

- Bert -


___
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar