Re: [Sugar-devel] [IAEP] Social Help [was Re: New Discourse version, update available]

2017-09-29 Thread Sam Parkinson
Thanks for replying James.  Your pretty spot - that is a pretty good
summary of the thing.
I didn't get the email alerting about the 1-click upgrade.  I'm
clicking to apply it now.
I've granted admin to quozl.  If any sysadmin would like admin on the
service, please send your username and I can add you via the web
interface.  If you admin, I think that will let you do 1 click
upgrades.
Sorry for dropping the ball on this one.
On Sat, 2017-09-30 at 06:46 +1000, James Cameron wrote:
> G'day Bernie,
> 
> No, and no.
> 
> Thanks for raising this.  It is a risk to have a public service
> unmaintained, as it can lead to it being exploited.
> 
> Discourse is integrated with Sugar through the Social Help feature
> [0], using the alt-shift-h shortcut or the frame icon.  The feature
> was added [1, 2] in GSoC 2014 and merged in May 2015 for Sugar 0.106,
> with some good fixes since.
> 
> Social Help is an underutilised feature.  Rate of new posts is
> minimal, at about two per year, and I think I'm the only person
> responding [3].
> 
> Despite designed technical advantages [1] Social Help has not had the
> popularity or numerical success of Sugar Network, and with the
> board's
> decision [4] to remediate Sugar Network my guess is that the Social
> Help feature could be removed from Sugar.
> 
> My guesses for why Social Help has not been used are;
> 
> (a) the feature is undiscoverable,
> 
> (b) deployments have set up their own forums,
> 
> (c) independent users of Sugar 0.106 and later are minimal,
> 
> (d) failed to gain critical mass.
> 
> To answer your questions;
> 
> 1.  I'm not handling updates to Discourse; I've no access keys and
> don't know how to do it [5].  Sam Parkinson was handling updates at
> one stage.
> 
> 2.  I'm not using it for project communications, and I've asked those
> who try that to use mailing lists [6].
> 
> You mention Slack.  I don't believe we have Slack.  Slack isn't
> referenced in the Wiki, and hasn't been mentioned on mailing lists.
> If Slack is being used, it is a private group, and the knowledge
> hasn't been widely distributed yet.  Please do that?
> 
> We do have too many project communication options for the size of the
> project at the moment.  I'd like to see some options close.
> 
> +CC sugar-devel@ and iaep@ since I've raised several issues that may
> benefit from wider discussion.  ;-)
> 
> References:
> 
> 0.  https://wiki.sugarlabs.org/go/Features/Social_Help
> 1.  https://wiki.sugarlabs.org/go/Summer_of_Code/2014/AnaBalica/Socia
> l_Help#Comparison_between_Discourse_and_Sugar_Network
> 2.  https://wiki.sugarlabs.org/go/Summer_of_Code/2014/Prasoon2211/Soc
> ial_Help
> 3.  https://socialhelp.sugarlabs.org/
> 4.  https://wiki.sugarlabs.org/go/Oversight_Board/Decisions#2017-04-2
> 1_2
> 5.  https://wiki.sugarlabs.org/go/Service/Social_Help#Todo
> 6.  https://socialhelp.sugarlabs.org/t/sugar-collaboration-xsce-iiab-
> xmpp-jabber-ejabberd/226/5
> 
> On Fri, Sep 29, 2017 at 01:31:46PM -0400, Bernie Innocenti wrote:
> > Is anyone handling updates for discourse?
> > 
> > Is it being used for project communication? I ask because we also
> > have
> > IRC, Slack and mailing lists.
> > 
> > On 29/09/17 07:57, socialh...@sugarlabs.org wrote:
> > > Hooray, a new version of Discourse <http://www.discourse.org> is
> > > available!
> > > 
> > > Your version: 1.6.8
> > > New version: *1.8.8*
> > > 
> > >   *
> > > 
> > > Upgrade using our easy *one-click browser upgrade [...]
> > > 
> > >   *
> > > 
> > > See what's new in the GitHub changelog
> > > <https://github.com/discourse/discourse/commits/master>
> > > 
> > >   *
> > > 
> > > Visit meta.discourse.org <https://meta.discourse.org> for
> > > news,
> > > discussion, and support for Discourse
> > > 
> > > 
> > > 
> > > ___
> > > Systems mailing list
> > > syst...@lists.sugarlabs.org
> > > http://lists.sugarlabs.org/listinfo/systems
> > > 
> > 
> > 
> > -- 
> >  _ // Bernie Innocenti
> >  \X/  http://codewiz.org
> > ___
> > Systems mailing list
> > syst...@lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/systems
-- 
Thanks,
Sam

Check out this narrative tech podcast: https://www.sam.today/podcast/

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


Re: [Sugar-devel] [Systems] Services provided by Sugarlabs - Inventory - Maintainers

2017-02-21 Thread Sam Parkinson
On Sat, 2017-02-18 at 20:25 -0300, Samuel Cantero wrote:
> Hello everyone,
> 
> Currently we have two physical nodes - Justice and Freedom - which
> belongs to SugarLabs and one VM (Sunjammer) provided by the FSF.
> These nodes are running Ubuntu 16.04. Last upgrade was done by Bernie
> Innocenti and by me.
> 
> The main purpose of this email is to update our list of
> machine/services maintainers. We need to have a responsible for every
> service and update our wiki page according to the provided
> information. The Maintainer must be responsible for keeping service
> up, the OS updated and apply all the security patches. I can find
> that many of our services are just broken or forgotten. We need to
> some do cleaning/pruning.
> 
> Below are listed all the current machines/services we're hosting.
> Please, if you're responsible for the machine/service maintenance,
> identify yourself. If no one if responsible for the machine/service,
> we need to define what to do with those machines, whether to find a
> new maintainer or to decommission the machine/service.
> 
> Justice:
> 
> 1. OS: Ubuntu 16.04.1 LTS, 
> 2. Maintainers: Bernie Innocenti, Sebastian Silva and Samuel Cantero.
> 3. Services (VMs running inside this node):
> amnesia:
> OS: Fedora 18. This OS has reached End of Life.
> Maintainer: X.
> Services provided:
> Apparently it's used by Paraguay Educa. It's running an HTTP server,
> MySQL, etc.
> Are we still using this?
> aslo:
> OS: Ubuntu 14.04.5. EOL: April 2019.
> Maintainer: Samuel Cantero.
> Codebase maintainer: X. it would be nice to have someone behind it.
> Aleksey have been helping so far.
> Services provided:
> activities.sugarlabs.org
> zatoichi:
> OS: Ubuntu 12.04.5 LTS. EOL: April 2017.
> Maintainer: X.
> Services provided:
> *.paraguayeduca.org
> Can we keep all the services for PyEduca in one machine? Do we really
> need amnesia and zatoichi?
> lightwave:
> OS: Ubuntu 16.04.1 LTS.
> Maintainer: Bernie Innocenti / Samuel Cantero.
> Services provided:
> Primary DNS server.
> mothership:
> I can't get into the VM. I don't have information about maintainer
> nor the OS/services running inside.
> pootle:
> OS: Ubuntu 14.04.4 LTS.
> Maintainer: Chris Leonard.
> Services provided:
> translate.sugarlabs.org
> library:
> OS: Ubuntu 12.04.5 LTS.
> Maintainer: X.
> Services provided:
> library.sugarlabs.org (pathagar).
> Jita:
> OS: Ubuntu 12.04.5 LTS
> Maintainer: X.
> Services provided:
> cgit.sugarlabs.org. I guess we can decommission this.
> chat.sugarlabs.org.
> fedora.sugarlabs.org (service down, no one reported so no one is
> using it).
> git.sugarlabs.org (gitorious). Someone should move all repos inside
> git.sl.o to GitHub.
> meeting.sugarlabs.org,
> network.sugarlabs.org,
> node.sugarlabs.org (are we using this?)
> school-network.org
> Freedom
> 
> 1. OS: Ubuntu 16.04.1 LTS, 
> 2. Maintainers: Bernie Innocenti, Sebastian Silva, Sam Parkinson and
> Samuel Cantero.
> 3. Services:
> Main backup server.
> We have a bunch of VMs not used by SL. These are: ole, kuckuck,
> munin, owncloud, pirate, hammock, chat, hanginggarden, beacon. AFAIK,
> these VM belongs to Stephan Unterhauser (Dogi). I don't know about
> the terms defined between SugarLabs and Stephan. Hence, I must
> ask: Is Sugarlabs going to continue hosting these VMs?
> We also have the following containers:
> org.sugarlabs.www-rebuilder.
> Maintainer: Sam Parkinson.
> Services:
> used for update the SL www site after a new commit into GitHub repo
> (through Webhooks).
> related: www.sugarlabs.org
> org.sugarlabs.use-socialhelp:
> Maintainer: Sam Parkinson.
> Services:
> socialhelp.sugarlabs.org?
> org.sugarlabs.socialhelp_sso
> Maintainer: Sam Parkinson.
> Services:
> socialhelp.sugarlabs.org?
> local_discourse/app
> Maintainer: Sam Parkinson.
> Services:
> socialhelp.sugarlabs.org?
> org.turtleartday.www-rebuilder
> Maintainer: Samuel Cantero.
> Services:
> used for update the turtleartday.org site after a new commit into
> GitHub repo (through Webhooks).
> related: turtleartday.org
> org.sugarlabs.developer-rebuilder
> Maintainer: Sam Parkinson.
> Services:
> related: developer.sugarlabs.org
> org.sugarlabs.bundlebin
> Maintainer: Sam Parkinson.
> Services:
> bundlebin.sugarlabs.org
> org.sugarlabs.bugs
> Maintainer: Sam Parkinson / Samuel Cantero.

To the best of my knowledge, bundlebin is not/never was actively used. 
I will remove it from the server.

> Services:
> bugs.sugarlabs.org
> Sunjammer
> 
> 1. OS: Ubuntu 16.04.1 LTS, 
> 2. Maintainers: Bernie Innocenti, Sebastian Silva, and Samuel
> Cantero.
> 3. S

Re: [Sugar-devel] Failed during the pull request

2016-12-21 Thread Sam Parkinson

Hello,

Please include the text of the error in your email.  That will allow 
others to understand the issue.


Thanks,
Sam

On Wed, Dec 21, 2016 at 10:01 PM, Himanshu Sekhar Nayak 
 wrote:
./osbuild pull in the terminal is not working and showing so many 
errors but I had used it so many times but today it is not pulling 
the request. There may be some error in pull with the sugar-build 
environment as I think
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] HttpError in ./osbuild pull

2016-11-19 Thread Sam Parkinson

Hi Ridhwanul,

What distro are you using on the raspberry pi?  If you use Fedora, then 
osbuild works in a lighter and more arch-independent way.  Maybe that 
will solve it?


Thanks,
Sam

On Sun, Nov 20, 2016 at 5:57 AM, Ridhwanul Haque  
wrote:



I am not sure if it is supported but I was trying to set up the dev
environment following
https://developer.sugarlabs.org/dev-environment.md.html, in Raspbian 
in
Raspberry Pi. But when I tried running ./osbuild pull I get the 
folloing

error :
Failed to download http://sunjammer.sugarlbas.org/~buildbot
/broot/last-armv6l-master
Traceback (most recent call last):
  File 
"/home/pi/Desktop/sugarlabs/sugar-build/build/out/sandbox-host/install/bin/broot", 
line 5, in 

main.main()
  File 
"/home/pi/Desktop/sugarlabs/sugar-build/build/out/sandbox-host/install/local/lib/python2.7/site-packages/broot/main.py", 
line 80, in main

if not cmd_function(options, other_args):
  File 
"/home/pi/Desktop/sugarlabs/sugar-build/build/out/sandbox-host/install/local/lib/python2.7/site-packages/broot/main.py", 
line 40, in cmd_setup

return root.setup()
  File 
"/home/pi/Desktop/sugarlabs/sugar-build/build/out/sandbox-host/install/local/lib/python2.7/site-packages/broot/root.py", 
line 240, in setup

if not self._download():
  File 
"/home/pi/Desktop/sugarlabs/sugar-build/build/out/sandbox-host/install/local/lib/python2.7/site-packages/broot/root.py", 
line 281, in _download

last = urllib2.urlopen(last_url).read().strip()
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 407, in open
response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 520, in http_response
'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 445, in error
return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 528, in 
http_error_default

raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

I have seen that there were similar problems posted on 
lists.sugarlabs.org but couldn't really find out the solution, and 
its also possible i missed it out since it was very difficult to read 
it there. I have directly followed the development document link that 
i shared, so if there was any perquisite steps I have missed it out. 
Raspberry pi has already python in it so dont think thats necessary 
to install, but if there is any other library, it might not be there. 
So if I am supposed to do anything before running the command 
"./osbuild pull" please let me know.And also if it is not possible to 
set up in Raspbian, then where can I set up the dev environment, is 
it possible in Mac?  I am sorry if I am repeating the question, but I 
hope I will be getting some response.

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


Re: [Sugar-devel] GCI and our build environment

2016-11-13 Thread Sam Parkinson
I sent some patches to fix submodules in bundlebuilder.  They are part 
of the 0.110.0 release.


Ignacio found out that it was an issue with sugar-build not being 
submodule ready, and has fixed the bug:  
https://github.com/sugarlabs/sugar-build/issues/41


Thanks,
Sam

On Sun, Nov 13, 2016 at 8:10 AM, Walter Bender 
 wrote:
+1 to Quozl's suggestion to drop the actual collaboration wrapper 
code into the repo. We can consider adding gitsubmodule  support to 
0.112.


-walter

On Sat, Nov 12, 2016 at 4:01 PM, Utkarsh Tiwari 
 wrote:


-- Forwarded message --
From: James Cameron 
Date: Tue, Nov 8, 2016 at 8:58 AM
Subject: Re: [Sugar-devel] Sugar-Build
To: "Nguyen, Lam" 


G'day,

Browse is a critical part of Sugar, so to exclude it from
sugar-build does not seem to be a good long term solution.

Many fixes have been proposed, but none have gained community 
support.

Perhaps because the fixes have been wrong, and have not solved the
underlying problem.

Please confirm by your own research my theory below.

The problem was caused by a commit to the Browse repository that
introduced a Git Submodule (fb62edc), without a corresponding commit
to sugar-build or sugar-toolkit-gtk3 to support submodules and
recursive clones.

If my theory is true, an alternative is to revert the commit to
Browse, removing the submodule and replacing it with a copy of the
files from the collabwrapper repository.

You might test the theory by:

1.  cloning the Browse repository and reverting the commit,

2.  editing your module.json to use your clone of Browse,

3.  re-running sugar-build from a fresh clone.

As for myself, I build Sugar as Fedora or Debian packages and apply
these to my systems, rather than use sugar-build.  sugar-build is not
used when Sugar is a primary desktop environment; it is only a
development aid for people who do not need to make packages.

Disclosure: I'm paid by One Laptop per Child.

On Tue, Nov 08, 2016 at 01:52:55AM +, Nguyen, Lam wrote:
> Hi Sugar developers,
>
> The issue that Walter brought up had been discussed before. The 
fix for this

> issue can be found here [1]http://www.mail-archive.com/
> sugar-devel@lists.sugarlabs.org/msg42561.html
> I was thinking of changing the installation instruction on [2]
> developer.sugarlabs.org to include this fix as a common issue. 
What I wondered
> is that should we permanently remove the lines that caused the 
error from the
> file /build/module.json? Would there be any consequence to 
permanently removing

> these lines?
>
> {
> >> "name": "browse",
> >> "repo": "[3]https://github.com/sugarlabs/browse-activity.git;;,
> >> "clean_stamp": 1
> >> },
>
> Best,
> Lam
>
> On Oct 30, 2016, at 9:20 AM, Walter Bender 
<[4]walter.ben...@gmail.com>

> wrote:
>
> -- Forwarded message --
> From: Ridhwanul Haque <[5]rhemo...@gmail.com>
> Date: Sun, Oct 30, 2016 at 6:30 AM
> Subject: Sugar-Build
> To: Walter Bender <[6]walter.ben...@gmail.com>
>
> Hello,
> I am trying to set up the sugar development environment in 
fedora following
> this link: 
[7]https://developer.sugarlabs.org/dev-environment.md.html#run
> On build i got and error, but i still tried running but got an 
error as

> well. I have shared part of the error with the image.
>
> 
> In the website, it said to check the relay chat to share 
problems but I
> wasn't sure if I should be taking this problem there so I 
thought I should

> first share it with you. Thanks and sorry in advance.
>
> --
> Walter Bender
> Sugar Labs
> [8]http://www.sugarlabs.org
> [9]
> ___
> Sugar-devel mailing list
> [10]Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
> References:
>
> [1] 
http://www.mail-archive.com/sugar-devel@lists.sugarlabs.org/msg42561.html

> [2] http://developer.sugarlabs.org/
> [3] https://github.com/sugarlabs/browse-activity.git%22
> [4] mailto:walter.ben...@gmail.com
> [5] mailto:rhemo...@gmail.com
> [6] mailto:walter.ben...@gmail.com
> [7] https://developer.sugarlabs.org/dev-environment.md.html#run
> [8] http://www.sugarlabs.org/
> [9] http://www.sugarlabs.org/
> [10] mailto:Sugar-devel@lists.sugarlabs.org

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


--
James Cameron
http://quozl.netrek.org/



--
Regards,
Ütkarsh Tiwari



On Sun, Nov 13, 2016 at 12:46 AM, Walter Bender 
 wrote:
What with Google Code In beginning in two weeks, we are about to 
get bombarded with questions from people struggling with the build 
system. It has recently been pointed out that building browse is 
causing problems again. I imagine there may be other problems as 
well, for example, 

Re: [Sugar-devel] Sugar-Build

2016-11-08 Thread Sam Parkinson

Hi Lam,

Removing that line means that Browse activity (the browser in sugar) 
doesn't get installed.


Did you experience the error on a fresh install of sugar-build?  What 
OS are you running?  If you have sugar installed on that os through the 
package manager, what version is it?


Thanks,
Sam

On Tue, Nov 8, 2016 at 12:52 PM, Nguyen, Lam  
wrote:

Hi Sugar developers,

The issue that Walter brought up had been discussed before. The fix 
for this issue can be found here 
http://www.mail-archive.com/sugar-devel@lists.sugarlabs.org/msg42561.html
I was thinking of changing the installation instruction on 
developer.sugarlabs.org to include this fix as a common issue. What I 
wondered is that should we permanently remove the lines that caused 
the error from the file /build/module.json? Would there be any 
consequence to permanently removing these lines?


{
>> "name": "browse",
>> "repo": "https://github.com/sugarlabs/browse-activity.git;;,
>> "clean_stamp": 1
>> },


Best,
Lam

On Oct 30, 2016, at 9:20 AM, Walter Bender  
wrote:



-- Forwarded message --
From: Ridhwanul Haque 
Date: Sun, Oct 30, 2016 at 6:30 AM
Subject: Sugar-Build
To: Walter Bender 


Hello,
I am trying to set up the sugar development environment in fedora 
following this link: 
https://developer.sugarlabs.org/dev-environment.md.html#run
On build i got and error, but i still tried running but got an error 
as well. I have shared part of the error with the image.




In the website, it said to check the relay chat to share problems 
but I wasn't sure if I should be taking this problem there so I 
thought I should first share it with you. Thanks and sorry in 
advance.




--
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] GCI 2016 meeting

2016-10-25 Thread Sam Parkinson

GCI mentoring is a great experience, I hope to do it again this year.

Unfortunately, I can't attend the meeting either due to time zones.  
Make sure to email the logs Ignacio!


Thanks,
Sam
https://www.presenter.club/

On Tue, Oct 25, 2016 at 8:05 PM, Abhijit Patel 
 wrote:

Hi everyone,

I would like to volunteer for GCI'16 mentorship. I wanted to attain 
the meeting today but unfortunately I won't be able to attain it. But 
will read the logs later on.


So count on me for GCI'16 mentor.


Regards,
Abhijit


Hi everyone!

GCI 2016 is near, and this year, like previous years it will be 
awesome if
we apply. But for this we need mentors and a list of tasks (the 
students

will come, thats for sure :)).

So, I would like to have a meeting to discuss this topic.

When? Tomorrow (25/10)
At what time? Well, I don't know. I would like to get replies in 
this email
about what time is good for you, if nobody replies I may have to 
chose a

time.
Where? irc (freenode) #sugar-meeting

You can join us using chat.sugarlabs.org :)

Count me in as mentor.

Greetings,
Ignacio

-- as usual, sorry for my bad English :P --
-- next part --
An HTML attachment was scrubbed...
URL: 



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


Re: [Sugar-devel] Attackers

2016-10-04 Thread Sam Parkinson

Good news is that we are not under attack to the best of my knowledge.

What happened is that the cert renewal script has failed.  Lucky that 
Samuel documented the system very well [1]!


However, LetsEncrypt client was crashing due to "ImportError: No module 
named datetime".  I "git pull"ed to the latest LE client version and it 
worked a charm.


@Sysadmins:  This script is run by cron, so it should have been failing 
every day.  I can't remember reading any of the logs about it on the 
logs email lists.  There is so much noise there though (like an email 
every hour) that I don't bother to read the contents any more.



[1]  https://wiki.sugarlabs.org/go/Sysadmin/Letsencrypt

Thanks,
Sam

On Tue, Oct 4, 2016 at 5:41 PM, Samson Goddy  
wrote:
I tried accessing sugarlabs.org from my samsung galaxy s5, I keep 
seeing this error message. Are we under attack?


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


Re: [Sugar-devel] Fedora 24 osbuild doesn't work

2016-08-08 Thread Sam Parkinson
Yeah, you have a point.  The whole setup seems too complex.  We should 
really just git clone a default set of activities into the user's 
activities directory.


But this seems to be a bug.  We added code to deal with git submodules 
(eg. collabwrapper) to sugar-toolkit-gtk3.  Dave, are you running the 
latest sugar toolkit gtk3 version (0.109.0.3)?


On Sun, Aug 7, 2016 at 9:55 PM, Tony Anderson  
wrote:
Pardon my ignorance. Why would you need to include an activity in a 
sugar-build?


Tony

On 08/07/2016 11:29 AM, Ütkarsh Tiwari wrote:
I had been facing he same issue while setting up sugar-build. It 
fails at building 'Browse'. Removing it from modules.json file does 
the fix.


Regards,
Ütkarsh Tiwari


On Aug 7, 2016 4:51 AM, "Dave Crossland"  wrote:


On 6 August 2016 at 19:12, Dave Crossland  wrote:
Install /home/broot/sugar-build/browse/collabwrapper to 
/home/broot/sugar-build/build/out/install/share/sugar/activities/Browse.activity/collabwrapper.

Traceback (most recent call last):
  File "/home/broot/sugar-build/browse/setup.py", line 21, in 


bundlebuilder.start()
  File 
"/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar3/activity/bundlebuilder.py", 
line 678, in start

globals()['cmd_' + options.command](config, options)
  File 
"/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar3/activity/bundlebuilder.py", 
line 563, in cmd_install

installer.install(options.prefix, options.install_mime)
  File 
"/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar3/activity/bundlebuilder.py", 
line 368, in install

shutil.copy(source, dest)
  File "/usr/lib64/python2.7/shutil.py", line 119, in copy
copyfile(src, dst)
  File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 21] Is a directory: 
'/home/broot/sugar-build/browse/collabwrapper'

[osbuild sugar-build]$


Eli fixed this for me :) I edited modules.json and deleted Browse 
and then it worked :)


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




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


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


Re: [Sugar-devel] Help Needed adding a module to my Activity

