User talk:Rmyers: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 38: Line 38:
LoadPlugin: failed to initialize shared library /usr/java/jre1.5.0_13/plugin/i386/ns7/libjavaplugin_oji.so [/usr/java/jre1.5.0_13/plugin/i386/ns7/libjavaplugin_oji.so: undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE]
LoadPlugin: failed to initialize shared library /usr/java/jre1.5.0_13/plugin/i386/ns7/libjavaplugin_oji.so [/usr/java/jre1.5.0_13/plugin/i386/ns7/libjavaplugin_oji.so: undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE]


== calc error ==
== ILXO ==


It is indeed! We can always use extra hands - right now one of the big issues facing us is finding office space before June 18. Another is setting up a trac instance on a server somewhere for keeping track of projects and tasks. And then there are general projects and software development and teaching and the like, and some work on the low-cost laptop act advocacy effort that needs to be researched and done... what sorts of things are you interested in? [[User:Mchua|Mchua]] 03:23, 16 May 2008 (EDT)
---------------------------------------------------------------------------
: Thanks for adding the section on the OLPC Chicago page - one correction I made, though, is that we aren't an official OLPC effort; we're also an independent grassroots group. [[User:Mchua|Mchua]] 15:35, 27 May 2008 (EDT)
<type 'exceptions.TypeError'> Traceback (most recent call last)


== testing new Asteroids ==
/usr/share/activities/Calculate.activity/calculate.py in keypress_cb(self=<Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>, widget=<Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>, event=<GdkEvent at 0x8912e88>)
702 self.button_pressed(self.TYPE_TEXT, f)
703 else:
--> 704 return f(self)
f = <function <lambda> at 0x881bed4>
self = <Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>
705
706 return True


