multiplatform

Bash/sh - difference between && and ;

一个人想着一个人 提交于 2019-11-28 03:31:06
I normally use ; to combine more than one command in a line, but some people prefer && . Is there any difference? For example, cd ~; cd - and cd ~ && cd - seems to make the same thing. What version is more portable, e.g. will be supported by a bash-subset like Android's shell or so? ignar If previous command failed with ; the second one will run. But with && the second one will not run. This is a "lazy" logical "AND" operand between operations. jm666 I'm using && because a long time ago at the nearby computer: root# pwd / root# cd /tnp/test; rm -rf * cd: /tnp/test: No such file or directory ..

Auto startup for java desktop application?

老子叫甜甜 提交于 2019-11-27 23:09:53
I have created a desktop application in Java using NetBeans 6.1 and made a jar file of the application. Now I want to make it automatically start up whenever a client's machine boots up. How do I do that? This installer can create a file with "msi" extension that will behave as regular windows installer. It bundles your jar file and JRE together into single file. The program acts as a "wizard", where you configure all necessary options. Take a look at this product: Advanced Installer Good luck. There are many commercial installers which can do this http://www.advancedinstaller.com/jre-install

Build one jar per platform for multi-platform SWT application

冷暖自知 提交于 2019-11-27 14:52:47
There are a couple of questions to this topic already, but none of them seem to work properly. Here is a list of them: Bulding an multi-platform SWT application using Ant Build multi-platform executable for a SWT application (Eclipse) Build multi-platform executable for a SWT application using maven SWT jar for different platform Create cross platform Java SWT Application My requirement is to build an ant script that creates one jar per platform , i.e. one for Windows x86, one for Windows x64, Linux x86/x64 and so on. Does anyone have any further insight? Using the aforementioned methods, I

What version of the .NET framework is installed on Windows XP, Vista, and 7?

こ雲淡風輕ζ 提交于 2019-11-27 07:06:22
I have an application that uses the .NET framework 3.5. I am building this application for a college to help students to study. Most students usually have Windows XP SP2, Windows Vista, or Windows 7. (Sorry Mac users! The Mac version will come out in about 6 months) What version of the .NET framework is installed on Windows XP, Vista, and 7; and will my application run on all of those platforms? Oded From Wikipedia and MSDN : .NET Framework 1.1: Windows Server 2003 .NET Framework 2.0: Windows Server 2003 R2 .NET Framework 3.0: Windows Vista, Windows Server 2008 .NET Framework 3.5: Windows 7,

Initializing a union with a non-trivial constructor

末鹿安然 提交于 2019-11-27 03:29:54
I have a structure which I create a custom constructor to initialize the members to 0's. I've seen in older compilers that when in release mode, without doing a memset to 0, the values are not initialized. I now want to use this structure in a union, but get errors because it has a non-trivial constructor. So, question 1. Does the default compiler implemented constructor guarantee that all members of a structure will be null initialized? The non-trivial constructor just does a memset of all the members to '0' to ensure a clean structure. Question 2: If a constructor must be specified on the

R: determine if a script is running in Windows or Linux

為{幸葍}努か 提交于 2019-11-27 01:15:20
问题 Is there a simple way to programmatically determine if an R script is being executed in Windows vs. Linux? 回答1: if(.Platform$OS.type == "unix") { } else { } 回答2: Sys.info()["sysname"] 回答3: .Platform$OS.type returns [1] "unix" or something else. 回答4: I run the same code from any of three Linux or Windows machines. I use the following to set up working directories: if(R.Version()$os == "linux-gnu"){ dir.pre <- "/home" } else { dir.pre <- "C:/Users" } On my debian linux server and my Ubuntu

Auto startup for java desktop application?

爱⌒轻易说出口 提交于 2019-11-26 23:17:20
问题 I have created a desktop application in Java using NetBeans 6.1 and made a jar file of the application. Now I want to make it automatically start up whenever a client's machine boots up. How do I do that? 回答1: There are many commercial installers which can do this http://www.advancedinstaller.com/jre-install.html Are you looking for a free/OS one? Thanks Krishna 回答2: This installer can create a file with "msi" extension that will behave as regular windows installer. It bundles your jar file

Build one jar per platform for multi-platform SWT application

*爱你&永不变心* 提交于 2019-11-26 18:27:19
问题 There are a couple of questions to this topic already, but none of them seem to work properly. Here is a list of them: Bulding an multi-platform SWT application using Ant Build multi-platform executable for a SWT application (Eclipse) Build multi-platform executable for a SWT application using maven SWT jar for different platform Create cross platform Java SWT Application My requirement is to build an ant script that creates one jar per platform , i.e. one for Windows x86, one for Windows x64

What version of the .NET framework is installed on Windows XP, Vista, and 7?

落花浮王杯 提交于 2019-11-26 17:37:19
问题 I have an application that uses the .NET framework 3.5. I am building this application for a college to help students to study. Most students usually have Windows XP SP2, Windows Vista, or Windows 7. (Sorry Mac users! The Mac version will come out in about 6 months) What version of the .NET framework is installed on Windows XP, Vista, and 7; and will my application run on all of those platforms? 回答1: From Wikipedia and MSDN: .NET Framework 1.1: Windows Server 2003 .NET Framework 2.0: Windows

How can I beautify JavaScript code using Command Line?

别等时光非礼了梦想. 提交于 2019-11-26 15:46:54
I am writing a batch script in order to beautify JavaScript code. It needs to work on both Windows and Linux . How can I beautify JavaScript code using the command line tools? Alan Storm First, pick your favorite Javascript based Pretty Print/Beautifier. I prefer the one at http://jsbeautifier.org/ , because it's what I found first. Downloads its file https://github.com/beautify-web/js-beautify/blob/master/js/lib/beautify.js Second, download and install The Mozilla group's Java based Javascript engine, Rhino . "Install" is a little bit misleading; Download the zip file, extract everything,