Re: [Sugar-devel] Porting sugar activity to sugarizer

2020-03-11 Thread James Cameron
The board is not random in the beginning.

When creating a game to play Implode starts with an empty board state
and injects transformations to confuse that state.  The type of
transformations are the exact inverse of those the player requests in
a winning move sequence.

The code is in boardgen.py

The Maze game has a reversible algorithm too.

On Thu, Mar 12, 2020 at 08:55:49AM +0530, Abhishek Tanwar wrote:
> I am porting Implode activity to sugarizer . I read the code a few times and I
> partially understood its working . One thing that I am not able to understand
> is the logic that the game always have an answer despite of random board
> formation in the beginning .
> Is it that the initial state of board is designed according to last state and
> the game is played in a reverse order such that there exist no state in which
> there is no next move to make?
> 

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


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


[Sugar-devel] Porting sugar activity to sugarizer

2020-03-11 Thread Abhishek Tanwar
I am porting Implode activity to sugarizer . I read the code a few times
and I partially understood its working . One thing that I am not able to
understand is the logic that the game always have an answer despite of
random board formation in the beginning .
Is it that the initial state of board is designed according to last state
and the game is played in a reverse order such that there exist no state in
which there is no next move to make?
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Porting Activity to Sugarizer

2020-03-11 Thread James Cameron
Sound is captured from microphone or line input, expressed as digital
audio samples, resampled at a frequency congruent with the display,
and then drawn as a graph.  Some time is then allowed to elapse before
doing it again.

Where possible, the calculations for capture, resampling, and
formatting are handled by very fast C code in libraries; ALSA, Numpy,
Cairo, and GTK.  This ensures the waveform can be updated many times a
second.

The best guide to the logic is the source code
https://github.com/sugarlabs/Measure

A visualisation tool such as pydeps may be of use for understanding
the code structure quickly.

My advice is to look for JavaScript waveform capture and display
modules.

On Thu, Mar 12, 2020 at 08:20:20AM +0530, Abhishek Tanwar wrote:
> I am porting the Measure activity of Sugar to Sugarizer. Can anyone please 
> help
> me understand the logic used in measure Activity .
> I would be very thankful to you.
> 
> Thank You

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


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


[Sugar-devel] Porting Activity to Sugarizer

2020-03-11 Thread Abhishek Tanwar
I am porting the Measure activity of Sugar to Sugarizer. Can anyone please
help me understand the logic used in measure Activity .
I would be very thankful to you.

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


Re: [Sugar-devel] Measure activity not working

2020-03-11 Thread Abhishek Tanwar
Thanks for the help. It worked .
Sorry for sharing the image I'll keep that in mind next time.

On Thu, Mar 12, 2020 at 5:28 AM James Cameron  wrote:

> Yes, that won't work.
>
> By following the instructions on ubuntu.md#using-sugar-on-ubuntu you
> will have installed Sugar 0.106, which is Python 2 only.  That's why
> you saw "sugar-activity3: command not found".
>
> Measure activity has been ported to Python 3, and requires Sugar 0.116
> or later.
>
> You have a choice; either use the python2 branch of Measure activity,
> or upgrade to Sugar 0.116.
>
> Ubuntu has not provided update Sugar for 16.04, so you must upgrade to
> a later release of Ubuntu, or use a virtual machine.
>
> I agree with Ibiam, please don't use images to convey something that
> could be copied and pasted as text.  We can't search images easily,
> and data bandwidth is precious for many of us.
>
> On Thu, Mar 12, 2020 at 12:52:39AM +0530, Abhishek Tanwar wrote:
> > I installed sugar on my ubuntu 16.04 using [1]
> https://github.com/sugarlabs/
> > sugar/blob/master/docs/ubuntu.md#using-sugar-on-ubuntu .
> >
> > On Thu, Mar 12, 2020 at 12:44 AM Chihurumnaya Ibiam <[2]
> > ibiamchihurumn...@sugarlabs.org> wrote:
> >
> > How did you install sugar?
> >
> > Also you can send the output next time instead of an image.
> >
> > On Wed, Mar 11, 2020, 8:09 PM Abhishek Tanwar <[3]
> > abhishektanwar...@gmail.com> wrote:
> >
> > I have clone the measure activity from [4]
> https://github.com/sugarlabs/
> > Measure/tree/master in my /usr/share/sugar/activities directory
> on my
> > linux 16.04 .
> > When I run Measure activity it does not start . Logs are also
> clear ,no
> > error appears in logs.
> >
> > When I try to run the activity using terminal this appears in
> terminal.
> > [5][jpeg] measure activity.jpg
> > ___
> > Sugar-devel mailing list
> > [6]Sugar-devel@lists.sugarlabs.org
> > [7]http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> > References:
> >
> > [1]
> https://github.com/sugarlabs/sugar/blob/master/docs/ubuntu.md#using-sugar-on-ubuntu
> > [2] mailto:ibiamchihurumn...@sugarlabs.org
> > [3] mailto:abhishektanwar...@gmail.com
> > [4] https://github.com/sugarlabs/Measure/tree/master
> > [5]
> https://drive.google.com/file/d/10WeF13lc6t054uDUz8SN7oBQqv-UsmJJ/view?usp=drive_web
> > [6] mailto:Sugar-devel@lists.sugarlabs.org
> > [7] http://lists.sugarlabs.org/listinfo/sugar-devel
>
> > ___
> > Sugar-devel mailing list
> > Sugar-devel@lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> James Cameron
> http://quozl.netrek.org/
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Measure activity not working

2020-03-11 Thread James Cameron
Yes, that won't work.

By following the instructions on ubuntu.md#using-sugar-on-ubuntu you
will have installed Sugar 0.106, which is Python 2 only.  That's why
you saw "sugar-activity3: command not found".

Measure activity has been ported to Python 3, and requires Sugar 0.116
or later.

You have a choice; either use the python2 branch of Measure activity,
or upgrade to Sugar 0.116.

Ubuntu has not provided update Sugar for 16.04, so you must upgrade to
a later release of Ubuntu, or use a virtual machine.

I agree with Ibiam, please don't use images to convey something that
could be copied and pasted as text.  We can't search images easily,
and data bandwidth is precious for many of us.

On Thu, Mar 12, 2020 at 12:52:39AM +0530, Abhishek Tanwar wrote:
> I installed sugar on my ubuntu 16.04 using [1]https://github.com/sugarlabs/
> sugar/blob/master/docs/ubuntu.md#using-sugar-on-ubuntu .
> 
> On Thu, Mar 12, 2020 at 12:44 AM Chihurumnaya Ibiam <[2]
> ibiamchihurumn...@sugarlabs.org> wrote:
> 
> How did you install sugar? 
> 
> Also you can send the output next time instead of an image.
> 
> On Wed, Mar 11, 2020, 8:09 PM Abhishek Tanwar <[3]
> abhishektanwar...@gmail.com> wrote:
> 
> I have clone the measure activity from 
> [4]https://github.com/sugarlabs/
> Measure/tree/master in my /usr/share/sugar/activities directory on my
> linux 16.04 .
> When I run Measure activity it does not start . Logs are also clear 
> ,no
> error appears in logs.
> 
> When I try to run the activity using terminal this appears in 
> terminal.
> [5][jpeg] measure activity.jpg
> ___
> Sugar-devel mailing list
> [6]Sugar-devel@lists.sugarlabs.org
> [7]http://lists.sugarlabs.org/listinfo/sugar-devel
> 
> References:
> 
> [1] 
> https://github.com/sugarlabs/sugar/blob/master/docs/ubuntu.md#using-sugar-on-ubuntu
> [2] mailto:ibiamchihurumn...@sugarlabs.org
> [3] mailto:abhishektanwar...@gmail.com
> [4] https://github.com/sugarlabs/Measure/tree/master
> [5] 
> https://drive.google.com/file/d/10WeF13lc6t054uDUz8SN7oBQqv-UsmJJ/view?usp=drive_web
> [6] mailto:Sugar-devel@lists.sugarlabs.org
> [7] http://lists.sugarlabs.org/listinfo/sugar-devel

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


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


Re: [Sugar-devel] Issue in Installation of Sugar-live-build

2020-03-11 Thread James Cameron
Saumya; unless you have a requirement I'm not aware of, you should not
be trying to rebuild the image, you should instead be trying to _use_
an already built image.  You can use my image, or Ibiam's image.  The
image is an ISO-9660 filesystem.

Jui is correct; issue 13 and the "Failed getting release file" is what
happens if you try to rebuild on Ubuntu _against_ the requirement in
README.md to use Debian 10 Buster.

