HTML5 web storage abstraction libraries - html

From what I've read of web storage in HTML5, there are a number of different storage options with varying support across different browsers.
Are there any popular libraries for abstraction of web storage in HTML5 applications?

There are a couple of YUI-based libraries for abstracting the underlying storage away:
YUI 2: Storage Utility
YUI 3: Storage Lite
You'd need to port them if you wanted to use them with another library, though it looks like someone has already done that for jQuery.

Related

How use QT WebChannel without webSockets

Is possible to use QT QWebChannel without websockets, but using WebKit ICP?
I only found examples using webSockets.
Unfortunately, the documentation states that:
It works on all browsers that support Qt WebSockets, [...]. Additionally, a custom transport mechanism can also be implemented using Qt WebSockets to support Qt WebChannel-based communication.
It seems that you cannot use it without WebSockets, and it would explain why all the examples you find actually use them.
Anyway, it also states that:
The transport mechanism is supported out of the box by the two popular web engines, Qt WebKit 2 and Qt WebEngine (experimental).
Despite the fact that it is experimental, it looks like an alternative to the WebSockets.
Actually, while digging into the linked documentation, I've found that page where it is said about WebKit that it implements internally the required interface and it can be used in place of the WebSockets, but no example is provided.
You can find spare information all throughout the linked page, as an example it is said that:
For HTML clients run inside Qt WebKit, you can load the file via qrc:///qtwebchannel/qwebchannel.js. For external clients you will need to copy the file to your webserver.
Then, it follows a brief description of the steps to be done to achieve the same on those clients, as far as I understand by using no WebSockets in this case.
That said, It seems to me that the solution based on the WebSockets is the suggested one, so probably you should reconsider you architecture and use them. Otherwise, be ready to deal with experimental and poor documented features.

Mass file generation with razor

I have to produce many text files on some event, for example, on end of a business day. These files contain data entries and will be consumed by several enterprise systems. To solve this task (I work with Microsoft technologies) I can use Biztalk, XSLT or some template engines. Not all template engines are suitable for me. So, whereas I can apply NVelocity (open-source, but robust and reliable) I cannot use T4, since T4 is NOT aimed for massive file generations and has multi-threading limitations.
Question: What prevents me from using Razor engine and creating some Windows-service, which creates these files? Are there any limitations for using Razor for massive file generation (for example, multi-threading support or something else)?
I had really good expierience with Razor hosted outside ASP envirnoment, for rendering emails for example. I used Razo Engine (v2) and do not have any problems with multithreading and memeory leaks. Highly recommended it. Moreover in v3 they natively support parallel template rendering An early look at RazorEngine v3

Webeditor for developing a modern website

I created a webpage several years ago. Back then I was using Adobe GoLive! to achieve that. But now, there is no adobe GoLive any more and I don't have a useful application for creating a web project. So what I want to achieve is: a good looking online presence for my project. I want to use the new stuff as well, like HTML5 and CSS3. I don't think that I will need beans or J2EE, because it is more about the design and not the functionality. Later on I will include the web project into my Apache server. So the question is: which tool can help me to develop a modern website, what would you advice?
Thank You
Actually I use NetBeans 8 for the following reasons:
it's very strong and containt so many features
i supports ftp
ii supports CSS3 , HTML5
iii powerful , autoComplete
it's open-Source application so it's free
it keeps the history of your files and saves all the updates so you can restore any file
situation you made before
it's easy to use.
It's a good programming tool
SECOND: I suggest using xampp instead of abache server
it actually includes abache and some other features like mysql
so it's easy to deal with it instead of dealing with many programs :)
I strongly recommend 'IUEditor'
Free license. Ownership is 2,000$, monthly license is more than 50$. But if you request startup license they offer free license.
CSS3 and HTML5 : you can use any kind of website.
Back-end support : That's only one web editor which supports backend, such as django and angularJS
Supports GIT.
I tried more than 10 web editors, but IUEditor works best.

Should i use Lawnchair or localForage to maintain data offline

I'm writing an app using Ionic framework. I use mongodb as a datastore in the cloud but the lists are too comprehensive and is slowing the app down. After consuming millions of hours reading about client side storage I still dont have a clear answer.
I hoped it would be possible to serve these comprehensive json files native from the client, which is ios + android + windows phone but having not "server" to serve it that idea seemed to be a dud. Dont know if my limited understanding of the rest API in angular is at fault but logically that idea doesn't make sense.
Looking at on native sql clietn I investigated sqlite. Since sqlite implementation on these different platforms(ios + android + windows phone) will be a pain i looked at the different types of browser caching.
I dont want to go into to much detail but localstorage is to simple for my structures, and the other options are not being supported or deprecated. Its a mess. However, the two options regarding offline data solution i have found is Lawnchair and localForage.
What is the differences between these two as they provide the most comprehensive solution based on the client. Any one willing to suggest a beter / worse option.
Then there is the site files which i also want to cache using app cache but I'm not sure how to since I'm using https://www.npmjs.org/package/generator-ionic which is kick-ass by the way.
Lawnchair syntax is a bit more complicated than localForage and the project is no longer updated whereas localForage is (and it's developped by mozilla).
If you are using angular, then go with https://github.com/ocombe/angular-localForage which is my implementation of localForage for Angular, it will be really easy and you can force the driver you want to use if necessary (but on mobile local storage will never be choosen since all mobile smartphones support either websql or indexeddb).

What to Use for PhoneGap Database Storage

I am writing an application using PhoneGap, and am finding it hard to work out how to store my data in a database. For the minute I just want to keep an open mind as I will be recommending technology options to our company.
The PhoneGap API for storage is here,
http://docs.phonegap.com/en/1.3.0/phonegap_storage_storage.md.html#Storage
It is based on this HTML5 spec,
http://www.w3.org/TR/webdatabase/
The problem for me is that the specification for this is not being maintained any more, and the standard has been deprecated.
The other problem is that I implemented a database using web database, and the versioning didn't work properly.
What is PhoneGaps stance on this and will PhoneGap look at other technologies such as the Indexed Database API,
http://www.w3.org/TR/IndexedDB/#database-concept
I am storing JSON data in the localStorage for now which is working great, but I am wondering if my database could get too big and it might not be the best option.
I faced the similar issue while developing an application few months back in which we were expecting to port the application to different platforms (with different versions). So instead of using the core storage mechanism which phonegap offers we went on using a dedicated storage framework which can provide consistent api but uses the best underlying storage mechanism.
There are variety of JS frameworks which can help you use the underlying storage. The following are few might interest you if you are planning to use the app on different platforms.
PersistenceJS - persistencejs.org
lawnchair - http://westcoastlogic.com/lawnchair/
persistencejs uses gears and localstorage in combination which helps to run the app on BlackBerry 5.x devices as well without any change.
I went on using the persistencejs and it have really worked well till now. We have ported the application on Android, iPhone, iPad, BlackBerry (5.x and greater)