version

Python and OpenSSL version reference issue on OS X

蓝咒 提交于 2019-11-26 14:40:45
Trying to resolve an OpenSSL version issue I'm having. It seems that I have three different versions of OpenSSL on my Mac. Python 2.7.11 has version 0.9.7m: python -c "import ssl; print ssl.OPENSSL_VERSION" OpenSSL 0.9.7m 23 Feb 2007 At the Terminal: openssl version OpenSSL 1.0.1h 5 Jun 2014 Recently Compiled / Installed: /usr/local/ssl/bin/openssl OpenSSL> version OpenSSL 1.0.2h 3 May 2016 OpenSSL> I recently upgraded my OS X to 10.11.5. In the process, caused an issue for previously working python scripts. Below is the error message snippet: Python Error Message: You are linking against

How to find out which version of the .NET Framework an executable needs to run?

耗尽温柔 提交于 2019-11-26 14:29:59
I've got an executable file, and I would like to know which versions of the .NET framework this file needs to be started. Is there an easy way to find this information somewhere? (So far I tried ILDASM and DUMPBIN without any luck.) I think the closest you can reliably get is to determine what version of the CLR is required. You can do this by using ILDASM and looking at the "MANIFEST" node or Reflector and looking at the dissasembly view of the "Application.exe" node as IL. In both cases there is a comment that indicates the CLR version. In ILDASM, the comment is "// Metadata version" and in

Get java version from batch file

痞子三分冷 提交于 2019-11-26 14:26:55
问题 How to get java version and want to get '6' out of java version from batch file. I tried below script, but it didn't work. REM check java exists using JAVA_HOME system variable if "%JAVA_HOME%" == "" ( ECHO Installing java start /w jdk.exe /s SETX -m JAVA_HOME "C:\Program Files\Java\jdk1.6.0_31" ECHO java installed successfully ) ELSE ( ECHO checking java version goto check_java_version ) REM check java version using JAVA_HOME system variable :check_java_version set PATH=%PATH%;%JAVA_HOME%

How to detect true Windows version?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 14:20:54
I know I can call the GetVersionEx Win32 API function to retrieve Windows version. In most cases returned value reflects the version of my Windows, but sometimes that is not so. If a user runs my application under the compatibility layer, then GetVersionEx won't be reporting the real version but the version enforced by the compatibility layer. For example, if I'm running Vista and execute my program in "Windows NT 4" compatibility mode, GetVersionEx won't return version 6.0 but 4.0. Is there a way to bypass this behaviour and get true Windows version? The best approach I know is to check if

SVN Error: Expected fs format between '1' and '3'; found format '4'

。_饼干妹妹 提交于 2019-11-26 14:20:21
问题 Here's what I did, I have installed svnserve as a service and I started it with the net start svn service command. I typed svn ls svn://localhost to test the service but it returned the error as stated in the title of this post. I entered svn --version and svnserve --version on my computer to find out the version numbers and the client and the server version is the same, version 1.5.6. I'm guessing the error appears due to different versions of the server and the client. When I start the

How to check JRE version prior to launch?

梦想与她 提交于 2019-11-26 14:00:18
问题 What's the best way to determine if the version of the JRE installed on a machine is high enough for the application which the user wants to run? Is there a way of doing it using java-only stuff? I'd like the solution to work on Windows/Linux/MacOSX - if the JRE version is too low a message should be displayed. Currently I'm getting an exception if i try to run it on Java 1.5 (the app is built for Java 1.6). If there's no universal solution, what's the best way to do it on Windows? 回答1: An

Which version of Python do I have installed?

寵の児 提交于 2019-11-26 12:49:30
问题 I have to run a Python script on a Windows server. How can I know which version of Python I have, and does it even really matter? I was thinking of updating to the latest version of Python. 回答1: python -V http://docs.python.org/using/cmdline.html#generic-options --version may also work (introduced in version 2.5) 回答2: Python 2.5+: python --version Python 2.4-: python -c 'import sys; print(sys.version)' 回答3: In a Python IDE, just copy and paste in the following code and run it (the version

How to retrieve the android sdk version?

此生再无相见时 提交于 2019-11-26 12:24:41
How can I get the current Android SDK version(1.5, 1.6, 2.0, etc.) programmatically? Erich Douglass The String Build.VERSION.RELEASE will give you the user-visible version string (i.e 1.5, 1.6, 2.0), while Build.VERSION.SDK_INT will give you a value from Build.VERSION_CODES that would be better to use if you want to compare against it programatically. StringBuffer buf = new StringBuffer(); buf.append("VERSION.RELEASE {"+Build.VERSION.RELEASE+"}"); buf.append("\\nVERSION.INCREMENTAL {"+Build.VERSION.INCREMENTAL+"}"); buf.append("\\nVERSION.SDK {"+Build.VERSION.SDK+"}"); buf.append("\\nBOARD {"

Correct way to check Java version from BASH script

百般思念 提交于 2019-11-26 12:06:34
问题 How can I check whether Java is available (in the PATH or via JAVA_HOME) from a bash script and make sure the version is at least 1.5? 回答1: Perhaps something like: if type -p java; then echo found java executable in PATH _java=java elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then echo found java executable in JAVA_HOME _java="$JAVA_HOME/bin/java" else echo "no java" fi if [[ "$_java" ]]; then version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}') echo version

Check if my app has a new version on AppStore

断了今生、忘了曾经 提交于 2019-11-26 12:02:12
I would like to manually check if there are new updates for my app while the user is in it, and prompt him to download the new version. Can I do this by checking the version of my app in the app store - programatically? Here is a simple code snippet that lets you know if the current version is different -(BOOL) needsUpdate{ NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; NSString* appID = infoDictionary[@"CFBundleIdentifier"]; NSURL* url = [NSURL URLWithString:[NSString stringWithFormat:@"http://itunes.apple.com/lookup?bundleId=%@", appID]]; NSData* data = [NSData