[Sugar-devel] Joke Machine question

2010-12-07 Thread David Leeming
I'm using Joke Machine 11 on an XO-1 os852 v/ 10.1.2

 

I want to share joke books via the server by uploading and downloading, and
also via a flashdrive. 

 

Should this be possible?

 

In the first case when I download the file that was uploaded from the
Journal (a Joke Machine activity record containing a Joke book that I want
to share), the file type is lost and there is no way to load it.

 

In the second case, I try dragging and dropping the same into a flash drive
but nothing is copied over.

 

I may have missed some conceptual thing about how it is supposed to be used.

 

 

David Leeming

Solomon Islands Rural Link 



 

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


Re: [Sugar-devel] [PATCH] fix journal scan of external media, dev.laptop.org #10140

2010-12-07 Thread Simon Schampijer

On 12/07/2010 12:13 AM, James Cameron wrote:

On Mon, Dec 06, 2010 at 10:05:43AM +0100, Simon Schampijer wrote:

Small nitpick from me: use os.path.join instead of str methods to
concatenate paths.

self._pending_files.append(os.path.join(dir_path, entry))


Yes, I saw that too, but the existing code uses

for entry in dirs:
if entry.startswith('.'):
continue
full_path = dir_path + '/' + entry

and trying to change code unnecessarily is how defects are introduced,
as has already been seen.

I also don't like the idea of doing changes for portability unless they
can be tested on alternate platforms.

The same pattern occurs in extensions/cpsection/language/model.py,
src/jarabe/model/network.py, src/jarabe/model/shell.py, and
src/sugar/activity/activityservice.py if you'd like to change it.
Activities InfoSlicer, Read, and TamTam are also afflicted.


Ok, patches welcome :)


For the patch title I would prefer something like "Make scanning of
storage devices more robust OLPC #10140", is slightly more
descriptive.


Right.


Acked-By: Simon Schampijer


Thanks.



Great, can you please push it? /me wants to do a new 0.84 release.

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


Re: [Sugar-devel] [DESIGN] Messages notification

2010-12-07 Thread Walter Bender
On Mon, Dec 6, 2010 at 10:45 PM, Gary Martin  wrote:
> Hi Martin,
>
> On 23 Nov 2010, at 17:23, Martin Abente wrote:
>
>> Awesome, let me know whenever you got something to share :)
>
> Just wanted to pass on the wiki page I've been working on. I'd like to 
> generate more example mockups covering the devices frame edge (easy), and the 
> buddy frame edge (more complicated, though we could use this edge just for 
> arrival/departure/buddy-event, but it might be possible to have it cover 
> 'bubble chat' as per Eben's previous hopes):
>
>        http://wiki.sugarlabs.org/go/Design_Team/Proposals/Notifications
>
> Feedback/thoughts appreciated.
>
> Regards,
> --Gary
>

I like both approaches, actually. The first, with the badges, closely
associates the notification with its context and the corner history
let's you get an overview. What if the corner history were instead
added to the bottom of the frame as another system status tool and the
badges were used as per the example. (and perhaps we could add a 'send
a notification' submenu to the friends icons on the Frame as well).

-walter

>> On Mon, Nov 22, 2010 at 5:36 PM, Gary C Martin  
>> wrote:
>> Hi Martin,
>>
>> Just wanted to give you a heads up that I have a slightly different design 
>> coming together for notifications.
>>
>> After further, more detailed, work the frame corner notification history 
>> palette idea is not coming together so well. I've switched to mockups that 
>> actually badge the existing icons in the frame, and add the notification 
>> messages to the end of their existing pop-up palettes. It holds truer (I 
>> think) to the original HIG and previous mockups of Eben's intent for 
>> notifications. I'll try and get the set of new images uploaded to the wiki 
>> later this week for folks to review.
>>
>> Regards,
>> --Gary
>>
>> On 17 Nov 2010, at 19:17, Martin Abente wrote:
>>
>> > Change the "want" for "need" and we have:
>> >
>> > "When there is something they _need_ to know"
>> >
>> > And that is exactly the same reason why we are already using the Icon 
>> > notifications and the same reason why we are already using Alert widgets 
>> > all over sugar (outside activities), and there are still more cases that 
>> > we don't do because we simply don't have this feature fully implemented 
>> > yet.
>> >
>> > That's all i got.
>> >
>> > Abrazos, :)
>> >
>> > On Wed, Nov 17, 2010 at 3:27 PM, Martin Langhoff 
>> >  wrote:
>> > On Wed, Nov 17, 2010 at 1:10 PM, David Farning  wrote:
>> > > This patch has a place in Dextrose.  Dextrose is looking at the
>> > > question, "How can we provide support staff the necessary information
>> > > to effectively fix and/or report problems to a higher level of service
>> > > and support?"
>> >
>> > Let's not jump to conclusions.
>> >
>> > Can this be limited to... when the user _wants_ it?
>> >
>> >
>> >
>> >
>> > 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 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


Re: [Sugar-devel] Problem developing app

2010-12-07 Thread Rodrigo
I've made it! It is published under the GPL v.3.0 and accessible from git
in:
http://git.sugarlabs.org/hmouse

The problem still the same, I can't launch it from the activities ring, only
from terminal with sugar-launch command.

There is an explanation of what the program is in the folder /src/doc/es.
There is only in Spanish for now, I will be translating it to English soon.

I really appreciate your help. Obviously you are invited to make any other
suggest or code change to improve the development.
--
Rodrigo Pérez Fulloni



On Wed, Dec 1, 2010 at 1:13 PM, Gabriel Eirea  wrote:

> Rodrigo:
>
> Si esta aplicación tiene una licencia libre entonces deberías poner el
> código en git para que otros puedan ayudarte. Deberías discutir esto
> con tus jefes. En ceibalJAM! podemos ayudarte, venimos desarrollando
> aplicaciones para Sugar desde hace bastante tiempo (ceibaljam.org).
>
> Saludos,
>
> Gabriel
>
> 2010/12/1 Rodrigo :
> >> Is your source code uploaded to a git repository?
> >
> > No yet, the company I'm working for doesn't let me upload it until it's
> > finished :'(
> >>
> >> I'd suggest bringing up the Log Activit
> >
> >  I've done what you said, and seems to make more sense, but I can't get
> the
> > meaning anyway. I attach the log from the Log Activity.
> > What do you say?
> > Thank you
> > --
> > Rodrigo Pérez Fulloni
> >
> >
> > ___
> > 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] OLPC hosting global mapmaking event (Dec 27-31)

2010-12-07 Thread Holt
Beyond Boston's olpcMAP Sprint / Summit itself (previewed below, 
beautifying the 2-month old http://olpcMAP.net built entirely by 
volunteers) also watch for:


* How to Mash Up olpcMAP(s) into Your Own site/app
* Integrating OLPC/Sugarservice learning volunteers into Your Own 
community
* 20-30 confirmed participants (RSVP required) from around the US 
and beyond: http://wiki.laptop.org/go/OlpcMAP#Attendees
* Connecting with the actual OLPC/Sugar volunteers who coordinate 
in over 50 countries, each doing "God's Work" in their own way
* Deployments' facts+photos you've never seen, and how CMU Nick 
Doiron created this map now unleashing them
* New API & Data Model evolving: 
http://wiki.laptop.org/go/OlpcMAP/data-api

* Web 2.0 interfaces emerging: http://olpcMAP.net/community
* Marina Dzobnova's professional survey asking deployments, 
children, parents and teachers how THEY want themselves & their schools 
visually getting to know each others' accomplishments, on http://olpcMAP.net



Subject:OLPC hosting global mapmaking event
Date:   Tue, 7 Dec 2010 00:38:48 -0800 (PST)
From:   Nick Doiron 
To: CrisisCampBoston 


One Laptop Per Child's office in Cambridge is hosting an olpcMAP
Sprint / Summit from December 27th-31st.

  [http://saigonolpc.wordpress.com  ]
 [http://wiki.laptop.org/go/olpcMAP  ]

Topics will include:

* Digital mapping with the OLPC laptop, including offline maps
platform supporting GeoRSS and KML (formats of Ushahidi and Google
Earth)http://wiki.laptop.org/go/User:Ndoiron/OfflineMap

* Use ofhttp://olpcMAP.net  to map and network schools which use OLPC
laptops and the Sugar operating system.  The website and the laptops'
software are free and open source.

* Using the online map as a medium for photos, storytelling, and
updates from local communities around the world

OLPC has shipped two million laptops to schools around the world,
including Haiti, Afghanistan, and other crisis-stricken regions.
Educating students about the power of mapmaking and creating a
communications / content portal serve the long-term interests of
CrisisCommons.  There has also been discussion of adults using the
laptops to run Ushahidi and Sahana on a low-cost, low-power, and
resilient system.

Please RSVP if you would like to attend part of our map sprint.
Content-creation is going to be a major focus of December 28-29
events, so it would be great if some of the crisis mapping community
could be there.

Regards,
Nick Doiron
Civil Engineering Class of 2011
Carnegie Mellon University

--
You received this message because you are subscribed to the Google 
Groups "olpc-social" group.

To post to this group, send email to olpc-soc...@googlegroups.com.
To unsubscribe from this group, send email to 
olpc-social+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/olpc-social?hl=en.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Fwd: Problem developing app

2010-12-07 Thread James Simmons
I meant to copy my answer to Rodrigo to the list:

-- Forwarded message --
From: James Simmons 
Date: Tue, Dec 7, 2010 at 9:39 AM
Subject: Re: [Sugar-devel] Problem developing app
To: Rodrigo 


Rodrigo,

I've looked at your code and I see a couple of things that are
questionable.  First, your activity.info looks like this:

[Activity]
name = hMouse
service_name = org.teleton.ingenieria.hMouse
class = hMouse.hMouse
icon = activity-hMouse
activity_version = 1
license = GPLv3+
show_launcher = yes

Instead of class = you might try this:

exec = sugar-activity hMouse.hMouse

Second, you have these statements:

sys.path.insert(0, "lib/")
sys.path.insert(0, "/home/olpc/Activities/hMouse.activity/")
sys.path.insert(0, "/home/olpc/Activities/hMouse.activity/lib/")

These should not be necessary.  Everything in your Activity should be
either part of the normal Python path or contained in the XO bundle.
You're also hard coding paths that may not always exist.  If I test
your Activity using sugar-emulator, for instance, I won't have those
directories.

Another questionable thing is this in Procesador.py:

img = pygame.image.load("/home/olpc/Activities/hMouse.activity/help/camara.png")

The path to the image should be relative to the XO bundle location,
not an absolute path.  Check out my "Demoiselle" activity here:

http://git.sugarlabs.org/myo-sugar-activities-examples/mainline/trees/master/Making_Activities_Using_PyGame

It looks like your Activity interacts with the hardware in unusual
ways.  This may not be allowed by Rainbow, which is a kind of sandbox
used by Sugar.

James Simmons


On Tue, Dec 7, 2010 at 6:37 AM, Rodrigo  wrote:
> I've made it! It is published under the GPL v.3.0 and accessible from git
> in:
> http://git.sugarlabs.org/hmouse
>
> The problem still the same, I can't launch it from the activities ring, only
> from terminal with sugar-launch command.
> There is an explanation of what the program is in the folder /src/doc/es.
> There is only in Spanish for now, I will be translating it to English soon.
>
> I really appreciate your help. Obviously you are invited to make any other
> suggest or code change to improve the development.
> --
> Rodrigo Pérez Fulloni
>
>
> On Wed, Dec 1, 2010 at 1:13 PM, Gabriel Eirea  wrote:
>>
>> Rodrigo:
>>
>> Si esta aplicación tiene una licencia libre entonces deberías poner el
>> código en git para que otros puedan ayudarte. Deberías discutir esto
>> con tus jefes. En ceibalJAM! podemos ayudarte, venimos desarrollando
>> aplicaciones para Sugar desde hace bastante tiempo (ceibaljam.org).
>>
>> Saludos,
>>
>> Gabriel
>>
>> 2010/12/1 Rodrigo :
>> >> Is your source code uploaded to a git repository?
>> >
>> > No yet, the company I'm working for doesn't let me upload it until it's
>> > finished :'(
>> >>
>> >> I'd suggest bringing up the Log Activit
>> >
>> >  I've done what you said, and seems to make more sense, but I can't get
>> > the
>> > meaning anyway. I attach the log from the Log Activity.
>> > What do you say?
>> > Thank you
>> > --
>> > Rodrigo Pérez Fulloni
>> >
>> >
>> > ___
>> > 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


Re: [Sugar-devel] [DESIGN] Messages notification

2010-12-07 Thread Anish Mangal
On Tue, Dec 7, 2010 at 4:10 PM, Walter Bender  wrote:
> On Mon, Dec 6, 2010 at 10:45 PM, Gary Martin  
> wrote:
>> Hi Martin,
>>
>> On 23 Nov 2010, at 17:23, Martin Abente wrote:
>>
>>> Awesome, let me know whenever you got something to share :)
>>
>> Just wanted to pass on the wiki page I've been working on. I'd like to 
>> generate more example mockups covering the devices frame edge (easy), and 
>> the buddy frame edge (more complicated, though we could use this edge just 
>> for arrival/departure/buddy-event, but it might be possible to have it cover 
>> 'bubble chat' as per Eben's previous hopes):
>>
>>        http://wiki.sugarlabs.org/go/Design_Team/Proposals/Notifications
>>
>> Feedback/thoughts appreciated.
>>
>> Regards,
>> --Gary
>>
>
> I like both approaches, actually. The first, with the badges, closely
> associates the notification with its context and the corner history
> let's you get an overview. What if the corner history were instead
> added to the bottom of the frame as another system status tool and the
> badges were used as per the example. (and perhaps we could add a 'send
> a notification' submenu to the friends icons on the Frame as well).

Would it make sense to associate notifications with the different zoom
levels, viz. neighborhood, group, home, activity and perhaps associate
the badges with with their corresponding icons on the top left corner
of the frame?

>
> -walter
>
>>> On Mon, Nov 22, 2010 at 5:36 PM, Gary C Martin  
>>> wrote:
>>> Hi Martin,
>>>
>>> Just wanted to give you a heads up that I have a slightly different design 
>>> coming together for notifications.
>>>
>>> After further, more detailed, work the frame corner notification history 
>>> palette idea is not coming together so well. I've switched to mockups that 
>>> actually badge the existing icons in the frame, and add the notification 
>>> messages to the end of their existing pop-up palettes. It holds truer (I 
>>> think) to the original HIG and previous mockups of Eben's intent for 
>>> notifications. I'll try and get the set of new images uploaded to the wiki 
>>> later this week for folks to review.
>>>
>>> Regards,
>>> --Gary
>>>
>>> On 17 Nov 2010, at 19:17, Martin Abente wrote:
>>>
>>> > Change the "want" for "need" and we have:
>>> >
>>> > "When there is something they _need_ to know"
>>> >
>>> > And that is exactly the same reason why we are already using the Icon 
>>> > notifications and the same reason why we are already using Alert widgets 
>>> > all over sugar (outside activities), and there are still more cases that 
>>> > we don't do because we simply don't have this feature fully implemented 
>>> > yet.
>>> >
>>> > That's all i got.
>>> >
>>> > Abrazos, :)
>>> >
>>> > On Wed, Nov 17, 2010 at 3:27 PM, Martin Langhoff 
>>> >  wrote:
>>> > On Wed, Nov 17, 2010 at 1:10 PM, David Farning  wrote:
>>> > > This patch has a place in Dextrose.  Dextrose is looking at the
>>> > > question, "How can we provide support staff the necessary information
>>> > > to effectively fix and/or report problems to a higher level of service
>>> > > and support?"
>>> >
>>> > Let's not jump to conclusions.
>>> >
>>> > Can this be limited to... when the user _wants_ it?
>>> >
>>> >
>>> >
>>> >
>>> > 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 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
>



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


Re: [Sugar-devel] [DESIGN] Messages notification

2010-12-07 Thread Martin Langhoff
On Tue, Dec 7, 2010 at 5:40 AM, Walter Bender  wrote:
> I like both approaches, actually. The first, with the badges, closely
> associates the notification with its context and the corner history
> let's you get an overview.

I like the first approach, for the same reasons as Walter. Much more
than the corner alternative.

The corner is super-valuable -- it's the easiest location to hit with
a mouse/tp so let's preserve it, or use it for something uniquely
important.

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] [DESIGN] Messages notification

2010-12-07 Thread Martin Abente
The design looks great, and I like the fact that it attaches each
notification to its real context when there is a visible one (i,e an
activity, journal, battery device icon, etc).

How would it work with notifications that are not related to an activity or
with a visible context?

Possible use cases (examples):

* XS registration messages.
* Automatic updater messages.
* Sugar critical errors report.
* Institutional broadcast messages.
* Anything that simply requires displaying a message.


On Tue, Dec 7, 2010 at 12:45 AM, Gary Martin wrote:

> Hi Martin,
>
> On 23 Nov 2010, at 17:23, Martin Abente wrote:
>
> > Awesome, let me know whenever you got something to share :)
>
> Just wanted to pass on the wiki page I've been working on. I'd like to
> generate more example mockups covering the devices frame edge (easy), and
> the buddy frame edge (more complicated, though we could use this edge just
> for arrival/departure/buddy-event, but it might be possible to have it cover
> 'bubble chat' as per Eben's previous hopes):
>
>http://wiki.sugarlabs.org/go/Design_Team/Proposals/Notifications
>
> Feedback/thoughts appreciated.
>
> Regards,
> --Gary
>
> > On Mon, Nov 22, 2010 at 5:36 PM, Gary C Martin <
> garycmar...@googlemail.com> wrote:
> > Hi Martin,
> >
> > Just wanted to give you a heads up that I have a slightly different
> design coming together for notifications.
> >
> > After further, more detailed, work the frame corner notification history
> palette idea is not coming together so well. I've switched to mockups that
> actually badge the existing icons in the frame, and add the notification
> messages to the end of their existing pop-up palettes. It holds truer (I
> think) to the original HIG and previous mockups of Eben's intent for
> notifications. I'll try and get the set of new images uploaded to the wiki
> later this week for folks to review.
> >
> > Regards,
> > --Gary
> >
> > On 17 Nov 2010, at 19:17, Martin Abente wrote:
> >
> > > Change the "want" for "need" and we have:
> > >
> > > "When there is something they _need_ to know"
> > >
> > > And that is exactly the same reason why we are already using the Icon
> notifications and the same reason why we are already using Alert widgets all
> over sugar (outside activities), and there are still more cases that we
> don't do because we simply don't have this feature fully implemented yet.
> > >
> > > That's all i got.
> > >
> > > Abrazos, :)
> > >
> > > On Wed, Nov 17, 2010 at 3:27 PM, Martin Langhoff <
> martin.langh...@gmail.com> wrote:
> > > On Wed, Nov 17, 2010 at 1:10 PM, David Farning 
> wrote:
> > > > This patch has a place in Dextrose.  Dextrose is looking at the
> > > > question, "How can we provide support staff the necessary information
> > > > to effectively fix and/or report problems to a higher level of
> service
> > > > and support?"
> > >
> > > Let's not jump to conclusions.
> > >
> > > Can this be limited to... when the user _wants_ it?
> > >
> > >
> > >
> > >
> > > 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 mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel