[Sugar-devel] Sugar web activity wait 1 minute at startup

2014-01-26 Thread Lionel Laské
Hi all, I'm currently porting my FoodChain activity [1] as a full Sugar Web activity. It's mainly a packaging work because FoodChain is already written in HTML5/JavaScript but with a Python package around it. The new Sugar Web activity works well but when I'm testing it on Sugar 0.100 on the XO,

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

2014-01-26 Thread laurent bernabe
Hello, thank you for your answer. Something must be wrong with parameters, as it sends me the options back : $ python ./sugariconify.py -s #00 -f #ff -o activity-icon.svg Usage: sugar-iconify.py [options] input.svg

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

2014-01-26 Thread laurent bernabe
Ok, found the problem :) I need extra quotes : ___ $ python ./sugariconify.py -s #00 -f #ff -o activity-icon.svg entities_passed == 2 entity definitions: self.stroke_entity = #00 self.fill_entity = #ff

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

2014-01-26 Thread laurent bernabe
Hello everyone, Some times ago, I've asked how to deal with the fact that my laptop screen size is rather 16/9 than a 4/3 size. And I was, among other advises, advised to adapt the game size to the screen size. I am conviced that it the way to do : but how to get the client size from inside my

Re: [Sugar-devel] Sugar web activity wait 1 minute at startup

2014-01-26 Thread Emil Dudev
Since you've said that after deleting the file, the loading time does not reduce, I'd say that the problem is not in the file. Have you tried to not include the file in the HTML pages? Does the load time change? I've had a similar problem. If I include a non existent file, webkit will still try

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

2014-01-26 Thread laurent bernabe
I've solved my problem by integrating JQuery, thanks to the Shim section of RequireJS, and by calling it in activity.js = loader.js __ shim: { ... jquery: { exports: 'jquery' } }, paths: { ... jquery:

Re: [Sugar-devel] Sugar web activity wait 1 minute at startup

2014-01-26 Thread Lionel Laské
Thanks for your help Emil. It seems to be a logical explanation, more precisely the 40 seconds that make sense with my symptom. Unfortunately I've detailed in Chrome - outside Sugar - the network exchanges when the page is loaded and I don't see any loading error :-( My first thought was that it

Re: [Sugar-devel] Sugar web activity wait 1 minute at startup

2014-01-26 Thread James Cameron
Delays of around 40 seconds are consistent with host name resolution timeout. Either forward or reverse. Use tcpdump to capture network traffic, on both internal and external network interfaces, and look for host lookups. -- James Cameron http://quozl.linux.org.au/

[Sugar-devel] Sugar web activity wait 1 minute at startup

2014-01-26 Thread Daniel Narvaez
The webkit1 code does not seem to be sending a response if a file does not exist, which I suppose could cause what you are seeing. Though it's logging an error, which I don't see in your log. But the locale.ini does not exist in your activity I guess? It would be good to know for sure if it's

Re: [Sugar-devel] Fedora repository with snapshots from git

2014-01-26 Thread Daniel Narvaez
Cool! Does it have Fedora installed? Which version? We need to install mock, add a mockbuilder user, add mockbuilder to the mock group, setup ssh for the user. I can't send you the public key right now (I'm on just an iPad), but I should be able to do that tomorrow. Please let me know if you

[Sugar-devel] [ASLO] Release Turtle Blocks-198

2014-01-26 Thread Sugar Labs Activities
Activity Homepage: http://activities.sugarlabs.org/addon/4027 Sugar Platform: 0.82 - 0.100 Download Now: http://activities.sugarlabs.org/downloads/file/28887/turtleblocks-198.xo Release notes: v198 BUG FIXES: * Fixed bug with color constants when used with push/pop and boxes * Fixed bug with

[Sugar-devel] The need for a notification system

2014-01-26 Thread Sam Parkinson
Hi, I’ve been working on some stuff recently and I really see the need for a *simple* notification system. One example of a user of the system is here: https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/96 https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/96. The thing is I’m not sure how we