Re: [Sugar-devel] JS activity issues

2013-07-15 Thread Manuel Quiñones
2013/7/13 Walter Bender walter.ben...@gmail.com:
 So I wrote my first JS activity [1, 2] (although I wrote the original
 XO Colors activity in JS and XML back in 2007) and will it sort of kid
 of works, I have some problems:

 (1) The toolbar buttons are not properly aligned vertically. From my
 web browser, the activity button is properly aligned, but the new
 button I added is offset down by about 25 pixels. In Sugar (latest
 sugar-build running on F19), the activity button is offset down and
 the new button is properly aligned.

It was a bug.  Good catch!  I have sent a pull request that fixes it.

PR: https://github.com/sugarlabs/sugar-web/pull/64/
Testcase: http://sugarlabs.github.io/sugar-web-samples/activitypalette.html

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


[Sugar-devel] clipboard error with actual sugar

2013-07-15 Thread Gonzalo Odiard
Can anybody confirm this?

In sugar-build (F18), when I want copy a object from the journal to the
clipboard,
using the copy menu in the object palette, nothing is copied in the
clipboard,
and i get the following error in shell.log:

Traceback (most recent call last):
  File
/home/gonzalo/sugar-build/build/out/install/lib/python2.7/site-packages/jarabe/journal/palettes.py,
line 319, in __copy_to_clipboard_cb
clipboard.set_with_data([Gtk.TargetEntry.new('text/uri-list', 0, 0)],
AttributeError: 'Clipboard' object has no attribute 'set_with_data'

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


[Sugar-devel] Problem with OOB. Can't download package tracker

2013-07-15 Thread Juan Cubillo

Hello,

I'm trying to build a custom image based on the newer 13.1.0 release.
An XO was installed fresh with the stable image and olpc-os-builder 
installed. When trying to build the 1.75XO example ini file It always 
ends with this error:


   Retrieving
   http://mock.laptop.org/repos/local.13.1.0-xo1.75/repodata/repomd.xml
   ...OK
   ERROR:root:Error creating Live CD : Unable to download from repo :
   Package Header tracker-0.14.2-4.fc18.armv7hl: RPM Cannot open
   INFO:root:Unmounting directory
   /var/tmp/olpc-os-builder/imgcreate-0HsYBZ/install_root
   INFO:root:Losetup remove /dev/loop0
 * Caught error, cleanup and then bail out.
 * Running part cleanup base cleanup.50.cleanup.sh...
 * Running part cleanup buildnr_from_file
   cleanup.50.write_buildnr.sh...
   ERROR: Failure in BuildStage: module base, part
   build.40.imagecreate.py, error code 1
   bash-4.2#


I tried to download tracker on the host system with yum but it is not 
currently available. It seems the repositories locations are broken:


   bash-4.2# yum -y install tracker
   Resolving Dependencies
   -- Running transaction check
   --- Package tracker.armv7hl 0:0.14.2-4.fc18 will be updated
   --- Package tracker.armv7hl 0:0.14.4-1.fc18 will be an update
   -- Finished Dependency Resolution

   Dependencies Resolved

   
===
 Package  Arch Version
   Repository   Size
   
===
   Updating:
 tracker  armv7hl 0.14.4-1.fc18
   fedora  1.2 M

   Transaction Summary
   
===
   Upgrade  1 Package

   Total download size: 1.2 M
   Downloading Packages:
   tracker-0.14.4-1.fc18.armv7hl. FAILED
   
http://mirrors.rit.edu/fedora-secondary/releases/18/Everything/armhfp/os/Packages/t/tracker-0.14.4-1.fc18.armv7hl.rpm:
   [Errno 14] curl#56 - Network error recv()
   Trying other mirror.
   tracker-0.14.4-1.fc18.armv7hl. FAILED
   
http://dl.fedoraproject.org/pub/fedora-secondary/releases/18/Everything/armhfp/os/Packages/t/tracker-0.14.4-1.fc18.armv7hl.rpm:
   [Errno 14] curl#56 - Network error recv()
   Trying other mirror.
   tracker-0.14.4-1.fc18.armv7hl. FAILED
   
http://mirrors.kernel.org/fedora-secondary/releases/18/Everything/armhfp/os/Packages/t/tracker-0.14.4-1.fc18.armv7hl.rpm:
   [Errno 14] curl#56 - Network error recv()
   Trying other mirror.


   Error Downloading Packages:
  tracker-0.14.4-1.fc18.armv7hl: [Errno 256] No more mirrors to try.
  tracker-0.14.4-1.fc18.armv7hl: Downloaded package
   tracker-0.14.4-1.fc18.armv7hl, from fedora, but it was invalid.

   bash-4.2#


Is there any way to add another download option for this package to OOB?

Regards,

--
*Juan Adrián Cubillo*
Director de Tecnología | Fundación Quirós Tanzi
Web: http://fundacionqt.org FB:Fundación 
http://www.facebook.com/pages/Fundaci%C3%B3n-Quir%C3%B3s-Tanzi/161778110499955 


Tel: (506) 2293-2460 ext211 | Cel: (506) 8832-1824



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


[Sugar-devel] Google Summer of Code Blog

2013-07-15 Thread suraj ks
Hi,

I started writing a blog tracking the development of the my GSoC '13
project
Sugar Framework for writing activity in full HTML5  here
[1]http://surajgillespie123.wordpress.com/2013/07/08/gsoc/
.
Basically, I've summed up my understanding of the working of the framework.

My initial plan was to post it on https://planet.gnome.org/ , but they seem
to be very selective on what blogs are relayed on the channel.
Since i started blogging very recently, I don't think I stand a chance of
getting my blog posted there.

It would be very helpful if someone from the community could relay it on
planet.gnome.org.

Will keep posting more stuffs in my blog as we progress.


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


Re: [Sugar-devel] Google Summer of Code Blog

2013-07-15 Thread Walter Bender
don't forget to add it to planet.sl.o

-walter

On Mon, Jul 15, 2013 at 4:01 PM, suraj ks suraj.gilles...@gmail.com wrote:
 Hi,

 I started writing a blog tracking the development of the my GSoC '13 project

 Sugar Framework for writing activity in full HTML5  here [1].

 Basically, I've summed up my understanding of the working of the framework.

 My initial plan was to post it on https://planet.gnome.org/ , but they seem
 to be very selective on what blogs are relayed on the channel.
 Since i started blogging very recently, I don't think I stand a chance of
 getting my blog posted there.

 It would be very helpful if someone from the community could relay it on
 planet.gnome.org.

 Will keep posting more stuffs in my blog as we progress.


 Cheers!
 Suraj

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




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


Re: [Sugar-devel] clipboard error with actual sugar

2013-07-15 Thread Daniel Drake
On Mon, Jul 15, 2013 at 1:18 PM, Gonzalo Odiard gonz...@laptop.org wrote:
 Can anybody confirm this?

 In sugar-build (F18), when I want copy a object from the journal to the
 clipboard,
 using the copy menu in the object palette, nothing is copied in the
 clipboard,
 and i get the following error in shell.log:

On the XO we ship our own pygobject3 version with some patches. The
patches are upstream but from later versions/branches. I seem to
remember that the most recent patches we added were for clipboard
stuff.

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


Re: [Sugar-devel] [sugar-build] Landing the chroot branch

2013-07-15 Thread Daniel Narvaez
Should be fixed now. Can you give it another try?


On 14 July 2013 03:05, S. Daniel Francis fran...@sugarlabs.org wrote:

 2013/7/13 Daniel Narvaez dwnarv...@gmail.com:
  I pushed that change. Can you retry and see if it works better?

 Both when pulling the current repository and cloning it again, I'm
 getting an error:

 Traceback (most recent call last):
   File ./osbuild, line 462, in module
 main()
   File ./osbuild, line 447, in main
 setup(options.command)
   File ./osbuild, line 320, in setup
 run_broot([download])
   File ./osbuild, line 233, in run_broot
 stderr=subprocess.STDOUT)
   File /usr/lib64/python2.7/subprocess.py, line 511, in check_call
 raise CalledProcessError(retcode, cmd)
 subprocess.CalledProcessError: Command '['sudo',
 '/home/dfrancis/sugar-build/build/out/sandbox-host/install/bin/broot',
 'download']' returned non-zero exit status 1

 broot.log says:
 Traceback (most recent call last):
   File
 /home/dfrancis/sugar-build/build/out/sandbox-host/install/bin/broot,
 line 5, in module
 main.main()
   File
 /home/dfrancis/sugar-build/build/out/sandbox-host/install/lib/python2.7/site-packages/broot/main.py,
 line 66, in main
 result = root.download()
   File
 /home/dfrancis/sugar-build/build/out/sandbox-host/install/lib/python2.7/site-packages/broot/root.py,
 line 274, in download
 raise e
 TypeError: invalid arguments to setopt




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


Re: [Sugar-devel] clipboard error with actual sugar

2013-07-15 Thread Gonzalo Odiard
Thanks, will try to test with F19.

Gonzalo


On Mon, Jul 15, 2013 at 5:54 PM, Daniel Drake d...@laptop.org wrote:

 On Mon, Jul 15, 2013 at 1:18 PM, Gonzalo Odiard gonz...@laptop.org
 wrote:
  Can anybody confirm this?
 
  In sugar-build (F18), when I want copy a object from the journal to the
  clipboard,
  using the copy menu in the object palette, nothing is copied in the
  clipboard,
  and i get the following error in shell.log:

 On the XO we ship our own pygobject3 version with some patches. The
 patches are upstream but from later versions/branches. I seem to
 remember that the most recent patches we added were for clipboard
 stuff.

 Daniel

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


Re: [Sugar-devel] clipboard error with actual sugar

2013-07-15 Thread Daniel Narvaez
Same error on the chroot branch (so Fedora 19).


On 15 July 2013 23:08, Gonzalo Odiard gonz...@laptop.org wrote:

 Thanks, will try to test with F19.

 Gonzalo


 On Mon, Jul 15, 2013 at 5:54 PM, Daniel Drake d...@laptop.org wrote:

 On Mon, Jul 15, 2013 at 1:18 PM, Gonzalo Odiard gonz...@laptop.org
 wrote:
  Can anybody confirm this?
 
  In sugar-build (F18), when I want copy a object from the journal to the
  clipboard,
  using the copy menu in the object palette, nothing is copied in the
  clipboard,
  and i get the following error in shell.log:

 On the XO we ship our own pygobject3 version with some patches. The
 patches are upstream but from later versions/branches. I seem to
 remember that the most recent patches we added were for clipboard
 stuff.

 Daniel



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




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


Re: [Sugar-devel] Google Summer of Code Blog

2013-07-15 Thread Walter Bender
Having just gone through the process of writing my first JS Sugar
activity, I think it would be good to document a few things that I
found confusing. (Undoubtedly, much of my confusion stems from my
unfamiliarity with JS.) Maybe you can add these tidbits, refined, to
your blog:

(1) It wasn't clear to me how to add new buttons to the toolbar. I needed to:
* add the button to index.html
button class=toolbutton id=new-button title=New/button
* define the button style in css/activity.css
#main-toolbar #new-button {
background-image: url(../icons/new-button.svg);
}
* add the callback to js/activity.js
var newButton = document.getElementById(new-button);
newButton.onclick = function () {
new_positions();
}

(2) I suspect this is usual stuff for JS programmers, but new to me: I
used handlebars.js to define templates for some labels I wanted to
position onto some graphics. Important for the dynamic allocation of
elements that I use in many activities.
* in index.html, I added a div to hold the elements I define from the template
div id=labelDiv/div
* in js/activity.js:
// Create label elements for each of our dots
template = Handlebars.compile(labelSource);
var labelElem = document.getElementById(labelDiv);
var html = template({labels:arrLabels});
labelElem.innerHTML = html;

(3) For my graphics, I used Easeljs [1]. Pretty straight forward.
* Let me define graphical elements (i.e., sprites)
* and a canvas for drawing

-walter


[1] http://www.createjs.com/#!/EaselJS

On Mon, Jul 15, 2013 at 4:01 PM, suraj ks suraj.gilles...@gmail.com wrote:
 Hi,

 I started writing a blog tracking the development of the my GSoC '13 project

 Sugar Framework for writing activity in full HTML5  here [1].

 Basically, I've summed up my understanding of the working of the framework.

 My initial plan was to post it on https://planet.gnome.org/ , but they seem
 to be very selective on what blogs are relayed on the channel.
 Since i started blogging very recently, I don't think I stand a chance of
 getting my blog posted there.

 It would be very helpful if someone from the community could relay it on
 planet.gnome.org.

 Will keep posting more stuffs in my blog as we progress.


 Cheers!
 Suraj

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




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


[Sugar-devel] FYI: Simon Phipps on GitHub

2013-07-15 Thread Walter Bender
http://www.infoworld.com/d/open-source-software/github-finally-takes-open-source-licenses-seriously-222708

Makes me feel better about our decision to host Sugar core there.

-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] FYI: Simon Phipps on GitHub

2013-07-15 Thread Bryan Baldwin

  
  
On 07/16/2013 02:06 PM, Walter Bender
  wrote:


  http://www.infoworld.com/d/open-source-software/github-finally-takes-open-source-licenses-seriously-222708



Only the microsite, http://choosealicense.com, afaict GitHub itself
is still completely non-free.

-- 
  
  

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