external

Is it possible to run openoffice macro from external file?

让人想犯罪 __ 提交于 2019-12-04 07:33:37
I want to run OpenOffice macro from external file. Like: vlad@leo ~ $ soffice macro:///home/vlad/q.vbs Not really an answer - just a comment instead, so as to bump this question, and hopefully get an answer :) This possibly has to do with having to explicitly set permissions for macros, for instance: Can't execute macro from command line (View topic) • OpenOffice.org Community Forum Edit: In fact it seems to be impossible to call document macros, which is perfect for security reasons. See also: Custom OpenOffice.org Basic Macros and Libraries - OpenOffice.org Wiki OpenOffice.org Forum ::

How to call an external URL from a ASP.NET MVC solution

送分小仙女□ 提交于 2019-12-04 04:04:01
First post inhere ever. So better make it a good one. I have a ASP.NET MVC 2 web application in which I have an actionResult I need to do a call for me. The thing is I need this A.R to handle some data operations and after that I need it to call an external URL which is actually a Company Module that handles sending messages to our company handset phones. It just needs to call the URL that looks like this: string url = "http://x.x.x.x/cgi-bin/npcgi?no=" + phoneNumber + "&msg=" + message; I don't need any return message or anything. Just want to call that external URL which is of course outside

How do I run an external program inside a Java frame in netbeans in a platform independent manner?

前提是你 提交于 2019-12-04 03:42:56
问题 I am currently working on a research project for a University in which I am doing GUI interactions with my database and launching an external program based on the data. I'm using runtime commands (once the OS is detected) to launch that external program with the selected data. My question is how can I embed an external program's GUI inside a Java frame, if that is even remotely possible? 回答1: Given the clarifying comments on the question, the short answer is "no, you can't do that". Java

Modify existing excel Connection Name in VBA

守給你的承諾、 提交于 2019-12-04 03:36:27
问题 I need to update the Connection Name of an excel workbook's sql connection. This is my attempt. I have been able to modify the Connection String and Command Text by doing a standard replace. Sub ConnectionString_modify() Dim i As Long Dim cnt As Long Dim modtext As String Dim modrange As String 'Grab nummber of workbook connections cnt = ActiveWorkbook.Connections.Count For i = 1 To cnt 'Changes to Connection string --This works modtext = ActiveWorkbook.Connections.Item(i).OLEDBConnection

Execute external program in ruby and wait for its execution

早过忘川 提交于 2019-12-04 03:04:54
How do I start an external program (like an excel sheet) from ruby and wait for its execution resp. termination before continuing. I know I can start the excel sheet with system 'start excel "my/path/to/the/sheet"' but using this will only start the sheet and then continues. The problem you are having is not with Ruby but the start command, this launches another program and returns immediately. You need to make that command wait for excel to finish using the wait flag: system('start /wait excel "my/path/to/the/sheet"') Do not use start! The command system will wait for the result. In Windows

How can I take a reference to a Perl subroutine?

六月ゝ 毕业季﹏ 提交于 2019-12-04 02:58:54
I'm having some trouble figuring out how to make a reference to a subroutine in an external module file. Right now, I'm doing this: External file package settingsGeneral; sub printScreen { print $_[0]; } Main use settingsGeneral; my $printScreen = settingsGeneral::printScreen; &$printScreen("test"); but this result into an error: Can't use string ("1") as a subroutine ref while "strict refs" in use As noted in perlmodlib , you should start your module's name with an uppercase letter: Perl informally reserves lowercase module names for 'pragma' modules like integer and strict . Other modules

typings always complaining about global module

懵懂的女人 提交于 2019-12-04 00:05:48
I am very new to typescript. Whatever typings I try to install, I get: typings ERR! message Attempted to compile "angular" as an external module, but it looks like a global module. I am just trying to do typings install dt~angular What am I doing wrong? Update: If you are coming here with little knowledge (as I was when writing this question) - consider using npm/@types. More info and discussion . As error message suggests, you should use --global option: typings install dt~angular --global --save See detailed step-by-step tutorial for setting up Node.js project with TypeScript support in

External IP Address of the client

吃可爱长大的小学妹 提交于 2019-12-03 14:41:17
Sounds funny, but how can I get the external IP address from a client? I tried few things, but didn't work for me. in first place I tried request.getRemoteAddr() and I am getting the result as: 0:0:0:0:0:0:0:1 in second place I tried InetAddress ip = InetAddress.getLocalHost(); ip.getHostAddress()); and I am getting the result as: 127.0.0.1 in third place I tried URL whatismyip = new URL("http://checkip.dyndns.org:8245/"); BufferedReader inIP = new BufferedReader(new InputStreamReader(whatismyip.openStream())); String IPStrOld = inIP.readLine(); //IP as a String String IPStrNewest = IPStrOld

Docker-compose env file not working

戏子无情 提交于 2019-12-03 14:24:57
I'm writing as docker-compose file to up MySQL instance and want to use few variable from env file: here are the files actually look like: docker-compose.yml version: '3.3' services: db: image: mysql restart: always env_file: - ./imran.env environment: MYSQL_ROOT_PASSWORD: ${PASS} ports: - ${PORT1}: ${PORT2} imran.env PASS=imran123 PORT1=3306 PORT2=3306 Instead of working correct i'm getting following errors: WARNING: The PASS variable is not set. Defaulting to a blank string. WARNING: The PORT2 variable is not set. Defaulting to a blank string. ERROR: The Compose file './docker-compose.yml'

Android - delete files on SD card on uninstall

僤鯓⒐⒋嵵緔 提交于 2019-12-03 07:10:22
问题 My app downloads some multi-media files from a server when it's installed. I do this to save space on the size of the app. However, the drawback of this approach is that when the app is uninstalled, it doesn't delete those files. I've seen reports that this is possible, but I can't seem to make it work. Is there a way to do this on uninstall, or should I just forget about it? Note that I have the app installed on the SD card by default as well, but I'm not sure if all phones will