Re: Request for help - can variable values be passed to an Activity ?

2009-09-03 Thread K. K. Subramaniam
On Wednesday 02 Sep 2009 7:27:15 pm Mikus Grinbergs wrote:
 I tried that.  [Note that the syntax of /etc/environment is
 key=value (and is not interpreted), whereas in the other places in
 /etc it is a normal bash command that gets sourced.]  But even in
 /etc/environment, the variable did not get passed where I wanted.
Perhaps the activity was started before the variable was added to 
/etc/environment? .. Subbu

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Smile activity version 1

2009-09-03 Thread Tomeu Vizoso
On Wed, Sep 2, 2009 at 18:31, Tony Andersont...@olenepal.org wrote:
 I posted version 1 of the Smile activity to activities.sugarlabs.org. It
 matches the code posted on gitorious.

 The Smile activity implements the open source Ambulant SMIL3 player. It
 plays a variety of media types. More importantly it can play a complex
 multimedia presentation including text, images, audio, and video using a
 standard SMIL script.

 My goal is to use the Smile activity to play children's stories so that
 they can see the text highlighted karaoke-style while listening to the
 story's audio track and looking at background images.

 Similar to the Quiz and ShowNTell activities, the Smile activity plays a
 bundle with an extension '.smxo' and mime_type 'application/x-smile'
 which contains the controlling SMIL script and the associated media files.

 Version 1 has two serious problems. Video playback and multimedia
 playback does not redraw correctly (playback is advanced by moving the
 mouse!). In addition, it is possible to replay only be re-selecting the
 presentation. The pause and stop buttons do not work correctly.

 I hope that both of these problems will be resolved in version 2 by the
 end of September.

Hi Tony,

do you know if the cause for these problems in the Ambulant SMIL3
player or in the activity code?

Regards,

Tomeu

-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OHMD Power Control Scripts (James Cameron)

2009-09-03 Thread Mark Kitteringham
  OK, yes I've seen the OLPC-powerd package (RPM?) listed on the
posts, I'll decline that for now in the interest of not fixing what
works correctly :-)

On Wed, Sep 2, 2009 at 4:12 PM, James Cameronqu...@laptop.org wrote:
 Thanks for the thanks.  I hear rumours we may find powerd in the next
 DebXO.  You may notice little difference.  It's getting to be hard to
 tell unless you dig and find out how they work.  ;-)

 --
 James Cameron
 http://quozl.linux.org.au/

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


updates and testing SocialCalc on the Sugar Live CD

2009-09-03 Thread Manusheel Gupta
Dear community members,

We are preparing for the next release of SocialCalc on Sugar. Localization
infrastructure, canonicalization of the save format and collaboration will
be the key features available in the next release. We are also looking
forward to develop interoperability between SocialCalc format and a number
of other spreadsheet formats like .wk3/.wk4/csv/excel/open office
spreadsheet. We have recently received a number of requests on developing
interoperability between SocialCalc and .wk3/.wk4 format, which has been a
challenging problem to work on. Hope to get this feature ready before the
next release.

Lately, I have been testing SocialCalc on the Sugar Live CD, and have run
into issues. I can't seem to get SocialCalc to start.  I fired up the Sugar
LiveCD, and opened up the USB icon in my journal.  I can see the file
SocialCalc.xo on my USB stick.  When I click on it, I get a start button,
but then nothing happens.  Below is a gears image, which starts something
that looks like a developer interface. Not sure, where I have been going
wrong. Any help on this issue is highly appreciated.

