offline

Building a pure offline Meteor app

核能气质少年 提交于 2019-11-27 17:28:19
Seems to be some questions about how one can use Meteor offline when there's no internet connection here on Stack Overflow, but I'm interested in if it's possible to build a Meteor application that will only be used offline. For example, is it possible to generate folder containing a single HTML file and all other files necessary (images, and possible CSS files and JavaScript files if they aren't embedded into the HTML file), and everything works out of the box when one opens the HTML file in a browser? As far as I have tested, one can kind of getting it to work using the appcache package (one

Is there a way to preload templates when using AngularJS routing?

心已入冬 提交于 2019-11-27 17:26:56
After the Angular app is loaded I need some of the templates to be available offline. Something like this would be ideal: $routeProvider .when('/p1', { controller: controller1, templateUrl: 'Template1.html', preload: true }) There is a template cache service : $templateCache which can be used to preload templates in a javascript module. For example, taken from the docs: var myApp = angular.module('myApp', []); myApp.run(function($templateCache) { $templateCache.put('templateId.html', 'This is the content of the template'); }); There is even a grunt task to pre-generate a javascript module from

How to have complete offline functionality in a web app with PostgreSQL database?

大城市里の小女人 提交于 2019-11-27 17:21:38
问题 I would like to give a web app with a PostgreSQL database 100% offline functionality. In an ideal case the database should be completely replicated in the browser per user, and synchronized when online. So that the same code can be used to talk to both the offline and online database. I know this is possible with PouchDB and CouchDB, but have not found a solution that works with PostgreSQL. Is this at all possible? 回答1: Short answer: I don't know of anything like this that currently exists.

Offline iOS web app: loads my manifest, but doesn't work offline

和自甴很熟 提交于 2019-11-27 16:49:21
I'm writing a web app to be used offline on iOS. I've created a manifest, am serving it up as text/cache-manifest , and it usually works fine, when running inside Safari. If I add it as an app to my home screen, then turn on Airplane mode, it can't open the app at all -- I get an error and it offers to close the app. (I thought this was the entire purpose of an offline app!) When I load the app a first time when online, I can see in my logs that it's requesting every page listed in the manifest. If I turn off Airplane mode, and load the app, I can see the first file it's requesting is my main

ClearCase: Working offline hijacking files, then checking out / merging

 ̄綄美尐妖づ 提交于 2019-11-27 16:10:41
I'm looking at a scenario where I have an offline clear case view and I modify files in this view clearing the read-only attribute (hijacking) on the files I modify then several days later I take the view online and need to get my offline changes into the stream. What I would do is check out the hijacked files and check them back in (merging when necessary). Is it always safe to work this way? Is it possible that while adding my changes I would accidentally overwrite other people's changes done while I was working offline? Any recommendations on how to use ClearCase offline? Thanks! (I'm

How do I make a WiX installer with a completely self-contained .NET 3.5 sp1 installer?

不打扰是莪最后的温柔 提交于 2019-11-27 14:57:56
问题 I need to include the full .NET 3.5 sp1 installer into my installer, which is in WiX. I need that boostrapper to be entirely self contained, with no web access at all. It is just not allowed for this installer to require the web; we have customers in outer Mongolia (I'm serious, not just using the place name because it's remote) to whom we ship CDs because they do not have internet access at all. The WiX tutorial states: <Target Name="AfterBuild"> <GenerateBootstrapper ApplicationFile="$

Dynamically Trigger HTML5 Cache Manifest file?

浪尽此生 提交于 2019-11-27 14:37:31
I am using the new cache manifest functionality from HTML5 to cache my web app so it will work offline. The content is cached automatically when the page is loaded with the following html element: <html lang="en" manifest="offline.manifest"> This works fine. However, I want to give my users the option of whether they want the content cached offline. So, here is my question: Is there any way to trigger that an application be cached at runtime, using JavaScript, and not have it automatically done when the page is loaded. For example, something like this (using jquery): ----------------index.html

Using GIT on USB stick for “travelling code”

偶尔善良 提交于 2019-11-27 14:01:24
I have exhaustively searched for answers to my question here and on Google. I have found some great resources and learning tools for understanding Git and what it does, but I need to get some clarification, and assistance. What I am doing is working on a side-project for work both at my office and at home. (I'm migrating C# code to Java to help me learn both languages.) The setup : Environment: Windows 7 (VS 2008 is on an XP virtual machine) Git: msysgit 1.7.4 IDEs: VS 2008 and Eclipse Git plugins: Eclipse: I am using EGit. VS 2008: I plan on using one mentioned here on SO, Git Extensions Git

Options for distribution of an offline Ruby on Rails application

杀马特。学长 韩版系。学妹 提交于 2019-11-27 12:23:01
问题 I am developing an application in using Ruby on Rails, mostly as an excuse to learn the language. This is not intended to be a web-based application - and perhaps I have chosen the wrong language, but... My understanding is, that in order to run an instance of this application on somebody else's computer, they would need to install ruby on rails, and a webserver (or webrick, perhaps), as well as my application code. I am just curious if there are any other options for distributing my

Whats the easiest way to determine if a user is online? (PHP/MYSQL)

青春壹個敷衍的年華 提交于 2019-11-27 10:21:32
Is there a way I can piggy back sessions to know if the user is online? I.e: use logs on, I set a $_SESSION variable, user times out- cookie Garbage collector updates the database to update their status as offline. EDIT: I want a solution that does not involve times or dates. I want something to ride on sessions or something similar. Guessing if someone is online is not good enough for what I need. Don't bother with figuring out the differences between timezones. That's not necessary. Whenever the user accesses a page, update a field in their record of the Users table last-updated-time. Then