2016-08-08 Thread Sam Parkinson
Statically including libraries in the XO files is yuck, but I don't 
think we have another way to do it.  I believe that Physics activity 
also statically includes libraries - maybe see how it works there?


Side note:  It would be so much better if Sugar activities could just 
declare dependencies.  Just say something like "bindeps=fontmake".  If 
we just made them all into RPMs/DEBs and had a AppStream based store 
interface ... that would be nice.  ASLOv2v2 is just something 
automatically building rpms and debs?


Thanks,
Sam

On Mon, Aug 8, 2016 at 5:02 AM, Yash Agarwal  
wrote:

Hello,
The Issue is Documented here
but I'll paste the relevant part here
I'm trying to use fontmake in my sugar activity, It works fine on my 
system but in sugar it requires a dependency which I don't know how 
to add

this is the error I'm getting
```
bash-4.2$ python -m fontmake -u ../test_fonts/sample.ufo
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in 
_run_module_as_main

"__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
  File 
"/home/broot/sugar-build/activities/edit-fonts-activity/third_party/fontmake/__main__.py", 
line 17, in 

from fontmake.font_project import FontProject
  File "fontmake/font_project.py", line 25, in 
from booleanOperations import BooleanOperationManager
  File "booleanOperations/__init__.py", line 2, in 
from .booleanOperationManager import BooleanOperationManager
  File "booleanOperations/booleanOperationManager.py", line 3, in 


from . import pyClipper
ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not 
found (required by booleanOperations/pyClipper.so)

```

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


Re: [Sugar-devel] Fedora 24 osbuild doesn't work

2016-08-06 Thread Sam Parkinson
Hum, that's interesting.  Does removing the "npm" (or replacing it with 
"nodejs") line from the packages array in build/root.json fix the issue?


If so, please send a patch!

Thanks,
Sam

On Sun, Aug 7, 2016 at 8:06 AM, Dave Crossland  wrote:


Hi

Following https://developer.sugarlabs.org/dev-environment.md.html I 
got stuck setting up sugar with my first osbuild pull command :/


I went to https://getfedora.org/en/workstation/download and installed 
it, then pulled up terminal and run,


$ sudo dnf update -y
$ sudo dnf install -y python2
$ mkdir -p src/github.com/sugarlabs
$ cd !$
$ git clone git://github.com/sugarlabs/sugar-build.git
$ cd sugar-build
$ ./osbuild pull
$ sudo dnf install -y nodejs
$ ./osbuild pull

And this is the error I get: http://imgur.com/a/pPYzU

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


Re: [Sugar-devel] Thoughts on Collab

2016-07-26 Thread Sam Parkinson
On Tue, Jul 26, 2016 at 8:24 PM, Tony Anderson  
wrote:
As always - the devil is in the details. Does this support 
jabber.sugarlabs.org? Does it support ejabberd.


No.  We will probably host a new server if needed.  That will be 
discussed as the implementation is done.


Does it support communication between XOs with different builds (e.g. 
0.110 with 0.94)?


No.  We are experimenting with writing a new system.  Backwards 
compatibility is *not* the aim - the aim is to remove the technical 
debut and make a system that is better for users.


It will also probably *not* be part of 0.110.  We haven't even written 
a working prototype yet.



Does it support ad hoc (the current mesh technique).


Ad hoc just creates wifi networks right?  This is targeting 
collaboration over lan wifi networks.  Again - the code has not been 
written yet.


Also, didn't you say that ad hoc is too unreliable for the real world?

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


Re: [Sugar-devel] FreeDesktop integration UI discussion

2016-07-26 Thread Sam Parkinson



On Tue, Jul 26, 2016 at 12:34 PM, Sebastian Silva 
<sebast...@fuentelibre.org> wrote:

Hi Sam, Dave,

Thanks for bringing this up.
El 16/07/16 a las 18:18, Sam Parkinson escribió:



On Sun, Jul 17, 2016 at 12:33 AM, Dave Crossland <d...@lab6.com> 
wrote:


Hi

Sebastian just edited the wiki about the amazing FreeDesktop 
integration work he's been doing:


https://wiki.sugarlabs.org/index.php?title=Features/FreeDesktop_integration=next=98058

He added 2 ui questions:

> How to choose .desktop files to show in Sugar Launcher.

I think something similar to the "Fonts v1" activity would be good 
to start; a simple activity that lists all of the .desktop files 
available, and a star to select/deselect them. Would the output 
likely be a simple text file with all the selected files's full 
paths? That way, anyone could easily make such a text file before 
the UI is ready.


I'd think that this would be best placed in a new My Settings panel 
- activities are about documents.  But, I'd agree with you that we 
just need a list, with icons and a check to select/deselect.

I'm leaning for drag and drop into home view.


From where?  Dragging what?







https://github.com/sugarlabs/edit-fonts-activity/tree/94c443f1b1c394f12edcb0af156542a4cee6c808

> How to make Journal and Activities behave well outside sugar 
(i.e. handle resize, multiple screens or virtual desktops)


Maybe we could go with a more simple idea in the current?  When the 
user opens an activity, a prompt is shown asking them to select a 
jobject to resume, or to title a new entry?




I think the core question is if Sugar becomes a MDI outside of its 
SDI desktop context.


https://en.wikipedia.org/wiki/Single_document_interface

https://en.wikipedia.org/wiki/Multiple_document_interface

For me, I think a MDI Sugar is a simple solution to all those 
issues you list: it means the Journal and each Activity are each 
just another window. Perhaps the only 'special' window is a "Home" 
activity where the frame is always visible, and in which its 
possible to switch from Home to Groups to Neighborhood to Network.
xfdesktop is the component of XFCE which draws the "Desktop" 
including icons and wallpaper. That's where I think Sugar could live 
(as a root window handler and fancy launcher).


Of course, it might be nice to add - as GIMP did when it went the 
other way from MDI to SDI - a preference so that there could be a 
single "Sugar" window that offers an experience similar to running 
a SOAS VM.
Sugar shell already supports resizable windows (basically MDI) 
because we use Metacity as a window manager.


It is Sugar Activities that are maximized and not resizable by 
default [because that's what sugar-toolkit does].


However, they are supposed to adjust to screen rotation, so in 
principle they could become resizable.


Was forced maximization a design decision based on the XO laptop's 
screen size?
I think it would make sense to allow resizing or tiling of Sugar 
Activities (as an option for larger screens).


Other desktop environments expect to be able to resize and move 
windows so I think we should allow it at least in that case.


We should defiantly allow sugar activities to be resized when they are 
run inside of GNOME.


Inside of Sugar, it would be nice to expose this feature as well.  But 
I think that we need to design it an do it well.  I'm personally a fan 
of how Apple's iOS split view implementation.  It is very simple and 
friendly. It appears to be a design that works well on laptop sized 
screens - from your 7" xos/ipad minis to the 11" ipad.  It probably 
would work well on larger laptops too - I personally just use 
fullscreen or vertical split in GNOME.  But this is for discussion!


Thanks,
Sam

[1]  http://osxdaily.com/2015/12/04/use-split-view-multitasking-ipad/



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


Re: [Sugar-devel] Thoughts on Collab

2016-07-25 Thread Sam Parkinson

On Tue, Jul 26, 2016 at 12:23 PM, Dave Crossland  wrote:

Please checkout zeromq :)

Oh, that looks awesome!  I think that is much better than using tcp 
directly.


Does ZeroMQ guarantee message ordering?  Eg. if I post A then B, is it 
guaranteed that everybody receives it in the order A then B?  Message 
ordering seems important to some algos.


Is there documentation for how FontForge uses this?  I assume that we 
would want a similar implementation.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Thoughts on Collab

2016-07-25 Thread Sam Parkinson
On Tue, Jul 26, 2016 at 9:56 AM, Abhijit Patel 
 wrote:
I have just found python modules like socket[1]  for low level 
networking interface and SocketServer[2] which simplifies the task of 
writing network servers.


Could using these modules be a better option?

[1] https://docs.python.org/2/library/socket.html
[2] https://docs.python.org/2/library/socketserver.html
e
Thanks,
Abhijit



Hi Abhijit,

I think it would be good to just use TCP for our application protocol.  
Topology wise, I think we should do like AbiWord does.  That is, we 
have a "leader" and everybody connects to the leader.  The leader will 
then parse the messages, optionally process them, and rebroadcast them 
to all the other clients.


Initially, the leader can probably be the person who 1st shared the 
activity.  But if that person disconnects, or their computer looses 
power, we need to change the leader.


We probably can't use the socket module directly, as we need Glib 
mainloop integration so we don't block the ui.  GLib will take a file 
handle and give us a mainloop IOChannel via this api [1].


[1] 
http://lazka.github.io/pgi-docs/index.html#GLib-2.0/structs/IOChannel.html#GLib.IOChannel.unix_new
[2] 
https://developer.gnome.org/glib/stable/glib-IO-Channels.html#g-io-channel-unix-new
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Thoughts on Collab

2016-07-25 Thread Sam Parkinson
The current system is confusing.  It limits your discovery of peers - 
the neighbourhood view ether shows buddies from the school server OR 
buddies from avahi (local network)


In the new system, we will avoid this limitation.  You will be able to 
see buddies on the schoolserver and avhai at the same time.  It will 
not make a difference from a user perspective.


If this makes the local network collaboration more widely used, I'm 
excited about that.  Obviously, direct local communication has less 
latency than using a server.  Less latency is a better user experience!


Thanks,
Sam
On Mon, Jul 25, 2016 at 4:38 PM, Tony Anderson <tony_ander...@usa.net> 
wrote:

Hi, Sam

I am still having a problem. You were referring to XMPP not avahi.

Tony

On 07/25/2016 01:03 AM, Sam Parkinson wrote:
On Sun, Jul 24, 2016 at 9:35 PM, Tony Anderson 
<tony_ander...@usa.net> wrote:
I'm sorry. I don't understand you. Currently collaboration in 
locations with a school server is done by ejabberd. This resulted 
from the fact that the original mesh and later ad hoc networks did 
not support the requirements of actual deployments. This means the 
software supports XMMP to connect with jabber servers.


Avahi is *not* the mesh or adhoc network.

Avahi broadcasts things over a local wifi network - one with routers 
and stuff.  It doesn't do mesh or adhoc.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Thoughts on Collab

2016-07-24 Thread Sam Parkinson
On Sun, Jul 24, 2016 at 9:35 PM, Tony Anderson  
wrote:
I'm sorry. I don't understand you. Currently collaboration in 
locations with a school server is done by ejabberd. This resulted 
from the fact that the original mesh and later ad hoc networks did 
not support the requirements of actual deployments. This means the 
software supports XMMP to connect with jabber servers.


Avahi is *not* the mesh or adhoc network.

Avahi broadcasts things over a local wifi network - one with routers 
and stuff.  It doesn't do mesh or adhoc.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Thoughts on Collab

2016-07-24 Thread Sam Parkinson

Hi Lionel,

I like the experience that you have made with Sugarizer collab.  It is 
very smooth!


I think that Sugar would probably do a few things differently though.  
I want to support serverless collaboration.  I have a few reasons for 
this:


*  Some friends go to the library after school to work on their 
assignment.  They both connect to the library wifi.  Because they are 
on the same wifi, they see each other highlighted in the neighbourhood 
view.  They collaborate over LAN, giving them a significantly more 
snappy experience.
*  The reduced latency also suppresses most of the edge cases in the 
application that would have resulted in the documents getting out of 
sync.
*  A group of teachers from a collection of schools (sometimes called a 
"network") meet up for PL/PD.  Collab just works, even though they are 
from different schools (which have different servers)


Do they seem reasonable?

Going a bit more in the weeds, I would probably make 1 change to the 
neighboured model, compared to you great implementation!  My plan is 
that every activity, public and private is boradcast on the server.  
All broadcast activities share their "activity_id", but only the public 
activities also share their title, type and description.  This would 
let us make the "resume shared activity" feature work; resuming an 
activity now becomes checking if the activity is broadcast then either 
joining the broadcast activity or just resuming it normally.  I think 
this is the type of experience users expect after things like google 
docs.


Thanks,
Sam

On Sun, Jul 24, 2016 at 6:09 PM, Lionel Laské  
wrote:


Hi Sam,

I suggest you to have a look on Sugarizer Server.
Features 1) and 2) are already implemented and could be used into 
several Sugarizer activities (Chat, Paint, Memory, ...). Plus the 
Sugarizer Server is already include in XSCE, thanks to Tim.
You could test the implementation here [1] (use 2 browsers to test 
it) and see more information on Server implementation here [2]. 
Finally most of the code, based on Web Socket, is here [3][4].


Best regards from France.

  Lionel.

[1] http://server.sugarizer.org
[2] https://github.com/llaske/Sugarizer#server
[3] https://github.com/llaske/sugarizer/blob/master/server/presence.js
[4] 
https://github.com/llaske/sugarizer/blob/master/lib/sugar-web/presence.js


2016-07-24 2:36 GMT+02:00 :

Date: Sun, 24 Jul 2016 10:36:00 +1000
From: sam@sam.today
To: Sugar-dev Devel , Abhijit Patel

Subject: [Sugar-devel] Thoughts on Collab
Message-ID: <1469320560.190...@smtp.gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi All,

In the irc meeting 2 nights ago, we discussed adding collaberation to
the journal project feature.  Abhijit has spent around 3 weeks 
working
on it.  But we can't even get a text channel between the 
participants.

Telepathy is painful, buggy (we have a segfault in salut) and hard to
debug.  It is also unmaintained - the last commit to telepathy salut
and gabble was 2 years ago.

So this is the pre-text for an experiment; modernising the
collaboration stack without using telepathy.

Initially, I proposed Matrix.Org.  I don't support this idea any 
more,
as matrix.org has some very messaging specific features, and some 
spots

where sugar would not fit idiomatically within the api.

So I have been thinking a little more about splitting up the problem
into 3 sections:

1)  A neighbourhood view implementation - a model to discover people
nearby or via the school server
2)  A group messaging socket - the backbone for collaboration in
activities
3)  A one-to-one file transfer mechanism - used for initial state 
sync

in activities, "send to" feature in journal, etc

I have think that we can do the neighbourhood view by using 2 
backends

and merging the result.  We can use the Avahi api to publish/find
activities/buddies on the local network.  We could additionally use a
school server (running a custom sugar server app) to support buddies
who are not on the same network.  Since both activities and buddies
have unique identifiers, we can easily have both back-ends running at
the same time, and de-duplicate the result.

Avahi is very fun to work with:

avahi-publish-service "Sam P" "_org_sugarlabs_collab_user._tcp"
8080 "name=Sam P" "color=#fff,#000" "other_metadata=other_value"
avahi-discover

All of the backends could give us an ip and a port to reach the other
person.  For the avahi backend, this would be a direct connection to
the other buddy.  For the schoolserver, it would be proxied through 
the

schoolserver.

I'd love to hear your thoughts on the other problems, and on this
problem to.

Thanks,
Sam
-- next part --
An HTML attachment was scrubbed...
URL: 




Re: [Sugar-devel] Thoughts on Collab

2016-07-24 Thread Sam Parkinson
I actually don't want to use XMPP for the new collab system.  I don't 
care how nice the library is.  Telepathy isn't the best, maybe pyxmpp2 
or nbxmpp are better.  But xmpp is not the right protocol for sugar.


Say you want to solve problem 2 and have a shared group channel.  You 
could use xmpp, but then every message you send has a huge xml wrapper 
around it adding metadata.  The metedata is useful for an IM 
application, but not very useful at all for Sugar.  So then maybe you 
use a stream tube over xmpp?  Well (at least for telepathy - but it is 
probably due to the xmpp protocol), you need to estabilish a group chat 
before you can call the stream.  Boom, added 200loc and another few 
round trips before the activity starts collaborating.


You also say that XMPP is standard, which is nice.  I like standards 
too.  But the way sugar uses xmpp, there is little point to it being 
standard.  "Standard" in Sugar content means you choose between 
ejabberd, jabberd and parsody.  You can't collaborate between Write 
activity and $other_word_processor.  You can't collaborate between 
Bibliography activity and $other_bibliography_manager.  Even if you 
could, that would be based on the "Bibliography Manager Collaboration 
Standard" - not XMPP.


Sugar has generic applications - not chat clients.   We need a generic 
application protocol - not an IM protocol.


Sebastian raised the point of backwards compatibility for his use case. 
I think that we can provide a chat bridge no matter the technology.  
We could also just expose chat activity inside traditional dekstop 
environments, as your work continues to move towards.


Thanks,
Sam

On Sun, Jul 24, 2016 at 6:07 PM, Tony Anderson  
wrote:

XMPP is a standard protocol (originally called jabber). Currently,
collaboration is supported on the schoolserver by ejabberd. This
implementation has not been changed for years AFIK.

In any case, implementation of collaboration probably should be XMPP
compliant to maintain maximum compatibility with what we are doing 
now.


Tony

On 07/24/2016 08:04 AM, Sebastian Silva wrote:
> Currently I can use gajim to chat to Sugar users (it will trigger a 
Chat

> activity invitation).
>
> This is the level I meant when I said "backward compatible".
>
> I don't know if python-nbxmpp or python-farstream support some sort 
of

> tube, but for sure the api won't be the same as telepathy. Those are
> gajim's foundations.
>
>
> El 24/07/16 a las 00:59, sam@sam.today escribió:
>> How?  Who understands how the current code works?  Can we pass xmpp
>> channels from gijam's xmpp library to telepathy?
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel

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


Re: [Sugar-devel] [sugarlabs/sugar-toolkit-gtk3] [DISCUSS] Add abstraction layer for WebKit1/2 apis (#329)

2016-07-22 Thread Sam Parkinson



On Fri, Jul 22, 2016 at 3:10 PM, Tony Anderson  
wrote:

Hi, Sam

WebKit1 on 0.106 does not support flex-box. When you discuss 
'reverting' but using WebKit2 api, it is not clear to me whether the 
OLPC version of Sugar will support modern CSS3 features.


OLPC os will *not* support WebKit2 on the XOs.  Quozl has said this 
many times.


This patch was a hack - it let the python programmer pretend that 
WebKit1 was WebKit2.  It did not actually run WebKit2 on the XO.  It 
did not add flexbox support.


Just "reverting" this means the following:  upstream sugar will be 
coded against WebKit2 - which is great for SoaS or Ubuntu users.  When 
OLPC makes OLPC OS images, they will revert this commit and their 
version will use WebKit1.  This is a better choice from a software 
perspective, and it will *not* affect the UX.





Tony

On 07/22/2016 12:21 AM, Sam wrote:


Ok, I have updated the sugar patch, and this one is no longer 
relevant.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] No Documents folder in sugar [FIX]

2016-07-18 Thread Sam Parkinson



On Mon, Jul 18, 2016 at 11:34 AM, Jerry Vonau  wrote:

Sounds like a missing dependency in sugar's rpm spec file to me.


 On July 17, 2016 at 5:19 PM Ignacio Rodríguez 


 wrote:


 Hello, someone reported a bug in Sugar (SoaS >= f23 or that is what 
I
 understood) [in facebook page (you need a Facebook account to see 
it)
 
],

 where the Documents folder in the journal is not being showed.

 Here's the fix (just in case anyone needs it):
 Run in a console/Terminal activity:
 *xdg-user-dirs-update*
 Install xdg-user-dirs in case that you don't have it:



Think a small tweak to the SoaS kickstart file might be needed.


 *sudo dnf install xdg-user-dirs -y*
 Then reboot, or kill python2 / logout..



Sounds like a missing dependency, if you have to install, in sugar's 
rpm

spec file to me.


Hum, it appears to be in the spec file:  
https://pkgs.fedoraproject.org/cgit/rpms/sugar.git/tree/sugar.spec


This is odd.  Maybe the SoaS kickstart removes the xdg-user-dirs 
package?


Thanks,
Sam




Just my nickels worth,

Jerry



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

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


Re: [Sugar-devel] FreeDesktop integration UI discussion

2016-07-16 Thread Sam Parkinson



On Sun, Jul 17, 2016 at 12:33 AM, Dave Crossland  wrote:


Hi

Sebastian just edited the wiki about the amazing FreeDesktop 
integration work he's been doing:


https://wiki.sugarlabs.org/index.php?title=Features/FreeDesktop_integration=next=98058

He added 2 ui questions:

> How to choose .desktop files to show in Sugar Launcher.

I think something similar to the "Fonts v1" activity would be good to 
start; a simple activity that lists all of the .desktop files 
available, and a star to select/deselect them. Would the output 
likely be a simple text file with all the selected files's full 
paths? That way, anyone could easily make such a text file before the 
UI is ready.


I'd think that this would be best placed in a new My Settings panel - 
activities are about documents.  But, I'd agree with you that we just 
need a list, with icons and a check to select/deselect.




https://github.com/sugarlabs/edit-fonts-activity/tree/94c443f1b1c394f12edcb0af156542a4cee6c808

> How to make Journal and Activities behave well outside sugar (i.e. 
handle resize, multiple screens or virtual desktops)


Maybe we could go with a more simple idea in the current?  When the 
user opens an activity, a prompt is shown asking them to select a 
jobject to resume, or to title a new entry?




I think the core question is if Sugar becomes a MDI outside of its 
SDI desktop context.


https://en.wikipedia.org/wiki/Single_document_interface

https://en.wikipedia.org/wiki/Multiple_document_interface

For me, I think a MDI Sugar is a simple solution to all those issues 
you list: it means the Journal and each Activity are each just 
another window. Perhaps the only 'special' window is a "Home" 
activity where the frame is always visible, and in which its possible 
to switch from Home to Groups to Neighborhood to Network.


Of course, it might be nice to add - as GIMP did when it went the 
other way from MDI to SDI - a preference so that there could be a 
single "Sugar" window that offers an experience similar to running a 
SOAS VM.


Like sugar-runner?



That could even be done using suitably configured 3rd party software 
rather than writing our own code... I remember a long time ago when 
Sawfish was the GNOME 2 window manager that you could write lisp 
scripts to programmatically place windows, and I think there was 
something specific for that purpose when GNOME moved to metacity 
(that was also scripted in lisp) but I forgot its name. =)


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


Re: [Sugar-devel] Migration to Python 3

2016-07-16 Thread Sam Parkinson



On Sun, Jul 17, 2016 at 3:55 AM, Sebastian Silva 
 wrote:



El 29/06/16 a las 14:03, Dave Crossland escribió:
 On 29 June 2016 at 14:22, Sebastian Silva 
 wrote:
 Really Sugar Labs doesn't distribute operating system releases, 
it's up to

 distributors.

 If 0.112 is 100% Python 3, how would OLPC or others make images that
 support running python2 and python3 activities in the same Sugar?

It's hard to keep up with you but I'll try ;-)

By default distributions will decide which python to use.

If an activity is ported they can change the activity.info to use
python3. Really it shouldn't be a problem.

Note that python2.7 is supposed to have support till 2020.

Python3 is a much nicer language especially if you use non-english
characters since it fully supports utf-8 by default.

The real issue is what to do about telepathy. I wonder how many use
cases are covered by it.


Well, the way that we use telepathy in sugar makes me cringe inside.  
It is really the most terrible and verbose api for our use case.  All 
of the telepathy code is like black magic.  I spent a few hours trying 
to figure out how to fix [1], and I got close to nowhere.  The 
telepathy code is very hard to understand.  It's actually like an 
onion.  Every layer you peel back makes you cry more, and we just keep 
layering and layering the abstractions on (eg. CollabWrapper).


I've been working with Abhijit on his GSoC project to use telepathy for 
collaboration for the "projects" in the journal.  Just creating a text 
channel to communicate via has been impossible so far.  Abhijit has 
spend weeks trying to do it, and i have attempted to hack it too.  But 
telepathy is very hard to debug.  And it is really buggy - creating a 
text channel between 2 people results in a segfault in telepathy salut, 
despite what seems to be 100% correct usage of the api.  It's crazy.