However, if you want it to rebuild on Ubuntu, feel free to contribute
the necessary changes and support it in future.  It's not impossible,
just that I think it is unnecessary.

On Wed, Mar 11, 2020, 5:14 PM Saumya Mishra <[2]2017...@iiitdmj.ac.in> wrote:
> As suggested by you I tried installing sugar-live-build. But on
> running build script I am getting error-
> P: Executing auto/build script.
> [2020-03-11 21:37:44] lb_build noauto
> [2020-03-11 21:37:44] lb_bootstrap
> P: Setting up cleanup function
> [2020-03-11 21:37:44] lb_bootstrap_cache restore
> P: Restoring bootstrap stage from cache...
> [2020-03-11 21:37:44] lb_bootstrap_copy
> [2020-03-11 21:37:44] lb_bootstrap_cdebootstrap
> [2020-03-11 21:37:44] lb_bootstrap_debootstrap
> P: Begin bootstrapping system...
> [2020-03-11 21:37:44] lb_testroot
> P: If the following stage fails, the most likely cause of the problem is
> with your mirror configuration or a caching proxy.
> P: Running debootstrap (download-only)...
> I: Retrieving InRelease
> I: Retrieving Release
> E: Failed getting release file [3]http://archive.ubuntu.com/ubuntu/dists/
> buster/Release
> P: Begin unmounting filesystems...
> P: Saving caches...
> chroot: failed to run command ‘/usr/bin/env’: No such file or directory
> normal successful completion
> I have stuck here. Kindly help me in this.
> 
> References:
> 
> [1] http://people.sugarlabs.org/ibiamchihurumnaya/
> [2] mailto:2017...@iiitdmj.ac.in
> [3] http://archive.ubuntu.com/ubuntu/dists/buster/Release

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


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


Re: [Sugar-devel] Query Regarding GSOC

2020-03-11 Thread James Cameron
Hello Vishal,

Thanks for asking.

We have a proposal template
https://github.com/sugarlabs/GSoC/blob/master/Template.md

Google has a guide to Writing a Proposal
https://google.github.io/gsocguides/student/writing-a-proposal

And we have a list of what we are looking for in a perfect student
https://github.com/sugarlabs/GSoC#right-fit

My assessment will be based about 50% on proposal, and 50% on right
fit.

On Wed, Mar 11, 2020 at 06:41:00PM +0530, Vishal Chaudhary wrote:
> Hello, I am VIshal Chaudhary wanted to participate in GSOC 2020 with your
> organization.
> 
> I have gone through the project list from which I think the below three
> interests me the most:
> 
> Sugar app store for Python 3 activities (aslov4)
> Debian advocacy for Sugar
> Fedora advocacy for Sugar
> 
> If I am to make proposal for any one of the above , How should I move on from
> here?
> 
> Thanks,
> Vishal
> 

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


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


Re: [Sugar-devel] Idea Discussion for Improve and Maintain 25 sugar activities

2020-03-11 Thread James Cameron
Hello Ayush,

You are correct in your assessment of the activities; there are many
with good learning values that are no longer available because of
insufficient maintenance.

You can certainly refer to those three pull requests in your proposal,
for context, or in a list of pull requests you intend to complete.
When you do reference, include the link, the author, and the reviewers
so far.  When you plan work, describe whether the pull request is near
complete or has a long way to go.  Remember to properly credit the
existing author in any new work.

However, don't spend too much time planning the work into a project
schedule or against the evaluation timeline.  We don't value this kind
of scheduling or planning, because we know that (a) there is always
more to do than can ever be done, (b) the only way to know how long
something takes is to do it, and (c) falling short of a schedule
may cause hasty work which brings us problems later.

Plan so that the whole development process through to an activity
release occurs within hours if there are no obstructions.

Remember our goal; we want to find someone who is a right fit for
Sugar Labs and who will spend many years with us in a voluntary
capacity.  This section was recently added to our GSoC welcome;

https://github.com/sugarlabs/GSoC#right-fit

By the way, I'm not sure if you received my previous mail
http://lists.sugarlabs.org/archive/sugar-devel/2020-February/057801.html
as there was no reply to close out the thread.

