executable

“Launch Failed. Binary Not Found.” Snow Leopard and Eclipse C/C++ IDE issue

强颜欢笑 提交于 2019-11-26 10:29:30
问题 Not a question, I\'ve just scoured the internet in search of a solution for this problem and thought I\'d share it with the good folks of SO. I\'ll put it in plain terms so that it\'s accessible to newbs. :) (Apologies if this is the wrong place -- just trying to be helpful.) This issue occurs with almost any user OS X Snow Leopard who tries to use the Eclipse C/C++ IDE, but is particularly annoying for the people (like me) who were using the Eclipse C/C++ IDE in Leopard, and were unable to

Making an executable in Cython

这一生的挚爱 提交于 2019-11-26 10:28:34
问题 Been playing with cython. Normally program in Python, but used C in a previous life. I can\'t figure out how to make a free-standing executable. I\'ve downloaded cython, and I can make a .pyx file (that\'s just a normal Python file with a .pyx extension), that executes in the Python shell, using: import pyximport; pyximport.install() I can generate a .c file at the command line with: cython file.pyx I can generate a .so file by building a standard setup.py and executing: setup.py build_ext -

Automatically apply “git update-index --chmod=+x” to executable files

半世苍凉 提交于 2019-11-26 10:24:58
问题 I frequently add bash scripts to my git repository, and the scripts have executable permissions in the linux filesystem prior to the git add . But after pushing the added files to a remote repository and pulling in another location, the files show up with non-executable permissions. There seem to be two ways to correct the problem: 1. chmod u+x $script git commit -am \"fixing the script permissions... again...\" or 2. git update-index --chmod=+x $script Instead of fixing up the permissions

How to compile a linux shell script to be a standalone executable *binary* (i.e. not just e.g. chmod 755)?

天涯浪子 提交于 2019-11-26 10:18:58
问题 I\'m looking for a free open source tool-set that will compile various \"classic\" scripting languages, e.g. Korn Shell, ksh, csh, bash etc. as an executable -- and if the script calls other programs or executables, for them to be included in the single executable. Reasons: To obfuscate the code for delivery to a customer so as not to reveal our Intellectual Property - for delivery onto a customer\'s own machine/systems for which I have no control over what permissions I can set regarding

How do I create executable Java program? [duplicate]

时光总嘲笑我的痴心妄想 提交于 2019-11-26 10:17:15
This question already has an answer here: How can I convert my Java program to an .exe file? [closed] 13 answers I have programmed a Java Program in JCreator, everything is done, but I want to create an executable file from it, ie I dont want to have to run the program by loading the java classes and compiling then executing, but instead have it as a stand alone executable file. What the quickest way to do this? You can use the jar tool bundled with the SDK and create an executable version of the program. This is how it's done. I'm posting the results from my command prompt because it's easier

How to check if a program is using .NET?

血红的双手。 提交于 2019-11-26 09:24:58
问题 Can we check if a running application or a program uses .Net framework to execute itself? 回答1: There's a trick I once learned from Scott Hanselman's list of interview questions. You can easily list all programs running .NET in command prompt by using: tasklist /m "mscor*" It will list all processes that have mscor* amongst their loaded modules. We can apply the same method in code: public static bool IsDotNetProcess(this Process process) { var modules = process.Modules.Cast<ProcessModule>()

Antivirus False positive in my executable

这一生的挚爱 提交于 2019-11-26 08:20:33
问题 I just ran into an annoying problem. Suddenly Avira AntiVir started to flag one executable from my software as being a virus. As the default action from almost any user is to click OK and Avira suggests to put the virus in quarantine, most of my users are deleting this executable. Well, let\'s not be arrogant and check if I\'m not infected indeed. I posted the file to http://www.virustotal.com and from all anti virus only Avira flags it as infected. Furthermore I scanned my computer with two

Is there any way to change directory using C language?

限于喜欢 提交于 2019-11-26 06:49:25
问题 Is there any way by which I can change to any directory by executing a C program ? 回答1: Depending on your OS there are different calls for changing the current directory. These will normally only change the current dir of the process running the executable. After the process exits you will be in the directory you started in. 回答2: The chdir() function. For more info, use man chdir . 回答3: chdir() changes only the current working directory of the process but not of the context in which you are

Java command line with external .jar

不羁的心 提交于 2019-11-26 06:35:58
问题 I develop a project using .jar to reuse code. So I have on .jar named TOOLS.jar, and I develop a simple application in file HelloWorld.java wich refer my package TOOLS from TOOLS.jar I compile with this command line : javac -g -d C:\\MyApp -cp TOOLS.jar HelloWorld.java It\'s successful, and when I want to execute my application I use this command (I\'m in C:\\MyApp folder) : java -cp <path>\\TOOLS.jar;. HelloWorld It\'s successful, but my question is : How do I execute my application when I

How to tell if a .NET application was compiled in DEBUG or RELEASE mode?

十年热恋 提交于 2019-11-26 06:00:49
问题 I have an application installed on my computer. How do I find out if it was compiled in DEBUG mode or not? I\'ve tried to use .NET Reflector, but it does not show anything specific. Here is what I see: // Assembly APPLICATION_NAME, Version 8.0.0.15072 Location: C:\\APPLICATION_FOLDER\\APPLICATION_NAME.exe Name: APPLICATION_NAME, Version=8.0.0.15072, Culture=neutral, PublicKeyToken=null Type: Windows Application 回答1: I blogged this a long time ago, and I don't know if it still valid or not,