I've read in a post from December 1st 2012 at Slodge bloch that File and DownloadCache plugins could be used for downloading and caching images from http sources. I think that's what I need in the app I'm trying to develop with MvvmCross (great framework, congratulations!!).
My app, first connects to a remote server to download some basic configs. One of these configs points to an url to get the app icon. To save bandwith, I'd like app caches the icon the first time it gets it until the url changes.
I performed some search with no much success and I'd like somone pointing me to a good demo on how to cache images from http sources and then binding these image to UI Image controls (Droid, iOS and WP)
Thaks
Showing images on wp, winrt, xamarin.android and xamarin.touch from http is shown in these two N+1 videos:
Kittens - N=2 - https://www.youtube.com/watch?v=e-ZKgO8fTw4
Books - N=6 - https://www.youtube.com/watch?v=He6QvnLsPUA
I've faced the same issue recently and finally solved it. It was pretty easy, you just need to make sure that you added and initialized Cirrious.MvvmCross.Plugins.Json plugin in your project.
I created a similar question that it's solved already https://stackoverflow.com/a/17891681/1309164
Related
Does anybody have any insight on whether or not the Google Play Publishing API will allow an upload with split APKs? I know there is a bundle method for app bundles, but my developer hasn't switched to this format yet.
Split APKs are only uploadable within app bundles (whether via the API or via the console UI).
However, if you don't mean "split APKs" but actually mean Multi-APK (having more than one variant of your APK sharded by eg native code ABI) then this is available via the API or UI, and the help page is here.
While learning how to create Android-xamarin-azure application, I must have done steps from different tutorials. I've just created a new test application, and this picture shows what's the final screen.
This screen is showing that I've already have a connection string and a Todo table. I remember that before I was able to download a backend project. Now, I'm just being told that I've already a table, but I don't know how to download the backend project.
I'd like to download the backend project as well, so that I can start expending it.
Thanks for helping
Just follow this link. It shows how to download backend project
https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-dotnet-backend-how-to-use-server-sdk/#create-app
I am new to node, so please excuse me if I am asking stupid questions.
Ghost has been released as NPM module recently. I am trying to integrate it with my application, so I could have custom home page and serve blog on a separate page. Once I do following in my app.js, it takes over all the traffic to my site. How do I configure ghost to serve only the blog?
var ghost = require('ghost');
ghost();
We're missing a few details here so I'll make some assumptions.
If you are hosting node using the default server than (as of this posting) you are out of luck since ghost is setup to run in it's own standalone server. One possible solution is to run both the standard node.js server for your page then another for ghost. That's obviously not ideal but until they fix their integration issues you don't have much choice.
I'm trying to solve the same problem, and currently imagine finding a hosting that allows me to run two node instances (I think that is quite possible with e.g. digital ocean). One - port 80 - will point to Ghost, while the other (on some other port) will host the REST API for the app.
I will then create a blank page linked to a custom template that loads the rest of my angular application - the files will be stored in the assets folder of my custom template, while ajax calls will simply be to the non-standard port.
Here's the only solutions I've come up with (don't know if they're the adequate though):
Server-side updates:
Version every client request and have the proxy route to the
appropriate server version.
Cient-side updates:
Notify the client over a websocket connection to re-inject the
script/style tags after X number of idle minutes thereby invoking 2
ajax requests for updated JS/CSS files and refresh the HTML of the
page.
I don't know if this is something that shouldn't be a priority in the early stages of the app and I should just take the entire app down for "scheduled maintenance" in the early hours of the morning.
For SEO purposes, the front page's HTML is sent by the server along with the single JS/CSS file.
I think the Right Thing (tm) is to make build your single page application in a way where it consumes RESTful API which is public quality. In other words, think about it as if you are publishing your API to the world and when making changes make them backwards compatible. I think this is not as hard as it might think and will leave you with a cleaner system. Certainly better than building a complex versioning and live patching scheme!
If you are deploying to a tomcat server, you can simply overwrite the .js and .css files in the correct "deployed" location....
copy files to /your/deployed/app/location/webapp/js, etc this is a quick and easy way to "hot deploy" a new JS / CSS w/o taking the server down..... however if you have backend support that also needs to be updated, that may require a restart of the tomcat service. in which case something like Jenkins might help. http://www.tomcatexpert.com/blog/2012/03/21/integrating-jenkins-and-apache-tomcat-continuous-deployment
I am currently working on a project that is using Dojo as the js framework. Its a rather rich ui and as such is using (and thus loading) a lot of different .js files for the dojo plug-ins
When run on an apache server running on a mac, the files (all around 1k) are served very quickly (1 or 2 ms) and the page loads pretty fast (<5 seconds)
When run on IIS on Win 7, the files are served at an unbelievably slow rate (150ms - 1s), thus causing the page to take up to 3 minutes to load.
I have searched the internet to try to find a solution and have come up empty.
Anyone have any ideas?
Why not let Google serve the Dojo files for you?
The AJAX Libraries API is a content
distribution network and loading
architecture for the most popular,
open source JavaScript libraries. By
using the google.load() method, your
application has high speed, globally
available access to a growing list of
the most popular, open source
JavaScript libraries.
What you need to do is build an optimized version of your code. That way you will have far fewer hits to your server (but I guess they'll still be slow, until you discover the iis problem) Dojo runs out of the box as individual files which is great for development, but without running the build scripts to concatenate all these files together, the experience is poor. The CDN does build profiles for dojo base and certain profiles, like dijit.dijit. Doing a dojo.require on these profiles in addition to the individual requires would enable this after running a build. You would need to do create layers for your code as well. The build scripts can also concatenate css and inline template files, remove comments and whitespace, etc.
Have you actually tried measuring the load times on the intended target production server?
If you're just testing this on local development environments (or in development/test VM's) then I think you're comparing apples with oranges (pardon the pun :) ).