Re: [Sugar-devel] Web activity example that uses html5 canvas

2013-05-01 Thread James Cameron
On Wed, May 01, 2013 at 11:36:49PM -0300, Manuel Qui?ones wrote: > Both do the update at the same rate, one second. But Clock-12 is > redrawing the background on each update, which is unnecessary. > [...] Okay, thanks. That means my results are not useful for comparison of the stack. > Also I t

Re: [Sugar-devel] Web activity example that uses html5 canvas

2013-05-01 Thread Manuel Quiñones
Great summary James, 2013/4/30 James Cameron : > Summary: this Clock activity consumes significantly less CPU on XO-4 > and XO-1 when implemented in Javascript. > > On Tue, Apr 30, 2013 at 08:42:18PM -0300, Manuel Qui?ones wrote: >> 2013/4/30 James Cameron : >> > On Tue, Apr 30, 2013 at 08:58:50AM

Re: [Sugar-devel] GSoC 2013: Project sharing website

2013-05-01 Thread Akshit Khurana
Hi, I was working on my proposal on Project sharing website and wanted to discuss a few things before writing the timeline: Please take a look at the draft proposal so far: http://wiki.sugarlabs.org/go/Summer_of_Code/2013/Project_sharing_website 1. In what ways can the landing pages be different

Re: [Sugar-devel] First HTML activities API

2013-05-01 Thread Daniel Narvaez
I added authentication and a method to get the xo color that Manuel requested. Maybe it should be generalized into some kind of settings api though. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-dev

Re: [Sugar-devel] First HTML activities API

2013-05-01 Thread Daniel Narvaez
By the way, I have not tested but I would expect this to be compatible with 0.98/WebKit1 by copying htmlactivity.py and gwebsockets inside the activity. On 1 May 2013 19:21, Daniel Narvaez wrote: > Hello, > > I submitted some initial code for the HTML activities API. I implemented > only a clos

[Sugar-devel] First HTML activities API

2013-05-01 Thread Daniel Narvaez
Hello, I submitted some initial code for the HTML activities API. I implemented only a close method for now, but it should be possible to add more stuff easily. Here is the toolkit patch https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/15 It adds a dependency on gwebsockets. https://github

[Sugar-devel] [PATCH TamTam 1/2 v2] Output to ALSA directly from csound

2013-05-01 Thread Daniel Drake
TamTam sound is crackly on some setups (e.g. XO-1.5 and newer with dmix running at 48000Hz). Clooper seems to implement its own ALSA sample rate resampling, as well as upsampling of the period rate to overcome any differences in csound period size and ALSA period size. This code is the cause of th

[Sugar-devel] [PATCH TamTam 2/2] Clooper: strip built library

2013-05-01 Thread Daniel Drake
This saves some disk space. The unstripped version can still be built with "make aclient.so" --- common/Util/Clooper/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/common/Util/Clooper/Makefile b/common/Util/Clooper/Makefile index eaefae9..8dfd624 100644 --- a/common/Util/Clooper/Make

[Sugar-devel] [PATCH TamTam 1/2] Output to ALSA directly from csound

2013-05-01 Thread Daniel Drake
TamTam sound is crackly on some setups (e.g. XO-1.5 and newer with dmix running at 48000Hz). http://dev.laptop.org/ticket/12651 Clooper seems to implement its own ALSA sample rate resampling, as well as upsampling of the period rate to overcome any differences in csound period size and ALSA period

Re: [Sugar-devel] [PATCH sugar] Fallback to _NET_WM_PID to map windows to activities

2013-05-01 Thread Daniel Narvaez
On 1 May 2013 14:08, Daniel Drake wrote: > On Wed, May 1, 2013 at 3:25 AM, Daniel Narvaez > wrote: > > It has been a while since I wrote this patch, hopefully I'm not > > misremembering... I think NotifyLaunch is in practice private to the > shell, > > activities should have no need to use it (a

Re: [Sugar-devel] [PATCH sugar] Fallback to _NET_WM_PID to map windows to activities

2013-05-01 Thread Daniel Drake
On Wed, May 1, 2013 at 3:25 AM, Daniel Narvaez wrote: > It has been a while since I wrote this patch, hopefully I'm not > misremembering... I think NotifyLaunch is in practice private to the shell, > activities should have no need to use it (and are not supposed to be > importing activityfactory.p

Re: [Sugar-devel] DataStore interface for HTML5 Activity

2013-05-01 Thread lionel
Hmmm. Finally, I wonder if we need to keep the file handling in the JavaScript Datastore interface. I’ve wrote 5 Sugar activities. Each time I’ve only used the Datastore via read_file/write_file functions and each time it was not to store a file but to store a "state". And most of the time thi

Re: [Sugar-devel] Hacking on HTML activities UI (was Re: GSoC 13)

2013-05-01 Thread lionel
Hi Suraj, Yes I’ve seen you proposal. Thanks for your interest on this project. I’ve seen also that you’ve been inspired by my sum up :-) Good, it was the objective! Yes please, do not hesitate to complete your proposal with code samples that you’ve put on github. Having a good understan

Re: [Sugar-devel] [PATCH sugar] Fallback to _NET_WM_PID to map windows to activities

2013-05-01 Thread Daniel Narvaez
On 1 May 2013 00:27, Daniel Drake wrote: > > > -def get_type(self): > > +def get_bundle_id(self): > > """Retrieve the activity bundle id for future reference""" > > -if not self._windows: > > -return None > > -else: > > -return SugarExt.wm_

Re: [Sugar-devel] "make run" - failed

2013-05-01 Thread Daniel Narvaez
Weird. I can't quite say from the log why it's failing to generate the typelib GENJSCore-3.0.typelib Falló al crear el archivo «Programs/resources/ webkit2gtk-tests-resources.gresource.2T8RWW»: No existe el archivo o el directorio I suppose you have free disk space? Does it fail with the same