sandbox

Mini-OSGi that can run in a sandbox (like AppEngine or WebStart)?

故事扮演 提交于 2019-12-02 18:24:54
I really like the concept of modular bundles as implemented by OSGi. I also like "managed deployment" services like Google AppEngine (for web application) or Java WebStart (for client software). These two ideas seem to complement each-other rather well conceptually. However, the OSGi standard includes a couple of features that make it impossible for implementations like Felix or Equinox to run on top of sandboxed virtual machines, such as AppEngine or Webstart. In these environments, it is not possible to get direct access to a file system, for example, which precludes the OSGi bundle cache

How to add a sandboxed app to the login items

橙三吉。 提交于 2019-12-02 18:14:36
I want my app to auto start if the user select the option. The methods I have been using is not allowed anymore in sandboxed apps. I know I have to create a helper to achieve that? Is there a simple tutorial with sample code to active that? I found this tutorial, but it does not work for me: http://www.delitestudio.com/2011/10/25/start-dockless-apps-at-login-with-app-sandbox-enabled/ It is a pretty standard thing to do, I don't understand why there is no example project available. UPDATE: I uploaded a sample project: http://ge.tt/6DntY4K/v/0?c You should succeed by using this (disclaimer: my)

Is there a good browser based sandbox to practice regex? [closed]

≡放荡痞女 提交于 2019-12-02 17:09:59
I am looking for recommendations for a browser based regex sandbox to practice some proof of concept expressions. I've used http://www.rubular.com/ a few times, seems to do the job. I like RegExPal.com . Good luck. This one's pretty good too: RegExr Which flavor? Regex support is included in most of the major programming languages in use today, in editors and IDE's, in command-line tools like grep and findstr, and lots of other places. Every one of these tools/languages/applications has its own regex flavor, and no two flavors are completely alike. For the regex flavor of a specific

Is possible to use Mac OS X XPC like IPC to exchange messages between processes? How?

烂漫一生 提交于 2019-12-02 14:43:41
According to Apple, the new XPC Services API, introduced in Lion, provides a lightweight mechanism for basic interprocess communication integrated with Grand Central Dispatch (GCD) and launchd. It seems possible to use this API as a kind of IPC, like the POSIX IPC, however, I cannot find how to do it. I am trying to communicate two processes using the XPC API so I can pass messages between them but I always get a "XPC connection invalid" error in the server side. I don't want an XPC Service, I just want to exchange messages using a client-server architecture. I am using two BSD-like processes,

Socket connection error connecting to sandbox at www.sandbox.paypal.com

て烟熏妆下的殇ゞ 提交于 2019-12-02 14:11:42
问题 When I try connect with fsockopen : $fp = fsockopen('tls://www.sandbox.paypal.com', 443, $errno, $errstr, 30); The function shows the following errors: Warning: fsockopen() [function.fsockopen]: SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in /home/puntodec/public_html/test_socket.php on (line number) Warning: fsockopen() [function.fsockopen]: Failed to enable crypto in /home/puntodec/public_html/test

can't POST item price in paypal sandbox

血红的双手。 提交于 2019-12-02 13:03:20
问题 <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="YYHZM9FTBZQGW"> <input type="hidden" name="amount" value="20.00"> <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif"

Creating a secure Lua sandbox..?

时间秒杀一切 提交于 2019-12-02 12:49:17
Right now I am doing a lot of. local env = { print = print, } setfenv(func, env) and then using metamethods to lock propertys on Instances, but it is really inefficient and has lots of bypasses. I googled it and everything I find is the same as this: unworking. In Lua 5.1, sandboxing is pretty simple. If you have a Lua script in a file somewhere, and you want to prevent it from accessing any functions or anything other than the parameters you provide, you do this: local script = --Load the script via whatever means. DO NOT RUN IT YET! setfenv(script, {}) script is now sandboxed. It cannot

How do I write entitlements to use NSWorkSpace's showSearchResultsForQueryString in sandboxed app?

99封情书 提交于 2019-12-02 11:00:56
I have made one sandboxed app which calls NSWorkspace 's showSearchResultsForQueryString but this method doesn't work. I guess this error can be associated with entitlement key, but i could't find answer. How can I implement entitlement key for this? That method won't work for a sandboxed app. It sends an Apple event to the Finder. Have a look at this link in the sandbox design guide: Determine Whether Your App Is Suitable for Sandboxing and you'll see the following text: With App Sandbox, you can receive Apple events and respond to Apple events, but you cannot send Apple events to arbitrary

'sandboxd: deny file-write-create' when writing to app's own bundle

若如初见. 提交于 2019-12-02 10:23:07
I've written a program in the Mac App store which displays some graphics. Occasionally it updates these off the internet. As with most folks, I'm having to Sandbox my app now. Almost everything is working, but when updating it saves a file in my app's own bundle and fails with 'sandboxd: deny file-write-create' I just use fopen(..., "wb") The path passed into fopen is: /Users/MyUser/Library/Developer/Xcode/DerivedData/MyApp-czuwveatgjffaggwqjdqpobjqqop/Build/Products/Debug/My.app/Contents/Resources/the_file.foo The path is created using: CFBundleRef bundle = CFBundleGetMainBundle(); CFURLRef

nodejs: run module in sandbox

天涯浪子 提交于 2019-12-02 09:19:46
I have this turn-based NodeJs gaming app in which developers (anyone) can submit a player-robot. My NodeJS app will load all players and let them play against each other. Because I don't know anything about the code submitted I need to run it inside a sandbox. For example, the following untrusted code might look like this: let history = []; export default class Player { constructor () { this.history = []; } move (info) { this.history.push(info); } done(result) { history.push({result: result, history: this.history}); } } Now, in my main app I would like to do something like import Player1 from