But from a porting perspective, telepathy is fine.  Python telepathy is 
made up of 2 things:  a tone of string constants (easy to port) and a 
few wrapper classes that are subclasses of the "dbus" objects.  It is 
pure python - so it should be an easy thing to port.


So I am sorry for constantly conflating these 2 things.  Telepathy is a 
pain to develop with, BUT it will be easy to port to python 3.


Maybe we target a collaboration re-write for next release :P

Thanks,
Sam



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


Re: [Sugar-devel] [DESIGN] Re: PR comments on 'Save as

2016-07-12 Thread Sam Parkinson



On Tue, Jul 12, 2016 at 7:52 PM, Tony Anderson <tony_ander...@usa.net> 
wrote:

Hi, Sam

Who are we to judge whether a user's name is good or bad? Suppose the 
user just decides to name his project a, b, c and so on. That is the 
user's decision and so be it.


Tony, you need to think from a user perspective.  Think of a user who 
didn't give the activity a title on their own, then just pressed "save" 
when they were prompted to give the object a title.  When the computer 
then tells them that no, "Write activity" or "untitled" is not a good 
enough title, the are probably not going to be happy.  The type of user 
who doesn't change the title when you prompt them once are probably 
rushed and will not give it a meaningful title anyway!





Regardless of the wording, the alert does not save a document until 
the user gives it a name. If the user does not care about the 
document enough to give it a name, there is probably a reason. For 
example, if I were to launch Paint to show selecting a color for a 
brush, I would have no reason to save the scribble.


No, you need to do more testing.  I emptied my journal and created a 
new bibliography activity.  When I quit the bibliography activity, the 
"save/quit" alert comes up.  I click quit, and the bibliography object 
is still in my journal.  Journal clutter was just created.


This is because Sugar does autosave.  It is very intertwined with the 
way that the toolkit saves stuff.


Now, don't say that "we should just remove the autosave".  I don't 
actually care that *sometimes* autosave means that *some* extraordinary 
unfocused user didn't go the the journal and use the well named 
"duplicate" function, and instead overwrote something.


Let me tell you what happens on a school when the software doesn't 
autosave.  I go to a school that up until recently used Microsoft 
Office.  Microsoft Office doesn't autosave - and classmates lost their 
documents.  My school now uses google docs, and I haven't herd 1 
complaint about "i meant to duplicate something but I actually 
overwrote it".  Hell, Google Docs does autosave by default - so 
evidently Google thinks it happens for adults too.


That is why we need 2 buttons "save" and "delete".  None of this 
fancy-worded "confirm" and "dismiss" stuff.





To repeat, we need to consider this from the viewpoint of the user. 
The user click on the Stop button to quit the activity. The alert 
should result in terminating the activity whether the document is 
saved or not.


Yes, of course.  I'm sorry for any miscommunication.




I believe the alert should offer two options: save and quit. 
Overwrite, delete, discard and so forth refer to the deveoper's 
perspective of what action is taken.


Delete is not the developers perspective.  Many users grow up with 
things like Google Docs, etc, where autosave is the default.  In a 
world of autosave, what does "quit" mean?


Delete makes it very obvious - the work the user just did will be 
deleted!





Again, the jobject is overwritten by Sugar - a defect. This feature 
creates a 'clone' of the original jobject and so is able to save it 
or not at quit time.


This logic is used in the 'fiddler' implementation. It takes a moment 
to move the cursor to the entry, type an entry, and click save. Users 
will understand the value of this by using the Journal.


The children I have observed using Sugar would for sure spend longer 
closing and switching between activities without any benefit from 
this modal alert."


The alert only appears when the activity is closed not when switching 
between activities. The modal alert gives the user a chance to give 
his project a title - I consider that very beneficial. The 
alternative is for the user to open the activity palette and change 
the name there. The other alternative is for the user to switch to 
the Journal and change 'Write.activity' to 'Bolivar report'.


What we agreed upon so for, seems to be:

* GOOD Prompt for title if the user presses Quit and has not changed 
the title from the default


Can we just merge that and argue about the rest separately?  I think 
that change will be great for users.


Thanks,
Sam




Currently it is needed for all activities, because we are using the 
'document' saving as a catch-all. I have seen activities whose 
'write_file' writes a dummy file to satisfy the 'best practice'  that 
all activities must have a write_file. Activities such as Memorize or 
Read, and Browse should save state information in the metadata which 
would allow them to be resumed. These activities do not save a 
meaningful document. Memorize is clear, it saves state. Read is 
clear, it does not alter the source e-book and only saves bookmark 
information - state. Browse saves the urls for open tabs - again 
state information.





Tony

On 07/12/2016 12:59 AM, Sam Parkinson wrote:



Re: [Sugar-devel] [DESIGN] Re: PR comments on 'Save as

2016-07-11 Thread Sam Parkinson



On Tue, Jul 12, 2016 at 8:37 AM, Martin Dengler 
 wrote:

On Mon, Jul 11, 2016 at 05:18:00PM +0200, Tony Anderson wrote:

Hi Martin,

It seems to be nostalgia week. The goal is to have the user supply a 
name. Whether the text says untitled, Write.activity, execrable, or 
is left blank. The user will not be able to save until a title is 
supplied. There would be literally no 'untitled' or 'Write.activity' 
documents in the Journal.


This design decision of not forcing the user to name an activity has 
literally

been consciously made since the first deployment of Sugar:

http://lists.sugarlabs.org/archive/sugar-devel/2008-October/009151.html
http://dev.laptop.org/ticket/3225
http://lists.sugarlabs.org/archive/sugar-devel/2008-October/009157.html
("Sugar default naming scheme")
http://lists.sugarlabs.org/archive/sugar-devel/2008-October/009152.html

The has many nuances, so I don't want to be the penut gallery too 
much, but it
seems to me that forcing kids to name activity instances upon 
closing[1] would
seriously change (for the worse, IMO) the Sugar user experience.  The 
children
I have observed using Sugar would for sure spend longer closing and 
switching
between activities without any benefit from this modal alert. Is it 
only going
to be some activities, like Write, that require (or default to) this? 
 Are you

sure you want to undo/change these very old design decisions?


I agree with you.  I believe that there is a lot of value in reminding 
the user to set a name - showing the alert as the current patch does.  
But I don't think that we should force the user to set a name - they 
will only set a bad name, and they will feel like Sugar is working 
against them.


I think that the current implementation of the "Choose a name" alert is 
fine.  It serves as a gentle reminder.


Here are some of my questions about the design:

I would also propose that the "cancel" button in the "choose a name" 
alert change to being a "delete" button.  (This was my original 
understadngin of the project).  Having a delete button there helps 
reduce journal clutter by making it easy to delete the object if it is 
un-needed.  For example, if I made a write activity to take a note, and 
then decide that I don't want to keep it, I can just click "delete" 
instead of setting a title.


What is the purpose of the "overwrite" alert?  I thought that the 
overwhelmingly most common use case would just be saving (or 
"overwriting").  Does overwrite seem a little scary?  It did to me.


Also, does the jobject get overwrite by the autosave functions in 
Sugar, regardless of the user's choice in the overwrite alert?


Thanks,
Sam




Martin

1. My interpretation of the hypothetical proposals in "Sugar Journal 
save
option" on https://wiki.sugarlabs.org/go/Summer_of_Code/2016 and the 
video on

the "Save As" patch at https://www.youtube.com/watch?v=xcvBH7zzFBo .




Tony

On 07/11/2016 04:56 PM, Martin Dengler wrote:


On 11 Jul 2016, at 15:44, Dave Crossland > wrote:




On 11 July 2016 at 10:40, Tony Anderson > wrote:


   I prefer 'Untitled' as it supports the intent of the alert - to
   request the user to supply a title.


I also prefer Untitled, although I'm curious to hear why "xxx 
Activity" would be better.


Actually, 500 "Untitled"s are so much worse than 5 sets of 100 
"Foo.activity", because (in my limited experience) kids who can 
read know that "Speak activity" is different than "Write activity".


There are literally over a hundred emails about this design 
decision years back - it was not done lightly. I didn't even 
participate and I was exhausted by the debate.


Martin


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





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

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


Re: [Sugar-devel] PR comments on 'Save as'

2016-07-11 Thread Sam Parkinson

Hi,

First, I would like to comment about the tone of the PR discussion.  I 
believe that as a community, our tone on that discussion was probably 
worse that usual.  I once read this interesting article about design 
reviews at Facebook [1], which contained the line:


>  Criticism belittles the designer — Critique improves the 
design


That is what we need to keep in mind when reviewing patches too.

Thanks,
Sam

[1] 
https://medium.com/facebook-design/critique-is-an-important-part-of-any-design-process-whether-you-work-as-part-of-a-team-or-solo-ef3dcb299ce3



On Mon, Jul 11, 2016 at 6:23 PM, Tony Anderson  
wrote:

Hi, Utkarsh

I must apologize for trashing your PR. It takes a lot to get me 
angry, but yesterday I was. After complaining that we did not send 
emails of all of our technical discussions to Sugar_dev and then 
asking for our IRC meetings to be publicly logged, they ignored all 
of our discussion and asked the same questions on the PR that we had 
already answered before over and over.


I appreciate your comments. They show a clear understanding of the 
feature and an ability to express yourself clearly. Since your PR is 
an implementation of a requirement set by me, your response 
referencing me was appropriate and the response you got, out of line.


To me the essence of this feature is two-fold:

1. To require users to supply a title-supplied-by-user.

2. To enable users to resume an activity, make some changes and then 
decide to make the result a new instance - preserving the original. 
This is why
the feature is called 'save as', because that is how user's do this 
in most document-handling applications. Currently, this is not 
possible in Sugar.


I don't know if it is possible, but I would suggest withdrawing this 
PR and creating a new one - same code, of course. Then I think there 
needs to be a gif animation and explanation of the feature. At that 
point, comments would be welcome.


My understanding of this is the PR is the developer's presentation of 
the result of their work to be reviewed for merging into the master. 
It is not a design forum. Before work is done on creating the code 
represented by the PR, the design should be done. No developer can 
code without knowing the intended outcome. Naturally, comments on the 
PR may result in changes to the code but changes made from a working 
base.


In the end, the developer's may indeed reject this and other PRs and 
thus prevent many Sugar users from benefiting from them. That would 
be sad. However, it is open source and it certainly can and will use 
be used in deployments. This, of course, is one of the great freedoms 
in free software.


Tony


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


Re: [Sugar-devel] 2008 Sugar UX review slide deck + Journal Rethink

2016-07-05 Thread Sam Parkinson

Hi Dave,

Thanks for sharing this document.  There are lots of great designs in 
there.


I like a lot of the little proposals, like hovering a notification to 
open it's palette.  That could be an achievable change for 110.


The buddy view proposals are amazing in that document.  I would love to 
get them implemented some time.  Having a strong "buddy groups" system 
provide a good base for improving the teacher tools / LMS style tools 
in sugar.


Thanks,
Sam

On Wed, Jul 6, 2016 at 3:24 PM, Walter Bender  
wrote:
Some of the ideas were implemented, although not necessarily in 
exactly the form specified, for example, image view. The idea of 
making the Journal more like a narrative stream was never quite fully 
specified, but I always liked that idea.


FWIW, Eben prepared this document just as Nicholas was telling the 
board that OLPC was dropping Sugar for Windows, taking some of the 
wind out of our sails at the time.


-walter

On Tue, Jul 5, 2016 at 8:35 PM, Dave Crossland  wrote:


Hi

Reading more about the Sugar UX history I found this PDF:

http://download.laptop.org/content/conf/20080520-country-wkshp/Presentations/OLPC%20Country%20Meeting%20-%20Day%202%20-%20May%2021st,%202008/Refining%20Sugar.pdf

Interesting reading! :) I see that the suggested changes to the 
Journal weren't implemented. Does anyone know why not? :)


--
Cheers
Dave




--
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] Gsettings

2016-07-05 Thread Sam Parkinson

Hi Utkrash,

To the best of my knowledge, GSettings requires a settings schema be 
installed in a system (package-manager controlled) directory.  While 
Sugar installs a GSettings schema, I sadly don't think it is possible 
for an activity to have a gsettings schema.


To set or get a gsettings value, you can use the Gio.Settings api, or 
the "gsettings" command line utility.


Thanks,
Sam


On Tue, Jul 5, 2016 at 8:16 PM, Ütkarsh Tiwari 
 wrote:

Hi,
I want to set a python boolean value(to True/False) prior to the 
execution of the python script containing that variable. Is there any 
way I could do it by making my own custom terminal command to modify 
the gsettings to modify that variable?


--
Regards,
Ütkarsh Tiwari



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


Re: [Sugar-devel] [DESIGN] Instant palette popdown - a usability improvement

2016-07-03 Thread Sam Parkinson

Hi All,

I have made a patch to implement this proposal:  
https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/326


You really should try it out.  It is surprising how much quicker it 
makes Sugar feel.  Sugar feels much more snappy.


It probably might even Sugar feel snappier on the XO1s, given that it 
isn't draining any more cpu cycles.  In fact, it probably uses less CPU 
given it removes some code and "animations", but that is so marginal


Thanks,
Sam

On Sat, May 28, 2016 at 11:50 PM, Walter Bender 
<walter.ben...@gmail.com> wrote:



On Sat, May 28, 2016 at 9:22 AM, Tony Anderson 
<tony_ander...@usa.net> wrote:

Hi Walter,

I am not sure why the right-click should not open a palette whose 
function is comparable to the context-menus in other systems. I 
don't know how a

right click is used as an accelerator.


It is accelerating what hover does.



The issue is that a right-click can open a palette which stays open 
until there is another click or the user clicks in the palette. This 
is much better than our current disappearing menus (if you move the 
cursor so as to leave the boundary of the icon and its palette for a 
microsecond, it disappears and you have to start over. This also 
means hover can be used for tooltips - a single piece of information 
(the name of the activity, for example.


We have more info the longer you hover. We could perhaps delay the 
disappearance or expand the hit area to address your concern.


I think Sam's concerns about the home view arises from its being 
used to resume activities which is redundant to the use of the 
Journal view for that purpose.
Originally in Sugar, a click on the icon launched an activity (as it 
does now in the List View. A click on an icon in the Journal view 
resumed the activity. This
was a very simple and understandable interface. In most cases users 
did not have to see or understand a palette menu.




We went through this many times. The current behavior reflects the 
need to address among other things, journal spam. In my computing 
life, 90+% of the time I am continuing existing work rather than 
starting something new. And we have a keyboard shortcut for the 
latter behavior. We did discuss having some activities be able to 
override the default behavior. Which would you suggest?


Actually this style probably promotes discoverability. When a user 
clicks on an icon in the Home View and an arbitrary activity 
instance is launched, the
user does not have a predicable starting point. This is particularly 
difficult in situations where an XO is shared among multiple users 
since Sugar has no

way to know who was the last to launch an activity.


We need to address the multiple user issue separately. Each user 
should have their own history.



Tony




On 05/28/2016 02:29 PM, Walter Bender wrote:



On Sat, May 28, 2016 at 8:18 AM, Sam Parkinson 
<sam.parkins...@gmail.com> wrote:

Hi Tony,

On Thu, May 26, 2016 at 8:58 PM, Tony Anderson 
<tony_ander...@usa.net> wrote:

Hi Sam

I like the Google apps button on the Google main page and the 
menu button at the far right of the Firefox toolbar. They show as 
a popup and have
plenty of screen space for icons and larger font sizes. This 
could support a design in which a left-click always causes an 
action and a right-click is required
to open up the 'palette' This is done well on the standard 
toolbar.


On the Home View, for instance. I would prefer that left-clicking 
on the icon launches the activity (new start). The tooltip shows 
the name of the activity (and nothing else). A right-click can 
open a list of instances available to be resumed. Using the 
Google or Firefox style, the list of instances can look exactly 
like the corresponding entry in the Journal.


I think that if we make palettes right click only, we loose an 
important discoverability aspect.  Do you find the hover-to-open 
helpful or harmful to discoverability in your experience?


+1. I implore you not to make any aspect of the interface depend 
upon right click. It should always be an accelerator, but nothing 
more.


I also think that the homeview palettes are a special case.  We 
aren't going to be able to add more items or elaberation to the 
running activity palettes, or the buddy palettes.  If we wanted to 
make the journal more intergrated with the homeview, couldn't we 
just replace the homeview with an enhanced journal?  (Did we 
discuss this on list? [1])


I think a lot could be done in that space. Love to see some 
concrete proposals.


I find the idea of a larger font size interesting.  Is the current 
palette font size too small?  It is also important to remember 
that any font size increase makes the distance you need to move 
the mouse bigger, which could be a negative.


Thanks,
Sam

[1]  https://www.sam.today/blog/sugar-nohomeview-design.html




Tony

On 05/26/2016 12:44 PM, sam@sam.today wrote:

Hi All,

A while ago, I dropped a mention on the list to how ma

Re: [Sugar-devel] Language Control Panel

2016-07-03 Thread Sam Parkinson
On Sun, Jul 3, 2016 at 8:50 PM, Tony Anderson  
wrote:
On an XO-1.75 with 0.106, the Language control panel works the same, 
but


Hi Tony.

I'm asuming this is continuing your thread about the Ubuntu issue.

If so, please remember that OLPC OS is just Fedora.  Consider running 
Fedora 24 on your computers.   You get the language support of OLPC OS, 
and the benefit of 3 years more software updates (OLPC OS is Fedora 18 
based).


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


Re: [Sugar-devel] [GSOC] Font Editor Next Steps

2016-07-03 Thread Sam Parkinson

Hi Tony,

I agree with you that we should avoid "training wheels".  However, I 
don't think that we should unintentionally let users break the system - 
we still need to have clear ui.  If we are going to let users uninstall 
system files, we should at least warn them.


Also, in my opinion, if we are going touch files the package manager 
installed, we should do that via the package manager.  Package managers 
are amazing, and we don't need to make their job harder.  However, 
integrating package manger support would be a very hard task, and maybe 
it would be easier to just not expose a delete ui for system fonts?


Thanks,
Sam

On Sun, Jul 3, 2016 at 8:33 PM, Tony Anderson <tony_ander...@usa.net> 
wrote:

Hi Sam,

I have enjoyed this sort of comment before. We go to great trouble to 
show users the source code of Sugar with the apparent intent that 
they should
experiment with making changes. Then developers comment, but 'they 
could break the system!'. What is wrong with giving the users the 
opportunity to delete a font and see the consequences. That is how we 
learn. Do we really want a Sugar with 'training wheels'?


Tony

On 07/02/2016 02:40 PM, Sam Parkinson wrote:



On Sat, Jul 2, 2016 at 6:35 PM, Yash Agarwal 
<agrwal.ys...@gmail.com> wrote:

Work report
I worked on the following issues:
Adding support for ufoz format
Adding git submodules
The editor has been integrated with the activity

I'll begin adding the features for manipulating the bezier curves 
over the weekend

I'll make the complete week report on Sunday

A question to ponder upon:
Should we make 2 separate activities
A font manager
A font editor
The manager will have root access and be integrated into sugars 
glucose module (correct me if I'm wrong) so that it's there with 
the pre installed activities

The editor will be separate and will only deal in ufoz /ufo format


Hi Yash,

Why do we need root to install fonts?  Can't you just manage the 
fonts in "~/.fonts" and call the rest of the fonts system fonts.  We 
really shouldn't make it easy for users to delete system fonts - it 
will annoy the package manager and it will probably break 
applications.  We don't want users thinking "I don't use Deja Vu 
Sans" and then having a very odd looking Sugar because they 
uninstalled the font we use in the UI.


Maybe it would be best to add a control panel for fonts?  Activities 
must have state, and write something to the journal.  Control panels 
don't have to write a state to the journal.  Control panels are 
"extensions" in sugar terms, meaning they are loaded from either 
"/usr/share/sugar/extensions/cpsection/" or 
"~/.sugar/$SUGAR_PROFILE/extensions".  This means that you could 
include the font control panel extension with your app, and then 
install it on your app's first run.


Thanks,
Sam



On Thu, 30 Jun 2016 21:28 Dave Crossland, <d...@lab6.com> wrote:

Great stuff Yash!

The blog needs a bit of attention...
https://github.com/sugarlabs/edit-fonts-activity/commit/cbdfaf2a2c5320ac417124ebd050087588cd4e6c
is posted 10 days ago, but it wasnt on a friday, which is when we 
have

to check in with walter, so I renamed it to
https://sugarlabs.github.io/edit-fonts-activity/bezier-editing-works

However, you've then duplicated this file and appended to it -
https://sugarlabs.github.io/edit-fonts-activity/week-5-work - so 
that

its the same at the top

Please remove duplicate content :)

Also 
https://github.com/sugarlabs/edit-fonts-activity/blob/gh-pages/_posts/2016-06-28-week-5-work_wip.md

seems to be not needed, so I made a PR to remove it,
https://github.com/sugarlabs/edit-fonts-activity/pull/47

Since (a) you can set a post to not be published if you want to 
draft

it on gh-pages, and (b) you can draft it in a git branch and only
merge it when its ready, I suggest not creating such WIP files in
future :) I have been trying to make blog posts with the  (b) 
process

but (a) is also fine, as you did in
https://github.com/sugarlabs/edit-fonts-activity/commit/6507a9efbb266d31deadd3d4fccf5f190e6f8af0
:)

Secondly, the filename of a Jekyll post must be unique after the 
date,

so I made a PR to rename the latest features checklist,
https://github.com/sugarlabs/edit-fonts-activity/pull/48

Please do review and merge these when you can :)



___
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] Language Control Panel

2016-07-03 Thread Sam Parkinson

Hi Tony,

While I am not a Debian/Ubuntu person, I was under the impression that 
languages worked differently in their distro.  The Debian way is to 
delete all the un-used languages when you install a package - so if 
your computer is in English, it will delete all the other languages.


Dari and Guarani are special cases.  They are handled directly by 
Sugar, rather than glib.  Therefore, they are not impacted by Debian's 
policy.


If you want to have all the languages installed, try running Sugar on a 
Fedora distro.  Sugar runs great on Fedora 24 - it includes all the 
languages out of the box.


Thanks,
Sam

On Sun, Jul 3, 2016 at 8:28 PM, Tony Anderson  
wrote:
I am using 0.107 on Ubuntu. The language control panel does not work 
as

shown in http://wiki.laptop.org/go/Sugar_Control_Panel. I believe this
is also true in 0.106. The 0.107 version only shows English, Dari and
Guarani.

Tony


___
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] [GSOC] Font Editor Next Steps

2016-07-02 Thread Sam Parkinson



On Sat, Jul 2, 2016 at 6:35 PM, Yash Agarwal  
wrote:

Work report
I worked on the following issues:
Adding support for ufoz format
Adding git submodules
The editor has been integrated with the activity

I'll begin adding the features for manipulating the bezier curves 
over the weekend

I'll make the complete week report on Sunday

A question to ponder upon:
Should we make 2 separate activities
A font manager
A font editor
The manager will have root access and be integrated into sugars 
glucose module (correct me if I'm wrong) so that it's there with the 
pre installed activities

The editor will be separate and will only deal in ufoz /ufo format


Hi Yash,

Why do we need root to install fonts?  Can't you just manage the fonts 
in "~/.fonts" and call the rest of the fonts system fonts.  We really 
shouldn't make it easy for users to delete system fonts - it will annoy 
the package manager and it will probably break applications.  We don't 
want users thinking "I don't use Deja Vu Sans" and then having a very 
odd looking Sugar because they uninstalled the font we use in the UI.


Maybe it would be best to add a control panel for fonts?  Activities 
must have state, and write something to the journal.  Control panels 
don't have to write a state to the journal.  Control panels are 
"extensions" in sugar terms, meaning they are loaded from either 
"/usr/share/sugar/extensions/cpsection/" or 
"~/.sugar/$SUGAR_PROFILE/extensions".  This means that you could 
include the font control panel extension with your app, and then 
install it on your app's first run.


Thanks,
Sam



On Thu, 30 Jun 2016 21:28 Dave Crossland,  wrote:

Great stuff Yash!

The blog needs a bit of attention...
https://github.com/sugarlabs/edit-fonts-activity/commit/cbdfaf2a2c5320ac417124ebd050087588cd4e6c
is posted 10 days ago, but it wasnt on a friday, which is when we 
have

to check in with walter, so I renamed it to
https://sugarlabs.github.io/edit-fonts-activity/bezier-editing-works

However, you've then duplicated this file and appended to it -
https://sugarlabs.github.io/edit-fonts-activity/week-5-work - so that
its the same at the top

Please remove duplicate content :)

Also 
https://github.com/sugarlabs/edit-fonts-activity/blob/gh-pages/_posts/2016-06-28-week-5-work_wip.md

seems to be not needed, so I made a PR to remove it,
https://github.com/sugarlabs/edit-fonts-activity/pull/47

Since (a) you can set a post to not be published if you want to draft
it on gh-pages, and (b) you can draft it in a git branch and only
merge it when its ready, I suggest not creating such WIP files in
future :) I have been trying to make blog posts with the  (b) process
but (a) is also fine, as you did in
https://github.com/sugarlabs/edit-fonts-activity/commit/6507a9efbb266d31deadd3d4fccf5f190e6f8af0
:)

Secondly, the filename of a Jekyll post must be unique after the 
date,

so I made a PR to rename the latest features checklist,
https://github.com/sugarlabs/edit-fonts-activity/pull/48

Please do review and merge these when you can :)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Migration to Python 3

2016-06-26 Thread Sam Parkinson

Sugar is using python2.7 now.

I can assure you that Gtk+ (and all the other gi repository bits) work 
great with python3.  I recently wrote a reddit client in python3 and 
Gtk+ and it was just as easy as with python2.


I think think there was a previous GSoC project to investigate such a 
port.  I don't remember that they got a port done.  Who mentored that?  
What happened?


However, I'm pretty sure that they found we had 1 python2 dep; the 
deprecated python-telepathy module.  I'd be happy for us to take 
maintainership of the parts of the python-telepathy module that we use. 
We just use the bit that gives us constants for the telepathy dbus 
interfaces, and the Channel class (which just wraps the dbus object 
constructor).


Thanks,
Sam

On Mon, Jun 27, 2016 at 1:56 AM, Dave Crossland  wrote:

Hi

http://lwn.net/Articles/690676/

"The goal is to reach 50% of [python] packages [working with Python 
3] for Fedora 25, which is planned for release in November. There 
are various pieces that are still on Python 2, including some 
desktop toolkits. GTK+2 support will not be ported to Python 3, 
which affects GIMP, Inkscape, and Sugar that all have Python-based 
plugins. For the enterprise, Samba is one of the biggest projects 
that remains based on Python 2. Viktorin said he would "probably end 
up porting Samba", which was met with applause.


Has Sugar moved to GTK3 completely?

What is the status of migration from Python 2 to Python 3?

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


Re: [Sugar-devel] [DESIGN] 'Save As' on Activity close.

2016-06-25 Thread Sam Parkinson

Hi Utkrash,

Here is my 2c:

* How is this implemented?  As part of the sugar-web toolkit?  Will you 
also write it for sugar-toolkit-gk3?

* Can the cancel be renamed to delete (and have a trash icon)
* Can you use a PopWindow?
* Can you put a box to write a description as well as the title?

Thanks,
Sam

On Sat, Jun 25, 2016 at 7:45 PM, Ütkarsh Tiwari 
 wrote:

Hi,
I have designed the 'Save As' alert UI (gif attached below) and
have implemented 'discard' and 'entry-text' options by now.. Please
have a look and share your suggestions.
--
Regards,
Ütkarsh Tiwari
___
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] Error while setting up sugar-build

2016-06-14 Thread Sam Parkinson

Hi Utkrash,

What is in the pip log?  (usually /tmp/pip*)

Thanks,
Sam

On Tue, Jun 14, 2016 at 6:10 PM, Ütkarsh Tiwari 
 wrote:

Hi,
I am trying to setup a fresh sugar-build on my laptop but getting
this error - 
https://gist.github.com/iamutkarshtiwari/5aa67307562a1e6a45bc795fb3513a43


--
Regards,
Ütkarsh Tiwari
___
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] Error with Gtk.Window

2016-06-13 Thread Sam Parkinson
Have a look at Bibliography activity:  
https://github.com/samdroid-apps/bibliography-activity/blob/master/add_window.py#L142


Thanks,
Sam

On Tue, Jun 14, 2016 at 3:54 PM, Ütkarsh Tiwari 
<iamutkarshtiw...@gmail.com> wrote:

Hi Sam,
Could you please forward me a sample code where you used
Abhijit's module to show a popup ?


On 6/14/16, Sam Parkinson <sam.parkins...@gmail.com> wrote:

 What is the error?  I can not see it.

 What is the window?  Is it set to be resizeable or not?  (check that
 the resizeable property is true!)

 Thanks,
 Sam

 On Tue, Jun 14, 2016 at 3:23 PM, Ütkarsh Tiwari
 <iamutkarshtiw...@gmail.com> wrote:

 Hi,
 I am getting this(attached below) while trying to set the size 
of

 the window via set_size(). What could be the possible reason?

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





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


Re: [Sugar-devel] Error with Gtk.Window

2016-06-13 Thread Sam Parkinson

What is the error?  I can not see it.

What is the window?  Is it set to be resizeable or not?  (check that 
the resizeable property is true!)


Thanks,
Sam

On Tue, Jun 14, 2016 at 3:23 PM, Ütkarsh Tiwari 
 wrote:

Hi,
I am getting this(attached below) while trying to set the size of
the window via set_size(). What could be the possible reason?

--
Regards,
Ütkarsh Tiwari
___
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] Help Needed: Observer design Pattern

2016-06-09 Thread Sam Parkinson



On Fri, Jun 10, 2016 at 5:18 AM, Yash Agarwal  
wrote:

Hi,
I'm having trouble implementing  an observer pattern based Gtk layout.


You can use GObject Signals:  `pydoc gi.repository.GObject.Signal`



This is my current method to dynamically change the layout:
for implementing this, a grid with pagination, I'm destroying all the 
elements of the grid when either of the buttons is pressed and then 
add the new elements to the grid based on a counter.


Do you have the memory to create all the objects, even the invisible 
ones?


Alternatively, I'm not sure why you need the observer pattern.  Can you 
just go:


   for object in grid:
   object.change_to_new_thing(new_data[i])



I don't think this is the most efficient method to do this, hence I 
need help in implementing observer pattern in this.


with Regards,
Yash Agarwal

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


Re: [Sugar-devel] Smart way to get $$ for posting videos on youtube

2016-06-02 Thread Sam Parkinson

Hi Samson,

Last time I checked, Wikipedia was proudly add free (and asking for 
donations to stay that way).


I don't think we should put ads on our wiki.  I believe that we have 
the hosting of the wiki funded/donated.  And the adds can look very 
trashy and unprofessional - no other serious projects have them.


Maybe we can get away with youtube ads, given that people might blame 
it on youtube.  But is it worth doing it?  Isn't the revenue around 
$0.40/1000 views?  Do we even have 1000 views?  Is that worth the 
effect hosting ads has on our image?


Thanks,
Sam

On Thu, Jun 2, 2016 at 5:39 PM, samson goddy  
wrote:
Apart from the youtube adsense google also use ads, but just like 
android is one bad idea. We can embed ads in our texts in our wiki 
page. Just the same way wikipedia does. There is also text ads. Seems 
like google give about 0.30 usd per ads.


From: d...@lab6.com
Date: Wed, 1 Jun 2016 17:09:47 -0600
To: sam...@greenfeld.org
CC: samsongo...@hotmail.com; market...@lists.sugarlabs.org; 
sugar-devel@lists.sugarlabs.org; sam.parkins...@gmail.com
Subject: Re: [Sugar-devel] Smart way to get $$ for posting videos on 
youtube



On 1 June 2016 at 17:07, Samuel Greenfeld  
wrote:

I would have to ask to see what they are using.


Please do! :)

___ 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] Release Sugar 0.109.0.0

2016-05-29 Thread Sam Parkinson



On Mon, May 30, 2016 at 1:55 AM, Jerry Vonau <m...@jvonau.ca> wrote:




 On May 29, 2016 at 5:27 AM Sam Parkinson <sam.parkins...@gmail.com>
 wrote:


 Hello All,

 This is an unstable release, the 1st of the 0.110 development 
series.

 Tarballs are avaliable for sugar [1] and sugar-toolkit-gtk3 [2].

 I'd like to thank all the contributors towards this release.  There
 have been many new features [1] including Proxy Settings [2] 
(thanks to
 Manash Pratim Das) and running sugar activities outside sugar 
(thanks
 to Sebastian Silva) and overhalling favourites model (thanks to 
Martin
 Abente Lahaye).  Additionally there are many smaller improvements 
and

 large bug fixes.

 For testing on Fedora 23, Fedora 24 or Fedora Rawhide, we have a 
COPR

 repository that you can install very quickly:
 https://copr.fedorainfracloud.org/coprs/samtoday/sugar/



Cool, Thanks for implementing my suggestion, might be helpful to have
instructions on how to enable it.


Hi Jerry,

If you already have Sugar installed, you can just run the following 
commands:


dnf copr enable samtoday/sugar
dnf update
And then your normal sugar version will be updated.

Thanks,
Sam



 Please report bugs on bugs.sugarlabs.org.



Sorry I have not being paying close attention, isn't that moving?

Jerry


 Thanks,
 Sam

 [1]
 
http://download.sugarlabs.org/sources/sucrose/glucose/sugar/sugar-0.109.0.0.tar.xz

 [2]
 
http://download.sugarlabs.org/sources/sucrose/glucose/sugar-toolkit-gtk3/sugar-toolkit-gtk3-0.109.0.0.tar.xz

 [3]  https://wiki.sugarlabs.org/go/0.110/Feature_List
 [4]  https://wiki.sugarlabs.org/go/Features/Proxy_Settings
 [5]  https://wiki.sugarlabs.org/go/Features/FreeDesktop_integration
 ___
 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] Release Sugar 0.109.0.0

2016-05-29 Thread Sam Parkinson

Hello All,

This is an unstable release, the 1st of the 0.110 development series.  
Tarballs are avaliable for sugar [1] and sugar-toolkit-gtk3 [2].


I'd like to thank all the contributors towards this release.  There 
have been many new features [1] including Proxy Settings [2] (thanks to 
Manash Pratim Das) and running sugar activities outside sugar (thanks 
to Sebastian Silva) and overhalling favourites model (thanks to Martin 
Abente Lahaye).  Additionally there are many smaller improvements and 
large bug fixes.


For testing on Fedora 23, Fedora 24 or Fedora Rawhide, we have a COPR 
repository that you can install very quickly:  
https://copr.fedorainfracloud.org/coprs/samtoday/sugar/


Please report bugs on bugs.sugarlabs.org.

Thanks,
Sam

[1]  
http://download.sugarlabs.org/sources/sucrose/glucose/sugar/sugar-0.109.0.0.tar.xz
[2]  
http://download.sugarlabs.org/sources/sucrose/glucose/sugar-toolkit-gtk3/sugar-toolkit-gtk3-0.109.0.0.tar.xz

[3]  https://wiki.sugarlabs.org/go/0.110/Feature_List
[4]  https://wiki.sugarlabs.org/go/Features/Proxy_Settings
[5]  https://wiki.sugarlabs.org/go/Features/FreeDesktop_integration
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [DESIGN] Instant palette popdown - a usability improvement

2016-05-28 Thread Sam Parkinson

Hi Gonzalo,

I actually think this change unifies the touch and mouse design.  
Currently touch is designed so that a long press == a right click.  The 
touch event is also ignored if it triggers a palette - so that long 
pressing a button only opens the palette and does not activate the 
button


This design works nicely.  But some of the time it doesn't work.  Eg. 
long pressing the home view activity icons will launch an activity as 
well as opening the palette.  That is annoying.  I'm sure we can fix it 
though.


Thanks,
Sam

On Thu, May 26, 2016 at 9:53 PM, Gonzalo Odiard  
wrote:

Something to think about is the interaction on touch devices.



On Thu, May 26, 2016 at 7:58 AM, Tony Anderson 
 wrote:

Hi Sam

I like the Google apps button on the Google main page and the menu 
button at the far right of the Firefox toolbar. They show as a popup 
and have
plenty of screen space for icons and larger font sizes. This could 
support a design in which a left-click always causes an action and a 
right-click is required

to open up the 'palette' This is done well on the standard toolbar.

On the Home View, for instance. I would prefer that left-clicking on 
the icon launches the activity (new start). The tooltip shows the 
name of the activity (and nothing else). A right-click can open a 
list of instances available to be resumed. Using the Google or 
Firefox style, the list of instances can look exactly like the 
corresponding entry in the Journal.


Tony


On 05/26/2016 12:44 PM, sam@sam.today wrote:

Hi All,

A while ago, I dropped a mention on the list to how many users 
found the palette system confusing, at least in my usability 
testing experiment.


I recently wrote this up, with a more detailed rational;  
https://www.sam.today/blog/sugar-with-instant-palettes/


I invite you to comment on this.  This could be an interesting 
change for sugar (0.)110.


Thanks,
Sam


___
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





--

Gonzalo Odiard
Lider de proyecto
tel.: 4210-7748 | www.trinom.ioAv Calchaqui 4936· 2do Piso. 
Quilmes



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


Re: [Sugar-devel] [DESIGN] Instant palette popdown - a usability improvement

2016-05-28 Thread Sam Parkinson

Hi Tony,

On Thu, May 26, 2016 at 8:58 PM, Tony Anderson  
wrote:

Hi Sam

I like the Google apps button on the Google main page and the menu 
button at the far right of the Firefox toolbar. They show as a popup 
and have
plenty of screen space for icons and larger font sizes. This could 
support a design in which a left-click always causes an action and a 
right-click is required

to open up the 'palette' This is done well on the standard toolbar.

On the Home View, for instance. I would prefer that left-clicking on 
the icon launches the activity (new start). The tooltip shows the 
name of the activity (and nothing else). A right-click can open a 
list of instances available to be resumed. Using the Google or 
Firefox style, the list of instances can look exactly like the 
corresponding entry in the Journal.


I think that if we make palettes right click only, we loose an 
important discoverability aspect.  Do you find the hover-to-open 
helpful or harmful to discoverability in your experience?


I also think that the homeview palettes are a special case.  We aren't 
going to be able to add more items or elaberation to the running 
activity palettes, or the buddy palettes.  If we wanted to make the 
journal more intergrated with the homeview, couldn't we just replace 
the homeview with an enhanced journal?  (Did we discuss this on list? 
[1])


I find the idea of a larger font size interesting.  Is the current 
palette font size too small?  It is also important to remember that any 
font size increase makes the distance you need to move the mouse 
bigger, which could be a negative.


Thanks,
Sam

[1]  https://www.sam.today/blog/sugar-nohomeview-design.html



Tony

On 05/26/2016 12:44 PM, sam@sam.today wrote:

Hi All,

A while ago, I dropped a mention on the list to how many users found 
the palette system confusing, at least in my usability testing 
experiment.


I recently wrote this up, with a more detailed rational;  
https://www.sam.today/blog/sugar-with-instant-palettes/


I invite you to comment on this.  This could be an interesting 
change for sugar (0.)110.


Thanks,
Sam


___
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] migration of activities to github.com/sugarlabs

2016-05-27 Thread Sam Parkinson

Yep, that sounds logical

On Fri, May 27, 2016 at 10:20 PM, Dave Crossland <d...@lab6.com> wrote:


On 27 May 2016 at 08:07, Sam Parkinson <sam.parkins...@gmail.com> 
wrote:

Additionally, could we please have a naming standard?  zyx-activity?


Perhaps activity-xyz would be better, so that they are all sorted 
together?
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] migration of activities to github.com/sugarlabs

2016-05-27 Thread Sam Parkinson

Additionally, could we please have a naming standard?  zyx-activity?

On Fri, May 27, 2016 at 10:05 PM, Walter Bender 
 wrote:

The migration is well underway. But I have a few questions.

(1) Who is responsible for packaging and releasing new releases? Is 
there intended to be a schedule? Or do we continue to drive this by 
individual maintainers?


(2) Are there plans to set up sugarlabs.github.io where JS activities 
can be hosted? If not, is there a standard mechanism we should use 
for maintaining existing io sites? How do we maintain clones? Just 
through a clone? (I want to keep maintaining 
walterbender.github.io/musicblocks as that is the URL many people are 
using, but happy to promote it in the future as 
sugarlabs.github.io/musicblocks


-walter

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

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


Re: [Sugar-devel] Fwd: GSOC

2016-05-17 Thread Sam Parkinson
If you make an activity, all of the journal interaction is handled by 
the Journal.  Maybe that would help you in this instance?


On Wed, May 18, 2016 at 5:02 AM, Ütkarsh Tiwari 
 wrote:

Hi,
How can we overwrite(contents) a specific object in Journal?

Thanks,
Utkarsh

On 5/18/16, Ütkarsh Tiwari  wrote:

 Hi Tony,
  In case if the user chooses to overwrite the
 contents(code) of the existing project(already saved in Journal),
 would you like to overwrite that Journal object or create a new
 object(overwritten- this might create duplicate names)?

 Thanks,
 Utkarsh Tiwari

 On 5/17/16, Walter Bender  wrote:

 I believe it defaults to ~/Documents (outside of sugar-build).

 -walter

 On Tue, May 17, 2016 at 10:48 AM, Ütkarsh Tiwari
  wrote:
 > Hi, Utkarsh
 >
 > I gave this version a trial. I think the integration is 
complete. The
 > next problems are left over from Richa Sehgal's work from last 
year.

 >
 > I wasn't able to look at the feature page - I think Bernie 
Innocenti

 > is
 > working on the server and it is down for a while.
 >
 > What we are trying to do goes beyond the jsfiddle on the 
internet. It
 > provides a way to enter html or css or javascript and test the 
outcome

 > when the
 > code is processed by the browser. What I would like is that the 
user

 > can
 > create an html file using an editor and then show that file on 
with

 > the
 > fiddler.
 >
 > So, if I open the fiddler and enter Hello World , then 
'run'
 > will display that in the right side panel. (And that works). 
Now I

 > save
 > the file giving it  a
 > project name. e.g. helloworld. This is saved in the Journal. 
When you
 > look at the Journal, there are two entries. One shows the 
Browse icon
 > and the other a text page icon. This is normal - one represents 
the
 > journal object for the browse activity and the other object has 
the

 > saved html: helloworld.html.
 >
 > You can copy the helloworld.html file to the Documents folder 
(hover
 > over the text icon and select copy to Documents). Using 
Terminal, you

 > will see the file in the Documents folder is named
 > helloworld.html.zip.
 > This is correct (it should be a zip file) but the name should be
 > helloworld.zip. In the Terminal you will see the expanded file 
is

 > helloworld.html.
 >
 > There are two problems:
 >
 >  1. When the file is zipped, it should be in a 'project' 
directory
 > with the name of the project. So helloworld/helloworld.html. 
When
 > unzipped, there should be a helloworld directory in Documents 
and in

 > it
 > should be the helloworld.html file.
 >  2. The html file needs a helloworld. Browse
 > apparently uses the whole file as the title when one is not 
given.

 > Note:
 > the title appears as the name of the tab.
 >
 > Having saved helloworld with project name helloworld, I was 
able to

 > open
 > it (but only when fiddler is enabled - which is probably ok). It
 > displayed correctly. However, if I show source I get the source 
html

 > for
 > Richa Sehgal's fiddler page not the source of the 
helloworld.html.

 >
 > Using Terminal, I did a less on the text of helloworld.html. It 
is one
 > line (normal for html which doesn't recognize newlines). There 
is a
 > package called BeautifulSoup which is included in the Sugar 
image (it

 > is
 > outdated - should be bs4 but no problem). Anyway, you can find 
the

 > BeautifulSoup documentation on line. What you can do is use the
 > prettyprint feature to save the html file so that it is more 
useful

 > for
 > editiing.
 >
 > Note: the reason for the zip file is that an html file can 
refer to an

 > img (Some). This is a relative url and
 > refers
 > to a file in the same directory as the html file. By zipping 
the html
 > and media files together, it will work correctly when uploaded 
to the
 > school server, for example. This also supports having a main 
page with

 > links to other html files in the same directory ( href='page1.html'>Page 1).
 >
 > This is great progress and now we have the opportunity to make 
sure

 > that
 > the feature works in various use cases.
 >
 > Tony
 >
 > On 05/14/2016 10:08 PM, Ütkarsh Tiwari wrote:
 >> Hi,
 >>  I have fixed the .xo file. Now on clicking the 'Run' will 
open a
 >> new tab with blank fiddle screen and will insert the user code 
inside
 >> the blank skeleton in index.html. I have attached the new .xo 
below.

 >>
 >> Note- "web-console.html" file contains the html code of the
 >> JS-fiddler
 >> designed by Ms. Richa Sehgal. We need not touch it. User code 
is

 >> saved
 >> in the index.html file.
 >>
 >> I have also created a feature page -
 >> https://wiki.sugarlabs.org/go/0.110/Feature_List/JS_Fiddler
 >>
 >> Thanks,
 >> 

Re: [Sugar-devel] Beautiful Soup

2016-05-17 Thread Sam Parkinson
Tony, given that the fiddle can't even preserve line breaks when 
saving, there are only 2 reasons that this could be happening:


1.  You are building on a horrible base
2.  You have built a horrible thing

Maybe you should start over and use a simple Python activity?  My 
simple prototype that I shared with you previously works perfectly with 
saving line breaks.


You've probs invested more time argueing about this now than actually 
coding it.  Maybe just do what is right?


Thanks,
Sam

On Tue, May 17, 2016 at 9:36 PM, Tony Anderson  
wrote:

Hi, Sebastian

Which, at the end of the day, is what we are doing now.

Tony

On 05/17/2016 01:18 PM, Sebastian Silva wrote:
>
> El 17/05/16 a las 06:06, Tony Anderson escribió:
>> How then do we maintain the contributions from GSOC participants 
since

>> virtually all of them leave the community at the
>> end of the summer to meet their obligations for school or work?
> Presumably, we merge them, or fail them.
> :-)
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel

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


Re: [Sugar-devel] Screenshot feature [GSoC Project]

2016-05-13 Thread Sam Parkinson

Hi Utkrash,

Can you check you uploaded the patch correctly?  I tested and you had 
solved none of the issues :(


Thanks,
Sam

On Fri, May 13, 2016 at 4:47 PM, Ütkarsh Tiwari 
 wrote:

Hi,
I have resolved almost all the issues reported by Mr. James
Cameron here 
-https://github.com/sugarlabs/sugar/pull/675#issuecomment-209190086

.

There is just one thing I need help with. I need to show the popup
window above all the active Gtk.Window(s) for eg. Controlpanel. How to
make this happen?

Thanks,
Utkarsh Tiwari

On 5/11/16, Ütkarsh Tiwari  wrote:

 -- Forwarded message --
 From: Ütkarsh Tiwari 
 Date: Wed, 11 May 2016 04:24:18 +0530
 Subject: Re: [Sugar-devel] Screenshot feature [GSoC Project]
 To: Tony Anderson 

 Hi Tony,
  I have re-worked the UI as you requested. Please test 
it

 and let me know your suggestions.

 P.R.- https://github.com/sugarlabs/sugar/pull/675

 Thanks,
 Utkarsh Tiwari

 On 4/9/16, Tony Anderson  wrote:

 Hi, Utkarsh

 You clearly have control over the code involved. For screenshots
 'cancel' is ok since the user is not also leaving an activity. 
However,
 for activities, 'cancel' should not be used since it suggests 
canceling
 the 'quit' action. I think something like: Save Yes   No  might 
work.
 The Yes response would be ignored unless the name is changed. If 
you use
 Save Yes No (or check, x), the same alert could be used for both 
cases

 increasing UI consistency.

 Tony

 On 04/09/2016 07:10 AM, Utkarsh Tiwari wrote:


 I have fixed*

 On Apr 9, 2016 4:19 AM, "Utkarsh Tiwari" 
> wrote:

 Hi,
  I have all these following listed inconsistencies as 
suggested

 ->
 1- Esc key handler removed.
 2- Enter key hander removed.
 3- Now the screenshot can be saved only via save(check) 
toolbutton.

 4- The screenshot alert can be 'not save' or 'cancelled' via
 cancel(X)
 toolbutton.

 PR- https://github.com/sugarlabs/sugar/pull/675

 Please update me if further modifications are required.

 Thank you,
 Utkarsh Tiwari

 On 4/8/16, Tony Anderson > wrote:
 > Hi,
 >
 > Consistency is very important to our users. Using Esc for 
this

 is unusual.
 >
 >
 > I have trouble following the screencast. It looks like you 
offer

 a check
 > and an x for the user. It also looks like an enter after
 providing the
 > title acts as
 > the check. The x appears to save the screenshot without 
changing

 the
 > title. The user doesn't appear to have an option not to 
save the
 > screenshot. Arguably the workflow would be to complete the 
task

 and then
 > go to the Journal to erase the unneeded screenshots. I have 
taken
 > screenshots and realized, for example, that the cursor was 
not

 on the
 > right toolbar item. For these, I would like to be able to 
have a

 'no
 > save' option.
 >
 > Using Esc is not consistent with the way the rest of Sugar 
works

 and
 > doesn't seem needed since you offer an equivalent one-click
 option in
 > the alert/pop-up.
 >
 > Tony
 >
 > On 04/08/2016 02:07 PM, Utkarsh Tiwari wrote:
 >> Hi,
 >>  Here is the PR to the screenshot feature ->
 >> https://github.com/sugarlabs/sugar/pull/675
 >>
 >> Thank you,
 >> Utkarsh Tiwari
 >>
 >> On 4/4/16, Utkarsh Tiwari > wrote:
 >>> Hi Dave,
 >>>   Thanks for your appreciation. I think this
 feature isn't
 >>> intrusive also because if the user wants to ignore or 
cancel

 the save,
 >>> he can simply do so by pressing Esc key.
 >>>
 >>> Golden Rule- Giving the user a choice to do something but 
not

 force it.
 >>> ;)
 >>>
 >>> Thanks,
 >>> Utkarsh Tiwari
 >>>
 >>> On 4/4/16, Dave Crossland > wrote:
  I think this is a good change/feature
 
 >> .
 >>
 >
 >







___
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] Fwd: GSOC