I'd be interested in trying out the new versions. warning -- my week-old laptop pretty much defines my Linux experience. I've spent most of my time on WinTel boxes. But, n00bs generating error-messages are a great test, especially if they dump some of that data back into the wiki....
/usr/share/activities/Calculate.activity/calculate.py in <lambda>(o=<Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>)
110
111 KEYMAP = {
--> 112 'Return': lambda o: o.process(),
o = <Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>
o.process = <bound method Calculate.process of <Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>>
113 'period': '.',
114 'equal': '=',


Question: acceleration/deceleration seemed very sloooow. Is this normal, or one of the playability changes? In other verisons I'm more used to scooting around, then having to brake furiously. ah, it's probably the "sluggish" response you mentioned on the [[Asteroids]] page, right?
/usr/share/activities/Calculate.activity/calculate.py in process(self=<Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>)
327 label = unicode(self.label_entry.get_text())
328 _logger.debug('process(): parsing %r, label: %r', s, label)
--> 329 res = self.parser.parse(s)
res = undefined
self.parser.parse = <bound method EqnParser.parse of <eqnparser.EqnParser instance at 0x8548cac>>
s = u'pi*4^2'
330
331 ansvar = self.parser.get_var('Ans')


[[User:OtherMichael|OtherMichael]] 12:09, 28 May 2008 (EDT)
/usr/share/activities/Calculate.activity/eqnparser.py in parse(self=<eqnparser.EqnParser instance at 0x8548cac>, eqn=u'pi*4^2', reset=True)
615 oldps = self.ps
616 self.ps = ParserState(eqn)
--> 617 ret = self._parse(self.ps)
ret = undefined
self._parse = <bound method EqnParser._parse of <eqnparser.EqnParser instance at 0x8548cac>>
self.ps = <eqnparser.ParserState instance at 0x884976c>
618 if oldps is not None:
619 oldps.copy_error(self.ps)


== porting BASIC games to python ==
/usr/share/activities/Calculate.activity/eqnparser.py in _parse(self=<eqnparser.EqnParser instance at 0x8548cac>, ps=<eqnparser.ParserState instance at 0x884976c>, presedence=None)
545 return None
546
--> 547 res = of([left_val, right_val])
res = undefined
of = <function <lambda> at 0x882bcdc>
left_val = Decimal("3.1415926535")
right_val = 16.0
548 _logger.debug('OP: %s, %s ==> %s', self.ml.format_number(left_val), self.ml.format_number(right_val), self.ml.format_number(res))
549 left_val = res


>The sort of grab bag that was in 'What to do after you've hit return'. Math and logic games, simulation games.
/usr/share/activities/Calculate.activity/eqnparser.py in <lambda>(x=[Decimal("3.1415926535"), 16.0])
208 self.register_operator('-', self.OP_DIADIC, 0, lambda x: self.ml.sub(x[0], x[1]))
209 self.register_operator('-', self.OP_PRE, 1, lambda x: self.ml.negate(x[0]))
--> 210 self.register_operator('*', self.OP_DIADIC, 1, lambda x: self.ml.mul(x[0], x[1]))
global self.register_operator = undefined
global self.OP_DIADIC = undefined
x = [Decimal("3.1415926535"), 16.0]
global self.ml.mul = undefined
211 self.register_operator(u'⨯', self.OP_DIADIC, 1, lambda x: self.ml.mul(x[0], x[1]))
212 self.register_operator(u'×', self.OP_DIADIC, 1, lambda x: self.ml.mul(x[0], x[1]))


You might want to check out some of the old books that used to be everywhere; I've got a copy of Tim Hartnells 'Second giant Book of Computer Games" on my work desk. Not work related, I'm sure, but an inspiration.... of sorts.
/usr/share/activities/Calculate.activity/mathlib.py in mul(self=<mathlib.MathLib instance at 0x854894c>, x=Decimal("3.1415926535"), y=16.0)
200
201 def mul(self, x, y):
--> 202 return x * y
x = Decimal("3.1415926535")
y = 16.0
203
204 def div(self, x, y):


Online, we can find [http://www.atariarchives.org/basicgames/ BASIC Computer Games] Edited by David H. Ahl, published 1978
<type 'exceptions.TypeError'>: unsupported operand type(s) for *: 'Decimal' and 'float'
---------------------------------------------------------------------------
<type 'exceptions.TypeError'> Traceback (most recent call last)


A few more (or repeats?) at http://www.dunnington.u-net.com/public/basicgames/
/usr/share/activities/Calculate.activity/calculate.py in keypress_cb(self=<Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>, widget=<Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>, event=<GdkEvent at 0x8912ca8>)
702 self.button_pressed(self.TYPE_TEXT, f)
703 else:
--> 704 return f(self)
f = <function <lambda> at 0x881bed4>
self = <Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>
705
706 return True


and more, possibly, withing the [http://www.atariarchives.org/bcc2/index.php Creative Computing Archives]
/usr/share/activities/Calculate.activity/calculate.py in <lambda>(o=<Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>)
110
111 KEYMAP = {
--> 112 'Return': lambda o: o.process(),
o = <Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>
o.process = <bound method Calculate.process of <Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>>
113 'period': '.',
114 'equal': '=',


/usr/share/activities/Calculate.activity/calculate.py in process(self=<Calculate object at 0x848cdec (SugarActivity at 0x8a18800)>)
327 label = unicode(self.label_entry.get_text())
328 _logger.debug('process(): parsing %r, label: %r', s, label)
--> 329 res = self.parser.parse(s)
res = undefined
self.parser.parse = <bound method EqnParser.parse of <eqnparser.EqnParser instance at 0x8548cac>>
s = u'pi*x^2'
330
331 ansvar = self.parser.get_var('Ans')


>IIRC someone has started something similar with translating some Commodore 64 BASIC programs to Python.
/usr/share/activities/Calculate.activity/eqnparser.py in parse(self=<eqnparser.EqnParser instance at 0x8548cac>, eqn=u'pi*x^2', reset=True)
615 oldps = self.ps
616 self.ps = ParserState(eqn)
--> 617 ret = self._parse(self.ps)
ret = undefined
self._parse = <bound method EqnParser._parse of <eqnparser.EqnParser instance at 0x8548cac>>
self.ps = <eqnparser.ParserState instance at 0x8753fec>
618 if oldps is not None:
619 oldps.copy_error(self.ps)


Mentioned at the [http://wiki.laptop.org/go/Pippy#More_Examples bottom of the Pippy page]
/usr/share/activities/Calculate.activity/eqnparser.py in _parse(self=<eqnparser.EqnParser instance at 0x8548cac>, ps=<eqnparser.ParserState instance at 0x8753fec>, presedence=None)
545 return None
546
--> 547 res = of([left_val, right_val])
res = undefined
of = <function <lambda> at 0x882bcdc>
left_val = Decimal("3.1415926535")
right_val = 25.0
548 _logger.debug('OP: %s, %s ==> %s', self.ml.format_number(left_val), self.ml.format_number(right_val), self.ml.format_number(res))
549 left_val = res


[[User:OtherMichael|OtherMichael]] 12:19, 28 May 2008 (EDT)
/usr/share/activities/Calculate.activity/eqnparser.py in <lambda>(x=[Decimal("3.1415926535"), 25.0])
208 self.register_operator('-', self.OP_DIADIC, 0, lambda x: self.ml.sub(x[0], x[1]))
209 self.register_operator('-', self.OP_PRE, 1, lambda x: self.ml.negate(x[0]))
--> 210 self.register_operator('*', self.OP_DIADIC, 1, lambda x: self.ml.mul(x[0], x[1]))
global self.register_operator = undefined
global self.OP_DIADIC = undefined
x = [Decimal("3.1415926535"), 25.0]
global self.ml.mul = undefined
211 self.register_operator(u'⨯', self.OP_DIADIC, 1, lambda x: self.ml.mul(x[0], x[1]))
212 self.register_operator(u'×', self.OP_DIADIC, 1, lambda x: self.ml.mul(x[0], x[1]))


== Re: Implode bug ==
/usr/share/activities/Calculate.activity/mathlib.py in mul(self=<mathlib.MathLib instance at 0x854894c>, x=Decimal("3.1415926535"), y=25.0)
200
201 def mul(self, x, y):
--> 202 return x * y
x = Decimal("3.1415926535")
y = 25.0
203
204 def div(self, x, y):


Thanks for the report! It looks like some APIs changed in the new version of Sugar. I'll see if I can get it fixed later this week. &mdash;[[User:Leejc|Joe]] 04:12, 14 July 2008 (UTC)
<type 'exceptions.TypeError'>: unsupported operand type(s) for *: 'Decimal' and 'float'

Latest revision as of 04:12, 14 July 2008

welcome to the OLPC wiki

Green and white machine.jpg

Welcome to the One Laptop per Child wiki. Please make yourself at home; read through the Table of Contents and FAQ, and take a look around. If you need a general wiki-tutorial, Wikieducator has some excellent ones.

Some possible pages of interest:

Check your preferences and be sure you verify your email address and turn on email notification if you'd like it -- you can find out when your talk page, or any page on your watchlist, is modified. You may want to upload a photo or information about yourself to your userpage (examples: 1, 2).


--Sj leave me a message 02:56, 13 January 2008 (EST)

in reply to "response to Java comment in Browse page"

Nope, it was'nt about JRE vs JDK. Feel free to add an addendum to my comment, prefacing your's with :

ie:
The rain in spain... User:Alice 18:42, 5 February 2008 (EST)

Falls mainly in the plain! The rain in spain... User:Bob 18:42, 5 February 2008 (EST)


Oh, and one more thing: Please sign your comments with ~~~~, it automagicaly adds your name as well as a link to your talk page. Your signature can be modified at Special:Preferences. ffm 18:42, 5 February 2008 (EST)


Java load error

LoadPlugin: failed to initialize shared library /usr/java/jdk1.5.0_13/jre/plugin/i386/ns7/libjavaplugin_oji.so [/usr/java/jdk1.5.0_13/jre/plugin/i386/ns7/libjavaplugin_oji.so: undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE]

LoadPlugin: failed to initialize shared library libXt.so [libXt.so: cannot open shared object file: No such file or directory] LoadPlugin: failed to initialize shared library libXext.so [libXext.so: cannot open shared object file: No such file or directory] LoadPlugin: failed to initialize shared library /usr/java/jre1.5.0_13/plugin/i386/ns7/libjavaplugin_oji.so [/usr/java/jre1.5.0_13/plugin/i386/ns7/libjavaplugin_oji.so: undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE]

ILXO

It is indeed! We can always use extra hands - right now one of the big issues facing us is finding office space before June 18. Another is setting up a trac instance on a server somewhere for keeping track of projects and tasks. And then there are general projects and software development and teaching and the like, and some work on the low-cost laptop act advocacy effort that needs to be researched and done... what sorts of things are you interested in? Mchua 03:23, 16 May 2008 (EDT)

Thanks for adding the section on the OLPC Chicago page - one correction I made, though, is that we aren't an official OLPC effort; we're also an independent grassroots group. Mchua 15:35, 27 May 2008 (EDT)

testing new Asteroids

I'd be interested in trying out the new versions. warning -- my week-old laptop pretty much defines my Linux experience. I've spent most of my time on WinTel boxes. But, n00bs generating error-messages are a great test, especially if they dump some of that data back into the wiki....

Question: acceleration/deceleration seemed very sloooow. Is this normal, or one of the playability changes? In other verisons I'm more used to scooting around, then having to brake furiously. ah, it's probably the "sluggish" response you mentioned on the Asteroids page, right?

OtherMichael 12:09, 28 May 2008 (EDT)

porting BASIC games to python

>The sort of grab bag that was in 'What to do after you've hit return'. Math and logic games, simulation games.

You might want to check out some of the old books that used to be everywhere; I've got a copy of Tim Hartnells 'Second giant Book of Computer Games" on my work desk. Not work related, I'm sure, but an inspiration.... of sorts.

Online, we can find BASIC Computer Games Edited by David H. Ahl, published 1978

A few more (or repeats?) at http://www.dunnington.u-net.com/public/basicgames/

and more, possibly, withing the Creative Computing Archives


>IIRC someone has started something similar with translating some Commodore 64 BASIC programs to Python.

Mentioned at the bottom of the Pippy page

OtherMichael 12:19, 28 May 2008 (EDT)

Re: Implode bug

Thanks for the report! It looks like some APIs changed in the new version of Sugar. I'll see if I can get it fixed later this week. —Joe 04:12, 14 July 2008 (UTC)