version

How to check in delphi the OS version? Windows 7 or Server 2008 R2?

一个人想着一个人 提交于 2019-12-17 16:44:42
问题 I always used to check the windows versions by their major/minor build numbers. Strangely enough, Windows 7 and Server 2008 R2, both return the same major/minor version number combination. Confirm this by typing ver into a command prompt 回答1: GetVersionEx. There is a chart of the version numbers and their associated editions here. Notice that the product type is different between 2008 R2 and Windows 7. 回答2: This works, and correctly detects many Windows Product Editions, including Windows XP,

How to determine the Boost version on a system?

£可爱£侵袭症+ 提交于 2019-12-17 08:09:11
问题 Is there a quick way to determine the version of the Boost C++ libraries on a system? 回答1: Boost Informational Macros. You need: BOOST_VERSION 回答2: Tested with boost 1.51.0: std::cout << "Using Boost " << BOOST_VERSION / 100000 << "." // major version << BOOST_VERSION / 100 % 1000 << "." // minor version << BOOST_VERSION % 100 // patch level << std::endl; Output: Using Boost 1.51.0 Tested with boost versions 1.51.0 to 1.65.0 回答3: If you only need to know for your own information, just look in

d3.js - v3 and v4 - Enter and Update differences

喜欢而已 提交于 2019-12-17 07:53:11
问题 I'm trying to get the values for x and y to make a circles using d3.js v4. With the following code I manage to create the chart like behavior of the circles, but when I try to run the same code in v4 it doesn't work anymore. I know that there are some differences in the update to v4 but I didn't find any information about it. So i was wondering if someone can help me to run this code in d3.js v4. Here is the code using v3 (it will break using v4): var svg = d3.select('body').append('svg')

Python IDLE: Change Python Version

只愿长相守 提交于 2019-12-17 06:46:23
问题 I have Python 2.x and 3.x on my machine (Mac OS X 10.6). For some things I want to use ver 2, but for others I want ver 3. I like the IDLE software for editing/running, but it always uses version 3. Is there any way to change the version of the interpreter that IDLE uses? Thanks! 回答1: There are different versions of IDLE installed for each Python version. Depending on how you installed Python on Mac OS X, you may find different folders in /Applications . Look for a Python 3.n (n = 1 or 2)

How to: Macports select python

こ雲淡風輕ζ 提交于 2019-12-17 05:48:30
问题 When I enter: port select --list python This is the result: Available versions for python: none python25 (active) python25-apple python26-apple python27 python27-apple I thought when I use python I would be using version 2.5 . Instead when I enter "python", version 2.7 seems to be active. How do I change that to version 2.5? Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or

How do I tell a Python script to use a particular version

北城余情 提交于 2019-12-17 04:58:27
问题 How do I, in the main.py module (presumably), tell Python which interpreter to use? What I mean is: if I want a particular script to use version 3 of Python to interpret the entire program, how do I do that? Bonus: How would this affect a virtualenv? Am I right in thinking that if I create a virtualenv for my program and then tell it to use a different version of Python, then I may encounter some conflicts? 回答1: You can she-bang line the top line of the script but that'll only work when

browser.msie error after update to jQuery 1.9.1

孤街醉人 提交于 2019-12-17 04:25:43
问题 I use the following snip of a script: if ($.browser.msie && $.browser.version < 9) { extra = "?" + Math.floor(Math.random() * 3000); } It works fine with jQuery 1.8.3 . Now I updated jQuery to the new version 1.9.1 to use a new script. Now I get the following error: TypeError: Cannot read property 'msie' of undefined I read the change log of the new jQuery version, but nothing should have changed with msie Any known bugs, tips or proposals? 回答1: $.browser was deprecated in version 1.3 and

how to change php version in htaccess in server

时光毁灭记忆、已成空白 提交于 2019-12-17 03:55:12
问题 I'm using php 5.3 on my local machine. On our webserver we have php 4.8 . Our server is a shared server. So I want to change the php version on our server via .htaccess file. Is it possible to do it? If yes how to do it? 回答1: To switch to PHP 4.4: AddHandler application/x-httpd-php4 .php To switch to PHP 5.0: AddHandler application/x-httpd-php5 .php To switch to PHP 5.1: AddHandler application/x-httpd-php51 .php To switch to PHP 5.2: AddHandler application/x-httpd-php52 .php To switch to PHP

how to change php version in htaccess in server

喜夏-厌秋 提交于 2019-12-17 03:54:02
问题 I'm using php 5.3 on my local machine. On our webserver we have php 4.8 . Our server is a shared server. So I want to change the php version on our server via .htaccess file. Is it possible to do it? If yes how to do it? 回答1: To switch to PHP 4.4: AddHandler application/x-httpd-php4 .php To switch to PHP 5.0: AddHandler application/x-httpd-php5 .php To switch to PHP 5.1: AddHandler application/x-httpd-php51 .php To switch to PHP 5.2: AddHandler application/x-httpd-php52 .php To switch to PHP

How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?

谁说胖子不能爱 提交于 2019-12-17 03:21:23
问题 I need to update my ruby version from 2.0.0 to the latest version, I can not use some gems because my version is not updated. I had used Homebrew to install Ruby some time ago, How can i update my Ruby version? 回答1: Open your terminal and run curl -sSL https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable When this is complete, you need to restart your terminal for the rvm command to work. Now, run rvm list known This shows the list of versions of the ruby