2016-05-12 Thread Sam Parkinson

Hi Utkrash,

This is a very interesting project.  Just a few comments:

* One core idea in sugar is that there are no load/save buttons.  
Activities just have contents and let you edit the contents, the 
journal deals with all the saving and loading.  When you are adding a 
toolbar that literally has a save and load button, maybe you should 
make a new activity.

  -> maybe a solution is to:
   1.  Make a new activity that is like JSFiddle.  I made up a 
prototype a while ago and sent to you on the list.
   2.  Add a "open this web page in JSFiddle activity" button in 
browse.  This would precreate a JSFiddle activity file that has the 
current web page in it.
  - that then solves the issue, and allows you to add collaboration to 
the JSFiddle (since you can add collaboration very simpily to any 
python activity.  Infact, TextBuffer syncing is a built in feature of 
collabwrapper!!!)


* Browse integration is an interesting idea.  I would not make the 
toolbutton as prominent.  Think about this:

   1.  Browse is built for browsing the internet
   2.  The main education reason for the internet is research
   3.  When I am researching the internet, I don't need to play with 
javascript programming
   4.  Therefore, it is a waste of the screen to put an unused button 
on the main toolbar
   -> Maybe just put it under the activity toolbar, where the web 
inspector button is already


Thanks.
Sam

On Thu, May 12, 2016 at 2:25 AM, Ütkarsh Tiwari 
 wrote:

-- Forwarded message --
From: Ütkarsh Tiwari 
Date: Mon, 9 May 2016 15:39:04 +0530
Subject: Re: GSOC
To: Tony Anderson 

Hi,
There were some issues with the .xo file I attached in the
previous message. Here is the updated xo file.

Apologies,
Utkarsh Tiwari

On 5/8/16, Ütkarsh Tiwari  wrote:

 Hi,
 I have re-setup the toolbar as you requested. Now the run button
 also enables the js-fiddle and I have also added an icon for the
 'view-page-source' feature in the toolbar.

 Please test the attached .xo and let me know.

 Thanks,
 Utkarsh Tiwari

 On 5/8/16, Tony Anderson  wrote:

 Hi, Utkarsh

 I believe the icon for show source belongs in the palette (I am 
not sure
 this is correct usage but it will help in our discussion. The 
palette is
 the sub-menu that opens when you click on the button in the 
toolbar). I

 like the four parallel lines icon in the toolbar, but I think the
 community will want it changed to the gear icon. So in the 
palette, I

 can see buttons for 'view source', 'run', 'open', 'save', and 'add
 image' with, perhaps, others to be added. The important thing is 
to have
 the 'run' button enable js-fiddle as well as performing the run 
function.


 On 05/07/2016 04:05 PM, Ütkarsh Tiwari wrote:

 Hi,
   A little double I have. Are we talking about placing the 
icon for
 viewing the source-code of the currently active webpage in browse 
in a

 new tab or are we talking about viewing the source-code of the
 currently open activity which is done through ?

 Thanks,
 Utkarsh Tiwari

 On 5/6/16, Tony Anderson  wrote:

 Hi, Utkarsh

 This version has the toolbar setup needed. Now comes the 
question of
 icons. Since Sugar uses a keyboard shortcut for view source, 
there

 doesn't appear to be a view source icon.

 Two suggestions:

 1. Use the gear icon as the icon for the main button (replacing 
the

 four
 parallel bars) and then use something like:
   https://commons.wikimedia.org/wiki/File:Code_Logo.svg
 for the view source button.

 2. Use the 'wrench' icon as the main icon on the toolbar and 
keep the

 gear icon for view source.

 On the fiddler button - Richa used the main (three red dots) 
button to
 enable the js-fiddle. The simplest solution would be to 
automatically
 enable js-fiddle when the user clicks on the 'run' button in 
addition

 to
 its function to refresh (the 'try me' capability). It would 
probably be
 better to make that the first button followed by 'open', 'save 
as', and
 'add image'. Probably a better alternative is to eliminate the 
second

 submenu and have five buttons on the menu:

 'run', 'open', 'save as', 'add image', and 'view source'.

 Yours,

 Tony

 On 05/05/2016 05:25 PM, Utkarsh Tiwari wrote:

 Hi,
   In one the previous messages in this thready I had 
forwarded you
 an .xo files that contains the toolbar setup as you mentioned 
above

 http://imgur.com/gIKfapm.

 The icon for the toolbar can be changed easily. Currently I am
 focusing on adding the 'view source code of the current page' 
feature

 to Browse so that the user can view the html of the current open
 webpage for any references. After having done this, I'll fix the
 toolbar icons as you told. Until then, please test this .xo 
attached

 below (I have wired the toolbar buttons with their respective
 functionalities).

 Thanks,
 Utkarsh Tiwari


 On 

Re: [Sugar-devel] [IAEP] [SLOBS] [SLOB] meeting reminder and some open issues to discuss

2016-05-12 Thread Sam Parkinson

I'm not a big fan of this idea.

The SLOBs already seem to have some capital.  But they seem to be 
scared to spend it.  How much arguing have we done over the translation 
co-ordinator position?  Something like a translation position would be 
great, but nobody has seemed to actually do anything to put in into 
action.


Meanwhile, Sugar continues to evolve.  Us volunteers write code, make 
releases, do user testing, etc.  This is not stuff that the SLOBs has 
helped with, not in a way that I am aware of at lest.


Is a membership fee for volunteers even something that any other Free 
Software orgs do?  GNOME doesn't seem to.


So my opinion is that the SLOBS should do something before seeking to 
raise additional funding, especially in this odd way.


Thanks,
Sam

On Thu, May 12, 2016 at 5:35 AM, Laura Vargas  
wrote:



2016-05-12 2:08 GMT+08:00 Dave Crossland :


On 11 May 2016 at 14:05, Laura Vargas  wrote:
there are ~US$65,000 available for planning/distributing among 
activities/teams/projects etc.


I think its essential that this be spent in ways that led directly 
to further income, to grow the project.


I agree that there is a need for income strategies as well. Still, 
the idea of annual budget is to plan the expenses so that the most 
areas of an organization can produce results in what they do.


It would be ideal to count with a somehow stable basic income, and 
therefore it would make sense to promote a motion for Lionel's idea 
of a yearly membership fee. Of course it would have to contemplate 
the exemptions of minors and members who actually don't have 
resources to pay.


Been more than 80 members, a yearly fee of US$100 with an estimated 
~50% of exemptions would put in SL general fund ~US$4.000 per year, 
probably enough for basic operations.



--
Laura V.
I SomosAZUCAR.Org

Identi.ca/Skype acaire
IRC kaametza

Happy Learning!

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


Re: [Sugar-devel] BlackDuck's OpenHub graph of Sugar

2016-05-09 Thread Sam Parkinson



On Mon, May 9, 2016 at 2:46 PM, Dave Crossland  wrote:


Hi

https://www.openhub.net/p/sugar/commits/summary offers a graph of 
Sugar development activity that is a bit different to the one on 
Github, https://github.com/sugarlabs/sugar/graphs/contributors 
although basically the same.


What was the jump in activity around 2012/2013/2014, and why did it 
die down? :)


My guesses:

* OLPC AU funded much stuff.  They are now doing Android :'(
   - We really should reach out and get some reasons why they 
switched.  What is Sugar lacking in?  Did your chat with Rangan go into 
this area Dave?

* Manuq [1] seems to have moved on
* Daniel Narvaez [2] completely vanished.  I think some people tried to 
reach out to him what was going on, but that didn't have any effect
   - We should continue his legacy and fix out testing infrastructure. 
He did amazing things to bring us up to speed with testing, CI servers 
and osbuild


Thanks,
Sam

[1]  https://github.com/manuq
[2]  https://github.com/dnarvaez



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


Re: [Sugar-devel] facebook verification

2016-05-02 Thread Sam Parkinson
Maybe something like:  
https://www.facebook.com/help/contact/284186058405647


On Mon, May 2, 2016 at 8:52 PM, samson goddy  
wrote:


I don't understand your last mail. Can you explain?
Date: Mon, 2 May 2016 20:45:57 +1000
From: sam.parkins...@gmail.com
To: samsongo...@hotmail.com
CC: curious...@gmail.com; devin@ulibarri.website; 
sugar-devel@lists.sugarlabs.org; d...@lab6.com

Subject: Re: [Sugar-devel] facebook verification

Surely the large social networks provide a mechanism for the 
trademark owner (SLOBs?) to claim back their pages?


Thanks,
Sam

On Mon, May 2, 2016 at 8:43 PM, samson goddy 
 wrote:
For what i can gather, the email account of the 
https://twitter.com/sugarlabs is registered with the email account 
73**@o.*** it not account because of the date created my 
best guess is that it "@olpca.org" or something Related. Is possible 
to talk with the twitter team on how to recover the account or hack 
it instead. My second guess is to use the @sugar_labs then verify 
it. I  don't think that the owners of the www.facebook.com/SugarLabs 
will be willing to leave the page. Let think about something else


From: d...@lab6.com
Date: Sun, 1 May 2016 19:35:12 -0400
Subject: Re: [Sugar-devel] facebook verification
To: samsongo...@hotmail.com
CC: devin@ulibarri.website; sam@sam.today; curious...@gmail.com; 
sam.parkins...@gmail.com; sugar-devel@lists.sugarlabs.org



On 1 May 2016 at 18:49, samson goddy  wrote:

are we going to take the same step for the twitter verification?


Sure. Who has a login for the https://twitter.com/sugarlabs account?

The pagebook account is currently 
https://www.facebook.com/SugarLabs-187845102582/ which isn't ideal.


FB has a rename feature 
(https://www.facebook.com/username?from_page=187845102582) that can 
be used twice


Sadly www.facebook.com/SugarLabs is taken by someone in Colombia

So I suggest using its 1st time to rename to 
www.facebook.com/SugarLabs.Org (or without the period) and then if 
we can persuade the Colombian squatter to move on (since their page 
is not used, it might be possible :) then it can be used a 2nd time.





___ 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] WebKit2 Browse - Download and Test

2016-04-27 Thread Sam Parkinson
Tony, you are complicating your life by trying to shove this into 
browse.  This could be it's own python activity and that would be 
easier.


To help you on your journey, I hacked something up for you 1 hour last 
weekend.  It is a very basic python activity that almost already 
matches the features of the browse insert.   It's built using WebKit2.  
You may be interested in basing your further hacking off it [1].  Note 
that it is very rough, and lacks the proper icons, etc.


As a python activity, you can use the gettext framework for i18n, take 
advantage of the journal loading and saving, use CollabWrapper to get 
real time collaberation with very little code.  You could even use the 
WebKit WebInspector to give your students the ability to use the JS 
Console and the inspect element feature.  With sugar3 and python, it's 
all possible.


Thanks,,
Sam

[1]  https://github.com/samdroid-apps/web-maker-activity

On Wed, Apr 27, 2016 at 5:15 PM, Tony Anderson <tony_ander...@usa.net> 
wrote:

Hi Sam

The goal of Utkarsh's project is to integrate Richa Sehgal's GSOC 
work with Browse. This was the original goal but at the time Gonzalo 
was not available.
Ideally, an integration with 158 would save a step, I think it would 
not be helpful to use a development project to test webkit2. This is 
a critical feature because the webkit in 157.2 does not support flex 
- an essential feature in specifying layout for reponsive design. 
This is particularly important because browsers mistreat the Sugar 
screen resulting in poor matches between activities on an XO and the 
same activity on other laptops.


Previous versions of webkit, so far as I know, followed the W3C 
guidelines for partial implementation of html5 and css3 - as Internet 
Explorer famously did not.


Tony

On 04/27/2016 02:43 PM, Sam Parkinson wrote:

Hi Tony,

157.2 is not a very big release.  If you're not testing the WebKit2 
port, it is probably not helpful for finding bugs in the webkit2 
port.


If you're involved in a deployment using comodity hardware, this is 
probably something that you want to look into.  While webkit2 is a 
big change, it is very important from a security and 
web-compatibility perspective.  Webkit1 is like internet explorer 8 
- it hasn't been updates for like the last 5 years!


Thanks,
Sam

On Wed, Apr 27, 2016 at 4:19 PM, Tony Anderson 
<tony_ander...@usa.net> wrote:
It may be expedient to test with Browse-157.2 which does not use 
webkit2 for now. It is doubly hard to debug one change by using 
another

software component under test.

Tony

On 04/27/2016 01:27 PM, Utkarsh Tiwari wrote:

Hi,
I pulled the 'webkit2' branch from the browse-repo and after
running the activity I am getting the errors ( can't load a page in
browse) as shown in the attachment below.

Thanks,
Utkarsh Tiwari

On 4/19/16, James Cameron <qu...@laptop.org> wrote:
Debian bug #802380 has a link that reproduces a "WebKit has 
crashed"

dialog on Browse-158, for which I've attached a screenshot.

http://www.reuters.com/article/2015/10/18/us-new-york-flightcenter-idUSKCN0SC14B20151018

This was with 2.12.0, and it is probably a WebKit problem rather 
than
a Browse problem, but it does expose some Browse problems in 
handling

a WebKit crash ...

- the cursor keeps spinning,

- the home button doesn't work any more,

- the stop loading button doesn't work either,

- no evidence of the crash in the Browse logs.

The activity stop button worked fine.

On Sat, Apr 09, 2016 at 08:34:44PM +1000, sam@sam.today wrote:

Hi All,

I'm happy to release an unstable version of the WebKit2 browse.  
Most

things
have been ported and many bugs fixed from the original port.  
Please help

by
testing this!

Special thanks to Gonzalo Odiard for his huge contribution to 
the port.


Thanks,
Sam

=
Installing
=

Note, this requires **WebKitGtk+ 2.11.3** or newer.  
Practically, this

means
use Fedora 24+.

You can install the activity from the git repository branch 
"webkit2":

[1]
https://github.com/sugarlabs/browse-activity/tree/webkit2

You can use the XO bundle if you prefer:
[2]https://people.sugarlabs.org/sam/
Browse-158.xo
(sha256sum
2cd0f96501eea9a5905d0f3bdc1fde88c85069e62d5eb7706f14f85a41b182b2)

Then open Sugar and run the Browse activity.  Please verify that 
it has

successfully installed version 158.

Please report bugs somewhere.  You can email me <sam@sam.today>, 
reply to

this
thread, or open them somewhere on bugs.sugarlabs.org.

==
What is good about WebKit2?
==

* Read the WebKit Security Advisories and feel happy that you 
are using

WebKit2
[1]
- Read "On WebKit Security Updates" and feel sad again 
(unless you

run
Fedora) [2]
* WebGL Support (Hype!)
* New javascript engine "FTL" (Faster Than Light) powered by the 
very new

B3
backend.  You can run Sugarizer even faster inside of Sugar!!
* Web Process Separation keeps you safer fr

Re: [Sugar-devel] WebKit2 Browse - Download and Test

2016-04-27 Thread Sam Parkinson

Hi Tony,

157.2 is not a very big release.  If you're not testing the WebKit2 
port, it is probably not helpful for finding bugs in the webkit2 port.


If you're involved in a deployment using comodity hardware, this is 
probably something that you want to look into.  While webkit2 is a big 
change, it is very important from a security and web-compatibility 
perspective.  Webkit1 is like internet explorer 8 - it hasn't been 
updates for like the last 5 years!


Thanks,
Sam

On Wed, Apr 27, 2016 at 4:19 PM, Tony Anderson  
wrote:
It may be expedient to test with Browse-157.2 which does not use 
webkit2 for now. It is doubly hard to debug one change by using 
another

software component under test.

Tony

On 04/27/2016 01:27 PM, Utkarsh Tiwari wrote:

Hi,
I pulled the 'webkit2' branch from the browse-repo and after
running the activity I am getting the errors ( can't load a page in
browse) as shown in the attachment below.

Thanks,
Utkarsh Tiwari

On 4/19/16, James Cameron  wrote:

Debian bug #802380 has a link that reproduces a "WebKit has crashed"
dialog on Browse-158, for which I've attached a screenshot.

http://www.reuters.com/article/2015/10/18/us-new-york-flightcenter-idUSKCN0SC14B20151018

This was with 2.12.0, and it is probably a WebKit problem rather 
than
a Browse problem, but it does expose some Browse problems in 
handling

a WebKit crash ...

- the cursor keeps spinning,

- the home button doesn't work any more,

- the stop loading button doesn't work either,

- no evidence of the crash in the Browse logs.

The activity stop button worked fine.

On Sat, Apr 09, 2016 at 08:34:44PM +1000, sam@sam.today wrote:

Hi All,

I'm happy to release an unstable version of the WebKit2 browse.  
Most

things
have been ported and many bugs fixed from the original port.  
Please help

by
testing this!

Special thanks to Gonzalo Odiard for his huge contribution to the 
port.


Thanks,
Sam

=
Installing
=

Note, this requires **WebKitGtk+ 2.11.3** or newer.  Practically, 
this

means
use Fedora 24+.

You can install the activity from the git repository branch 
"webkit2":

[1]
https://github.com/sugarlabs/browse-activity/tree/webkit2

You can use the XO bundle if you prefer:
[2]https://people.sugarlabs.org/sam/
Browse-158.xo
(sha256sum
2cd0f96501eea9a5905d0f3bdc1fde88c85069e62d5eb7706f14f85a41b182b2)

Then open Sugar and run the Browse activity.  Please verify that 
it has

successfully installed version 158.

Please report bugs somewhere.  You can email me , 
reply to

this
thread, or open them somewhere on bugs.sugarlabs.org.

==
What is good about WebKit2?
==

* Read the WebKit Security Advisories and feel happy that you are 
using

WebKit2
[1]
- Read "On WebKit Security Updates" and feel sad again (unless 
you

run
Fedora) [2]
* WebGL Support (Hype!)
* New javascript engine "FTL" (Faster Than Light) powered by the 
very new

B3
backend.  You can run Sugarizer even faster inside of Sugar!!
* Web Process Separation keeps you safer from evil internet people.
 Eventually, the web process will even be sandboxed from your 
system
* Pinch-to-zoom support - real time text rendering while zooming 
(watch

the
lag!!)
* GeoLocation support - web sites can request geo location 
permission
* Notification support - web sites can request permission to send 
you

notification

=
Summary of Browse changes
=

* Improve the autocomplete list (thanks to Utkarsh Tiwari)
* PDF Tab Edge case fixes (thanks to James Cameron)
*
* New history format.  This is due to a change in WebKit2 api.
  - You can open files made with old versions of browse.  However, 
it will

only
load the current tab page, not the full back/forward history list.
* Print to PDF support removed.  This is due to a change in 
WebKit2 api.

* Button to activate the Web inspector.
* The long-press for palette code got even more dodgy.  It now 
fakes a

right
click - this is the only way to work with the webkit2 api changes.

[1]  [3]http://webkitgtk.org/security.html
[2]  [4]https://blogs.gnome.org/mcatanzaro/2016/02/01/
on-webkit-security-updates/

References:

[1] https://github.com/sugarlabs/browse-activity/tree/webkit2
[2] https://people.sugarlabs.org/sam/Browse-158.xo
[3] http://webkitgtk.org/security.html
[4]
https://blogs.gnome.org/mcatanzaro/2016/02/01/on-webkit-security-updates/
___
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 mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] slider puzzles

2016-04-24 Thread Sam Parkinson
Most activities are not under the sugarlabs org.  I'm not really sure 
which is better, but the previous idea seemed to be:


github.com/sugarlabs == maintained by sugarlabs.  Not all activities 
are at all related to sugarlabs.  => browse is the only official 
sugarlabs activity.


Thanks,
Sam

On Mon, Apr 25, 2016 at 11:27 AM, Dave Crossland  wrote:


