<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 15.03.2009, at 14:18, karl ramberg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I have put together a widget that is able to load pictures and sounds from the Journal on the XO. <br></blockquote><div><br></div><div>I only today had time to look at this. It's a great start!</div><br><blockquote type="cite">Work is slow because I have to do most programming in secure mode to see that what I'm doing is&nbsp; acctually working.</blockquote><div><br></div><div>Since you are using the squeakletDirectory things should work fine with or without rainbow.</div><br><blockquote type="cite"> Also some features like file reading are quite slow on the XO </blockquote><div><br></div><div>The built-in NAND is really slow, in particular because the CPU has to uncompress the files on the fly. On other systems disk access is done by DMA so the CPU is free to do other stuff, but not on the XO.</div><br><blockquote type="cite">so the purpose of the widget is somewhat questionable... Or maybe it's just the way I did stuff that slows it down. </blockquote><div><br></div><div>Well you are querying the datastore for every single click (try putting "self beep" in #journalEntries). Other than that I see no obviously wrong things.&nbsp;</div><div><br></div><blockquote type="cite">The widget also saves SketchMorphs as pngs to the Journal by Drag'n droping a Sketch on it or by use of tile scripts. That is quite useful if Etoys is deployed as just a paint activity.</blockquote><div><br></div><div>Nice. There should be visual feedback to indicate dropability. Also, why restrict it to sketch morphs? Also, it should not really "eat" the morph ... feedback like when sending a morph to a buddy would be nice. The new entry should get the current timestamp so it shows on top of the Journal.</div><br><blockquote type="cite">Sound playing is just a hack at the moment.&nbsp; <br> <br>One issue that is slowing the widget down so it's almost unusable with big pictures is that the current player is diplayed as a thumbnail in the Viewer, and that operation takes a looong time. <br></blockquote><div><br></div><div>This should obviously be cached. You can listen to Created, Deleted, and Updated signals on the datastore to know when it is necessary to drop your caches.</div><br><blockquote type="cite">So, comments and suggestions are welcome. <br></blockquote></div><div><br></div><div>Hehe: the singular of "entries" is "entry" ;)</div><div><br></div><div>A morph does not belong in the "Sugar-DBus" category, those are only the compiled proxies.</div><div><br></div><div>Setting the cursor does not work yet.</div><div><br></div><div>And once the basics work right we can think about ideas how to make the interface more "etoy-like". I like the idea of reusing the holder's collection protocol. Maybe we can make it look even more like a holder - holders support showing their contents as thumbnails or text or full morphs, for example. For large Journals we need paging support. And much of the slow operations could be done in a background process.</div><div><br></div><div>But for now: Great! This is going to be really useful.</div><div><br></div><div>Maybe if you upload it somewhere accessible by the XO's web browser you would get more comments? It's kinda cumbersome of moving a project from email into the XO's journal ...</div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div><br class="Apple-interchange-newline"></div></span> </div><br></body></html>