On Wed, Mar 11, 2020 at 05:10:13PM +0530, ayush nawal wrote:
> G'day,
> 
> As I was going through activities selection for my proposal, I am facing some
> doubts while planning for the issue to work on in a particular activity.
> 
> In my opinion, Along with fixing bugs and adding new features, upgrading all
> the required dependencies of the 25 proposed activity to the latest and
> release-ready state also comes under the maintenance work.
> 
> There are still a lot of activities with good learning values not ported to
> GTK3 or python3, and also required many other forms of porting like updating
> collabwrapper, gobject to glib, gconf to gio.settings, etc.
> 
> Can I include these issues (along with feature additions and bug fixes) in my
> application too under the maintenance section for an activity?
> 
> Also, review required here :
> [1]#1
> [2]#13
> [3]#15
> 
> Thanks
> Ayush
> 
> References:
> 
> [1] https://github.com/sugarlabs/numberrush-activity/pull/1
> [2] https://github.com/sugarlabs/reflect/pull/13
> [3] https://github.com/sugarlabs/CowBulls-activity/pull/15

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


Re: [Sugar-devel] Measure activity not working

2020-03-11 Thread Abhishek Tanwar
I installed sugar on my ubuntu 16.04 using
https://github.com/sugarlabs/sugar/blob/master/docs/ubuntu.md#using-sugar-on-ubuntu
 .

On Thu, Mar 12, 2020 at 12:44 AM Chihurumnaya Ibiam <
ibiamchihurumn...@sugarlabs.org> wrote:

> How did you install sugar?
>
> Also you can send the output next time instead of an image.
>
> On Wed, Mar 11, 2020, 8:09 PM Abhishek Tanwar 
> wrote:
>
>> I have clone the measure activity from
>> https://github.com/sugarlabs/Measure/tree/master in my
>> /usr/share/sugar/activities directory on my linux 16.04 .
>> When I run Measure activity it does not start . Logs are also clear ,no
>> error appears in logs.
>>
>> When I try to run the activity using terminal this appears in terminal.
>>  measure activity.jpg
>> 
>> ___
>> 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] Measure activity not working

2020-03-11 Thread Chihurumnaya Ibiam
How did you install sugar?

Also you can send the output next time instead of an image.

On Wed, Mar 11, 2020, 8:09 PM Abhishek Tanwar 
wrote:

> I have clone the measure activity from
> https://github.com/sugarlabs/Measure/tree/master in my
> /usr/share/sugar/activities directory on my linux 16.04 .
> When I run Measure activity it does not start . Logs are also clear ,no
> error appears in logs.
>
> When I try to run the activity using terminal this appears in terminal.
>  measure activity.jpg
> 
> ___
> 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] Issue in Installation of Sugar-live-build

2020-03-11 Thread Chihurumnaya Ibiam
You can get the live build image here
http://people.sugarlabs.org/ibiamchihurumnaya/

On Wed, Mar 11, 2020, 5:14 PM Saumya Mishra <2017...@iiitdmj.ac.in> wrote:

> As suggested by you I tried installing sugar-live-build. But on
> running build script I am getting error-
> P: Executing auto/build script.
> [2020-03-11 21:37:44] lb_build noauto
> [2020-03-11 21:37:44] lb_bootstrap
> P: Setting up cleanup function
> [2020-03-11 21:37:44] lb_bootstrap_cache restore
> P: Restoring bootstrap stage from cache...
> [2020-03-11 21:37:44] lb_bootstrap_copy
> [2020-03-11 21:37:44] lb_bootstrap_cdebootstrap
> [2020-03-11 21:37:44] lb_bootstrap_debootstrap
> P: Begin bootstrapping system...
> [2020-03-11 21:37:44] lb_testroot
> P: If the following stage fails, the most likely cause of the problem is
> with your mirror configuration or a caching proxy.
> P: Running debootstrap (download-only)...
> I: Retrieving InRelease
> I: Retrieving Release
> E: Failed getting release file
> http://archive.ubuntu.com/ubuntu/dists/buster/Release
> P: Begin unmounting filesystems...
> P: Saving caches...
> chroot: failed to run command ‘/usr/bin/env’: No such file or directory
> normal successful completion
> I have stuck here. Kindly help me in this.
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Measure activity not working

2020-03-11 Thread Abhishek Tanwar
I have clone the measure activity from
https://github.com/sugarlabs/Measure/tree/master in my
/usr/share/sugar/activities directory on my linux 16.04 .
When I run Measure activity it does not start . Logs are also clear ,no
error appears in logs.

When I try to run the activity using terminal this appears in terminal.
 measure activity.jpg

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


Re: [Sugar-devel] Issue in Installation of Sugar-live-build

2020-03-11 Thread Jui Pradhan
Hi,
I faced a similar issue before. However, you can get sugar-live-build
working on a virtual machine. Get it working by directly downloading the
.iso file, no need to rebuild it on your own. (please correct me if I am
wrong)
Maybe this might help -
https://github.com/sugarlabs/sugar-live-build/issues/13

Regards,
Jui Pradhan

On Wed, Mar 11, 2020 at 9:44 PM Saumya Mishra <2017...@iiitdmj.ac.in> wrote:

> As suggested by you I tried installing sugar-live-build. But on
> running build script I am getting error-
> P: Executing auto/build script.
> [2020-03-11 21:37:44] lb_build noauto
> [2020-03-11 21:37:44] lb_bootstrap
> P: Setting up cleanup function
> [2020-03-11 21:37:44] lb_bootstrap_cache restore
> P: Restoring bootstrap stage from cache...
> [2020-03-11 21:37:44] lb_bootstrap_copy
> [2020-03-11 21:37:44] lb_bootstrap_cdebootstrap
> [2020-03-11 21:37:44] lb_bootstrap_debootstrap
> P: Begin bootstrapping system...
> [2020-03-11 21:37:44] lb_testroot
> P: If the following stage fails, the most likely cause of the problem is
> with your mirror configuration or a caching proxy.
> P: Running debootstrap (download-only)...
> I: Retrieving InRelease
> I: Retrieving Release
> E: Failed getting release file
> http://archive.ubuntu.com/ubuntu/dists/buster/Release
> P: Begin unmounting filesystems...
> P: Saving caches...
> chroot: failed to run command ‘/usr/bin/env’: No such file or directory
> normal successful completion
> I have stuck here. Kindly help me in this.
> ___
> 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] M-V-C model for MusicBlocks

2020-03-11 Thread Walter Bender
Noted.

On Wed, Mar 11, 2020 at 12:00 PM Bottersnike 
wrote:

> It is worth noting that the module loading method MusicBlocks uses,
> requirejs, is particularly susceptible to race conditions. From testing, at
> the moment is it currently just at the limit of the number of files it's
> able to load without this being an issue, however I suspect if each widget
> requires two files not one, along with the additional shared boilerplate
> code that'll be needed, this may tip requirejs over the edge. This should
> be avoidable by making use of define(), however it'll be something to keep
> in mind if strange race conditions start to appear on page load (especially
> a fresh load without cache).
>
> On Wed, 11 Mar 2020, 15:52 b18050 b18050, 
> wrote:
>
>> This is very helpful for beginner developers also if we maintain
>> individual directories for every widget. Different widgets work
>> differently. So, there must be some differences in them i.e. a change in
>> one of the widget can affect only that widget. If we want to add any
>> facility to multiple widgets, it will be just a matter of adding
>> implemented code to that widget , which can be done
>> easily.
>> Please provide any further suggestions .
>>
>> On Wed, Mar 11, 2020 at 9:03 PM Walter Bender 
>> wrote:
>>
>>> Sounds good to me. We should probably make an individual directory for
>>> each widget with its model and controller js files.
>>>
>>> On Wed, Mar 11, 2020 at 11:22 AM b18050 b18050 <
>>> b18...@students.iitmandi.ac.in> wrote:
>>>
 Hello everyone,
 This is regarding model - view - controller model of Music Blocks. As
 suggested by respected mentor , there is a need to separate controller and
 model of widgets. I think it will be good if for every widget, we can have
 two files controller.js  and model.js. In model.js , we can store the data
 and the domain logic. In controller.js , various processes and response to
 various events and invokes changes on the model and the view.



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

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

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


[Sugar-devel] Issue in Installation of Sugar-live-build