On 24 April 2016 at 17:31, Walter Bender  
wrote:
There was a GCI project (See 
https://github.com/Boquete/activity-sliderpuzzle ) to clean up 
slider puzzle.


Seems like it should be in the sugarlabs org, so I filed 
https://github.com/Boquete/activity-sliderpuzzle/issues/1 :)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] About bug: No indicator when headphones are plugged in #4906

2016-04-22 Thread Sam Parkinson

Hi Manash,

GNOME has a feature to do the same thing [1].  They seem to use an 
abstracted library called "GVC" to do all the volume stuff.  But 
ultimately, it is just talking to pulse audio.  We also talk to pulse 
audio through SugarExt, so hopefully that is helpful.


Thanks,
Sam

[1]  
https://git.gnome.org/browse/gnome-shell/commit/?id=784b04b191022b3b4e349ed123a2976ccb4007bb


On Fri, Apr 22, 2016 at 11:04 PM, Manash Raja  
wrote:

Hi everyone,

I was looking at this bug: https://bugs.sugarlabs.org/ticket/4906 .

I found that acpi is not present in Sugar. So what other package is 
used in Sugar to generate a hardware signal (if supported) in 
response to plugging a headphone jack?


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


Re: [Sugar-devel] [DESIGN] [BROWSE] - Toolbar Expansion and Fiddler Integrations

2016-04-21 Thread Sam Parkinson

Hi Utkarsh,

I think that the sugar-intergration of this application has nothing to 
do with the toolbars.


The idea of a JSFiddle style activity is very powerful.  But squeezing 
it inside of the browser is not powerful.  You loose the saving, 
collab, journaling, etc.


Maybe you could look at making it into a separate activity.  You could 
python and GtkSourceView, then easily add collaboration via 
CollabWrapper (see how Pippy uses the text buffer helpers from the 
collabwrapper).  That would also let it save the journal, have nice 
toolbars, etc.  If it is in python, you could integrate it with some 
css/html preprocessors, eg. python-scss.  It could be amazing, and save 
to the journal!


You could even then add more buttons to the toolbar then.  Eg, ""auto 
reload"", a button to browse examples, or even a site like codepen, etc.


Thanks,
Sam

On Thu, Apr 21, 2016 at 4:26 AM, Utkarsh Tiwari 
<iamutkarshtiw...@gmail.com> wrote:

Hi,

I am attaching the modified browse-xo bundle below. It includes
the expansion of the main-toolbar and the new JS-Fiddler menu UI.

Please test it and let me know your suggestions.

Thank you,
Utkarsh Tiwari

On 4/20/16, Utkarsh Tiwari <iamutkarshtiw...@gmail.com> wrote:

 Hi,
 It hasn't yet been integrated into the Browse-activity and I 
also

 haven't been informed of any feature page of it. But I am attaching
 below the .xo of this version.

 P.S- This is one of the previous year's GSoC projects worked on by 
Ms.

 Richa Sehgal.

 Here is here proposal -
 
https://wiki.sugarlabs.org/go/Summer_of_Code/2015/Interactive_JS_Shell_Richa


 Thanks,
 Utkarsh Tiwari

 On 4/20/16, Sam Parkinson <sam.parkins...@gmail.com> wrote:

 Hi Utkarsh,

 This JS Fiddler seems very interesting.  Is there a place that I 
can

 find more information on it?

 Is it a separate activity or is it embedded into browse?

 Thanks,
 Sam

 On Wed, Apr 20, 2016 at 9:08 PM, Utkarsh Tiwari
 <iamutkarshtiw...@gmail.com> wrote:

 Hi,
 As suggested by Mr. Tony Anderson, I have reworked the UI of 
the

 previous year GSoC project (JS Fiddler) by Ms. Richa Sehgal. This
 modifications will provide for extra space for the extra 
toolbuttons
 to be added in future and makes the UI look more clean. I have 
also

 re-positioned the 'Fiddler' sub-options to align with Sugar style.

 Please have a look -> http://imgur.com/gIKfapm and share your
 suggestions.

 P.S.- Please download and open the Gif in fullscreen mode to get a
 closer look.

 Thanks,
 Utkarsh Tiwari
 ___
 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] Vision

2016-04-20 Thread Sam Parkinson
On Thu, Apr 21, 2016 at 12:53 PM, Tony Anderson  
wrote:

Hi, Dave

I couldn't agree more. I offered to help support a test James 
requested. His response was an attack on me. It is really hard to 
keep focus on the
positive underlying discussions. Again, I should have applied the 
24hour rule. I apologize.


Tony, you should apply the 24 hour rule again before you call James's 
response an "attack".


Anyway, I think that James was trying to inform you about the wonder 
that is a patch.  Creating, uploading, dowloading and imaging is a hard 
thing.  Applying a patch is something that can be done with "curl" and 
then "patch -p1" or the similar.  If you want to be even fancier, you 
can build and distribute an rpm.  I don't know too much about 
deployments, but if running a command is harder than installing an 
image, I think you might want to investigate some better tooling.


Thanks,
Sam




In this case the need for an image is also specific. By having an 
image on an SD card, my XO-1 can retain its early installed release 
for comparison with the sd card install.


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


Re: [Sugar-devel] Regarding GSoC proposal

2016-04-20 Thread Sam Parkinson

Hi Utkarsh,

It's probably fine.  I think that it is something that you can Tony 
(Tony is your mentor right?) can talk about and decide on.


The *spirit* of the rules about proposal changing seem to be:

1)  ensuring that the student continues on a proposal that they are 
engaged in
2)  ensuring that the proposal is still the same proposal that the 
community thought was important (and therefore chose it for the GSoC)


I would think that screen shot popup is fine for this, but ask your 
mentor


Thanks,
Sam


On Wed, Apr 20, 2016 at 10:44 PM, Utkarsh Tiwari 
 wrote:

Hi,

I guess it's too late for this but I couldn't add the 'screenshot'
popup prototype I developed to my proposal :( Is there anything I
could do fix it?

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


Re: [Sugar-devel] [DESIGN] [BROWSE] - Toolbar Expansion and Fiddler Integrations

2016-04-20 Thread Sam Parkinson

Hi Utkarsh,

This JS Fiddler seems very interesting.  Is there a place that I can 
find more information on it?


Is it a separate activity or is it embedded into browse?

Thanks,
Sam

On Wed, Apr 20, 2016 at 9:08 PM, Utkarsh Tiwari 
 wrote:

Hi,
As suggested by Mr. Tony Anderson, I have reworked the UI of the
previous year GSoC project (JS Fiddler) by Ms. Richa Sehgal. This
modifications will provide for extra space for the extra toolbuttons
to be added in future and makes the UI look more clean. I have also
re-positioned the 'Fiddler' sub-options to align with Sugar style.

Please have a look -> http://imgur.com/gIKfapm and share your 
suggestions.


P.S.- Please download and open the Gif in fullscreen mode to get a 
closer look.


Thanks,
Utkarsh Tiwari
___
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] Vision

2016-04-19 Thread Sam Parkinson

Hi Dave,

Maybe the web platform is a bad bet.  Maybe Qt is a bad bet.  Maybe 
Gtk+ is a bad bet.  What.  A.  Shame.


But Gtk+ is actually fine.  It runs fast enough, it doesn't make users 
complain (or at least I haven't heard them), it has a nice api, and 
there is active development.  If we need better developer experience, 
we can investigate using GtkBuilder/Glade for our guis, or lifting the 
Gtk+ version requirement and using the nice GtkStack, GtkRevealer, 
GtkFlowBox, GtkListBox, and all the other new apis.


I'm not sure why Qt was not picked initially.  But to tell you the 
truth, it seems to me that the innovative stuff (Client Side 
Decorations, Wayland, CSS Nodes, etc) is happening in Gtk.


Thanks,
Sam

On Wed, Apr 20, 2016 at 2:23 PM, Dave Crossland  wrote:


On 19 April 2016 at 23:14, Justin Overton  
wrote:
I did look to see if I could find a way to buy an XO-4, but I ended 
up rooting my chromebook instead. It mostly runs fine on the 
chromebook, but several of the apps don't work. EToys, Speech, and a 
couple of others.


Cool!

I think Sugar Labs should buy some XO-4 stock and sell them, mainly 
to developers :)


I'm curious why etoys won't run; squeak should run everywhere, and it 
seems to me to be one of the most important activities.


On the main topic, I do think the web platform may be a bad bet - 
http://techcrunch.com/2012/09/11/mark-zuckerberg-our-biggest-mistake-with-mobile-was-betting-too-much-on-html5/ 
:) - and in this case I think porting Sugar to Qt might be worth 
considering.


Should starting the effort to follow Wireshark et al and go Qt be 
part of the 2016 vision/mission?


Today the www.qt.io/company seems to be profitable, and PyQt is 
profitable GPL software, and survived Nokia's anti-gpl attack.


If we don't have anyone with links to the Qt Company in our networks, 
we can easily build up a relationship there! :)


As I delved into Alan Kay, it seems that squeak (which etoys is built 
on) has dried up, and now the leading libre non-web smalltalk is 
http://pharo.org


That community seems like a good case study in how to set up a free 
software project that harnesses finance:


http://pharo.org/community

http://association.pharo.org/web/about

http://consortium.pharo.org/

http://consortium.pharo.org/web/Membership

http://files.pharo.org/consultants/pharo-consultants.html

http://www.eventbrite.com/e/pharo-days-2016-tickets-22454533113

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


Re: [Sugar-devel] [DESIGN] Save as feature

2016-04-04 Thread Sam Parkinson

Hi Utkarsh,

I find the save as an interesting feature.  From my knowledge, it was 
previously built into Sugar, however it was removed due to it annoying 
people.  I don't know the exact reasoning, but here is what I think:


* When does somebody quit and activity?  Is it the right time to be 
asking them to title and describe it?
  - When the bell rings and the student want to go to Lunch.  Not the 
right time to ask to save stuff.
  - When the teacher wants to move on to an different activity.  This 
is defiantly not the right time - the "save as" feature is acting in 
opposition with the teacher
  - Those are the 2 most common times that I can think of.  Remember 
this is for learners.

  -> Therefore this is a bad time to ask this
  -> Therefore we will annoy people

* Will we get good quality titles and descriptions?
  - No, people are rushed and inconvenienced by the modal popup.  It 
stole their computer.

  ->  They are not in a good mindset to write titles.

We also see many other services migrating away from the traditional 
"save as" dialog on exit.  Eg, Google Docs uses an approach the same as 
Sugar rather than a "save as" dialog.  They set it to a default titles 
("Untitled document"), but you can then change that name eaisly.


Maybe we need think about what the problem this feature solves?  
Whatever it is, "save as" probably won't work.  We need to find an 
actual solution to user problems.


Thanks,
Sam


On Mon, Apr 4, 2016 at 9:38 PM, Utkarsh Tiwari 
 wrote:

Hi,
   Whenever we start an activity from homeview, it gets registered in
the Journal (through datastore.write()).

 I have inspected the activity.py file but there is someplace else
besides activity.py where the datastore is being modified(activity
instance is being added). I need to figure this out to implement the
"Save As" feature to intervene the datastore.write() call so that user
could provide the activity name. Could anyone please  point me in the
right direction?

Thanks,
Utkarsh Tiwari

On 3/22/16, Tony Anderson  wrote:

 Hi,

 I am not sure what you are asking. Read the excellent comment in
 activity.py. There are set_canvas, read_file, and write_file among 
other

 examples of functions in activity.py directly accessible by the
 sub-class. Normally, that activity is referenced by 'self'.

 Tony

 On 03/22/2016 12:02 AM, Utkarsh Tiwari wrote:

 Hi,

 Is there any way to get the currently active
 activity(sugar3.activity.activity -> class Activity()) instance ?

 I need this access to call a function of "Activity class" in
 activity.py to activate a feature I have integrated.

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


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


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


Re: [Sugar-devel] Screenshot feature [GSoC Project]

2016-04-02 Thread Sam Parkinson

Hi Utkarsh,

The modal popup looks very nice.  We actually need to make an api for 
modal popups so that we can replace the sub menus (eg. in journal 
palettes) with modal popups.  That might interest you.


Anyway, how does this feature work in with the current screenshot 
feature?  You can already take a screenshot by going into the frame, 
clicking the display button and then clicking the screenshot button.  
(There is also the Ctrl-1 keyboard shortcut).


Why do you add a modal popup?  Doesn't the journal already let users 
rename the screenshot?  Couldn't the screenshot taken notification be 
less obtrusive (eg, add a notification under the journal icon, similar 
the way that activity notifications work)?


Thanks,
Sam

On Sun, Apr 3, 2016 at 8:39 AM, Utkarsh Tiwari 
 wrote:

Hi,
I have developed the working prototype of the "screenshot popup
feature" wherein user could modify the name of the captured
screenshot. Here is the demonstration of it's working ->
http://imgur.com/0e1iq4v

Please let me know you suggestions so that I can push it's PR soon :)

Thanks,
Utkarsh Tiwari

On 3/30/16, James Cameron  wrote:

 On Tue, Mar 29, 2016 at 01:50:33PM +0530, Utkarsh Tiwari wrote:

 Hi,
 This feature is expected to push a popup on 1 keypress. So 
this

 should happen almost everywhere- home view, running activities,
 settings view, etc.


 The Alt+1 accelerator happens everywhere already.


 For the activities..I have figured out where I need to make the
 changes.  But for the home and other windows, could anyone please
 suggest where I need to make changes?


 By using a floating icon like the paste clipboard icon, you would
 only need to do it in one place.

 Where's your feature page?

 Please write it and add it to 0.110/Feature_List, see the red link 
on

 http://wiki.sugarlabs.org/go/Features

 --
 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
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Need help with sugar-toolkit-gtk3

2016-03-21 Thread Sam Parkinson

If it is in your subclass, you can call the function, eg.

   self.method_of_activity_class()

Thanks,
Sam

On Tue, Mar 22, 2016 at 3:02 AM, Utkarsh Tiwari 
 wrote:

Hi,

Is there any way to get the currently active
activity(sugar3.activity.activity -> class Activity()) instance ?

I need this access to call a function of "Activity class" in
activity.py to activate a feature I have integrated.

Thanks,
Utkarsh Tiwari
___
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] Proxy Settings Feature in the recent versions of sugar

2016-03-15 Thread Sam Parkinson

Network manger doesn't have an api to configure proxy.

From the arch wiki:

>
> Automation with network managers
> NetworkManager cannot change the environment variables.

On Wed, Mar 16, 2016 at 7:37 AM, Gonzalo Odiard  
wrote:

Are you using NetworkManager API to configure the proxy?

On Tue, Mar 15, 2016 at 5:27 PM, Manash Raja  
wrote:

Dear James,

Regarding moving to src/jarabe/main.py , as far as I know, there 
isn't a direct way for python to set the required environment 
variables (http_proxy) and make it accessible to all other 
processes. The various method in python for editing the environment 
variables, keeps the changes limited to only that process or its 
child processes. Hence if the implementation is done through 
main.py, other files to run bash scripts have to be introduced. So, 
to me it seems exporting proxy settings to the environment variables 
at /usr/bin/sugar is a fine implementation. Though we can use 
variables to reduce gsettings calls in that file.


I would definitely look at the branch based development from next 
time.


Tell me if I shall reduce gsettings call in /usr/bin/sugar file and 
continue with the present implementation or look for any other 
implementation that you suggest. Once the feature is final for 
merge, I will collapse/rebase the commits with new commit message 
and update the PR.


Thanks.

Regards.
Manash Pratim Das (ManashRaja)

On Tue, Mar 15, 2016 at 10:39 AM, James Cameron  
wrote:

Thanks, that's interesting.

Your /usr/bin/sugar (aka bin/sugar.in) will run gsettings many 
times,

and this is inefficient, causing unnecessary delay during startup.
Perhaps if you move this into src/jarabe/main.py which already uses
Gio.Settings?

You have worked on your master branch and the pull request is
associated with that branch.  That's unusual.  It is more common to
use a new branch with a name that explains the feature.  Make a note
of that for next time.

Your pull request has three commits; 09d363f, 682d0b2, 4fe1a2f.
Before merging, we will ask for these and later commits to be
collapsed, rebased, or re-written.  You may also combine and rewrite
the commit messages.  Then a push with --force will update the pull
request.

The http://wiki.sugarlabs.org/go/Features/Proxy_Settings page is on 
a

Wiki, and any change can be rolled back.

On Tue, Mar 15, 2016 at 09:58:31AM +0530, Manash Raja wrote:
> Hi,
>
> I thank you all for the guidance.
>
> I modified my PR as per your suggestions and now the 
implementation of the

> proxy feature is far better.
> @Sam, as you suggested, I have now completely removed the need of 
re-writing

> "proxy.sh" every time the settings changes and am using
> "org.gnome.system.proxy" schemas. Now "/usr/bin/sugar" is 
hard-coded to read
> the proxy settings from "org.gnome.system.proxy" and export it to 
the
> environment variables required for the proxy settings to be 
available easily.

>
> @Gonzalo, thanks for the link to that important patch from Manuel 
Quiñones. And
> @James, I have changed my "view.py" and "model.py" files to go 
with  Manuel
> Quiñones' way of setting the "org.gnome.system.proxy" schemas 
via GSettings.
> This has hence removed the dependence on polkit for file write 
permissions and
> made us do away with extra files like "set_proxy.py" for running 
root permitted

> scripts.
>
> Also I have removed the "logout.sh" script as now I am using the 
pre-made
> "require-restart" feature present in "sectionview" which asks the 
user for

> restart.
>
> Also @James, shall I now therefore submit the GUI changes and the 
changes you
> proposed to for this update in the features page? 
[1]wiki.sugarlabs.org/go/

> Features/Proxy_Settings
>
> Here is the patch I submitted: 
[2]https://github.com/ManashRaja/sugar/commit/

> 4fe1a2fea7f37d036331c1a1ae736c88cc29d62d
>
> Thanks
> Regards
> Manash Pratim Das
>
> On Mon, Mar 14, 2016 at 8:03 AM, James Cameron 
<[3]qu...@laptop.org> wrote:

>
> On Sun, Mar 13, 2016 at 11:18:46PM -0300, Gonzalo Odiard 
wrote:
> > On Sun, Mar 13, 2016 at 11:09 PM, Jerry Vonau 
<[1][4]m...@jvonau.ca> wrote:

> >
> > > Yea that has roots to the old ActivityCentral fork, any 
reason
> > > why this has not been 'upstreamed' from 
OneEducation(OLPC-AU) to

> > > SugarLabs?
> >
> > Yes. Was not accepted by sugar upstream.
>
> Let's have another go then.  See what the objections are from 
the

> current set of developers.
>
> > I upstreamed all that was possible, the only changes that 
were
> > developed just for OLPC-AU were the changes needed to deal 
with the

> > complex network environments common in Australian schools.
>
> This disease is spreading.
>
> --
> James Cameron
> [5]http://quozl.netrek.org/
> ___
> Sugar-devel mailing list
> [6]Sugar-devel@lists.sugarlabs.org
> 

Re: [Sugar-devel] External Display on Sugar

2016-03-15 Thread Sam Parkinson



On Wed, Mar 16, 2016 at 12:03 AM, Gustavo Duarte <gus.dua...@gmail.com> 
wrote:

Hi Sam,

I'm not sure if I'm understand this sentence:

>>> So maybe you are limited to mirroring the displays?

You means, the only option in Sugar is the mirroring display mode, is 
it right ?


Yes.  If the sugar shell supported multi-display mode, there would need 
to be code in the shell.  But there is not.


In comparison, surely mirroring displays is just handled by X11 or 
something?




Thanks.


On Mon, Mar 14, 2016 at 5:28 PM, Sam Parkinson 
<sam.parkins...@gmail.com> wrote:

Hi Gustavo,

On Tue, Mar 15, 2016 at 12:55 AM, Gustavo Duarte 
<gus.dua...@gmail.com> wrote:

Hi all,

On Sugar 0.107 on Ubuntu running on a "standar'" laptop, when 
connect an

external monitor to HDMI port, the Desktop AREA is only ONE.

One part of the Desktop area is showed on a display laptop an other 
part

is showed on external monitor.

I would like to have two Desktop areas, one to be showed on laptop
display and the other on external monitor.


In Ubuntu, i can achieve this setup running a command like:

xrandr --output HDMI1 --auto --right-of eDP1


When I run this command in Sugar, the external monitor turn ON, but 
I

have only one Desktop AREA.

Is it possible configure Sugar to have two desktop areas, when an
external monitor is connected ?


The Sugar code deals with the window management, and doesn't have 
any support for the idea that there could ever be 2 activities on 
the screen at once.  So maybe you are limited to mirroring the 
displays?


Thanks,
Sam




Thanks in advance.



___
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] Flash on Browse Activity - Ubuntu

2016-03-14 Thread Sam Parkinson

Hello!

Please report bugs for the webkit2 version of browse!  It is in 
development, and lots of things are not right (lack of long-press to 
open palette, the back button palette).


Note the the webkit2 version of browse specifically requires WebKit2 
2.11.X or higher.  Saddly, 2.12 has not been released, so there is no 
stable webkit2 version that browse is built to run against.


Anyway, WebKit2 uses a multiprocess model.  And this extends to the 
plugins running in a seperate process, so that it supports Gtk2, Gtk3 
and every other type of plugin.


Thanks,
Sam

On Tue, Mar 15, 2016 at 3:21 AM, Gustavo Durte <gus.dua...@gmail.com> 
wrote:
Ahh, my mistake, i thought it was gtk2 based, since flash is working 
there.


I understood that flash didn't work because, flash plugin is 
developed on GTK2 and Browse webkit based is developed on GTK3 ?



So i wonder why Flash plugin works with Webkit2 and not with Webkit ?

Regards.

PS: Off course we are going to collaborate in the test, we'll report 
any bug found.


On 03/14/2016 11:46 AM, Gonzalo Odiard wrote:
Webkit2 is not a gtk2 version, is a version using webkit2 instead of 
webkit.
The port is advanced, but not ready. If you plan use it, please help 
to test all the functionalities,

and finish the port. Who is working on that is Sam Parkinson.

Gonzalo


On Mon, Mar 14, 2016 at 11:03 AM, Gustavo Duarte 
<gus.dua...@gmail.com> wrote:

Hi all,

We installed  GTK2 version 
(https://github.com/sugarlabs/browse-activity/tree/webkit2), flash 
works very well, we are testing and until now, all is going fine.


Thanks.



On 3/1/16 7:35 PM, James Cameron wrote:

On Tue, Mar 01, 2016 at 07:26:53PM -0300, Gustavo Duarte wrote:
If I'm understanding you well, the only way I have at this time, 
is

try with Browse GTK2 version ?
I couldn't begin to speculate.  Sounds like an interesting 
challenge

that would have no ongoing value moving forward.



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




--
Gonzalo Odiard



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


Re: [Sugar-devel] External Display on Sugar

2016-03-14 Thread Sam Parkinson

Hi Gustavo,

On Tue, Mar 15, 2016 at 12:55 AM, Gustavo Duarte  
wrote:

Hi all,

On Sugar 0.107 on Ubuntu running on a "standar'" laptop, when connect 
an

external monitor to HDMI port, the Desktop AREA is only ONE.

One part of the Desktop area is showed on a display laptop an other 
part

is showed on external monitor.

I would like to have two Desktop areas, one to be showed on laptop
display and the other on external monitor.


In Ubuntu, i can achieve this setup running a command like:

xrandr --output HDMI1 --auto --right-of eDP1


When I run this command in Sugar, the external monitor turn ON, but I
have only one Desktop AREA.

Is it possible configure Sugar to have two desktop areas, when an
external monitor is connected ?


The Sugar code deals with the window management, and doesn't have any 
support for the idea that there could ever be 2 activities on the 
screen at once.  So maybe you are limited to mirroring the displays?


Thanks,
Sam




Thanks in advance.



___
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] Proxy Settings Feature in the recent versions of sugar

2016-03-13 Thread Sam Parkinson

Hi Manash,

I don't know why the feature page says 100% complete.  Maybe it was 
included in sugar-dextrose which IDK where the code is for nowdays.


