external

How to get external (public) IP in Delphi

你说的曾经没有我的故事 提交于 2019-11-30 07:13:30
I need to get my external (public) IP address from Delphi. The same IP that is shown by www.whatismyip.com for example. How can I do that ? Winsock doesn't allow this. I don't think you can. Well, you could call some service that tells you what your IP address appears to be, ( ex: http://www.whatismyip.com/ ) and figure it out from the response. But I don't think anything on your PC will be able to tell you what your IP address looks like, to the outside world. Untested, but I think you can do this with Indy: MyPublicIP := IdHTTP1.Get('http://automation.whatismyip.com/n09230945.asp'); Please

Netbeans and external configuration files

倾然丶 夕夏残阳落幕 提交于 2019-11-30 07:09:24
I am developing a Java desktop application and would like to have an external configuration.xml. I am developing the application using Netbeans and tried to add the configuration.xml file in the dist directory so that it resides in the application work folder. But when Netbeans executes its clean operation it deletes the dist directory, Where should I put this configuration.xml file so that it will not be deleted and will exist in the application start-up directory. You can add this to your build.xml : <target name="-post-jar"> <copy todir="${dist.jar.dir}"> <fileset dir="resources" includes="

App Engine and MySQL

你。 提交于 2019-11-30 06:54:00
I just wanted to ask if we can access an external MySQL server from Google App Engine... systempuntoout The only way to communicate with other hosts is by using UrlFetch that only provides HTTP and HTTPS requests. So, you can't do it out of the box. Anyway, if you really need to access an external MySQL server database, you should consider to expose it through a Web API (RESTful, Soap web-services for example). In this way your data would be available also via UrlFetch. I am still in the learning phase of all this, but I am fairly certain you can do this now a few ways: Link Apps Scripts to

Using an external Template in KnockoutJS

浪尽此生 提交于 2019-11-30 06:42:53
is it possible to use an external Template in KnockoutJS like this? <script type="text/html" id="a_template" src="templates/a_template.html"> </script> I've tried this solution but didn't get it working. You could also look at: https://github.com/ifandelse/Knockout.js-External-Template-Engine You can use jquery to dynamically load html into a script element, and then execute knockout based on that. <script type="text/html" id="template_holder"></script> <script type="text/javascript"> $('#template_holder').load('templates/a_template.html', function() { alert('Load was performed.'); //knockout

Play! Framework: Best practice to use URLs in separate JavaScript files?

☆樱花仙子☆ 提交于 2019-11-30 05:30:30
I am currently reorganizing a Play! project where there is a lot of JS code in the HTML template files. This code should be moved to external JS files for better readability and faster page loading times. However, when I just create a JS file in the public folder, all the @{Controller.method} link replacements are no longer working. I was thinking about calling some initialization function from the HTML templates which just supplies the required URLs like initialize({ "Application.doThis" : "@{Application.doThis}"}) however this is becoming very cumbersome and error-prone with any URL that is

dimensions of loaded swf's stage

…衆ロ難τιáo~ 提交于 2019-11-30 03:29:44
问题 Here's the situation - I've got a shell that loads an external .swf. Now, that .swf is 800x600, but it's an animation piece, and there are elements that extends off the stage. When I load the .swf into the shell and call its width attribute, it returns 1200 - because it's including the elements that break out of the stage. This isn't what I want - ideally, there would be two properties, one to return the 'calculated width' and one to return the 'default width'. Do these properties exist, and

iOS app review process: app requires external hardware (connecting over WiFi)

最后都变了- 提交于 2019-11-30 02:20:50
We've written an app for our clients that connects to external hardware over Wifi (hardware designed by our client). My question is, how do we go about submitting this for review? The software won't do very much without the hardware. Just to be clear, the hardware does not connect directly to the iPad with a cable, it connects over WiFi only. I just want to get some clarity on what we need to do to get this app through the review process and into the App Store. Any insight will be appreciated. I'm one of the authors of StageMix for M7CL, LS9 and CL and it has exactly this issue - the hardware

Android Proguard skip external jar

柔情痞子 提交于 2019-11-30 01:16:27
I tried to use Proguard in my Android project, i setup Proguard using command line 'android update project /path/to/project' and file proguard.cfg was created in project's root directory. (In my Eclipse with Android 2.3 sdk, when create a new project, proguard.cfg file is not automatically created so i have to add it manually using command line). When i export the project, i got the following errors [2011-02-06 09:02:49 - TestProject] Warning: oauth.signpost.jetty.HttpRequestAdapter: can't find referenced class org.mortbay.jetty.client.HttpExchange [2011-02-06 09:02:49 - TestProject] Warning:

How to configure additional classpath in SpringBoot?

让人想犯罪 __ 提交于 2019-11-30 01:05:53
问题 I want to make a standalone web application. I have some problems with SpringBoot. My application is one jar file from SpringBoot. But my application was usually needed jdbc driver jar. I want to exclude the jdbc driver jar for my application and read the library jar from the lib folder. But SpringBoot lib folder is BOOT-INF/lib is final static . So, I want to add external classpath (lib) for the jdbc driver jar. How to configure additional classpath in SpringBoot. Is it available? 回答1: You

external database with Adobe CQ5?

夙愿已清 提交于 2019-11-29 22:37:08
问题 Is there any way to connect external data base like mysql can be connected to Adobe CQ5 ? JCR(Java Content Repository) in Adobe cq5 now by default connects to H2 database...how to make it use sql/mysql? 回答1: Go to: /system/console/configMgr Open up: the JDBC Connections Pool configuration Enter all the standard JDBC config elements (username, password, driver, JDBC URI) Enter a Datasource Name (referred to below as yourDataSourceName) In your JSP or Servlet: <%@ page import="com.day.commons