Please visit the SocialCalc on Sugar page at
http://seeta.in/j/products-and-services/socialcalc-on-sugar.html. The
activity is available for download both from the SEETA website (
http://seeta.in) and from activities.sugarlabs.org. If you have any
questions, or would like to add suggestions/comments/feature requests,
please do so herehttp://seeta.in/wiki/index.php?title=Talk:SocialCalc_on_Sugar
.

Thank you for your continued support.

Regards,

Manu
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Smile activity version 1

2009-09-03 Thread Tony Anderson
Hi,

I am always tempted to blame my code, but the same problem appeared
in the Ambulant demo wrapper (player_pygtk.py) on Ubuntu. It appears 
only in the python wrapper (not the C++ version). The Ambulant team has 
opened a ticket. The problem appears to be an interaction between the 
gtk.main() event loop and the Ambulant redraw logic. Player_pygtk.py 
doesn't call gtk.main but instead uses a loop:

while gtk.events_pending():
gtk.main_iteration()

I think it is safe to rule out Sugar as a culprit, but not my building 
of the Ambulant package!

Yours,

Tony


Tomeu Vizoso wrote:
 On Wed, Sep 2, 2009 at 18:31, Tony Andersont...@olenepal.org wrote:
   
 I posted version 1 of the Smile activity to activities.sugarlabs.org. It
 matches the code posted on gitorious.

 The Smile activity implements the open source Ambulant SMIL3 player. It
 plays a variety of media types. More importantly it can play a complex
 multimedia presentation including text, images, audio, and video using a
 standard SMIL script.

 My goal is to use the Smile activity to play children's stories so that
 they can see the text highlighted karaoke-style while listening to the
 story's audio track and looking at background images.

 Similar to the Quiz and ShowNTell activities, the Smile activity plays a
 bundle with an extension '.smxo' and mime_type 'application/x-smile'
 which contains the controlling SMIL script and the associated media files.

 Version 1 has two serious problems. Video playback and multimedia
 playback does not redraw correctly (playback is advanced by moving the
 mouse!). In addition, it is possible to replay only be re-selecting the
 presentation. The pause and stop buttons do not work correctly.

 I hope that both of these problems will be resolved in version 2 by the
 end of September.
 

 Hi Tony,

 do you know if the cause for these problems in the Ambulant SMIL3
 player or in the activity code?

 Regards,

 Tomeu

   

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: updates and testing SocialCalc on the Sugar Live CD

2009-09-03 Thread Mikus Grinbergs

Lately, I have been testing SocialCalc on the Sugar Live CD, and have run
into issues.


Don't know what is working/not_working for you, but as an experiment 
I just tried SocialCalc on my XO-1 with build soas-2-beta (this 
build was booted from an USB stick) -- socialcalcactivity-1.xo (size 
291510 bytes) is installed to that build as an Activity.  SocialCalc 
launched fine.  I am not familiar with spreadsheets -- so I did not 
know *how* to test if SocialCalc was working correctly - but I was 
able to click various tabs (eg Help), and to end SociaCalc normally.


mikus  (attached log from this run of SocialCalc)



p.s.  I do not know if SocialCalc needs Java, or not.  The build I 
ran has had openjdk 1.6.0 (Java) installed on it.


DEBUG:xpcom:Python Factory creating ModuleLoader
1252095198.876239 DEBUG xpcom: Python Factory creating ModuleLoader
/usr/lib/xulrunner-1.9.1/python/xpcom/__init__.py:54: DeprecationWarning: 
BaseException.message has been deprecated as of Python 2.6
  self.message = message
/usr/lib/xulrunner-1.9.1/python/xpcom/__init__.py:62: DeprecationWarning: 
BaseException.message has been deprecated as of Python 2.6
  message = self.message
DEBUG:xpcom:'int8 loadModule(in nsISomething, out retval nsISomething);' raised 
COM Exception -2147024809 (-2147024809)
Traceback (most recent call last):
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/policy.py, line 277, in 
_CallMethod_
return 0, func(*params)
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/loader.py, line 92, in 
loadModule
return self._getCOMModuleForLocation(aFile)
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/loader.py, line 97, in 
_getCOMModuleForLocation
raise xpcom.ServerException(nsError.NS_ERROR_INVALID_ARG)
ServerException: -2147024809 (-2147024809)
1252095199.614445 DEBUG xpcom: 'int8 loadModule(in nsISomething, out retval 
nsISomething);' raised COM Exception -2147024809 (-2147024809)
Traceback (most recent call last):
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/policy.py, line 277, in 
_CallMethod_
return 0, func(*params)
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/loader.py, line 92, in 
loadModule
return self._getCOMModuleForLocation(aFile)
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/loader.py, line 97, in 
_getCOMModuleForLocation
raise xpcom.ServerException(nsError.NS_ERROR_INVALID_ARG)
ServerException: -2147024809 (-2147024809)
DEBUG:xpcom:'int8 loadModule(in nsISomething, out retval nsISomething);' raised 
COM Exception -2147024809 (-2147024809)
Traceback (most recent call last):
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/policy.py, line 277, in 
_CallMethod_
return 0, func(*params)
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/loader.py, line 92, in 
loadModule
return self._getCOMModuleForLocation(aFile)
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/loader.py, line 97, in 
_getCOMModuleForLocation
raise xpcom.ServerException(nsError.NS_ERROR_INVALID_ARG)
ServerException: -2147024809 (-2147024809)
1252095199.693665 DEBUG xpcom: 'int8 loadModule(in nsISomething, out retval 
nsISomething);' raised COM Exception -2147024809 (-2147024809)
Traceback (most recent call last):
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/policy.py, line 277, in 
_CallMethod_
return 0, func(*params)
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/loader.py, line 92, in 
loadModule
return self._getCOMModuleForLocation(aFile)
  File /usr/lib/xulrunner-1.9.1/python/xpcom/server/loader.py, line 97, in 
_getCOMModuleForLocation
raise xpcom.ServerException(nsError.NS_ERROR_INVALID_ARG)
ServerException: -2147024809 (-2147024809)
Registering '@mozilla.org/module-loader/python;1' (libpyloader.so)
Registering '@mozilla.org/network/protocol/about;1?what=python' (pyabout.py)
returning /home/liveuser/.sugar/default/gecko/prefs.js for key 
NS_APP_PREFS_50_FILE
1252095209.875585 DEBUG root: *** Act 155fcf09f4f428a3f10e7771402b98807b90b2bc, 
mesh instance None, scope private
1252095209.968401 DEBUG root: Creating a jobject.
1252095210.669266 DEBUG root: datastore.write
1252095211.684445 DEBUG root: dbus_helpers.create: 
b2073e53-143e-4ac6-8bf5-501f459960f6
1252095211.796551 DEBUG root: Written object 
b2073e53-143e-4ac6-8bf5-501f459960f6 to the datastore.
1252095214.950976 DEBUG root: PaletteWindow.popdown immediate True
1252095215.048201 DEBUG root: PaletteWindow.popdown immediate True
1252095215.152887 WARNING root: No gtk.AccelGroup in the top level window.
1252095215.299480 WARNING root: No gtk.AccelGroup in the top level window.
/usr/lib/python2.6/site-packages/sugar/graphics/window.py:275: 
DeprecationWarning: use toolbar_box instead of toolbox
  warnings.warn('use toolbar_box instead of toolbox', DeprecationWarning)
1252095234.155608 DEBUG root: nsIEmbeddingSiteWindow.get_visibility: False
1252095234.262973 DEBUG root: nsIEmbeddingSiteWindow.get_visibility: False
1252095234.364038 DEBUG root: