sandbox

How can I provide a pseudo file system for r.js?

一个人想着一个人 提交于 2019-12-14 04:00:01
问题 Ok, so r.js can run on Rhino. Which is great. To do the stuff it needs to do. On rhino it basically uses java.io.File , java.io.FileOutputStream and java.io.FileInputStream to achieve the filesystem modifications that it needs to do. (Background: I am working on delivering a better development experience for Maven based Java/Javascript developers. Being Maven, there is the power of convention and the power of being opinionated. You can see the progress at jszip.org.) So what I want to do is

Security Sandbox Violation

故事扮演 提交于 2019-12-14 03:51:49
问题 while running my flash application i get the below error * Security Sandbox Violation * Connection to rtmp://system ip/live halted - not permitted from file:///F:/Flash work/RTS/RT/vlab/BIOTECH/NEO/passive-properties-of-a-simple-neuron/vi-characteristics-of- solarpanel.swf -- Untrusted local SWFs may not contact the Internet. SecurityError: Error #2028: Local-with-filesystem SWF file file:///F:/Flash work/RTS/RT/vlab/BIOTECH/NEO/passive-properties-of-a-simple-neuron/vi-characteristics-of

paypal sandbox account fail

只谈情不闲聊 提交于 2019-12-14 03:49:38
问题 I am trying to create a paypal sandbox test account. I fill all the fields providing a complex password and 100USD as a balance. Still after creating and checking the profile of the account I got the error message We experienced some issues on our end while creating this Sandbox account. Please delete it and try again. and the PayPal balance is 0 I've tried everything suggested on Google, nothing works! am I missing something or there is a current problem with PayPal? 回答1: I'm having exactly

Trying to keep track of number of outstanding AJAX requests in firefox

孤人 提交于 2019-12-14 03:41:50
问题 I am using Selenium to test a web application and am not allowed to modify the application's javascript code. I am trying to track the number of outstanding AJAX requests by using GreaseMonkey to override XMLHttpRequest.send. The new send() will basically wrap what was set as the onreadystatechange callback, check the readyState, incrementing or decrementing the counter as appropriate, and calling the original callback function. The problem that I'm having appears to be a privilege issue

Classloader in Applet: Can't access files

℡╲_俬逩灬. 提交于 2019-12-13 19:22:49
问题 I have an application that uses reflection to instantiate code saved in some directory: I create a URLClassLoader that then loads the classes using the URLs provided; this works fine. I tried to port the application to an Applet. For loading text files and images, I changed the code from using relative paths to use getResourceAsStream() which works great. For the class loader, however, I still have an I/O exception (which I also used to get with the text files and images before I changed the

NSSavePanel not working when sandboxed? - OSX • Objective C

大兔子大兔子 提交于 2019-12-13 19:05:33
问题 I have the following save panel in my app. I have recently tried to sandbox it but unfortunately when sandboxed saving doesn't seem to be working. I understand that beginSheetForDirectory is depreciated, so possibly that's why it's not working? How can I get this to work with sandboxing? - (IBAction)saveButtonPressed:(id)sender { NSSavePanel *sp = [NSSavePanel savePanel]; [sp setRequiredFileType:@"jpg"]; [sp beginSheetForDirectory:[NSString stringWithFormat:@"%@/Pictures", NSHomeDirectory()]

How to allow DLL create/read/update/delete files ONLY in the directory where the DLL is located

只愿长相守 提交于 2019-12-13 17:27:16
问题 I have a few folders and every folder contains a few .DLL files. The DLL can be executed, and I have to ban CRUD operations by this DLL outside of its own folder. But the DLL can perform any save operation it needs, as long as its in the same folder where the DLL is situated. For example: //this code can be executed succesfully public static void Create() { string path = Directory.GetCurrentDirectory() + "\\file.txt"; File.Create(path); } //but execution of this code I have to ban public

Are static variable truly “global” (system-wide) in Android?

为君一笑 提交于 2019-12-13 13:39:40
问题 A quick note at the very beginning to avoid false duplicates: There are tons of questions here about when static variables get cleared and how long they live. This is not what I'm asking about here. If I have a static variable in a program on a PC and I launch two different copies of the program, then each copy will usually run in its own sandbox with its own private values for its static variables. So, they are not system-wide global (not sure if that is good terminology here). Are there

Javascript Sandbox unit testing

穿精又带淫゛_ 提交于 2019-12-13 13:08:16
问题 I am using QUnit, which is excellent. I have enclosed my JS app in the (function () {})(); sandbox. This hides a lot of code that I don't want public, but I also need to test that code. Here is an example of how this works: (function () { var PublicAPI = window.PublicAPI = {}; PublicAPI.publicFunction = function (foo) { PrivateAPI.privateFunction(foo); return 'bar'; }; var PrivateAPI = {}; PrivateAPI.privateFunction: function (foo) { // Make secret stuff that never gets returned to the public

NSSavePanel, CGImageDestinationFinalize and OS X sandbox

霸气de小男生 提交于 2019-12-13 05:25:38
问题 I'm using NSSavePanel to let user select image to save to in my app. Everything worked fine until I enabled app sandboxing and entitlements. The problem occurs with selection of an already existing file. My code is like this: // Create a URL to our file destination and a CGImageDestination to save to. CGImageDestinationRef imageDestination = CGImageDestinationCreateWithURL((CFURLRef)[savePanel URL], (CFStringRef)newUTType, 1, NULL); CGImageDestinationAddImage(imageDestination, cgimage,