How to load big scene from server in swift - scnscene

I put art.scnassets in my local server and tried to use SCNScene(url: options:) to load the .scn
The assets are from fox2 Apple sample code.
Turns out: model is loaded successful but maps cannot be found, and options like "assetDirectoryUrls" did not help.
Any clue would be appreciated!

Related

Where does dotPeek store it's cache?

I was using dotPeek and my connection dropped right when it was going online to get some code for a given class. So my router has supplied it with 500 gateway page and now whenever I try to look at the code for that class I instead get an html view of that router page i.e. its been cached.
The problem is there doesn't seem to be any way to clear it. I've deleted everything in AppData for JetBrains for both roaming and local but to no effect.
Where is the disassembly cache for dotPeek?
For me, version 1.2 stores in C:\Users\{username}\AppData\Local\JetBrains\dotPeek\v1.2\DecompilerCache
Well thank heavens for process monitor. It stores it's cache in a directory like so:
C:\Users\rism\AppData\Local\Symbols\src\source.NET\4\DEVDIV_TFS\Dev10\Releases\RTMRel\ndp\fx\src\xsp\System\Web\Routing\RouteCollection.cs
In the latest version (2017.1.2), it appears to be in:
C:\Users{username}\AppData\Local\Temp\DecompilationTemp

How can I load a three.js Blender 2.7 exported model without being on a HTTP server?

Hi I and currently doing all my THREE.js things on file:///.
When I follow tutorials to load models they do
var myLoader = new THREE.JSONLoader();
myLoader.load( url-path-to-file );
The error:
XMLHttpRequest cannot load file:///C:/.../.../.../testmodel.js. Cross origin requests are only supported for HTTP. three.js:11996
THREE.JSONLoader: "./testmodel.js" seems to be unreachable or the file is empty. three.js:11952
Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///C:/.../.../.../testmodel.js'.
Because of the limitations of using the file protocol I cannot load things like this. I am wondering how to skip this? I am thinking of storing the exported blender as a JavaScript object and then maybe there is already a piece of THREE.js that can do the rest for me?
Run a python web server from your root directory is what I have done to avoid XSS related errors. I have python installed in windows.
Python version 3 in windows from directory that has your HTML file etc:
c:\Python33\python.exe -m http.server
then point your browser to:
http://localhost:8000/yourhtmlfile.html
For more info on running the server for various versions of python / OS see here:
https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally
Check out this little project. It is a 3D file viewer and has the ability to load STL and Collada files locally in the client. Works both locally and on a server:
https://github.com/yomboprime/Visor3D
Deriving from the code a local JSON loader function is trivial. Yoy can start modifying the loadDAEFile() function (main.js), which reads local file as text.

ABCPdf - Unable to render HTML. Unable to load page

I'm using ABCPdf to convert HTML to a PDF. I'm using the method:
AddImageUrl()
This works fine in Dev and UAT, but on Production I continuously get the message:
Unable to render HTML. Unable to load
page
Anyone see this before? Need more info?
-Ev
I guess you are tying to do URL->pdf generation. It is difficult to directly to do URL->pdf conversion. We ended up URL-Save HTML in local folder ->read HTML and convert to PDF-> delete HTML file from folder - tricky approach but it works. The only flaw is that you need to give read/write permission on a folder on server. Its still better than decreasing security settings.
have you take a look at this http://www.itjungles.com/dotnet/abc2pdf-unable-to-render-html
The default timeout for abcpdf is 15 seconds. If the page is taking longer than 15 seconds, you will get this exception.
Add the line below just after object creation of the document to resolve the issue.
theDoc.XHtmlOptions.Timeout = 10000000;
I found by working backwards (removing elements) from a target html page that omitting the tag (of all things) created this error. also, calling localhost in the target url generated this error.
I have no idea what caused this error, but I stopped the scheduled task that was running, then restarted it and it's worked fnie ever since.

codeigniter modular extensions

I'm trying to implement modular extensions into a codeigniter 2 setup but am having a few problems. I followed the installation instructions on the wiki and everything was working fine. Then I started to play around a bit and try and use it. All I did was create a new module called users with the required folders and added a model class called users_m. I then tried to load this from my welcome module controller. According to the wiki this should be very straightforward. I simply added this line
$this->load->model('users/users_m');
to the constructor of my welcome controller.
Unfortunately at this point I get the white screen of death.
So I tried something else. This time I removed the load model line and added
$this->output->enable_profiler(TRUE);
This time I got the welcome page displayed and I got the profiler, but at the top of the page I got this error:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI::$profiler
Filename: MX/Loader.php
Line Number: 145
I don't know if these two tries are related or not, but there's obviously something not right with my setup. Could someone point me in the right direction?
If you accessing the model from the controller in the same module, you can load it using just:
$this->load->model(‘user_m’);
You only have to do $this->load->model(‘module/model_name’); when your cross loading between modules.
Just to make sure, your model is located here right?
application/modules/users/models/users_m.php
As for the profiler error:
1) Have you done installation step 5 and put the Modular Extensions core files into application/core?
2) Do you have the latest version of HMVC? There have been updates to mx/loader.php in the last couple days.
Ps. great tutorial on HMVC: http://net.tutsplus.com/tutorials/php/hvmc-an-introduction-and-application/
if you have folder structure like:
application/
modules/
users/
models/
users_m.php
then use this to call modelsin you controller
$this->load->model('users/users_m','',TRUE);

Upload images problem: IO error. (Error #2038)

I'm using script which is uploading files to server via flash component. Sometimes, very rarely, when trying to upload images via Firefox I get following error: IO error #2038. Searching on the net I could find reason why is it really happening to me. But I found solution for my case:
I open IE6, do the same thing there (photos are always uploaded without problem) and the when I try again in Firefox problem disappears. If someone had similar problems maybe this could help or maybe this hint could help to someone discovering cause of the problem :)
I just had this error also using ASP.Net MVC and I discovered I just had my handler namespace wrong/missspellled in the web config section where the handlers go. HTH...
After far more time than I'd like to admit, here is the solution. Change the following variables in your php.ini to be large enough to handle your largest file:
; Maximum size of POST data that PHP will accept.
post_max_size = 32M
; Maximum allowed size for uploaded files.
upload_max_filesize = 32M
; Whether to allow HTTP file uploads. (this is on by default)
file_uploads = On
Since files are sent as POST data, both the first variables need to be set. Otherwise, there will be an error, but you won't see what the error is, except IO error #2038.
If you didn't add quote around the option names, try doing that. Sometimes in IE, quoting the option names fixes the issue. It would help if you posted some example code though.
Also make sure that the path to the server being used by the upload component is correct. If the path is a relative path, try to fully qualify it. IE can do some "magic" with relative paths that the other browsers cannot do, and sometimes trying the code from one browser to the other can tweak things.
Also, could be permissions...and having IE go there first could manipulate the permissions in a way that the other browser(s) then work "correctly".
I solved the problem.
In my office I use a proxy and I must change the settings to No Proxy.
Or if you do not use proxy, try to change in php.ini:
Hostname:Port localhost:0
to:
Hostname:Port localhost:80

Resources