[Sugar-devel] Update on recent outreach activities in Universities

2010-12-13 Thread Arjun Sarwal
Hi all,

Anish and I have recently been putting in efforts to reach out to University
Students here in New Delhi in an effort to interest more and more talented
programmers to join Sugar development efforts.

We observed that there is interest and enthusiasm for students to contribute
to such projects, when they get to know about them, however there is less
awareness. After the initial outreach/presentation, we have coached them on
some of the basics eg getting Fedora up and running, installing
sugar-jhbuild (some are still facing problems), IRC, asking questions on the
mailing lists etc

The first batch of 5-7 students who've been interested regularly, will soon
be joining the list and might be asking questions, as well as looking for
projects to contribute to :)

-Arjun


-- 
Arjun Sarwal
ar...@laptop.org
a...@sugarlabs.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Fwd: Problem developing app

2010-12-13 Thread Rodrigo Pérez Fulloni
Hi, this is my first activity and I made it following your manual (it's
excellent), and I can't find something different in my activity. I've tried
changing the location as you said, but nothing. Now I tried eliminating
every import, reducing the activity to minimum, only the GUI and the problem
persist! So I think the imports could be discarded as possible cause.
I'm going crazy!!! I don't know what is happening.
Any idea?
Thanks
--
Rodrigo Pérez Fulloni


On Wed, Dec 8, 2010 at 5:41 PM, James Simmons  wrote:

> Rodrigo,
>
> If you look at my book example on using PyGame you'll see that I
> recommend copying the sugargame directory into the root directory of
> the Activity:
>
> http://en.flossmanuals.net/ActivitiesGuideSugar/ActivitiesUsingPyGame
>
> You are also doing this.  That's why your import for sugargame is
> working, not because you're adding anything to the Python path.  You
> might try the same thing with your version of pygame.  I don't know if
> that will fix anything, but it's worth trying.  Have a look at my
> simple pygame example too, and see how it differs from yours.
>
> James Simmons
>
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Update on recent outreach activities in Universities

2010-12-13 Thread Walter Bender
On Mon, Dec 13, 2010 at 7:46 AM, Arjun Sarwal  wrote:
> Hi all,
> Anish and I have recently been putting in efforts to reach out to University
> Students here in New Delhi in an effort to interest more and more talented
> programmers to join Sugar development efforts.
> We observed that there is interest and enthusiasm for students to contribute
> to such projects, when they get to know about them, however there is less
> awareness. After the initial outreach/presentation, we have coached them on
> some of the basics eg getting Fedora up and running, installing
> sugar-jhbuild (some are still facing problems), IRC, asking questions on the
> mailing lists etc
> The first batch of 5-7 students who've been interested regularly, will soon
> be joining the list and might be asking questions, as well as looking for
> projects to contribute to :)
> -Arjun
>
> --
> Arjun Sarwal
> ar...@laptop.org
> a...@sugarlabs.org
>
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>

Maybe you can document your experiences in the wiki under a section
about getting university students involved. Mel has nice experiences
from the FOSSE project at RH that may complement you observations.

regards.

-walter

-- 
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] ArchLinux packages for Sugar

2010-12-13 Thread Christophe Guéret

Hi Cilyan,


Yeah sorry, I was the previous maintainer and I wished to bring more
to this amazing project, but I had to face the reality, since I have a
new job I have no time anymore to maintain all this. I dropped the
packages in the hope a kind volunteer would take care of them... And I
happened. Thanks Christophe, I'm very glad that you can devote time to
bring this amazing environment to ArchLinux. If you ever run into
problems, don't hesitate to come to me, I would be happy to help as
much as I can.

It's nice to be able to get in touch with the previous maintainer :)
I do have a question, which may be actually also answered by someone 
else on the list, how do I check for dependencies?
Some of them are checked by the autoconf scripts but some aren't. Is 
there a readme file or a wiki page or something else that list the 
things the sugar components depend on?


Christophe

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


Re: [Sugar-devel] ArchLinux packages for Sugar

2010-12-13 Thread Bastien
Hi Christophe,

Christophe Guéret  writes:

> The sugar packages for ArchLinux were orphans and outdated.
> I just adopted and updated a bunch of them:
> http://aur.archlinux.org/packages.php?SeB=m&K=tolgam

Fantastic!

> If you are an Arch user, please have a look at them and let me know if
> they work for you.

I'm an Arch user :)

I did install this:

~$ yaourt -S sugar
~$ yaourt -S sugar-base
~$ yaourt -S sugar-artwork
~$ yaourt -S sugar-toolkit
~$ yaourt -S sugar-datastore
~$ yaourt -S sugar-presence-service

I then tried to add sugar-session to my .xinitrc and run startx from a
tty console.

No luck.

I had an "invalid syntax" error (line 26 in sugar-session).  I have both
python 2.7 and 3.1 on my machine.  I s/python/python2 in the first line
of sugar-session to get rid of this error, but I run in another one: no
module hippo found (I first thought it was related to hippo-canvas so
installed this but I guess I'm wrong here.)

My ArchLinux is up to date.

Is there more logs I can give you?  Any step-by-step install of Sugar on
ArchLinux somewhere? 

I would *really* run Sugar natively on ArchLinux, that'd be awesome.

Thanks!

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


Re: [Sugar-devel] ArchLinux packages for Sugar

2010-12-13 Thread Christophe Guéret

Hi Bastien,


I had an "invalid syntax" error (line 26 in sugar-session).  I have both
python 2.7 and 3.1 on my machine.  I s/python/python2 in the first line
of sugar-session to get rid of this error, but I run in another one: no
module hippo found (I first thought it was related to hippo-canvas so
installed this but I guess I'm wrong here.)

The invalid syntax error as to do with the switch to Python3 by default.
Apparently, the lines what were supposed to force the use of python2 in 
the packaging are not working.

Don't worry I'll fix that ;-)

I think hippo is not found because it gets installed into the packages 
for python3... I'll check that as well.



Is there more logs I can give you?  Any step-by-step install of Sugar on
ArchLinux somewhere?
There should not be more logs needed for the moment and for the 
step-by-step install instructions, there is the wiki page Cilyan 
created: https://wiki.archlinux.org/index.php/Sugar



I would *really* run Sugar natively on ArchLinux, that'd be awesome.

I think so too :)

Christophe

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


[Sugar-devel] Errors installing Sugar

2010-12-13 Thread Arjun Sarwal
Thanks Neha for sharing the errors that you are facing while installing
sugar-jhbuild. Im ccing sugar-devel list, hopefully someone might be able to
have a quick solution/answer to the problems you are facing. Can you please
remind us again which OS you are installing this on. Fedora 13?

Errors being faced:
http://pastebin.com/6LtCNAeZ

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


Re: [Sugar-devel] Errors installing Sugar

2010-12-13 Thread Sascha Silbe
Excerpts from Arjun Sarwal's message of Mon Dec 13 18:17:10 +0100 2010:

> http://pastebin.com/6LtCNAeZ

Unfortunately that log is incomplete. The actual error probably happened
very early.

I recommend to start with distro packages instead of sugar-jhbuild unless
you are already familiar with Sugar and want to start hacking on Glucose
(_not_ activities) today.

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] prevent screen rotation in a sugar activity?

2010-12-13 Thread Paul Fox
 > ...there are however practical considerations on XOs that lead us to 
 > want to disable UI rotation. ...

i guess i don't understand how this would work in practical terms.

i'm using my XO, and, at the home screen, i push the rotate button,
and start playing with it in portrait mode.  i bring up Read, and
enjoy an ebook for a while.  i then bring up a cool game a friend showed
me recently, and all of a sudden i have to change how i'm holding the
laptop.  the game's not functioning the way i recall it from last
week, so i go to the journal -- and have to rotate the laptop again --
to find the older instance.  i click on it, and annoyingly, i have to yet
again change my hold on the laptop.

perhaps this is smooth/seamless on an iphone or android, but i'm having
trouble picturing it on an XO.

paul
=-
 paul fox, p...@laptop.org
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] get list of titles in the datastore?

2010-12-13 Thread Erik Blankinship
As a note..  the function find with a { "query":my_search_string } tokenizes
both my_search_string and the datastore entries on white space.  The
function returns true on any combination.

Journal Entries
Goo Bar
Goo Bee

datastore_entries, num_entries = datastore.find( {'query':'goo pretzel'} )
print( num_entries )
2

This is a little unexpected.  What is the expected use case for this
implementation?



On Sat, Dec 4, 2010 at 6:53 AM, Bert Freudenberg wrote:

> This limitation was already documented here:
>
>
> http://wiki.sugarlabs.org/go/Development_Team/Low-level_Activity_API#Querying
>
> To my knowledge that page is reasonably up-to-date. Please correct it if
> I'm wrong ;)
>
> - Bert -
>
> On 04.12.2010, at 04:03, Erik Blankinship wrote:
>
> from #sugar...
>
> *alsroot *: try datastore.find({'query':'coolthings'})
>
> *alsroot*: for now, only uid, activity, activity_id, mime_type and keep
> search term are supported
>
> On Fri, Dec 3, 2010 at 4:49 PM, Erik Blankinship wrote:
>
>> I tried using this bit of code to get a list of items in the journal by
>> their title, but it is returning everything in the journal!
>>
>> http://bit.ly/fjgpJr
>>
>> ds_objects, num_objects = datastore.find({'title':'file1.txt'})
>>
>>
>> Any suggestions?
>>
>>
> ___
> 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] prevent screen rotation in a sugar activity?

2010-12-13 Thread James Cameron
On Mon, Dec 13, 2010 at 01:12:04PM -0500, Bakhtiar Mikhak wrote:
> On Dec 10, 2010, at 6:09 PM, James Cameron wrote:
> 
> > On Fri, Dec 10, 2010 at 05:50:54PM -0500, Bakhtiar Mikhak wrote:
> >> If I am reading the current version of HIG correctly, it is not a
> >> requirement for developers to implement a portrait layout for their
> >> activity:
> >> 
> >>   Screen Rotation
> >> 
> >>   While in Hand-held mode, the laptops support screen rotation; by
> >>   pressing a small button on the bezel of the display, the interface
> >>   will rotate 90 degrees to provide a portrait layout of the
> >>   currently active activity. Just as any activity can implement
> >>   Hand-held mode, those which can benefit from a vertical aspect
> >>   ratio may also implement this feature, and we encourage developers
> >>   to take advantage of this functionality.
> > 
> > Agreed, it is not a requirement for the activity to implement portrait
> > layout.  When it is not implemented, part of the activity would be
> > invisible after rotation.  The learner will rapidly find the activity
> > does not work well when rotated, and will avoid rotating.
> 
> I was not suggesting to support a UI rotation without accounting for
> the change in the dimensions!

I wasn't suggesting that either.  I mentioned it in order to be
comprehensive.  I've seen several activities or applications react in
this way to rotation.

> Setting aside the wisdom of iPhone and Android allowing developers
> control over UI rotation, there are however practical considerations
> on XOs that lead us to want to disable UI rotation. For example, as
> one can easily verify in Record and other activities which use
> Gstreamer, xvimagesink does not rotate its contents.

Ah, so you're saying the reason you do not wish to support rotation in
your activity is that xvimagesink does not support rotation.  You are in
the same situation as the Record activity then.  I was not aware of
that.

> Your comments did also make us wonder if the case that you seem to be
> concerned with can be seen anywhere on the laptop right now. And, we
> discovered the bug that you can see in [ http://imgur.com/z8s4i ] on
> the latest Sugar build on an XO-1.5. Note that the speaker icon gets
> positioned incorrectly after a UI rotation as well. 

That's not the latest Sugar build, and that's not an XO-1.5.  It is an
XO-1, with OpenFirmware Q2E45, running OLPC OS os357.  It's nearly the
latest OLPC OS build; os358 follows.  These are development builds
leading toward 10.1.3 release.

> We have just filed tickets for these bugs.

Where?  I've just checked on http://bugs.sugarlabs.org/ and
http://dev.laptop.org/ and couldn't find them.

> >> I therefore think it is worth considering if the control over if/how
> >> one's activity takes advantage of screen rotation should be exposed
> >> through the Sugar API.
> > 
> > Sounds good, please propose a design and patch.
> 
> There are many people on this list who are more deeply familiar with
> the Sugar source code and would know best know how to go about doing
> this, but I am happy to work on it, and it would definitely be a good
> constructionist learning experience. In the meantime, however, as
> activity developers with limited time and resources, we were initially
> asking if this functionality is already supported and exposed through
> the API.  
> 
> The larger point being, sometimes Activity developers would not mind
> foregoing an opportunity to extend the platform they build on in
> exchange for access to tools that help them be more expressive and
> productive with that platform. Inviting our developers to extend the
> system when they ask whether a feature is supported in the API,
> however well intentioned and welcoming it is meant to be, can serve as
> a deterrent. I am sure that is not what we want.

Yes, it would be a deterrent to many.  The last thing Sugar needs is
changes that break things.  Having been responsible for one recently,
I'm being very cautious now.  I'm not sure that it has helped, my
patches still don't get in.  I really doubt that I alone could achieve
the API you desire.

By the way, a request for an API for an activity to prevent rotate
was logged in 2007 in ticket #2791.  http://dev.laptop.org/ticket/2791

See also

http://dev.laptop.org/ticket/6477 (record-activity suddenly breaks if
screen is rotated)

http://dev.laptop.org/ticket/5797 (Record doesn't display image if the
screen is rotated)

http://dev.laptop.org/ticket/4112 (Need option to rotate recorded
video.)

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


[Sugar-devel] Kiwi PyCon 2011 - August 26/27 - OLPC / Sugar Labs content would be great!

2010-12-13 Thread Tim McNamara
Hi all,


Wellington, New Zealand has been selected as the venue for Kiwi PyCon 2011.
PyCon stands for Python conference, kiwi stands for our national bird (that
you probably know as a fruit) I've been given the title "Conference
Director" and would really like to get some OLPC/Sugar Labs
content/speakers.


So, if anyone has thought about taking a trip to New Zealand - here's a good
reason to think about doing so! I'll be posting more details to the
community as they emerge but thought I would spark some interest with a
quick note.


Very best regards



Tim McNamara

  http://www.timmcnamara.co.nz

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