Are Windows TideSDK apps running in sandbox? - tidesdk

The windows software I create in TideSDK, does it run in sandbox or can I have full access to file system?

The answer is yes and no..
If you are loading the page which is from local hdd / filesystem you will have full access to the filesystem through window.Ti object. you can see the documentation of various apis available here
Secondly if you are loading any remote server url .. you will not have access to any of extended apis as the "window.Ti" object is not available.

Related

How to deploy Javafx desktop application with Hsqldb

I've completed a Java project with Hsqldb, the application works fine on my local machine, this is intended to be used as a standalone desktop application on the Windows platform. Please could you suggest any references/documentation on how to go about the deployment processes. Thanks in advance.
For deploying an embedded HSQLDB database, the only thing that can be different on the target is the location of the database files.
You define the directory where files are stored and it should be a writable directory. In this case, define the path and use it as an absolute path (which includes the drive name if any) to connect to HSQLDB.
You can also define the database connection URL to contain the user home directory path. This allows storing the database is a subdirectory of the user's home directory. See http://hsqldb.org/doc/2.0/guide/dbproperties-chapt.html#dpc_variables_url

Force JRE to run applet from local jar files

I am dealing with a corporate web app which cannot be modified. It uses Java applets to hook into smart cards for authentication. All works fine on an open network but this particular site is a secure environment utilising a very locked down proxy which prevents download of JAR files, hence the app doesn't work. For most pages it uses a single applet, so by dropping that JAR in lib/applet it will load it from there instead of downloading.
However on 1 crucial page, 4 JAR files are required for various purposes (they actually are, it's not just Java overload for the sake of it). I put the JAR containing the initially executed applet class into lib/applet and the rest in lib/ext, but the browser/JRE continue to try and download all 4 of them every time.
I can't modify the secure proxy config, or the HTML of the web app. Is there a way I can configure the JRE to always use a local JAR for specific classes?
Thanks in advance.
Sounds like you are hitting the sandbox firewall. The docs state that sandbox applets cannot access client resources:
They cannot access client resources such as the local filesystem,
executable files, system clipboard, and printers.
Since it cannot access local resources, it is trying to get what it needs via network connections to the host it came from (which is its only authorized source).
Getting an applet to access the local filesystem can get complicated if the applet was not loaded from the local filesystem:
Applets that are loaded from the local file system (from a directory in the user's CLASSPATH) have none of the restrictions that applets loaded over the network do.
More info: Applet Security
Hope this helps.

Can I access the "Ti" singleton from a remotely hosted app?

I have a TideSDK app with a main url that is hosted on a server. E.g. http://example.com/myApp.
I am trying to access the Titanium singleton from that code, but it's not defined. Does TideSDK not pass a reference to it to the window object or something?
I haven't found anything in the docs regarding this as I suppose most apps bundle the code within.
The Ti object is not available to any remote server url. This is because of the security policy in place for TideSDK.
The policy in place is to prevent any remote URL to access your entire computer through Ti object. So if you load any url in TideSDK it would not allow them to access your local computer.. and only urls from your own computer will get access to it.

Deploy ACCESS OleDb driver

I've tried to deploy a small website (ASP.NET) which is using an MS ACCESS 2010 db. Deploying the website on the server I get the following error:
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
Connectionstring used : Provider=Microsoft.ACE.OLEDB.12.0; Data Source=path-to-db
MS Office is not installed on the server and neither is the Access Database engine. The website is runnin in a shared hosting environment, so I am not able to install office on that server, so may I somehow deploy the provider by dll's?
Is it possible to deploy the drivers needed for ASP.Net to connect to the database without having to run an installation on the server. As this is in a shared hosting environment, I am not able to install anything. Only fileupload by ftp.
Open IIS, navigate to Application Pools, find the appPool for your website, right click, advanced settings, set "Enable 32-Bit Applications" to true.
Looking around, this has nothing to do with Office. If you're only using Access as the database, then you don't need to install it. Info here: http://www.mytechsupport.ca/forums/index.php?topic=11237.0
I found this StackOverflow thread with the same error you did so it sounds like it might be the same issue. Microsoft.ACE.OLEDB.12.0 provider is not registered
If its running windows then look through that thread and see if the 64-bit issue is the problem. I've had this same issue before and its apparently quite common. You may need to e-mail whoever for support on your server.
Is it running Linux? If it is running linux then the issue might be just an entire lack of the driver to connect to Access databases. If this is the case I would e-mail your support and ask them if they can install the proper drivers for you. Info here: http://nixcraft.com/databases-servers/11878-connect-microsoft-access-database-php-linux-server.html

Build a web console for Xen domU instances

I want to build a service to provide console access (eg. xm console domain) via a web browser to Xen virtual machines. Does such a program already exist? If not, where should I start?
Slicehost offers this service. I'm just wondering how to go about cloning it or using whatever software that they did.
Slicehost built their web console using AjaxTerm.

Resources