2020-03-11 Thread Saumya Mishra
As suggested by you I tried installing sugar-live-build. But on
running build script I am getting error-
P: Executing auto/build script.
[2020-03-11 21:37:44] lb_build noauto
[2020-03-11 21:37:44] lb_bootstrap
P: Setting up cleanup function
[2020-03-11 21:37:44] lb_bootstrap_cache restore
P: Restoring bootstrap stage from cache...
[2020-03-11 21:37:44] lb_bootstrap_copy
[2020-03-11 21:37:44] lb_bootstrap_cdebootstrap
[2020-03-11 21:37:44] lb_bootstrap_debootstrap
P: Begin bootstrapping system...
[2020-03-11 21:37:44] lb_testroot
P: If the following stage fails, the most likely cause of the problem is
with your mirror configuration or a caching proxy.
P: Running debootstrap (download-only)...
I: Retrieving InRelease
I: Retrieving Release
E: Failed getting release file
http://archive.ubuntu.com/ubuntu/dists/buster/Release
P: Begin unmounting filesystems...
P: Saving caches...
chroot: failed to run command ‘/usr/bin/env’: No such file or directory
normal successful completion
I have stuck here. Kindly help me in this.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] M-V-C model for MusicBlocks

2020-03-11 Thread Bottersnike
It is worth noting that the module loading method MusicBlocks uses,
requirejs, is particularly susceptible to race conditions. From testing, at
the moment is it currently just at the limit of the number of files it's
able to load without this being an issue, however I suspect if each widget
requires two files not one, along with the additional shared boilerplate
code that'll be needed, this may tip requirejs over the edge. This should
be avoidable by making use of define(), however it'll be something to keep
in mind if strange race conditions start to appear on page load (especially
a fresh load without cache).

On Wed, 11 Mar 2020, 15:52 b18050 b18050, 
wrote:

> This is very helpful for beginner developers also if we maintain
> individual directories for every widget. Different widgets work
> differently. So, there must be some differences in them i.e. a change in
> one of the widget can affect only that widget. If we want to add any
> facility to multiple widgets, it will be just a matter of adding
> implemented code to that widget , which can be done
> easily.
> Please provide any further suggestions .
>
> On Wed, Mar 11, 2020 at 9:03 PM Walter Bender 
> wrote:
>
>> Sounds good to me. We should probably make an individual directory for
>> each widget with its model and controller js files.
>>
>> On Wed, Mar 11, 2020 at 11:22 AM b18050 b18050 <
>> b18...@students.iitmandi.ac.in> wrote:
>>
>>> Hello everyone,
>>> This is regarding model - view - controller model of Music Blocks. As
>>> suggested by respected mentor , there is a need to separate controller and
>>> model of widgets. I think it will be good if for every widget, we can have
>>> two files controller.js  and model.js. In model.js , we can store the data
>>> and the domain logic. In controller.js , various processes and response to
>>> various events and invokes changes on the model and the view.
>>>
>>>
>>>
>>
>> --
>> 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 mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] M-V-C model for MusicBlocks

2020-03-11 Thread b18050 b18050
This is very helpful for beginner developers also if we maintain individual
directories for every widget. Different widgets work differently. So, there
must be some differences in them i.e. a change in one of the widget can
affect only that widget. If we want to add any facility to multiple
widgets, it will be just a matter of adding implemented code to that widget
, which can be done
easily.
Please provide any further suggestions .

On Wed, Mar 11, 2020 at 9:03 PM Walter Bender 
wrote:

> Sounds good to me. We should probably make an individual directory for
> each widget with its model and controller js files.
>
> On Wed, Mar 11, 2020 at 11:22 AM b18050 b18050 <
> b18...@students.iitmandi.ac.in> wrote:
>
>> Hello everyone,
>> This is regarding model - view - controller model of Music Blocks. As
>> suggested by respected mentor , there is a need to separate controller and
>> model of widgets. I think it will be good if for every widget, we can have
>> two files controller.js  and model.js. In model.js , we can store the data
>> and the domain logic. In controller.js , various processes and response to
>> various events and invokes changes on the model and the view.
>>
>>
>>
>
> --
> 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] M-V-C model for MusicBlocks

2020-03-11 Thread Walter Bender
Sounds good to me. We should probably make an individual directory for each
widget with its model and controller js files.

On Wed, Mar 11, 2020 at 11:22 AM b18050 b18050 <
b18...@students.iitmandi.ac.in> wrote:

> Hello everyone,
> This is regarding model - view - controller model of Music Blocks. As
> suggested by respected mentor , there is a need to separate controller and
> model of widgets. I think it will be good if for every widget, we can have
> two files controller.js  and model.js. In model.js , we can store the data
> and the domain logic. In controller.js , various processes and response to
> various events and invokes changes on the model and the view.
>
>
>