Anyway, it it looking good.  Overall, I saw it and thought that 
manually setting environment variables was very messy.  But consulting 
the archlinux wiki told me that that is the way to do it, and that this 
is not handled by network manager or anything :(.


Overall handwavy comment:  currently we have to rewrite the proxy.sh 
script every time we change the proxy.  Why don't we hardcode the 
proxy.sh script to read from some gsettings (eg. gsettings get 
org.sugarlabs.network.http-proxy) and then just change the gsettings in 
the control panel.  That would probably reduce the amount of code, and 
remove the whole polkit thing.


Anyway, it would be good it anybody who knows more about proxies could 
comment!


Thanks,
Sam

On Sun, Mar 13, 2016 at 5:43 PM, Manash Raja  
wrote:

Hi,

The college Internet connection that I have goes through a proxy 
server. I am an interested developer as well as a sugar user along 
with my brother in school. Even though there is a feature page for 
proxy setting ( https://wiki.sugarlabs.org/go/Features/Proxy_Settings 
), it seems that the settings are not available in the recent 
versions of sugar. So, I created the settings feature and sent a PR ( 
https://github.com/sugarlabs/sugar/pull/665 ).


I want guidance on how should I proceed further. I mean, what about 
the feature page which says the feature is 100% complete for a 
particular version and yet is not available on the recent release? 
Also, shall I continue with the implementation I sent in the PR as 
that would be more comfortable for me, and hence would take less time 
for the feature to get incorporated in the latest verrsions of sugar, 
than to get the previous implementation from the features page?



Thanking you
Regards
Manash Pratim Das
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Need help regarding creating a new Activity

2016-03-12 Thread Sam Parkinson

Hi Manash,

There isn't a tutorial on the developer site for making a python 
activity.  But don't worry, most of the activities are written in 
python.


We use GTK+3 [1] as the toolkit.  We have some api docs for out own, 
for our "sugar3" toolkit module [2].


Try modifying an existing python activity to see how things work [3].

There is also the MYOSA guide [4], though IDK how up to date it is.  
Feel free to write something up to contribute for the developer.slo 
site!


Thanks,
Sam


[1]  http://python-gtk-3-tutorial.readthedocs.org/en/latest/
[2]  http://people.sugarlabs.org/sam/
[3]  https://github.com/samdroid-apps/bibliography-activity
[4]  http://en.flossmanuals.net/make-your-own-sugar-activities/index/

On Sun, Mar 13, 2016 at 6:47 AM, Manash Raja  
wrote:

Hi,

I am Manash Pratim Das, I am interested to convert a learning app of 
mine to sugar activity so that more students like me can benefit from 
it. The app is in python but the tutorial on creating a new activity 
- https://developer.sugarlabs.org/activity.md.html , shows how to 
make an activity in html, js and css.


So, I want to know how can an activity be made in python and where 
can I find a tutorial for it. If it is supported, but there isn't a 
tutorial for it on the sugar wiki, then I would like to volunteer for 
writing a tutorial for it after I learn it.


Also my app will put up notifications time to time, so is there any 
pre-made framework or GUI style that I shall follow for notifications?


Thanks

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


Re: [Sugar-devel] Gtk.TreeView Error

2016-03-12 Thread Sam Parkinson



On Sat, Mar 12, 2016 at 10:11 PM, Utkarsh Tiwari 
<iamutkarshtiw...@gmail.com> wrote:

Thank you for those docs' references.

I was talking about this documentation -> 
http://www.pygtk.org/pygtk2reference/class-gtktreeview.html#method-gtktreeview--set-cursor-on-cell


That is a reference for pygtk.  Pygtk is the gtk2 api only.

Sugar uses Gtk+3 (via gi repository), which has undergone ~5 years more 
development.  I imagine that this is a point that the old and new have 
diverged.




Thanks,
Utkarsh Tiwari



On Sat, Mar 12, 2016 at 4:26 PM, Sam Parkinson 
<sam.parkins...@gmail.com> wrote:

Hi Utkarsh,

I have been using the Python Gi Api Reference for the past few 
years, and it has served me well.  According to their page on the 
subject [1], there is not get_cell_renderers method.


If you are trying to grab focus on a specific cell, maybe look for 
the row first?  Each column should only have 1 cell renderer anyway.


Thanks,
Sam

[1]  
http://lazka.github.io/pgi-docs/index.html#Gtk-3.0/classes/TreeViewColumn.html#methods



On Sat, Mar 12, 2016 at 8:59 PM, Utkarsh Tiwari 
<iamutkarshtiw...@gmail.com> wrote:

Hi,
 I am trying to grab focus of a specific cell in a Gtk.TreeView 
instance through this technique -> 
https://gist.github.com/iamutkarshtiwari/a826625eb0ebcd63c91c


But I am getting this error-> " 'TreeViewColumn' object has no 
attribute 'get_cell_renderers' "
though the Gtk.TreeViewColumn official docs mentions the 
get_cell_renderers() function.


Could anyone here please help me with this?

Thanks,
Utkarsh Tiwari


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


Re: [Sugar-devel] Gtk.TreeView Error

2016-03-12 Thread Sam Parkinson

Hi Utkarsh,

I have been using the Python Gi Api Reference for the past few years, 
and it has served me well.  According to their page on the subject [1], 
there is not get_cell_renderers method.


If you are trying to grab focus on a specific cell, maybe look for the 
row first?  Each column should only have 1 cell renderer anyway.


Thanks,
Sam

[1]  
http://lazka.github.io/pgi-docs/index.html#Gtk-3.0/classes/TreeViewColumn.html#methods


On Sat, Mar 12, 2016 at 8:59 PM, Utkarsh Tiwari 
 wrote:

Hi,
 I am trying to grab focus of a specific cell in a Gtk.TreeView 
instance through this technique -> 
https://gist.github.com/iamutkarshtiwari/a826625eb0ebcd63c91c


But I am getting this error-> " 'TreeViewColumn' object has no 
attribute 'get_cell_renderers' "
though the Gtk.TreeViewColumn official docs mentions the 
get_cell_renderers() function.


Could anyone here please help me with this?

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


Re: [Sugar-devel] GSOC 2016 query regarding project : Redesign and recreate Sugar Labs webappearance

2016-03-10 Thread Sam Parkinson

Hello,

I didn't write the project idea, but I did argue with lots with people 
about the website before.


Really I think that it is not about how the website looks, it is about 
how the users experience the website.  So right now, we have a website 
with pictures right.  But we don't have easy tools to create 
sugar-on-a-stick liveusbs.  We don't have any evil email stealing 
things [1] that let's us put people through email series so that they 
become engaged with Sugar a convert from a random teacher/student using 
it to somebody involved in the community.  Maybe making a better native 
app to do the sugar-on-a-stick creation, and creating an email 
mini-course that we introduce people to sugar with could be a great 
project?


Thanks,
Sam

[1]  https://www.mautic.org/

On Fri, Mar 11, 2016 at 1:20 AM, Neelansh garg  
wrote:

hi,
i went through the Sugar labs Gsoc 2016 ideas page and want to 
contribute to the project "Redesign and recreate Sugar Labs 
webappearance ".


if somebody can tell me more about the project and sites that will be 
redesigned it would be really helpful


Thanks
neelansh

On Mon, Mar 7, 2016 at 1:13 PM, Neelansh garg  
wrote:

Hi,

I’m Neelansh Garg. I am studying B.Tech computer science(2nd year) 
at USIT (IP university ,Delhi). I have gone through the Sugar labs 
Gsoc 2016 ideas page and want to contribute to the project "Redesign 
and recreate Sugar Labs webappearance ".


I have a good knowledge of javascript, HTML, CSS, bootstrap and 
material design. I have completed web development course including 
javascript, html, css, Django, python.


currently implementing a smaller version of quora in django

I also did some other projects:

2048 game clone: https://github.com/neelansh/2048

Web crawler to download all the images form html and css of a 
webpage : https://github.com/neelansh/CrawlerToGetImagesFromWebpages


 Gradebook.com : a site to show gradebook of university students 
using php and bootstrap : https://github.com/neelansh/Gradebook/


I would like to contribute to redisining and recreating sugar labs 
web appearence. Please tell me where should i get started

Please recommend things I should include in my GSOC 2016 proposal ?

and should i send a draft copy of proposal to you for review?

Thanks

Neelansh (ircname = neelansh)



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


Re: [Sugar-devel] trac breakage

2016-03-09 Thread Sam Parkinson

Hi Walter,

The immediate issues with trac (and also socialhelp) sending emails is 
a configuration issue.  Right now it is a horrible configuration where 
it sends emails via smpt.sugarlabs.org, but the password that both 
services use for that (socialhelp account on sunjammer) expired.


Really, the mail situation could probably fixed by adding a "postfix" 
container and letting anybody on freedom link to it and use it.  The 
password thing was probably not the best setup, sorry.


Other than trac not sending emails, was there anything else?  Or just 
looking for something a little more shiny?


Thanks,
Sam

On Wed, Mar 9, 2016 at 8:19 AM, Walter Bender  
wrote:
I was going to bring this up at the last SLOB meeting but we ran out 
of time. We have serious problems with b.sl.o regarding user 
management. While I can assign new users unmoderated status, I cannot 
actually enable their accounts since I cannot access the user page 
(it is so full of spam users that it times out before loading -- even 
though Sam increased the timeout a few months back). The verification 
by email is broken, hence the need to find a different way to 
validate.


My recommendation is that we look into alternatives to trac. We can 
keep the old system running as an archive, but it seems time to move 
on. (I've been told -- although I have not confirmed -- that trac is 
not regularly maintained upstream any more, which would be all the 
more reason to move on.)


Does the sysadmin team have any recommendations? Any thoughts from 
the devel community?


regards.

-walter

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

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


Re: [Sugar-devel] Fedora 22 destroys Gtk.Menu based palettes

2015-05-17 Thread Sam Parkinson
Hi Iain,

Iain Brown Douglas wrote:
 On Sun, 2015-05-17 at 00:34 -0300, Gonzalo Odiard wrote: Ouch.
 Too bad nobody reported this before. Ouch, ouch,

 http://lists.sugarlabs.org/archive/soas/2015-February/002762.html


Thanks for reporting that and sorry for not fixing it then.

I (personally) have now subscribed to the SoaS ML and will attempt to switch to 
Fedora's randwhile branch.

Hopefully through improving communications we as a community can fix the 
regressions before the next SoaS release!

Thanks,
Sam

 :)

 Iain I remember a similar error fixed
 by b9d6b628a98fc17f5e92a344450b6336f1a2b2ce
 We don't want invest more time in the Gtk.Menu palettes,
 but would be great find a fix to ship Sugar in F22 on shape.


 Gonzalo



 On Sat, May 16, 2015 at 10:27 PM, Sam P. sam.parkins...@gmail.com
 wrote:
 Hi All,
 
 
 As per usual, this new Gtk release breaks parts of sugar.
 Interestingly it breaks the Gtk.Menu based palette system this
 time!  (Lucky we were having a design discussion about this a
 while ago)
 
 
 So how does it break the Gtk.Menu palettes?
 
 
 * They are now seizure inducing and change size when you move
 your mouse.
 
 * They have lots of extra borders now
 
 * They always position downwards.  Even if that means the
 palette will be just 100px tall - they go downwards
 
 * They don't position correctly to keep the connected look
 between the frame buttons and the palette.
 
 
 I have done a quick screen capture that demonstrates all of
 these. [1]
 
 
 So I not looked into what would be needed to solve this,
 however, do we really want to invest more time in the Gtk.Menu
 system?  From the previous design discussion (Palette
 Animations thread), we could just use a modal.  I think that
 that would be a much more simple solution to implement - but
 might not go well with our release cycle.
 
 
 Thanks,
 
 Sam
 
 [1]  https://vid.me/hfx4
 




 -- 
 Gonzalo Odiard

 SugarLabs - Software for children learning 

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

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


Re: [Sugar-devel] [Marketing] New Fedora Spins Site

2015-05-13 Thread Sam Parkinson
Hi Peter,

Peter Robinson wrote:
 Hi Sam, Gonzalo et el,

 I've worked with the Fedora web team to update it some based partially
 on Sam's details below.

 Details are here:
 http://spins.stg.fedoraproject.org/en/soas/

 Let me know of any feedback, I personally think it looks really fab!

Yeah, it does.

Is there a way to have different headers?  Some of the headings (esp. 
Education) are not aappropriate for Sugar.

Thanks,
Sam


 Peter On Sat, May 9, 2015 at 12:49 PM, Sam P. sam.parkins...@gmail.com 
 wrote: The new site looks very nice!!!

 Here is my attempt at some featured applications:

 Understanding and Creating Content
 ---

 * Write.  Make a story, poem, report or anything with write.  Use formatting
 tools to add images or colors.  Work together with friends to write together
 in real time.
 * Labyrinth.  Put complex ideas on the computer.  Use Laybrinth activity to
 mind map about new concepts, to explore new ideas or to reflect.
 * FotoToon.  Use images and text to create comic strips.  FotoToon provides
 many options to add motion, speech and though to creations.
 * Paint.  Paint provides to tools to make artistic creations.  Use brushes,
 stamps, shapes, text and images to create beautiful pictures.

 Learn by Doing
 --

 * Turtle Blocks.  Learn programming concepts with snap together blocks.
 Create art, animations and interactive programs in a graphics focused
 environment.
 * Physics.  Create real life simulations using shapes, motors, ropes and
 bolts to explore physics in the world.  Work collaboratively on your
 simulation with friends.

 Getting Technical
 -

 * Pippy.  Program applications in a simple yet powerful environment.  The
 Python back end provides unlimited opportunities within a simple language
 and environment.
 * Develop.  Make Sugar activities within Sugar itself.  Develop provides
 templates for new games, native and web activities as well as simple
 environment to edit existing activities.

 Exploring the Wide World
 -

 * Browse.  Access the internet with Browse activity.  Bookmark sites to
 research with friends and save sessions to the Journal to keep organized
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Palette Animations

2015-05-13 Thread Sam Parkinson
Hi Gonzalo,I have a very different opinion to you.  I think the current palette system works well for our needs.  I think it has very little bugs considering it is so important, most bugs in the query you sent were not related to the actual palette system just related to palete content.I also think gtk popovers are not what we need.  Gtk popovers require Gtk 3.12, and sugar seems to require compatibility with 3.6 (f18).  The gtk window based system is very flexiable;  palettestooltipstoolbar popovers all in 1!  I would also say we dont want the style of animation gnome has implimented.  Even if we did, we could impliment it very quickly ourselfs as we have a more abstracted animation system and their animations require no size or other tricky info.  (the biggest issue with my patch is reliabaly getting the width and height for the animation to animate to)I agree the gtk menu based system is pretty fail through.  Maybe we should look at this as a design issue not a techinical one though.  Why does it need to expand outwards with submenues?  Could it expand downwards instead (like in the gnome powerusernetwork palette)?Thanks,SamGonzalo Odiard wrote:I would not invest work in improving the palette animations for the following reasons:* Right now, we have two different palettes implementations. The old, based in Gtk.Menu,used only when we need submenus (Journal, Clipboard) and the new.Was proposed remove the old implementation [1] * The palette code is a nightmare, and now Gtk have the popovers,that provide a similar functionality [2]* There are a lot of bugs related to palettes [3]* Popovers will implement animations [4]* We can remove a lot of code. Remove code is better than write code :) If I had free cpu cycles, I would invest in research if is possible themeGtk popovers to look as our palettes, and if there are any limitation than could be a blocker. Gonzalo[1] http://bugs.sugarlabs.org/ticket/4768[2] https://developer.gnome.org/gtk3/stable/GtkPopover.html[3] http://bugs.sugarlabs.org/query?status=acceptedstatus=assignedstatus=newstatus=reopeneddescription=~palettecol=idcol=summarycol=statuscol=typecol=prioritycol=milestonecol=componentorder=priority[4] https://plus.google.com/+WorldofGnomeOrg/posts/Tf3xBLZi13E?pid=6118354207602136850oid=112026213399155142823On Tue, May 12, 2015 at 5:23 AM, James Cameron qu...@laptop.org wrote:Gday Sam,

Im fine with that as long as the animations can be configured off for
old hardware.

I think the official video was artistic work, not an implementation.

--
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel
-- Gonzalo OdiardSugarLabs - Software for children learning 
Sent Using Firefox OS
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [DESIGN] optional automatic updates

2014-08-06 Thread Sam Parkinson
Hi,

On Wed, Aug 6, 2014 at 10:34 AM, Martin Abente 
martin.abente.lah...@gmail.com wrote:

Hello everyone,

 A few development cycles ago, dsd added a useful new feature: automatic
 activities updates. This has been of great help in deployments such as in
 Australia. However, because the current implementation will always update
 or install activities (when working in automatic mode), some deployments
 might be unable to use this feature. A real case scenario is when some of
 the activities are too big for massive activities updates.

 That sounds like a great idea! I think that automatic updates of any scale
can only be positive for sugar!

I don’t know a lot about the way the microformater thing works, but from
what I’ve seen it seems to be pretty network intense. It seems to make 1
HTTP request per activity! This seems to be a lot of overhead! Maybe we
could make a proxy thing that sits on the same server and works like this:

Client  --List of activities--  | Proxy --Individual activity
requests-- Server |
 |
   |
  Slow Internet  |  Fast Connection (Same
Machine)|

Also is the server meant to be mirrored by schools (on lan) or deployments?
A school version could reduce network traffic even more.

It looks like a good change :)

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


Re: [Sugar-devel] [Systems] Broken ASLO mirrors

2014-08-06 Thread Sam Parkinson
We really should perge the mirrors list of dead mirrors.
http://mirrors.sugarlabs.org

Maybe we should contact arrnet (the one in question) - they might fix it if
you ask nicely :)

I will try to setup a mirror myself - I have like 1tb unused internet on my
new aslo server (digitalocean in Singapore).
On Aug 7, 2014 7:50 AM, Ignacio Rodríguez igna...@sugarlabs.org wrote:

 Sebastian, did you remember in sugar camp?

 We got the same problem..

 You fixed it?

 Or that was automatic?

 Ignacio Rodríguez


 2014-08-06 18:44 GMT-03:00 Sebastian Silva sebast...@fuentelibre.org:

 Hi,
 I have experienced the same thing. Not sure it was the same mirror.

 Regards,
 Sebastian

 El mié, 6 de ago 2014 a las 2:47 PM, Martin Abente 
 martin.abente.lah...@gmail.com escribió:

 Hello everyone,

 Has anybody else noticed that some ASLO mirrors are broken?

 In example:

 The URL http://download.sugarlabs.org/activities/4040/finance-11.xo,
 sometimes redirects to
 http://mirror.aarnet.edu.au/pub/sugarlabs/activities/4040/finance-11.xo
 which is broken.

 Ideas?

 tch.


 ___
 Systems mailing list
 syst...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/systems



 ___
 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] New ASLO

2014-08-03 Thread Sam Parkinson
Hi Gonzalo

On Aug 1, 2014 7:14 AM, Gonzalo Odiard godi...@sugarlabs.org wrote:
 * scalability: some things work with 10 items but not 500.
 ASLO have almost 500 activities right now.
 By example, a single json file for 500 activities is not a good idea,
 but a directory with a json file for every one can be better.
 Then a process can create a index json file with minimal informaton
 if needed collection from the others.

You are so right there!  I have split the activities into different files
now.  The whole site is made with Jekrll, a static preprocessor, so I made
an extension to that to generate the index json files.  I managed to break
a few things on the way so I will fix them.

 * design: i am not a designer, and there are very few hackers who are
also good designers.
 You are clearly a good hacker but need help with the design.
 IMHO (because I have said, I am not a designer) would be better make it
simpler,
 avoid the animations, background images, and put a white background.

Cool.  I will get rid of animations and background images, but what is
wrong with some color in the background?  I think it introduces a nice
contrast between the activity list and the activity data.  Anyway I've cced
Manuq (he is still the design guru?).

Sam

 On Wed, Jul 30, 2014 at 6:34 PM, Sam Parkinson sam.parkins...@gmail.com
wrote:

 Hi,

 Here is my kind of progress report on the new ASLO:

 * Updater - https://github.com/sugarlabs/sugar/pull/389
 * Web Interface is faster -http://www.aslo.cf
* The blog now has a tutorial on adding your activity -
http://www.aslo.cf/blog/adding-your-activity/
 * New login system, with XO avatars

 Anyway, I'd really appreciate feedback.  Just a few questions:

 * Does everyone hate the blog?
 * Is it nausea inducing?
 * Is it really hard to use?
 * Does anyone know the internals of trac?  Somebody thought it would
be cool to integrate it with bugs.sugarlabs.org and I agree.
 * Does it crash a XO1?  XO1.5?  XO1.75?  It doesn't crash an XO4 =)

 Come on - ...this is a change that deserves be discussed as a feature
(Gonzalo).

 Sam
 http://www.aslo.cf




 --
 Gonzalo Odiard

 SugarLabs - Software for children learning
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] New ASLO

2014-07-30 Thread Sam Parkinson
Hi,

Here is my kind of progress report on the new ASLO:

* Updater - https://github.com/sugarlabs/sugar/pull/389
* Web Interface is faster -http://www.aslo.cf
   * The blog now has a tutorial on adding your activity -
http://www.aslo.cf/blog/adding-your-activity/
* New login system, with XO avatars

Anyway, I'd really appreciate feedback.  Just a few questions:

* Does everyone hate the blog?
* Is it nausea inducing?
* Is it really hard to use?
* Does anyone know the internals of trac?  Somebody thought it would be
cool to integrate it with bugs.sugarlabs.org and I agree.
* Does it crash a XO1?  XO1.5?  XO1.75?  It doesn't crash an XO4 =)

Come on - ...this is a change that deserves be discussed as a feature
(Gonzalo).

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


Re: [Sugar-devel] Notification without activity instance

2014-07-20 Thread Sam Parkinson
Hi,

Three different ideas.

Number 1:
--

Maybe you should do this like the (non-social) help, and not display the
option for activities that don't have a form.  I'm not sure how possible
that would be; depends on your architecture.

Number 2:
--

Why don't you just do like what happens in the journal?

When the journal can't find any items it replaces the listview with a label
that says Can't find anything :P (okay, not exactly).

Number 3:
--

I think Walter made a pull request to add a service to show notification
banners (like you want).  Here is the pull request  discussion:
https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/139


On Sun, Jul 20, 2014 at 5:32 PM, Prasoon Shukla prasoon92.i...@gmail.com
wrote:

 It's actually just like view source - you can be running any activity and
 upon pressing the shortcut, the social-help activity is launched. However,
 if there is no category (in the discourse forum) for currently active
 activity, then we just want to display a notification saying so.

 I really would like help with this - I'm stuck at this point.
 ᐧ


 On Sun, Jul 20, 2014 at 12:04 AM, Gonzalo Odiard godi...@sugarlabs.org
 wrote:


 On Sat, Jul 19, 2014 at 3:07 PM, Prasoon Shukla prasoon92.i...@gmail.com
  wrote:

 Hi all

 I've had this problem for some time now and I couldn't find a solution
 to it.

 The use case is like this: The user presses a keyboard shortcut
 (alt+shift+c) to launch an activity. However, if a certain condition is
 met, we *don't* launch the activity and instead we show the user a
 notification in the currently active/running activity. I want to show a
 notification and I *don't* have the activity instance on which I can
 attach a NotificationAlert.


 Are you trying to start one activity from another activity?
 What code you use to start the activity?

 Gonzalo



 ___
 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] New ASLO categories

2014-07-17 Thread Sam Parkinson
Thanks for the feedback!  Maybe:


   - game
   - programming
   - robot (or maybe just programming?)
   - internet
   - science
   - maths
   - geography
   - documents
   - music
   - media
   - art
   - tools
   - system


Sam


On Sun, Jul 13, 2014 at 12:21 AM, Flavio Danesse fdane...@gmail.com wrote:

 Media players
 robotics


 2014-07-12 9:56 GMT-03:00 Walter Bender walter.ben...@gmail.com:

 We ended up needing something for documents. probably want music, visual
 arts/media?

 -walter


 On Sat, Jul 12, 2014 at 6:53 AM, Sam Parkinson sam.parkins...@gmail.com
 wrote:

 Hi,

 I've been working on some categories for the new ASLO, what do you think
 about these?


- game
- programming
- internet
- science
- maths
- geography
- office
- tools
- system


 I thought they were nice and simple, and they go well with icons (check
 it out on http://aslo.cf/ ).  But I think it is important we discuss
 these :)

 Also in new ASLO; there are lots more activities! (thanks Walter!)  I
 have also made a tutorial on how to add your activities:
 http://aslo.cf/blog/adding-your-activity/

 Sam




 --
 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] error in passing image from pygame to js

2014-07-17 Thread Sam Parkinson
Hi,

What is in the JS logs (please run the activity and send me the activity's
logs)?  I had a look through the code being called to send that data back
to the JS side and saw nothing weird.

Also is your activity on a git repository?  I would like to have a look :)

Sam


On Wed, Jul 16, 2014 at 9:57 PM, Puneet Kaur puneet.gk...@gmail.com wrote:

 sure , thanks for informing


 On Wed, Jul 16, 2014 at 5:00 PM, Gonzalo Odiard godi...@sugarlabs.org
 wrote:

 I don't know about the js part, but would be better don't use pygame.
 We have a lot of problems with th interaction between pygame and gtk.
 Would be better use gstreamer.

 Gonzalo


 On Wed, Jul 16, 2014 at 8:07 AM, Puneet Kaur puneet.gk...@gmail.com
 wrote:

 yup, 1) I am getting the data to send

 2) the loop does stops as required

 3) self._client refers to the activity api in apisocket.py ( the
 function has been defined in apisoscket.py's activity api class)






 On Wed, Jul 16, 2014 at 4:15 PM, Sam Parkinson sam.parkins...@gmail.com
  wrote:

 Hi,

 Are you getting data to send?  Does the loop stop?

 Please give us the context (what is this self._client?).

 Thanks,
 Sam


 P.S.  Don't use `while quit_loop:`, use `while True` and `break` to
 quit the loop


 On Wed, Jul 16, 2014 at 5:08 PM, Puneet Kaur puneet.gk...@gmail.com
 wrote:

 *Hey,*

 *I am working on camera plugin for sugar cordova.*

 *I used pygame to click the user's photograph by the following code : *


 def camera(self,request):
 os.environ['SDL_VIDEO_CENTERED'] = '1'
 pygame.init()
 pygame.camera.init()
 screen=pygame.display.set_mode((640,480),pygame.NOFRAME )
 camlist = pygame.camera.list_cameras()
 if camlist:
 cam = pygame.camera.Camera(camlist[0],(640,480))
 cam.start()
 quit_loop=0
 base64data=None
 while quit_loop == 0:
 cam_image=cam.get_image()
 screen.blit(cam_image,(0,0))
 pygame.display.update()
 for event in pygame.event.get():
 if event.type == MOUSEBUTTONDOWN:
 data = pygame.image.tostring(screen,RGBA)
 base64data = base64.b64encode(data)
 #logging.error(base64 :\n %s,base64data)
  cam.stop()
 pygame.display.quit()
 quit_loop=1
 logging.error(got base64 image)
 self._client.send_result(request,base64data)




 *The issue is that I am not able to send data back to the javascript
 side from python side.*

 *I am attaching shell.log along if anyone wishes to have a look over
 it.*

 *would be nice if someone can help me know why am I not able to send
 the data to javascript side.*






 Regards,
 Puneet



 ___
 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




 --
 Gonzalo Odiard

 SugarLabs - Software for children learning



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


Re: [Sugar-devel] error in passing image from pygame to js

2014-07-16 Thread Sam Parkinson
Hi,

Are you getting data to send?  Does the loop stop?

Please give us the context (what is this self._client?).

Thanks,
Sam


P.S.  Don't use `while quit_loop:`, use `while True` and `break` to quit
the loop


On Wed, Jul 16, 2014 at 5:08 PM, Puneet Kaur puneet.gk...@gmail.com wrote:

 *Hey,*

 *I am working on camera plugin for sugar cordova.*

 *I used pygame to click the user's photograph by the following code : *


 def camera(self,request):
 os.environ['SDL_VIDEO_CENTERED'] = '1'
 pygame.init()
 pygame.camera.init()
 screen=pygame.display.set_mode((640,480),pygame.NOFRAME )
 camlist = pygame.camera.list_cameras()
 if camlist:
 cam = pygame.camera.Camera(camlist[0],(640,480))
 cam.start()
 quit_loop=0
 base64data=None
 while quit_loop == 0:
 cam_image=cam.get_image()
 screen.blit(cam_image,(0,0))
 pygame.display.update()
 for event in pygame.event.get():
 if event.type == MOUSEBUTTONDOWN:
 data = pygame.image.tostring(screen,RGBA)
 base64data = base64.b64encode(data)
 #logging.error(base64 :\n %s,base64data)
  cam.stop()
 pygame.display.quit()
 quit_loop=1
 logging.error(got base64 image)
 self._client.send_result(request,base64data)




 *The issue is that I am not able to send data back to the javascript side
 from python side.*

 *I am attaching shell.log along if anyone wishes to have a look over it.*

 *would be nice if someone can help me know why am I not able to send the
 data to javascript side.*






 Regards,
 Puneet



 ___
 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] New ASLO categories

2014-07-12 Thread Sam Parkinson
Hi,

I've been working on some categories for the new ASLO, what do you think
about these?


   - game
   - programming
   - internet
   - science
   - maths
   - geography
   - office
   - tools
   - system


I thought they were nice and simple, and they go well with icons (check it
out on http://aslo.cf/ ).  But I think it is important we discuss these :)

Also in new ASLO; there are lots more activities! (thanks Walter!)  I have
also made a tutorial on how to add your activities:
http://aslo.cf/blog/adding-your-activity/

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


Re: [Sugar-devel] Discussing a new development cycle

2014-07-06 Thread Sam Parkinson
Great idea!
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Browse: give sugar color to webpages

2014-07-06 Thread Sam Parkinson
Hi,

I'm writing a login system for the new ASLO.

I think that it would be cool to have peoples XO Colors attached to their
account (as their avatar).  It would also be nice to prefill the username
field with their sugar nick.

I propose a way to access this data through javascript in browse.  It
generates an object like this:

window.sugarUser = {nick: nickname, stroke: #ABCDEF, fill:
#123456}

(Here is my pull request:
https://git.sugarlabs.org/browse/mainline/merge_requests/14 )

I'm not sure how that goes down from a privacy standpoint.

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


Re: [Sugar-devel] activity icon in svg ?

2014-06-25 Thread Sam Parkinson
It is needed for the XO colors.  That is when the icons start to have the
same colors as your XO Person.

You can always embed an image as base 64 in a svg (just drag it in using
inkscape from memory).


On Wed, Jun 25, 2014 at 9:19 PM, Gonzalo Odiard godi...@sugarlabs.org
wrote:

 svg is needed


 On Wed, Jun 25, 2014 at 8:11 AM, Puneet Kaur puneet.gk...@gmail.com
 wrote:

 Hey,

 Just wished to ask that is it necessary for the activity icon to be in
 svg ? or we can also have it in png / jpg format ?






 Thanks,
 Puneet

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




 --
 Gonzalo Odiard

 SugarLabs - Software for children learning

 ___
 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] Sugar Web Activity Sound

2014-06-23 Thread Sam Parkinson
Hi Kevin,

Are you sure the api your using is compatible with gtkwebkit2 (the web
engine sugar uses)?

Try installing 'epiphany' (aka. Web) outside osbuild.  Epiphany also uses
gtkwebkit2 - so if it works in Epiphany it is a bug is sugar or osbuild.
(I wouldn't be surprised if it doesn't work - gtkwebkit2 is not as good as
firefox or chrome)

Sam
On Jun 23, 2014 7:53 PM, Kevin Kreuzer kevin.kreuze...@icloud.com wrote:

 Hello

 I am developing a Sugar Web Activity.
 I have installed osbuild on an Linux Fedora to have a full Sugar
 environment.

 In my application I want to include sounds. If I visit a website with the
 browser in Sugar I am able to play sounds. I have already written the code
 for the sound.
 This code looks like this:

 var backgroundmusic = new Audio();
 document.body.appendChild(backgroundmusic);
 backgroundmusic.src = „blabla.ogg
 backgroundmusic.play();

 Everything works perfectly fine if I start my application with Sugarizer
 in a Web Browser by double clicking on the index.html.
 But if I run my application on Sugar it doesn’t work. If have tried now
 for a few days and I am always getting the same result.

 Am I missing any configuration or is there something wrong with my
 installation?

 Thanks for the help
 ___
 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] ARM fork

2014-06-18 Thread Sam Parkinson
Hi Ryan,

Sugar already compatible with the XO 4 - a touch screen XO.

The XO 4 does have an onscreen keyboard which seems to work okay.

The XO 4 is also ARM.

I have no idea of the details of this implementation, but maybe you should
try it out, and submit your improvement for merging?  I think the on screen
keyboard is done at lower level then sugar; so maybe download an XO 4 image?

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


[Sugar-devel] Disable drag + drop in write

2014-06-17 Thread Sam Parkinson
Hi,

Is there a way to disable the ability to drag and drop text in Write?  The
touchpad on the XO seems to be really sensitive since it keeps dragging my
documents around the screen.  This is really annoying when you lose half
your assignment :0

Also a bit unrelated:
For GTK activities they only seem to save (please correct me if I'm wrong)
when you navigate away from the activity.  This is annoying when your XO
runs out of power and your still working on your assignment :)  Is there
any reason for this?

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


Re: [Sugar-devel] Fwd: Problems in installing sugar

2014-06-16 Thread Sam Parkinson
Hi

Is there a file '.lock' in your sugar build folder?  (Use 'ls -a')

If there is try removing it.

Sam
On Jun 16, 2014 7:17 PM, Abhay Sibal abhaysibal2...@gmail.com wrote:

 Hi!

  I am installing sugar on my laptop (HP 6730b 4GB RAM) on an Ubuntu 12.10.

  As mentioned on the developer site :

  *http://developer.sugarlabs.org/dev-environment.md.html
 http://developer.sugarlabs.org/dev-environment.md.html*.

  I am following the steps mentioned.

 However, after executing this command:


 *./osbuild pull*


 the following line is printed:

 abhay@ubuntu:~/InternWork/sugar-build$ ./osbuild pull
 *Another osbuild instance is running.*

 I tried *restarting* my computer and also used the following command:

 sudo rm -Rf sugar-build/

 to reinstall the package, but it did not help. The problem seems to be
 somewhere in a lockfile , which is not getting deleted.

 --Reffering lines 451-453 in the code:



 *if not check_lock():print(Another osbuild instance is
 running.)return False*

 Please guide me on this!

 Thanks,
 Abhay


 ___
 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] Show titles for bookmarks in read

2014-06-14 Thread Sam Parkinson
Hi,

I thought it is a bit weird that to see a bookmark title in read you have
to:

1) Click to go to the bookmark
2) Hover over the bookmark ribbon (moving your mouse 1/2 way across the
screen)

It is very annoying as it creates unnecessary friction between user and
activity.

I think it would be better to show them in the tool tip for the icons in
the bookmark list on the bottom of the screen.  Is there a reason we don't
currently?

Here is the pull request:
https://git.sugarlabs.org/read/mainline/merge_requests/5
Here is a picture:  http://oi61.tinypic.com/2cqe0k1.jpg

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


Re: [Sugar-devel] Help required with webservices

2014-06-08 Thread Sam Parkinson
Hi

On Jun 9, 2014 5:49 AM, Prasoon Shukla prasoon92.i...@gmail.com wrote:
 Now, the question. I've been told a few times to use the existing
webservices mechanism to store a user's session so that the user won't need
to login every time he opens the activity. However, there is no need for
it, IMO. The activity, as I've mentioned already, is a web browser, of all
things, and can happily store cookies so that users will be logged in every
time they open the activity.

I think people wanted a way to sign in automatically with out
registering.

So browse activity (or social help activity) can generate a:
* unique user id
* avatar from the users XO colors
* name (from sugar username)
* and maybe fake email to collect all the users notification and display
them in sugar
And tell this to the form software so it can automatically give them an
account and sign them in.

I also want to try and do something like this for the ASLO, so maybe we can
work together?

 So, what's the use of using the webservice mechanism in such a case?

If you want have a service in the journal to put files in the cloud.  Or of
you want to view files in the cloud :)

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


Re: [Sugar-devel] ASLO

2014-06-07 Thread Sam Parkinson
Hi,

NOTE: check out the cdn version of the site: http://aslo.cf/

On Mon, Jun 2, 2014 at 12:07 PM, James Cameron qu...@laptop.org wrote:

 On Sun, Jun 01, 2014 at 07:58:17PM +1000, Sam Parkinson wrote:
  I added a blog within the aslo page. What do you think? (here is the
  url if you don't want to scroll up: http://128.199.197.37/ )

 I don't think a blog is needed there.


OK, I probably needed to give that a bit of a rational.
It would be nice to have a blog for a bit of editorial content on the ASLO.
Many app stores have things like featured apps of the week and stuff and it
would be nice to have that - I could help write some.
It would be impossible to make it work for every sugar user (every lang...)
but it would be nice for some users.


 Make it faster, Make it faster.

Thanks for the tips :)
I have taken tried out many of them; and there has been noticeable
improvements in speed (~311kb vs ~700kb).

I also got a (free) domain (freenom is a good site :P) and tried out
cloudflare.  Try it out at http://aslo.cf/
They have some pretty evil js compression which made it a lot faster - but
since it broke some sloppy code I had to disable it - I will fix that so I
can get REAL FAST JS!!
Otherwise the performance is pretty similar (I think the biggest thing
cloudflare does is merge js files automatically - which I am doing already).
Supposedly clouldflare takes load off your server; I am waiting for my
dashboard to update for stats though :)

I will look for some metrics, but maybe clouldflare could help take some of
the load for the current aslo (17s load according to firefox) and
www.sugarlabs.org (100% static = 100% cache-able)


 On Sat, May 24, 2014 at 09:10:10PM +1000, Sam Parkinson wrote:
  But in a quick search I wasn't able to find what Flash is
  actually being run.  Maybe it is something in persona.org.  Do
  you really need to uyse persona.org?
 
  I think persona is a good login system for users since there is no
  confirm your email stuff.  For me, it provides valid email
  addresses, which is VERY useful.

 Okay, but it costs data and time.  In my latest test, it costs at
 least 229 KB and 1.7 seconds to load.  While _you_ might want it, do
 your needs need to be satisfied regardless of the impact on all your
 users?


OK, I will start writing a login system.
I will try and make it integrate really well with sugar (read: lets hack
browse activity to have 0-click logins).



  - the slowest response of 1550 ms was from
aslo-bot-master.sugarlabs.org, and this large response time
persisted on repeated refreshes.
 
  Oh, that always hit the filesystem. I added a cache now.

 Did you measure the time?  It is 1446 ms now, hardly different from
 before.  The filesystem is already cached by the operating system, so
 adding a cache should have achieved nothing unless you were waiting
 for a write to disk to complete.


OMG. I see in firefox that about half of that time is DNS! It is on
sugarlabs servers so maybe our dns is really bad!  I have no idea about
this, maybe @Bernie will know?


  - the web site depends on multiple servers, so the mean time between
failure (MTBF) is dramatically reduced.  See [1].
 
  Well, I think that splitting the servers is actually better.  Some
  things are served by reliable cdns (good).  But separating the
  non-essential bits (comments, recommendations) means that crashes
  there will not effect the essential bits (data.json or
  aslo-bot-master.sugarlabs.org)

 You're so brave.  But Sugar Labs has to be careful.  Careful web
 design puts the whole content on reliable servers, but as few as
 possible, and this results in web sites that continue to function
 despite the various temporary problems that occur on the internet.

 Such problems are magnified in environments where Sugar is deployed;
 saturated networks, low performance, failed server lookups, etc.


OK, you know a lot more about this that me; what do you recommend?


 Does it need to look different on Firefox?


Ok, I'll fix it. soon -ish.

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


Re: [Sugar-devel] ASLO

2014-06-01 Thread Sam Parkinson
Hi,

I added a blog within the aslo page. What do you think? (here is the url if
you don't want to scroll up: http://128.199.197.37/ )

On Mon, May 26, 2014 at 10:25 PM, Gonzalo Odiard godi...@sugarlabs.org
wrote:



   * UI localized


 I have that feature, but no translations :)



 Maybe you can publish how to translate it? There are a file with strings
 to translate?


Cool. I have put something on the wiki page about that (I rewrote the whole
page to be exact), but the strings are not stable yet :)




  * bugs reports? (will create bus in bugs.sugarlabs.org?)


 That is a good idea! Maybe let developers choose between that and github
 issues?



 I don't know. In general I think is better have a centralized place for
 bugs.
 By example, at times volunteers ask for tasks to do,
 or we used the information in the tickets to create task for Google Code
 In.


[Sarcastic] O, this is going to be fun! I just love mySQL databases!
I'll try not to accidently delete all the bugs!

Your right. I might setup a little tarc on my computer and try to get
something working.




   * improve communication with the developers?


 Well the aslo2 has lost all references to firefox :)


 I don't understand this point.


I just remember that some places in the current ASLO say firefox add ons
instead of sugar activities.

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


Re: [Sugar-devel] [GSoC 2014] Sugar Listens Weekly Summary

2014-05-28 Thread Sam Parkinson
Hi Rodrigo!


It is nice to see 'Sugar Listens' getting developed! It sounds really cool.


As for the architecture you are suggesting I think design 1 (the central
process) would be the best way go.
Memory usage is a REALLY important thing on the xo, and a dbus based design
will make building a js (or whatever other language) api easier.


From what I can gauge, it appears you are trying to have always on voice
recognition (please tell me if I'm wrong), which is pretty cool!
Having multiple sphinx instances all listing at the same time would not be
very good.
Having a centralized one would let you only send events only to the current
activity, and maybe default back to the system.


Your Blog IPC message load: delay introduced by IPC calls should be
considered.
Doing some benchmarks would be cool, this sounds like a tiny issue to me!


Your Blog Each Activity can provide its own language model...
That sounds scary!
I think, as powerful as that would be, it is really important that you
resist the temptation to shove really complex stuff onto activity
developers and force them to learn about it (sorry for being a hypocritical
there).
Make sure you have a good default (if that is possible, I don't know
anything about language models)


As for the api functions names, IMHO we should use some GTK terminology
(like connect instead of listen).


Looks like a great start to an exciting project!
Sam.


On Wed, May 28, 2014 at 9:06 AM, Rodrigo Parra rodpa...@gmail.com wrote:

 Hello everyone,

 To sum up last week's activities for my GSoC project I wrote an article in
 my personal blog. My project is called TamTam Listens and my mentor is tch.

 If you want to take a look, here's the link: http://tmblr.co/ZLEL4t1Gv4jqp

 As stated in the article, constructive feedback about the architecture,
 the API or the article itself is more than welcome.

 Best regards,

 Rodrigo Parra


 ___
 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] ASLO

2014-05-24 Thread Sam Parkinson
Hi James,


On Thu, May 22, 2014 at 9:44 AM, James Cameron qu...@laptop.org wrote:


  On May 21, 2014 9:58 PM, Sam Parkinson sam.parkins...@gmail.com
 wrote:
   On Wed, May 21, 2014 at 8:20 AM, James Cameron qu...@laptop.org
 wrote:
   What's the Flash element for?
   Sorry, I'm not exactly sure what the Flash element is.

 Nor I.  I'm using Firefox, configured to ask before running Flash, and
 it asks, so that means the page is trying to run something.


Oops, I accidentally included SocketIO. I have removed it.



 But in a quick search I wasn't able to find what Flash is actually
 being run.  Maybe it is something in persona.org.  Do you really need
 to uyse persona.org?


I think persona is a good login system for users since there is no confirm
your email stuff.
For me, it provides valid email addresses, which is VERY useful.



 While looking for the cause, I assessed the network load for your
 prototype:

 - with an empty cache, a total of 23 GET requests to 10 different
   servers, for a total of 491 KB of data,

 - with a primed cache, a total of 11 GET requests to 10 different
   servers, for a total of 65 KB of data,


It could be worse :)

I managed to remove 1 :)



 - the slowest response of 1550 ms was from
   aslo-bot-master.sugarlabs.org, and this large response time
   persisted on repeated refreshes.


Oh, that always hit the filesystem. I added a cache now.



 Comparing to activities.sugarlabs.org which, at the moment, has more
 features:

 - with an empty cache, a total of 40 requests to just one server, for
   a total of 381 KB of data,

 Because the requests were to just one server, the original ASLO loads
 much much faster.


But can't the browser only do 2 requests to one server at once? Where as it
can do async to many servers?

Also it is a common standard today (I think) to use a cdn version of your
scripts.
This means for very common scripts (eg. jquery) it will just hit the
browser cache.
Also cdns are just faster that 1 web server.



 By splitting the requests among multiple servers as you have done:

 - the browser can't queue multiple GETs in the same HTTP connection,\


Really?



 - the browser must negotiate several new HTTP connections, each with a
   round trip delay,


What I could do is combined all the js into 1 file (and same for css).
BUT, I'm not sure if just using the cdn version would be better; cdns are
very fast (and most of the scripts are served through cloudflare which has
edge cache servers in South America and Australia as well as the usual US +
Europe + Asia. This is good because it is close to sugar users).



 - the web site depends on multiple servers, so the mean time between
   failure (MTBF) is dramatically reduced.  See [1].


Well, I think that splitting the servers is actually better.
Some things are served by reliable cdns (good).
But separating the non-essential bits (comments, recommendations) means
that crashes there will not effect the essential bits (data.json or
aslo-bot-master.sugarlabs.org)


 This is even more important for XO laptops, because they are usually
 connected over wireless, with varying network latency.


Ok that is an issue. I could combine files (and put the on cloudflare cdn,
I think they have a free plan).



 You might work to place all the resources you use on one server, and
 find out why 12 KB of data.json from aslo-bot-master.sugarlabs.org
 takes such a surprising time to load.


LOL. I added cache :) Maybe I should try to cdn just that file as it is the
entire data set for aslo.



 Hope this helps.


Thanks :)



 [1]  if server A has an MTBF of one day, and server B has an MTBF of
 one day, the combined MTBF is half a day.  Without knowing the MTBF of
 each server, you can guess at a failure once a day or once a week, and
 so for 10 servers the MTBF will range from once every tenth of a day
 to once every tenth of a week.

   When I click on Review the activity nothing happens except a
   text cursor appears.
  
   Ah, that is a textbox, I changed that to Type your review...

 Interesting.  That's not what a textbox normally looks like, and it
 isn't clear where the review should be typed.  For instance, if you
 just start typing, nothing happens, you have to first click in the
 Type your review area.  So you can't obey the instructions.

 Normally a textbox is empty, and is identified as a place you can
 type, and a separate element is used to give the purpose of the
 textbox.


I might think a bit more about this.
I like the seamless look personally, but I will try to make the textbox
more obvious.



 The same can be said of the Search... textbox.


It looks very obvious on sugar :) Have a look.
I will make it look more obvious on other stuff too.



   The Download and Post buttons could be made into icons.
  
   I made some changes, what do you think?

 I see you added icons to the text.  Perhaps I should have been
 clearer; the text needs to be in several languages, but an icon
 doesn't need

  1   2   >