Hi Bert.<br><br>Is there a way to do a textual search for a text across the entire code?<br>For example, I am trying to search for the string "Rewind" across the code, but cannot find a single occurrence (via Ctrl-f and Ctrl-g).<br>
<br><br><br>Thanks and Regards,<br>Ajay<br><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 3:06 AM, Bert Freudenberg <span dir="ltr"><<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><br><div><div><div class="h5"><div>On 05.06.2012, at 22:53, Ajay Garg wrote:</div>
<br><blockquote type="cite">Hi Bert.<br><br>There is good news, and (rather mild bad news).<br><br><br>I updated the code from etoys4.1 to etoys5.0, as suggested by you via "update code from server", and the following use-cases worked perfectly as expected ::<br>
<br><br>a)<br>Open an mp3 from a USB pen-drive via journal-object-chooser.<br>Click "Play in MPEG player".<br>The mp3 starts playing.<br>Click "Stop".<br>Click "Play".<br>mp3 resumes playing.<br>
Click "Stop".<br>Click "Rewind".<br>Click "Play".<br>mp3 starts playing from the beginning.<br><br><br>b)<br>
Open an mp3 from a USB pen-drive via journal-object-chooser.<br>
Click "Open".<br>Click "Play".<br>
The mp3 starts playing.<br>
Click "Stop".<br>
Click "Play".<br>
mp3 resumes playing.<br>
Click "Stop".<br>
Click "Rewind".<br>
Click "Play".<br>
mp3 starts playing from the beginning.<br><br><br>c)<br>
Open an mp3 from the journal via journal-object-chooser.<br>
Click "Play in MPEG player".<br>
The mp3 starts playing.<br>
Click "Stop".<br>
Click "Play".<br>
mp3 resumes playing.<br>
Click "Stop".<br>
Click "Rewind".<br>
Click "Play".<br>
mp3 DOES NOT PLAY. Instead an error comes up, saying that the file-name has changed.<br><br><br>d)<br>
Open an mp3 from the journal via journal-object-chooser.<br>
Click "Open".<br>
Click "Play".<br>
The mp3 starts playing.<br>
Click "Stop".<br>
Click "Play".<br>
mp3 resumes playing.<br>
Click "Stop".<br>
Click "Rewind".<br>
Click "Play".<br>
mp3 DOES NOT PLAY. Instead an error comes up, saying that the file-name has changed.<br><br><br>e)<br>I tried steps a), b), c), d) with etoys4.1.<br>a) and b) failed (for obvious reasons).<br>c) and d) ALSO failed, with the same symptoms.</blockquote>
<div><br></div></div></div><div>So it plays once and but not again. I have a hunch.</div><div><br></div><div>When a file was checked out from the datastore, an activity needs to delete it when it is done. Etoys deletes the file when the file object is released (using a finalizer). I guess the MPEGPlayer stores only the name, closes the file, and tries to re-open it from the same name. If the original file object has been garbage-collected already, the finalizer will have deleted the file. Thus, trying to re-open it will fail.</div>
<div class="im"><br><blockquote type="cite">f)<br>I tried installing the new rolled out <a href="http://kojipkgs.fedoraproject.org/packages/etoys/5.0.2406/1.fc17/noarch/etoys-5.0.2406-1.fc17.noarch.rpm" target="_blank">etoys-5.0.2406-1.fc17.noarch.rpm</a><br>
However, it needed a squeak-vm greater than 3.10.<br>Now, I had uninstalled the squeak-vm, and installed it instead via source (for 4.0 branch).<br>So, I installed the rpm by "sudo rpm -i --nodeps <a href="http://kojipkgs.fedoraproject.org/packages/etoys/5.0.2406/1.fc17/noarch/etoys-5.0.2406-1.fc17.noarch.rpm" target="_blank">etoys-5.0.2406-1.fc17.noarch.rpm</a>".<br>
a) and b) CONTINUED TO FAIL (meaning that the change did not take effect).<br></blockquote><div><br></div></div>It's not yet in 5.0.2406. You need to "update code from server".<div class="im"><br><div><br></div>
<blockquote type="cite">So, Bert,<br><br>(i)<br>Could the new rpm for squeak-vm (from 4.0 branch) also be rolled out; so that the mpeg-plugin change could also be tested end-to-end.</blockquote><div><br></div></div><div>It would be a good idea to package the current 4.4.7 Squeak VM in any case. But it does not have my latest patches yet. I've sent the patches two weeks ago, but there was no new release yet.</div>
<div class="im"><br><blockquote type="cite">(ii)<br>Kindly provide me a snapshot of your last commit, so that I may go through the mechanics of making the change in etoys. I would then subequently like to fix cases c) and d) :-)<br>
</blockquote><div><br></div></div>I'm not quite sure what you mean with "snapshot of your last commit"?<div><br></div><div>Fixing the c) and d) cases is not exactly a task I would give to a new Squeak programmer. You're welcome to surprise me, of course ;) You would have to start at SugarLauncher's "getFile:" method.</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>- Bert -</div></font></span><div><div class="h5"><br><blockquote type="cite"><br>Thanks a ton ....<br><br><br>Thanks and Regards,<br>Ajay<br><br><br><br><br><br>
<div class="gmail_quote">On Tue, Jun 5, 2012 at 10:26 PM, Bert Freudenberg <span dir="ltr"><<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br>
On 05.06.2012, at 15:57, Bert Freudenberg wrote:<br>
<br>
> On 05.06.2012, at 15:33, Ajay Garg wrote:<br>
><br>
>> Bert,<br>
>><br>
>> A small query ::<br>
>><br>
>> I have the version "etoys4.1".<br>
>> Is the "5.0.2406" version based on a higher release version of Fedora?<br>
><br>
> Fedora is a Linux distribution. Etoys is an application. Your question makes no sense to me.<br>
><br>
> Or are you asking if Etoys 5 requires Fedora 17? No, it does not. Etoys is cross-platform and hopefully works everywhere. See<br>
><br>
> <a href="http://squeakland.org/download/" target="_blank">http://squeakland.org/download/</a><br>
><br>
> And poke around on that site to see what makes Etoys special (and not just weird). In particular, read the articles at<br>
><br>
> <a href="http://squeakland.org/resources/articles/" target="_blank">http://squeakland.org/resources/articles/</a><br>
><br>
> For testing purposes I build my own rpms (including etoys 5):<br>
><br>
> <a href="http://etoys.laptop.org/" target="_blank">http://etoys.laptop.org/</a><br>
><br>
> Or you might install from the source tar balls at<br>
><br>
> <a href="http://download.sugarlabs.org/sources/sucrose/glucose/etoys/" target="_blank">http://download.sugarlabs.org/sources/sucrose/glucose/etoys/</a><br>
><br>
> [You can actually update from etoys 4.1 but that's not officially supported. It will take a lot longer, and you will not get the new supporting files like translations etc. You need to say "yes" when asked to advance to etoys 5, "no" when asked to load newest packages. Then update again, this time you can say "yes" to the newest packages.]<br>
><br>
> - Bert -<br>
<br>
</div>Oh, and news from the dev meeting: Peter packaged Etoys 5 for Fedora. If you give it karma after testing, it should become an update soonish:<br>
<br>
<a href="https://admin.fedoraproject.org/updates/etoys-5.0.2406-1.fc17" target="_blank">https://admin.fedoraproject.org/updates/etoys-5.0.2406-1.fc17</a><br>
<br>
Direct RPM link:<br>
<br>
<a href="http://kojipkgs.fedoraproject.org/packages/etoys/5.0.2406/1.fc17/noarch/etoys-5.0.2406-1.fc17.noarch.rpm" target="_blank">http://kojipkgs.fedoraproject.org/packages/etoys/5.0.2406/1.fc17/noarch/etoys-5.0.2406-1.fc17.noarch.rpm</a><br>
<div><div><br>
<br>
- Bert -<br>
<br>
<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br>
</blockquote></div></div></div>\</div><br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br>