-- 
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] M-V-C model for MusicBlocks

2020-03-11 Thread b18050 b18050
Hello everyone,
This is regarding model - view - controller model of Music Blocks. As
suggested by respected mentor , there is a need to separate controller and
model of widgets. I think it will be good if for every widget, we can have
two files controller.js  and model.js. In model.js , we can store the data
and the domain logic. In controller.js , various processes and response to
various events and invokes changes on the model and the view.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Query Regarding GSOC

2020-03-11 Thread Vishal Chaudhary
Hello, I am VIshal Chaudhary wanted to participate in GSOC 2020 with your
organization.

I have gone through the project list from which I think the below three
interests me the most:

Sugar app store for Python 3 activities (aslov4)
Debian advocacy for Sugar
Fedora advocacy for Sugar

If I am to make proposal for any one of the above , How should I move on
from here?

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


[Sugar-devel] Idea Discussion for Improve and Maintain 25 sugar activities

2020-03-11 Thread ayush nawal
G'day,

As I was going through activities selection for my proposal, I am facing
some doubts while planning for the issue to work on in a particular
activity.

In my opinion, Along with fixing bugs and adding new features, upgrading
all the required dependencies of the 25 proposed activity to the latest and
release-ready state also comes under the maintenance work.

There are still a lot of activities with good learning values not ported to
GTK3 or python3, and also required many other forms of porting like
updating collabwrapper, gobject to glib, gconf to gio.settings, etc.

Can I include these issues (along with feature additions and bug fixes) in
my application too under the maintenance section for an activity?

Also, review required here :
#1 
#13 
#15 

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


Re: [Sugar-devel] Contribution through GSOC

2020-03-11 Thread Saumya Mishra
Thanks James! sudo gsettings set org.gnome.desktop.interface cursor-theme
'whiteglass' this command worked for me. I will take care of things so that
I do not make such mistakes in the future.

On Wed, Mar 11, 2020 at 2:28 AM James Cameron  wrote:

> Thanks.  That sequence explains the cause.  You first installed a
> version of Sugar before the fix, then you installed a version with the
> fix.  The version with the fix restores the configuration to what it
> was before, but you had already lost the original configuration.
>
> You could entirely wipe your system and reinstall, and let this be a
> lesson to you not to make changes to your critical systems.  ;-)
>
> Or you may set the gsettings key back to default.  "Workaround is to
> use gsettings to change cursor-theme in org.gnome.desktop.interface
> back to what it was.";
> https://github.com/sugarlabs/sugar/issues/827
>
> Srevin Saju gave related advice in another thread;
> http://lists.sugarlabs.org/archive/sugar-devel/2020-March/057928.html
>
> On Wed, Mar 11, 2020 at 02:14:51AM +0530, Saumya Mishra wrote:
> > The problem is with my system somewhere as I first installed Packaged
> Sugar and
> > while opening new desktop  session , my cursor was changed then I
> installed
> > Sugar's Native-build without removing Packaged Sugar. Is there any way I
> can
> > remove whole Sugar from my system and so that I can re-install it
> correctly?
> >
> > On Wed 11 Mar, 2020, 1:52 AM James Cameron, <[1]qu...@laptop.org> wrote:
> >
> > Mastering the native build method is critical for the project idea
> you
> > mentioned earlier.
> >
> > But if you used that method, you should already have the fix to the
> > cursor problem.
> >
> > You may have to diagnose why the fix has not worked.  Use
> conventional
> > debugging techniques.
> >
> > On Wed, Mar 11, 2020 at 01:32:01AM +0530, Saumya Mishra wrote:
> > > I have done native build of Sugar-desktop given in [1][2]https://
> > github.com/
> > > sugarlabs/sugar/blob/master/docs/development-environment.md .
> Thankyou!!
> > >
> > > References:
> > >
> > > [1] [3]https://github.com/sugarlabs/sugar/blob/master/docs/
> > development-environment.md
> >
> > --
> > James Cameron
> > [4]http://quozl.netrek.org/
> >
> > References:
> >
> > [1] mailto:qu...@laptop.org
> > [2] https://github.com/
> > [3]
> https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md
> > [4] http://quozl.netrek.org/
>
> --
> James Cameron
> http://quozl.netrek.org/
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel