Re: [Sugar-devel] Regarding GSOC 2020

2020-02-24 Thread James Cameron
Welcome Ayush,

Thanks for your work so far.

It is too early to apply, but now is a good time to discuss your
application ideas with us.

Your idea is to do both our project ideas "Port Sugar and core
activities to Python 3" and "Improve and maintain 25 Sugar
activities"?

After you have applied, we will compare your application with others,
and forward our choice of applications to Google.

https://github.com/sugarlabs/GSoC#want-to-work-with-us- has some of
our guidance.

Your work in the past two weeks is the only work on Sugar and
activities by a GSoC applicant, but there's time yet for other
applicants to demonstrate their work and fluency.

https://github.com/pulls?page=2=is%3Apr+org%3Asugarlabs+archived%3Afalse

It will be work between 9th December and 23rd April that will
most influence my decision on which applications to forward.

Your work so far has been of high quantity, but of low quality.

Another student may compete with you on the basis of quality; so this
is an opportunity for you to work on quality.

Slow down.

Many of your pull requests had review comments that showed you needed
to do more work; such as design, coding, testing, or documenting.
There were many foreseeable contingencies that you missed.

We have many activities that are not used, because they are
unfinished, or unreleased, or don't work because they have not been
maintained against changing library environment.  I've seen you hit
many of them and have your pull requests stall.

One of our primary goals is people using our software, so it must be
working.  Your focus on the scope of an issue or pull request is
inconsistent with that.  We make an exception for competitions such as
GCI where time is also important, and you did begin work during GCI,
so you may have been misled by our GCI reviewing pattern.

You also have an opportunity to demonstrated you can use the
libraries, tools and techniques that the project ideas refer to.  Look
through the project ideas and make sure you learn what you can.

You should also learn how to review other people's pull requests.

Hope that helps!

On Mon, Feb 24, 2020 at 10:05:56PM +0530, ayush nawal wrote:
> Hello everyone, I am Ayush Nawal, an electronics undergrad.
> 
> I have been contributing to sugar labs from the last 3 months, my 
> contributions
> majorly revolved around many activities that needed some form of porting,
> solving existing issues. I am currently working on some of my pending pull
> requests.
> 
> I wish to participate in GSoC 2020, for that, please guide me if I need to
> contribute project specific to back my proposal with some good pull requests.
> 
> I have gone through the ideas page. I found these ideas more suitable for me:
> 1) port sugar and core activities to python 3.
> 2)  improve and maintain at least 25 sugar activities.

> ___
> 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] Project: graphic design for resolution independence

2020-02-24 Thread Martin Abente
On Mon, Feb 24, 2020 at 8:50 PM James Cameron  wrote:

> Many older activities were designed for the 4:3 aspect ratio 1200x900
> pixel display of the original OLPC XO laptop, which had a button to rotate
> the screen by 90°.
>
> Now Sugar is being used on other laptops and computers with an aspect
> ratio of 16:9 and higher resolutions, and screen rotation may occur
> automatically.
>
> Display resolution may also change when an external display is plugged in.
>

It does, and since external displays don't necessary use the same
resolution as the primary one our current approach of
Gdk.Screen.width/height results in a very broken experience.

See
https://github.com/tchx84/sugarapp/blob/master/flatpak-guide-common-issues.md

The solution I am using for the Flatpak ports is to force activities to
display only on the primary monitor. I prepared a helper to make these
fixes a bit easier in sugarapp lib.

See https://github.com/tchx84/sugarapp/blob/master/sugarapp/helpers.py#L24

The project is to deploy a set of solutions specific to each activity;
>
> * for backgrounds; either redesign the background image for higher
> resolutions, or use tiling,
>
> * for game assets; either redesign the asset as a vector, or redesign for
> a higher resolution,
>
> * detect resolution changes and resize user interface elements,
>
> * test on all standard resolutions and 90° rotations.
>
> Technologies needed: PNG, SVG, Inkscape, git, Python, GTK, and Pygame.
>
> Skills needed: graphic design, software design, and software maintenance.
>
> --
> James Cameron
> http://quozl.netrek.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] [SoaS] Fedora 32 Sugar on a Stick (0.116) status/testing

2020-02-24 Thread James Cameron
On Mon, Feb 24, 2020 at 01:23:13PM +, Peter Robinson wrote:
> > > Log (41) - Fails on start-up with AttributeError, [...]
> > Sounds like you have a Fedora specific error to diagnose. [...]
> 
> As far as I can see all those deps are there.
> 
> I see the following crash:
> 
> Traceback (most recent call last): [...]
>   File "/usr/share/sugar/activities/Log.activity/logviewer.py", line 113, in 
> _build_treeview
> sorted = self._treemodel.sort_new_with_model()
> AttributeError: 'TreeStore' object has no attribute 'sort_new_with_model'

Thanks.  It was a GTK breaking change.

Fixed in 42f3f31 ("Fix AttributeError on GTK 3.24.14")

https://github.com/sugarlabs/log-activity/pull/20
https://github.com/sugarlabs/log-activity/pull/20/commits/42f3f31711b32f2ed82a1487e9584ea2536dd2af

Not tested, please test.

My thanks to Manuel Kaufmann in 2012 for adding a README to the source
at the point of error.

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


[Sugar-devel] Regarding GSOC 2020

2020-02-24 Thread ayush nawal
Hello everyone, I am Ayush Nawal, an electronics undergrad.

I have been contributing to sugar labs from the last 3 months, my
contributions majorly revolved around many activities that needed some form
of porting, solving existing issues. I am currently working on some of my
pending pull requests.

I wish to participate in GSoC 2020, for that, please guide me if I need to
contribute project specific to back my proposal with some good pull
requests.

I have gone through the ideas page. I found these ideas more suitable for
me:
1) port sugar and core activities to python 3.
2)  improve and maintain at least 25 sugar activities.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [SoaS] Fedora 32 Sugar on a Stick (0.116) status/testing

2020-02-24 Thread Peter Robinson
> > Log (41) - Fails on start-up with AttributeError, ideally should be
> > ported to python 3.
>
> No, v41 is Python 3 already, and should work.  Does work on Ubuntu
> 20.04 beta.  Sounds like you have a Fedora specific error to diagnose.
>
> The dependencies are unusual for this activity; check you have covered
> them properly.  On Ubuntu 20.04 the dependencies include;
>
> python3, python3-sugar3, python3-gi, python3-urllib3,
> gir1.2-glib-2.0, gir1.2-gtk-3.0, gir1.2-pango-1.0,
> net-tools, procps

As far as I can see all those deps are there.

I see the following crash:

Traceback (most recent call last):
  File "/usr/bin/sugar-activity3", line 5, in 
activityinstance.main()
  File "/usr/lib/python3.8/site-packages/sugar3/activity/activityinstance.py",
line 230, in main
instance = create_activity_instance(activity_constructor, activity_handle)
  File "/usr/lib/python3.8/site-packages/sugar3/activity/activityinstance.py",
line 59, in create_activity_instance
activity = constructor(handle)
  File "/usr/share/sugar/activities/Log.activity/logviewer.py", line
458, in __init__
self.viewer = MultiLogView(paths, ext_files)
  File "/usr/share/sugar/activities/Log.activity/logviewer.py", line
75, in __init__
self._build_treeview()
  File "/usr/share/sugar/activities/Log.activity/logviewer.py", line
113, in _build_treeview
sorted = self._treemodel.sort_new_with_model()
AttributeError: 'TreeStore' object has no attribute 'sort_new_with_model'
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel