Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
For youtube alone, I recommend one of the Youtube download scripts/extensions. There's even some userscripts and bookmarklets out there (both features I would like to add to Browse at some point). This particular patch is very much geared towards taking pure html content offline, content from plugins (such as Flash player or Java applets) may or may not work with this, depending on the website. 2009/11/10 Caroline Meeks carol...@solutiongrove.com: On Mon, Nov 9, 2009 at 5:16 PM, Lucian Branescu lucian.brane...@gmail.com wrote: This patch won't save video, at least not flash video. In fact, it does exactly what Firefox's 'save complete web page' functionality does. It may save video in html5 video tags for offline use, but I haven't tested that. If it works with Firefox, it should work with this as well. It does seem to work in firefox. For my use case we'll need to be able share a page that some (the teacher) has saved. Here is the scenario in a school in the US. The school district blocks YouTube for example in schools. But YouTube has many valuable clips. The teacher goes to YouTube at home and pics an educational clip. (e.g. Schoolhouse rock) and saves it. The teacher shares/sends the browse/bookmark (terminology unclear to me) Students can then watch the clip at home where they do not have any internet Thanks! Caroline 2009/11/9 Caroline Meeks carol...@solutiongrove.com: Sorry, I missed this email when I sent the other one. A use case I'm working on today is grabbing a video when I'm online, sharing it with students for them to watch at home when I'm offline. Do I need this patch to enable this use case also? On Mon, Nov 9, 2009 at 11:47 AM, Lucian Branescu lucian.brane...@gmail.com wrote: Forgot the first time, I've looked at a book from that link and it's a .zip file with some html inside, but there's no index.html file. There is a start.html file (which I assume is the entry point), but as it is right now, the user would have to click start.html after the .zip file is loaded. I could add 'start.html' to the list of entry points to look for if it's an important enough use case. Yes please add support for start.html. There a millions of books available on the internet, but I think this is one of the few resources that provides books that would be useful to a dyslectic second grader who reads below grade level. And Sugar is the only platform who believes that that user is important use case for eBooks. ;) Thank you!! 2009/11/9 Caroline Meeks solutiongr...@gmail.com: This sounds great! I've been trying to get the zip files of books from CAST to work. Will this patch fix it for me? What is the easiest way for me to try it? Is there a VM appliance? Here is a link to the books I'm trying to get to work: http://bookbuilder.cast.org/model.php Thanks! Caroline On Sun, Nov 8, 2009 at 10:17 AM, Lucian Branescu lucian.brane...@gmail.com wrote: The second point in this ticket http://bugs.sugarlabs.org/ticket/971 I've made a patch against the latest Browse, but trac doesn't let me post it (apparently I'm a bot). Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Patch attached. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
On Sun, Nov 8, 2009 at 7:17 AM, Lucian Branescu Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Why not browse the .zip files using the jar: protocol wrapper instead of unzipping them to temporary storage? When handling a zip file, you should be able to just wrap it with jar:file:///path/to/zip!/index.html and hand this to the browser. In the mailing list thread directly browsing compressed content in the datastore Benjamin Schwartz mentioned Lucian experimented with jar: for browsing offline webpages, but ultimately rejected it after determining that webpages using javascript would not function properly. Such pages worked for me, what problems did you encounter? BTW, since .xol files are ZIP files, your patch and/or the jar: protocol means Sugar users could view web content bundles without having to unpack them, allowing the distribution of really large content bundles. I filed http://dev.sugarlabs.org/ticket/1258 I think this is a sugar-toolkit change, but Tomeu categorized it as a Browse bug. Cheers, -- =S Page ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
I've tried jar:, but there were numerous issues with navigating to other pages. Also, it was quite hard to get Browse to actually open that URI, it kept trying to prettify it. On top of that, jar: has been deprecated because of security issues. After investigating jar: I found out that it actually unzips things in temporary storage anyway. So I could easily replace jar: with two lines of code and not bother with its problems. The only thing my code doesn't do that jar: does is very prompt cleanup. 2009/11/10 S Page skierp...@gmail.com: On Sun, Nov 8, 2009 at 7:17 AM, Lucian Branescu Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Why not browse the .zip files using the jar: protocol wrapper instead of unzipping them to temporary storage? When handling a zip file, you should be able to just wrap it with jar:file:///path/to/zip!/index.html and hand this to the browser. In the mailing list thread directly browsing compressed content in the datastore Benjamin Schwartz mentioned Lucian experimented with jar: for browsing offline webpages, but ultimately rejected it after determining that webpages using javascript would not function properly. Such pages worked for me, what problems did you encounter? BTW, since .xol files are ZIP files, your patch and/or the jar: protocol means Sugar users could view web content bundles without having to unpack them, allowing the distribution of really large content bundles. I filed http://dev.sugarlabs.org/ticket/1258 I think this is a sugar-toolkit change, but Tomeu categorized it as a Browse bug. Cheers, -- =S Page ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
On Sun, Nov 8, 2009 at 4:17 PM, Lucian Branescu lucian.brane...@gmail.com wrote: Besides being able to save pages for offline use, this patch will also Question on this track (perhaps OT)... do the HTML5 specs have something in this regard? IIRC (from an in-depth reading done 3 months ago) the offline extensions have a simple facility (that looks a lot like what you're working on) as well as the full blown show of offline webapps that Gmail uses. If it's done in an HTML5 compatible way, love will spread and ponies will prance in the prairies... Browse.xo users will be able to take advantage of any website that DTRT, and any Moodle enhancements I make to support this will be mergeable upstream... :-) 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] Keep offline for Browse (offline bookmarks)
I've actually implemented the full-blown web app part (it's called Site Specific Browser) for Browse as part of GSoC. The offline bit can be done either with LocalStorage (html5, but it's been around since Firefox 2.0) or Gears. So new offline-able web apps can target html5, existing web apps already use Gears (which needs more work for Browse). The other features are more invasive so I'm trying to make individual patches for each of them. This is the first one because it's the most useful on its own and it's been requested for a long time. 2009/11/10 Martin Langhoff martin.langh...@gmail.com: On Sun, Nov 8, 2009 at 4:17 PM, Lucian Branescu lucian.brane...@gmail.com wrote: Besides being able to save pages for offline use, this patch will also Question on this track (perhaps OT)... do the HTML5 specs have something in this regard? IIRC (from an in-depth reading done 3 months ago) the offline extensions have a simple facility (that looks a lot like what you're working on) as well as the full blown show of offline webapps that Gmail uses. If it's done in an HTML5 compatible way, love will spread and ponies will prance in the prairies... Browse.xo users will be able to take advantage of any website that DTRT, and any Moodle enhancements I make to support this will be mergeable upstream... :-) 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] Keep offline for Browse (offline bookmarks)
On Tue, Nov 10, 2009 at 1:36 PM, Lucian Branescu lucian.brane...@gmail.com wrote: I've actually implemented the full-blown web app part (it's called Site Specific Browser) for Browse as part of GSoC. Great! So it should be easy to store for offline small bits of static content? Is there any UI needed / present for this? Any how to author static / simple offline content for HTML5 guide we can recommend? cheers. 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] Keep offline for Browse (offline bookmarks)
There's no UI for this, the developer of the web app must support this themselves. GMail for example already does it. The user can create a SSB for GMail, which will appear as a separate activity and can have its own userscripts and whatnot. Also, userscripts could be used to adapt website for offline use (something like http://code.google.com/apis/gears/articles/gearsmonkey.html). Right now, developers can use Gears and follow its documentation or DOM storage (https://developer.mozilla.org/en/DOM/Storage). The Karma documentation could be of help as well. You can read more on my blog (http://honeyweb.wordpress.com/) or the wiki page (http://wiki.sugarlabs.org/Webified). 2009/11/10 Martin Langhoff martin.langh...@gmail.com: On Tue, Nov 10, 2009 at 1:36 PM, Lucian Branescu lucian.brane...@gmail.com wrote: I've actually implemented the full-blown web app part (it's called Site Specific Browser) for Browse as part of GSoC. Great! So it should be easy to store for offline small bits of static content? Is there any UI needed / present for this? Any how to author static / simple offline content for HTML5 guide we can recommend? cheers. 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] Keep offline for Browse (offline bookmarks)
This sounds great! I've been trying to get the zip files of books from CAST to work. Will this patch fix it for me? What is the easiest way for me to try it? Is there a VM appliance? Here is a link to the books I'm trying to get to work: http://bookbuilder.cast.org/model.php Thanks! Caroline On Sun, Nov 8, 2009 at 10:17 AM, Lucian Branescu lucian.brane...@gmail.comwrote: The second point in this ticket http://bugs.sugarlabs.org/ticket/971 I've made a patch against the latest Browse, but trac doesn't let me post it (apparently I'm a bot). Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Patch attached. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
Forgot the first time, I've looked at a book from that link and it's a .zip file with some html inside, but there's no index.html file. There is a start.html file (which I assume is the entry point), but as it is right now, the user would have to click start.html after the .zip file is loaded. I could add 'start.html' to the list of entry points to look for if it's an important enough use case. 2009/11/9 Caroline Meeks solutiongr...@gmail.com: This sounds great! I've been trying to get the zip files of books from CAST to work. Will this patch fix it for me? What is the easiest way for me to try it? Is there a VM appliance? Here is a link to the books I'm trying to get to work: http://bookbuilder.cast.org/model.php Thanks! Caroline On Sun, Nov 8, 2009 at 10:17 AM, Lucian Branescu lucian.brane...@gmail.com wrote: The second point in this ticket http://bugs.sugarlabs.org/ticket/971 I've made a patch against the latest Browse, but trac doesn't let me post it (apparently I'm a bot). Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Patch attached. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
Sorry for any confusion, the second keep_offline.patch should be applied over the older one. 2009/11/9 Lucian Branescu lucian.brane...@gmail.com: Right now, you'd need to apply the patch to Browse yourself. I've attached an .xo bundle that should work on sugar 0.86, but I haven't tested it. Right now I add some metadata to the journal object so that it is opened by Browse by default (metadata['activity']='org.laptop.WebActivity'). I could however change it so that Browse opens any .zip file, not just files it produced itself. I've attached a patch that does that (adds the zip mime type in activity.info). 2009/11/9 Caroline Meeks solutiongr...@gmail.com: This sounds great! I've been trying to get the zip files of books from CAST to work. Will this patch fix it for me? What is the easiest way for me to try it? Is there a VM appliance? Here is a link to the books I'm trying to get to work: http://bookbuilder.cast.org/model.php Thanks! Caroline On Sun, Nov 8, 2009 at 10:17 AM, Lucian Branescu lucian.brane...@gmail.com wrote: The second point in this ticket http://bugs.sugarlabs.org/ticket/971 I've made a patch against the latest Browse, but trac doesn't let me post it (apparently I'm a bot). Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Patch attached. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
Sorry, I missed this email when I sent the other one. A use case I'm working on today is grabbing a video when I'm online, sharing it with students for them to watch at home when I'm offline. Do I need this patch to enable this use case also? On Mon, Nov 9, 2009 at 11:47 AM, Lucian Branescu lucian.brane...@gmail.comwrote: Forgot the first time, I've looked at a book from that link and it's a .zip file with some html inside, but there's no index.html file. There is a start.html file (which I assume is the entry point), but as it is right now, the user would have to click start.html after the .zip file is loaded. I could add 'start.html' to the list of entry points to look for if it's an important enough use case. Yes please add support for start.html. There a millions of books available on the internet, but I think this is one of the few resources that provides books that would be useful to a dyslectic second grader who reads below grade level. And Sugar is the only platform who believes that that user is important use case for eBooks. ;) Thank you!! 2009/11/9 Caroline Meeks solutiongr...@gmail.com: This sounds great! I've been trying to get the zip files of books from CAST to work. Will this patch fix it for me? What is the easiest way for me to try it? Is there a VM appliance? Here is a link to the books I'm trying to get to work: http://bookbuilder.cast.org/model.php Thanks! Caroline On Sun, Nov 8, 2009 at 10:17 AM, Lucian Branescu lucian.brane...@gmail.com wrote: The second point in this ticket http://bugs.sugarlabs.org/ticket/971 I've made a patch against the latest Browse, but trac doesn't let me post it (apparently I'm a bot). Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Patch attached. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
This patch won't save video, at least not flash video. In fact, it does exactly what Firefox's 'save complete web page' functionality does. It may save video in html5 video tags for offline use, but I haven't tested that. If it works with Firefox, it should work with this as well. 2009/11/9 Caroline Meeks carol...@solutiongrove.com: Sorry, I missed this email when I sent the other one. A use case I'm working on today is grabbing a video when I'm online, sharing it with students for them to watch at home when I'm offline. Do I need this patch to enable this use case also? On Mon, Nov 9, 2009 at 11:47 AM, Lucian Branescu lucian.brane...@gmail.com wrote: Forgot the first time, I've looked at a book from that link and it's a .zip file with some html inside, but there's no index.html file. There is a start.html file (which I assume is the entry point), but as it is right now, the user would have to click start.html after the .zip file is loaded. I could add 'start.html' to the list of entry points to look for if it's an important enough use case. Yes please add support for start.html. There a millions of books available on the internet, but I think this is one of the few resources that provides books that would be useful to a dyslectic second grader who reads below grade level. And Sugar is the only platform who believes that that user is important use case for eBooks. ;) Thank you!! 2009/11/9 Caroline Meeks solutiongr...@gmail.com: This sounds great! I've been trying to get the zip files of books from CAST to work. Will this patch fix it for me? What is the easiest way for me to try it? Is there a VM appliance? Here is a link to the books I'm trying to get to work: http://bookbuilder.cast.org/model.php Thanks! Caroline On Sun, Nov 8, 2009 at 10:17 AM, Lucian Branescu lucian.brane...@gmail.com wrote: The second point in this ticket http://bugs.sugarlabs.org/ticket/971 I've made a patch against the latest Browse, but trac doesn't let me post it (apparently I'm a bot). Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Patch attached. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
On Mon, Nov 9, 2009 at 5:16 PM, Lucian Branescu lucian.brane...@gmail.comwrote: This patch won't save video, at least not flash video. In fact, it does exactly what Firefox's 'save complete web page' functionality does. It may save video in html5 video tags for offline use, but I haven't tested that. If it works with Firefox, it should work with this as well. It does seem to work in firefox. For my use case we'll need to be able share a page that some (the teacher) has saved. Here is the scenario in a school in the US. The school district blocks YouTube for example in schools. But YouTube has many valuable clips. The teacher goes to YouTube at home and pics an educational clip. (e.g. Schoolhouse rock) and saves it. The teacher shares/sends the browse/bookmark (terminology unclear to me) Students can then watch the clip at home where they do not have any internet Thanks! Caroline 2009/11/9 Caroline Meeks carol...@solutiongrove.com: Sorry, I missed this email when I sent the other one. A use case I'm working on today is grabbing a video when I'm online, sharing it with students for them to watch at home when I'm offline. Do I need this patch to enable this use case also? On Mon, Nov 9, 2009 at 11:47 AM, Lucian Branescu lucian.brane...@gmail.com wrote: Forgot the first time, I've looked at a book from that link and it's a .zip file with some html inside, but there's no index.html file. There is a start.html file (which I assume is the entry point), but as it is right now, the user would have to click start.html after the .zip file is loaded. I could add 'start.html' to the list of entry points to look for if it's an important enough use case. Yes please add support for start.html. There a millions of books available on the internet, but I think this is one of the few resources that provides books that would be useful to a dyslectic second grader who reads below grade level. And Sugar is the only platform who believes that that user is important use case for eBooks. ;) Thank you!! 2009/11/9 Caroline Meeks solutiongr...@gmail.com: This sounds great! I've been trying to get the zip files of books from CAST to work. Will this patch fix it for me? What is the easiest way for me to try it? Is there a VM appliance? Here is a link to the books I'm trying to get to work: http://bookbuilder.cast.org/model.php Thanks! Caroline On Sun, Nov 8, 2009 at 10:17 AM, Lucian Branescu lucian.brane...@gmail.com wrote: The second point in this ticket http://bugs.sugarlabs.org/ticket/971 I've made a patch against the latest Browse, but trac doesn't let me post it (apparently I'm a bot). Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Patch attached. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax -- Caroline Meeks Solution Grove carol...@solutiongrove.com 617-500-3488 - Office 505-213-3268 - Fax ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Keep offline for Browse (offline bookmarks)
Hi Lucian, On 8 Nov 2009, at 15:17, Lucian Branescu wrote: The second point in this ticket http://bugs.sugarlabs.org/ticket/971 I've made a patch against the latest Browse, but trac doesn't let me post it (apparently I'm a bot). Besides being able to save pages for offline use, this patch will also allow distribution of HTML content in .zip files that have an 'index.html' inside. Browse will happily open such files (but they may need certain metadata). Sounds fantastic, I'm currently trying to reproduce Presence issues (have been bouncing questions the last few days off Michael off-list), but will try to give this patch a look in a few days. Regards, --Gary ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel