google-gears

Is there a secure browser cache?

旧时模样 提交于 2019-12-01 22:25:28
Note: this is a different problem to https - it's related to privacy security I'm trying to figure out if there's a way to take load off our server [cache] by pushing information to the browser. Is there any technology that will provide secure caching that is bound to a session? We have privacy-sensitive data that's often used, but will not change much. Re-requesting updates from the server/database all the time will reduce the sensitivity. The solution cannot rely on any page being held open the entire time (e.g. no framesets). Navigation away from a page (or opening a new tab) is allowed.

Foreign key isn't being enforced

和自甴很熟 提交于 2019-11-29 13:12:50
Why is the following foreign key constraint (although executes fine) not enforced by SQLite? How can I go about enforcing the relationship? CREATE TABLE User ( UserID TEXT Unique NOT NULL PRIMARY KEY, FirstName TEXT NOT NULL, LastName TEXT NOT NULL, Username TEXT NOT NULL, Password TEXT NOT NULL, Email TEXT NOT NULL, SignupDate TEXT NOT NULL ) CREATE TABLE Category ( CategoryID TEXT Unique NOT NULL PRIMARY KEY, UserID TEXT, FOREIGN KEY(UserID) REFERENCES User(UserID) ) As the relevant docs say (in section 2. Enabling Foreign Key Support ): Assuming the library is compiled with foreign key

Client Side Persistence (Storage)

岁酱吖の 提交于 2019-11-29 10:36:37
In my demos, I'd like to avoid using traditional DBs and store all the data on the client side, e.g. information submitted via a form. What alternatives do I have for that. I've heard about Gears but I don't have any practical experience. Can I also store binary information besides strings, e.g. an image? You may have a look on YUI's StorageUtility . It can use HTML 5, Google Gears or SWF on a fallback basis. Your options are somewhat limited I'm afraid. Cookies Depending on your willingness to only use certain browsers you could implement browser based storage Cookies are the most supported

Google Geolocation API library

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 04:34:38
Is there a library out there that will get you your approximate location using the google service ( https://www.google.com/loc/json )? Google Gears has support for it as described here http://code.google.com/p/gears/wiki/GeolocationAPI There is also good doco on the web service request/response schema. Firefox and iPhone Safari use the service as well and they have their own implementations. I would like to use the service in my own C# application so I would like a library that I can use (either one of C/C++/C#). Currently the only way my colleague got it working is using a gears plugin for IE

Google Geolocation API library

我的未来我决定 提交于 2019-11-27 18:31:53
问题 Is there a library out there that will get you your approximate location using the google service (https://www.google.com/loc/json)? Google Gears has support for it as described here http://code.google.com/p/gears/wiki/GeolocationAPI There is also good doco on the web service request/response schema. Firefox and iPhone Safari use the service as well and they have their own implementations. I would like to use the service in my own C# application so I would like a library that I can use

JavaScript multithreading

烂漫一生 提交于 2019-11-27 12:03:49
I'm working on comparison for several different methods of implementing (real or fake) multithreading in JavaScript. As far as I know only webworkers and Google Gears WorkerPool can give you real threads (ie. spread across multiple processors with real parallel execution). I've found the following methods: switch between tasks using yield() use setInterval() (or other non-blocking function) with threads waiting one for another use Google Gears WorkerPool threads (with a plugin) use html5 web workers I read related questions and found several variations of the above methods, but most of those

How does Google calculate my location on a desktop?

会有一股神秘感。 提交于 2019-11-27 10:12:20
Right this is confusing me quite a bit, i'm not sure if any of you have noticed or used the "my location" feature on google maps using your desktop (or none GPS/none mobile device). If you have a browser with google gears (easiest to use is Google Chrome) then you will have a blue circle above the zoom function in Google Maps, when clicked (without being logged into my Google Account) using standard Wi Fi to my own personal router and a normal internet connection to my ISP, it somehow manages to pinpoint my exact location with a 100% accuracy (at this moment in time). How does it do it? they

Foreign key isn't being enforced

依然范特西╮ 提交于 2019-11-27 07:46:05
问题 Why is the following foreign key constraint (although executes fine) not enforced by SQLite? How can I go about enforcing the relationship? CREATE TABLE User ( UserID TEXT Unique NOT NULL PRIMARY KEY, FirstName TEXT NOT NULL, LastName TEXT NOT NULL, Username TEXT NOT NULL, Password TEXT NOT NULL, Email TEXT NOT NULL, SignupDate TEXT NOT NULL ) CREATE TABLE Category ( CategoryID TEXT Unique NOT NULL PRIMARY KEY, UserID TEXT, FOREIGN KEY(UserID) REFERENCES User(UserID) ) 回答1: As the relevant

Is there a good jQuery Drag-and-drop file upload plugin? [closed]

こ雲淡風輕ζ 提交于 2019-11-26 19:17:01
Is there a nice tidy jQuery plugin that allows including a single JS script then using a simple snippet to enable a form? Something like this: $j('#MyForm').enableDragDropUploads('.upload-area') With the upload target being the action of the form. Any solution must not prevent a regular file field from being usable (using traditional browse method). I only need one file at a time, though of course having the option for multiple isn't a bad thing. I've found a couple of drag-drop upload examples: http://www.appelsiini.net/2009/10/drag-and-drop-file-upload-with-google-gears http://www.appelsiini

JavaScript multithreading

丶灬走出姿态 提交于 2019-11-26 15:53:19
问题 I'm working on comparison for several different methods of implementing (real or fake) multithreading in JavaScript. As far as I know only webworkers and Google Gears WorkerPool can give you real threads (ie. spread across multiple processors with real parallel execution). I've found the following methods: switch between tasks using yield() use setInterval() (or other non-blocking function) with threads waiting one for another use Google Gears WorkerPool threads (with a plugin) use html5 web