Re: [Sugar-devel] Sugarizer : failed to import library

2017-09-16 Thread laurent bernabe
Solved my problem !!!

Loader.js

requirejs.config({
baseUrl: "lib",
paths: {
activity: "../js"
}
});

requirejs(["activity/activity"]);

Activity.js

define(["sugar-web/activity/activity"], function (activity) {

// Manipulate the DOM only when it is ready.
require(['domReady!', 'konva'], function (doc) {

// Initialize the activity.
activity.setup();

var stage = new Konva.Stage({
container: 'canvas',
width: 200,
height: 200
});

var layer = new Konva.Layer();

var circle = new Konva.Circle({
x: stage.getWidth() / 2,
y: stage.getHeight() / 2,
radius: 70,
fill: 'red',
stroke: 'black',
strokeWidth: 4
});

layer.add(circle);

stage.add(layer);
});

});


In fact, I just need to put Konva library inside lib folder, and add
'konva' in the activity require section ! So simple !

2017-09-16 13:15 GMT+02:00 laurent bernabe <laurent.bern...@gmail.com>:

> Hello everyone,
>
> I tried to import the Konva <https://konvajs.github.io/docs/overview.html> 
> library
> into my web activity (it is at least 500 ko unminified : is it a trouble ?)
> following the RequireJS shim section tutorial (I put it in the lib folder
> of my activity)
>
>  [ACTIVITY]/js/loader.js
> requirejs.config({
> baseUrl: "lib",
> paths: {
> activity: "../js"
> },
> shim: {
> 'konva': {
> exports: 'Konva'
> }
> }
> });
>
> requirejs(["activity/activity"]);
>
> -
>
> [ACTIVITY]/js/activity.js
>
> define(["sugar-web/activity/activity"], function (activity) {
>
> // Manipulate the DOM only when it is ready.
> require(['domReady!'], function (doc) {
>
> // Initialize the activity.
> activity.setup();
>
> var stage = new Konva.stage({
> container: 'canvas',
> width: 200,
> height: 200
> });
>
> console.log(stage);
>
> var layer = new Konva.layer();
>
> var circle = new Konva.circle({
> x: stage.getWidth() / 2,
> y: stage.getHeight() / 2,
> radius: 70,
> fill: 'red',
> stroke: 'black',
> strokeWidth: 4
> });
>
> layer.add(circle);
>
> stage.add(layer);
> });
>
> });
>
>
> But I got Konva is undefined in my console.log() call.
>
> So, what did I misunderstood ?
>
> --
> Regards,
>
> Laurent Bernabé
>
> laurent.bern...@gmail.com
>



-- 
Regards,

Laurent Bernabé

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


[Sugar-devel] Sugarizer : failed to import library

2017-09-16 Thread laurent bernabe
Hello everyone,

I tried to import the Konva
 library
into my web activity (it is at least 500 ko unminified : is it a trouble ?)
following the RequireJS shim section tutorial (I put it in the lib folder
of my activity)

 [ACTIVITY]/js/loader.js
requirejs.config({
baseUrl: "lib",
paths: {
activity: "../js"
},
shim: {
'konva': {
exports: 'Konva'
}
}
});

requirejs(["activity/activity"]);

-

[ACTIVITY]/js/activity.js

define(["sugar-web/activity/activity"], function (activity) {

// Manipulate the DOM only when it is ready.
require(['domReady!'], function (doc) {

// Initialize the activity.
activity.setup();

var stage = new Konva.stage({
container: 'canvas',
width: 200,
height: 200
});

console.log(stage);

var layer = new Konva.layer();

var circle = new Konva.circle({
x: stage.getWidth() / 2,
y: stage.getHeight() / 2,
radius: 70,
fill: 'red',
stroke: 'black',
strokeWidth: 4
});

layer.add(circle);

stage.add(layer);
});

});


But I got Konva is undefined in my console.log() call.

So, what did I misunderstood ?

-- 
Regards,

Laurent Bernabé

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


Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-16 Thread laurent bernabe
Thank you

indeed, I launched my Python server from inside my activity folder, instead
of the sugarizer top folder.

2017-09-15 21:17 GMT+02:00 Lionel Laské <lionel.la...@gmail.com>:

>
> Nice to hear it works now.
> Sugarizer do not allow multiple activities at the same time. You have to
> click on the Stop button activity to go back to the home view.
> Nothing to implement for this features, it's implemented in the sugar-web
> layer.
>
>   Lionel.
>
>
> 2017-09-15 14:38 GMT+02:00 laurent bernabe <laurent.bern...@gmail.com>:
>
>> Sorry again for this question : but I did not find how to switch view in
>> Sugarizer Chrome/Chromium version. Is there a simple way to go back to
>> activities view or journal view from inside a launched activity ?
>>
>> Regards
>>
>> Laurent Bernabé
>>
>> laurent.bern...@gmail.com
>>
>
>


-- 
Regards,

Laurent Bernabé

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


Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-15 Thread laurent bernabe
Sorry again for this question : but I did not find how to switch view in
Sugarizer Chrome/Chromium version. Is there a simple way to go back to
activities view or journal view from inside a launched activity ?

Regards

Laurent Bernabé

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


Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-15 Thread laurent bernabe
Also as a good news, the icon of my application has no problem on
Sugarizer. I did not changed it lately : I just launched my computer and
the local server one more time : and the icon has both colors.

Just have to center this circle around the icon zone, and I'll be able to
go on the activity development.

Regards,

Laurent Bernabé

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


Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-15 Thread laurent bernabe
Thank you

2017-09-15 13:07 GMT+02:00 Sebastian Silva <sebast...@fuentelibre.org>:

>
>
> On 15/09/17 03:49, laurent bernabe wrote:
>
> Indeed, I first cloned Sugarizer repository from Github, copied activity
> template from inside it into the sugarizer activities directory.
> Then, as Sebastien Silva suggested me in order to correct a problem with
> my activity icon (appearing all black), I replaced the sugar-web folder
> with the one from Sugarizer top folder. *But the icon problem stayed the
> same : so I plan to put back the activity template version of sugar-web
> folder again.*
>
> Ah, mi recommendation was wrong then. I thought you had used the Sugar-Web
> template as is documented here (https://developer.sugarlabs.
> org/web-activity.md.html).
>

Ok, I understand better your recommandation now



>
> Laurent, if it is the same bug I reported, then your activity will work
> fine in Sugarizer and if Lionel will test on an XO, it will work fine in
> Sugar too, but it won't work in Sugar outside XO because of the
> aforementioned issue with environment detection for sugarizer's version of
> sugar-web which only detects Webkit1 as Sugar otherwise just assumes
> Sugarizer style journale etc.
>
> Hope this helps
>

No problem

-- 
Regards,

Laurent Bernabé

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


Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-15 Thread laurent bernabe
Hi,

thank you very much for your answer.

Indeed, I first cloned Sugarizer repository from Github, copied activity
template from inside it into the sugarizer activities directory.
Then, as Sebastien Silva suggested me in order to correct a problem with my
activity icon (appearing all black), I replaced the sugar-web folder with
the one from Sugarizer top folder. *But the icon problem stayed the same :
so I plan to put back the activity template version of sugar-web folder
again.*

Now I just have to push the first version of my application in my Github
account, and I'll go on working on it



2017-09-14 21:49 GMT+02:00 Lionel Laské <lionel.la...@gmail.com>:

>
> Hi Laurent,
>
> James is right Sugar/sugar-web work on Sugar but is not compatible with
> Sugarizer so you will have to update the sugar-web part of your app to run
> it in Sugarizer.
>
> I suggest you to use Sugarizer/sugar-web instead (just use
> activities/ActivityTemplate directory as template for your application and
> you will have it). This version will allow your app to work both on Sugar
> and on Sugarizer.
>
> Regards.
>
> Lionel.
>
>
> but Sugarizer/sugar-web is compliant both with Sugar and Sugarizer.
>
> 2017-09-13 12:17 GMT+02:00 <sugar-devel-requ...@lists.sugarlabs.org>:
>
>>
>> Date: Wed, 13 Sep 2017 12:17:10 +0200
>> From: laurent bernabe <laurent.bern...@gmail.com>
>> To: James Cameron <qu...@laptop.org>
>> Cc: Sugar Devel <sugar-devel@lists.sugarlabs.org>
>> Subject: Re: [Sugar-devel] Is it ok to host my activity in my Github
>> repositories ?
>> Message-ID:
>> <cah8mnd+xwayy_sduaoe2fa8qc-p+figwg+2iyjqriygucir...@mail.gm
>> ail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Thank you,
>>
>> so I'll investigate into the mailing list before starting developping.
>>
>> 2017-09-13 12:09 GMT+02:00 James Cameron <qu...@laptop.org>:
>>
>> > On Wed, Sep 13, 2017 at 11:40:34AM +0200, laurent bernabe wrote:
>> > > Thank you for your answer :
>> > >
>> > > You will need to use JavaScript and the Sugarizer sources to
>> write a
>> > > web activity for use with Sugarizer.  I don't think Python or
>> PyGame
>> > > are practical for Sugarizer.  Lionel would know.
>> > >
>> > > That's exactly what I had in mind: use Javascript and if possible an
>> > AMD-Ready
>> > > canvas framework.
>> > >
>> > >
>> > > As it sounds like you will be the primary developer, best for the
>> > > moment would be a repository in your own GitHub user.
>> > >
>> > > Ok, sounds good to me
>> > >
>> > >
>> > > You might also work on a fork of Sugarizer in your own GitHub
>> user.
>> > >
>> > > I think I don't need deploying my application on Android devices in
>> > emergency :
>> > > I can at least start working on the web version, so that it will be
>> > > possible.
>> >
>> > I've seen discussions here on sugar-devel@ recently that suggested
>> > Sugarizer's web activity framework had diverged from the Sugar desktop
>> > framework, so take care.  I don't recall the details; check the
>> > mailing list archives.
>> >
>>
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>


-- 
Regards,

Laurent Bernabé

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


[Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-13 Thread laurent bernabe
Thank you for your answer :

You will need to use JavaScript and the Sugarizer sources to write a
> web activity for use with Sugarizer.  I don't think Python or PyGame
> are practical for Sugarizer.  Lionel would know.
>


That's exactly what I had in mind: use Javascript and if possible an
AMD-Ready canvas framework.


>
> As it sounds like you will be the primary developer, best for the
> moment would be a repository in your own GitHub user.
>

Ok, sounds good to me


>
> You might also work on a fork of Sugarizer in your own GitHub user.
>


I think I don't need deploying my application on Android devices in
emergency : I can at least start working on the web version, so that it
will be possible.


>
> On Wed, Sep 13, 2017 at 11:00:36AM +0200, laurent bernabe wrote:
> > Thank you again,
> >
> > My goal is to build a web version of the activity, and even extend it
> (for
> > example, there is only on question when we launch exercise, it would be
> more
> > convenient if we had 10 questions in a row for example) rather than
> working
> > with the Python/PyGame version, so that it will be directly usable in
> Sugarizer
> > (From my understanding, it is the fastest way to have it work also on
> Android
> > devices).
> >
> > And also this would be a great opportunity to discover sugar web activity
> > programming (even if I already know the basics) : so that if I plan to
> build
> > new activities, it will be in Web form.
> >
> >   • Do you think it is a good plan ? Or is it better to go on with Python
> > version ?
> >   • If so, shall I ask you the same question concerning github hosting :
> what
> > would be the best procedure ?
> >
> > Thanks in advance
> >
> > 2017-09-12 22:15 GMT+02:00 laurent bernabe <[1]laurent.bern...@gmail.com
> >:
> >
> > Thanks a lot! I will look at it and start working on the project
> tomorrow.
> >
> > Le 12 sept. 2017 22:08, "James Cameron" <[2]qu...@laptop.org> a
> écrit :
> >
> > [3]https://github.com/sugarlabs/hittheballs-activity has been
> created
> > using most recent commits in [4]http://git.sugarlabs.org/hi
> ttheballs
> >
> > and loloof64 invited as a collaborator.
> >
> > new translations are available from [5]translate.sugarlabs.org,
> > [6]https://translate.sugarlabs.org/projects/HitTheBalls/
> >
> > On Tue, Sep 12, 2017 at 12:33:10PM +0200, laurent bernabe wrote:
> > > Oups, sorry I was talking about [1][7]http://git.sugarla
> bs.org/
> > > The name of my application is HitTheBalls
> > >
> > > 2017-09-12 12:28 GMT+02:00 James Cameron <[2][8]
> qu...@laptop.org>:
> > >
> > > That seems unlikely.  Both the OLPC git repositories and
> the
> > Sugar
> > > Labs Gitorious repositories still exist.
> > >
> > > [3][9]http://dev.laptop.org/git/
> > > [4][10]http://git.sugarlabs.org/
> > >
> > > If you tell me the name of the activity, I can look for it.
> > >
> > > What was SugarOLPC git repository?
> > >
> > > On Tue, Sep 12, 2017 at 12:18:12PM +0200, laurent bernabe
> wrote:
> > > > Thanks, the GNU GPL should be fine :)
> > > >
> > > > As for the repository for my first activity : it was
> hosted by
> > the old
> > > > SugarOLPC git repository (does not exist any more). In
> the
> > activities
> > > page,
> > > > there's just the XO bundle.
> > > >
> > > > 2017-09-12 12:15 GMT+02:00 James Cameron <[1][5][11]
> > qu...@laptop.org>:
> > > >
> > > > Sorry, I don't know which other licenses are
> suitable, but
> > I know the
> > > > GNU GPL license is suitable.
> > > >
> > > > [2][6][12]https://wiki.sugarl
> abs.org/go/Sugar_Labs/FAQ#
> > What_is_the_
> > > > standard_Sugar_license.3F
> > > >
> > > > You might also look at licenses of other
> repositories in
> > [3]https://
> > > > [7][13]github.com/sugarlabs
> > > >
> > &

Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-13 Thread laurent bernabe
Thank you again,

My goal is to build a web version of the activity, and even extend it (for
example, there is only on question when we launch exercise, it would be
more convenient if we had 10 questions in a row for example) rather than
working with the Python/PyGame version, so that it will be directly usable
in Sugarizer (From my understanding, it is the fastest way to have it work
also on Android devices).

And also this would be a great opportunity to discover sugar web activity
programming (even if I already know the basics) : so that if I plan to
build new activities, it will be in Web form.


   - Do you think it is a good plan ? Or is it better to go on with Python
   version ?
   - If so, shall I ask you the same question concerning github hosting :
   what would be the best procedure ?

Thanks in advance

2017-09-12 22:15 GMT+02:00 laurent bernabe <laurent.bern...@gmail.com>:

> Thanks a lot! I will look at it and start working on the project tomorrow.
>
> Le 12 sept. 2017 22:08, "James Cameron" <qu...@laptop.org> a écrit :
>
>> https://github.com/sugarlabs/hittheballs-activity has been created
>> using most recent commits in http://git.sugarlabs.org/hittheballs
>>
>> and loloof64 invited as a collaborator.
>>
>> new translations are available from translate.sugarlabs.org,
>> https://translate.sugarlabs.org/projects/HitTheBalls/
>>
>> On Tue, Sep 12, 2017 at 12:33:10PM +0200, laurent bernabe wrote:
>> > Oups, sorry I was talking about [1]http://git.sugarlabs.org/
>> > The name of my application is HitTheBalls
>> >
>> > 2017-09-12 12:28 GMT+02:00 James Cameron <[2]qu...@laptop.org>:
>> >
>> > That seems unlikely.  Both the OLPC git repositories and the Sugar
>> > Labs Gitorious repositories still exist.
>> >
>> > [3]http://dev.laptop.org/git/
>> > [4]http://git.sugarlabs.org/
>> >
>> > If you tell me the name of the activity, I can look for it.
>> >
>> > What was SugarOLPC git repository?
>> >
>> > On Tue, Sep 12, 2017 at 12:18:12PM +0200, laurent bernabe wrote:
>> > > Thanks, the GNU GPL should be fine :)
>> > >
>> > > As for the repository for my first activity : it was hosted by
>> the old
>> > > SugarOLPC git repository (does not exist any more). In the
>> activities
>> > page,
>> > > there's just the XO bundle.
>> > >
>> > > 2017-09-12 12:15 GMT+02:00 James Cameron <[1][5]qu...@laptop.org
>> >:
>> > >
>> > > Sorry, I don't know which other licenses are suitable, but I
>> know the
>> > > GNU GPL license is suitable.
>> > >
>> > > [2][6]https://wiki.sugarlabs.org/go/Sugar_Labs/FAQ#What_is_
>> the_
>> > > standard_Sugar_license.3F
>> > >
>> > > You might also look at licenses of other repositories in
>> [3]https://
>> > > [7]github.com/sugarlabs
>> > >
>> > > On Tue, Sep 12, 2017 at 12:09:09PM +0200, laurent bernabe
>> wrote:
>> > > > Oups, sorry for the confusion : I'm not a member of sugar
>> git yet,
>> > but
>> > > > SugarActivities Portal : [1]My profile
>> > > > Also, are all Open Source license suitable ?
>> > > >
>> > > > 2017-09-12 12:04 GMT+02:00 laurent bernabe <[2][4]
>> > > [8]laurent.bern...@gmail.com>:
>> > > >
>> > > > Thank you very much,
>> > > >
>> > > > of course, as an hobbyist developper, it is fine to
>> share it
>> > on [3]
>> > > http://
>> > > > [5][9]github.com/sugarlabs.
>> > > > So I must first become a member of Sugarlabs -but I
>> think I am
>> > > already a
>> > > > member as loloof64 : there's been a while since I
>> developped my
>> > first
>> > > > activity- and take a suitable license for my source
>> code.
>> > > >
>> > > > I'm going to check all right now.
>> > > >
>> > > > 2017-09-12 11:58 GMT+02:00 James Cameron <[4][6][10]
>> > qu...@laptop.org>:
>> > > >
>> > > > You could host a repository in [5][7][

Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-12 Thread laurent bernabe
Thanks a lot! I will look at it and start working on the project tomorrow.

Le 12 sept. 2017 22:08, "James Cameron" <qu...@laptop.org> a écrit :

> https://github.com/sugarlabs/hittheballs-activity has been created
> using most recent commits in http://git.sugarlabs.org/hittheballs
>
> and loloof64 invited as a collaborator.
>
> new translations are available from translate.sugarlabs.org,
> https://translate.sugarlabs.org/projects/HitTheBalls/
>
> On Tue, Sep 12, 2017 at 12:33:10PM +0200, laurent bernabe wrote:
> > Oups, sorry I was talking about [1]http://git.sugarlabs.org/
> > The name of my application is HitTheBalls
> >
> > 2017-09-12 12:28 GMT+02:00 James Cameron <[2]qu...@laptop.org>:
> >
> > That seems unlikely.  Both the OLPC git repositories and the Sugar
> > Labs Gitorious repositories still exist.
> >
> > [3]http://dev.laptop.org/git/
> > [4]http://git.sugarlabs.org/
> >
> > If you tell me the name of the activity, I can look for it.
> >
> > What was SugarOLPC git repository?
> >
> > On Tue, Sep 12, 2017 at 12:18:12PM +0200, laurent bernabe wrote:
> > > Thanks, the GNU GPL should be fine :)
> > >
> > > As for the repository for my first activity : it was hosted by the
> old
> > > SugarOLPC git repository (does not exist any more). In the
> activities
> > page,
> > > there's just the XO bundle.
> > >
> > > 2017-09-12 12:15 GMT+02:00 James Cameron <[1][5]qu...@laptop.org>:
> > >
> > > Sorry, I don't know which other licenses are suitable, but I
> know the
> > > GNU GPL license is suitable.
> > >
> > > [2][6]https://wiki.sugarlabs.org/go/Sugar_Labs/FAQ#What_is_
> the_
> > > standard_Sugar_license.3F
> > >
> > > You might also look at licenses of other repositories in
> [3]https://
> > > [7]github.com/sugarlabs
> > >
> > > On Tue, Sep 12, 2017 at 12:09:09PM +0200, laurent bernabe
> wrote:
> > > > Oups, sorry for the confusion : I'm not a member of sugar
> git yet,
> > but
> > > > SugarActivities Portal : [1]My profile
> > > > Also, are all Open Source license suitable ?
> > > >
> > > > 2017-09-12 12:04 GMT+02:00 laurent bernabe <[2][4]
> > > [8]laurent.bern...@gmail.com>:
> > > >
> > > > Thank you very much,
> > > >
> > > > of course, as an hobbyist developper, it is fine to
> share it
> > on [3]
> > > http://
> > > > [5][9]github.com/sugarlabs.
> > > > So I must first become a member of Sugarlabs -but I
> think I am
> > > already a
> > > > member as loloof64 : there's been a while since I
> developped my
> > first
> > > > activity- and take a suitable license for my source code.
> > > >
> > > > I'm going to check all right now.
> > > >
> > > > 2017-09-12 11:58 GMT+02:00 James Cameron <[4][6][10]
> > qu...@laptop.org>:
> > > >
> > > > You could host a repository in [5][7][11]
> http://github.com/
> > sugarlabs
> > > if;
> > > >
> > > > (a) the repository is part of, or used with Sugar or
> > Sugarizer,
> > > >
> > > > (b) you are a member of the [6][8][12]
> http://github.com/
> > sugarlabs
> > > > organisation,
> > > >
> > > > (c) the license of the source code is consistent
> with Sugar
> > Labs
> > > > guidelines,
> > > >
> > > > (d) you welcome others in Sugar Labs to have commit
> access,
> > or
> > > want a
> > > > central location for tracking Issues or a Wiki.
> > > >
> > > > You could host a repository in your own GitHub
> account if
> > you've
> > > no
> > > > reason to have other people push commits, or no
> reason to
> > have
> > > your
> > > > reposi

Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-12 Thread laurent bernabe
Oups, sorry I was talking about http://git.sugarlabs.org/
The name of my application is HitTheBalls

2017-09-12 12:28 GMT+02:00 James Cameron <qu...@laptop.org>:

> That seems unlikely.  Both the OLPC git repositories and the Sugar
> Labs Gitorious repositories still exist.
>
> http://dev.laptop.org/git/
> http://git.sugarlabs.org/
>
> If you tell me the name of the activity, I can look for it.
>
> What was SugarOLPC git repository?
>
> On Tue, Sep 12, 2017 at 12:18:12PM +0200, laurent bernabe wrote:
> > Thanks, the GNU GPL should be fine :)
> >
> > As for the repository for my first activity : it was hosted by the old
> > SugarOLPC git repository (does not exist any more). In the activities
> page,
> > there's just the XO bundle.
> >
> > 2017-09-12 12:15 GMT+02:00 James Cameron <[1]qu...@laptop.org>:
> >
> > Sorry, I don't know which other licenses are suitable, but I know the
> > GNU GPL license is suitable.
> >
> > [2]https://wiki.sugarlabs.org/go/Sugar_Labs/FAQ#What_is_the_
> > standard_Sugar_license.3F
> >
> > You might also look at licenses of other repositories in [3]https://
> > github.com/sugarlabs
> >
> > On Tue, Sep 12, 2017 at 12:09:09PM +0200, laurent bernabe wrote:
> > > Oups, sorry for the confusion : I'm not a member of sugar git yet,
> but
> > > SugarActivities Portal : [1]My profile
> > > Also, are all Open Source license suitable ?
> > >
> > > 2017-09-12 12:04 GMT+02:00 laurent bernabe <[2][4]
> > laurent.bern...@gmail.com>:
> > >
> > > Thank you very much,
> > >
> > > of course, as an hobbyist developper, it is fine to share it
> on [3]
> > http://
> > > [5]github.com/sugarlabs.
> > > So I must first become a member of Sugarlabs -but I think I am
> > already a
> > > member as loloof64 : there's been a while since I developped
> my first
> > > activity- and take a suitable license for my source code.
> > >
> > > I'm going to check all right now.
> > >
> > > 2017-09-12 11:58 GMT+02:00 James Cameron <[4][6]
> qu...@laptop.org>:
> > >
> > > You could host a repository in [5][7]http://github.com/
> sugarlabs
> > if;
> > >
> > > (a) the repository is part of, or used with Sugar or
> Sugarizer,
> > >
> > > (b) you are a member of the [6][8]http://github.com/
> sugarlabs
> > > organisation,
> > >
> > > (c) the license of the source code is consistent with
> Sugar Labs
> > > guidelines,
> > >
> > > (d) you welcome others in Sugar Labs to have commit
> access, or
> > want a
> > > central location for tracking Issues or a Wiki.
> > >
> > > You could host a repository in your own GitHub account if
> you've
> > no
> > > reason to have other people push commits, or no reason to
> have
> > your
> > > repository found in a search of [7][9]http://github.com/
> sugarlabs
> > >
> > > If it is your source code, it is your responsibility to
> choose.
> > ;-)
> > >
> > > On Tue, Sep 12, 2017 at 11:43:28AM +0200, laurent bernabe
> wrote:
> > > > Hello everyone again,
> > > >
> > > > Further to my email about the problem I am facing with my
> > activity
> > > icon inside
> > > > Sugarizer, I bet I can leave it as it for now, and that
> the
> > Sugarizer
> > > problem
> > > > will be resolved later.
> > > >
> > > > But now I have an important point : as for the VCS
> system, late
> > ago I
> > > used the
> > > > common sugar repository. Following - from far - many
> Sugar
> > Devel
> > > emails, it
> > > > seems to me that it is ok to use my own repository on
> Github :
> > am I
> > > right ?
> > > >
> > > > Thanks in advance
> > > >
> > > > --
> > > > Regards,
>

Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-12 Thread laurent bernabe
Thanks, the GNU GPL should be fine :)

As for the repository for my first activity : it was hosted by the old
SugarOLPC git repository (does not exist any more). In the activities page,
there's just the XO bundle.

2017-09-12 12:15 GMT+02:00 James Cameron <qu...@laptop.org>:

> Sorry, I don't know which other licenses are suitable, but I know the
> GNU GPL license is suitable.
>
> https://wiki.sugarlabs.org/go/Sugar_Labs/FAQ#What_is_the_
> standard_Sugar_license.3F
>
> You might also look at licenses of other repositories in
> https://github.com/sugarlabs
>
> On Tue, Sep 12, 2017 at 12:09:09PM +0200, laurent bernabe wrote:
> > Oups, sorry for the confusion : I'm not a member of sugar git yet, but
> > SugarActivities Portal : [1]My profile
> > Also, are all Open Source license suitable ?
> >
> > 2017-09-12 12:04 GMT+02:00 laurent bernabe <[2]laurent.bern...@gmail.com
> >:
> >
> > Thank you very much,
> >
> > of course, as an hobbyist developper, it is fine to share it
> on [3]http://
> > github.com/sugarlabs.
> > So I must first become a member of Sugarlabs -but I think I am
> already a
> > member as loloof64 : there's been a while since I developped my first
> > activity- and take a suitable license for my source code.
> >
> > I'm going to check all right now.
> >
> > 2017-09-12 11:58 GMT+02:00 James Cameron <[4]qu...@laptop.org>:
> >
> > You could host a repository in [5]http://github.com/sugarlabs
> if;
> >
> > (a) the repository is part of, or used with Sugar or Sugarizer,
> >
> > (b) you are a member of the [6]http://github.com/sugarlabs
> > organisation,
> >
> > (c) the license of the source code is consistent with Sugar Labs
> > guidelines,
> >
> > (d) you welcome others in Sugar Labs to have commit access, or
> want a
> > central location for tracking Issues or a Wiki.
> >
> > You could host a repository in your own GitHub account if you've
> no
> > reason to have other people push commits, or no reason to have
> your
> > repository found in a search of [7]http://github.com/sugarlabs
> >
> > If it is your source code, it is your responsibility to choose.
> ;-)
> >
> > On Tue, Sep 12, 2017 at 11:43:28AM +0200, laurent bernabe wrote:
> > > Hello everyone again,
> > >
> > > Further to my email about the problem I am facing with my
> activity
> > icon inside
> > > Sugarizer, I bet I can leave it as it for now, and that the
> Sugarizer
> > problem
> > > will be resolved later.
> > >
> > > But now I have an important point : as for the VCS system,
> late ago I
> > used the
> > > common sugar repository. Following - from far - many Sugar
> Devel
> > emails, it
> > > seems to me that it is ok to use my own repository on Github :
> am I
> > right ?
> > >
> > > Thanks in advance
> > >
> > > --
> > > Regards,
> > >
> > > Laurent Bernabé
> > >
> > > [1][8]laurent.bern...@gmail.com
> > >
> > > References:
> > >
> > > [1] mailto:[9]laurent.bern...@gmail.com
> >
> > > ___
> > > Sugar-devel mailing list
> > > [10]Sugar-devel@lists.sugarlabs.org
> > > [11]http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> >
> > --
> > James Cameron
> > [12]http://quozl.netrek.org/
> >
> >
> >
> > --
> > Regards,
> >
> > Laurent Bernabé
> >
> > [13]laurent.bern...@gmail.com
> >
> > --
> > Regards,
> >
> > Laurent Bernabé
> >
> > [14]laurent.bern...@gmail.com
> >
> > References:
> >
> > [1] https://activities.sugarlabs.org/en-US/sugar/user/11411
> > [2] mailto:laurent.bern...@gmail.com
> > [3] http://github.com/sugarlabs
> > [4] mailto:qu...@laptop.org
> > [5] http://github.com/sugarlabs
> > [6] http://github.com/sugarlabs
> > [7] http://github.com/sugarlabs
> > [8] mailto:laurent.bern...@gmail.com
> > [9] mailto:laurent.bern...@gmail.com
> > [10] mailto:Sugar-devel@lists.sugarlabs.org
> > [11] http://lists.sugarlabs.org/listinfo/sugar-devel
> > [12] http://quozl.netrek.org/
> > [13] mailto:laurent.bern...@gmail.com
> > [14] mailto:laurent.bern...@gmail.com
>
> --
> James Cameron
> http://quozl.netrek.org/
>



-- 
Cordialement,

Laurent Bernabé

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


Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-12 Thread laurent bernabe
Oups, sorry for the confusion : I'm not a member of sugar git yet, but
SugarActivities Portal : My profile
<https://activities.sugarlabs.org/en-US/sugar/user/11411>
Also, are all Open Source license suitable ?

2017-09-12 12:04 GMT+02:00 laurent bernabe <laurent.bern...@gmail.com>:

> Thank you very much,
>
> of course, as an hobbyist developper, it is fine to share it on
> http://github.com/sugarlabs.
> So I must first become a member of Sugarlabs -but I think I am already a
> member as loloof64 : there's been a while since I developped my first
> activity- and take a suitable license for my source code.
>
> I'm going to check all right now.
>
> 2017-09-12 11:58 GMT+02:00 James Cameron <qu...@laptop.org>:
>
>> You could host a repository in http://github.com/sugarlabs if;
>>
>> (a) the repository is part of, or used with Sugar or Sugarizer,
>>
>> (b) you are a member of the http://github.com/sugarlabs organisation,
>>
>> (c) the license of the source code is consistent with Sugar Labs
>> guidelines,
>>
>> (d) you welcome others in Sugar Labs to have commit access, or want a
>> central location for tracking Issues or a Wiki.
>>
>> You could host a repository in your own GitHub account if you've no
>> reason to have other people push commits, or no reason to have your
>> repository found in a search of http://github.com/sugarlabs
>>
>> If it is your source code, it is your responsibility to choose.  ;-)
>>
>> On Tue, Sep 12, 2017 at 11:43:28AM +0200, laurent bernabe wrote:
>> > Hello everyone again,
>> >
>> > Further to my email about the problem I am facing with my activity icon
>> inside
>> > Sugarizer, I bet I can leave it as it for now, and that the Sugarizer
>> problem
>> > will be resolved later.
>> >
>> > But now I have an important point : as for the VCS system, late ago I
>> used the
>> > common sugar repository. Following - from far - many Sugar Devel
>> emails, it
>> > seems to me that it is ok to use my own repository on Github : am I
>> right ?
>> >
>> > Thanks in advance
>> >
>> > --
>> > Regards,
>> >
>> > Laurent Bernabé
>> >
>> > [1]laurent.bern...@gmail.com
>> >
>> > References:
>> >
>> > [1] mailto:laurent.bern...@gmail.com
>>
>> > ___
>> > Sugar-devel mailing list
>> > Sugar-devel@lists.sugarlabs.org
>> > http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>> --
>> James Cameron
>> http://quozl.netrek.org/
>>
>
>
>
> --
> Regards,
>
> Laurent Bernabé
>
> laurent.bern...@gmail.com
>



-- 
Regards,

Laurent Bernabé

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


Re: [Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-12 Thread laurent bernabe
Thank you very much,

of course, as an hobbyist developper, it is fine to share it on
http://github.com/sugarlabs.
So I must first become a member of Sugarlabs -but I think I am already a
member as loloof64 : there's been a while since I developped my first
activity- and take a suitable license for my source code.

I'm going to check all right now.

2017-09-12 11:58 GMT+02:00 James Cameron <qu...@laptop.org>:

> You could host a repository in http://github.com/sugarlabs if;
>
> (a) the repository is part of, or used with Sugar or Sugarizer,
>
> (b) you are a member of the http://github.com/sugarlabs organisation,
>
> (c) the license of the source code is consistent with Sugar Labs
> guidelines,
>
> (d) you welcome others in Sugar Labs to have commit access, or want a
> central location for tracking Issues or a Wiki.
>
> You could host a repository in your own GitHub account if you've no
> reason to have other people push commits, or no reason to have your
> repository found in a search of http://github.com/sugarlabs
>
> If it is your source code, it is your responsibility to choose.  ;-)
>
> On Tue, Sep 12, 2017 at 11:43:28AM +0200, laurent bernabe wrote:
> > Hello everyone again,
> >
> > Further to my email about the problem I am facing with my activity icon
> inside
> > Sugarizer, I bet I can leave it as it for now, and that the Sugarizer
> problem
> > will be resolved later.
> >
> > But now I have an important point : as for the VCS system, late ago I
> used the
> > common sugar repository. Following - from far - many Sugar Devel emails,
> it
> > seems to me that it is ok to use my own repository on Github : am I
> right ?
> >
> > Thanks in advance
> >
> > --
> > Regards,
> >
> > Laurent Bernabé
> >
> > [1]laurent.bern...@gmail.com
> >
> > References:
> >
> > [1] mailto:laurent.bern...@gmail.com
>
> > ___
> > Sugar-devel mailing list
> > Sugar-devel@lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> James Cameron
> http://quozl.netrek.org/
>



-- 
Regards,

Laurent Bernabé

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


[Sugar-devel] Is it ok to host my activity in my Github repositories ?

2017-09-12 Thread laurent bernabe
Hello everyone again,

Further to my email about the problem I am facing with my activity icon
inside Sugarizer, I bet I can leave it as it for now, and that the
Sugarizer problem will be resolved later.

But now I have an important point : as for the VCS system, late ago I used
the common sugar repository. Following - from far - many Sugar Devel
emails, it seems to me that it is ok to use my own repository on Github :
am I right ?

Thanks in advance

-- 
Regards,

Laurent Bernabé

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


Re: [Sugar-devel] Why does my svg activity icon appears black ?

2017-09-11 Thread laurent bernabe
Hello again,

I've replaced the sugar-web folder of my activity (which was taken from the
template activity) by a copy of the sugar-web folder inside the Sugarizer
lib/ subfolder, reloaded Sugarizer (I am running through Python simple
server) page, but it did not change anything.

2017-09-11 21:06 GMT+02:00 laurent bernabe <laurent.bern...@gmail.com>:

> Thank you.
> So I'll do this way.
>
> 2017-09-11 21:04 GMT+02:00 Sebastian Silva <sebast...@fuentelibre.org>:
>
>> I don't think it's necessary to clone Sugar-Build, besides it's not
>> maintained.
>>
>> Rather, look at https://github.com/llaske/suga
>> rizer/tree/master/lib/sugar-web and try using that version in your
>> activity.
>>
>> Good luck!
>>
>> Sebastian
>>
>> On 11/09/17 13:40, laurent bernabe wrote:
>>
>> Thank you very much.
>>
>> I'll first clone sugar-build again (it's been a while since I've not
>> worked with) then I'll try to spot the differences the way you guided me.
>>
>> 2017-09-11 20:30 GMT+02:00 Sebastian Silva <sebast...@fuentelibre.org>:
>>
>>> It seems there was a divergence in the use of sugar-web library with
>>> Sugarizer vs Sugar.
>>>
>>> Look for differences in lib/sugar-web and compare with activities in
>>> Sugarizer.
>>>
>>> Try to replace your lib/sugar-web with Sugarizer version and see if it
>>> works.
>>>
>>> Hopefully they will be merged back together.
>>>
>>> Regards,
>>>
>>> Sebastian
>>>
>>> On 11/09/17 13:15, laurent bernabe wrote:
>>>
>>> Hello, everyone,
>>>
>>> I've fetched the activity icon from my Python activity HitTheBall, and
>>> reused it in the new web activity I am building in order to create a Web
>>> version.
>>>
>>> But when launching it from Sugarizer (I think the problem should be the
>>> same in sugar-build, my icon design has a real problem) the icon appears as
>>> black. I am trying to get inspired from the standard activities icons, but
>>> without any success.
>>>
>>> This the current code of my activity-icon.svg
>>>
>>> 
>>> -
>>>
>>> 
>>> >> http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; [
>>> 
>>> 
>>> ]>
>>>
>>> >>xmlns="http://www.w3.org/2000/svg;
>>>width="55"
>>>height="55"
>>> >
>>>   >> fill="_color;" />
>>>   >>style="font-size:14px;font-style:normal;font-weight:normal;
>>> line-height:125%;letter-spacing:0px;word-spacing:0px;fill:&
>>> stroke_color;;fill-opacity:1;stroke:none;font-family:Sans"
>>>x="8"
>>>y="27"
>>> >1+2
>>> 
>>>
>>> 
>>> --
>>>
>>> Thanks in advance if I can be helped
>>>
>>> --
>>> Regards,
>>>
>>> Laurent Bernabé
>>>
>>> laurent.bern...@gmail.com
>>>
>>>
>>> ___
>>> Sugar-devel mailing 
>>> listSugar-devel@lists.sugarlabs.orghttp://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>>
>>>
>>
>>
>> --
>> Cordialement,
>>
>> Laurent Bernabé
>>
>> laurent.bern...@gmail.com
>>
>>
>>
>
>
> --
> Cordialement,
>
> Laurent Bernabé
>
> laurent.bern...@gmail.com
>



-- 
Regards

Laurent Bernabé

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


Re: [Sugar-devel] Why does my svg activity icon appears black ?

2017-09-11 Thread laurent bernabe
Thank you.
So I'll do this way.

2017-09-11 21:04 GMT+02:00 Sebastian Silva <sebast...@fuentelibre.org>:

> I don't think it's necessary to clone Sugar-Build, besides it's not
> maintained.
>
> Rather, look at https://github.com/llaske/sugarizer/tree/master/lib/
> sugar-web and try using that version in your activity.
>
> Good luck!
>
> Sebastian
>
> On 11/09/17 13:40, laurent bernabe wrote:
>
> Thank you very much.
>
> I'll first clone sugar-build again (it's been a while since I've not
> worked with) then I'll try to spot the differences the way you guided me.
>
> 2017-09-11 20:30 GMT+02:00 Sebastian Silva <sebast...@fuentelibre.org>:
>
>> It seems there was a divergence in the use of sugar-web library with
>> Sugarizer vs Sugar.
>>
>> Look for differences in lib/sugar-web and compare with activities in
>> Sugarizer.
>>
>> Try to replace your lib/sugar-web with Sugarizer version and see if it
>> works.
>>
>> Hopefully they will be merged back together.
>>
>> Regards,
>>
>> Sebastian
>>
>> On 11/09/17 13:15, laurent bernabe wrote:
>>
>> Hello, everyone,
>>
>> I've fetched the activity icon from my Python activity HitTheBall, and
>> reused it in the new web activity I am building in order to create a Web
>> version.
>>
>> But when launching it from Sugarizer (I think the problem should be the
>> same in sugar-build, my icon design has a real problem) the icon appears as
>> black. I am trying to get inspired from the standard activities icons, but
>> without any success.
>>
>> This the current code of my activity-icon.svg
>>
>> 
>> -
>>
>> 
>> > http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; [
>> 
>> 
>> ]>
>>
>> >xmlns="http://www.w3.org/2000/svg;
>>width="55"
>>height="55"
>> >
>>   > fill="_color;" />
>>   >style="font-size:14px;font-style:normal;font-weight:normal;
>> line-height:125%;letter-spacing:0px;word-spacing:0px;
>> fill:_color;;fill-opacity:1;stroke:none;font-family:Sans"
>>x="8"
>>y="27"
>> >1+2
>> 
>>
>> 
>> --
>>
>> Thanks in advance if I can be helped
>>
>> --
>> Regards,
>>
>> Laurent Bernabé
>>
>> laurent.bern...@gmail.com
>>
>>
>> ___
>> Sugar-devel mailing 
>> listSugar-devel@lists.sugarlabs.orghttp://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>>
>
>
> --
> Cordialement,
>
> Laurent Bernabé
>
> laurent.bern...@gmail.com
>
>
>


-- 
Cordialement,

Laurent Bernabé

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


Re: [Sugar-devel] Why does my svg activity icon appears black ?

2017-09-11 Thread laurent bernabe
Thank you very much.

I'll first clone sugar-build again (it's been a while since I've not worked
with) then I'll try to spot the differences the way you guided me.

2017-09-11 20:30 GMT+02:00 Sebastian Silva <sebast...@fuentelibre.org>:

