I need to load my cache from my PC in other PC. So, where is the qml map cache in PC? When my app is working on ubuntu 20.04 I found cache in ./cache/myproject/qmlcache. But when I removed the cache from there while the program was running, it still displayed the map correctly. Where is the real map cache stored?
It should be under /.cache/QtLocation or /.cache/<app_name>/QtLocation
The subdirectory depends on the plugin you use for the map tiles.
/qmlcache is just the cache for the QML engine itself, not the tiles.
Related
We have one particular site that is Symfony and uses the e-commerce bundle Sylius.
Our developers are trying to use Vagrant so we can have similar dev environments. We use Puphpet to generate the Vagrant instance and share the config file.
If we are working on the site/repo natively or on a staging server, all runs fine. Pages load in around 2-3 seconds.
When we are using Vagrant / Virtualbox, it's 30-35 seconds per page load.
So far we've tried
Allocating up to 6GB to the box
Giving up to 4 processors to the box
Turning on NFS for file sync
Turning off all other programs on computers running Vagrant / Virtualbox (chat, other browsers, etc)
None of those things made an impact on page load time.
I can provide 2 things. One is the load trace from Symfony: https://nimbus.everhelper.me/client/notes/share/708707/mvw707mckzm2wq4rlkzc
Since there is so much code to the puphpet config, I put it in a pastebin here: http://pastebin.com/7ciVA5FL
What is OS on a host machine?
My guess would be that file system is slow. Try to run an app outside of shared folder on the guest machine. If it will be fast, then you'll spot a problem at least.
NFS on *nix or mac should be fast enough, are you sure you've succeed to turn it on?
I had this pain once, and finally started to use unison instead of native vagrant's file sharing system (https://www.cis.upenn.edu/~bcpierce/unison/)
Have your tried:
http://www.whitewashing.de/2013/08/19/speedup_symfony2_on_vagrant_boxes.html
or http://jeremybarthe.com/2015/02/02/speed-up-vagrant-environment-symfony2/
I think the first one is already included in Sylius, but not sure.
Also, dynamic image resize/crop may be reading/writing in the host file system and maybe there's a way to also change that (using symlinks or similar)?
vagrant-winnfsd works fine for me for getting NFS to work on Windows.
I'm currently creating a mobile app with Apigility as the API. All is working well and life is heaven on my laptop. However, when releasing onto OpenShift we can't access images under the public folder.
I'm calling the images with the full URL "http://coolapp.com/public/images/smile.jpg" but keep on getting access denied despite changing permissions on the DIR. Once again on my mac all works fine.
Cheers :-)
It turns out version 1.0 of apigility has an issue completing update write under mac with an SSD drive. We moved project to a linux box did a manual composer update and voila! all is ok now.
I have a Qt 4.8-based application that runs on Windows 7 and uses Qt Assistant to display documentation. I've frequently had headaches with Qt Assistant relating to the need to delete cached files whenever I update documentation (I keep reading that cache problems have been fixed in various Qt updates, but the problems I have seem to persist). This occurs when I launch Assistant from within my application or directly from the command line (with assistant.exe -collectionFile myapp.qhc).
This is a major problem when I'm distributing my application to users. It's not OK to expect them to delete cached files on their systems.
I couldn't find anything in the Qt documentation on how to clear the user's cached help files. Is there something I'm missing?
I have also compiled my application for Linux, and don't seem to have the same problem there. It's just Windows.
UPDATE + SOLUTION ===============================
Sorry to be posting the solution here instead of in a comment, but something about my work's filtering doesn't allow the comment functionality to work for me.
I ended up using the -b 0.0.0.0 property in jboss to bind to all addresses, so I could try accessing machine A's server with machine B as the client, and vice-versa. I found that it always failed to load when running on machine B, whether or not I was connecting from A or B.
I started wireshark on a windows machine on the same network, and observed the TCP connection that was loading the webpage. I saw that the request for the .swf in the cases where it failed had a content length of 2 million or so, and when I right clicked the wireshark logs and selected "view conversation" or something like that, the size of the total conversation to get the .swf file was only 130,000. Looking at about:cache, that was about equal to what it ended up caching before saying "Done" on the page.
I ended up finding that there is a bug with the useSendFile property. (http://community.jboss.org/thread/148651?tstart=0). This causes it to only send part of the file if you are running low on kernel memory. Using useSendFile="false" in our server.xml has seemed to resolve the problem.
==================================================
Original Problem
I have a JBoss (5.1.0.GA) application server. I am using GraniteDS to connect between the application server and the client. The client side is flash-based.
Granite DS requires the use of the APR library (apache native library), so I am loading it. I see in the JBoss logs that it says it loaded the apache native library just fine (version 1.18, though I've also tried 1.20).
The issue is that when I have it so the APR library loads successfully, then the Flash side of the application does not usually load. I'll have to hit refresh a bunch of times and eventually it will usually load, but normally I'll see either a black webpage that says "Done" or the loading progress bar never move. Only by repeatedly hitting refresh will the page load. It will load eventually by hitting refresh enough, but it is not consistent and this obviously will not work for our clients who have to clear their browser's cache every time.
This problem only exists on Solaris, our application works fine on Windows. We've tried multiple patch-levels of solaris, and have verified with the "ldd" command that the library that needs to be loaded has all its dependencies there.
We've verified it isn't our swf file's size by testing:
1) Our regular SWF (1660 kb).
2) A random large-ish SWF (950 kb).
3) A small SWF with one label component that says "Test" (277 kb).
All 3 were unable to load when JBoss was also loading the native library, and loaded just fine without it. We need the native library to load successfully for Granite to connect between the client and server though, so not loading it isn't an option (unless there's some way to use the NIO connector with JBoss, but it appears unsupported).... if there is a way to use the NIO connector then we shouldn't need the APR library.
Has anybody run into this before? Anybody have any ideas or recommendations?
Have you tried the jboss native libraries for Solaris ?
http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-9.html
Where are the signed, cached flex libraries on a windows / mac / linux system? They don't appear to be in my browser cache... so where is adobe keeping them?
So, as my answer below shows, I found the files. But can I clear the cache? After trashing the files in windows, I don't see the files get downloaded again (with fiddler).
You can see Flash's cached data using the Website Storage Settings Panel in the Flash Player Setting Manager. From here you can clear data relating to a specific site, or clear all data.
This from Adobe - Whats new in Flex 3:
The Player cache is different from the
browser cache in that it is maintained
by the Flash Player; therefore, it is
not cleared at the same time as the
browser cache, and will only store
items that have been signed by Adobe.
Here are a few other StackOverflow questions/answers that may have some good info:
SWF client side caching
Optimizing Flex when multiple modules are used
Is building separate .swc allow a faster loading of the application?
http://livedocs.adobe.com/flex/3/html/help.html?content=rsl_09.html
Platform
Location
Windows 95/98/ME/2000/XP
C:\Documents and Settings\user_name\Application Data\Adobe\Flash Player\AssetCache\
Windows Vista
C:\Users\user_name\AppData\Roaming\Adobe\Flash Player\AssetCache\
Linux
/home/user_name/.adobe/Flash_Player/AssetCache/
Mac OSX
/Users/user_name/Library/Cache/Adobe/Flash Player/AssetCache/