Re: [Sugar-devel] [Karma] pls review jsdocs for Karma
2009/12/14 Bryan Berry br...@olenepal.org first, tks for the awesome feedback sure, np 2009/12/14 Felipe López Toledo zer.subz...@gmail.com hey man, I have read the online docs, here is my feedback: [ feature request ] add collision support for file names repeated Can you be more specific? I meant this: collision support for the 'name' property +1 avoid loading the same file twice reagards -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] pls review jsdocs for Karma
hey man, I have read the online docs, here is my feedback: [ feature request ] add collision support for file names repeated [ question ] how does the actual localization algorithm work? I mean, is there a way to localize all the content with one line? maybe, we could explain it in the docs [ bug? ] maybe, I'm wrong, but I think here is an error: /docs/symbols/Karma.html - ninja1.sword === sword + ninja1.weapon === sword [ suggestion ] /docs/symbols/Karma.karma.html Karma.karma.locale what is the default value?, I suggest en [ request ] /docs/symbols/Karma.kCanvas.html please, delete fps property, atm it does not have any function. [ suggestion ] I have seen some examples with code an explanation, I suggest to add comment characters (/* */) example: docs/symbols/Karma.karma.html Karma.karma.rand(lower, upper) var num = rand(0, 10); - num could be 0, 1, 2, 3 ... or 10 + //num could be 0, 1, 2, 3 ... or 10 - [ ] btw, I see there is no kimage, ksound and so on documentation, I think it is the problem with the JsDoc toolkit, right? regards 2009/12/3 Bryan Berry br...@olenepal.org argh! sorry I forgot the link http://karma.sugarlabs.org/docs/index.html 2009/12/3 Bryan Berry br...@olenepal.org I have added examples but there is still work to be done. Please let me know if it is hard to follow or if significant chunks are missing I haven't exactly figured out how to document methods like play() since there isn't an object specific to it I also haven't documented the kCanvas with the makeChain function. I fear that the makeChain function -- while truly a feat of metaprogramming and closure manipulation -- may be too clever. It also may not save that much typing since I will have to document each function anyways. Felipe what do you think? -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] possible to meet soon to discuss new karma.js?
I'm online, why not now? 2009/11/19 Bryan Berry br...@olenepal.org I have refactored jquery.karma.js into karma.js and am now changing adding_up to use it. Will u have time soon for us to talk and discuss it? I have made a lot of changes that I want to discuss w/ u -- Bryan W. Berry Senior Engineer OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [karma] when does an audio element created w/ new Audio() emit the onload event?
hi man It doesn't emit that event at the same time that a new Image() does. I need a way to throw an error to the user if the audio file isn't accessible. I do this for the images and it works quite well. I have used load and error and others events for new Image and new Audio and it seems that work fine, could you explain the event that you want to catch? I think audio.addEventListener(error, function(e) {}, false ); will do the work. btw. here is the list of events for media elements, section 4.8.10.12: http://dev.w3.org/html5/spec/Overview.html greetings! 2009/11/18 Bryan Berry br...@olenepal.org Hey subzero, Do you know when does an audio element created w/ new Audio() emit the onload event? It doesn't emit that event at the same time that a new Image() does. I need a way to throw an error to the user if the audio file isn't accessible. I do this for the images and it works quite well. I also need to this for svgs but haven't figured out the mechanism -- Bryan W. Berry Senior Engineer OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [karma] when does an audio element created w/ new Audio() emit the onload event?
2009/11/18 Bryan Berry br...@olenepal.org I was just playing around w/ it and I found the media.load() method loading audio remotely still doesn't work on chromium -- argh but works fine on FF 3.5. I need to go complain about that. mmm, interesting, what version/os are u using? I have tested loading audio files (ogg files) from remote and it works. The html, the js and the ogg files are in the same domain (localhost) tested with ff 3.5.5 and google chrome 4.0.223.16 both under windows http://karma-testing.sugarlabs.org/tests/index.html I add to put this code here http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/jkjs-refactor/js/karma.js#line324 after I added the event handlers if (this._type === sound){ this.media.load(); } yeah, I had the same problem, but believe it or not.. it is the default behavior (as the standard draft says) here is the KSound code (with the little fix) http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/js/jquery.karma.js#line1041 btw. chrome does not need that line On Wed, 2009-11-18 at 14:21 -0600, Felipe López Toledo wrote: hi man It doesn't emit that event at the same time that a new Image() does. I need a way to throw an error to the user if the audio file isn't accessible. I do this for the images and it works quite well. I have used load and error and others events for new Image and new Audio and it seems that work fine, could you explain the event that you want to catch? I think audio.addEventListener(error, function(e) {}, false ); will do the work. btw. here is the list of events for media elements, section 4.8.10.12: http://dev.w3.org/html5/spec/Overview.html greetings! 2009/11/18 Bryan Berry br...@olenepal.org Hey subzero, Do you know when does an audio element created w/ new Audio() emit the onload event? It doesn't emit that event at the same time that a new Image() does. I need a way to throw an error to the user if the audio file isn't accessible. I do this for the images and it works quite well. I also need to this for svgs but haven't figured out the mechanism -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] questions about jquery.karma.js
hi! 2009/11/4 Bryan Berry br...@olenepal.org I am refactoring jquery.karma.js using test-driven development. I think you did a great job in writing it in the first place, but I am far to lazy to manually test out the entire library every time I make a change. interesting, +1 to use test-driven I think it will consume more time, but it will make easier the introduction to new developers Reading through jquery.karma.js, I have some questions: --- the init function --- You have an init function that receives the assets to be loaded as an argument but actually loading them happens in the first part of the if statement of karma.main . To me it would make more sense to just pass the assets as an argument to karma.main({ /* assets object */}) and not the function call back as currently. Ideally I would like the use of Karma in lesson.js to be as simple as var k = Karma({ images: [ .], sounds : [...], surfaces : []}) then it will be necessary to define the i18n options first var k = Karma({ i18n: [], images: [ .], sounds : [...], surfaces : []}) other way what images/sounds are we suppose to load? // the rest of the code for a lesson I don't understand the if statement in karma.main. It seems to me that the callback to main function would never be called. That the first if clause will always be true and karma.main() won't be called a second time. I'm checking if there is something to load ( pendingToLoad ), if yes then I load all the stuff other way the else statement will be executed http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/js/jquery.karma.js#line489 anyway the callback function will be executed (if it's defined) --- taking out the jquery inside Karma --- I like how we have packaged karma as a jquery library because it gives us a standard pattern to follow. That said, I don't want to use jquery internally to the library so dojo or prototype fans can use it freely +1 we won't have *any* dependencies, anyway we're using specific parts (helpers) of jquery (example: $.each ) --- to prototype or not to prototype? I intend to use monkey-patch the Object object with the function create so Object.prototype.create = function ... this create function will be implemented in Ecmascript 5 and it matches Crockford's object(o) function for prototypal inheritance. This is my excuse for monkey patching ;) interesting, let me read (more) about in order to give you good arguments to discuss it -- KButton What is the purpose of KButton? there is no way to create buttons or clickeable elements inside a canvas, as for example, svg has its clickeable property (or something called like that) KButton is a fast way to create clickeable canvas sub-regions, this feature can be replaced by multiple canvas --- mouse.getRelativeCanvasPosition, handleEvents --- do you have any code that uses these functions so I can see an example of them in action? the mouse class is a helper when using the mouse, if you try to get the mouse coordinates in the common ways you will face some troubles, this method fix that problem. handleEvents as its name says it, it's a master dispatcher for events, actually just KButton uses it. those are the main questions I have for now. Thanks for reading this far in a long e-mail ;) thanks for asking ;) I know you are very busy with your exams right now, but do u think we could chat in the next couple days for about an hour about the structure of jquery.karma.js? I am on the east coast of the US right now so timezones are easier :) what about this weekend? cheers ;) -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] updating jsdoc for Karma
2009/10/19 Bryan Berry br...@olenepal.org On Mon, 2009-10-19 at 16:45 -0500, Felipe López Toledo wrote: I have been figuring how to produce the full jsdoc documentation, but I haven't had any luck, I have tried with @memberOf, @lends, @nameOf, and so on... argh, is there any problem u r having? then I could try as well. U could push your latest code back to g.sl.o and I could try from there my experiments break the code. the objective: to get the jsdoc from the undocumented code (in karma.js) I think you find another jsdoc tool, right? tks for clearing up the relation b/w KObject and Karma do you think it would be a lot of work to refactor jquery.karma.js to only use prototypal inheritance? I might try doing that at the beginning of next month. I think It will be not so hard, since I didn't use multiple inheritance. At this time, here is the list of changes I am planning to make on jquery.karma.js 1) change from classical to prototypal inheritance 2) change k.library.images and k.library.sounds to just k.images and k.sounds +1 3) Add KSVG as another type KSVG? what will be its function?, I think RaphaelJS gives you (almost) everything you need. maybe a top-level function?, please explain me. The more I work w/ j.k.js, the more I realize what a great job u did w/ it. It is really, really useful. thanks :) -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] updating jsdoc for Karma
I have been figuring how to produce the full jsdoc documentation, but I haven't had any luck, I have tried with @memberOf, @lends, @nameOf, and so on... 2009/10/14 Bryan Berry br...@olenepal.org On Wed, 2009-10-14 at 18:24 -0500, Felipe López Toledo wrote: I will try to fix it this weekend, I will keep u on track of positive or negative results. tks a lot dude quick questions, is KObject a separate class from Karma? yes, Karma is a separated class that initializes i18n, graphics, etc stuff Are KImage, KSound, KSurface all members of both the Karma class and KObject or just KObject? the unique relation that has Karma with KImage, KSound, KSurface is the shortcuts functions (for image, sound, surface). The shortcuts are factory-functions (avoid using new) and, if necessary they supply some extra configuration, as an example for KSurface. KImage, KSound, KSurface inherits from KObject. KObject mimics uses pseudo-classical inheritance correct? so each KImage, KSound instance gets its own copy of KObject? yes, KImage, KSound and so on has their own copy of KObject, also they have their own copy of KMedia. One drawback to this is that we have to load extra copies of the same KObject properties for each instance. If we used prototypal inheritance we would use a lot less memory as only the prototype object would take up memory. Would it be possible to use prototypal inheritance? possibly using the mixin pattern? just curious yes, I think it's possible but the prototypal inheritance doesn't support multiple inheritance. Actually we don't use it, but when I was designing the structure I thought it would be useful. -- Bryan W. Berry Senior Engineer OLE Nepal, http://www.olenepal.org regards -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] updating jsdoc for Karma
Hi guys I realize that, unfortunately, JsDoc did not show all classes and methods documentation. Example: JsDoc produced documentation for KSound (constructor) but no its methods (play, pause, etc..) atm, If you want to read the full documentation you will need to read it from the code (js file) Bryan, thanks for fixing the Jquery-Anonymous- prefix I originally used @memberOf bu it produced unexpected results, instead of commenting those lines, I simply added '_' I will try to fix it this weekend, I will keep u on track of positive or negative results. regards 2009/10/14 Bryan Berry br...@olenepal.org I changed some of the basic stuff in jsdocs but I still need Felipe's help when he gets a chance. http://karma.sugarlabs.org/docs/ I got rid of the confusing Jquery-Anonymous- prefix that was in front of a lot of classes. I will take a look again at it tomorrow. Felipe, you used the @memberOf_ tag in a number of places. Does that do anything different from @memberOf which doesn't have the trailing _ ? -- Bryan W. Berry Senior Engineer OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] raphaeljs more active than we thought
this is the official dojo.gfx documentation: http://docs.dojocampus.org/dojox/ghttp://docs.dojocampus.org/dojox/gfx/#id25 fx I have not found a great great tutorial, but here are some examples: http://download.dojotoolkit.org/release-1.0.2/dojo-release-1.0.2/dojox/gfx/demos/circles.html 2009/9/21 Bryan Berry br...@olenepal.org raphaeljs is actually a lot more active than we thought. Most of the commits happend on 1.0 branch and not master. http://github.com/DmitryBaranovskiy/raphael/commits/1.0 unfortunately, it still appears that all commits have been made by one author :( i am working my way thru the reference portion of the raphjs site, raphael does support function chaining in my limited time playing w/ it so far. I am also going to play w/ google's svgweb later today http://codinginparadise.org/projects/svgweb/docs/QuickStart.html and see what i think of it Do you know a good tutorial for dojox.gfx? -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [GIT] how to add an admin?
Hi guys does anyone know how to grant admin/owner privileges on a git project to a contributor user? -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] bug or not bug?
somehow, I should have overwritten your file :S I'll be more careful from now on this is the correct version: height || this.canvas.height I'm seeing your last version with mine to check if there is other bug 2009/9/9 Bryan Berry br...@olenepal.org I see u reverted a change I made in j.k.js http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/js% 2Fjquery.karma.js 698- height || this.canvas.height 698+ height || this.canvas.width earlier it read height || this.canvas.width and i changed it to height || this.canvas.height now u have changed it back. I am certain you have a good reason for this but can u explain it to me? tks -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] cleanup on few karma pages needed
hi roshan actually, Bryan and Christoph have been worked on the html files, so, I'm a little unfamiliar with them. ie. I don't if my changes will affect other documents anyway I will take a look of those pages. thanks :) On Wed, Sep 16, 2009 at 12:27 AM, roshan karki ros...@olenepal.org wrote: Sorry, my last email was quite rude. I was wondering if you can clean up the two pages (grade1.html and grade1mathematics.html). Its ok if you don't have enough time for it. I can do it next week but your guidance will be mostly appreciated. As these pages will server as a template for future pages, a design and code from a professional like you will make all our future pages robust and charming. Thanking you in advance and hoping for your support, Roshan Karki Software Developer OLEN On Wed, Sep 16, 2009 at 10:42 AM, Roshan Karki ros...@olenepal.orgwrote: Hello, The following two pages are totally screwed up, can you please clean them up. karma/mainline/chakra/grade1.html karma/mainline/chakra/grade1mathematics.html Thanks Roshan Karki Software Developer OLEN -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] changed jquery.karma.js to use 'name' property instead of ID
I think things like this will continue happening. I suppose that other libraries have had similar problems and I have not seen a jQuery-id or dojo-id, although that I have not seen them so far does not mean that they don't exist. In this case I would like to continue using id, of course making it very clear that the name we choose is for *internal use* of Karma. btw. When I read kid I think in a little guy, not in a karma-id. 2009/9/12 Bryan Berry br...@olenepal.org that said, i am tempted to use 'kid' as in 'karma id' to avoid just this confusion On Sat, 2009-09-12 at 08:43 +0100, Lucian Branescu wrote: Be careful, name is the historical precursor of id and it's valid in XHTML Transitional for the same purpose. 2009/9/12 Bryan Berry br...@olenepal.org: Felipe, I changed id property for images, sounds, and surfaces to name instead. Did this to avoid confusion with an html element's ID attribute. I have changed adding_up to reflect this change -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] audio does play for me in chromium
good! btw, are u using new Audio(..) or audio tag? I think g chrome supports audio but no new Audio(..) 2009/9/8 Bryan Berry br...@olenepal.org at least in chromium 4.0.205.0 (Ubuntu build 25032) this is good new as both u and i thought chromium wouldn't support ogg any time soon -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] updated project roadmaps on wiki and in launchpad
here are my suggestions for the roadmaps http://wiki.sugarlabs.org/go/Karma#Roadmaps great! I think we can add more features on the fly actually, I have a little question about SVG support: are u talking about svg animation support? (like dojo.gfx which has svg top level animation support) or are u talking in merging svg with canvas (svg2canvas)? (like burst engine) I haven't put the features in as blueprints because I actually found them a bit confusing to use. Perhaps later i will figure them out. Re: launchpad, so far I really like it! ok, a worth to try it Redmine definitely allows u to do some things more easily and quickly, like delete a ticket, but Launchpad integrates milestones, blueprints, bug reporting, and code quite elegantly. I do hope that integration w/ git won't be a headache afaik, git != launchpad regards 2009/9/8 Bryan Berry br...@olenepal.org Hey guys, here are my suggestions for the roadmaps http://wiki.sugarlabs.org/go/Karma#Roadmaps and on launchpad https://launchpad.net/karma/trunk These are just my ideas and they are up for discussion I haven't put the features in as blueprints because I actually found them a bit confusing to use. Perhaps later i will figure them out. Re: launchpad, so far I really like it! Redmine definitely allows u to do some things more easily and quickly, like delete a ticket, but Launchpad integrates milestones, blueprints, bug reporting, and code quite elegantly. I do hope that integration w/ git won't be a headache -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] reason for KLayer
It seems that it would be nice to add these layers in k.init just like we add sounds and images. I think the way that u add sounds and images is very intuitive. It would be nice to use the same mechanism for the layers as well. then it would look like k.init ( .. layers : [ { id: inline1, canvas:inlineCanvas1}, {id:inline2, canvas:inlineCanvas2}, {id:card1, width:250, height:250} ] sounds : images : ) I like your idea, it's a initializing method then it would be nice to iterate thru the layers w/ similar syntax to iterating thru the images or sounds $.each(library.layers, function ); I realize I can now iterate thru the layers w/ $.each(layers, function ...); but perhaps it would be easier to remember as library.layers because that is how we also access the sounds and images. What u think? mm, I'm not so sure I think the library should contain only objects that can be instantiated, ie. the library should store the original object, then, you could instantiate several copies of it, I don't see how to instantiate several klayers 2009/9/4 Bryan Berry br...@olenepal.org i have been looking at the method for adding layers -- k.layer( {id:inline1, canvas:inlineCanvas1} ); k.layer( {id:inline2, canvas:inlineCanvas2} ); k.layer( {id:card1, width:250, height:250} ); k.layer( {id:card2, width:250, height:250} ); k.layer( {id:card3, width:250, height:250} ); It seems that it would be nice to add these layers in k.init just like we add sounds and images. I think the way that u add sounds and images is very intuitive. It would be nice to use the same mechanism for the layers as well. then it would look like k.init ( .. layers : [ { id: inline1, canvas:inlineCanvas1}, {id:inline2, canvas:inlineCanvas2}, {id:card1, width:250, height:250} ] sounds : images : ) then it would be nice to iterate thru the layers w/ similar syntax to iterating thru the images or sounds $.each(library.layers, function ); I realize I can now iterate thru the layers w/ $.each(layers, function ...); but perhaps it would be easier to remember as library.layers because that is how we also access the sounds and images. What u think? -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] chaining operations, would be sweet
actually, I really really would like our plugin will support chaining there would be some methods that won't support chaining, ie: KMedia.isReady() //returns true or false KGraphic.isPointInPath(..) //returns true or false 2009/9/4 Bryan Berry br...@olenepal.org it would be awesome to set up chaining so we could do something like layer['timer'].save().clear(). fillStyle('#fff'). fillRect(10, startTimerY, endTimerX, offsetTimerY). restore(); I will try to look at how to do this this weekend. I don't mean this as another feature request ;) -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] Animations with Burst Engine?
Hi Christoph, Bryan yep, burst engine is great, afaik the only way to draw anything is to previously drawn it (using inkscape, corel?,...) and exporting the image to svg file. Maybe because in the beginning of Burst, it was intended as an aggregate of processing, but now it's independent library. cakejs, is awesome I realize that we agree on several methods. When I check it, I did not understand how to do various things, the documentation was ( is? ) very poor 2009/9/7 Bryan Berry br...@olenepal.org On Mon, 2009-09-07 at 13:22 +0545, Christoph Derndorfer wrote: Hey guys, I just stumbled across the Burst Engine project (http://hyper-metrix.com/#Burst) and thought this might be of interest to us. Especially since the Mouse tricks ( http://www.hyper-metrix.com/burst/development/doc/demos/js/Mouse%20Tricks/) and SVG Car ( http://www.hyper-metrix.com/burst/development/doc/demos/js/Burst%20Engine%20-%20Tutorial%202%20-%20SVG%20Groups/) demos look pretty interesting. subzero took a look at Burst and cakejs earlier this year. Both were good but neither were stable or reliable enough at that time for us to depend on them. After we release 0.1 (hopefully Friday) it may be a good time to revisit both cakejs and burst. Iirc, Burst depends on processing.js which is a powerful framework but also one that has a lot of overhead. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] reason for KLayer
I have added surface to k.init and fixed the bug (there was other line missed .., thanks for your help) pls. take a look of this: http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/raw/4a5c55843ce2643d3368bf7ba8ea635e473d8f19/examples/adding_up_to_10/index_multiple.html cheers 2009/9/7 Bryan Berry br...@olenepal.org On Mon, 2009-09-07 at 11:39 -0500, Felipe López Toledo wrote: I think the library should contain only objects that can be instantiated, ie. the library should store the original object, then, you could instantiate several copies of it, I don't see how to instantiate several klayers I agree now that i have spent more time w/ j.k.js -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] a possible bug in jquery.karma.js
btw. should we use launchpad.net fro reporting bugs? I don't know. I have joined launchpad but haven't taken the time to look at it. launchpad has a bug tickets system: https://bugs.launchpad.net/~karma-team Are many others in the SL community using Launchpad? If not many are then it may be better for us to just use Trac no idea, I think http://dev.sugarlabs.org/ has the biggest amount of sugar labs developers ;) 2009/9/6 Bryan Berry br...@olenepal.org On Sun, 2009-09-06 at 20:30 -0500, Felipe López Toledo wrote: :| yep, that is a bug the problem is this line: this.container.appendChild( this.canvas ); from what I understand this if block is supposed to get you the context of canvas that is already in the DOM. The this.container.appendChild(..) adds a new canvas element w/ the same ID. Is this what you intend? no!, my intention was to add the previously created canvas element as a child of the specified container, this is useful if are not using inline canvas declaration... this line must me inside the if block around line 627 thanks for reporting the bug. btw. should we use launchpad.net fro reporting bugs? I don't know. I have joined launchpad but haven't taken the time to look at it. Are many others in the SL community using Launchpad? If not many are then it may be better for us to just use Trac -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] a possible bug in jquery.karma.js
:| yep, that is a bug the problem is this line: this.container.appendChild( this.canvas ); from what I understand this if block is supposed to get you the context of canvas that is already in the DOM. The this.container.appendChild(..) adds a new canvas element w/ the same ID. Is this what you intend? no!, my intention was to add the previously created canvas element as a child of the specified container, this is useful if are not using inline canvas declaration... this line must me inside the if block around line 627 thanks for reporting the bug. btw. should we use launchpad.net fro reporting bugs? 2009/9/4 Bryan Berry br...@olenepal.org Felipe, on line 636 of jquery.karma.js http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/js/jquery.karma.js#line636 if ( this.canvas.getContext ) { this.ctx = this.canvas.getContext(2d); this.container.appendChild( this.canvas ); } from what I understand this if block is supposed to get you the context of canvas that is already in the DOM. The this.container.appendChild(..) adds a new canvas element w/ the same ID. Is this what you intend? It produces a result that is not why expected. My drawing operations happen in an area completely unrelated to my actual canvas. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] reason for KLayer
what i really like from KLayer is to save me from having write all this code like here: http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/multicanvas/examples/adding_up_to_10/js/lesson.js#line23 initializing all the canvas and context objects yep, less typing I have added some things to KLayer: + inline canvas support (canvas parameter) + addEventListener shortcut + removeEventListener shortcut please try: http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/raw/dff6d37e805be1e956378e592389dfdaeabf236d/examples/adding_up_to_10/index_multiple.html the first and the second canvases are created inline cheers 2009/9/3 Bryan Berry br...@olenepal.org what i really like from KLayer is to save me from having write all this code like here: http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/multicanvas/examples/adding_up_to_10/js/lesson.js#line23 initializing all the canvas and context objects I like how your initialization of the imgs and sounds saves a lot of typing. It would be nice to do that for the canvas and context objs as well by abstracting them into the higher level KLayer object -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] Re: progress and issues w/ adding_up
I think it could be useful to rename klayer to KArea or KZone, an object that gives u easy access to the canvas and context. I like the objective, but I dislike the name. I think it could be useful to rename klayer to KArea or KZone, an object that gives u easy access to the canvas and context. We would also need this object later when we try to save its image state, i.e. save what has been drawn so we can come back they don't lose everything that has happened on the canvas. I am talking about save() and restore() in a more complex and powerful way than ctx.save() or ctx.restore(), which only save the drawing state. I think, you're referring to saving like taking a canvas snapshot and restoring it, rigth? 2009/9/3 Bryan Berry br...@olenepal.org also another issue i have is that I can't attach a kbutton to a specific context. I hacked it by adding the event listener directly to the canvas element. I think it could be useful to rename klayer to KArea or KZone, an object that gives u easy access to the canvas and context. We would also need this object later when we try to save its image state, i.e. save what has been drawn so we can come back they don't lose everything that has happened on the canvas. I am talking about save() and restore() in a more complex and powerful way than ctx.save() or ctx.restore(), which only save the drawing state. also, with KArea or KZone, we could use that object to move the html element around, be shrink it, reposition it on the page. On Thu, 2009-09-03 at 17:56 +0545, Bryan Berry wrote: I have adding_up kind of working w/ the new html layout, but it doesn't actually add up to the correct sum :( Problem #1 I kept getting an infinite loop in this section in the distance2() call I have to admit I don't exactly understand what distance2 is doing http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/multicanvas/examples/adding_up_to_10/js/lesson.js#line142 for ( var j=0; jpos.length; j++) { if ( k.geometry.distance2( pos[j], {x: x, y: y} ) 80 ) { flag = true; break; } } }while ( flag === true ); pos.push( { x:x, y: y } ); k.library.images[ imgId ].draw(ctx, x, y )} Also, i don't understand how u can call distance2 w/ pos[j] when pos is still an empty array. Maybe it is because js just does a lot of weird stuff. Problem #2 None of the answer boxes holds the correct sum :( I am not sure where the logic error is but I am hunting for it! as we discussed yesterday, i have put all this work on the multicanvas tree. http://git.sugarlabs.org/projects/karma/repos/mainline/trees/multicanvas -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] progress and issues w/ adding_up
Problem #2 None of the answer boxes holds the correct sum :( I am not sure where the logic error is but I am hunting for it! as we discussed yesterday, i have put all this work on the multicanvas tree. http://git.sugarlabs.org/projects/karma/repos/mainline/trees/multicanvas I have fixed the bug the problem was here: http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/122ecd00112941ccde74932aef01c93d1b5c7cdb/examples/adding_up_to_10/js/lesson.js#line179 the problem was that this inside the callback function (for the click listener) is not the same this of the each function I changed this[id] to item.id + changed language to spanish :) (btw. could u get some decent english audio for correct/incorrect ?) + I have done some other changes (stylistic) 2009/9/3 Bryan Berry br...@olenepal.org I have adding_up kind of working w/ the new html layout, but it doesn't actually add up to the correct sum :( Problem #1 I kept getting an infinite loop in this section in the distance2() call I have to admit I don't exactly understand what distance2 is doing http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/multicanvas/examples/adding_up_to_10/js/lesson.js#line142 for ( var j=0; jpos.length; j++) { if ( k.geometry.distance2( pos[j], {x: x, y: y} ) 80 ) { flag = true; break; } } }while ( flag === true ); pos.push( { x:x, y: y } ); k.library.images[ imgId ].draw(ctx, x, y )} Also, i don't understand how u can call distance2 w/ pos[j] when pos is still an empty array. Maybe it is because js just does a lot of weird stuff. Problem #2 None of the answer boxes holds the correct sum :( I am not sure where the logic error is but I am hunting for it! as we discussed yesterday, i have put all this work on the multicanvas tree. http://git.sugarlabs.org/projects/karma/repos/mainline/trees/multicanvas -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [Karma] Karma multiple canvases
you can see a workeable example here: http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/examples/adding_up_to_10/index_multiple.html(raw blob data) I'm using this jquery.karma file : http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/js/jquery.karma-0.5.js 2009/9/1 Bryan Berry br...@olenepal.org -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] experimenting w/ canvas, drawImage draws a distorted pic
canvas id=myCanvas width=200 height=200/canvas style #mycanvas { width: 200; height: 200; } /style yep, right from http://dev.w3.org/html5/spec/Overview.html#the-canvas-element The intrinsic dimensions of the canvashttp://dev.w3.org/html5/spec/Overview.html#the-canvas-elementelement equal the size of the coordinate space, with the numbers interpreted in CSS pixels. However, the element can be sized arbitrarily by a style sheet. During rendering, the image is scaled to fit this layout size. The size of the coordinate space does not necessarily represent the size of the actual bitmap that the user agent will use internally or during rendering. On high-definition displays, for instance, the user agent may internally use a bitmap with two device pixels per unit in the coordinate space, so that the rendering remains at high quality throughout. I don't use css for setting the canvas width and height, I always get an unexpected result :S On Tue, Sep 1, 2009 at 5:13 AM, Bryan Berry br...@olenepal.org wrote: On Tue, 2009-09-01 at 02:36 -0700, S Page wrote: On Mon, Aug 31, 2009 at 6:51 AM, Martin Langhoffmartin.langh...@gmail.com wrote: Our pixels are rather special. If you are using Browse.xo or anything using hulahop/gecko make sure you read Mihai Sucan's notes on the topic... wikipage which I have now lost track of... Probably http://wiki.laptop.org/go/HTML_canvas_performance ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel I am aware of that issue but I am referring a different one. for whatever reason a canvas pixel is not equivalent to a css pixel so the following methods of specifying canvas dimensions are not equivalent: canvas id=myCanvas width=200 height=200/canvas style #mycanvas { width: 200; height: 200; } /style -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [karma] early draft of karma presentation
Hi in my early post I talked about canvas vs SVG (slide #28) why not processingJS? (slide #28) here some technical stuff: --- Browser Optimization (slide #29) Karma lessons must run under the XO-1. Default browser: Browse ( based on Gecko ) Experimental: Surf ( based on webkit ) No problem with html elements (div, img, ...) What about canvas content? Under a normal browser clearing and redrawing the canvas objects may not be a problem, but remember that the XO has not that kind of normal resources. We must use them efficiently. If we have no option, it's preferable to spend cpu than spend memory. We emphasize rendering speed over quality image-rendering / firefox 3.6 alpha webkit has nothing Quadrilaterals (http://karma.sugarlabs.org/quadrilaterals/) how does it work? 2 canvases the first for temporal drawing of the current line cleared and re drawn when mousemove the second has the drawn polygon, background, etc.. Quadrilaterals under Browse has a severe lag problem (unusable) Quadrilaterals under Surf works nice Surf-106 is faster than Browse-102, should we use Webkit or Gecko? -- Web Workers (slide #30) We tried to use web workers to handle animations: an animation core. The animation core would be running as a worker thread: doing the neccesary calculations for the animated objects and sending messages to the root document to manipulate (update) the neccesary html elements (canvas...) We try to combine actions with predictable behaviour. Problems: it's not possible to send functions as worker messages, so, it's hard to use callbacks. how to share memory (variables) between the root document and the worker thread without copying that data? -- 2009/8/21 Christoph Derndorfer christoph.derndor...@gmail.com Hey guys, I basically agree with the points raised here so far and have a couple to add myself: slide #11: I would also mentioned that you had tried eToys/Squeak slide #24: I'm not sure we agreed on each lesson having to include a tutorial and an exercise. Of course this is a good goal but the question is whether we should really make that a requirement? slide #32: i81n;-) slide #43: add link to Karma blog at http://karmaproject.wordpress.com/, add at least one e-mail address for direct contact, add link to Sugar mailing-list (http://lists.sugarlabs.org/listinfo/sugar-devel) That's all I can think of for now... Christoph 2009/8/21 Felipe López Toledo zer.subz...@gmail.com Hi guys Joshua, Bryan has talked Christoph and me about you, thanks for writing :) * I would update the slide Nobody Wants to Help, to something like, Flash is a poor longterm solution. I would drop the claim Flash Devs don't like to share. I would - Despite the great work of the free software community on projects like Gnash and the GameSWF library, there is very little in terms of sharing and collaboration of free software Flash projects. +1 - There is no free software Flash development tool, mmm, I remember MTASC http://www.mtasc.org/ instead almost all Flash development is done through the proprietary software created by Macromedia. +1 Bryan, really good draft, here some initial feedback: 1. SVG vs canvas I used RaphalJS (http://raphaeljs.com/) demos to test SVG animatios using Browse and Surf, results: under surf: the XO crashed several times :( under Browse: the animations look really good, but the performance is really bad (you will get a several lag when clicking something, etc...) canvas is low level so, canvas drawing is faster than SVG drawing. about manipulation, well, It's really easy to manipulate SVG Objects (everything you draw is an object) but canvas is just a box where you can draw, Karma provides (some of) that objects. 2. why not processingjs? processingjs by default uses processing language, then if you want to use it you'll need to learn processing syntax... to support that syntax, processingjs uses a parser, so, it's slower than simple JS. in fact, you can use javascript to access processingjs objects, but.. the actual processingjs library is not designed to work under the XO, neither to work as a jQuery plugin. I think jresig doesn't encourage to use processing (syntax), he just take processing because processing was there (looking for the reference) I will add more info on the technical stuff. regards On Thu, Aug 20, 2009 at 7:57 PM, Joshua Gay j...@ck12.org wrote: Bryan, This is looking good so far. Here are some initial thoughts, * It would be good to have a handout that puts all this info on a single double side sheet of paper (a suggestion taken from Edward Tufte's essay The Cognitive Style of Powerpoint) for people to read along with and to look at afterward. * I think overall it can be trimmed down abit when it is being pitched to specific groups (e.g., JS crowd). * I would update the slide Nobody Wants to Help, to something like, Flash is a poor longterm solution. I would drop the claim Flash Devs
Re: [Sugar-devel] key jquery files missing from karma git repo
what??!!! , I think that is my fault, I remember that I cleaned the git repository :( btw. I think that a massive cleaning will help, what do you think? 2009/8/23 Bryan Berry br...@olenepal.org hey subzero, I was messing around w/ adding_up_to_10 and I found that jquery-1.3.2.min.js and karma.Gettext.js are missing from ROOT/js/ of the repo. Perhaps they were deleted or the files just were not added to git? either way, that should explain why adding_up_to_10 works on karma.sl.o but not after pulling from trunk -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [Karma] meeting 24 august
hi team :) here some notes for tomorrow's meeting: http://wiki.sugarlabs.org/go/Karma:Meeting_24_Aug_2009 cheers -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Karma] Re: svg and png for subjects in chakra
(http://karmaproject.files.wordpress.com/2009/08/chakra33.png?w=872h=428)? Another thing we should think about is just wide and high we want to keep that navigation area. The current dimensions seem to work quite well on the XO with the number of currently included icons. However for larger lesson bundles and especially also the lesson selection itself I'm not sure whether this provides us with enough screen real estate to nicely accommodate everything. Let me know what you think. Christoph Christoph Derndorfer schrieb: Great, thanks a lot! I'll integrate them into the Chakra mockup tomorrow... :-) Christoph Om Prakash Yadav schrieb: Here are the buttons in individual transparent PNG file format. -Original Message- From: Christoph Derndorfer [mailto:e0425...@student.tuwien.ac.at] Sent: Wednesday, August 19, 2009 12:46 PM To: Om Prakash Yadav Cc: 'Bryan Berry' Subject: Re: new svg and jpg Great stuff! Would it be possible for you to send me the PNGs for the individual buttons so I can easily integrate them in my current Chakra mockup? Thanks in advance, Christoph Om Prakash Yadav schrieb: Modified and new buttons, please check them out. The buttons for grades for the main screen will follow the same style but with letters only. I can give them to you in transparent PNG format for use in HTML page. -Original Message- From: Christoph Derndorfer [mailto:e0425...@student.tuwien.ac.at] Sent: Tuesday, August 18, 2009 2:14 PM To: Om Prakash Yadav Cc: 'Bryan Berry' Subject: Re: new svg and jpg I generally really like them but think that the fadeout into the white at the top is too strong at the moment. Christoph Om Prakash Yadav schrieb: Tell me how you like these and I will make the buttons for the rest of the subjects. -Original Message- From: Christoph Derndorfer [mailto:e0425...@student.tuwien.ac.at] Sent: Monday, August 17, 2009 10:30 PM To: Bryan Berry Cc: Om Prakash Yadav Subject: Re: new svg and jpg Please find attached the latest version with the label now being health rather than medicine. Christoph Christoph Derndorfer schrieb: Quite a good start I dare say! I'll change the medicine to health text once the Inkscape download is finished (any day now!!!;-) Christoph Bryan Berry schrieb: - --- -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: christ...@olpcnews.com -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Karma: bundle layout improve
Christoph already used tutorial instead of reading in the Karma Dictionary http://wiki.sugarlabs.org/go/Karma/Dictionary. do u mind if we go w/ that? IMHO tutorial is also a better name because reading infers a relatively passive use and it generally lends itself more to books and using the Read activity. I think tutorial is a how to variant, but reading is what Christoph says... I don't have a better name, so tutorial is ok. Looking at the lesson layout, should we have generic assets that we don't expect to change per locale? Well, things like backgrounds or UI elements such as arrows might change in some scenarios but generally speaking I do expect quite a lot of these assets to remain the same regardless of the language. Also sound files in language learning classes won't change even when the tutorial/game/exercise itself is in a different language. common assets for game, exercise and tutorial.. so, it will be generic assets, right? Additionally, what will be the layout w/in tutorial/, game/, and exercise/ ? Not sure whether you or Felipe added this in the meantime but there's a suggestion at http://wiki.sugarlabs.org/go/Karma/Bundle_layout#Reading.2C_Game_and_Exercise yes, that is the suggested layout regards 2009/8/17 Christoph Derndorfer christoph.derndor...@gmail.com: 2009/8/16 Bryan Berry br...@olenepal.org Christoph already used tutorial instead of reading in the Karma Dictionary http://wiki.sugarlabs.org/go/Karma/Dictionary. do u mind if we go w/ that? IMHO tutorial is also a better name because reading infers a relatively passive use and it generally lends itself more to books and using the Read activity. Looking at the lesson layout, should we have generic assets that we don't expect to change per locale? Well, things like backgrounds or UI elements such as arrows might change in some scenarios but generally speaking I do expect quite a lot of these assets to remain the same regardless of the language. Also sound files in language learning classes won't change even when the tutorial/game/exercise itself is in a different language. Additionally, what will be the layout w/in tutorial/, game/, and exercise/ ? Not sure whether you or Felipe added this in the meantime but there's a suggestion at http://wiki.sugarlabs.org/go/Karma/Bundle_layout#Reading.2C_Game_and_Exercise Cheers, Christoph -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: christ...@olpcnews.com -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Karma: bundle layout improve
Can you update the wiki to reflect this new structure? done. Please take a look of it: http://wiki.sugarlabs.org/go/Karma/Bundle_layout#Lesson 2009/8/15 Bryan Berry br...@olenepal.org: On Fri, 2009-08-14 at 19:10 -0500, Felipe López Toledo wrote: yes, I'm aware, but at the end it's an advantage to separate the content: with the current design and common assets, if the coder is writing the game an try to get an image from exercise will need to access assets / {lag-code | generic} / images/ exercise/ {imageFile}, now... let's think, what if I want to take the game and merge it with other lesson: I will need to look inside the code and look for the common assets (in order to copy them and move them). and what if the {imageFile} already exists inside the common destiny (exercise) folder? need to rename some image and fix some code :S I think keeping things in different folders will bring clearness of what are we coding and where are the files stored. So, we will be able to copy and just paste the whole file and everything will be working. Let's follow your suggestion then. At this point it is better to make things easier for developers than to optimize for a problem we haven't actually encountered yet. Can you update the wiki to reflect this new structure? -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Karma: bundle layout improve
Hmm, your proposal could work. Before I air my concerns, I don't think we should use the word lesson to refer to the tutorial part of a Karma lesson. Calling the union of lesson + exercise+game+lesson plan also a lesson is confusing. I prefer we call the 1st part of a karma lesson a tutorial or reading. I think that will make things less confusing than using lesson twice in slightly different contexts. +1 for reading There will likely be a lot of common assets between the tutorial, game, and exercise. Splitting them up entirely could create a lot of duplication as the same images and sounds are present in both. However, it also could make life easier for the programmer, who wouldn't have to prefix each image w/ exercise or tutorial. yes, I'm aware, but at the end it's an advantage to separate the content: with the current design and common assets, if the coder is writing the game an try to get an image from exercise will need to access assets / {lag-code | generic} / images/ exercise/ {imageFile}, now... let's think, what if I want to take the game and merge it with other lesson: I will need to look inside the code and look for the common assets (in order to copy them and move them). and what if the {imageFile} already exists inside the common destiny (exercise) folder? need to rename some image and fix some code :S I think keeping things in different folders will bring clearness of what are we coding and where are the files stored. So, we will be able to copy and just paste the whole file and everything will be working. I think we should change the current layout to reflect some of your points http://wiki.sugarlabs.org/go/Karma/Bundle_layout#Lesson but I am wary or separating the tutorial, exercise, and game so sharply renamed lesson to reading greetings On Fri, Aug 14, 2009 at 8:13 AM, Bryan Berrybr...@olenepal.org wrote: On Fri, 2009-08-14 at 11:18 +0545, Christoph Derndorfer wrote: 2009/8/14 Felipe López Toledo zer.subz...@gmail.com Hello there I know we already talked about the Bundle_layout[ 1 ] but, I suggest to reorganize Lesson structure using this: lesson_name/ index.html # lesson content lesson/ # lesson folder game/ # game folder exercise/ #exercise folder lesson, game and exercise folder will contain index.html # the lesson, game or whatever css/ js/ assets/ generic/ images/ audio/ video/ ... {lang-Code}/ images/ audio/ video/ Hmm, your proposal could work. Before I air my concerns, I don't think we should use the word lesson to refer to the tutorial part of a Karma lesson. Calling the union of lesson + exercise+game+lesson plan also a lesson is confusing. I prefer we call the 1st part of a karma lesson a tutorial or reading. I think that will make things less confusing than using lesson twice in slightly different contexts. Subzero, the benefit of your approach is that it makes it easier to reuse games and exercises in new lessons. This makes sense when an adding game can relatively easily be transformed into a subtraction game. At the same time, the related tutorial and exercise could easily be remade for subtraction. There will likely be a lot of common assets between the tutorial, game, and exercise. Splitting them up entirely could create a lot of duplication as the same images and sounds are present in both. However, it also could make life easier for the programmer, who wouldn't have to prefix each image w/ exercise or tutorial. I think we should change the current layout to reflect some of your points http://wiki.sugarlabs.org/go/Karma/Bundle_layout#Lesson but I am wary or separating the tutorial, exercise, and game so sharply but let me think about this more ;) -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Design help needed for web applications within Sugar
I would suggest a mechanism to export all or just the selected SSB sites and the import feature Gary C Martin wrote: On 11 Aug 2009, at 18:25, Eben Eliason wrote: On Tue, Aug 11, 2009 at 1:13 PM, Lucian Branesculucian.brane...@gmail.com wrote: 2009/8/11 Simon Schampijer si...@schampijer.de: On 08/11/2009 12:14 PM, Lucian Branescu wrote: In fact, there is the option to install the SSB activity as well, http://dl.getdropbox.com/u/317039/create%20ssb.png Yes seen that. rgs on IRC suggested that the 'Keep in Journal' button could either save an offline version by itself or there could be a drop down with several options. Do you mean the activity keep button? Like the one in Write - where we have the options to save a richt text format or others? If yes - yeah that sounds like a good option actually. I'll go ahead and try to implement that, then. About modifying SSBs, right now all the tools for modification are inside the actul activity. I'd like to see modification of userscripts and userstyles done in 'View Source' (as well). Oh, yeah view source. Sounds interesting to me, too. We just need to make sure to not overload it. I mean editing text is easy. When it comes to changing the icon it gets more complicated, though. Perhaps the Sugar shell should allow users to change activity icons? It's an unfortunate fact that there is no activity suitable for creating SVG icons for Sugar. We need a Draw activity to fill this gap and compliment Paint... In any case, View Source already has Document view and Bundle view. We could either expand Document view to have a TreeView on the left like Bundle view or create a separate Editables view. I hesitate to overload the view source mechanism this way, actually. Should we instead be providing a seamless mechanism for modifying code, icons, etc. with other activities, so that users (eventually) have choices regarding their editors? View source is a logical step in the process, so we should certainly expose the ability to launch into editing from there, of course. I suppose an alternative argument can be made for the level of integration we could provide when editing within the view source dialog. If we could hook it up to have real-time effect on the running activity, so that making a change couldbe tested right away, that may make it worth doing... If View Source makes it to Edit Source, it could be reasonable to expect that if you do modify and then close the source editor you would raise an Activity like alert bar with something like Activity needs to re-start for changes to take effect (Discard changes) (Re- start activity). I understand that Guido van Rossum had some proposals for Sugar to pick up live Python edit changes, but I guess that's water long under the bridge now given current Sugar Labs resources. Regards, --Gary ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- View this message in context: http://n2.nabble.com/Design-help-needed-for-web-applications-within-Sugar-tp3420222p3427921.html Sent from the Sugar Development mailing list archive at Nabble.com. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Karma git, where to put my early UI designs
Hi man! After donkeying around (thanks to dsd_ for that expression;-) with cygwin + git + ssh for the better part of the afternoon (lots of swearing and crying included) I went the TortoiseGit + msysgit route and have now finally managed to make the first commit to the Karma repository (don't laugh, I know who you are!). don't worry... :) Okay, I added the current state of things to lessons/quadrilaterals/. Changes compared to yesterday's version: * moved download from a separate tab into the support tab * moved the lesson into an iFrame that loads lesson.html as suggested by Felipe (= this in turn has led to an odd issue as Firefox 3.5 now doesn't seem to load the complete lesson while Chrome 3 does it just fine; need to investigate that) * cleaned out the lesson specific .css and .js files from index.html yep, I got an error wit ff: Error: uncaught exception: [Exception... Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMCanvasRenderingContext2D.font] nsresult: 0x80004005 (NS_ERROR_FAILURE) location: JS frame :: file:///D:/Documents%20and%20Settings/Administrador/Escritorio/karma3/mainline/lessons/quadrilaterals/js/quadrilaterals.js :: anonymous :: line 153 data: no] line 153: ctx.font = bold 13px sans-serif; I think, it's not the font because it works fine when I load lesson.html on ff mmm, I'll work around this. While building the example I also noticed that the current examples/quadrilaterals lesson doesn't really meet our bundle requirements in terms of naming conventions (e.g. uses activity.(css|js) instead of lesson_name.(css|js)) and file locations (e.g. images in images/ instead of assets/* /images). Mentioning this just as a heads-up in case anyone looks at or works on that code in the future. I worked around the lesson and after that we defined the layout. That's an old version. I'll fix it. Regards. 2009/7/30 Christoph Derndorfer christoph.derndor...@gmail.com 2009/7/30 Felipe López Toledo zer.subz...@gmail.com I have added u to as a Karma commiter :) After donkeying around (thanks to dsd_ for that expression;-) with cygwin + git + ssh for the better part of the afternoon (lots of swearing and crying included) I went the TortoiseGit + msysgit route and have now finally managed to make the first commit to the Karma repository (don't laugh, I know who you are!). i think u should put the different ui designs in ROOT/ as index1.html, index2.html, indexn.html +1 Okay, I added the current state of things to lessons/quadrilaterals/. Changes compared to yesterday's version: * moved download from a separate tab into the support tab * moved the lesson into an iFrame that loads lesson.html as suggested by Felipe (= this in turn has led to an odd issue as Firefox 3.5 now doesn't seem to load the complete lesson while Chrome 3 does it just fine; need to investigate that) * cleaned out the lesson specific .css and .js files from index.html While building the example I also noticed that the current examples/quadrilaterals lesson doesn't really meet our bundle requirements in terms of naming conventions (e.g. uses activity.(css|js) instead of lesson_name.(css|js)) and file locations (e.g. images in images/ instead of assets/*/images). Mentioning this just as a heads-up in case anyone looks at or works on that code in the future. Christoph 2009/7/29 Christoph Derndorfer christoph.derndor...@gmail.com Okay, then I'll do that for Chakra UI suggestions and put lesson related UI stuff into lesson/. Christoph 2009/7/29 Bryan Berry br...@olenepal.org i think u should put the different ui designs in ROOT/ as index1.html, index2.html, indexn.html On Tue, 2009-07-28 at 20:28 -0500, Felipe López Toledo wrote: Hi Christoph I think you should put the content where it supposed to go. I mean, if you're working around /index.html, then the fie must be /index.html in this way we will have the same content. btw. let me know your username in order to add you as a contributor into the project 2009/7/28 Christoph Derndorfer christoph.derndor...@gmail.com Finally managed to get cygwin + git up and running and now have a clone of mainline on my machine. Now I was wondering where I should put my early UI designs, examples/ or somewhere else? Thanks, Christoph -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: christ...@olpcnews.com -- Felipe López Toledo -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: christ...@olpcnews.com -- Felipe López Toledo -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: christ...@olpcnews.com -- Felipe López Toledo ___ Sugar-devel mailing list Sugar
Re: [Sugar-devel] Karma git, where to put my early UI designs
I have added u to as a Karma commiter :) i think u should put the different ui designs in ROOT/ as index1.html, index2.html, indexn.html +1 2009/7/29 Christoph Derndorfer christoph.derndor...@gmail.com Okay, then I'll do that for Chakra UI suggestions and put lesson related UI stuff into lesson/. Christoph 2009/7/29 Bryan Berry br...@olenepal.org i think u should put the different ui designs in ROOT/ as index1.html, index2.html, indexn.html On Tue, 2009-07-28 at 20:28 -0500, Felipe López Toledo wrote: Hi Christoph I think you should put the content where it supposed to go. I mean, if you're working around /index.html, then the fie must be /index.html in this way we will have the same content. btw. let me know your username in order to add you as a contributor into the project 2009/7/28 Christoph Derndorfer christoph.derndor...@gmail.com Finally managed to get cygwin + git up and running and now have a clone of mainline on my machine. Now I was wondering where I should put my early UI designs, examples/ or somewhere else? Thanks, Christoph -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: christ...@olpcnews.com -- Felipe López Toledo -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: christ...@olpcnews.com -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Karma git, where to put my early UI designs
Hi Christoph I think you should put the content where it supposed to go. I mean, if you're working around /index.html, then the fie must be /index.html in this way we will have the same content. btw. let me know your username in order to add you as a contributor into the project 2009/7/28 Christoph Derndorfer christoph.derndor...@gmail.com Finally managed to get cygwin + git up and running and now have a clone of mainline on my machine. Now I was wondering where I should put my early UI designs, examples/ or somewhere else? Thanks, Christoph -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: christ...@olpcnews.com -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Using Nutch for lesson search in Karma
while reading Mike Dawson's e-mail on the SDLI I stumbled across his reference to Nutch (http://wiki.apache.org/nutch/Features) and was now wondering whether this might a potential solution for lesson search in Karma? what kind of search do you have in mind? I mean, the Karma lessons use i18n, so looking some string into the (plain) html files will only match with the msgid. or specific text that don't use i18n. I have read that nutch can support multiple formats, I think it would be easy to search into .po/.json files (where the real lang-text lives). Well, my first thought is if xapian can serve you well, the go for it because it's already installed. + 1 2009/7/28 Christoph Derndorfer christoph.derndor...@gmail.com: 2009/7/28 Tomeu Vizoso to...@sugarlabs.org 2009/7/28 Christoph Derndorfer christoph.derndor...@gmail.com: Hi, while reading Mike Dawson's e-mail on the SDLI I stumbled across his reference to Nutch (http://wiki.apache.org/nutch/Features) and was now wondering whether this might a potential solution for lesson search in Karma? What do you think? Well, my first thought is if xapian can serve you well, the go for it because it's already installed. Another question is if it should be part of the platform so activities can rely on it being installed in future releases. Thanks, I'll look into xapian as well. :-) Christoph -- Christoph Derndorfer co-editor, olpcnews url: www.olpcnews.com e-mail: christ...@olpcnews.com -- Felipe López Toledo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] status of adding up to 10?
Thanks for the suggestions :) On Fri, Jul 24, 2009 at 6:15 AM, Lucian Branescu lucian.brane...@gmail.comwrote: http://www.jslint.com/, made by Crockford himself. There are others as well. 2009/7/24 Tomeu Vizoso to...@sugarlabs.org: On Thu, Jul 23, 2009 at 14:20, Lucian Branesculucian.brane...@gmail.com wrote: Crockford doesn't like it because if you forget to put new for a class declaration that otherwise needs it, all the attributes in the class are set on the global namespace. Hence, dangerous to forget. He suggests using factory functions, that create and return objects instead. Are there static analysis tools such as pylint for JS? Might help catching up these situations. Regards, Tomeu Either way is fine, as long as your framework code is non-invasive. 2009/7/23 Bryan Berry br...@olenepal.org: it is fine w/ me I can't remember exactly why crockford doesn't like it On Wed, 2009-07-22 at 22:37 -0500, Felipe López Toledo wrote: Hi. I know, you've been playing around JS, maybe you have noticed about the *new* reserved word and its role. according to Douglas Crockford, JavaScript: The Good Parts, new is dangerous (I'm agree) and the Use of this style of constructor functions is not recommended. others, like Jhon Resig, Pro JavaScript Techniques just use it. I have found it's really normal to use new with JS (prototypal inheritance), so I'm using it. If someone wants me to change it. It's a really good moment to raise the hand. example: var p=new Point(1,2); also, the OOP style exists getters and setters. var xval = p.getX( ) p.setX( 2 ); I prefer var xval = p.x; p.x = 2; jQuery works in the second way (or at least it's closer) felipe 2009/7/22 Felipe López Toledo zer.subz...@gmail.com working on I think you're going to present karma, so I'm coding the plugin: jquery.karma.js 2009/7/22 Bryan Berry br...@olenepal.org hey dude, what is the status? -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [Fwd: geometry functions needed for Karma]
Hi devendra I think it would be better we use some existing javascript libraries than to start from the scatch. so that we could get functon and classes to be used in every repetitive works. I'm agree i know one interactive geometry . plotting and visualization library called JSXGraph but have not used it before. http://jsxgraph.uni-bayreuth.de/wp/ oooh, awesome! There're some things about this library (and others) that are not linked with Karma dosing goals: they work in the global namespace and/or extending the native objects (array, function, etc) and they are not built as (jQuery) plugins. Karma is a jQuery plugin. I think if I need a function or method and it's relevant to karma plugin then I must add that to jquery.karma.js, so every relevant function / method / var will be available using $.karma[...] ..one other way is to create Karma as a library without being a jQuery plugin (but using jQuery internally). This option is easier to develop than the plugin way, but we want to keep the eyes of jQuery community over karma. (philosophical -design discussion?) On Wed, Jul 22, 2009 at 11:05 PM, Bryan Berry br...@olenepal.org wrote: added subzero on cc On Thu, 2009-07-23 at 09:42 +0545, devendra khadka wrote: I think it would be better we use some existing javascript libraries than to start from the scatch. so that we could get functon and classes to be used in every repetitive works. besides we may need some common classes which we need but are not available. so we should go on through and what to make. i know one interactive geometry . plotting and visualization library called JSXGraph but have not used it before. http://jsxgraph.uni-bayreuth.de/wp/ i hope we could find more libraires for these. 2009/7/23 Bryan Berry br...@olenepal.org Forwarded Message From: Felipe López Toledo zer.subz...@gmail.com To: Bryan Berry br...@olenepal.org, Christoph Derndorfer christoph.derndor...@gmail.com, Sugar Devel sugar-devel@lists.sugarlabs.org Subject: Karma: geometry functions Date: Wed, 22 Jul 2009 12:49:05 -0500 Hi guys. I've been working on re-making some OLE Nepal lessons using javaScript, each time I found new things to do, most of them related to geometry. I think it's necessary to write some geometry class in order to expedite the activities development. currently supported: (draw) : rectangle, circle, (numeric): distance between 2 points working on: (draw) : polygon, ellipse could you suggest me some more functions? thanks in advance felipe -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] question about: Main Karma Package
Exactly. the stuff common to all the lessons, like karma.css, jquery.js, goes in the top-level directory so ROOT js/ , css/ , karmaplatz.html, lessons/ lessons js/, css/ Does it seems like too much overhead to carry around the karmaplatz? I figure that most of the time devs will want the karmaplatz to accompany their lessons. I just want to be sure that we're aware of this: when someone saves that file (the html lesson), the structure will be modified by the browser, now the lesson will not follow our layout. (example) ff 3.5 creates one folder for the html document when you save it: document_files and here are stored all the files (images, js, css ...) that the html needs to work. I want the examples to use the same common js/ and css/ folders as lessons/ . By default, the links to the examples will appear in karmaplatz.html . I want the paths used in the examples to be the same ones that can be used by the new user-created lessons in lessons/ . Using the same file directory layout makes this easier agree Now that I'm actually looking at the layout, I realise that you MUST rename chakra.html/karmaplatz.html to index.html. If you host the karma bundle somewhere on a web server, when you go to the bundle ROOT path the server will try to serve index.html, because that's the default. Since it's not there, it will 403. Thanks Lucian! finally..it'll be index.html (aka Chakra) felipe On Wed, Jul 22, 2009 at 11:09 AM, Christoph Derndorfer christoph.derndor...@gmail.com wrote: Lucian, thanks a lot for raising that issue, it's certainly an aspect we hadn't considered! Cheers, Christoph 2009/7/22 Bryan Berry br...@olenepal.org that's a good point, we may end up just naming it index.html but referring to the starting page as the Chakra On Wed, 2009-07-22 at 12:59 +0100, Lucian Branescu wrote: Now that I'm actually looking at the layout, I realise that you MUST rename chakra.html/karmaplatz.html to index.html. If you host the karma bundle somewhere on a web server, when you go to the bundle ROOT path the server will try to serve index.html, because that's the default. Since it's not there, it will 403. Furthermore, if a random web developer with no knowledge of karma looks inside the karma bundle, they will instinctively look for index.html. Web devs also expect english, so chakra or karmaplatz will not tell them anything. ]karmaindex.html might be alright for devs, but it still confuses web servers and there's no reason to deviate from the de-facto standard of index.html. Sorry for the rant, but I really believe you're making a mistake by not naming the file index.html. You may call the interface element 'karma index' if you like, because that's what it is. 2009/7/22 Bryan Berry br...@olenepal.org: On Tue, 2009-07-21 at 17:49 -0500, Felipe López Toledo wrote: Hi Bryan. I have one question about http://wiki.sugarlabs.org/go/Karma/Bundle_layout I'm working with our new layout ;) until yesterday, each lesson could work independently. each lesson had their own js files. The beauty of that way, was that you could take a specific lesson folder and put it everywhere and it would work. if we want to do that with the new arrangement, it would be necessary to carry: The specific Lesson folder + Karma lesson bundle folder Exactly. the stuff common to all the lessons, like karma.css, jquery.js, goes in the top-level directory so ROOT js/ , css/ , karmaplatz.html, lessons/ lessons js/, css/ Does it seems like too much overhead to carry around the karmaplatz? I figure that most of the time devs will want the karmaplatz to accompany their lessons. I would suggest to merge Karma lesson bundle / js with Lesson / js. The problem is that we will have repeated files. Yeah. my best solution is just to separate them as specified before also, the Main Karma Package has its own js folder (..contain the code common to all examples..), I suppose it is not necessary since we have the examples folder that will be (I suppose) a Karma Lesson bundle folder. or maybe I'm misunderstanding things. I want the examples to use the same common js/ and css/ folders as lessons/ . By default, the links to the examples will appear in karmaplatz.html . I want the paths used in the examples to be the same ones that can be used by the new user-created lessons in lessons/ . Using the same file directory layout makes this easier. So, I want the examples to look at root css/, js/ for their common files just as the new lessons in lessons/ will felipe -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Bryan W
Re: [Sugar-devel] interesting blog article on webworkers
Thanks Bryan! Following this link: http://ejohn.org/blog/how-javascript-timers-work/ you'll find timers are not really good for our purpose, one more time web workers are a better solution. I'm still working around passing functions to webworkers. 2009/7/22 Bryan Berry br...@olenepal.org maybe this could be of help to us? http://ejohn.org/blog/web-workers/ -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] karma dictionary started
great!! On Wed, Jul 22, 2009 at 12:30 AM, Christoph Derndorfer christoph.derndor...@gmail.com wrote: Great idea! I've added explainations next to the terms in the dictionary as to make them understandable for everyone. Christoph 2009/7/22 Bryan Berry br...@olenepal.org i have started a dictionary so we can keep the terminology specific to karma straight http://wiki.sugarlabs.org/go/Karma/Dictionary -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- 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] Karma: geometry functions
Hi guys. I've been working on re-making some OLE Nepal lessons using javaScript, each time I found new things to do, most of them related to geometry. I think it's necessary to write some geometry class in order to expedite the activities development. currently supported: (draw) : rectangle, circle, (numeric): distance between 2 points working on: (draw) : polygon, ellipse could you suggest me some more functions? thanks in advance felipe ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Karma: geometry functions
yes! Thanks Lucian 2009/7/22 Lucian Branescu lucian.brane...@gmail.com Could this help? http://sylvester.jcoglan.com/ 2009/7/22 Felipe López Toledo zer.subz...@gmail.com: Hi guys. I've been working on re-making some OLE Nepal lessons using javaScript, each time I found new things to do, most of them related to geometry. I think it's necessary to write some geometry class in order to expedite the activities development. currently supported: (draw) : rectangle, circle, (numeric): distance between 2 points working on: (draw) : polygon, ellipse could you suggest me some more functions? thanks in advance felipe ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] need a better name for starting page of karma than MenuStage
I'm agree with NoiseEHC, something in english will work. karmaindex.html kindex.html index.html karmaplatz.html directory.html ... ? 2009/7/21 NoiseEHC noise...@freemail.hu Could you please name those items in English? I suggest this because probably Karma is one of the most important things from an educational viewpoint because it will allow developing curriculum in a totally open way. I mean it will allow teachers to avoid locking teaching materials even into Sugar so no matter what will happen 10 years from now, will Android or ChromeOS (os something totally unpredicted OS) take off, or will Sugar spread to hundreds of millions of machines, or will Windows dominate in on portable machines or whatever, the curriculum will still be usable because there will be some browser in the future that is sure. So most likely most of the programmers developing curricula will use Karma so it would be wise to name things that will be understandable for the widest international audience. Just name it as table of contents or directory. Bryan Berry wrote: what should we call menustage? it is a horrible name. it is just not descriptive: http://www.pustakalaya.org/external-content/static/epaath/MenuStage.html I don't want to call it the frame because that word already has a meaning w/in sugar. i also don't want to call it anything w/ a religious connotation since karma is named after Rabi _karma_charya and not for the religious concept. Words that come to mind are mandala -- which literally means circle in Nepali but sometimes has a religious connotation (ugh) dhoka -- this means gate in Nepali. I like dhoka but everyone outside of Nepal will mispell it I like mandala the best so far . . . ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] reorganized the karma repo
great! I found the same files into /mainline/js and /mainline/examples/x/ js I'll fix it, so each activity will work with the new structure ;) felipe 2009/7/21 Christoph Derndorfer christoph.derndor...@gmail.com Looks good to me! :-) Bryan Berry schrieb: pls let me know what you think http://git.sugarlabs.org/projects/karma/repos/mainline/trees/master I reorged it according to the bundle layout specified here: http://wiki.sugarlabs.org/go/Karma/Bundle_layout -- 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] question about: Main Karma Package
Hi Bryan. I have one question about http://wiki.sugarlabs.org/go/Karma/Bundle_layout I'm working with our new layout ;) until yesterday, each lesson could work independently. each lesson had their own js files. The beauty of that way, was that you could take a specific lesson folder and put it everywhere and it would work. if we want to do that with the new arrangement, it would be necessary to carry: The specific Lesson folder + Karma lesson bundle folder I would suggest to merge Karma lesson bundle / js with Lesson / js. The problem is that we will have repeated files. also, the Main Karma Package has its own js folder (..contain the code common to all examples..), I suppose it is not necessary since we have the examples folder that will be (I suppose) a Karma Lesson bundle folder. or maybe I'm misunderstanding things. felipe ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] menustage becomes karmaplatz.html
I'd go for index.html but maybe it's pretty common and...that's for devs :) other options I propose (*.html): kindex start kstart root kroot ... sorry english is not my primary language felipe (still thinking) 2009/7/21 Lucian Branescu lucian.brane...@gmail.com I'd still go for karmaindex.html :) 2009/7/21 Bryan Berry br...@olenepal.org: unless u have any strong objections, let's rename it to karmaplatz.html platz means plaza in German. karmaplatz sounds so odd that it is both memorable while at the same time easy to spell. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] reading and writing translatable strings
@Bryan: I am wondering if it will be feasible performance-wise to write in all the strings each time the page loads. I guess the only way to find out is to experiment. It depends of the amount of text, let me test it. Since all the process is done in the client I think it depends of 2 things: 1. the amount of time to load (from Internet) the source elements (html, js, images, po) 2. the time to process the js about po2json, the same source from Gettext, nice! @Lucian: Yes, we have a predefined list: h*, title, label and so on @Jonas Smedegaard good!, we'll try it On 12/07/2009, Bryan Berry br...@olenepal.org wrote: I am not searching, i am using a predefined list partly for the reason you suggest ;) On Sun, 2009-07-12 at 12:22 +0100, Lucian Branescu wrote: Searching strings inside all HTML elements could be very slow. I suggest if you search inside html elements, stick to a predefined list of them (like a translate class). 2009/7/12 Bryan Berry br...@olenepal.org: Subzero, I have figured out how to read the strings from an html file, at least somewhat: utils/narwhal/bin/narwhal source.html output.pot generates a .pot file from the strings in one html file I haven't automated grabbing the strings from a .js file because it seems fairly straightforward. Reading back in the strings from the po might present a problem. I gather that we will have to convert the po file to a .json file I guess we can use the perl module po2json for now (http://jsgettext.berlios.de/doc/html/po2json.html) Later we may want to consider doing this w/ python or narwhal (command-line js), since neither u nor I know perl. but we still have to match the strings w/ the target html. It was dead easy to grab the strings using a css selector $('h1, h2, h3, title, ...') but to write back the strings we need to match the msgid string to the actual element html. Can we create a jQuery css or XPath selector that selects based on element html? something like $('*[html=The bigHighest/big score is]'). ??? I am wondering if it will be feasible performance-wise to write in all the strings each time the page loads. I guess the only way to find out is to experiment. We could possibly pre-create localized html pages using narwhal. We could use the package_po.json to generate index_ne_NP.html or index_he.html from the command-line. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Karma: quadrilaterals + Surf it works!
This is great news. I'm having network issues on my laptop, but hopefully I'll have some time to work on Surf this coming week to make it more functional (downloads, etc). Thanks Bobby!, looking forward to it :) On Fri, Jul 3, 2009 at 10:26 AM, Bobby Powers bobbypow...@gmail.com wrote: 2009/7/2 Felipe López Toledo zer.subz...@gmail.com: Hi Andrés, I have tested it (quadrilaterals) under Ubuntu 8.10 I see the same I see on a non html5 enabled browser. , you're right, it seems the webkit-gtk isn't updated :S I've checked line 49: ctx.fillText ( Erase, 25, 245 ); I supposse the current webkit doesn't support this instruction :( On FFX 3.5preb4 it works great! yes, the problem is that ff in the XO has a poor performance and if you use quadrilaterals you will get a serious lag, using surf in the XO, it works really good This is great news. I'm having network issues on my laptop, but hopefully I'll have some time to work on Surf this coming week to make it more functional (downloads, etc). Bobby One little comment: it doesnt recognize concave quadrilaterals properly. yes, It was how I solved, not the real code from flash. thanks for your comment, I'll fix it. felipe 2009/6/30 Andrés Ambrois andresambr...@gmail.com On Tuesday 30 June 2009 03:17:00 pm Felipe López Toledo wrote: hi guys I'm a little upset because during last week I was trying to optimize the Quadrilaterals activity: http://karma.sugarlabs.org/quadrilaterals/ Lucian recommend me (last week...or before) to try it using Surf, I was trying to compile it from source... mmm, no progress today Lucian gave me some links: the xo bundle: http://dev.laptop.org/~bobbyp/surf/http://dev.laptop.org/%7Ebobbyp/surf/ also read: http://wiki.laptop.org/go/Browse/WebKit thanks Lucian well, if you have a chance please test it, it works really good (performance) there is some work to do (stuff related to css and scale), but it works a lot better than with firefox :) Tried Quadrilaterals with Surf-106 on Jhbuild on Ubuntu Jaunty. I see the same I see on a non html5 enabled browser. The log ends with this line: console message: http://karma.sugarlabs.org/quadrilaterals/js/activity.js @49: Value undefined does not allow function calls. libwebkit on Jaunty is v1.0.1 On FFX 3.5preb4 it works great! One little comment: it doesnt recognize concave quadrilaterals properly. -- -Andrés ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] playing w/ i18n
i think it is key that we can mark strings as translatable without making the html invalid. agreed! I like the idea of picking up certain tags by default like title, meta tags, and then picking up h1, h2, etc. unless they have the lang= attribute specified. so, in this way we can have specific language text independent of the current localization. mm, interesting. in order to dice what to use, I'll play with both, it will be useful for counting up 10 activity :) felipe 2009/7/2 Bryan Berry br...@olenepal.org i think it is key that we can mark strings as translatable without making the html invalid. I like the idea of picking up certain tags by default like title, meta tags, and then picking up h1, h2, etc. unless they have the lang= attribute specified. Then it would be nice to pick up everything else that belongs to the class=translate. What u think? I am looking thru src of html2po and it appears that the primary fault is that it uses the horrible HTMLParser.py webunit.HTMLParser.py instead of something more sane like lxml or beautiful soup it may be easier to swap out HTMLParser for lxml than improve html2po on top of HTMLParser I will play w/ lxml and html2po to see what i can work out. re: beautiful soup vs. lxml . My heart is w/ lxml, enjoyed working w/ it before and seems to have better css selectors than beautiful soup. tks again for your help sayamindu! On Thu, 2009-07-02 at 16:54 +0530, Sayamindu Dasgupta wrote: I did a little tweaking of html2po to get http://pastebin.be/19509 The label tags need to be fixed - but apart from that I think the rest of that is OK. May be we can try and build upon html2po and see how it works out. Thanks, Sayamindu 2009/7/2 Bryan Berry br...@olenepal.org: subzero, i have been having a lot of discussions about i18n w/ the ever patient sayamindu and reading a lot on the subject. However, I haven't accomplished much. Here is my current playground http://karma.sugarlabs.org/yes_no/ am currently wrangling how to generate a meaningful po file from an html page. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Karma: quadrilaterals + Surf it works!
Hi Andrés, I have tested it (quadrilaterals) under Ubuntu 8.10 I see the same I see on a non html5 enabled browser. , you're right, it seems the webkit-gtk isn't updated :S I've checked line 49: ctx.fillText ( Erase, 25, 245 ); I supposse the current webkit doesn't support this instruction :( On FFX 3.5preb4 it works great! yes, the problem is that ff in the XO has a poor performance and if you use quadrilaterals you will get a serious lag, using surf in the XO, it works really good One little comment: it doesnt recognize concave quadrilaterals properly. yes, It was how I solved, not the real code from flash. thanks for your comment, I'll fix it. felipe 2009/6/30 Andrés Ambrois andresambr...@gmail.com On Tuesday 30 June 2009 03:17:00 pm Felipe López Toledo wrote: hi guys I'm a little upset because during last week I was trying to optimize the Quadrilaterals activity: http://karma.sugarlabs.org/quadrilaterals/ Lucian recommend me (last week...or before) to try it using Surf, I was trying to compile it from source... mmm, no progress today Lucian gave me some links: the xo bundle: http://dev.laptop.org/~bobbyp/surf/http://dev.laptop.org/%7Ebobbyp/surf/ also read: http://wiki.laptop.org/go/Browse/WebKit thanks Lucian well, if you have a chance please test it, it works really good (performance) there is some work to do (stuff related to css and scale), but it works a lot better than with firefox :) Tried Quadrilaterals with Surf-106 on Jhbuild on Ubuntu Jaunty. I see the same I see on a non html5 enabled browser. The log ends with this line: console message: http://karma.sugarlabs.org/quadrilaterals/js/activity...@49: Value undefined does not allow function calls. libwebkit on Jaunty is v1.0.1 On FFX 3.5preb4 it works great! One little comment: it doesnt recognize concave quadrilaterals properly. -- -Andrés ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Karma: quadrilaterals + Surf it works!
hi guys I'm a little upset because during last week I was trying to optimize the Quadrilaterals activity: http://karma.sugarlabs.org/quadrilaterals/ Lucian recommend me (last week...or before) to try it using Surf, I was trying to compile it from source... mmm, no progress today Lucian gave me some links: the xo bundle: http://dev.laptop.org/~bobbyp/surf/ also read: http://wiki.laptop.org/go/Browse/WebKit thanks Lucian well, if you have a chance please test it, it works really good (performance) there is some work to do (stuff related to css and scale), but it works a lot better than with firefox :) ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Some initial thoughts on i18n for Karma
what if there were several audio files for the same html element?example: en_answer.ogg //suppose answer is div id=answer ... possible answers = yes, no a better solution: en_answer_yes.ogg en_answer_no.ogg also, what about? LANG_CODE/answer_yes.ogg LANG_CODE/answer_no.ogg felipe. 2009/6/23 Bryan Berry br...@olenepal.org On Tue, 2009-06-23 at 09:31 -0500, Felipe López Toledo wrote: There is a somewhat undocumented algorithm to figure out fallback locale (eg: if locale is ne_NP, look inside ne_NP, if not found, look inside ne, and so on) I really like this idea. so how about naming convention for the audio files langCode_htmlElementId.ogg ? you mean something like: en_content.ogg//suppose content is div id=content ... en_answer.ogg //suppose answer is div id=answer ... ? exactly -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] demos testes with my XO
if everything is out of place that sounds like a css problem that be easily fixed yes, I used absolute positions that's the (first) problem I also had serious lag using quadrilaterals while drawing mmm, ff is slow running under the XO.. it crashed running 2 processingjs examples :S ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] tutorials u can recommend?
Hi Bryan here is a really good canvas tutorial from Mozilla https://developer.mozilla.org/en/Canvas_tutorial also check http://dev.opera.com/articles/view/html-5-canvas-the-basics/ I read this tutorial, it helped me with the drawing stuff (I used this idea within quadrilaterals, see the double buffer): http://dev.opera.com/articles/view/html5-canvas-painting/ felipe 2009/6/18 Bryan Berry br...@olenepal.org subzero, i am trying to change 'quadirlaterals' to use regular dom elements for the buttons rather than drawings but am quite befuddled by canvas. I don't understand how it works. can u recommend to me some canvas tutorials? tks -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] cool animation w/ all-javascript space invaders
create an Audio object that uses flash or plugin media players in the background for backwards compatibility Yes, that's right. Since it exists new Image() new Audio() seems familiar. Thanks for your advise. 2009/6/4 Lucian Branescu lucian.brane...@gmail.com For sound, you'll either have to find a wrapper that can use both audio and flash or use audio (or more precisely use it with scripting, new Audio()) and create an Audio object that uses flash or plugin media players in the background for backwards compatibility (which can use soundmanager or whatever else you like). 2009/6/4 Felipe López Toledo zer.subz...@gmail.com: nice example it has a tween.js with easing equations - excellent about the sounds (here is the tricky part) it uses soundmanager2 http://www.schillmania.com/projects/soundmanager2/ really really usefulbut it depends on a swf file (soundmanager2.swf) in the background.. so, if you don't have the flash plugin the sounds don't work :( here is more information about the flash based solution http://www.boutell.com/newfaq/creating/scriptsound.html there is also other flash audio wrappers like JS Sound Kit http://jssoundkit.sourceforge.net/ also, I found a (ugly) java applet solution :S and jQuery has its own sound plugin http://plugins.jquery.com/project/sound that was useless so why not to use audio? here it is :) http://karma.sugarlabs.org/can_cant/ btw It's simpler than the others 2009/6/3 Lucian Branescu lucian.brane...@gmail.com Very interesting, especially because of its browser support. 2009/6/3 Bryan Berry br...@olenepal.org: http://static.boundvariable.com/space-invaders/ does most of the animation that we need using raphaeljs, which uses svg and not canvas http://www.raphaeljs.com -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] cool animation w/ all-javascript space invaders
nice example it has a tween.js with easing equations - excellent about the sounds (here is the tricky part) it uses soundmanager2 http://www.schillmania.com/projects/soundmanager2/ really really usefulbut it depends on a swf file (soundmanager2.swf) in the background.. so, if you don't have the flash plugin the sounds don't work :( here is more information about the flash based solution http://www.boutell.com/newfaq/creating/scriptsound.html there is also other flash audio wrappers like JS Sound Kit http://jssoundkit.sourceforge.net/ also, I found a (ugly) java applet solution :S and jQuery has its own sound plugin http://plugins.jquery.com/project/sound that was useless so why not to use audio? here it is :) http://karma.sugarlabs.org/can_cant/ btw It's simpler than the others 2009/6/3 Lucian Branescu lucian.brane...@gmail.com Very interesting, especially because of its browser support. 2009/6/3 Bryan Berry br...@olenepal.org: http://static.boundvariable.com/space-invaders/ does most of the animation that we need using raphaeljs, which uses svg and not canvas http://www.raphaeljs.com -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Gears in Browse
Heh, I didn't know LocalStorage had been in Firefox for so longme too. here is an useful link about DOM Storage https://developer.mozilla.org/En/DOM:Storage Again, this should be sufficient for Karma-in-Firefox anyway, I'm looking how to get running GG with Browse 2009/5/28 Lucian Branescu lucian.brane...@gmail.com Heh, I didn't know LocalStorage had been in Firefox for so long. I was under the impression it was at the same stage as Webkit. Thanks for the link. Again, this should be sufficient for Karma-in-Firefox. But many websites already use Gears specifically, and I need them to work for Webified. 2009/5/28 Martin Langhoff martin.langh...@gmail.com: 2009/5/28 Martin Langhoff martin.langh...@gmail.com: 2009/5/28 Lucian Branescu lucian.brane...@gmail.com: Not really. HTML 5 only brings an SQLite database accessible from JavaScript. Gears has other features that aren't present in Gecko proper (yet): - LocalServer - a way to transparently persist resources locally I thought HTML5 had some offline resource facility. What we ship on XO 8.2.x is xulrunner 1.9 (FF3.0). If we were to ship xulrunner 1.9.1 (which is what the F11-based builds ship anyway) then we'd get support for the tools listed here http://wiki.whatwg.org/wiki/Implementations_in_Web_browsers From that URL, my understanding is that you get all the things you need from gecko itself. m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [KARMA] don't need an ide for js
Hi Bryan i don't see myself using aptana or another special ide. firebug + emacs are a perfect fit. yes, you're right! my early reason to use aptana was fast coding through the html assistant, highlight and auto completion tool. one of the *good* things of aptana is the inclusion (choose) of the javascript library (dojo, jquery, mootols, etc).. but, I felt like slow using it.. I just ended using gedit / kate + firebug here is another tool like firebug (venkman from mozilla) http://www.mozilla.org/projects/venkman/ currently reading about it at http://www.mozilla.org/projects/venkman/venkman-walkthrough.html 2009/5/3 Bryan Berry br...@olenepal.org subzero, i am pretty darn blown away by how useful firebug is check out this tutorial http://www.evotech.net/blog/2007/06/introduction-to-firebug/ and the intro pages here: http://www.getfirebug.com i don't see myself using aptana or another special ide. firebug + emacs are a perfect fit. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] processing.js - tool to replace flash in websites [KARMA]
Hi Bryan thanks for the links, Interesting thing is that these demos really rev my CPU. I have a centrino dual-core 2 GHz. Firefox chews up 70% of my processor. However, when I stream Youtube Firefox also often chews up 50% of my processor so not sure if firefox is at fault or processing.js I opened several demos (6 basic demos + 2 topic demos ) and firefox just freezed, I was testing with a amd64-ath...@2ghz, 2gb ram what is your experience with this: http://processingjs.org/learning/topic/sequential ? felipe obviusly it depends of what 2009/4/26 Bryan Berry br...@olenepal.org Hey Subzero, I just came across this blog post from John Resig, the creator of jQuery. He kicked off a processing.js to replace flash for animations. I am not really sure how it relates to jQuery http://processingjs.org/ he also has a new project sizzle that is a CSS3 selector engine http://sizzlejs.com/ frankly, I don't actually know what a CSS3 selector engine is or what CSS3 selectors are but looks interesting http://processingjs.org/exhibition here are some demos. Interesting thing is that these demos really rev my CPU. I have a centrino dual-core 2 GHz. Firefox chews up 70% of my processor. However, when I stream Youtube Firefox also often chews up 50% of my processor so not sure if firefox is at fault or processing.js -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] progress testing dojo and jQuery? [KARMA]
Bryan how are you? I have been learning + testing dojo, since I see the page you gave me http://css-tricks.com/jquery-robot/ I got really impressed about jquery (seriously, guys you must see it, it illustrates Unobtrusive Javascript) so...I started reading jQuery in Action book and I have stopped using dojo also, I have been looking some animation examples: http://docs.jquery.com/Effects/animate (see the animate both example) http://media.brianbeck.com/shared/javascript/jquery-ahover/demo/demo.html felipe On 25/04/2009, Bryan Berry br...@olenepal.org wrote: Felipe, Last we talked you were testing out animations w/ dojo. How is that going? I am still working through the jQuery in Action book and haven't spent any serious time w/ dojo. We will have to rely on your work w/ dojo. I very much enjoyed this video about the good parts of javascript http://www.youtube.com/watch?v=hQVTIJBZook -- thanks to Lucian for the link. Since I haven't played w/ dojo I still can't compare it to jQuery. I am convinced, however, in the value of one jQuery's design tenets, Unobtrusive Javascript. I would really like to adhere to this principle regardless of what js framework we use. For those on the list unfamiliar w/ Unobtrusive Javascript, it requires that you do not mix your js code and html markup. You add eventlisteners to html elements in your js code and don't write any js code inline w/ your html markup. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Activity for proof of concept [KARMA]
Thanks roshan karki I got it! by the way, the config.xml under FileLink has an l missed: (correct) week3_Maths_Quadrilateral_1_swf/week thanks! felipe 2009/4/25 roshan karki ros...@olenepal.org Hello, E-Paath has two part, part one is the framework, http://hg.olenepal.org/framework(plesehttp://hg.olenepal.org/framework%28pleseuse the one tagged with 2.0) The second part is the individual activities, like the one you got. To run them we need to put them inside the framework. Inside the framework, there is one folder called 'Activities', put the individual activities folder inside it. For you the folder will be 3_Maths_Quadrilatera_1_swf Inside the folder put the following files 3_Maths_Quadrilateral_1_swf. jpg (thumbnail you'll see in the framework) 3_Maths_Quadrilateral_1_swf_E.swf (exercise part of the activity) 3_Maths_Quadrilateral_1_swf_L.swf (lesson part of the activity) config.xml (contains information of the activities) 3_Maths_Quadrilateral_1_swf_B.swf TeacherNotes.swf LessonPlan.swf Games Again inside the framework, there is one folder called FileLink. Create a file config.xml with following information. olenepal grade gradeID=# subjectID=ul0ft week 3_Maths_Quadrilatera_1_swf /week /grade /olenepal Now run menustage.html from the framework directory. Pleaes let me know on any problem you encounter. 2009/4/25 Felipe López Toledo zer.subz...@gmail.com Hi Roshan Karki, thanks for writing, my first question is how to run it? I load the swf files on Mozilla FIrefox 3.0.3 and I got this: 3_Maths_Quadrilateral_1_swf_B.swf - a blue screen 3_Maths_Quadrilateral_1_swf_E.swf - a really low yellow screen? 3_Maths_Quadrilateral_1_swf_L.swf - a white screen I was trying with http://www.pustakalaya.org/external-content/static/epaath/E-Paath-2.activity/activity/Activity/MenuStage.html but I got time out error thanks ind advance. Regards felipe On Fri, Apr 24, 2009 at 4:28 AM, Bert Freudenberg b...@freudenbergs.dewrote: On 24.04.2009, at 11:10, roshan karki wrote: Hello, I'm Roshan Karki. Bryan must have told you about the activity for proof of concept. Here, I'm trying to tell you more about the activity and the reason for choosing it. You can get the activity from http://hg.olenepal.org/3_Maths_Quadrilateral_1_swf/ The activity contains two lesson part. Lesson part usually contains simple animation or simple exercise for which a student isn't judged. This activity has an interactive lesson. The exercise part in this activity is also different from other activities. This exercise has mixture of options like typing correct answer, clicking correct answer and so on. Normally we have only one kind of mechanism to choose correct answer. One thing missing in this exercise is the correct and incorrect sound that plays as the user submits the answer. While in lesson part, you can also play game. The game icon is at right corner. Please put forward your questions and confusions. I could not figure out how to run it. Here's what I got after downloading: 3_Maths_Quadrilatera_1_swf_L.fla 3_Maths_Quadrilateral_1_swf.jpg 3_Maths_Quadrilateral_1_swf_B.fla 3_Maths_Quadrilateral_1_swf_B.swf 3_Maths_Quadrilateral_1_swf_E.fla 3_Maths_Quadrilateral_1_swf_E.swf 3_Maths_Quadrilateral_1_swf_L.swf Excercise.as ExerciseStarting.as Games GeoBoard.as LessonPlan.swf LessonStarting.as Line.as LineAddedEvent.as Stick.as TeacherNotes.pdf TeacherNotes.swf config.xml lessonPlan.pdf - Bert - ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Activity for proof of concept [KARMA]
Hi Roshan Karki, thanks for writing, my first question is how to run it? I load the swf files on Mozilla FIrefox 3.0.3 and I got this: 3_Maths_Quadrilateral_1_swf_B.swf - a blue screen 3_Maths_Quadrilateral_1_swf_E.swf - a really low yellow screen? 3_Maths_Quadrilateral_1_swf_L.swf - a white screen I was trying with http://www.pustakalaya.org/external-content/static/epaath/E-Paath-2.activity/activity/Activity/MenuStage.html but I got time out error thanks ind advance. Regards felipe On Fri, Apr 24, 2009 at 4:28 AM, Bert Freudenberg b...@freudenbergs.dewrote: On 24.04.2009, at 11:10, roshan karki wrote: Hello, I'm Roshan Karki. Bryan must have told you about the activity for proof of concept. Here, I'm trying to tell you more about the activity and the reason for choosing it. You can get the activity from http://hg.olenepal.org/3_Maths_Quadrilateral_1_swf/ The activity contains two lesson part. Lesson part usually contains simple animation or simple exercise for which a student isn't judged. This activity has an interactive lesson. The exercise part in this activity is also different from other activities. This exercise has mixture of options like typing correct answer, clicking correct answer and so on. Normally we have only one kind of mechanism to choose correct answer. One thing missing in this exercise is the correct and incorrect sound that plays as the user submits the answer. While in lesson part, you can also play game. The game icon is at right corner. Please put forward your questions and confusions. I could not figure out how to run it. Here's what I got after downloading: 3_Maths_Quadrilatera_1_swf_L.fla 3_Maths_Quadrilateral_1_swf.jpg 3_Maths_Quadrilateral_1_swf_B.fla 3_Maths_Quadrilateral_1_swf_B.swf 3_Maths_Quadrilateral_1_swf_E.fla 3_Maths_Quadrilateral_1_swf_E.swf 3_Maths_Quadrilateral_1_swf_L.swf Excercise.as ExerciseStarting.as Games GeoBoard.as LessonPlan.swf LessonStarting.as Line.as LineAddedEvent.as Stick.as TeacherNotes.pdf TeacherNotes.swf config.xml lessonPlan.pdf - Bert - ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] GSoC Karma+application
Hi there!. I'm working in my proposal: an educational framework (Karma) using html5 + JavaScript, if you have any chance please read it and give some feedback. http://wiki.sugarlabs.org/go/Karma/application Thanks in advance. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] ideal flash activity to be remade as karma activity
Hi there! Sorry, I've been sick :s with limited internet access, I'm updating... I have been talking with Bryan, we both are more interested in Karma (framework), as Lucian says: On the other hand, Felipe could focus on creating an educational framework (Karma), built on standard HTML5, JavaScript and Gears. This would handle animation (preferably through canvas stuff), i18n (locales stored with Gears, chosen according to browser locale), general persistence (Gears cookies), sounds (audio) and other things an educational framework should do. I think that Lucian is more interested in dbus However, the framework could have optional extensions (probably supported through a javascript-dbus bridge) that would improve integration with Sugar. These extensions would work, for example, on the runtime of my sugarizer. Web developers could improve the Sugar integration of the stuff they made with Karma and package the results as .xo bundles. Users would hardly be able to tell the difference. To reduce the dependency Karma would have on my project, Browse could also have a javascript-dbus bridge and Gears added to it. Security would need to be sourted out so that only Karma web apps inside .xo bundles can access dbus in this way our projects won't be mutually dependent and we can work in parallel btw, I rise the hand to use WebKit. greetings. 2009/3/29 Bryan Berry br...@olenepal.org I really like this idea. Felipe, Wadeb what do you think? On Mon, 2009-03-30 at 04:49 +0200, Lucian Branescu wrote: There has been some talk about the interaction between my project and Felipe's. I've had an interesting chat with Bryan and Ben on #sugar. Here's the whole chat http://dl.getdropbox.com/u/317039/bryan%26bemasc%20chat.txt Here's the lastest idea: I would be focusing on building something akin to http://fluidapp.com. I keep giving it as an example because it's very minimalist, but provides the essential features to turn web apps into 'native' apps: - creates independent packages of web apps from given URLs - has Gears, so websites can be taken offline - (optional) has userstyles to customize the look of web apps - (optional) can customize keyboard shortcuts - has userscripts (GreaseMonkey) to customize the behaviour (and look) of web apps - provides some level of platform integration http://fluidapp.com/developer I'm running GMail and Google Reader and Google Docs with it and they have mostly replaced their native counterparts because they're better in almost every way: they work offline and sync to servers online, they look native because of native widgets in browser engines and a few userstyles, they're fast because everybody is focused on browser engine performance, they have sounds and native notifications because of userscripts+fluid APIs. Read my proposal for Sugar-specific details http://wiki.sugarlabs.org/go/Webified On the other hand, Felipe could focus on creating an educational framework (Karma), built on standard HTML5, JavaScript and Gears. This would handle animation (preferably through canvas stuff), i18n (locales stored with Gears, chosen according to browser locale), general persistence (Gears cookies), sounds (audio) and other things an educational framework should do. Karma would only use technologies available in modern, HTML 5-supporting browsers (firefox 3/3.5, safari 3/4, opera 9/10) and Gears, which is a widely used plugin for taking stuff offline. Not only will it work with my web app sugarizer (note to self: maybe i should rename webified to sugarizer), but also with other browsers on regular computers. And Browse. However, the framework could have optional extensions (probably supported through a javascript-dbus bridge) that would improve integration with Sugar. These extensions would work, for example, on the runtime of my sugarizer. Web developers could improve the Sugar integration of the stuff they made with Karma and package the results as .xo bundles. Users would hardly be able to tell the difference. To reduce the dependency Karma would have on my project, Browse could also have a javascript-dbus bridge and Gears added to it. Security would need to be sourted out so that only Karma web apps inside .xo bundles can access dbus. How does that sound? PS: Sorry it was so long. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] SWF Sugar
Hi. I have been reading your wiki, first of all, I have to say you: great work!, keep doing it!. I want to help. My name is Felipe López Toledo, I'm a flash developer for last 6 years and I'm interested in participating in gsoc 2009 with this project: Copy + paste from you project list: SWF Sugar * Integrate SWF (Flash/Gnash) applications into Sugar. * Ideally, develop a demo activity which could be used as a template for sugarizing Flash/Gnash activities. * Priority for Sugar: Very High (never bet against the browser) * Difficulty (as a GSoC project): hard * Skills needed: SWF/Python integration Jameson Quinn told me about the problems that exist with the adobe player (license), so I understand the use of gnash. well, I the idea is to develop a template for activities? I imagine a framework with special *sugarized* features that permit to design / develop fast and complex sugar applications in a easy way, where the developer can be more involved with functionality rather than gnash support. could anyone give more info? what features would you like to see in this application?. Thanks in advance. Felipe. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Sugar Labs
I see, is it really necesary to use AS 3? I have seen the examples and it didn't seem to use any AS3 relevant feature. so, Gnash instead of Adobe player what about the compiler? MTASC http://www.mtasc.org/ or flashDevelop http://www.flashdevelop.org/ or ? in the other hand, http://titaniumapp.com/ Copypaste Add rich desktop capabilities to your apps using a simple Javascript API: *built-in database support - ActionScript can not *application and system menu control *file system access - ActionScript can not *desktop notifications - ActionScript can not really attractive features. I think it is a very good bet. we should look it carefully. Greetings. 2009/3/18 Bryan Berry bryan.be...@gmail.com On Wed, 2009-03-18 at 16:24 -0600, Felipe López Toledo wrote: Hi Bryan. never bet against the browser is absolutely true true! Also, there are far more javascript developers out there than flash developers. Heres is one flash developer. But I'm an open mind person, let's talk about javascript + html5. All those activities are in flash. The problem w/ gnash is that it doesn't support Actionscript 3 at all and probably won't for a long time. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Sugar Labs
Hi. I now believe that javascript + html5 is a much better bet because it better adheres to our common belief in open-source and allows View Source. If the intention is to use completely open source Bryan Berry is quite right. However, leaving aside a flash, it's a big decision, I would remind you that 3D interfaces are possible. Papervision (Open Source) is a set of libraries pioneer in the field. The latest version of Adobe Flash IDE natively include some 3d effects and capacities. FelipeLT. 2009/3/18 Jameson Quinn jameson.qu...@gmail.com I think that for a GSoC project, we care less about development kits/IDEs like aptana, than about desktop-apps-with-AJAX solutions like Appcelerator Titanium, Mozilla Prism (and in closed-source world, Adobe AIR and Curl). I think it would be a great project to take Titanium or Prism and make a generic sugar-like hello-world which used Javascript to save to the journal, set some tags, open a file, coexist with Rainbow, and have a sugary toolbar. Whether you worked on that activity with Aptana or whatever is a separate issue. Disclaimer: I know nothing under the hood about any of the products mentioned here, so I could be totally wrong. Jameson On Wed, Mar 18, 2009 at 4:14 AM, Bryan Berry br...@olenepal.org wrote: They don't compare currently but they are developing rapidly, particularly aptana http://www.aptana.com. The great thing about aptana is that there is for-profit company behind it that seems to do a good job of sponsoring open-source development. Also, Apple, Palm, and maybe Android are pushing for js+html5 for all apps place of flash. On Wed, 2009-03-18 at 10:47 +0100, Tomeu Vizoso wrote: 2009/3/18 Bryan Berry bryan.be...@gmail.com: Felipe, never bet against the browser is absolutely true However, gnash is roughly 2-3 developer years behind macromedia flash. the big hurdle is adding support for ActionScript3 to Gnash. I don't think that better integrating Gnash into Sugar would be the best use of your time. The better bet is to integrate activities created with javascript + html5 into Sugar. I earlier advocated a framework called Karma for integrating flash swfs into Sugar. I now believe that javascript + html5 is a much better bet because it better adheres to our common belief in open-source and allows View Source. Also, there are far more javascript developers out there than flash developers. This new rework of Karma could take advantage of projects like jquery-UI and new javascript animation libraries like processing.js and GX. That looks very interesting, but what about authoring tools for javascript+html5? Are any that compare to the flash authoring tools? Regards, Tomeu You could start out by trying to recreate some of OLE Nepal's existing flash activities as javascript + html5. You can find some here: http://www.pustakalaya.org/external-content/static/epaath/E-Paath-2.activity/activity/Activity/MenuStage.html If you are interested in such a project, I am definitely be interested in mentoring you. I have to warn you though that I am professionally a project manager and not a software engineer. In fact my software development skills are extremely limited beyond writing broken python scripts. -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org On Tue, 2009-03-17 at 15:37 -0600, Jameson Quinn wrote: Flash is still not open source, and that creates issues when distributing it (Adobe does not let you include it pre-installed in images for download). Bryan Berry from OLE Nepal (cc:ed on this mail) has some good ideas about how that idea should work, though he's not signed up as a mentor. You should think about your design, and then discuss it with him AND on the sugar-devel mailing list. Jameson 2009/3/17 Felipe López Toledo zer.subz...@gmail.com Thanks. I'm interested: SWF Sugar * Integrate SWF (Flash/Gnash) applications into Sugar. * Ideally, develop a demo activity which could be used as a template for sugarizing Flash/Gnash activities. * Priority for Sugar: Very High (never bet against the browser) * Difficulty (as a GSoC project): hard * Skills needed: SWF/Python integration why Gnash?, there is already a stable version of adobe player for linux. really have very good ideas. Interesting! Greetings. On Sun, Mar 15, 2009 at 4:09 PM, Jameson Quinn jameson.qu...@gmail.com wrote: http