Re: [Sugar-devel] New activity. ReSiStance.

2011-06-14 Thread Chus Picos
Christoph, thanks for your help! I'm going to review it.


2011/6/13 Christoph Derndorfer christoph.derndor...@gmail.com

 On Mon, Jun 13, 2011 at 3:00 PM, Christoph Derndorfer 
 christoph.derndor...@gmail.com wrote:

 On Mon, Jun 13, 2011 at 4:37 PM, Chus Picos chuspi...@gmail.com wrote:

 Hi.

 I'm a Software Engineering student at the Universidade da Coruña (Galicia
 - Spain). I have just done my final year proyect. I have developed an
 activity for Sugar. It is an RSS reader. You can download it from:

 http://madsgroup.org/staff/juanjo/ReSiStance-1.xo

 I want to know your opinion, suggestions...

 Regards and thank you very much.


 Hi Chus,

 interesting stuff, I'll definitely give this activity a shot later today.


 Hi again,

 I just tried running the activity on the latest development build (11.2.0
 os22 - http://wiki.laptop.org/go/11.2.0#Download) on an XO-1.5HS machine
 and the activity failed to start.

 I'm copying the log below, hope it helps you figure out what the issue
 could be.

 Thanks,
 Christoph

 --- LOG ---

 ** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
 Traceback (most recent call last):
   File /usr/bin/sugar-activity, line 21, in module
 main.main()
   File /usr/lib/python2.7/site-packages/sugar/activity/main.py, line 121,
 in main
 module = __import__(module_name)
   File /home/olpc/Activities/ReSiStance.activity/ReSiStanceActivity.py,
 line 33, in module
 from src.ReSiStance.settings import Settings
   File
 /home/olpc/Activities/ReSiStance.activity/src/ReSiStance/settings.py, line
 26, in module
 from configobj import ConfigObj
 ImportError: No module named configobj
 1307952847.033687 DEBUG root: _cleanup_temp_files
 Exited with status 1, pid 3921 data (None, open file 'fdopen', mode 'w'
 at 0xb332b78, '07c289065be801b61442e679e7aeb473be3da17e')

 --- /LOG ---

 --
 Christoph Derndorfer
 co-editor, olpcnews
 url: www.olpcnews.com
 e-mail: christ...@olpcnews.com

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


[Sugar-devel] Please look at E-Book Enlightenment

2011-06-14 Thread James Simmons
I have just published E-Book Enlightenment with changes in the
following chapters:

Activities For Finding Books
Read Activity
Pathagar Book Server
gCI

I want this information to be complete and correct.  I believe it is
OK as far as it goes, but I want suggestions on how to make it more
correct, and information that will make it more complete.

Thanks,

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


Re: [Sugar-devel] Please look at E-Book Enlightenment

2011-06-14 Thread Rebecca Hargrave Malamud

Hi, James -

I did a very quick read of the gCI section, and aside from one typo  
(search e-bboks) - it looks great!


One note - we downloaded the books using a simple python script  
authored during the program:


http://sixes.net/rdc2009/downloads-and-benchmarks/

(Open Library also has a Bulk Access Downloader script as well)

Best regards,

Rebecca Malamud
---
http://ruraldesigncollective.org/



On Jun 14, 2011, at 7:54 AM, James Simmons wrote:


I have just published E-Book Enlightenment with changes in the
following chapters:

Activities For Finding Books
Read Activity
Pathagar Book Server
gCI

I want this information to be complete and correct.  I believe it is
OK as far as it goes, but I want suggestions on how to make it more
correct, and information that will make it more complete.

Thanks,

James Simmons



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


[Sugar-devel] Easter Egg In Moon Activity?

2011-06-14 Thread Caryl Bigenho

Hi Folks,


Is there an Easter Egg in the Moon Activity?  Last December I turned on my XO 
to see what the moon would look like durning the last Lunar Eclipse.  It was 
pink!


Was this a fluke? ... my imagination?  or a fun thing put in by the developer 
of the Moon Activity?  Don't know for sure. But, even though the eclipse, set 
for tomorrow in parts of Europe, Asia, Africa, and Australia, won't be visable 
in North America, it might be on the XO!  Be sure to check the time... there is 
an international date line involved.  When the eclipse ended, the moon returned 
to a greyscale image.


Here is a link to see whether it will be visible in the sky where you are 
(weather permitting):


http://en.wikipedia.org/wiki/File:Visibility_Lunar_Eclipse_2011-06-15.png


Check your XOs to see if it is there too.  If it isn't, it should be!  (Hint!)


Caryl


I wonder if there is a corona when we have a solar eclipse??? (another Hint!)





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


[Sugar-devel] GObject-Introspection Hackfest, 10th - 15th August 2011

2011-06-14 Thread Simon Schampijer

Hi,

for people getting in touch with the GObject-introspection folks, here 
is a great opportunity: http://live.gnome.org/Hackfests/Introspection2011


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


Re: [Sugar-devel] GObject-Introspection Hackfest, 10th - 15th August 2011

2011-06-14 Thread Walter Bender
On Tue, Jun 14, 2011 at 1:12 PM, Simon Schampijer si...@schampijer.de wrote:
 Hi,

 for people getting in touch with the GObject-introspection folks, here is a
 great opportunity: http://live.gnome.org/Hackfests/Introspection2011

Great!!! I'll try to get there one way or another!!

-walter


 Regards,
   Simon
 ___
 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] [IAEP] Easter Egg In Moon Activity?

2011-06-14 Thread nanonano

/Caryl Bigenho wrote:
the moon ...Lunar Eclipse.  It was pink!
-/



Hi Caryl:

The real color of the moon on a Lunar Eclypse is not Pink. Here it is 
the true color of the moon during next eclipse of tomorrow 15 of June:


http://shadowandsubstance.com/

It's more like brown.


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


Re: [Sugar-devel] [IAEP] Easter Egg In Moon Activity?

2011-06-14 Thread Nicholas Doiron

If you can't catch this eclipse, see when you can catch the next ones
where you live:

http://www.wolframalpha.com/input/?i=next+lunar+eclipse+at+current+geoIP+location

http://www.wolframalpha.com/input/?i=when+is+the+next+solar+eclipse

And usually you can see when the ISS is next visible where you are, but
right now it just shows you where it is:
http://www.wolframalpha.com/input/?i=International+Space+Station+next+rise
http://www.wolframalpha.com/input/?i=ISS+at+10%3A29+AM

Regards,
Nick


On Tue, June 14, 2011 11:31 am, Caryl Bigenho wrote:


 Hi Folks,



 Is there an Easter Egg in the Moon Activity?  Last December I turned on
 my XO to see what the moon would look like durning the last Lunar
 Eclipse.  It was pink!



 Was this a fluke? ... my imagination?  or a fun thing put in by the
 developer of the Moon Activity?  Don't know for sure. But, even though
 the eclipse, set for tomorrow in parts of Europe, Asia, Africa, and
 Australia, won't be visable in North America, it might be on the XO!  Be
 sure to check the time... there is an international date line involved.
 When the eclipse ended, the moon returned to a greyscale image.



 Here is a link to see whether it will be visible in the sky where you are
 (weather permitting):



 http://en.wikipedia.org/wiki/File:Visibility_Lunar_Eclipse_2011-06-15.png



 Check your XOs to see if it is there too.  If it isn't, it should be!
 (Hint!)



 Caryl



 I wonder if there is a corona when we have a solar eclipse??? (another
 Hint!)






 ___
 IAEP -- It's An Education Project (not a laptop project!)
 i...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/iaep


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


Re: [Sugar-devel] Fedora 15 SoaS release and Csound5

2011-06-14 Thread Peter Robinson
Art,

Setting buildRelease=1 to one has no affect on the build. With that set when
I look at the build logs it still reports building the new Parser. We use to
set buildRelease=0 in all previous releases. Why they would swap this around
is beyond me! Can you forward details on to them because I can never seem to
get onto their mailing list.

Peter

On Tue, Jun 14, 2011 at 2:20 AM, Art Hunkins abhun...@uncg.edu wrote:

  Peter,

 My feelings exactly.

 As regards Csound, most of our listservs are users; developers are
 relatively few and tend to communicate largely among themselves.

 Though I also am a member of csound-dev, I was unaware of the old/new
 parser status. I knew the new parser was (and has been long) under
 development. I'd no idea how or if it was incorporated into Csound5.13.

 Only a few folk (not including myself) actually build Csound - mostly Linux
 people (again, not me). I just installed Windows Csound(5.13) this evening
 for the first time - to discover that it was built with default old parser.
 News to me.

 There's much discussion of Csound lists about how documentation and user
 materials are subpar - especially for newbees. This makes it overly
 difficult for Csound to attract new users.

 At any rate, thanks again for all you do. And I'm always here to test.

 Art Hunkins

 - Original Message -
 *From:* Peter Robinson pbrobin...@gmail.com
 *To:* Art Hunkins abhun...@uncg.edu
 *Cc:* sugar-devel@lists.sugarlabs.org ; Development of live Sugar
 distributions s...@lists.sugarlabs.org
 *Sent:* Monday, June 13, 2011 7:13 PM
 *Subject:* Re: Fedora 15 SoaS release and Csound5

 Art,

 It seems I did get the mail but some how missed it.

 Sigh! How so typical of CSound to make the new parser the default even
 though they themselves don't recommend it, nor do they really even document
 it anywhere! GRR!

 I'll have a look at the build and see what else it will affect, csound
 isn't just there for Sugar.

 Peter

 On Mon, Jun 13, 2011 at 11:05 PM, Art Hunkins abhun...@uncg.edu wrote:

 Peter -

 Did you ever receive the messages collated below? (They largely occurred
 on the csound-dev list.)

 Are the questions you mentioned (ones that were never answered) the ones
 addressed here?

 If not, please send them again. To my knowledge, the simple Csound
 solution is running scons with the option:
 buildRelease=1

 But maybe I completely misunderstand.

 Art Hunkins

 - Original Message - From: Art Hunkins abhun...@uncg.edu

 To: sugar-devel@lists.sugarlabs.org
 Sent: Wednesday, June 08, 2011 9:59 AM

 Subject: Re: Fedora 15 SoaS release and Csound5


 Peter:

 I presume you received the messages immediately listed below, regarding a
 solution to the old/new Csound parser issue (build csound with the scons
 option  buildRelease=1).

 If you sent questions either to this group, or the Csound-developers
 list, I'm sorry; I didn't receive them. Are they perhaps answered in the
 messages quoted below?

 Also, as I wrote to you a week or so ago, there are no current MIDI
 issues with Csound and Sugar. (I had mistakenly thought there were earlier.)

 I remain eager to test a rebuilt Csound in the Fedora 15 SoaS context, to
 determine if my activities are compatible - and look forward to your
 upcoming test release.

 Thanks again for all your work on behalf of things musical within SoaS.

 Art Hunkins

 ---
 (Message to csound development listserv)

 Steve, Victor and Peter Robinson:

 The run-time (CsOptions) flag --old-parser makes my CSD's run flawlessly.
 (Thanks for the suggestion/solution, Steve.)

 I don't imagine my CSD's are the only ones affected.

 Peter, I'd strongly recommend Victor's suggestion of incorporating the
 scons option buildRelease=1 into the Csound build for Fedora 15. (For one
 thing, it would for the time being not require changes to my Activities.)

 Comments anyone?

 Art Hunkins

  From: Victor Lazzarini
  To: Developer discussions
  Sent: Wednesday, June 01, 2011 4:42 PM
  Subject: Re: [Cs-dev] Fw: Csound - CsOptions flag for old parser?


  That is a run-time option. But if you build csound with the scons
  option buildRelease=1, the old parser
  should be the default. This is the recommended (new parser is no ready
 for big time yet).


  Victor

  On 1 Jun 2011, at 21:30, Peter Robinson wrote:


   Hi Steve,

   Is that a compile or run time option? If the former what are the
 implications?

   Peter

   On 1 Jun 2011 21:18, Steven Yi steve...@gmail.com wrote:

  Dr Victor Lazzarini
  Senior Lecturer
  Dept. of Music
  NUI Maynooth Ireland
  tel.: +353 1 708 3545
  Victor dot Lazzarini AT nuim dot ie


  - Original Message - From: Peter Robinson 
 pbrobin...@gmail.com
 To: Art Hunkins abhun...@uncg.edu
 Sent: Wednesday, June 08, 2011 4:48 AM
 Subject: Re: Fedora 15 SoaS release and Csound5


 Hi Art,

 No idea. I replied to the email you CC:ed me on and had no answers to
 my questions. I have a couple of outstanding items I need to test 

[Sugar-devel] [ASLO] Release Turtle Confusion-4

2011-06-14 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4450

Sugar Platform:
0.82 - 0.92

Download Now:
http://activities.sugarlabs.org/downloads/file/27421/turtle_confusion-4.xo

Release notes:
4 (Based upon feedback from Tony Forster)

ENHANCEMENTS
* Restore challenge after running clean block
* Improved clarity of activity-icon graphics
* Show dimensions on challenge graphics



Sugar Labs Activities
http://activities.sugarlabs.org

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


[Sugar-devel] Browse and the move to WebKit

2011-06-14 Thread Daniel Drake
There have been various discussions in the past suggesting a move from
mozilla to webkit for the Browse activity and related components, but
I've never really been convinced: there is always a cost to switching,
and convincing-looking numbers from webkit supporters tended to be
countered with convincing-looking numbers from mozilla supporters.

But now I believe there is a new reason for the switch to WebKit: necessity.

=== Mozilla ===

First, why I've become convinced that Mozilla is no longer a viable
option in the face of alternatives:

