[sugar] Needs for Browse
I was working w/ Trinarayan today on running flash activities on the XO and we came upon a lot of features we need in Browse. For the moment we are using firefox 3 but would like to use Browse instead. 1. Display flash by default. A lot of existing educational resource use flash. Some people don't like turning on flash because it slows down a lot of pages. We want it turned on because most of the sites of educational value either use flash heavily or not at all. We don't care if www.tv.com is slow or Myspace takes a long time to load. 2. Tabs -- we need them It takes too long to alt+tab between multiple instance of Browse. I don't think kids will be confused by multiple tabs but we can test this out soon. 3. Browse doesn't find Flash's settings.sol file. Flash needs permission to open html files on the local machine. We intend these files to be in the flash activity bundle and this permission has to be set in settings.sol While we are developing some of our activities in flash, because we can do it faster than in EToys. We are still doing activity development with EToys, just not all of it in EToys. It is impossible to hire someone w/ Squeak experience in Nepal and very time-consuming for them to get up-to-speed. Thought for the day: Flash is important! The folks more likely to develop learning activities will come from a webdev/graphic design background and less likely kernel hackers. The former type are quite familiar w/ Flash, html, and photoshop. As much as we would like them to use Squeak or Python to develop activities, it's gonna take a while. Let's not shut them out by not supporting flash well. Also, countries that have invested heavily in IT already have typically also invested heavily in flash. ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
[sugar] [EMAIL PROTECTED]: Re: the OLPC XO grab button (triggering mouse scrolling using a keypress)]
Advice about how to implement the grab button functionality from the xorg dev list. - Forwarded message from Peter Hutterer [EMAIL PROTECTED] - Date: Tue, 1 Jul 2008 15:52:09 +0930 From: Peter Hutterer [EMAIL PROTECTED] To: Erik Garrison [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: the OLPC XO grab button (triggering mouse scrolling using a keypress) On Mon, Jun 30, 2008 at 07:35:16PM -0400, Erik Garrison wrote: The keyboard has two buttons which are marked with a hand. The interested may see a schematic at http://wiki.laptop.org/go/OLPC_Keyboard_layouts. It was intended at design time that pressing either of these buttons (Super_L and Super_R) and simultaneously moving the mouse would trigger x and y scrolling in X11 applications. I'm curious if anyone knows of ways in which similar functionality has been implemented elsewhere. In general I'd like some advice about the best place to implement this feature. Just put a passive grab on the keys to receive the key press event and then, depending on what you mean by scrolling: - mouse wheel emulation put a (sync) grab on the mouse and use XTestFakeButtonEvent on buttons 4/5/6/7 for to scroll. you'll need to mess around a bit with XAllowEvents, but it should work. - viewport scrolling XWarpPointer seems the only way, I don't see any other callers for xf86SetViewport that could be used directly. Cheers, Peter - End forwarded message - ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] Needs for Browse
On Wednesday 02 July 2008, Bryan Berry wrote: I was working w/ Trinarayan today on running flash activities on the XO and we came upon a lot of features we need in Browse. For the moment we are using firefox 3 but would like to use Browse instead. 1. Display flash by default. A lot of existing educational resource use flash. Some people don't like turning on flash because it slows down a lot of pages. We want it turned on because most of the sites of educational value either use flash heavily or not at all. We don't care if www.tv.com is slow or Myspace takes a long time to load. Due to the patented technologies that are in flash we cant ship adobe's flash (that's why we have gnash) unless you have an agreement from adobe you likely cant ship flash either. The way its currently licensed means that you can only download directly from adobe, this will be because they have to pay patent royalties on each copy shipped. I would suggest you make sure your content works with gnash. adding patented backends that you need to make your content work after ensuring you have the appropriate patent licenses. how that will work for you I have no idea. I'm not a lawyer and don't know the law in your area. 2. Tabs -- we need them It takes too long to alt+tab between multiple instance of Browse. I don't think kids will be confused by multiple tabs but we can test this out soon. browse really needs tabs 3. Browse doesn't find Flash's settings.sol file. Flash needs permission to open html files on the local machine. We intend these files to be in the flash activity bundle and this permission has to be set in settings.sol is that because of rainbow? or some other limitation in browse? -- Dennis Gilmore signature.asc Description: This is a digitally signed message part. ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] flash (was Browse Needs)
Due to the patented technologies that are in flash we cant ship adobe's flash (that's why we have gnash) unless you have an agreement from adobe you likely cant ship flash either. I read through the license a couple months ago and if I can recall correctly, an organization can distribute copies of flash within its LAN. Technically I am the sysadmin for the schools and they are w/in my LAN. I don't ship flash or post an XO build that includes flash on a publicly accessible web server. Hopefully this will hold up in court :) ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] Needs for Browse
On Wed, Jul 2, 2008 at 2:32 PM, Bryan Berry [EMAIL PROTECTED] wrote: I was working w/ Trinarayan today on running flash activities on the XO and we came upon a lot of features we need in Browse. For the moment we are using firefox 3 but would like to use Browse instead. 1. Display flash by default. A lot of existing educational resource use flash. Some people don't like turning on flash because it slows down a lot of pages. We want it turned on because most of the sites of educational value either use flash heavily or not at all. We don't care if www.tv.com is slow or Myspace takes a long time to load. This is as easy as removing agent-stylesheet.css from the Browse bundle. 2. Tabs -- we need them It takes too long to alt+tab between multiple instance of Browse. I don't think kids will be confused by multiple tabs but we can test this out soon. Not arguing here about tabs or no tabs, but perhaps improving activity switching might alleviate this as well as improving general usability? Thanks a lot for the feedback, Tomeu ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] Needs for Browse
On Wed, Jul 2, 2008 at 11:39 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote: On Wed, Jul 2, 2008 at 2:32 PM, Bryan Berry [EMAIL PROTECTED] wrote: 2. Tabs -- we need them It takes too long to alt+tab between multiple instance of Browse. I don't think kids will be confused by multiple tabs but we can test this out soon. Not arguing here about tabs or no tabs, but perhaps improving activity switching might alleviate this as well as improving general usability? I also won't argue tabs or no-tabs at present (though the initial designs did have tabs, there were some concerns about them as well). I'd second Tomeu's comment; the new Frame design as well as the new alt-tab behavior are *much* better than before. Also, in addition to the standard alt-tab, I want to add alt-backtick as well to cycle only through all instances of the current activity. (ticket #7335) This is specifically to facilitate this use case, would make switching much more direct. - Eben ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] flash (was Browse Needs)
Well, adobe is moving more and more towards open source, hence their stance on AIR and Flex, which are both completely open source as far I as understand... I know from the ubuntu devs that they even asked whether they can help with the creation of a totally open source flash implementation... (flash not gnash) How does Flex differ from Flash? would it not be possible to do Flex instead? David On Wed, Jul 2, 2008 at 5:36 PM, Bryan Berry [EMAIL PROTECTED] wrote: Due to the patented technologies that are in flash we cant ship adobe's flash (that's why we have gnash) unless you have an agreement from adobe you likely cant ship flash either. I read through the license a couple months ago and if I can recall correctly, an organization can distribute copies of flash within its LAN. Technically I am the sysadmin for the schools and they are w/in my LAN. I don't ship flash or post an XO build that includes flash on a publicly accessible web server. Hopefully this will hold up in court :) ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] flash (was Browse Needs)
Flex is a framework for developing flash widgets that can do AJAXy stuff AFAIK, flex still relies on the flash player. I believe that AIR is also proprietary. -Original Message- From: David Van Assche [EMAIL PROTECTED] To: Bryan Berry [EMAIL PROTECTED] Cc: sugar@lists.laptop.org Subject: Re: [sugar] flash (was Browse Needs) Date: Wed, 2 Jul 2008 18:18:09 +0200 Well, adobe is moving more and more towards open source, hence their stance on AIR and Flex, which are both completely open source as far I as understand... I know from the ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
[sugar] Vacation
Hello, I'll be in vacation 3 - 12 July. I'll not bring a laptop so that I don't end up working all the time again :) Simon is going to take care of the next Sucrose release, while I'm away. Marco ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] offline moodle
On Tue, Jul 1, 2008 at 11:50 PM, David Van Assche [EMAIL PROTECTED] wrote: The developers seem highly motivated to do something that would work for olpc too, its basically their Master's thesis, and they seem to have a good Cool. It will be great if they can help :-) In terms of Adobe AIR, I think it and Flex are open source, at least Flex definitly is, and I think Adobe is moving very seriously and very quickly in the open source direction. Talking to Adobe is always an option, or perhaps I'm dreaming a little :-) Unfortunately, it's unlikely to matter in practice :-/ GG has been open sourced at last (the initial license wasn't open enough), and it's starting to gain adoption. We can only ship a limited amount of sw on the XO and GG is gathering steam AFAICS. Unless AIR is based on GG, the slot will be probably taken by GG. And it's a good thing too. Google has shown that understands FOSS and is making some long term bets on it. Adobe... well... I guess I'm going to regret this, but I'll volunteer, if you've got time to guide me in areas I need. I've got lots of experience with Moodle including teaching, and had a php based web development company for 6 years, so I guess I should be able to do this... though I hate coding... You'll have to be pretty independent (my time is very stretched atm), but if you jump on the offline moodle forum and we can start a discussion. Having said that, with time and dedication, you can probably get the core of it going :-) I've asked for the source code, so we'll se what they say... I am more interested in *this* track, something GG-based :-) Open University has a LOT of content and material concerning offline moodle and it makes sense to colaborate with them as much as possible. Yes, but note that their goals are _very_ limited. Read into the details, and you'll see it's mainly about static content. Due to various issues collaboration tools cannot run via the offline machinery with their plan. If you search in the general developer forum, we had a very long thread between Colin (the architect @ OU) and myself fleshing out the plan, and what the limits were. Unfortunately I don't have the link handy :-/ cheers, m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] non-intuitive Neighborhood information
On Thu, Jun 26, 2008 at 18:02, Eben Eliason [EMAIL PROTECTED] wrote: Interesting; thanks for making us aware of it. However, it would be much more useful, and less likely to get forgotten, if this was instead entered as a bug in trac at dev.laptop.org. Thanks! On Thu, Jun 26, 2008 at 10:58 AM, Mikus Grinbergs [EMAIL PROTECTED] wrote: [I don't have wireless at home; am using last week's Joyride.] Last Sunday, I was using my OLPC at a cafe called Bouldin. Yesterday, I visited a friend who lives in a wifi-rich location. At his house, my Neighborhood view showed several circles which, when the cursor was hovered over them, listed that connection's ESSID as 'Bouldin'. [My friend lives 20 miles from the cafe !] As near as I can figure out, at the cafe the OLPC Network Manager put an entry [Bouldin] at the top of .sugar/default/nm/networks.cfg. Then, at my friend's house, whenever the OLPC saw an Access Point which was not broadcasting its ESSID, it picked a matching entry from networks.cfg, and displayed that entry-name for that icon. Just wanted to let the developers know that it was confusing to see obviously-untrue labels on some circle icons in Neighborhood. mikus I filed #7415 which might be the same issue. My AP is appearing in Neighborhood view twice. This might be a general Network Manager issue: I have recently seen APs appear on my ubuntu laptop that I last used ages ago elsewhere in the world. Morgan ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] offline moodle
Hi Martin, Unfortunately, it's unlikely to matter in practice :-/ GG has been open sourced at last (the initial license wasn't open enough), and it's starting to gain adoption. We can only ship a limited amount of sw on the XO and GG is gathering steam AFAICS. Unless AIR is based on GG, the slot will be probably taken by GG. And it's a good thing too. Google has shown that understands FOSS and is making some long term bets on it. Adobe... well... Yeah, after looking a bit deeper into it, AIR isn't entirely open source, though it uses open source parts which are interesting to us (sqlite for example) I guess I'm going to regret this, but I'll volunteer, if you've got time to guide me in areas I need. I've got lots of experience with Moodle including teaching, and had a php based web development company for 6 years, so I guess I should be able to do this... though I hate coding... You'll have to be pretty independent (my time is very stretched atm), but if you jump on the offline moodle forum and we can start a discussion. Having said that, with time and dedication, you can probably get the core of it going :-) Let's wait to see what Bryan from OLE Nepal has in mind in terms of the person he mentioned, and I can certainly help with that. I get the underlying architecture needed... and now understand why you looked into Gears for an offline app... machinery with their plan. If you search in the general developer forum, we had a very long thread between Colin (the architect @ OU) and myself fleshing out the plan, and what the limits were. Unfortunately I don't have the link handy :-/ Yep read most of the thread and understand the difference... though from a recent conversation with Colin, he seems much more inclined to do something along the lines of Gears and Sqlite now... I'll forward the mail your way so you can have a quick browse... Kind Regards, David Van Assche ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
Re: [sugar] offline moodle
On Wed, Jul 2, 2008 at 4:19 PM, David Van Assche [EMAIL PROTECTED] wrote: Yeah, after looking a bit deeper into it, AIR isn't entirely open source, though it uses open source parts which are interesting to us (sqlite for example) Thanks for confirming that. Let's wait to see what Bryan from OLE Nepal has in mind in terms of the person he mentioned, and I can certainly help with that. I get the underlying architecture needed... and now understand why you looked into Gears for an offline app... :-) No need to wait. If you can help, feel free to make a start looking at packaging GG in an RPM for the XO. This needs to happen, and that in itself doesn't need many decisions or waiting for anyone. Have a look at how Firefox (xpi?) packages are built and configured for Fedora 9, and try to repro that ;-) If you hop on the fedora-devel mailing list, and mention you are helping olpc, people will probably be keen to lend a hand with packaging-related questions. Yep read most of the thread and understand the difference... though from a recent conversation with Colin, he seems much more inclined to do something along the lines of Gears and Sqlite now... I'll forward the mail your way so you can have a quick browse... that's good to hear :-). OU will deliver based on what they started - and that's a good thing for their users. It's not that compelling for us as we already have excellent collab tools on the XO. Longer term, I think they might hop on board the GG train too. We have to be careful to make it useful for XO and for others too, so those others help us out. cheers, martin -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar
[sugar] Question about internationalization on sugar-jhbuild
Hello All, I'm trying to set up some simple internationalization on a sugar activity but am running in to problems. I am specifically using sugar-jhbuild and launching it with 'LANG=es ./sugar-jhbuild run' command when I want to test my internationalization out. Here are the steps I have followed (I used http://wiki.laptop.org/go/Python_i18n and http://wiki.laptop.org/go/Localization/Testing to guide me): 1. First, I created a directory within my activity (a simple shell fo an activity which I have called Annotate.activity) called 'po' and I went in to that directory. 2. In Annotate.activity/po, I created a POTFILES.in file and put the following text: encoding: UTF-8 annotateactivity.py 3. I launched sugar-jhbuild and went in to the terminal, where I ran 'python setup.py genpot' from the Annotate.activity directory. This generated an 'Annotate.pot' file. I went in to Annotate.pot and added some translations for strings that I knew would need translating in my program (one specific one was a from a print statement where the string is wrapped in _()). 4. Still in sugar-jhbuild's terminal, I ran 'msginit -l es' which generated a file called 'es.po'. 5. finally, I did 'msgfmt -o ../locale/es/LC_MESSAGES/ org.laptop.AnnotateActivity.mo es.po' to generate the mo file and place it within the right directory for spanish (the directory path is similar to the one I found for Web.activity, whose translations are working fine). After doing all this, I restarted sugar-jhbuild by using 'LANG=es ./sugar-jhbuild run' . I can see other activities have text translated, but my activity is not translating the text that I wrapped in _() and was printing out. I checked the source file and I am using gettext (importing it as _ and then using the wrapper in the print statement I want translated). Someone suggested trying to do an strace to see what was happening. I did this and found the following in the portion of the log where it has any reference to the string I want translated: 1. stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en_US.UTF8/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) 2. stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en_US/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) 3. stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en.UTF8/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) 4. stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) 5. write(1, hello world should be translated..., 33hello world should be translated 6. ) = 33 1 stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en_US.UTF8/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) 2 stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en_US/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) 3 stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en.UTF8/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) 4 stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) 5 write(1, hello world should be translated..., 33hello world should be translated 6 ) = 33 1 2 3 4 5 6 stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en_US.UTF8/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en_US/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en.UTF8/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) stat(/home/fanwar/sugar-jhbuild/sugar-jhbuild/install/share/sugar/activities/Annotate.activity/locale/en/LC_MESSAGES/ org.laptop.AnnotateActivity.mo, 0x7fffa41f75d0) = -1 ENOENT (No such file or directory) write(1, hello world should be translated..., 33hello world should be translated ) = 33 1.
[sugar] help-activity
Hello, here is a minimal Help activity. http://dev.laptop.org/~marco/Edit-1.xo http://dev.laptop.org/git?p=users/marco/help-activity;a=summary I discussed the UI with Eben, basically just a toolbar like this: Back - Forward - Home - Search field I'd expect it to work with 8.1.1 too, but I have not tested it there. TODO: * I haven't implemented a search field yet. Do we need it for 8.2.0? * We need an icon for the activity and one for the home/index. Eben, are you going to provide them? * Someone should add the content... there is a fake index.html right now. * Code can be made nicer by improving hulahop. ___ Sugar mailing list Sugar@lists.laptop.org http://lists.laptop.org/listinfo/sugar