> It seems there was a divergence in the use of sugar-web library with
> Sugarizer vs Sugar.
>
> Look for differences in lib/sugar-web and compare with activities in
> Sugarizer.
>
> Try to replace your lib/sugar-web with Sugarizer version and see if it
> works.
>
> Hopefully they will be merged back together.
>
> Regards,
>
> Sebastian
>
> On 11/09/17 13:15, laurent bernabe wrote:
>
> Hello, everyone,
>
> I've fetched the activity icon from my Python activity HitTheBall, and
> reused it in the new web activity I am building in order to create a Web
> version.
>
> But when launching it from Sugarizer (I think the problem should be the
> same in sugar-build, my icon design has a real problem) the icon appears as
> black. I am trying to get inspired from the standard activities icons, but
> without any success.
>
> This the current code of my activity-icon.svg
>
> 
> -
>
> 
>  http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; [
> 
> 
> ]>
>
> xmlns="http://www.w3.org/2000/svg;
>width="55"
>height="55"
> >
>fill="_color;" />
>   style="font-size:14px;font-style:normal;font-weight:
> normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:_
> color;;fill-opacity:1;stroke:none;font-family:Sans"
>x="8"
>y="27"
> >1+2
> 
>
> 
> --
>
> Thanks in advance if I can be helped
>
> --
> Regards,
>
> Laurent Bernabé
>
> laurent.bern...@gmail.com
>
>
> ___
> Sugar-devel mailing 
> listSugar-devel@lists.sugarlabs.orghttp://lists.sugarlabs.org/listinfo/sugar-devel
>
>
>


-- 
Cordialement,

Laurent Bernabé

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


[Sugar-devel] Why does my svg activity icon appears black ?

2017-09-11 Thread laurent bernabe
Hello, everyone,

I've fetched the activity icon from my Python activity HitTheBall, and
reused it in the new web activity I am building in order to create a Web
version.

But when launching it from Sugarizer (I think the problem should be the
same in sugar-build, my icon design has a real problem) the icon appears as
black. I am trying to get inspired from the standard activities icons, but
without any success.

This the current code of my activity-icon.svg

-


http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; [


]>

http://www.w3.org/2000/svg;
   width="55"
   height="55"
>
  
  1+2


--

Thanks in advance if I can be helped

-- 
Regards,

Laurent Bernabé

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


Re: [Sugar-devel] The instruction page for developping activities

2017-09-11 Thread laurent bernabe
Thank you very much.
That's exactly what I was looking for.

2017-09-11 17:49 GMT+02:00 Walter Bender <walter.ben...@gmail.com>:

> https://github.com/sugarlabs/sugar-docs/blob/master/web-activity.md is a
> start.
>
> On Mon, Sep 11, 2017 at 9:00 AM, laurent bernabe <
> laurent.bern...@gmail.com> wrote:
>
>>
>> Hello, everyone,
>>
>> I would like to translate my own activity (HitTheBalls) from Python to a
>> web activity, but I forgot where I could find the developper instructions
>> page for making a web activity.
>>
>> Could somebody share me the link ?
>>
>> Regards
>>
>>
>> Laurent Bernabé
>>
>> laurent.bern...@gmail.com
>>
>> ___
>> Sugar-devel mailing list
>> Sugar-devel@lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>
>
> --
> Walter Bender
> Sugar Labs
> http://www.sugarlabs.org
> <http://www.sugarlabs.org>
>



-- 
Regards

Laurent Bernabé

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


[Sugar-devel] The instruction page for developping activities

2017-09-11 Thread laurent bernabe
Hello, everyone,

I would like to translate my own activity (HitTheBalls) from Python to a
web activity, but I forgot where I could find the developper instructions
page for making a web activity.

Could somebody share me the link ?

Regards


Laurent Bernabé

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


Re: [Sugar-devel] Where are the logs for my activity ?

2016-08-29 Thread laurent bernabe
I also noticed that I have already installed activities

   - MyActivity
   - TestWebActivities

which have the same bug.


So maybe it is related to the web activities ?

2016-08-29 17:04 GMT+02:00 laurent bernabe <laurent.bern...@gmail.com>:

> I forgot to say that this project is under Xubuntu 16.04 LTS 64 bits
> Maybe that can explain this ...
>
> 2016-08-29 16:54 GMT+02:00 laurent bernabe <laurent.bern...@gmail.com>:
>
>> Oups : did not think about it
>> Here it is :
>>
>> Regards
>>
>> Laurent Bernabé
>>
>> laurent.bern...@gmail.com
>>
>
>
>
> --
> Cordialement,
>
> Laurent Bernabé
>
> laurent.bern...@gmail.com
>



-- 
Cordialement,

Laurent Bernabé

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


Re: [Sugar-devel] Where are the logs for my activity ?

2016-08-29 Thread laurent bernabe
I forgot to say that this project is under Xubuntu 16.04 LTS 64 bits
Maybe that can explain this ...

2016-08-29 16:54 GMT+02:00 laurent bernabe <laurent.bern...@gmail.com>:

> Oups : did not think about it
> Here it is :
>
> Regards
>
> Laurent Bernabé
>
> laurent.bern...@gmail.com
>



-- 
Cordialement,

Laurent Bernabé

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


Re: [Sugar-devel] Where are the logs for my activity ?

2016-08-29 Thread laurent bernabe
Oups : did not think about it
Here it is :

Regards

Laurent Bernabé

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


Re: [Sugar-devel] Where are the logs for my activity ?

2016-08-29 Thread laurent bernabe
I have the log content, but copying it in the clipboard let it in the Sugar
Emulator Clipboard, so that I can't pass it to you in this thread.
(And I can't launch browse activity, as I removed it for sugar build to
work).

Any workaround ?

Regards
Laurent Bernabé

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


Re: [Sugar-devel] Where are the logs for my activity ?

2016-08-29 Thread laurent bernabe
Got it (had first to integrate it in the olpc desktop icons).

Thanks.

2016-08-29 16:20 GMT+02:00 Ütkarsh Tiwari <iamutkarshtiw...@gmail.com>:

> Hi,
>  You can check for your activity logs inside 'Log' activity which
> comes pre-installed with sugarBuild.
>
> Regards,
> Ütkarsh Tiwari
>
> On Aug 29, 2016 7:48 PM, "laurent bernabe" <laurent.bern...@gmail.com>
> wrote:
>
>> Hi everyone,
>>
>> I started a custom activity with sugarBuild.
>> I could start it but the screen has nothing into it.
>>
>> So I would like to check the logs for my activity, but I don't know where
>> I can find it.
>>
>> I gave you my activity/activity.info file for you to see if the
>> bundle_id could be the reason.
>>
>> --
>> Regards,
>>
>> Laurent Bernabé
>>
>> laurent.bern...@gmail.com
>>
>> ___
>> Sugar-devel mailing list
>> Sugar-devel@lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>


-- 
Cordialement,

Laurent Bernabé

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


[Sugar-devel] Where are the logs for my activity ?

2016-08-29 Thread laurent bernabe
Hi everyone,

I started a custom activity with sugarBuild.
I could start it but the screen has nothing into it.

So I would like to check the logs for my activity, but I don't know where I
can find it.

I gave you my activity/activity.info file for you to see if the bundle_id
could be the reason.

-- 
Regards,

Laurent Bernabé

laurent.bern...@gmail.com


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


[Sugar-devel] Has anyone used Sugar Build (volo) with TypeScript ?

2016-08-29 Thread laurent bernabe
Hi everyone,

I wonder if it is easy to use Microsoft's TypeScript with a sugar build
(osbuild toolchain) project.
What could be the easier way to integrate this language with osbuild ?

Regards

Laurent Bernabé

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


Re: [Sugar-devel] Cannot run shell with osbuild on xubuntu

2016-08-29 Thread laurent bernabe
Thanks,

this solved my issue

2016-08-28 23:29 GMT+02:00 Eli Heuer <elihe...@gmail.com>:

> Removing `browse`from `/build/modules.json` will fix this problem:
>
> {
> "name": "browse",
> "repo": "https://github.com/sugarlabs/browse-activity.git;,
> "clean_stamp": 1
> },
>
> On Thu, Aug 25, 2016 at 11:05 PM laurent bernabe <
> laurent.bern...@gmail.com> wrote:
>
>> Hello everyone,
>>
>> I managed to launch the osbuild shell on my computer and to launch pull
>> command inside it. But the run command does not work :
>>
>> Here is the error stacktrace
>>
>> 
>> ---
>> [osbuild sugar-build]$ run
>>
>> = Building =
>>
>> * Building automake
>> * Building gwebsockets
>> * Building sugar-docs
>> * Building sugar-base
>> * Building sugar-toolkit
>> * Building sugar-toolkit-gtk3
>> * Building sugar
>> * Building sugar-artwork
>> * Building sugar-datastore
>> * Building sugar-runner
>> * Building sugar-web
>> * Building sugar-web-test
>> * Building sugar-web-template
>> * Building docker
>> * Building browse
>>
>> Command failed: python2.7 /home/broot/sugar-build/browse/setup.py
>> install --prefix /home/broot/sugar-build/build/out/install
>>
>> Install /home/broot/sugar-build/browse/locale/bi/activity.linfo to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/locale/bi/activity.linfo.
>> Install /home/broot/sugar-build/browse/activity/activity.info to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/activity/activity.info.
>> Install /home/broot/sugar-build/browse/locale/na/LC_MESSAGES/o
>> rg.laptop.WebActivity.mo to /home/broot/sugar-build/build/
>> out/install/share/locale/na/LC_MESSAGES/org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/mn/activity.linfo to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/locale/mn/activity.linfo.
>> Install /home/broot/sugar-build/browse/po/wa.po to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/po/wa.po.
>> Install /home/broot/sugar-build/browse/po/zh_HK.po to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/po/zh_HK.po.
>> Install /home/broot/sugar-build/browse/locale/sm/LC_MESSAGES/o
>> rg.laptop.WebActivity.mo to /home/broot/sugar-build/build/
>> out/install/share/locale/sm/LC_MESSAGES/org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/ml/activity.linfo to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/locale/ml/activity.linfo.
>> Install /home/broot/sugar-build/browse/po/ta.po to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/po/ta.po.
>> Install /home/broot/sugar-build/browse/locale/km/activity.linfo to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/locale/km/activity.linfo.
>> Install /home/broot/sugar-build/browse/locale/en_GB/LC_MESSAGES/
>> org.laptop.WebActivity.mo to /home/broot/sugar-build/build/
>> out/install/share/locale/en_GB/LC_MESSAGES/org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/po/am.po to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/po/am.po.
>> Install /home/broot/sugar-build/browse/locale/da/LC_MESSAGES/o
>> rg.laptop.WebActivity.mo to /home/broot/sugar-build/build/
>> out/install/share/locale/da/LC_MESSAGES/org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/fil/LC_MESSAGES/
>> org.laptop.WebActivity.mo to /home/broot/sugar-build/build/
>> out/install/share/locale/fil/LC_MESSAGES/org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/am/LC_MESSAGES/o
>> rg.laptop.WebActivity.mo to /home/broot/sugar-build/build/
>> out/install/share/locale/am/LC_MESSAGES/org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/locale/bg/LC_MESSAGES/o
>> rg.laptop.WebActivity.mo to /home/broot/sugar-build/build/
>> out/install/share/locale/bg/LC_MESSAGES/org.laptop.WebActivity.mo.
>> Install /home/broot/sugar-build/browse/po/mg.po to
>> /home/broot/sugar-build/build/out/install/share/sugar/
>> activities/Browse.activity/po/mg.po.
>> Install /home/broot/sugar-build/browse/locale/hus/LC_MESSAGES/
>> org.laptop.

[Sugar-devel] Fwd: Cannot run shell with osbuild on xubuntu

2016-08-29 Thread laurent bernabe
Sorry clicked on send, and not on send to all ...
-- Forwarded message --
From: laurent bernabe <laurent.bern...@gmail.com>
Date: 2016-08-29 7:57 GMT+02:00
Subject: Re: [Sugar-devel] Cannot run shell with osbuild on xubuntu
To: Eli Heuer <elihe...@gmail.com>


Hi, thanks to all

So should I patch the code myself (locally) or should I wait 2/3 days or
more and do a pull command ?

Regards

2016-08-29 1:21 GMT+02:00 Eli Heuer <elihe...@gmail.com>:

> Utkarsh Tiwari: It looks like you have  already made an issue about this
> on github/sugar-build but it has been closed (#39), should I make a new
> issue referencing this e-mail or reopen #39?
>
> Currently, the 'setup a development environment' instructions are not
> working as described here: https://developer.sugarl
> abs.org/dev-environment.md.html
>
> -Eli
>
> On Sun, Aug 28, 2016 at 6:13 PM Ütkarsh Tiwari <iamutkarshtiw...@gmail.com>
> wrote:
>
>> Seems like we have been facing issues with the latest 'Browse' release.
>>
>> Regards,
>> Utkarsh Tiwari
>>
>> On Mon, Aug 29, 2016 at 2:59 AM, Eli Heuer <elihe...@gmail.com> wrote:
>>
>>> Removing `browse`from `/build/modules.json` will fix this problem:
>>>
>>> {
>>> "name": "browse",
>>> "repo": "https://github.com/sugarlabs/browse-activity.git;,
>>> "clean_stamp": 1
>>> },
>>>
>>> On Thu, Aug 25, 2016 at 11:05 PM laurent bernabe <
>>> laurent.bern...@gmail.com> wrote:
>>>
>>>> Hello everyone,
>>>>
>>>> I managed to launch the osbuild shell on my computer and to launch pull
>>>> command inside it. But the run command does not work :
>>>>
>>>> Here is the error stacktrace
>>>>
>>>> 
>>>> ---
>>>> [osbuild sugar-build]$ run
>>>>
>>>> = Building =
>>>>
>>>> * Building automake
>>>> * Building gwebsockets
>>>> * Building sugar-docs
>>>> * Building sugar-base
>>>> * Building sugar-toolkit
>>>> * Building sugar-toolkit-gtk3
>>>> * Building sugar
>>>> * Building sugar-artwork
>>>> * Building sugar-datastore
>>>> * Building sugar-runner
>>>> * Building sugar-web
>>>> * Building sugar-web-test
>>>> * Building sugar-web-template
>>>> * Building docker
>>>> * Building browse
>>>>
>>>> Command failed: python2.7 /home/broot/sugar-build/browse/setup.py
>>>> install --prefix /home/broot/sugar-build/build/out/install
>>>>
>>>> Install /home/broot/sugar-build/browse/locale/bi/activity.linfo to
>>>> /home/broot/sugar-build/build/out/install/share/sugar/activi
>>>> ties/Browse.activity/locale/bi/activity.linfo.
>>>> Install /home/broot/sugar-build/browse/activity/activity.info to
>>>> /home/broot/sugar-build/build/out/install/share/sugar/activi
>>>> ties/Browse.activity/activity/activity.info.
>>>> Install /home/broot/sugar-build/browse/locale/na/LC_MESSAGES/org.
>>>> laptop.WebActivity.mo to /home/broot/sugar-build/build/
>>>> out/install/share/locale/na/LC_MESSAGES/org.laptop.WebActivity.mo.
>>>> Install /home/broot/sugar-build/browse/locale/mn/activity.linfo to
>>>> /home/broot/sugar-build/build/out/install/share/sugar/activi
>>>> ties/Browse.activity/locale/mn/activity.linfo.
>>>> Install /home/broot/sugar-build/browse/po/wa.po to
>>>> /home/broot/sugar-build/build/out/install/share/sugar/activi
>>>> ties/Browse.activity/po/wa.po.
>>>> Install /home/broot/sugar-build/browse/po/zh_HK.po to
>>>> /home/broot/sugar-build/build/out/install/share/sugar/activi
>>>> ties/Browse.activity/po/zh_HK.po.
>>>> Install /home/broot/sugar-build/browse/locale/sm/LC_MESSAGES/org.
>>>> laptop.WebActivity.mo to /home/broot/sugar-build/build/
>>>> out/install/share/locale/sm/LC_MESSAGES/org.laptop.WebActivity.mo.
>>>> Install /home/broot/sugar-build/browse/locale/ml/activity.linfo to
>>>> /home/broot/sugar-build/build/out/install/share/sugar/activi
>>>> ties/Browse.activity/locale/ml/activity.linfo.
>>>> Install /home/broot/sugar-build/browse/po/ta.po to
>>>> /home/broot/sugar-build/build/out/install/share/sugar/activi
>>>> ties/Browse.activity/po/ta.po.
>>>> Install /home/broo

[Sugar-devel] Cannot run shell with osbuild on xubuntu

2016-08-25 Thread laurent bernabe
Hello everyone,

I managed to launch the osbuild shell on my computer and to launch pull
command inside it. But the run command does not work :

Here is the error stacktrace

---
[osbuild sugar-build]$ run

= Building =

* Building automake
* Building gwebsockets
* Building sugar-docs
* Building sugar-base
* Building sugar-toolkit
* Building sugar-toolkit-gtk3
* Building sugar
* Building sugar-artwork
* Building sugar-datastore
* Building sugar-runner
* Building sugar-web
* Building sugar-web-test
* Building sugar-web-template
* Building docker
* Building browse

Command failed: python2.7 /home/broot/sugar-build/browse/setup.py install
--prefix /home/broot/sugar-build/build/out/install

Install /home/broot/sugar-build/browse/locale/bi/activity.linfo to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/locale/bi/activity.linfo.
Install /home/broot/sugar-build/browse/activity/activity.info to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/activity/
activity.info.
Install /home/broot/sugar-build/browse/locale/na/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/na/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/locale/mn/activity.linfo to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/locale/mn/activity.linfo.
Install /home/broot/sugar-build/browse/po/wa.po to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/wa.po.
Install /home/broot/sugar-build/browse/po/zh_HK.po to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/zh_HK.po.
Install /home/broot/sugar-build/browse/locale/sm/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/sm/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/locale/ml/activity.linfo to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/locale/ml/activity.linfo.
Install /home/broot/sugar-build/browse/po/ta.po to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/ta.po.
Install /home/broot/sugar-build/browse/locale/km/activity.linfo to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/locale/km/activity.linfo.
Install /home/broot/sugar-build/browse/locale/en_GB/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/en_GB/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/po/am.po to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/am.po.
Install /home/broot/sugar-build/browse/locale/da/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/da/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/locale/fil/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/fil/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/locale/am/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/am/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/locale/bg/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/bg/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/po/mg.po to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/po/mg.po.
Install /home/broot/sugar-build/browse/locale/hus/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/hus/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/locale/cs/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/cs/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/locale/son/activity.linfo to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/locale/son/activity.linfo.
Install /home/broot/sugar-build/browse/downloadmanager.py to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/downloadmanager.py.
Install /home/broot/sugar-build/browse/locale/ta/activity.linfo to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/locale/ta/activity.linfo.
Install /home/broot/sugar-build/browse/locale/mk/LC_MESSAGES/
org.laptop.WebActivity.mo to
/home/broot/sugar-build/build/out/install/share/locale/mk/LC_MESSAGES/
org.laptop.WebActivity.mo.
Install /home/broot/sugar-build/browse/data/error_page.tmpl to
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/data/error_page.tmpl.
Install 

Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-12-11 Thread laurent bernabe
Hi,

I can confirm you that all required libraries (text.js, domReady.js and
webL10n.js) are now in the project folder.

But even in sugarizer, my activity doesn't close.

Here is the browser errors :

__
Invalid url for websocket ws://localhost:undefined (index.html:1)
Syntax error: DOM exception 12 : Invalid or illegal string was specified
(sugar.js:19)
__

Regards

2014-12-11 15:12 GMT+01:00 Lionel Laské lio...@olpc-france.org:


 Could you confirm that missing js files now appears in your repository ?
 Do you test it both on Sugar and in Sugarizer ?
 Do you have any error in the log ? Browser log in Sugarizer or using
 ctrl+shift+i in Sugar.

Lionel.


 2014-12-11 0:34 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Hi,

 so I've done a git pull (simply calling git pull on my project root
 directory), but I've still got problems for closing the activity.

 As for the project creation, i've launched the command written in the
 documentation

 ___

  volo create simple-tictactoe-activity ./sugar-web-template

 __

 Regards

 2014-12-10 12:46 GMT+01:00 Lionel Laské lio...@olpc-france.org:


 Yes, you need to git pull from your local repository to see my changes.

 Regarding missing libraries, I'm not sure to understand why. I guessed
 that you've done a wrong copy of the sugar-web-template but libraries are
 not in the repository [1]. So not sure that a pull on sugar-build could
 change the problem.
 However, how do you create your activity ? Do you really call volo
 create my-activity ./sugar-web-template like described here [2] ?

   Lionel.

 [1] https://github.com/sugarlabs/sugar-web-template
 [2] https://github.com/sugarlabs/sugar-docs/blob/master/activity.md

 2014-12-09 22:13 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Hi Lionel,

 Thank you very much, I've merged your pull request.
 Do I need to pull the changes from my repository ? (I am asking, as it
 is my very first pull merge from a repository)

 As for the missing libraries, do you advice me to do a pull on
 sugar-build, so that one new activity won't miss these ?

 Regards

 2014-12-09 22:02 GMT+01:00 Lionel Laské lio...@olpc-france.org:


 Hi Laurent,

 I've worked on your icon issue and solved it (sent you a pull request
 [1]).
 Shortly, some needed js library was missing: domReady.js, text.js and
 webL10n.js.
 It's why it doesn't work.
 I've also replaced the sugar-web library version by the one working
 both on Sugar and Sugarizer.
 Tested on Sugarizer, it works now.

 Best regards from France.

   Lionel.

 [1] https://github.com/loloof64/olpc-simple-tictactoe-activity/pull/1





-- 
Laurent Bernabé

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


Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-12-11 Thread laurent bernabe
Hi, I've created a new github project for hosting my sugar build
environment :

https://github.com/loloof64/my_sugarizer_environment.git

But as you can see, I did not manage to push the simple tic tac toe
activity.

I've tried to add it (git add activities/simple-tictactoe-activity/*) but I
got an error message :

___
fatal: Le chemin 'activities/simple-tictactoe-activity/activity' est dans
le sous-module 'activities/simple-tictactoe-activity'
_

Regards

2014-12-11 22:00 GMT+01:00 Lionel Laské lio...@olpc-france.org:


 Strange. Perfectly work here in Sugarizer.
 Don't understand your error log:
 - The first mean that you're not in Sugarizer (websocket is the way to
 communicate between sugar-web in Sugar and Sugar python),
 - I don't understand what is sugar.js file. There is now such file
 neither in your repository, neither in Sugarizer, neither in sugar-web...
 Could share your whole Sugarizer environment somewhere ?

  Lionel.



 2014-12-11 17:01 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Hi,

 I can confirm you that all required libraries (text.js, domReady.js and
 webL10n.js) are now in the project folder.

 But even in sugarizer, my activity doesn't close.

 Here is the browser errors :

 __
 Invalid url for websocket ws://localhost:undefined (index.html:1)
 Syntax error: DOM exception 12 : Invalid or illegal string was specified
 (sugar.js:19)
 __

 Regards





-- 
Laurent Bernabé

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


Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-12-10 Thread laurent bernabe
Hi,

so I've done a git pull (simply calling git pull on my project root
directory), but I've still got problems for closing the activity.

As for the project creation, i've launched the command written in the
documentation

___

 volo create simple-tictactoe-activity ./sugar-web-template

__

Regards

2014-12-10 12:46 GMT+01:00 Lionel Laské lio...@olpc-france.org:


 Yes, you need to git pull from your local repository to see my changes.

 Regarding missing libraries, I'm not sure to understand why. I guessed
 that you've done a wrong copy of the sugar-web-template but libraries are
 not in the repository [1]. So not sure that a pull on sugar-build could
 change the problem.
 However, how do you create your activity ? Do you really call volo create
 my-activity ./sugar-web-template like described here [2] ?

   Lionel.

 [1] https://github.com/sugarlabs/sugar-web-template
 [2] https://github.com/sugarlabs/sugar-docs/blob/master/activity.md

 2014-12-09 22:13 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Hi Lionel,

 Thank you very much, I've merged your pull request.
 Do I need to pull the changes from my repository ? (I am asking, as it is
 my very first pull merge from a repository)

 As for the missing libraries, do you advice me to do a pull on
 sugar-build, so that one new activity won't miss these ?

 Regards

 2014-12-09 22:02 GMT+01:00 Lionel Laské lio...@olpc-france.org:


 Hi Laurent,

 I've worked on your icon issue and solved it (sent you a pull request
 [1]).
 Shortly, some needed js library was missing: domReady.js, text.js and
 webL10n.js.
 It's why it doesn't work.
 I've also replaced the sugar-web library version by the one working both
 on Sugar and Sugarizer.
 Tested on Sugarizer, it works now.

 Best regards from France.

   Lionel.

 [1] https://github.com/loloof64/olpc-simple-tictactoe-activity/pull/1

 2014-12-03 15:40 GMT+01:00 sugar-devel-requ...@lists.sugarlabs.org:

 Date: Wed, 03 Dec 2014 10:50:05 +
 From: Iain Brown Douglas i...@browndouglas.plus.com
 To: laurent bernabe laurent.bern...@gmail.com
 Cc: Sugar Devel sugar-devel@lists.sugarlabs.org, Lionel Lask?
 lio...@olpc-france.org
 Subject: Re: [Sugar-devel] Starting a new web activity : problem when
 closing activity, and with icon design
 Message-ID: 1417603805.3476.2.camel@vey-waldorf
 Content-Type: text/plain; charset=UTF-8

 You could eliminate that by substituting a known working .svg borrowed
 from another activity.

 Iain
 On Wed, 2014-12-03 at 11:16 +0100, laurent bernabe wrote:
  My intuition is that I've misued stroke and fill entities, though I
  processed the icon with the sugariconify script.
  Indeed, in Sugarizer, my activity icon is different than the others
  (screenshot provided).
 
 
  Regards
 
  2014-12-03 1:00 GMT+01:00 laurent bernabe laurent.bern...@gmail.com
 :
  Hi,
 
 
  I've replaced the content of
 
  sugar-build/activities/simple-tictactoe-activity/lib/sugar-web folder
 with the sugar-build/activities/ActivityTemplate/lib/sugar-web folder.
  But I still can't close my application with the stop button.
 
 
  Even after having restarted the chrome navigator (keeping the
  flag --allow-access-from-files).
 
 
  Regards
 
  2014-12-02 19:04 GMT+01:00 Lionel Lask?
  lio...@olpc-france.org:
  It's a nice first start.
  Now replace your lib/sugar-web directory with the one
  from lib/ActivityTemplate directory.
  It should work.
 
 
Lionel


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




 --
 Laurent Bernabé

 laurent.bern...@gmail.com





-- 
Laurent Bernabé

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


[Sugar-devel] Fwd: Starting a new web activity : problem when closing activity, and with icon design

2014-12-09 Thread laurent bernabe
-- Forwarded message --
From: laurent bernabe laurent.bern...@gmail.com
Date: 2014-12-09 22:13 GMT+01:00
Subject: Re: [Sugar-devel] Starting a new web activity : problem when
closing activity, and with icon design
To: Lionel Laské lio...@olpc-france.org


Hi Lionel,

Thank you very much, I've merged your pull request.
Do I need to pull the changes from my repository ? (I am asking, as it is
my very first pull merge from a repository)

As for the missing libraries, do you advice me to do a pull on sugar-build,
so that one new activity won't miss these ?

Regards

2014-12-09 22:02 GMT+01:00 Lionel Laské lio...@olpc-france.org:


 Hi Laurent,

 I've worked on your icon issue and solved it (sent you a pull request [1]).
 Shortly, some needed js library was missing: domReady.js, text.js and
 webL10n.js.
 It's why it doesn't work.
 I've also replaced the sugar-web library version by the one working both
 on Sugar and Sugarizer.
 Tested on Sugarizer, it works now.

 Best regards from France.

   Lionel.

 [1] https://github.com/loloof64/olpc-simple-tictactoe-activity/pull/1

 2014-12-03 15:40 GMT+01:00 sugar-devel-requ...@lists.sugarlabs.org:

 Date: Wed, 03 Dec 2014 10:50:05 +
 From: Iain Brown Douglas i...@browndouglas.plus.com
 To: laurent bernabe laurent.bern...@gmail.com
 Cc: Sugar Devel sugar-devel@lists.sugarlabs.org, Lionel Lask?
 lio...@olpc-france.org
 Subject: Re: [Sugar-devel] Starting a new web activity : problem when
 closing activity, and with icon design
 Message-ID: 1417603805.3476.2.camel@vey-waldorf
 Content-Type: text/plain; charset=UTF-8

 You could eliminate that by substituting a known working .svg borrowed
 from another activity.

 Iain
 On Wed, 2014-12-03 at 11:16 +0100, laurent bernabe wrote:
  My intuition is that I've misued stroke and fill entities, though I
  processed the icon with the sugariconify script.
  Indeed, in Sugarizer, my activity icon is different than the others
  (screenshot provided).
 
 
  Regards
 
  2014-12-03 1:00 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:
  Hi,
 
 
  I've replaced the content of
 
  sugar-build/activities/simple-tictactoe-activity/lib/sugar-web folder
 with the sugar-build/activities/ActivityTemplate/lib/sugar-web folder.
  But I still can't close my application with the stop button.
 
 
  Even after having restarted the chrome navigator (keeping the
  flag --allow-access-from-files).
 
 
  Regards
 
  2014-12-02 19:04 GMT+01:00 Lionel Lask?
  lio...@olpc-france.org:
  It's a nice first start.
  Now replace your lib/sugar-web directory with the one
  from lib/ActivityTemplate directory.
  It should work.
 
 
Lionel


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




-- 
Laurent Bernabé

laurent.bern...@gmail.com



-- 
Laurent Bernabé

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


Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-12-03 Thread laurent bernabe
Hi

I am aware this could be the solution.
Meanwhile, I would like to use a custom icon, as the idea behind the icon I
designed is more related to my activity.

In fact :

   1. In a first time, I used black lines for the cell lines, and blue/red
   colors for circles and crosses
   2. I replaced all tokens fill color (circles and crosses) by green color
   3. Then I tried to follow the sugar icon guidelness, replacing black
   color with stroke-color entity, and green color with fill-color entity,
   first manually, then removing all changes and trying with sugariconify
   script instead.

So my guess is that I did the wrong choice for fill and stroke colors, when
creating entities.

Regards

2014-12-03 11:50 GMT+01:00 Iain Brown Douglas i...@browndouglas.plus.com:

 You could eliminate that by substituting a known working .svg borrowed
 from another activity.

 Iain
 On Wed, 2014-12-03 at 11:16 +0100, laurent bernabe wrote:
  My intuition is that I've misued stroke and fill entities, though I
  processed the icon with the sugariconify script.
  Indeed, in Sugarizer, my activity icon is different than the others
  (screenshot provided).
 
 
  Regards
 
  2014-12-03 1:00 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:
  Hi,
 
 
  I've replaced the content of
  sugar-build/activities/simple-tictactoe-activity/lib/sugar-web
 folder with the sugar-build/activities/ActivityTemplate/lib/sugar-web
 folder.
  But I still can't close my application with the stop button.
 
 
  Even after having restarted the chrome navigator (keeping the
  flag --allow-access-from-files).
 
 
  Regards
 
  2014-12-02 19:04 GMT+01:00 Lionel Laské
  lio...@olpc-france.org:
  It's a nice first start.
  Now replace your lib/sugar-web directory with the one
  from lib/ActivityTemplate directory.
  It should work.
 
 
Lionel
 
  2014-12-02 11:04 GMT+01:00 laurent bernabe
  laurent.bern...@gmail.com:
  Hi again,
 
 
  Restarting my computer, I was finally able to
  run sugarizer in my chrome instance.
  Meanwhile, I can't close my application
  (Simple Tic Tagardsc Toe).
 
 
  regards
 
  2014-12-01 18:42 GMT+01:00 laurent bernabe
  laurent.bern...@gmail.com:
  I am just using the modified chrome
  instance (with allow access from
  file), but I am still getting the same
  errors in the navigator console.
 
 
 
 
  Regards
 
  2014-12-01 15:57 GMT+01:00 Lionel
  Laské lio...@olpc-france.org:
 
 
  2014-12-01 15:25 GMT+01:00
  laurent bernabe
  laurent.bern...@gmail.com:
 
 
  So it seems that the
  option is not taken
  into account from my
  Chrome instance.
  I will look for
  another way (like in
  settings:// ?) to set
  this option.
 
 
  Ensure that no other instance
  is running. If one instance is
  running, it's not possible to
  start one another with another
  setting.
 
 
  Lionel.
 
 
 
 
  --
  Laurent Bernabé
 
 
  laurent.bern...@gmail.com
 
 
 
 
  --
  Laurent Bernabé
 
 
  laurent.bern...@gmail.com
 
 
 
 
 
 
  --
  Laurent Bernabé
 
 
  laurent.bern...@gmail.com
 
 
 
 
  --
  Laurent Bernabé
 
 
  laurent.bern...@gmail.com
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel





-- 
Laurent Bernabé

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


Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-12-02 Thread laurent bernabe
Hi again,

Restarting my computer, I was finally able to run sugarizer in my chrome
instance.
Meanwhile, I can't close my application (Simple Tic Tagardsc Toe).

regards

2014-12-01 18:42 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 I am just using the modified chrome instance (with allow access from
 file), but I am still getting the same errors in the navigator console.


 Regards

 2014-12-01 15:57 GMT+01:00 Lionel Laské lio...@olpc-france.org:



 2014-12-01 15:25 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:


 So it seems that the option is not taken into account from my Chrome
 instance.
 I will look for another way (like in settings:// ?) to set this option.

 Ensure that no other instance is running. If one instance is running,
 it's not possible to start one another with another setting.

 Lionel.




 --
 Laurent Bernabé

 laurent.bern...@gmail.com




-- 
Laurent Bernabé

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


Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-12-02 Thread laurent bernabe
Hi,

I've replaced the content of
sugar-build/activities/simple-tictactoe-activity/lib/sugar-web folder
with the sugar-build/activities/ActivityTemplate/lib/sugar-web folder.
But I still can't close my application with the stop button.

Even after having restarted the chrome navigator (keeping the flag
--allow-access-from-files).

Regards

2014-12-02 19:04 GMT+01:00 Lionel Laské lio...@olpc-france.org:

 It's a nice first start.
 Now replace your lib/sugar-web directory with the one from
 lib/ActivityTemplate directory.
 It should work.

   Lionel

 2014-12-02 11:04 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Hi again,

 Restarting my computer, I was finally able to run sugarizer in my chrome
 instance.
 Meanwhile, I can't close my application (Simple Tic Tagardsc Toe).

 regards

 2014-12-01 18:42 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 I am just using the modified chrome instance (with allow access from
 file), but I am still getting the same errors in the navigator console.


 Regards

 2014-12-01 15:57 GMT+01:00 Lionel Laské lio...@olpc-france.org:



 2014-12-01 15:25 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:


 So it seems that the option is not taken into account from my Chrome
 instance.
 I will look for another way (like in settings:// ?) to set this option.

 Ensure that no other instance is running. If one instance is running,
 it's not possible to start one another with another setting.

 Lionel.




 --
 Laurent Bernabé

 laurent.bern...@gmail.com




 --
 Laurent Bernabé

 laurent.bern...@gmail.com





-- 
Laurent Bernabé

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


Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-11-30 Thread laurent bernabe
Thank you for your answer.

I've installed the official ubuntu package for Chrome, with the command

sudo dpkg -i chrome_pakage

So I am able to launch chrome from the Kubuntu menu icon.

Meanwhile, I get an error when I launch it from terminal (problem with
libudev)
___

$ /opt/google/chrome$ ./chrome --allow-file-access-from-files
./chrome: error while loading shared libraries: libudev.so.0: cannot open
shared object file: No such file or directory


Regards


2014-11-29 21:43 GMT+01:00 Lionel Laské lio...@olpc-france.org:


 Hi Laurent,

 Could you try your activity in Sugarizer Client ?
 Just change the sugar web library to get the one compatible both with
 Sugar/Sugarizer and it should work.
 Instruction here [1] and here [2].

Lionel.

 [1] http://developer.sugarlabs.org/activity.md.html
 [2] http://sugarizer.org/#client


 Date: Fri, 28 Nov 2014 23:10:47 +0100
 From: laurent bernabe laurent.bern...@gmail.com
 To: Gonzalo Odiard godi...@sugarlabs.org
 Cc: Sugar Devel sugar-devel@lists.sugarlabs.org
 Subject: Re: [Sugar-devel] Starting a new web activity : problem when
 closing activity, and with icon design
 Message-ID:
 CAH8mndKz6f7-kSnTZJqWujuPkoTi7FMX=
 bfwkjm6qse5o00...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8

 Hi,

 I've just pulled the latest version of sugar-build, but I still can't
 close
 the activity.

 My icon does not shows up well on the home view : no token inside the
 grid,
 it seems empty.

 Regards

 2014-11-28 21:21 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

  Be sure the version of sugar-web included in your activity is updated.
  A error avoiding close the activity was solved recently.
 
  Gonzalo
 
 
  On Fri, Nov 28, 2014 at 11:00 AM, laurent bernabe 
  laurent.bern...@gmail.com wrote:
 
 
  Hello everyone,
 
  I am starting a new activity in order to get started with Web Actvity
  development : a simple tic tac toe : github project
  https://github.com/loloof64/olpc-simple-tictactoe-activity
 
  But when I launch the activity from inside sugar-build :
 
 - the icon design seems to be weird, though I've tried to follow
 advices at http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar
 - I don't manage to close the application
 
  I've sent the log file that I could read in
  sugar-build/home/dotsugar/default/logs, but I don't understand it.
 
  What is the best workaround ?
 
  Regards
 
  --
  Laurent Bernab?
 
  laurent.bern...@gmail.com
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 
 
 
  --
  Gonzalo Odiard
 
  SugarLabs - Software for children learning
 



 --
 Laurent Bernab?

 laurent.bern...@gmail.com



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




-- 
Laurent Bernabé

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


Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-11-30 Thread laurent bernabe
Thank you, I could launch a chrome session with file access with the second
link (Cliff's answer).
Now I am going to try my activity into Sugarizer, and will report issues if
anyone occurs.

Regards

2014-11-30 15:04 GMT+01:00 Iain Brown Douglas i...@browndouglas.plus.com:

 try


 http://askubuntu.com/questions/369310/how-to-fix-missing-libudev-so-0-for-chrome-to-start-again

 or


 http://askubuntu.com/questions/288821/how-do-i-resolve-a-cannot-open-shared-object-file-libudev-so-0-error

 On Sun, 2014-11-30 at 12:02 +0100, laurent bernabe wrote:
  Thank you for your answer.
 
 
  I've installed the official ubuntu package for Chrome, with the
  command
 
 
  sudo dpkg -i chrome_pakage
 
 
  So I am able to launch chrome from the Kubuntu menu icon.
 
 
  Meanwhile, I get an error when I launch it from terminal (problem with
  libudev)
 
 ___
 
 
  $ /opt/google/chrome$ ./chrome --allow-file-access-from-files
  ./chrome: error while loading shared libraries: libudev.so.0: cannot
  open shared object file: No such file or directory
 
 
 
 
  Regards
 
 
 
  2014-11-29 21:43 GMT+01:00 Lionel Laské lio...@olpc-france.org:
 
 
  Hi Laurent,
 
 
  Could you try your activity in Sugarizer Client ?
  Just change the sugar web library to get the one compatible
  both with Sugar/Sugarizer and it should work.
  Instruction here [1] and here [2].
 
 
 Lionel.
 
 
  [1] http://developer.sugarlabs.org/activity.md.html
  [2] http://sugarizer.org/#client
 
 
 
  Date: Fri, 28 Nov 2014 23:10:47 +0100
  From: laurent bernabe laurent.bern...@gmail.com
  To: Gonzalo Odiard godi...@sugarlabs.org
  Cc: Sugar Devel sugar-devel@lists.sugarlabs.org
  Subject: Re: [Sugar-devel] Starting a new web
  activity : problem when
  closing activity, and with icon design
  Message-ID:
 
  CAH8mndKz6f7-kSnTZJqWujuPkoTi7FMX=
 bfwkjm6qse5o00...@mail.gmail.com
  Content-Type: text/plain; charset=utf-8
 
  Hi,
 
  I've just pulled the latest version of sugar-build,
  but I still can't close
  the activity.
 
  My icon does not shows up well on the home view : no
  token inside the grid,
  it seems empty.
 
  Regards
 
  2014-11-28 21:21 GMT+01:00 Gonzalo Odiard
  godi...@sugarlabs.org:
 
   Be sure the version of sugar-web included in your
  activity is updated.
   A error avoiding close the activity was solved
  recently.
  
   Gonzalo
  
  
   On Fri, Nov 28, 2014 at 11:00 AM, laurent bernabe 
   laurent.bern...@gmail.com wrote:
  
  
   Hello everyone,
  
   I am starting a new activity in order to get
  started with Web Actvity
   development : a simple tic tac toe : github project
  
  
 https://github.com/loloof64/olpc-simple-tictactoe-activity
  
   But when I launch the activity from inside
  sugar-build :
  
  - the icon design seems to be weird, though I've
  tried to follow
  advices at
  http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar
  - I don't manage to close the application
  
   I've sent the log file that I could read in
   sugar-build/home/dotsugar/default/logs, but I
  don't understand it.
  
   What is the best workaround ?
  
   Regards
  
   --
   Laurent Bernab?
  
   laurent.bern...@gmail.com
  
   ___
   Sugar-devel mailing list
   Sugar-devel@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/sugar-devel
  
  
  
  
   --
   Gonzalo Odiard
  
   SugarLabs - Software for children learning
  
 
 
 
  --
  Laurent Bernab?
 
  laurent.bern...@gmail.com

Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-11-30 Thread laurent bernabe
Hello again,

I've just copied my activity inside Sugarizer, updated activity.json, but I
can't launch any activity inside my Sugarizer session (I've joined a
screenshot).
Also, I don't know if I can find a log file so that I could join it to the
mail also.

Regards

2014-11-30 15:10 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Thank you, I could launch a chrome session with file access with the
 second link (Cliff's answer).
 Now I am going to try my activity into Sugarizer, and will report issues
 if anyone occurs.

 Regards

 2014-11-30 15:04 GMT+01:00 Iain Brown Douglas i...@browndouglas.plus.com
 :

 try


 http://askubuntu.com/questions/369310/how-to-fix-missing-libudev-so-0-for-chrome-to-start-again

 or


 http://askubuntu.com/questions/288821/how-do-i-resolve-a-cannot-open-shared-object-file-libudev-so-0-error

 On Sun, 2014-11-30 at 12:02 +0100, laurent bernabe wrote:
  Thank you for your answer.
 
 
  I've installed the official ubuntu package for Chrome, with the
  command
 
 
  sudo dpkg -i chrome_pakage
 
 
  So I am able to launch chrome from the Kubuntu menu icon.
 
 
  Meanwhile, I get an error when I launch it from terminal (problem with
  libudev)
 
 ___
 
 
  $ /opt/google/chrome$ ./chrome --allow-file-access-from-files
  ./chrome: error while loading shared libraries: libudev.so.0: cannot
  open shared object file: No such file or directory
 
 
 
 
  Regards
 
 
 
  2014-11-29 21:43 GMT+01:00 Lionel Laské lio...@olpc-france.org:
 
 
  Hi Laurent,
 
 
  Could you try your activity in Sugarizer Client ?
  Just change the sugar web library to get the one compatible
  both with Sugar/Sugarizer and it should work.
  Instruction here [1] and here [2].
 
 
 Lionel.
 
 
  [1] http://developer.sugarlabs.org/activity.md.html
  [2] http://sugarizer.org/#client
 
 
 
  Date: Fri, 28 Nov 2014 23:10:47 +0100
  From: laurent bernabe laurent.bern...@gmail.com
  To: Gonzalo Odiard godi...@sugarlabs.org
  Cc: Sugar Devel sugar-devel@lists.sugarlabs.org
  Subject: Re: [Sugar-devel] Starting a new web
  activity : problem when
  closing activity, and with icon design
  Message-ID:
 
  CAH8mndKz6f7-kSnTZJqWujuPkoTi7FMX=
 bfwkjm6qse5o00...@mail.gmail.com
  Content-Type: text/plain; charset=utf-8
 
  Hi,
 
  I've just pulled the latest version of sugar-build,
  but I still can't close
  the activity.
 
  My icon does not shows up well on the home view : no
  token inside the grid,
  it seems empty.
 
  Regards
 
  2014-11-28 21:21 GMT+01:00 Gonzalo Odiard
  godi...@sugarlabs.org:
 
   Be sure the version of sugar-web included in your
  activity is updated.
   A error avoiding close the activity was solved
  recently.
  
   Gonzalo
  
  
   On Fri, Nov 28, 2014 at 11:00 AM, laurent bernabe 
   laurent.bern...@gmail.com wrote:
  
  
   Hello everyone,
  
   I am starting a new activity in order to get
  started with Web Actvity
   development : a simple tic tac toe : github project
  
  
 https://github.com/loloof64/olpc-simple-tictactoe-activity
  
   But when I launch the activity from inside
  sugar-build :
  
  - the icon design seems to be weird, though I've
  tried to follow
  advices at
  http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar
  - I don't manage to close the application
  
   I've sent the log file that I could read in
   sugar-build/home/dotsugar/default/logs, but I
  don't understand it.
  
   What is the best workaround ?
  
   Regards
  
   --
   Laurent Bernab?
  
   laurent.bern...@gmail.com
  
   ___
   Sugar-devel mailing list
   Sugar-devel@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/sugar-devel

Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-11-30 Thread laurent bernabe
Thank you very much.

I'll convert my icon with this script

Regards

2014-11-30 22:02 GMT+01:00 Walter Bender walter.ben...@gmail.com:

 Check out http://wiki.sugarlabs.org/go/Sugariconify

 On Fri, Nov 28, 2014 at 9:00 AM, laurent bernabe
 laurent.bern...@gmail.com wrote:
 
  Hello everyone,
 
  I am starting a new activity in order to get started with Web Actvity
  development : a simple tic tac toe : github project
 
  But when I launch the activity from inside sugar-build :
 
  the icon design seems to be weird, though I've tried to follow advices at
  http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar
  I don't manage to close the application
 
  I've sent the log file that I could read in
  sugar-build/home/dotsugar/default/logs, but I don't understand it.
 
  What is the best workaround ?
 
  Regards
 
  --
  Laurent Bernabé
 
  laurent.bern...@gmail.com
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
 Walter Bender
 Sugar Labs
 http://www.sugarlabs.org




-- 
Laurent Bernabé

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


[Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-11-28 Thread laurent bernabe
Hello everyone,

I am starting a new activity in order to get started with Web Actvity
development : a simple tic tac toe : github project
https://github.com/loloof64/olpc-simple-tictactoe-activity

But when I launch the activity from inside sugar-build :

   - the icon design seems to be weird, though I've tried to follow advices
   at http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar
   - I don't manage to close the application

I've sent the log file that I could read in
sugar-build/home/dotsugar/default/logs, but I don't understand it.

What is the best workaround ?

Regards

-- 
Laurent Bernabé

laurent.bern...@gmail.com
Traceback (most recent call last):
  File /home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar3/activity/webactivity.py, line 161, in _app_scheme_cb
request.finish(Gio.File.new_for_path(path).read(None),
gi._glib.GError: Erreur à l'ouverture du fichier : Aucun fichier ou dossier de ce type
Traceback (most recent call last):
  File /home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar3/activity/webactivity.py, line 161, in _app_scheme_cb
request.finish(Gio.File.new_for_path(path).read(None),
gi._glib.GError: Erreur à l'ouverture du fichier : Aucun fichier ou dossier de ce type
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design

2014-11-28 Thread laurent bernabe
Hi,

I've just pulled the latest version of sugar-build, but I still can't close
the activity.

My icon does not shows up well on the home view : no token inside the grid,
it seems empty.

Regards

2014-11-28 21:21 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

 Be sure the version of sugar-web included in your activity is updated.
 A error avoiding close the activity was solved recently.

 Gonzalo


 On Fri, Nov 28, 2014 at 11:00 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:


 Hello everyone,

 I am starting a new activity in order to get started with Web Actvity
 development : a simple tic tac toe : github project
 https://github.com/loloof64/olpc-simple-tictactoe-activity

 But when I launch the activity from inside sugar-build :

- the icon design seems to be weird, though I've tried to follow
advices at http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar
- I don't manage to close the application

 I've sent the log file that I could read in
 sugar-build/home/dotsugar/default/logs, but I don't understand it.

 What is the best workaround ?

 Regards

 --
 Laurent Bernabé

 laurent.bern...@gmail.com

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




 --
 Gonzalo Odiard

 SugarLabs - Software for children learning




-- 
Laurent Bernabé

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


Re: [Sugar-devel] Osbuild pull : problem when trying to pull browse activity

2014-11-04 Thread laurent bernabe
Hi,

Indeed, I made a kind of double post.
I've noticed too late.

Apologizing

Regards



2014-11-03 21:07 GMT+01:00 Sam P. sam.parkins...@gmail.com:

 Hey Laurent,

 There was just a very similar thread just before you emailed us!  Check it
 out:
 http://lists.sugarlabs.org/archive/sugar-devel/2014-November/049112.html

 Sam.
 On Nov 4, 2014 12:10 AM, laurent bernabe laurent.bern...@gmail.com
 wrote:

 Hi everyone,

 I launched an

 _

 ./osbuild pull

 

 from the latest sugar-build (today), but the script goes repeatedly in a
 error :

 _
 Clonage dans 'browse'...
 fatal: unable to access 'https://src.sugarlabs.org/browse/mainline.git/':
 gnutls_handshake() failed: An unexpected TLS packet was received.
 Retrying (attempt 3) in 1 minute
 ___

 So I used CTRL+C in order to stop the process.

 Is there a workaround ?

 I am using Ubuntu (Unity version) 14.04 64 bits.

 Regards

 ___
 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] Osbuild pull : problem when trying to pull browse activity

2014-11-03 Thread laurent bernabe
Hi everyone,

I launched an

_

./osbuild pull



from the latest sugar-build (today), but the script goes repeatedly in a
error :

_
Clonage dans 'browse'...
fatal: unable to access 'https://src.sugarlabs.org/browse/mainline.git/':
gnutls_handshake() failed: An unexpected TLS packet was received.
Retrying (attempt 3) in 1 minute
___

So I used CTRL+C in order to stop the process.

Is there a workaround ?

I am using Ubuntu (Unity version) 14.04 64 bits.

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


[Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Hello everyone,

I saw that a Python activity, Turtle art, has two toolbars (a main toolbar,
and a personalized toolbar just below, which content is set by the
selection of the main toolbar). I would like to do something like this
inside my LearningChess activity :

   - Is this easy to do in sugar web activity ?
   - Can I even go further : I mean use three toolbars instead of 2 (one
   main toolbar, the second rely on the choice of the main toolbar, and the
   third on the choice of the second) ?
   - Is my second request suitable for an Android adaptation ? (As I know
   there are experimentations in order to port standard activities to Android).


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


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Thank you for your answer. So I'll try to do without them.

Regards


2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

 Sugar implement a primary and a secondary toolbar, attached to a button.
 You can't add a third. And by design is probably a bad idea.
 I think in the web activities, the secondary toolbars are not implemented
 yet.

 Gonzalo


 On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I saw that a Python activity, Turtle art, has two toolbars (a main
 toolbar, and a personalized toolbar just below, which content is set by the
 selection of the main toolbar). I would like to do something like this
 inside my LearningChess activity :

- Is this easy to do in sugar web activity ?
- Can I even go further : I mean use three toolbars instead of 2 (one
main toolbar, the second rely on the choice of the main toolbar, and the
third on the choice of the second) ?
- Is my second request suitable for an Android adaptation ? (As I
know there are experimentations in order to port standard activities to
Android).


 Regards

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




 --
 Gonzalo Odiard

 SugarLabs - Learning Software for children

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


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Hello,

thank you for your answer and your idea.

So I can add, for example, 10 versions of the toolbar overlapping just
below the main-toolbar, and to show only one toolbar (or zero) at one time.
Or maybe, my idea is the wrong way to do ?

As for the third dynamic toolbar, I am still wondering why Gonzola Odiard
said that it is probably a bad idea by design.

Indeed, I would like to split the learning in 4 steps, then in each step,
there is a kind of piece to choose in the second toolbar : and the third is
choosing either a lesson or an exercice.

Theme
  |
Piece
 |
Lesson or exercice


Regards


2014-03-22 21:13 GMT+01:00 Sam Parkinson sam.parkins...@gmail.com:

 Hi,

 Couldn't you just create another toolbar div and .show and .hide when
 needed?

 Sam
 On Mar 23, 2014 6:01 AM, laurent bernabe laurent.bern...@gmail.com
 wrote:

 Thank you for your answer. So I'll try to do without them.

 Regards


 2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

 Sugar implement a primary and a secondary toolbar, attached to a button.
 You can't add a third. And by design is probably a bad idea.
 I think in the web activities, the secondary toolbars are not
 implemented yet.

 Gonzalo


 On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I saw that a Python activity, Turtle art, has two toolbars (a main
 toolbar, and a personalized toolbar just below, which content is set by the
 selection of the main toolbar). I would like to do something like this
 inside my LearningChess activity :

- Is this easy to do in sugar web activity ?
- Can I even go further : I mean use three toolbars instead of 2
(one main toolbar, the second rely on the choice of the main toolbar, 
 and
the third on the choice of the second) ?
- Is my second request suitable for an Android adaptation ? (As I
know there are experimentations in order to port standard activities to
Android).


 Regards

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




 --
 Gonzalo Odiard

 SugarLabs - Learning Software for children



 ___
 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] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
I've just realised that I can do without a 3rd toolbar :

___
Theme_Lesson or Them_Exercice = T1_LEsson, T1_exercice, T2_lesson ...
|
Piece_kind = pawn, knight ... king
___

That way I can save a toolbar :).

I still have to find what is the best way to handle the second toolbar and
its dynamic content.

Regards


2014-03-22 21:24 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Hello,

 thank you for your answer and your idea.

 So I can add, for example, 10 versions of the toolbar overlapping just
 below the main-toolbar, and to show only one toolbar (or zero) at one time.
 Or maybe, my idea is the wrong way to do ?

 As for the third dynamic toolbar, I am still wondering why Gonzola Odiard
 said that it is probably a bad idea by design.

 Indeed, I would like to split the learning in 4 steps, then in each step,
 there is a kind of piece to choose in the second toolbar : and the third is
 choosing either a lesson or an exercice.

 Theme
   |
 Piece
  |
 Lesson or exercice


 Regards


 2014-03-22 21:13 GMT+01:00 Sam Parkinson sam.parkins...@gmail.com:

 Hi,

 Couldn't you just create another toolbar div and .show and .hide when
 needed?

 Sam
 On Mar 23, 2014 6:01 AM, laurent bernabe laurent.bern...@gmail.com
 wrote:

 Thank you for your answer. So I'll try to do without them.

 Regards


 2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

 Sugar implement a primary and a secondary toolbar, attached to a button.
 You can't add a third. And by design is probably a bad idea.
 I think in the web activities, the secondary toolbars are not
 implemented yet.

 Gonzalo


 On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I saw that a Python activity, Turtle art, has two toolbars (a main
 toolbar, and a personalized toolbar just below, which content is set by 
 the
 selection of the main toolbar). I would like to do something like this
 inside my LearningChess activity :

- Is this easy to do in sugar web activity ?
- Can I even go further : I mean use three toolbars instead of 2
(one main toolbar, the second rely on the choice of the main toolbar, 
 and
the third on the choice of the second) ?
- Is my second request suitable for an Android adaptation ? (As I
know there are experimentations in order to port standard activities to
Android).


 Regards

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




 --
 Gonzalo Odiard

 SugarLabs - Learning Software for children



 ___
 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] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Hello,

thank you. So I'll have a look at Palette Activity and try to use palettes
in my code.

(Where is the ActivityPalette code hosted ? I've looked at
http://wiki.sugarlabs.org/go/Activities, but it has no reference on the
ActivityPalette).

Regards


2014-03-22 21:50 GMT+01:00 Manuel Quiñones ma...@laptop.org:

 hi laurent,

 lionel and i discussed secondary toolbars a while ago.
 we agreed in not implement them for web because we think that palettes
 are more convenient.

 in web you can easily make any kind of palette.  just inherit Palette
 like ActivityPalette does.

 also secondary toolbars make the activity main area [1] change its
 height when it appears and dissapears, and i find that very
 problematic.

 [1] named canvas, not to confuse with html canvas tag

 2014-03-22 17:28 GMT-03:00 laurent bernabe laurent.bern...@gmail.com:
  I've just realised that I can do without a 3rd toolbar :
 
  ___
  Theme_Lesson or Them_Exercice = T1_LEsson, T1_exercice, T2_lesson ...
  |
  Piece_kind = pawn, knight ... king
  ___
 
  That way I can save a toolbar :).
 
  I still have to find what is the best way to handle the second toolbar
 and
  its dynamic content.
 
  Regards
 
 
  2014-03-22 21:24 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:
 
  Hello,
 
  thank you for your answer and your idea.
 
  So I can add, for example, 10 versions of the toolbar overlapping just
  below the main-toolbar, and to show only one toolbar (or zero) at one
 time.
  Or maybe, my idea is the wrong way to do ?
 
  As for the third dynamic toolbar, I am still wondering why Gonzola
 Odiard
  said that it is probably a bad idea by design.
 
  Indeed, I would like to split the learning in 4 steps, then in each
 step,
  there is a kind of piece to choose in the second toolbar : and the
 third is
  choosing either a lesson or an exercice.
 
  Theme
|
  Piece
   |
  Lesson or exercice
 
 
  Regards
 
 
  2014-03-22 21:13 GMT+01:00 Sam Parkinson sam.parkins...@gmail.com:
 
  Hi,
 
  Couldn't you just create another toolbar div and .show and .hide when
  needed?
 
  Sam
 
  On Mar 23, 2014 6:01 AM, laurent bernabe laurent.bern...@gmail.com
  wrote:
 
  Thank you for your answer. So I'll try to do without them.
 
  Regards
 
 
  2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:
 
  Sugar implement a primary and a secondary toolbar, attached to a
  button.
  You can't add a third. And by design is probably a bad idea.
  I think in the web activities, the secondary toolbars are not
  implemented yet.
 
  Gonzalo
 
 
  On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe
  laurent.bern...@gmail.com wrote:
 
  Hello everyone,
 
  I saw that a Python activity, Turtle art, has two toolbars (a main
  toolbar, and a personalized toolbar just below, which content is
 set by the
  selection of the main toolbar). I would like to do something like
 this
  inside my LearningChess activity :
 
  Is this easy to do in sugar web activity ?
  Can I even go further : I mean use three toolbars instead of 2 (one
  main toolbar, the second rely on the choice of the main toolbar,
 and the
  third on the choice of the second) ?
  Is my second request suitable for an Android adaptation ? (As I know
  there are experimentations in order to port standard activities to
 Android).
 
 
  Regards
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 
 
 
  --
  Gonzalo Odiard
 
  SugarLabs - Learning Software for children
 
 
 
  ___
  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
 



 --
 .. manuq ..

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


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Thank you.

I didn't realized it was the activitypalette code from the sugar web
activity code.

Regards


2014-03-22 22:18 GMT+01:00 Manuel Quiñones ma...@laptop.org:

 2014-03-22 17:55 GMT-03:00 laurent bernabe laurent.bern...@gmail.com:
  Hello,
 
  thank you. So I'll have a look at Palette Activity and try to use
 palettes
  in my code.
 
  (Where is the ActivityPalette code hosted ? I've looked at
  http://wiki.sugarlabs.org/go/Activities, but it has no reference on the
  ActivityPalette).


 https://github.com/sugarlabs/sugar-web/blob/master/graphics/activitypalette.js

 --
 .. manuq ..

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


Re: [Sugar-devel] My program does not close (LearnChess)

2014-03-19 Thread laurent bernabe
Hello,

thank you for your answer.

As for the lack of interactivity : it's normal, I haven't coded it yet. As
I am thinking about the way I will do it for the courses.
As for the  application closing : I've just tried again and it closed
without any problem.

Maybe it was a temporary bug from my app.

Regards


2014-03-19 17:12 GMT+01:00 Walter Bender walter.ben...@gmail.com:

 The activity didn't do a whole lot, but it closed with no obvioius
 errors for me.

 -walter

 On Wed, Mar 12, 2014 at 6:31 AM, laurent bernabe
 laurent.bern...@gmail.com wrote:
  Hello everyone,
 
  my sugar web activity, hosted at
  https://git.sugarlabs.org/learnchess/learnchess_web,
  does not close when I run it into sugar-build.
 
  I can't find why, even when looking at the
  sugar-build/home/dotsugar/default/logs/shell.log (and
  com.loloof64.sugar_olpc.LearnChess-1.log whose content is empty) which is
  attached to this mail.
 
  Could someone help me find what is wrong with my coding ?
 
  Regards
 
  ___
  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] My program does not close (LearnChess)

2014-03-12 Thread laurent bernabe
Hello everyone,

my sugar web activity, hosted at
https://git.sugarlabs.org/learnchess/learnchess_web,
does not close when I run it into sugar-build.

I can't find why, even when looking at the
sugar-build/home/dotsugar/default/logs/shell.log (and
com.loloof64.sugar_olpc.LearnChess-1.log whose content is empty) which is
attached to this mail.

Could someone help me find what is wrong with my coding ?

Regards
1394619896.368038 WARNING root: No Gtk.AccelGroup in the top level window.
1394619896.379179 WARNING root: No Gtk.AccelGroup in the top level window.
1394619896.645294 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.653388 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.661420 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.746031 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.755510 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.767811 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.780894 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.794462 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.806004 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.819326 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.829445 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.841270 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.852104 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.861600 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.871226 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.884342 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.895321 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.904854 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.914344 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.924684 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.938309 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.947596 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619896.957113 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.077966 ERROR dbus.proxies: Introspect error on org.freedesktop.ohm:/org/freedesktop/ohm/Keystore: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ohm was not provided by any .service files
1394619897.078705 ERROR root: Cannot unfreeze the DCON
1394619897.146629 WARNING root: No Gtk.AccelGroup in the top level window.
1394619897.153257 WARNING root: No Gtk.AccelGroup in the top level window.
1394619897.158811 WARNING root: No Gtk.AccelGroup in the top level window.
1394619897.164932 WARNING root: No Gtk.AccelGroup in the top level window.
1394619897.176417 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.179273 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.183888 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.186671 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.188724 ERROR root: Could not find any typelib for Maliit
1394619897.208115 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.213861 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.242308 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.244782 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.247678 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.249821 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619897.290983 WARNING root: icon_size is deprecated. Use pixel_size instead.
/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/jarabe/journal/journalactivity.py:437: Warning: g_object_set_property: assertion 'G_IS_VALUE (value)' failed
  _journal.show()
/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/jarabe/journal/journalactivity.py:437: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed
  _journal.show()
1394619897.490239 WARNING root: icon_size is deprecated. Use pixel_size instead.
/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/jarabe/main.py:406: Warning: g_object_set_property: assertion 'G_IS_VALUE (value)' failed
  Gtk.main()
/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/jarabe/main.py:406: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed
  Gtk.main()
1394619897.590039 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619901.163798 WARNING root: icon_size is deprecated. Use pixel_size instead.
1394619901.167000 WARNING root: 

Re: [Sugar-devel] My program does not close (LearnChess)

2014-03-12 Thread laurent bernabe
I've forgot to say that I've just pulled the latest sources from
sugar-build.

Regards


2014-03-12 11:31 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Hello everyone,

 my sugar web activity, hosted at
 https://git.sugarlabs.org/learnchess/learnchess_web,
 does not close when I run it into sugar-build.

 I can't find why, even when looking at the
 sugar-build/home/dotsugar/default/logs/shell.log (and
 com.loloof64.sugar_olpc.LearnChess-1.log whose content is empty) which is
 attached to this mail.

 Could someone help me find what is wrong with my coding ?

 Regards

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


[Sugar-devel] EaselJS+PreloadJS and XHR

2014-01-27 Thread laurent bernabe
Hello everyone,

I am using EaselJS and PreloadJS in one of my web activities (LearnChess)
in order to manage pictures inside a canvas. But I don't manage to show png
files.

According to this post :
createjs_forumhttp://community.createjs.com/discussions/preloadjs/466-preload-works-but-doesnt-show-on-stage
it
can't be done locally without launching a server like lampp, because
CreateJS libraries rely on XHR.

So does this mean that CreateJS is not well suited for Sugar ? Or is there
a workaround for this problem ?

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


Re: [Sugar-devel] EaselJS+PreloadJS and XHR

2014-01-27 Thread laurent bernabe
Thank you for your answer.

In fact, I develop the activity and preview it from inside Brackets IDE.
Previews are shown inside a Chrome browser.
So, when previewing from Brackets IDE, we can say that I am viewing it
locally, in a browser, though it uses a kind of server (adress is for
example : http://127.0.0.1:39643/index.html).

But I've also tested under osbuild (with run option), but the image does
not appear neither.

For the links, I am using relative paths.
The repository LearnChess
(LearnChesshttps://git.sugarlabs.org/learnchess/learnchess_web/commits/master)
is up to date : I haven't done any change locally since.

Regards.


2014-01-27 Manuel Quiñones ma...@laptop.org

 2014-01-27 laurent bernabe laurent.bern...@gmail.com:
  Hello everyone,
 
  I am using EaselJS and PreloadJS in one of my web activities
 (LearnChess) in
  order to manage pictures inside a canvas. But I don't manage to show png
  files.

 How are you trying?

  According to this post : createjs_forum it can't be done locally without
  launching a server like lampp, because CreateJS libraries rely on XHR.
 
  So does this mean that CreateJS is not well suited for Sugar ?

 No.  Sugar serves the files correctly.  Chances are:

 1. you are trying your activity locally, directly in a browser from
 file://...index.html
 2. you have added links to file://.../image.png

 If 1. run your activity from Sugar, or use a local server like python
 -m SimpleHTTPServer
 If 2. use relative paths to link your images

 --
 .. manuq ..

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


Re: [Sugar-devel] EaselJS+PreloadJS and XHR

2014-01-27 Thread laurent bernabe
Thank you, I've got it :)

I should have defined

var image = loadingQueue.getResult(wb);

instead of

var image = loadingQueue.getResult(wb).result;

(I got this snippet somewhere on CreateJS forum, maybe coming from the use
of an old version).

Thanks :)

Regards


2014-01-27 Manuel Quiñones ma...@laptop.org

 2014-01-27 laurent bernabe laurent.bern...@gmail.com:
  Thank you for your answer.
 
  In fact, I develop the activity and preview it from inside Brackets IDE.
  Previews are shown inside a Chrome browser.
  So, when previewing from Brackets IDE, we can say that I am viewing it
  locally, in a browser, though it uses a kind of server (adress is for
  example : http://127.0.0.1:39643/index.html).
 
  But I've also tested under osbuild (with run option), but the image does
 not
  appear neither.
 
  For the links, I am using relative paths.
  The repository LearnChess (LearnChess) is up to date : I haven't done any
  change locally since.

 The 'complete' callback is called, I get 'loaded image' logged in the
 console.

 https://git.sugarlabs.org/learnchess/learnchess_web/blobs/master/js/activity.js#line40

 Seems a programming error.  If I log the variable 'image', I get undefined.

 https://git.sugarlabs.org/learnchess/learnchess_web/blobs/master/js/activity.js#line42

 , Let's move to IRC #sugar if you need more help .

 --
 .. manuq ..

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


Re: [Sugar-devel] My custom activity-icon renders fine, except in the launched application toolbar

2014-01-26 Thread laurent bernabe
Hello, thank you for your answer.

Something must be wrong with parameters, as it sends me the options back :


$ python ./sugariconify.py -s #00 -f #ff -o activity-icon.svg

Usage: sugar-iconify.py [options] input.svg

Options:

 -c Apply default color entities (#66, #ff) to output
 -d directory The preferred output directory
 -e Do not insert entities for strokes and fills
 -f hex Hex value to replace with fill entity
 -g Automatically accept guesses for stroke and fill entities
 -h Display this help message
 -i Insert isolated stroke entities
 -m Multiple export; export top level groups as separate icons
 -o Overwrite the input file; overridden by -m
 -p pattern Only export icons whose name matches pattern; for use with -m
 -s hex Hex value to replace with stroke entity
 -x Output example SVGs, for previewing their appearance in Sugar;
ignored with -m
 -v verbose

___

Regards


2014-01-25 Walter Bender walter.ben...@gmail.com

 try:

 python ./sugariconify.py -s #00 -f #ff -o activity-icon.svg


 On Sat, Jan 25, 2014 at 4:45 PM, laurent bernabe
 laurent.bern...@gmail.com wrote:
  Hello again,
 
  I've downloaded sugariconify script in my Ubuntu post, but I get the
  following error :
 
  _
  $ ./sugariconify.py -s #00 -f #ff -o activity-icon.svg
  ./sugariconify.py: ligne 27: HELP : commande introuvable  (could not find
  command HELP on line 27)
  ./sugariconify.py: ligne 45: Erreur de syntaxe près du symbole inattendu
 « (
  » (syntax error near unexpected symbol '(' on line 45 )
  ./sugariconify.py: ligne 45: `class SugarIconify():' (on line 45).
  _
 
  Regards
 
 
  2014-01-25 laurent bernabe laurent.bern...@gmail.com
 
  Hello,
 
  thank you for your answer,
 
  in fact the folder icons should have been named pictures, as I won't
 use
  these resources as icons, but as pictures in my application.
 
  I didn't know about the sugar_iconify program : thanks again, I'll have
 a
  look at it. As I kept a copy of my svg activity icon before adding
 entities,
  it is still time to use it.
 
  Thanks.
 
  Regards
 
 
  2014-01-25 Walter Bender walter.ben...@gmail.com
 
  Your icons are all bmp files. We use SVG for icons in Sugar. Please
  refer to these pages:
 
 
 
 http://wiki.sugarlabs.org/go/Human_Interface_Guidelines/The_Sugar_Interface/Icons
 
  and
 
  http://wiki.sugarlabs.org/go/Sugar_iconify
 
  regards.
 
  -walter
 
  On Sat, Jan 25, 2014 at 5:46 AM, laurent bernabe
  laurent.bern...@gmail.com wrote:
   Oups, it seems that i forgot to link onto my project :
   LearnChessWeb
  
   Helps are welcome.
  
   Regards.
  
  
   2014/1/24 laurent bernabe laurent.bern...@gmail.com
  
   Hello,
  
   in my project LearningChessWeb, I've just changed the activity icon.
   It renders fine in journal and activities menu, but it can't be seen
   in
   the application toolbar, once launched.
  
   How could I patch it ?
  
   This is where I've been looking :
   http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar
  
   I've been designing icon with Inkscape, and added entities from
   Brackets
   IDE  (maybe it isn't the best way to design an activity icon ...)
  
   Regards
  
  
  
   ___
   Sugar-devel mailing list
   Sugar-devel@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/sugar-devel
  
 
 
 
  --
  Walter Bender
  Sugar Labs
  http://www.sugarlabs.org
 
 
 



 --
 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] My custom activity-icon renders fine, except in the launched application toolbar

2014-01-26 Thread laurent bernabe
Ok, found the problem :)

I need extra quotes :

___
$ python ./sugariconify.py -s #00 -f #ff -o activity-icon.svg
entities_passed == 2

entity definitions:
 self.stroke_entity = #00
 self.fill_entity = #ff
___

Regards



2014-01-26 laurent bernabe laurent.bern...@gmail.com

 Hello, thank you for your answer.

 Something must be wrong with parameters, as it sends me the options back :

 
 $ python ./sugariconify.py -s #00 -f #ff -o activity-icon.svg

 Usage: sugar-iconify.py [options] input.svg

 Options:

  -c Apply default color entities (#66, #ff) to output
  -d directory The preferred output directory
  -e Do not insert entities for strokes and fills
  -f hex Hex value to replace with fill entity
  -g Automatically accept guesses for stroke and fill entities
  -h Display this help message
  -i Insert isolated stroke entities
  -m Multiple export; export top level groups as separate icons
  -o Overwrite the input file; overridden by -m
  -p pattern Only export icons whose name matches pattern; for use with -m
  -s hex Hex value to replace with stroke entity
  -x Output example SVGs, for previewing their appearance in Sugar;
 ignored with -m
  -v verbose

 ___

 Regards


 2014-01-25 Walter Bender walter.ben...@gmail.com

 try:

 python ./sugariconify.py -s #00 -f #ff -o activity-icon.svg


 On Sat, Jan 25, 2014 at 4:45 PM, laurent bernabe
 laurent.bern...@gmail.com wrote:
  Hello again,
 
  I've downloaded sugariconify script in my Ubuntu post, but I get the
  following error :
 
  _
  $ ./sugariconify.py -s #00 -f #ff -o activity-icon.svg
  ./sugariconify.py: ligne 27: HELP : commande introuvable  (could not
 find
  command HELP on line 27)
  ./sugariconify.py: ligne 45: Erreur de syntaxe près du symbole
 inattendu « (
  » (syntax error near unexpected symbol '(' on line 45 )
  ./sugariconify.py: ligne 45: `class SugarIconify():' (on line 45).
  _
 
  Regards
 
 
  2014-01-25 laurent bernabe laurent.bern...@gmail.com
 
  Hello,
 
  thank you for your answer,
 
  in fact the folder icons should have been named pictures, as I won't
 use
  these resources as icons, but as pictures in my application.
 
  I didn't know about the sugar_iconify program : thanks again, I'll
 have a
  look at it. As I kept a copy of my svg activity icon before adding
 entities,
  it is still time to use it.
 
  Thanks.
 
  Regards
 
 
  2014-01-25 Walter Bender walter.ben...@gmail.com
 
  Your icons are all bmp files. We use SVG for icons in Sugar. Please
  refer to these pages:
 
 
 
 http://wiki.sugarlabs.org/go/Human_Interface_Guidelines/The_Sugar_Interface/Icons
 
  and
 
  http://wiki.sugarlabs.org/go/Sugar_iconify
 
  regards.
 
  -walter
 
  On Sat, Jan 25, 2014 at 5:46 AM, laurent bernabe
  laurent.bern...@gmail.com wrote:
   Oups, it seems that i forgot to link onto my project :
   LearnChessWeb
  
   Helps are welcome.
  
   Regards.
  
  
   2014/1/24 laurent bernabe laurent.bern...@gmail.com
  
   Hello,
  
   in my project LearningChessWeb, I've just changed the activity
 icon.
   It renders fine in journal and activities menu, but it can't be
 seen
   in
   the application toolbar, once launched.
  
   How could I patch it ?
  
   This is where I've been looking :
   http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar
  
   I've been designing icon with Inkscape, and added entities from
   Brackets
   IDE  (maybe it isn't the best way to design an activity icon ...)
  
   Regards
  
  
  
   ___
   Sugar-devel mailing list
   Sugar-devel@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/sugar-devel
  
 
 
 
  --
  Walter Bender
  Sugar Labs
  http://www.sugarlabs.org
 
 
 



 --
 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] WebActivity : Resizing a canvas object to the screen size ?

2014-01-26 Thread laurent bernabe
Hello everyone,

Some times ago, I've asked how to deal with the fact that my laptop screen
size is rather 16/9 than a 4/3 size. And I was, among other advises,
advised to adapt the game size to the screen size.
I am conviced that it the way to do : but how to get the client size from
inside my activity.js ? (Client size : I mean, in the height dimension,
when we remove the toolbar, of course)

Indeed, this involve computing the toolbar height, which is different for
each version of the activity css file, and of course the whole screen size.
But, for both task, I don't know how to do.

Could someone point me to a good article/tutorial :

   - in order to fetch a css property (Maybe should I add minified JQuery
   to the libs, so that it can be easier) ?
   - in order to compute screen size ?

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


Re: [Sugar-devel] WebActivity : Resizing a canvas object to the screen size ?

2014-01-26 Thread laurent bernabe
I've solved my problem by integrating JQuery, thanks to the Shim section of
RequireJS, and by calling it in activity.js

= loader.js

__
shim: {
...
jquery: {
exports: 'jquery'
}
},
paths: {
...
jquery: 'jquery'
}
__


activity.js

__
...
var $ = require('jquery');
...
var canvas = doc.getElementById('gameZone'), // gameZone is a canvas
element inside the canvas dim, without any dimension set
stage = new createjs.Stage(canvas),
toolbar_height = $('.toolbar').height(),
win_dim = new Array($(window).width(), $(window).height()),
gameZone_dim = new Array(win_dim[0], win_dim[1]-toolbar_height);

$(#canvas).css(overflow, hidden);
$(#gameZone).width(gameZone_dim[0]);
$(#gameZone).height(gameZone_dim[1]);
___

Regards.


2014-01-26 laurent bernabe laurent.bern...@gmail.com

 Hello everyone,

 Some times ago, I've asked how to deal with the fact that my laptop screen
 size is rather 16/9 than a 4/3 size. And I was, among other advises,
 advised to adapt the game size to the screen size.
 I am conviced that it the way to do : but how to get the client size from
 inside my activity.js ? (Client size : I mean, in the height dimension,
 when we remove the toolbar, of course)

 Indeed, this involve computing the toolbar height, which is different for
 each version of the activity css file, and of course the whole screen size.
 But, for both task, I don't know how to do.

 Could someone point me to a good article/tutorial :

- in order to fetch a css property (Maybe should I add minified JQuery
to the libs, so that it can be easier) ?
- in order to compute screen size ?

 Regards

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


Re: [Sugar-devel] My custom activity-icon renders fine, except in the launched application toolbar

2014-01-25 Thread laurent bernabe
Oups, it seems that i forgot to link onto my project :
LearnChessWebhttps://git.sugarlabs.org/learnchess/learnchess_web/commits/master

Helps are welcome.

Regards.


2014/1/24 laurent bernabe laurent.bern...@gmail.com

 Hello,

 in my project LearningChessWeb, I've just changed the activity icon.
 It renders fine in journal and activities menu, but it can't be seen in
 the application toolbar, once launched.

 How could I patch it ?

 This is where I've been looking :
 http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar

 I've been designing icon with Inkscape, and added entities from Brackets
 IDE  (maybe it isn't the best way to design an activity icon ...)

 Regards

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


[Sugar-devel] Programming in Python or as a Web Activity ?

2014-01-24 Thread laurent bernabe
Hello everyone,

I've started a new Web project (ChessLearning), but it seems that Web
development is not my best skills. However, before turning it into a Python
app, I am wondering whether I should do my best to fit the Web Activity
development.

For example, I think of an easier Android port, but am I wrong when I say
that it is better than Python for that ?

On the other side, Python + GTK3 programming is very hard, as the GTK3
library is not so easy to get used to, and Python version is not as well
documented as the C one (Gnome developers fault).

So, I know that may be more a decision of mine, but, what do you advise me ?

Regards,

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


Re: [Sugar-devel] Programming in Python or as a Web Activity ?

2014-01-24 Thread laurent bernabe
Thank you,


   1. The most challenging task that I am facing in my development
   beginning, is to get the libraries easel.js and tween.js work as shim
   dependencies of require.js. In fact, I think I could read require.js
   documentation thousands of times, I won't be able to get started.
   2. The other problem, is that I need to put a real canvas element inside
   the div id=canvas ... but I don't know which size I must give to the
   canvas in order to fit the sugar Window client area (without the toolbar).
   3. At last, and for that they are plenty of documentations, Javascript
   OOP development is a bit trikier than the Python/Java OOP development

So, how can I go further, at least with points 1) and 2) ?

Regards


2014/1/24 Daniel Narvaez dwnarv...@gmail.com

 Try to share the issues you have been having with web activities, someone
 might be able to help.

 Android has probably better API and documentation then gtk, but then it
 won't run on Sugar.

 On Friday, 24 January 2014, laurent bernabe laurent.bern...@gmail.com
 wrote:

 Hello everyone,

 I've started a new Web project (ChessLearning), but it seems that Web
 development is not my best skills. However, before turning it into a Python
 app, I am wondering whether I should do my best to fit the Web Activity
 development.

 For example, I think of an easier Android port, but am I wrong when I say
 that it is better than Python for that ?

 On the other side, Python + GTK3 programming is very hard, as the GTK3
 library is not so easy to get used to, and Python version is not as well
 documented as the C one (Gnome developers fault).

 So, I know that may be more a decision of mine, but, what do you advise
 me ?

 Regards,

 Laurent Bernabé



 --
 Daniel Narvaez


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


Re: [Sugar-devel] Programming in Python or as a Web Activity ?

2014-01-24 Thread laurent bernabe
Thank you very much.

I've tried to modify what needed to be modified in my LearnChess project (
https://git.sugarlabs.org/learnchess/learnchess_web), but it seem that I
missed something. (Too hurry to get started with CreateJS :=D, sorry).

Regards


2014/1/24 Manuel Quiñones ma...@laptop.org

 2014/1/24 laurent bernabe laurent.bern...@gmail.com
 
  Thank you,
 
  The most challenging task that I am facing in my development beginning,
 is to get the libraries easel.js and tween.js work as shim dependencies of
 require.js. In fact, I think I could read require.js documentation
 thousands of times, I won't be able to get started.

 I have created a bootstrap activity for you:
 https://github.com/manuq/createjs-activity-bootstrap

 The bad thing with CreateJS is that they don't support AMD yet.  But see

 https://github.com/CreateJS/EaselJS/wiki/Using-easeljs-and-tweenjs-with-requirejs
 .
  What worked for me:

 ./osbuild shell
 volo create my-game ./sugar-web-template
 cd my-game/lib
 wget http://code.createjs.com/easeljs-0.7.1.min.js
 mv easeljs-0.7.1.min.js easeljs.js
 wget http://code.createjs.com/tweenjs-0.5.1.min.js
 mv tweenjs-0.5.1.min.js tweenjs.js

 And see the changes I did:

 https://github.com/manuq/createjs-activity-bootstrap/commit/79f4e4ed730c71cf42bfa0419f109718fb598fcb

  The other problem, is that I need to put a real canvas element inside
 the div id=canvas ... but I don't know which size I must give to the
 canvas in order to fit the sugar Window client area (without the toolbar).

 CreateJS does that for you.

  At last, and for that they are plenty of documentations, Javascript OOP
 development is a bit trikier than the Python/Java OOP development

 I have the feeling that I responded this to you already, no?

  So, how can I go further, at least with points 1) and 2) ?
 
  Regards
 
 
  2014/1/24 Daniel Narvaez dwnarv...@gmail.com
 
  Try to share the issues you have been having with web activities,
 someone might be able to help.
 
  Android has probably better API and documentation then gtk, but then it
 won't run on Sugar.
 
  On Friday, 24 January 2014, laurent bernabe laurent.bern...@gmail.com
 wrote:
 
  Hello everyone,
 
  I've started a new Web project (ChessLearning), but it seems that Web
 development is not my best skills. However, before turning it into a Python
 app, I am wondering whether I should do my best to fit the Web Activity
 development.
 
  For example, I think of an easier Android port, but am I wrong when I
 say that it is better than Python for that ?
 
  On the other side, Python + GTK3 programming is very hard, as the GTK3
 library is not so easy to get used to, and Python version is not as well
 documented as the C one (Gnome developers fault).
 
  So, I know that may be more a decision of mine, but, what do you
 advise me ?
 
  Regards,
 
  Laurent Bernabé
 
 
 
  --
  Daniel Narvaez
 
 
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
 .. manuq ..

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


Re: [Sugar-devel] Programming in Python or as a Web Activity ?

2014-01-24 Thread laurent bernabe
Fixed !!!

In fact I should have left the last line in loader.js (something like
require(SUGAR_LIB))

Regards

2014/1/24 laurent bernabe laurent.bern...@gmail.com

 Thank you very much.

 I've tried to modify what needed to be modified in my LearnChess project (
 https://git.sugarlabs.org/learnchess/learnchess_web), but it seem that I
 missed something. (Too hurry to get started with CreateJS :=D, sorry).

 Regards


 2014/1/24 Manuel Quiñones ma...@laptop.org

 2014/1/24 laurent bernabe laurent.bern...@gmail.com
 
  Thank you,
 
  The most challenging task that I am facing in my development beginning,
 is to get the libraries easel.js and tween.js work as shim dependencies of
 require.js. In fact, I think I could read require.js documentation
 thousands of times, I won't be able to get started.

 I have created a bootstrap activity for you:
 https://github.com/manuq/createjs-activity-bootstrap

 The bad thing with CreateJS is that they don't support AMD yet.  But see

 https://github.com/CreateJS/EaselJS/wiki/Using-easeljs-and-tweenjs-with-requirejs
 .
  What worked for me:

 ./osbuild shell
 volo create my-game ./sugar-web-template
 cd my-game/lib
 wget http://code.createjs.com/easeljs-0.7.1.min.js
 mv easeljs-0.7.1.min.js easeljs.js
 wget http://code.createjs.com/tweenjs-0.5.1.min.js
 mv tweenjs-0.5.1.min.js tweenjs.js

 And see the changes I did:

 https://github.com/manuq/createjs-activity-bootstrap/commit/79f4e4ed730c71cf42bfa0419f109718fb598fcb

  The other problem, is that I need to put a real canvas element inside
 the div id=canvas ... but I don't know which size I must give to the
 canvas in order to fit the sugar Window client area (without the toolbar).

 CreateJS does that for you.

  At last, and for that they are plenty of documentations, Javascript OOP
 development is a bit trikier than the Python/Java OOP development

 I have the feeling that I responded this to you already, no?

  So, how can I go further, at least with points 1) and 2) ?
 
  Regards
 
 
  2014/1/24 Daniel Narvaez dwnarv...@gmail.com
 
  Try to share the issues you have been having with web activities,
 someone might be able to help.
 
  Android has probably better API and documentation then gtk, but then
 it won't run on Sugar.
 
  On Friday, 24 January 2014, laurent bernabe laurent.bern...@gmail.com
 wrote:
 
  Hello everyone,
 
  I've started a new Web project (ChessLearning), but it seems that Web
 development is not my best skills. However, before turning it into a Python
 app, I am wondering whether I should do my best to fit the Web Activity
 development.
 
  For example, I think of an easier Android port, but am I wrong when I
 say that it is better than Python for that ?
 
  On the other side, Python + GTK3 programming is very hard, as the
 GTK3 library is not so easy to get used to, and Python version is not as
 well documented as the C one (Gnome developers fault).
 
  So, I know that may be more a decision of mine, but, what do you
 advise me ?
 
  Regards,
 
  Laurent Bernabé
 
 
 
  --
  Daniel Narvaez
 
 
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
 .. manuq ..



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


[Sugar-devel] My custom activity-icon renders fine, except in the launched application toolbar

2014-01-24 Thread laurent bernabe
Hello,

in my project LearningChessWeb, I've just changed the activity icon.
It renders fine in journal and activities menu, but it can't be seen in the
application toolbar, once launched.

How could I patch it ?

This is where I've been looking :
http://wiki.laptop.org/go/Making_SVG_Icons_for_Sugar

I've been designing icon with Inkscape, and added entities from Brackets
IDE  (maybe it isn't the best way to design an activity icon ...)

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


Re: [Sugar-devel] Unable to commit on my gitorious sugar lab account

2014-01-10 Thread laurent bernabe
Hello,

Thank you for your answer. I've found the problem yesterday : I was trying
to push sources from inside the Sugar Shell (./osbuild shell). I managed to
push by exiting Sugar shell and pushing from the right directory.

Regards


2014/1/10 Aleksey Lim alsr...@sugarlabs.org

 On Thu, Jan 09, 2014 at 08:50:16AM +0100, laurent bernabe wrote:
  Hello everyone,
 
  though I have just generated a new rsa keys pair, and gave the public one
  to my gitorious sugarlab account, I got several into the following error
 :
 
  ___
 
  [osbuild LearnChess]$ git push origin master
  Permission denied (publickey).
  fatal: Could not read from remote repository.
 
  Please make sure you have the correct access rights
  and the repository exists.
 
  
 
  What can I do in order to solve the problem ?
  I've searched over the web, but I did not find a solution that could work
  for me. I even deleted all my ssh keys and generated a new rsa pair.
 
  Regards
 
  Laurent Bernabe

 I see the ssh-rsa B3NzaC1yc2EDAQABAAABAQDzLU002wbiPp2...
 pubkey registered in the Gitorious for your email.

 Try the ssh -vvv gitori...@git.sugarlabs.org command and post the
 result.

 --
 Aleksey

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


Re: [Sugar-devel] What should be the ideal range for animations FPS ?

2014-01-09 Thread laurent bernabe
Thank you very much.

I am looking forward to test these feature : as soon as I manage to fix a
problem with my Sugar Gitorious account.

Regards


2014/1/9 Manuel Quiñones ma...@laptop.org

 2014/1/8 Manuel Quiñones ma...@laptop.org:
  2014/1/8 laurent bernabe laurent.bern...@gmail.com:
 
 
  2014/1/8 James Cameron qu...@laptop.org
 
  On Wed, Jan 08, 2014 at 11:49:56AM +0100, laurent bernabe wrote:
  True, but if you make a simple test available, others can test it for
  you.
 
  Especially so if you can figure a way to give the test report on
  screen, like a frame rate achieved.
 
 
 
  If I've well understood, I should give a way to turn on/off the frame
 rate
  display ?
  (Like in some games / 3D frameworks).
 
  A display with the current FPS is great for testers.
 
  For your own tests, there are impressive debugging tools in web
  technologies that I never seen before.  The inspector timeline in
  Chrome, for example:
  https://developers.google.com/chrome-developer-tools/docs/timeline

 This discussion made me start a new activity that could serve as
 example.  In the attached images you can see the inspector timeline
 being used   First the full page is painted, and after that only the
 areas that changed are painted.  .

 --
 .. manuq ..

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


Re: [Sugar-devel] What should be the ideal range for animations FPS ?

2014-01-09 Thread laurent bernabe
You're right : I've already a Githhub account. I was just trying hard to
push my project on the Sugar Hub.
I will try with a new repository into Github instead.

Regards


2014/1/9 Daniel Narvaez dwnarv...@gmail.com

 I wouldn't let issue with gitorious stop you, git is cool because you can
 easily move to another location etc, you could push to a github repo and
 then, if you want, come back to gitorious when it's solved.

 On Thursday, 9 January 2014, laurent bernabe wrote:

 Thank you very much.

 I am looking forward to test these feature : as soon as I manage to fix a
 problem with my Sugar Gitorious account.

 Regards


 2014/1/9 Manuel Quiñones ma...@laptop.org

 2014/1/8 Manuel Quiñones ma...@laptop.org:
  2014/1/8 laurent bernabe laurent.bern...@gmail.com:
 
 
  2014/1/8 James Cameron qu...@laptop.org
 
  On Wed, Jan 08, 2014 at 11:49:56AM +0100, laurent bernabe wrote:
  True, but if you make a simple test available, others can test it for
  you.
 
  Especially so if you can figure a way to give the test report on
  screen, like a frame rate achieved.
 
 
 
  If I've well understood, I should give a way to turn on/off the frame
 rate
  display ?
  (Like in some games / 3D frameworks).
 
  A display with the current FPS is great for testers.
 
  For your own tests, there are impressive debugging tools in web
  technologies that I never seen before.  The inspector timeline in
  Chrome, for example:
  https://developers.google.com/chrome-developer-tools/docs/timeline

 This discussion made me start a new activity that could serve as
 example.  In the attached images you can see the inspector timeline
 being used   First the full page is painted, and after that only the
 areas that changed are painted.  .

 --
 .. manuq ..




 --
 Daniel Narvaez


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


Re: [Sugar-devel] What should be the ideal range for animations FPS ?

2014-01-09 Thread laurent bernabe
Believe it or not, it was a ridiculous error !!!
I tried to access git command from inside osbuild shell (without then
trying outside it) : shame at me.

Anyway, problem is solved.

Regards


2014/1/9 laurent bernabe laurent.bern...@gmail.com

 You're right : I've already a Githhub account. I was just trying hard to
 push my project on the Sugar Hub.
 I will try with a new repository into Github instead.

 Regards


 2014/1/9 Daniel Narvaez dwnarv...@gmail.com

 I wouldn't let issue with gitorious stop you, git is cool because you can
 easily move to another location etc, you could push to a github repo and
 then, if you want, come back to gitorious when it's solved.

 On Thursday, 9 January 2014, laurent bernabe wrote:

 Thank you very much.

 I am looking forward to test these feature : as soon as I manage to fix
 a problem with my Sugar Gitorious account.

 Regards


 2014/1/9 Manuel Quiñones ma...@laptop.org

 2014/1/8 Manuel Quiñones ma...@laptop.org:
  2014/1/8 laurent bernabe laurent.bern...@gmail.com:
 
 
  2014/1/8 James Cameron qu...@laptop.org
 
  On Wed, Jan 08, 2014 at 11:49:56AM +0100, laurent bernabe wrote:
  True, but if you make a simple test available, others can test it
 for
  you.
 
  Especially so if you can figure a way to give the test report on
  screen, like a frame rate achieved.
 
 
 
  If I've well understood, I should give a way to turn on/off the
 frame rate
  display ?
  (Like in some games / 3D frameworks).
 
  A display with the current FPS is great for testers.
 
  For your own tests, there are impressive debugging tools in web
  technologies that I never seen before.  The inspector timeline in
  Chrome, for example:
  https://developers.google.com/chrome-developer-tools/docs/timeline

 This discussion made me start a new activity that could serve as
 example.  In the attached images you can see the inspector timeline
 being used   First the full page is painted, and after that only the
 areas that changed are painted.  .

 --
 .. manuq ..




 --
 Daniel Narvaez



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


Re: [Sugar-devel] What should be the ideal range for animations FPS ?

2014-01-08 Thread laurent bernabe
Thank you for these suggestions. I'll study them attentively.

Regards


2014/1/8 Manuel Quiñones ma...@laptop.org

 2014/1/7 Daniel Narvaez dwnarv...@gmail.com:
  I'm not an expert of graphics performance or web technologies, but my
  understanding is that you don't want to be the one setting the FPS. The
  system will know much better when it's time to draw.
 
  And that seems the philosophy behind this API
 
 
 https://developer.mozilla.org/en/docs/Web/API/window.requestAnimationFrame
 
 https://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/

 Yes, requestAnimationFrame is the preferred way to do it in JS.  To
 reach a constant speed in your animations you can use Date.now()
 inside the callback.  Further, you can use a tweener lib like TweenJS.

 For browser compatibility you should use a polyfill like this one:
 https://gist.github.com/paulirish/1579671

 I have to add that to Clock Web.

 --
 .. manuq ..

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


Re: [Sugar-devel] What should be the ideal range for animations FPS ?

2014-01-08 Thread laurent bernabe
Thank you very much : so I undestand that this is at the same time a
software and a hardware (with temperatures) concern.
And that the process can be different in cases of raster based programs and
vector based programs.

Unfortunately, I can only test programs on my two computers (an old PC and
a recent laptop) : so the hardware part will hardly be tested by my means.
Meanwhile, when I asked this question, I had in mind that a suggested range
of values, as a guideleness, can be known : perhaps not now, as, like you
pointed me, one may not have enough informations and tests in order to
fetch those values.

And also, as I've been told on this mailing list, there is a new Javascript
API in order to let the computer(web browser ?) hold this value for the
programmer.

So I think the issue can easily be solved : at least with this
requestAnimationFrame() function.

Regards

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


Re: [Sugar-devel] What should be the ideal range for animations FPS ?

2014-01-08 Thread laurent bernabe
2014/1/8 James Cameron qu...@laptop.org

 On Wed, Jan 08, 2014 at 11:49:56AM +0100, laurent bernabe wrote:
 True, but if you make a simple test available, others can test it for
 you.

 Especially so if you can figure a way to give the test report on
 screen, like a frame rate achieved.



If I've well understood, I should give a way to turn on/off the frame rate
display ?
(Like in some games / 3D frameworks).



 Yes, it is not practical to have a suggested range given the number of
 variables.

 However, designing for higher values can have benefits ... in research
 for Netrek it was found that:

 - five frames per second is a minimum for perception of motion, but
   most users will perceive the steps and use them as the basis for
   their reaction, such that when the rate is increased their training
   has to be redone,

 - ten frames per second is preferable, with most users still
   perceiving the steps,

 - 25 frames per second is very good, with most users not perceiving
   the steps,

 - 50 frames per second is excellent.



Thank you very much for this guideleness.
So, in my case, I should keep a frame rate around 50, if I really need to
fix it myself (I am thinking about the javascript requestAnimationFrame()
function).


  And also, as I've been told on this mailing list, there is a new
  Javascript API in order to let the computer(web browser ?) hold this
  value for the programmer.
 
  So I think the issue can easily be solved : at least with this
  requestAnimationFrame() function.

 Great.

 --
 James Cameron
 http://quozl.linux.org.au/


Regards

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


Re: [Sugar-devel] What should be the ideal range for animations FPS ?

2014-01-08 Thread laurent bernabe
I'll try to use the inspector whenever I run into serious animation issue.
Thanks.

Indeed, looks like all this concern seems very difficult without using at
least a tweening library.
Tween.js/Easel.js looks to be a very good one (it is recommanded to use the
ticker function from easel.js, or to write one from scratch), and I am very
interested in developping  activities with it.

But :

   - it does not seem to be AMD-ready : which, I think can be easily
   solved, looking again at Require.js documentation
   - the minified version (about 80 ko) seems to be the only way to avoid
   increasing significantly activity size when using it : again, I think I can
   go for it.

Regards

Laurent Bernabe


2014/1/8 Manuel Quiñones ma...@laptop.org

 2014/1/8 laurent bernabe laurent.bern...@gmail.com:
 
 
  2014/1/8 James Cameron qu...@laptop.org
 
  On Wed, Jan 08, 2014 at 11:49:56AM +0100, laurent bernabe wrote:
  True, but if you make a simple test available, others can test it for
  you.
 
  Especially so if you can figure a way to give the test report on
  screen, like a frame rate achieved.
 
 
 
  If I've well understood, I should give a way to turn on/off the frame
 rate
  display ?
  (Like in some games / 3D frameworks).

 A display with the current FPS is great for testers.

 For your own tests, there are impressive debugging tools in web
 technologies that I never seen before.  The inspector timeline in
 Chrome, for example:
 https://developers.google.com/chrome-developer-tools/docs/timeline

 There you can see how much takes your app for painting and for other
 calculations, so you can find the bottleneck in your code.  You can
 even click on a paint record and it will highlight the area of the
 screen that was changed.

 
 
 
  Yes, it is not practical to have a suggested range given the number of
  variables.
 
  However, designing for higher values can have benefits ... in research
  for Netrek it was found that:
 
  - five frames per second is a minimum for perception of motion, but
most users will perceive the steps and use them as the basis for
their reaction, such that when the rate is increased their training
has to be redone,
 
  - ten frames per second is preferable, with most users still
perceiving the steps,
 
  - 25 frames per second is very good, with most users not perceiving
the steps,
 
  - 50 frames per second is excellent.
 
 
 
  Thank you very much for this guideleness.
  So, in my case, I should keep a frame rate around 50, if I really need to
  fix it myself (I am thinking about the javascript requestAnimationFrame()
  function).

 With requestAnimationFrame you don't force a constant FPS.  Instead,
 the callback is called as fast as your machine can.  So is good to
 decouple the duration of your animation from the frame rate.

 If you move your image 2 pixels each frame, the velocity will vary in
 diferent systems.  Instead, you should calculate how many milliseconds
 have passed since the last frame, and move your imave accordingly.
 Here is when interpolation comes into play, and a tweener lib becomes
 handy.

 
   And also, as I've been told on this mailing list, there is a new
   Javascript API in order to let the computer(web browser ?) hold this
   value for the programmer.
  
   So I think the issue can easily be solved : at least with this
   requestAnimationFrame() function.
 
  Great.
 
  --
  James Cameron
  http://quozl.linux.org.au/
 
 
  Regards
 
  Laurent Bernabe
 
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
 .. manuq ..

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


[Sugar-devel] Unable to commit on my gitorious sugar lab account

2014-01-08 Thread laurent bernabe
Hello everyone,

though I have just generated a new rsa keys pair, and gave the public one
to my gitorious sugarlab account, I got several into the following error :

___

[osbuild LearnChess]$ git push origin master
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.



What can I do in order to solve the problem ?
I've searched over the web, but I did not find a solution that could work
for me. I even deleted all my ssh keys and generated a new rsa pair.

Regards

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


Re: [Sugar-devel] Porting the application I started (chess_learning) to Web application

2014-01-07 Thread laurent bernabe
Thank you


2014/1/7 Manuel Quiñones ma...@laptop.org

 https://github.com/manuq/gears-activity

 2014/1/6 laurent bernabe laurent.bern...@gmail.com:
  Is there a repository for the Gears project ?
  Because I could not find it on git.sugarlab.org
 
 
  Sorry for this unusefull question : I've just downloaded the Gears 5
 bundle,
  so that I can look at the sources.
 
  Regards



 --
 .. manuq ..

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


[Sugar-devel] A little problem inside Sugar-Build with my new web activity

2014-01-07 Thread laurent bernabe
Hello everyone,

After having pulled the latest sugar-build yesterday, I made a new web
activity just in order to get used to Web activity development (not to be
released) : WebMenuActivity.

But, though I've installed it with the command
python setup.py dev
I am ending with two activities inside my Sugar-Build instead of one :

   - one called as WebMenuActivity as I've called it : does not start
   - one called as MyActivity : surprisingly starts and show the content
   that i should have gotten in WebMenuActivity.

Furthermore, when going inside folder activities of sugar-build, there's a
single symlink called MyActivity.activity, and about which Ubuntu says that
it is broken.

So, did I misunderstood a step in installation, or can this error came
because of recent changes in sugar-build ?

Regards

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


Re: [Sugar-devel] A little problem inside Sugar-Build with my new web activity

2014-01-07 Thread laurent bernabe
Hi,

I've joined the activity.info to this mail.

Also, thank you for having pointed me the problem with my Activity. (I have
not corrected it yet, but no doubt that the problem comes from here)

Apolozing, as I haven't developped many applications for Sugar yet, so I
haven't got yet the good practises.

Regards


2014/1/7 Code Raguet irag...@activitycentral.com

 Hi, Laurent

 would you paste the contents of your activity.info?
 activity/activity.info


 On Tue, Jan 7, 2014 at 11:19 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 After having pulled the latest sugar-build yesterday, I made a new web
 activity just in order to get used to Web activity development (not to be
 released) : WebMenuActivity.

 But, though I've installed it with the command
 python setup.py dev
 I am ending with two activities inside my Sugar-Build instead of one :

- one called as WebMenuActivity as I've called it : does not start
- one called as MyActivity : surprisingly starts and show the content
that i should have gotten in WebMenuActivity.

 Furthermore, when going inside folder activities of sugar-build, there's
 a single symlink called MyActivity.activity, and about which Ubuntu says
 that it is broken.

 So, did I misunderstood a step in installation, or can this error came
 because of recent changes in sugar-build ?

 Regards

 Laurent Bernabe

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





activity.info
Description: Binary data
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] A little problem inside Sugar-Build with my new web activity

2014-01-07 Thread laurent bernabe
No, all the documentation is fine : it's just that I have read it too fast
(as I've already made a GTK application, thought that I knew well some
sugar development points).

Regards


2014/1/7 Code Raguet irag...@activitycentral.com

 There is no need to apologize. We are glad to help.

 Let me know if something at sugar-web docs need clarification, please.

 Best regards!


 On Tue, Jan 7, 2014 at 11:38 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hi,

 I've joined the activity.info to this mail.

 Also, thank you for having pointed me the problem with my Activity. (I
 have not corrected it yet, but no doubt that the problem comes from here)

 Apolozing, as I haven't developped many applications for Sugar yet, so I
 haven't got yet the good practises.

 Regards


 2014/1/7 Code Raguet irag...@activitycentral.com

 Hi, Laurent

 would you paste the contents of your activity.info?
 activity/activity.info


 On Tue, Jan 7, 2014 at 11:19 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 After having pulled the latest sugar-build yesterday, I made a new web
 activity just in order to get used to Web activity development (not to be
 released) : WebMenuActivity.

 But, though I've installed it with the command
 python setup.py dev
 I am ending with two activities inside my Sugar-Build instead of one :

- one called as WebMenuActivity as I've called it : does not start
- one called as MyActivity : surprisingly starts and show the
content that i should have gotten in WebMenuActivity.

 Furthermore, when going inside folder activities of sugar-build,
 there's a single symlink called MyActivity.activity, and about which Ubuntu
 says that it is broken.

 So, did I misunderstood a step in installation, or can this error came
 because of recent changes in sugar-build ?

 Regards

 Laurent Bernabe

 ___
 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] What should be the ideal range for animations FPS ?

2014-01-07 Thread laurent bernabe
Hello everyone,

As I am programming on a recent laptop, it can be easy to call javascript
method  setTimeout with too high values, without noticing the wrong
behaviour for real XO.

This is why I am wondering what should be the ideal range for animations
Frames Per Second value ?

Regards

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


Re: [Sugar-devel] What should be the ideal range for animations FPS ?

2014-01-07 Thread laurent bernabe
Thank you very much : I didn't knew that new API.
I'll have a closer look at your articles, and use this function instead of
setTimeOut/setInterval.

Regards

Laurent Bernabe


2014/1/8 Daniel Narvaez dwnarv...@gmail.com

 I'm not an expert of graphics performance or web technologies, but my
 understanding is that you don't want to be the one setting the FPS. The
 system will know much better when it's time to draw.

 And that seems the philosophy behind this API

 https://developer.mozilla.org/en/docs/Web/API/window.requestAnimationFrame

 https://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/


 On 7 January 2014 17:37, laurent bernabe laurent.bern...@gmail.comwrote:

 Hello everyone,

 As I am programming on a recent laptop, it can be easy to call javascript
 method  setTimeout with too high values, without noticing the wrong
 behaviour for real XO.

 This is why I am wondering what should be the ideal range for animations
 Frames Per Second value ?

 Regards

 Laurent Bernabe

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




 --
 Daniel Narvaez

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


Re: [Sugar-devel] Porting the application I started (chess_learning) to Web application

2014-01-06 Thread laurent bernabe
Thank you for your advices.

In fact, for the pictures, I plan to use those from Wikimedia Commons :
I've been told on this mailing list that it can be OK.

For the screen sizes, I'll try to do my best to work for the common screen
sizes, though I have a laptop of 16'' (an so a kind of 16/9 configuration
instead of 4/3).

Regards


2014/1/6 Manuel Quiñones ma...@laptop.org

 2013/12/13 laurent bernabe laurent.bern...@gmail.com:
  Apologizing,
 
  for the blurred effect on pictures, it is because even in its tiny size,
  each imported image was blurred. Low quality pictures bring us to low
  quality programs ... and I should have been aware about that.

 Depending on the kind of image, and if you are able to create them
 again, you can use SVG images.

  for the screen size, the only problem may be the resolution/density.
  Meanwhile, it does not seem to me that it is a big problem.

 You should program your activity to work in different screen sizes,
 rates and resolutions.

 --
 .. manuq ..

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


Re: [Sugar-devel] Porting the application I started (chess_learning) to Web application

2014-01-06 Thread laurent bernabe
 Chances are:

 a. your activity has scrollable content (Get Things Done for example)

This is my preferred method in applications I am used to develop in Java
(with the Swing GUI library). Meanwhile, I am wondering whether this is the
best strategy in order to augment the user experience in the XO.

 b. your activity adapts to the available space (Gears for example)

Maybe I should check how this is done in Gears.

__

There is also another point that could improve my development work :

as my project LearningChess should be divided into several subactivities
(one for the very basical moves, one for the main special moves such as
castling/en-passant prise/promotion..., one for the won/lost/draw game
state), no doubt that there will be common code between the different
activities.

So I am seeking for a way to share some code/ressources from a common
repository reserved for that purpose, to the different official activities
: is that simple to do in Github (so in Sugar gitorious) ? Or maybe, the
best way to develop this learning is to develop a single activity from
which I add a single menu ?

Regards


2014/1/6 Manuel Quiñones ma...@laptop.org

 2014/1/6 laurent bernabe laurent.bern...@gmail.com:
  Thank you for your advices.
 
  In fact, for the pictures, I plan to use those from Wikimedia Commons :
 I've
  been told on this mailing list that it can be OK.
 
  For the screen sizes, I'll try to do my best to work for the common
 screen
  sizes, though I have a laptop of 16'' (an so a kind of 16/9 configuration
  instead of 4/3).

 Chances are:

 a. your activity has scrollable content (Get Things Done for example)
 b. your activity adapts to the available space (Gears for example)

 So you don't need to worry about screen aspect ratios, just make sure
 your content either scrolls (a) or adapts (b).

 --
 .. manuq ..

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


Re: [Sugar-devel] Porting the application I started (chess_learning) to Web application

2014-01-06 Thread laurent bernabe
Is there a repository for the Gears project ?
Because I could not find it on git.sugarlab.org

Regards


2014/1/6 Manuel Quiñones ma...@laptop.org

 2014/1/6 laurent bernabe laurent.bern...@gmail.com:
  Thank you for your advices.
 
  In fact, for the pictures, I plan to use those from Wikimedia Commons :
 I've
  been told on this mailing list that it can be OK.
 
  For the screen sizes, I'll try to do my best to work for the common
 screen
  sizes, though I have a laptop of 16'' (an so a kind of 16/9 configuration
  instead of 4/3).

 Chances are:

 a. your activity has scrollable content (Get Things Done for example)
 b. your activity adapts to the available space (Gears for example)

 So you don't need to worry about screen aspect ratios, just make sure
 your content either scrolls (a) or adapts (b).

 --
 .. manuq ..

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


Re: [Sugar-devel] Porting the application I started (chess_learning) to Web application

2014-01-06 Thread laurent bernabe
 Is there a repository for the Gears project ?
 Because I could not find it on git.sugarlab.org


Sorry for this unusefull question : I've just downloaded the Gears 5
bundle, so that I can look at the sources.

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


[Sugar-devel] LearningChess development: don't worry, I'll be back to it ...

2013-12-18 Thread laurent bernabe
Hello,

I have a great interest for Sugar development, but I don't forget that it
is not my highest skills. So I am developping for the moment other
application (that I also need in my everyday life, and could be usefull to
many ... maybe a sugar develop could adapt it later to sugar :)) in Java SE
language.

So just to say I am still interested in Sugar development, specially in
Sugar Web development (many libraries, new features (?), and easier to
code), just that I won't commit in my project for a while (a little while,
I hope ...).

Thanks for having read me :)
C you soon :)

P.S : Merry christmas to all, sugar devel mailing list is another for me to
learn so much also :)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Which licensed images must I use in a Sugar Web project ?

2013-12-15 Thread laurent bernabe
Hello,

I would like to know, in a general way, which licensed images can be
accepted and compatible with Sugar Web license :

I mean, if the images I want to use are free svg licensed under Creative
Common, such as
therehttp://commons.wikimedia.org/wiki/Category:SVG_chess_pieces ,
is it ok ?

Thanks in advance,

and apologizes if ever i don't see your replies, because of my spam
filtering.

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


[Sugar-devel] Porting the application I started (chess_learning) to Web application

2013-12-13 Thread laurent bernabe
Hello everyone,

as some may know, I am building an app on sugar gitorious :
https://git.sugarlabs.org/learnchess/learnchess_1

But I am facing some psychological strange difficulties :

   1. First, I started it as a web application
   2. Then I gave it up and made it a GTK3 application
   3. Now, I dream of making it a web application again.

Here is my reasons for making it defenitively a web application :

   - Gtk3 is a very hard programming technology
   - Web application are moderns features that all the team added in order
   to make developpers live simpler
   - We can use Javascript libraries, among maybe thousands ones :)

And here is some issues I was facing when developping in web applications :

   - my laptop screen is rather in a ration of 16/9, instead of just 4/3 :
   not ideal for the tests
   - some pictures used for the project (png/jpeg ?) seemed blurred.

Has anyone be faced with the last two issues ? How did you hold it ?

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


Re: [Sugar-devel] Porting the application I started (chess_learning) to Web application

2013-12-13 Thread laurent bernabe
Apologizing,


   - for the blurred effect on pictures, it is because even in its tiny
   size, each imported image was blurred. Low quality pictures bring us to low
   quality programs ... and I should have been aware about that.
   - for the screen size, the only problem may be the resolution/density.
   Meanwhile, it does not seem to me that it is a big problem.

Regards


2013/12/14 laurent bernabe laurent.bern...@gmail.com

 Hello everyone,

 as some may know, I am building an app on sugar gitorious :
 https://git.sugarlabs.org/learnchess/learnchess_1

 But I am facing some psychological strange difficulties :

1. First, I started it as a web application
2. Then I gave it up and made it a GTK3 application
3. Now, I dream of making it a web application again.

 Here is my reasons for making it defenitively a web application :

- Gtk3 is a very hard programming technology
- Web application are moderns features that all the team added in
order to make developpers live simpler
- We can use Javascript libraries, among maybe thousands ones :)

 And here is some issues I was facing when developping in web applications :

- my laptop screen is rather in a ration of 16/9, instead of just 4/3
: not ideal for the tests
- some pictures used for the project (png/jpeg ?) seemed blurred.

 Has anyone be faced with the last two issues ? How did you hold it ?

 Thanks in advance

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