I've been looking at a bug where Browse can't pass the focus from a
normal GTK+ widget to a text input field inside the hulahop browser
window. I think this bug was added in xulrunner-1.9.2 (over v1.9.1).
We are not the only ones to conclude that embedding xulrunner-1.9.2
into your own app is totally broken:
https://bugzilla.mozilla.org/show_bug.cgi?id=533245

Until xulrunner-2.0, mozilla provided a gtkmozembed widget within
mozilla, a GTK+ widget that you could use to trivially embed a
Mozilla-based web browser window to your GTK+ app. We didn't use it
(presumably because it was a bit simplistic) but our hulahop
equivalent had a lot in common and was no doubt built from knowledge
of gtkmozembed.

Mozilla have now removed gtkmozembed altogether because it was
unmaintained and doesn't represent the direction we
want for embedding in general yet I've been looking and I can't find
any example which *do* represent what they want. If they did want to
influence the right direction on people they should provide good
examples.

But the clear message from
http://groups.google.com/group/mozilla.dev.embedding/msg/98cb5d92e48f5d01
is that embedding isn't a concern for Mozilla and they acknowledge
that it hasn't been given the support it deserves. They are taking
steps to make embedding actively harder and actively discourage
against using mozilla in this way:
https://groups.google.com/forum/#!topic/mozilla.dev.embedding/c_NMcO-N8wo/discussion

Also, the mindset in which mozilla is developed seems to sit a long
way out of our traditional open-source ecosystem (where we aren't
bugged by problems like DLL hell). They have gone in the direction
that enables you to build and install a mozilla-using application
without having mozilla installed. The mozilla stuff can then be
located at runtime and used. Here are the hoops they now put us
through as of xulrunner-2.0, enabling this approach (which is of
little use for us and just seems ridiculous):

We want to call the function XRE_InitEmbedding() inside libxul. This
is the first thing you need to do if you want to embed mozilla in
another app.

XRE_InitEmbedding has been removed from the mozilla public headers, so
we have to go into the mozilla source so that we can include the
definition in our own code. Found it:

typedef nsresult (__cdecl *XRE_InitEmbeddingType)(nsILocalFile
*aLibXULDirectory,
nsILocalFile *aAppDirectory,
nsIDirectoryServiceProvider *aAppDirProvider,
nsStaticModuleInfo const *aStaticComponents,
PRUint32 aStaticComponentCount);

Next problem: nsStaticModuleInfo doesn't exist in Mozilla public
headers either. As its just a pointer that we don't use (we pass
NULL), lets just make it void.

typedef nsresult (__cdecl *XRE_InitEmbeddingType)(nsILocalFile
*aLibXULDirectory,
nsILocalFile *aAppDirectory,
nsIDirectoryServiceProvider *aAppDirProvider,
const void *aStaticComponents,
PRUint32 aStaticComponentCount);

Next problem: this function is alive and present in libxul but doesn't
exist in the regular symbol table! So we need to use some Mozilla
magic to find it:

XRE_InitEmbeddingType XRE_InitEmbedding;

static const struct nsDynamicFunctionLoad kXRESymbols[] = {
  { XRE_InitEmbedding, (NSFuncPtr*) XRE_InitEmbedding },
  { nsnull, nsnull }
};

XPCOMGlueLoadXULFunctions(kXRESymbols);

Now XRE_InitEmbedding will be set and we can call it like a function.

Is this feeling long winded yet?

There's more! XPCOMGlueLoadXULFunctions() isn't present in libxul!
Because remember, our app can't link against libxul at all. So where
does it come from?

It comes from libxpcomglue, a static library shipped by xulrunner
which we must statically link against, including it wholly inside our
app.

Now, after jumping through many hoops, we can finally call a function
inside the library we are interested in. Now we just have to get
through the run-time bugs such as focus issues which have spent months
unfixed in mozilla-central...


The combination of the fact that mozilla embedding has been neglected
over the years, is currently broken and is now actively discouraged,
and the fact that general use and design of the library sits way
outside of our open-source norms means that I've lost faith in this
being a good option for us 

Re: [Sugar-devel] Browse and the move to WebKit

2011-06-14 Thread Peter Robinson
I'm not a developer so some of what I write is here say but from what I know
of from following various upstream.

On Tue, Jun 14, 2011 at 8:58 PM, Daniel Drake d...@laptop.org wrote:

 There have been various discussions in the past suggesting a move from
 mozilla to webkit for the Browse activity and related components, but
 I've never really been convinced: there is always a cost to switching,
 and convincing-looking numbers from webkit supporters tended to be
 countered with convincing-looking numbers from mozilla supporters.

 But now I believe there is a new reason for the switch to WebKit:
 necessity.

 === Mozilla ===

 First, why I've become convinced that Mozilla is no longer a viable
 option in the face of alternatives:


snip


 The combination of the fact that mozilla embedding has been neglected
 over the years, is currently broken and is now actively discouraged,
 and the fact that general use and design of the library sits way
 outside of our open-source norms means that I've lost faith in this
 being a good option for us (and I've got so frustrated by this episode
 that I've changed web browser on my desktop system as well).


Would a skinned version of Firefox Mobile work for what is needed?


 === WebKit ===

 What I'd like to do now is spec out a project for someone to take on,
 moving Browse to WebKit in a way that can be clearly justified for the
 community.

 But, WebKit is totally new to me so I have many open questions. Can
 anyone help me answer them? I'll be collecting the results into a wiki
 page (to form the above spec).

 1. I've only made half the argument above. Mozilla is bad, but why is
 WebKit the solution? The key questions here are: is it embeddable?
 Does it work well when embedded? Do the developers support it being
 embedded?


Yes. Its used by yelp (gnome help) and various other applications and
libraries. Eclipse embeds it in SWT and a number of mail clients use it for
html mail rendering (I think Claws uses it).


 Does anyone have experience here? The name WebKit makes it sound
 nice and modular, and the fact that WebKit itself isn't a browser
 would seem to support these arguments, but it would be nice being able
 to argue this on a more solid basis.


In theory it should be nice an modular, the JS is a separate component for
example. Details of all the components are here:

http://trac.webkit.org/wiki/HackingGtk


 2. What is the state of Surf?
 This is the existing webkit-based browser for Sugar. Does it work
 well? Is it reliable? What are the gaping holes?


It works, we're shipping it in SoaSv5.


 3. What is the safe of pywebkitgtk in F14, F15, F16?
 This is the backend library used by Surf, right? Is this still the
 right answer for creating a webkit-based app using Python + GTK?
 Does it work well on Fedora 14, or do we need a newer distro?


It works with Surf on F-14 (yum install sugar-surf for a quick test) but I
have no idea of the state of it. Looking at the rpm changelog in Fedora
1.1.6 is the current release in Fedora, current as of Aug 2009, although
1.1.8 is in F-15 as of March.

Looking at the 1.4.x release that ships with F-15 it looks like there's
gobject introspection support has been added so I suggest that for a new
project that might be the best way to go for python support. Tomeu might be
the best person to reply to that point though.

F-14 ships 1.3.10. Looking at the changelogs I suspect we're stuck on that
version due to requirements on libsoup.

There's issues with the version in F-14 in that it doesn't support TLS and a
number of other things (not sure exactly what else though).

I remember at one point there being some pretty key problems with
 pywebkitgtk causing Surf development to halt. What were these issues
 and have they been overcome?


I suspect the solution is to use introspection instead. The support seems
complete since the release of 1.4.x stable release in F-15.


 IIRC those pywebkitgtk-related problems were going to be solved with a
 move to GObject introspection, which wasn't mature back in that
 timeframe. But it is mature and usable now. But does this require us
 to move to GTK+-3?


I don't believe it does. In F-14 and F-15 there's both webkitgtk and
webkitgt3 releases.

 Does WebKit/webkitgtk work for both GTK+-2 and GTK+-3? Any pros/cons
 of one over the other?


 There's 2 different builds of them in both F-14 and F-15. The gtk3 linked
version in both releases trails behind the gtk2 release, I don't believe
that's due to lack of support for gtk3 but rather someone hasn't kept the
releases in sync.

Not a complete answer but should give you a start.

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


Re: [Sugar-devel] Browse and the move to WebKit

2011-06-14 Thread Daniel Drake
On 14 June 2011 21:35, Peter Robinson pbrobin...@gmail.com wrote:
 Would a skinned version of Firefox Mobile work for what is needed?

No, as we need collaboration, journal access, etc. But (I didn't
include this argument as I lost the link) this response matches what I
read from mozilla developers: if you want to build a mozilla-based
product, fork the mozilla codebase and write your application inside
there.

Not a viable option for us, and again, way outside our norms...


Thanks for the webkit info - indeed a good start!

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


Re: [Sugar-devel] Browse and the move to WebKit

2011-06-14 Thread C. Scott Ananian
On Tue, Jun 14, 2011 at 4:42 PM, Daniel Drake d...@laptop.org wrote:
 On 14 June 2011 21:35, Peter Robinson pbrobin...@gmail.com wrote:
 Would a skinned version of Firefox Mobile work for what is needed?

 No, as we need collaboration, journal access, etc. But (I didn't
 include this argument as I lost the link) this response matches what I
 read from mozilla developers: if you want to build a mozilla-based
 product, fork the mozilla codebase and write your application inside
 there.

I did work on that; you can certainly make a firefox extension that
supports collaboration, journal access, etc.  My firefox activity did
some of what's necessary.  Firefox can speak dbus, etc.

That said, I had first-hand experience w/ a project which switched
from embedded mozilla to webkit, and I can testify that the
performance improvement was indeed significant.
  --scott

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


Re: [Sugar-devel] Browse and the move to WebKit

2011-06-14 Thread Lucian Branescu
On 14 June 2011 20:58, Daniel Drake d...@laptop.org wrote:
 2. What is the state of Surf?
 This is the existing webkit-based browser for Sugar. Does it work
 well? Is it reliable? What are the gaping holes?

It works reasonably well. I couldn't implement cookies for example,
because that requires libsoup bindings. libsoup folks recommended I
use pygi. There are a few other gaps in functionality.

Surf is forked from Browse a few versions back (I think 119). Some new
features could be backported from newer Browse, but overall I consider
the Surf codebase in a reasonable state, just incomplete.

 3. What is the safe of pywebkitgtk in F14, F15, F16?
 This is the backend library used by Surf, right? Is this still the
 right answer for creating a webkit-based app using Python + GTK?
 Does it work well on Fedora 14, or do we need a newer distro?

 I remember at one point there being some pretty key problems with
 pywebkitgtk causing Surf development to halt. What were these issues
 and have they been overcome?

pywebkitgtk is unmaintained, and its author has moved to pygi.
Switching to pygi shouldn't be hard at all from what I've seen, it's
an almost entirely automated process.

 IIRC those pywebkitgtk-related problems were going to be solved with a
 move to GObject introspection, which wasn't mature back in that
 timeframe. But it is mature and usable now. But does this require us
 to move to GTK+-3?

pygi itself is much more mature, indeed. However, last year there were
significant problems with using sugar-toolkit together with pygi,
since sugar-toolkit uses (used?) static bindings. I don't know what
the status is now, the issues may no longer exist. iirc, part of the
reason pygi was merged in pygobject was to better support static
bindings based on pygobject.

It doesn't require moving to GTK3, which is entirely orthogonal to pygi afaik.

 Does WebKit/webkitgtk work for both GTK+-2 and GTK+-3? Any pros/cons
 of one over the other?

I don't know about the state of their GTK3 port, but I believe they're
working on it.



On 14 June 2011 22:05, C. Scott Ananian csc...@laptop.org wrote:
 On Tue, Jun 14, 2011 at 4:42 PM, Daniel Drake d...@laptop.org wrote:
 On 14 June 2011 21:35, Peter Robinson pbrobin...@gmail.com wrote:
 Would a skinned version of Firefox Mobile work for what is needed?

 No, as we need collaboration, journal access, etc. But (I didn't
 include this argument as I lost the link) this response matches what I
 read from mozilla developers: if you want to build a mozilla-based
 product, fork the mozilla codebase and write your application inside
 there.

 I did work on that; you can certainly make a firefox extension that
 supports collaboration, journal access, etc.  My firefox activity did
 some of what's necessary.  Firefox can speak dbus, etc.

Yes, if mozilla is desired, the way to go is to extend xulrunner, not
embed it. An alternative chrome and a couple of extensions for sugar
integration would provide that.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [RELEASE] hulahop-0.8.1

2011-06-14 Thread Simon Schampijer

== Source ==
http://download.sugarlabs.org/sources/sucrose/glucose/hulahop/hulahop-0.8.1.tar.bz2

== News ==
- update Sugar platform version
- cope for move of PyXPCOM.h
- Handle button press event, part of OLPC #10623 (Daniel Drake)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [ASLO] Release Turtle Confusion-4

2011-06-14 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4450

Sugar Platform:
0.82 - 0.92

Download Now:
http://activities.sugarlabs.org/downloads/file/27421/turtle_confusion-4.xo

Release notes:
4 (Based upon feedback from Tony Forster)

ENHANCEMENTS
* Restore challenge after running clean block
* Improved clarity of activity-icon graphics
* Show dimensions on challenge graphics



Sugar Labs Activities
http://activities.sugarlabs.org

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


Re: [Sugar-devel] Browse and the move to WebKit

2011-06-14 Thread Marco Pesenti Gritti
On 14 June 2011 20:58, Daniel Drake d...@laptop.org wrote:
 1. I've only made half the argument above. Mozilla is bad, but why is
 WebKit the solution? The key questions here are: is it embeddable?
 Does it work well when embedded? Do the developers support it being
 embedded?

With WebKit2, this all you need to load a web page into a GtkBox

WKViewRef web_view = WKViewCreate(WKContextGetSharedProcessContext(), 0);
WKPageLoadURL(WKViewGetPage(web_view), WKURLCreateWithUTF8CString(PAGE_URL));
gtk_box_pack_start(GTK_BOX(box), GTK_WIDGET(web_view), TRUE, TRUE, 0);
gtk_widget_show(GTK_WIDGET(web_view));

Quite an improvement over mozilla :) More importantly, from
http://trac.webkit.org/wiki/WebKit2

WebKit2 will provide a stable C-based non-blocking API that is mostly
platform agnostic. In order to achieve the goal of a non-blocking API,
several techniques are used to make the API usable while still
providing a comprehensive set of features to the embedder.

A couple of important points here:

1 The API is stable, something that mozilla never guaranteed even
between minor releases.
2 The API is the same every other WebKit2 based browser will be using,
it's not a special, incomplete subset of the API for embedders (I
would say that was the crux of the problem with gtkmozembed).

My main worry is not about embeddability really but about the quality
of the gtk specific bits. I'm not sure I trust libsoup for example.
Motorola and Igalia are working on those

http://blogs.igalia.com/alex/2011/04/08/webkit2-minibrowser-for-the-gtk-port-running/

It would probably be a good idea to talk with them about status/plans.
Testing MiniBrowser should be interesting too, it builds very easily
on F15.

Hope that helps,
Marco
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] New activity. ReSiStance.

2011-06-14 Thread Chus Picos
Hi!

I have just updated the activity. Now you can run the activity without
install configobj. The activity is in the same URL:

http://madsgroup.org/staff/juanjo/ReSiStance-1.xo

Thanks!

Chus.

2011/6/14 Chus Picos chuspi...@gmail.com

 Christoph, thanks for your help! I'm going to review it.



 2011/6/13 Christoph Derndorfer christoph.derndor...@gmail.com

 On Mon, Jun 13, 2011 at 3:00 PM, Christoph Derndorfer 
 christoph.derndor...@gmail.com wrote:

 On Mon, Jun 13, 2011 at 4:37 PM, Chus Picos chuspi...@gmail.com wrote:

 Hi.

 I'm a Software Engineering student at the Universidade da Coruña
 (Galicia - Spain). I have just done my final year proyect. I have developed
 an activity for Sugar. It is an RSS reader. You can download it from:

 http://madsgroup.org/staff/juanjo/ReSiStance-1.xo

 I want to know your opinion, suggestions...

 Regards and thank you very much.


 Hi Chus,

 interesting stuff, I'll definitely give this activity a shot later today.


 Hi again,

 I just tried running the activity on the latest development build (11.2.0
 os22 - http://wiki.laptop.org/go/11.2.0#Download) on an XO-1.5HS machine
 and the activity failed to start.

 I'm copying the log below, hope it helps you figure out what the issue
 could be.

 Thanks,
 Christoph

 --- LOG ---

 ** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
 Traceback (most recent call last):
   File /usr/bin/sugar-activity, line 21, in module
 main.main()
   File /usr/lib/python2.7/site-packages/sugar/activity/main.py, line
 121, in main
 module = __import__(module_name)
   File /home/olpc/Activities/ReSiStance.activity/ReSiStanceActivity.py,
 line 33, in module
 from src.ReSiStance.settings import Settings
   File
 /home/olpc/Activities/ReSiStance.activity/src/ReSiStance/settings.py, line
 26, in module
 from configobj import ConfigObj
 ImportError: No module named configobj
 1307952847.033687 DEBUG root: _cleanup_temp_files
 Exited with status 1, pid 3921 data (None, open file 'fdopen', mode 'w'
 at 0xb332b78, '07c289065be801b61442e679e7aeb473be3da17e')

 --- /LOG ---

 --
 Christoph Derndorfer
 co-editor, olpcnews
 url: www.olpcnews.com
 e-mail: christ...@olpcnews.com



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


Re: [Sugar-devel] [IAEP] Easter Egg In Moon Activity?

2011-06-14 Thread Gary Martin
Hi Caryl,

On 14 Jun 2011, at 16:31, Caryl Bigenho cbige...@hotmail.com wrote:

 Hi Folks,
 
 Is there an Easter Egg in the Moon Activity?  Last December I turned on my 
 XO to see what the moon would look like durning the last Lunar Eclipse.  It 
 was pink!

:)

 Was this a fluke? ... my imagination?  or a fun thing put in by the developer 
 of the Moon Activity?  Don't know for sure. But, even though the eclipse, set 
 for tomorrow in parts of Europe, Asia, Africa, and Australia, won't be 
 visable in North America, it might be on the XO!  Be sure to check the 
 time... there is an international date line involved.  When the eclipse 
 ended, the moon returned to a greyscale image.

Yes, luna and solar eclipse events are in Moon. I have somewhat limited data 
[1] and compositing [2] options for a realistic and very time accurate 
rendering of what you may really see (the Moon activity renders an Earth 
centric view with no knowledge of where on the surface of the planet you may 
be), but it does try to visually mark the event. Also note in the bottom left, 
the information panel shows the upcoming luna/sola eclipse time.

Regards,
--Gary

[1] I'm using nice (but fairly small) slice of accurate dataset NASA kindly 
provide for public use, I've avoided most dynamic algorithms so far as I'm 
worried they have license terms that break under OSS distribution, and I'm not 
a lawyer. I do have one set I might be able to use, but it is not as accurate.

[2] Hoping to switch to a different drawing api's so I can do more interesting 
things with the visuals.

 Here is a link to see whether it will be visible in the sky where you are 
 (weather permitting):
 
 http://en.wikipedia.org/wiki/File:Visibility_Lunar_Eclipse_2011-06-15.png
 
 Check your XOs to see if it is there too.  If it isn't, it should be!  (Hint!)
 
 Caryl
 
 I wonder if there is a corona when we have a solar eclipse??? (another Hint!)
 
 
 
 ___
 IAEP -- It's An Education Project (not a laptop project!)
 i...@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/iaep
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [IAEP] Easter Egg In Moon Activity?

2011-06-14 Thread Tabitha Roder
On 15 June 2011 05:31, Nicholas Doiron ndoi...@andrew.cmu.edu wrote:


 If you can't catch this eclipse, see when you can catch the next ones
 where you live:


 http://www.wolframalpha.com/input/?i=next+lunar+eclipse+at+current+geoIP+location

 Regards,
 Nick


 Thank you Nick! I have shared this with my sister who teaches in a primary
school, very useful. I am hoping to see the local kids outside their houses
looking up at the sky on Thursday morning (our time). :-)
Tabitha
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [SoaS] new SoaSv5 test image - Last change to test and fix issues

2011-06-14 Thread Thomas C Gilliard

Testing 06/14/2011
-Trying to create a 2 GB .img file for dd writing to 2 GB USB's-

SoaSv5-20110612-i686.iso - fresh download
http://fedora.roving-it.com/SoaSv5-20110612-i686.iso
*boot CD ACER ASPIRE ONE N450-(external usb DVD/CD writer)
:insert new USB (Lexar firefly 4GB)
*sugar terminal
su
password (not needed)
:liveinst
custom
/ ext4  fill all of usb
no swap
 copyright on f15 anacona install screen is 2003-2010
sucessful
*start f15 gnome3-shell from 500GB external HD install
insert new USB
*gparted:
: check device name
terminal: #
dd if=/dev/sdb of=SoaSv5-20110612 bs=4k
*gparted:
resize partition to 2GiB
*Boot resized USB
nm-connection-editor
wireless add
(wep ascii password)
connects to AP as finish adding ssid
surf and IRC connect on wireless
NO Jabber connection
Insert wired network
My Settings/About Me/color change; restart
f1 Neighborhood fills with  200 Avitars
unplug eth0
My Settings/About Me/color change; restart
f1 Neighborhood is empty


*note jabber only seems to work on a wired eth0 connection
:wireless does not see jabber
: did not start message not present as often on starting applications
:restart works w/o Plymouth: (nomodeset progress bars)

Tom Gilliard
satellit

Peter Robinson wrote:

Hi All,

I was hoping to have this out over a week ago but I had a slight diversion
via hospital which delayed proceedings.

So below are links to a new pair (32 and 64 bit) of images for your testing
pleasure.

http://fedora.roving-it.com/SoaSv5-20110612-x86_64.iso
http://fedora.roving-it.com/SoaSv5-20110612-i686.iso

The network issue is still there, its partially working from the work that I
did with some assistance from John Dulaney. I've included another utility to
enable initial configuration of a wireless access point and from there it
will auto connect and should mostly work. There's issues with the main
network view and in the control panel but it seems no one else cares enough
to assist me in getting it fixed. To configure an AP run the command
nm-connection-editor from a terminal as the standard user (not root).

I don't believe there are any other major blockers for this release. If you
believe there to be any issues speak up now and provide fixes for it.

NOTE: This is the last chance to test and get things fixed. Please provide
concise details to any issues in reply to this mail.

Cheers,
Peter

  



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