sandbox

Why does the Flash Player throw a sandbox error in this case?

冷暖自知 提交于 2019-11-29 16:36:16
问题 I get a Flex 3 sandbox error #2048 after connecting to a Socket on a Java (1.5) server. The server code is all mine, i.e. not running under Apache. Flash Player 10.0 r32. The sequence is as follows... 1 Java server starts, listens on port 843 for policy file request and on port 45455 for my other requests. 2 Flex client served by Apache (although I get the same result if I run it from the file system), socket connection made on host:45455. 3 Flash Player requests policy file from port 843.

Loading Assemblies from a .Net Application in a 'Sandbox Environment'

半世苍凉 提交于 2019-11-29 15:47:37
问题 I am currently developing an application in where a user will dynamically choose dlls and the application will execute some of the methods in that dll. ( if you follow the first link, you will see that I am developing a sort of Robocode game application using the .Net Framework ). For example, when the battle starts, the run method from the dll is executed. Since whatever was specified in the run method will be executed, there are quite a bit of Security Constraints that have to be applied.

Make sandbox around Function() in Javascript

£可爱£侵袭症+ 提交于 2019-11-29 13:54:44
问题 Can I limit the access of a string-generated function (using the Function constructor) to the parent/global scopes? For example: the following code, as it is, prints false , because the function is storing/modifying the variable a in window. window.a = 4; Function("a=3;")() console.log(a === 4); Could I restrict the access to window/parent scope and make it print out "true" ? 回答1: Here is an additional idea which could be quite powerful together with Esailija's proposal (see the comments on

How to Enable/Disable Sandbox Mode in Facebook App

孤街醉人 提交于 2019-11-29 13:23:54
I can't find the setting to turn the sandbox mode on/off within a new Facebook application I just created. Does something else have to be turned on or off in order for me to see this setting? You may need to enter your contact email address under settings section. user3159406 You can disable sandbox by going to " Status and Review " in the option panel on the left, and then click "yes" for the question "Do you want to make this app and all its live features available to the general public?" It's easy!! first: Enter your email in the section[ Settings ] second: Activate/Deactivate with option[

云游戏的架构设计和技术实现

大城市里の小女人 提交于 2019-11-29 13:14:27
首先简单做个自我介绍。我本人主要是从事游戏行业的,经历比较复杂,早年做 PC 端网游,然后又做了几年虚拟现实,接着又做页游和手游, 现在主要是做 HTML5 游戏。这跟云计算可能有点远,但是我个人对云计算技术很感兴趣,所以业余也会关心这项技术的发展。所以就有了这样一个游戏和云计算相结合的项目,这是我去年跟上海劢驰数字技术有限公司合作的项目,我作为技术顾问参与了这个项目的架构设计和一些核心技术的研发。 什么是云游戏? 云游戏这个概念非常简单,就是我把游戏放到服务器上去运行,把游戏渲染出来的的音视频画面,通过流的形式传送到终端,终端上不再需要安装游戏,各种终端比如说电视、手机、PC、平板都可以运行。这样我们就不需要关心游戏怎么去适配不同的软硬件平台、终端性能够不够等等这些问题。这个概念本身是非常好的,在2009年的时候,这个技术就已经出现了,美国有家叫Onlive 的公司第一个推出云游戏服务,但是他最终在商业上还是失败了,技术最后被索尼公司收购,并运用在PS Now上。云游戏的概念虽然非常好,但里面技术挑战性非常高,有非常多的技术问题需要解决,那个时代可能还比较早,软硬件都还不太成熟,所以最后没有能够成功的商业化。到了现在这个时间点上,云游戏技术开始慢慢成熟起来,已经具备了商业化的基础。 下面是对我们产品的介绍。对云游戏来说,用户主要会关心延迟问题,玩一个对抗性很强的游戏

iOS 8 beta 5 Game Center Sandbox won't recognize my app

牧云@^-^@ 提交于 2019-11-29 09:20:54
I trying use GC sandbox in game, on iOS 7 it works fine, but on iOS 8 beta5 GC authentication return error "The requested operation could not be completed because this application is not recognized by Game Center". In production GC work fine on iOS 7 and 8 beta5. cheng You should turn on the GC sandbox mode. go to settings --> game center scroll to the bottom, there is a "sandbox" swith under "developer". (Important! - These developer options are hidden until you have connected the device to XCode 6. If you didn't use XCode and deployed your app in some other way - e.g. Testflight, iPCU,

seccomp — how to EXIT_SUCCESS?

寵の児 提交于 2019-11-29 09:08:50
Ηow to EXIT_SUCCESS after strict mode seccomp is set. Is it the correct practice, to call syscall(SYS_exit, EXIT_SUCCESS); at the end of main? #include <stdlib.h> #include <unistd.h> #include <sys/prctl.h> #include <linux/seccomp.h> #include <sys/syscall.h> int main(int argc, char **argv) { prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT); //return EXIT_SUCCESS; // does not work //_exit(EXIT_SUCCESS); // does not work // syscall(__NR_exit, EXIT_SUCCESS); // (EDIT) This works! Is this the ultimate answer and the right way to exit success from seccomp-ed programs? syscall(SYS_exit, EXIT_SUCCESS); //

Python eval(compile(…), sandbox), globals go in sandbox unless in def, why?

淺唱寂寞╮ 提交于 2019-11-29 07:53:44
Consider the following: def test(s): globals()['a'] = s sandbox = {'test': test} py_str = 'test("Setting A")\nglobals()["b"] = "Setting B"' eval(compile(py_str, '<string>', 'exec'), sandbox) 'a' in sandbox # returns False, !What I dont want! 'b' in sandbox # returns True, What I want 'a' in globals() # returns True, !What I dont want! 'b' in globals() # returns False, What I want I'm not even sure how to ask, but I want the global scope for a function to be the environment I intend to run it in without having to compile the function during the eval. Is this possible? Thanks for any input

极光推送平台配置iOS推送证书过程

夙愿已清 提交于 2019-11-29 06:25:13
极光推送平台,需要上传配置开发测试的iOS推送证书(开发环境)和上架到App Store的ios 推送证书!(生产环境) 下面介绍如何申请这两个环境的推送证书p12文件! APP要推送通知首先要在创建APPID时勾选推送服务。 苹果开发者中心添加新应用id教程 如果你已经有应用id并且已经开启了推送权限,直接申请即可! 1、iOS开发推送证书(开发环境) 这里使用Appuploader工具申请,可以辅助直接在Windows申请推送证书p12文件! Appuploader安装教程 1、打开Appuploader,用苹果开发者账号登录。 2、选择证书选项 3、点击+ADD\选择Apple Push Notification service SSL(Sandbox) —iOS开发环境推送证书 输入证书名称(随意)、邮箱(随意)、密码,选择你的APP对于的应用id,点击ok创建。 4、下载保存好.p12 iOS证书文件 推送证书是没描述文件的,只有一个p12,不用申请描述文件。 二、iOS发布推送证书(生产环境) 1、打开Appuploader,用苹果开发者账号登录。 2、选择证书选项 3、点击+ADD\选择Push Notification service SLL(Sandbox & Producyion)—iOS生产环境推送证书 输入证书名称(随意)、邮箱(随意)、密码

Cocoa: take screenshot of desktop wallpaper (without icons and windows)

Deadly 提交于 2019-11-29 05:08:18
Is is possible to capture the Mac OS X desktop without desktop items and any windows that may be open (i.e. just the wallpaper)? I've experimented with CGWindowListCreateImage , CGWindowListCreateImageFromArray , and CGDisplayCreateImage , but no luck. Essentially I'm trying to capture the desktop wallpaper without using [NSWorkspace desktopImageURLForScreen:] (it's a sandboxed app without access to the file system). You'll need to be careful to test that this is still correct, but the desktop window sits below the Finder (it's drawn by the Dock). Passing the