Re: [Sugar-devel] Web activities canvas element

2013-10-17 Thread laurent bernabe
Hello Manuel,

thanks for your answer,
I forgot that javascript also can control width and height of the page,
behind the scene.

What I tried in my LearnChess activity (which I started as a web activity
and finally went on with a GTK one), is to reuse one the predefined screen
css media (inside a folder like lib/sugar-web/css), but without screen size
limitation. Maybe that is an horrible practise, but this is what I tried.

Regards


2013/10/17 Manuel Quiñones ma...@laptop.org

 2013/10/10 laurent bernabe laurent.bern...@gmail.com:
  Hello,
 
  2013/10/10 Manuel Quiñones ma...@laptop.org
 
  2013/10/9 laurent bernabe laurent.bern...@gmail.com:
   Hello,
  
   *) I am wondering whether I can safely replace, in an index.html file
 of
   a
   web activity, the div id=canvas/div with canvas
   id=canvas/canvas
   ?
  
   Because the library I am using need a real canvas element.
 
  You just put your canvas inside that div.
 
 
  I've put my canvas element inside the #canvas div and it worked.
 
 
 
   *) Also, if I can use a real canvas element, how can set its size to
 the
   remaining size of the screen ? (As my laptop has a wider screen than
 XO
   ones).
 
  It's possible by connecting to the window resize event in JS.  You can
  see an example in Clock Web activity.
 
  https://github.com/manuq/clock-web
  http://manuq.github.io/clock-web
 
 
 
  Wouldn't be simpler to use CSS instead ? I've seen that there are two css
  media added in the index.html, which seem to do what I am waiting for
  (#canvas = width:100%, overflow-y: auto, and top: 75px), but it seem
 that
  none are used. (Canvas lays at top = 0 px and left = 0px, width is about
  300px ...)

 I just tried changing Clock Web to make the canvas element fill the
 available space.  It didn't work.  Althrough the CSS effectively makes
 the canvas fill the space, the width and height values are fixed if
 you read them from JavaScript.  And in Clock all drawn elements depend
 on that size.  Like the hands, the face, etc.

  Regards



 --
 .. manuq ..

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


[Sugar-devel] Problems with GTK3 activity developpement

2013-10-14 Thread laurent bernabe
Hi to all,

I gave up coding a web activity for my LearningChess program, coding it in
GTK3 instead. (As I am more comfortable with languages like Python, it is
more efficient, and pictures seems to render better : it is more true with
svg images, which I can resize easily nearly without blur effect).

I managed to get something (inspirated by the sugarchess project), until
the last commit code. Where I have got a strange behaviour :

   - the stop button is not drawn
   - my right component is not shown
   - but the logger activity did not notice any error !


I bet this is because I've tried to rely on the C API reference for GTK3,
which has the advantage to be complete, but which has different naming
standards than Python ones.

My bet is that it is the InteractionView class which is wrong. But I can't
find what's wrong.

Here my repository :
https://git.sugarlabs.org/learnchess/learnchess_1/trees/master.

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


Re: [Sugar-devel] Problems with GTK3 activity developpement

2013-10-14 Thread laurent bernabe
I've already called show_all() for all the components tree :
in line 44 of game.py (to the _main_zone component, the one that is defined
as Sugar Canvas, and where I put both BoardView and InteractionView
instances).

Regards


2013/10/14 Ignacio Rodríguez nachoe...@gmail.com

 Try to add:

 self.show_all()

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


[Sugar-devel] How to manage Pootle and a (own) git submodule ?

2013-10-14 Thread laurent bernabe
Hi all,

As I plan to build several parts (each one into its own activity) of my new
idea LearnChess, I've noticed that making a git submodule in order to
develop the common part in its own repository (inside my overall LearnChess
git project) can be very useful :

http://stackoverflow.com/questions/7813030/how-can-i-have-linked-dependencies-in-a-git-repo

However, the common parts have graphical components, and so, that needs to
be translated. So, is it possible to add, not a complete activity, but just
a subproject into Pootle ? So that the translation for the common part is
only done once ?

(I've not made my git submodule yet, I plan to do it very soon).

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


Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
Hello,

2013/10/10 Manuel Quiñones ma...@laptop.org

 2013/10/9 laurent bernabe laurent.bern...@gmail.com:
  Hello,
 
  *) I am wondering whether I can safely replace, in an index.html file of
 a
  web activity, the div id=canvas/div with canvas
 id=canvas/canvas
  ?
 
  Because the library I am using need a real canvas element.

 You just put your canvas inside that div.


I've put my canvas element inside the #canvas div and it worked.



  *) Also, if I can use a real canvas element, how can set its size to the
  remaining size of the screen ? (As my laptop has a wider screen than XO
  ones).

 It's possible by connecting to the window resize event in JS.  You can
 see an example in Clock Web activity.

 https://github.com/manuq/clock-web
 http://manuq.github.io/clock-web



Wouldn't be simpler to use CSS instead ? I've seen that there are two css
media added in the index.html, which seem to do what I am waiting for
(#canvas = width:100%, overflow-y: auto, and top: 75px), but it seem that
none are used. (Canvas lays at top = 0 px and left = 0px, width is about
300px ...)

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


Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
Otherwise,

I thought, as my laptop may have wider screen than OLPC, I can try to
restrict the activity zone (toolbar + canvas zone) with css (even if that
task can be hard) and have it centered on my screen. And maybe add a bit of
Javascript in order to restrict mouse interaction to the emulated zone.

Maybe that can be silly, but at least, I will have a screen close to the
real XO, and a more realistic result.

Regards


2013/10/10 laurent bernabe laurent.bern...@gmail.com

 Hello,

 2013/10/10 Manuel Quiñones ma...@laptop.org

 2013/10/9 laurent bernabe laurent.bern...@gmail.com:
  Hello,
 
  *) I am wondering whether I can safely replace, in an index.html file
 of a
  web activity, the div id=canvas/div with canvas
 id=canvas/canvas
  ?
 
  Because the library I am using need a real canvas element.

 You just put your canvas inside that div.


 I've put my canvas element inside the #canvas div and it worked.



  *) Also, if I can use a real canvas element, how can set its size to the
  remaining size of the screen ? (As my laptop has a wider screen than XO
  ones).

 It's possible by connecting to the window resize event in JS.  You can
 see an example in Clock Web activity.

 https://github.com/manuq/clock-web
 http://manuq.github.io/clock-web



 Wouldn't be simpler to use CSS instead ? I've seen that there are two css
 media added in the index.html, which seem to do what I am waiting for
 (#canvas = width:100%, overflow-y: auto, and top: 75px), but it seem that
 none are used. (Canvas lays at top = 0 px and left = 0px, width is about
 300px ...)

 Regards

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


Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
Are you talking about options from this page :
http://developer.sugarlabs.org/dev-environment.md.html ?

Regards


2013/10/10 Daniel Narvaez dwnarv...@gmail.com

 It might be helpful to change the sugar-runner window size, see the dev
 environment documentation on developer.sugarlabs.org

 On Thursday, 10 October 2013, laurent bernabe wrote:

 Otherwise,

 I thought, as my laptop may have wider screen than OLPC, I can try to
 restrict the activity zone (toolbar + canvas zone) with css (even if that
 task can be hard) and have it centered on my screen. And maybe add a bit of
 Javascript in order to restrict mouse interaction to the emulated zone.

 Maybe that can be silly, but at least, I will have a screen close to
 the real XO, and a more realistic result.

 Regards


  2013/10/10 laurent bernabe laurent.bern...@gmail.com

 Hello,

 2013/10/10 Manuel Quiñones ma...@laptop.org

 2013/10/9 laurent bernabe laurent.bern...@gmail.com:
  Hello,
 
  *) I am wondering whether I can safely replace, in an index.html file
 of a
  web activity, the div id=canvas/div with canvas
 id=canvas/canvas
  ?
 
  Because the library I am using need a real canvas element.

 You just put your canvas inside that div.


 I've put my canvas element inside the #canvas div and it worked.



  *) Also, if I can use a real canvas element, how can set its size to
 the
  remaining size of the screen ? (As my laptop has a wider screen than
 XO
  ones).

 It's possible by connecting to the window resize event in JS.  You can
 see an example in Clock Web activity.

 https://github.com/manuq/clock-web
 http://manuq.github.io/clock-web



 Wouldn't be simpler to use CSS instead ? I've seen that there are two
 css media added in the index.html, which seem to do what I am waiting for
 (#canvas = width:100%, overflow-y: auto, and top: 75px), but it seem that
 none are used. (Canvas lays at top = 0 px and left = 0px, width is about
 300px ...)

 Regards




 --
 Daniel Narvaez


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


Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
I've changed the prefs.json file, in order to set a resolution of 1200x900
on HDMI1, but it does not seem to have changed anything.

{
output: HDMI1,
resolution: 1200x900
}

Width still takes the whole screen width.
Same for height.

(I've stopped and restarted osbuild shell).


2013/10/10 laurent bernabe laurent.bern...@gmail.com

 Are you talking about options from this page :
 http://developer.sugarlabs.org/dev-environment.md.html ?

 Regards


 2013/10/10 Daniel Narvaez dwnarv...@gmail.com

 It might be helpful to change the sugar-runner window size, see the dev
 environment documentation on developer.sugarlabs.org

 On Thursday, 10 October 2013, laurent bernabe wrote:

 Otherwise,

 I thought, as my laptop may have wider screen than OLPC, I can try to
 restrict the activity zone (toolbar + canvas zone) with css (even if that
 task can be hard) and have it centered on my screen. And maybe add a bit of
 Javascript in order to restrict mouse interaction to the emulated zone.

 Maybe that can be silly, but at least, I will have a screen close to
 the real XO, and a more realistic result.

 Regards


  2013/10/10 laurent bernabe laurent.bern...@gmail.com

 Hello,

 2013/10/10 Manuel Quiñones ma...@laptop.org

 2013/10/9 laurent bernabe laurent.bern...@gmail.com:
  Hello,
 
  *) I am wondering whether I can safely replace, in an index.html
 file of a
  web activity, the div id=canvas/div with canvas
 id=canvas/canvas
  ?
 
  Because the library I am using need a real canvas element.

 You just put your canvas inside that div.


 I've put my canvas element inside the #canvas div and it worked.



  *) Also, if I can use a real canvas element, how can set its size to
 the
  remaining size of the screen ? (As my laptop has a wider screen than
 XO
  ones).

 It's possible by connecting to the window resize event in JS.  You can
 see an example in Clock Web activity.

 https://github.com/manuq/clock-web
 http://manuq.github.io/clock-web



 Wouldn't be simpler to use CSS instead ? I've seen that there are two
 css media added in the index.html, which seem to do what I am waiting for
 (#canvas = width:100%, overflow-y: auto, and top: 75px), but it seem that
 none are used. (Canvas lays at top = 0 px and left = 0px, width is about
 300px ...)

 Regards




 --
 Daniel Narvaez



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


Re: [Sugar-devel] Web activities canvas element

2013-10-10 Thread laurent bernabe
I've checked at my screen size : it is a 16/9 1366x766.
Maybe that is why the width has not changed (and I was wrong, height was a
little less with my new json file).

Though, the XO-1 has a height of 900.
So, I don't know yet what could be the best compromise in my case.

Maybe trying with a resolution like 934x700

Regards


2013/10/10 laurent bernabe laurent.bern...@gmail.com

 I've changed the prefs.json file, in order to set a resolution of 1200x900
 on HDMI1, but it does not seem to have changed anything.

 {
 output: HDMI1,
 resolution: 1200x900
 }

 Width still takes the whole screen width.
 Same for height.

 (I've stopped and restarted osbuild shell).


 2013/10/10 laurent bernabe laurent.bern...@gmail.com

 Are you talking about options from this page :
 http://developer.sugarlabs.org/dev-environment.md.html ?

 Regards


 2013/10/10 Daniel Narvaez dwnarv...@gmail.com

 It might be helpful to change the sugar-runner window size, see the dev
 environment documentation on developer.sugarlabs.org

 On Thursday, 10 October 2013, laurent bernabe wrote:

 Otherwise,

 I thought, as my laptop may have wider screen than OLPC, I can try to
 restrict the activity zone (toolbar + canvas zone) with css (even if that
 task can be hard) and have it centered on my screen. And maybe add a bit of
 Javascript in order to restrict mouse interaction to the emulated zone.

 Maybe that can be silly, but at least, I will have a screen close to
 the real XO, and a more realistic result.

 Regards


  2013/10/10 laurent bernabe laurent.bern...@gmail.com

 Hello,

 2013/10/10 Manuel Quiñones ma...@laptop.org

 2013/10/9 laurent bernabe laurent.bern...@gmail.com:
  Hello,
 
  *) I am wondering whether I can safely replace, in an index.html
 file of a
  web activity, the div id=canvas/div with canvas
 id=canvas/canvas
  ?
 
  Because the library I am using need a real canvas element.

 You just put your canvas inside that div.


 I've put my canvas element inside the #canvas div and it worked.



  *) Also, if I can use a real canvas element, how can set its size
 to the
  remaining size of the screen ? (As my laptop has a wider screen
 than XO
  ones).

 It's possible by connecting to the window resize event in JS.  You can
 see an example in Clock Web activity.

 https://github.com/manuq/clock-web
 http://manuq.github.io/clock-web



 Wouldn't be simpler to use CSS instead ? I've seen that there are two
 css media added in the index.html, which seem to do what I am waiting for
 (#canvas = width:100%, overflow-y: auto, and top: 75px), but it seem that
 none are used. (Canvas lays at top = 0 px and left = 0px, width is about
 300px ...)

 Regards




 --
 Daniel Narvaez




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


  1   2   3   4   >