Christof Meerwald@blog.www | |||||||
home |
Mon Jul 07 18:14:25 2014 GMT: Lewes to Seaford Walk Tue Jul 01 22:08:32 2014 GMT: Ariadne auf Naxos and Manon Lescaut @ Royal Opera House Sun Jun 29 20:32:59 2014 GMT: localStorage vs. IndexedDB Been trying to improve the HikingGuide application for Firefox OS a bit. First thing I tried to implement was to add some better offline support by not relying on the browser cache alone, but trying to some kind of client storage to store map tiles. Well, it's not as easy as I thought it would be. So there is a simple "localStorage" that can be used and this is conveniently supported by OpenLayers. Only problem is that it has some arbitrary (and low) limit on the amount of data that can be stored, making it almost useless for that purpose. Ok, the alternative to use appears to be IndexedDB that has lots of fancy features - and an asynchronous API. Yes, I know, asynchronous APIs are much better than their synchronous counterparts, but this makes it very difficult to migrate from localStorage over to it. The main problem is that you can't even do a simple synchronous lookup. For example, OpenLayers would expect to do a db lookup within a callback (and have that lookup completed within that callback). Unfortunately, as the lookup can only be done asynchronously, this is now impossible to do - you can start the lookup within the callback and get another callback when the lookup completes, but by that time it's too late as you have already returned from the original callback... Wed Jun 25 19:22:43 2014 GMT: Firefox OS Notes During my trip to Switzerland, my new Firefox OS phone already came in quite handy, particularly map applications like HikingGuide were very helpful when navigating on the hills. But on the other hand, the email client doesn't seem to be able to show message bodies - I still have no idea why as there is no error message, just a waiting indicator. A tcpdump on the Wifi router doesn't even show any network request when trying to open an email message, so it's a bit strange as to what is going on... Wed Jun 25 18:50:20 2014 GMT: Rapperswil WG21 Meeting Finally managed to catch up a bit after returning from last week's ISO WG21 C++ meeting in Rapperswil. I have added some pictures from Zurich and Rapperswil/Einsiedeln: here, here, here, here, here, here and here. Fri Jun 13 17:50:28 2014 GMT: Firefox OS Phone Just got myself a ZTE Open C and it appears to actually work quite well (considering that it is a cheap phone). Wed Jun 11 18:48:16 2014 GMT: JabRSS Using Python Requests I have just switched the parserss code in JabRSS to using Python Requests for the HTTP layer instead of a lot of hand-crafted code based on httplib. Luckily, the interfaces were very similar, so it was mostly just a matter of removing code that's now handled by Python Requests (like decompressing content and Keep-Alive handling). Tue Jun 10 22:08:53 2014 GMT: Te Deum @ Royal Festival Hall Sat Jun 07 22:45:48 2014 GMT: Dialogues des Carmélites @ Royal Opera House Fri Jun 06 22:48:22 2014 GMT: The Dream / Connectome / The Concert @ Royal Opera House Sun Jun 01 22:15:54 2014 GMT: Weekend Walks Sun May 25 02:05:09 2014 GMT: Walk from Hever to Leigh in Kent | ||||||
This Web page is licensed under the Creative Commons Attribution - NonCommercial - Share Alike License. Any use is subject to the Privacy Policy.
Revision: 1.14, cmeerw.org/blog/864.html Last modified: Mon Sep 03 18:19:55 2018 |
Christof Meerwald <cmeerw@cmeerw.org> XMPP: cmeerw@cmeerw.org |