version

Perl's BEGIN{} block in Python

I have Python code that uses the "with" keyword (new in 2.6) and I want to check if the interpreter version is at least 2.6, so I use this code: import sys if sys.version < '2.6': raise Exception( "python 2.6 required" ) However, the 2.4 interpreter chokes on the with keyword (later in the script) because it doesn't recognize the ...

Regex does not properly break down file path with a version number

Hi, I was using a regex pattern to break down the context path for a servlet. /{1,2}([^/{1,2}]+) This works great for simple paths like /User/folder1/folder2/folder3/. In more real world scenario however there seems to be a problem if one of the folder names contains a dotted version number, such as: /User/username/Library/Tomcat/...

Where to get the debug version of indesign cs5 ?

Hi, I want to create plugins on my own. Before doing that, I am trying to run the samples given in the Indesign sdk samples. I am using Mac, I downloaded the entire eclipse archive and set the indesgn cs5 sdk in the preference of eclipse. If i run some samples like BasicDialog, it is running successful and plugin is created. And for oth...

passing an xml in nusoap

Good day, I am having trouble passing an xml in nusoap. sample: I pass this xml <test>123</test> The nusoap response is test123/test The greater than and less than sign is removed. This is my code for the server: require_once('nusoap/nusoap.php'); $server = new nusoap_server; // Create server instance $server->conf...

How can I tell what Scala version a .class file was compiled with?

Title says it all. ...

What version of javac built my jar?

How can I tell what version of the Java compiler was used to build a jar? I have a jar file, and it could have been built in any one of three JDKs. We need to know exactly which one, so we can certify compatibility. Is the compiler version embedded somewhere in the class files or jar? ...

Copy the latest version of an artifact from a Maven repository

Hi All, I am trying to copy a war file from my company's Nexus repository to a specific location. I am using maven-dependency-plugin in the following way: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.1</version> <executions> <execution> <id>copy-to-o...

Change default Python version from 2.4 to 2.6

I'm wanting to use some newer software that requires Python 2.6, and we currently have both 2.4 and 2.6 installed on our dedicated CentOS server, which looks like this: $ which python /usr/local/bin/python $ which python2.6 /usr/bin/python2.6 $ which python2.4 /usr/local/bin/python2.4 $ ls -l /usr/local/bin/py* -rwxr-xr-x 1 root root ...

Check iPhone iOS Version

Hi, I want to check if the iOS version of the device is greater then the 3.1.3 I tried things like [[UIDevice currentDevice].systemVersion floatValue] but does not work, I just want a if (version > 3.1.3) { } Does anybody know how to do this? Thanks ...

.NET Assembly Version

Hi, The scenario is as follows. Developers compile the projects and deploy assemblies to production. eg, deployment contains 10 assemblies. Out of 10, they actually change the source code only in 5 assemblies and they recompile other 5 assemblies without changing the source code. Before deployment, I want to trace which assemblies are ac...

Which .NET version is my Powershell script using?

I'd like to use .NET in some PowerShell scripts I'm about to write -- how do I know/declare which version of .NET I'm dealing with when these scripts run? EDIT: And is it possible to choose against which version of .NET my script will run? ...

__IPHONE_OS_VERSION_MIN_REQUIRED please explain

I'm developing an app that I would like to deploy for iPhone 3.0, iPhone 4.0 and that can run on the iPad in emulate mode. I'm developing with XCode 3.2.3 and I have videos to playback. I would like to use MPMoviePlayerViewController for >= 3.2 and MPMoviePlayerController for < 3.2. If I use Class mplayerControllerClass = NSClassFrom...

How to switch PHP version back and forth?

Hi, I installed LAMP manually on Ubuntu, let's say my current version of PHP is 5.2 and I want to switch to PHP 5.3 for awhile, is that possible? No xampp solution please. Thanks ...

Is it necessary to change the assemblyIdentity's version attribute in a manifest file?

In the following manifest, is it necessary to change the version attribute of the assemblyIdentity element if the assembly version is specified in the project (or, in my case, set as part of a MSBuild task)? According to this Microsoft Connect page, it looks like the project's version number overrides the manifest's version number. Ple...

python error when I use different systems!

When I use my system, there is no error in my python codes. When I use another system I get this error:(both systems have same version of python) /usr/lib/pymodules/python2.6/matplotlib/numerix/__init__.py:18: DeprecationWarning: ********************************************************** matplotlib.numerix and all its subpackages are d...

#ifdef macros for versions controlling

Hi!, I use macros to differ the versions but I can't force it to work properly. I used: #ifdef _IPHONE_4_0 [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade]; #else [[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES]; #endif and #if __IPHONE_OS_VERSION_MAX_ALL...

Do Symbian OS v9 and Symbian^3 mean the same thing?

I am a little confused about the notations. What does Symbian^3 mean? Also, how does Symbian^x relate to Symbian OS v9.y ? ...

Version Control with XML diff and merge

Hi, I'm looking for an open source version control tool which can diff and merge XML files. The difficulty I have to find such a tool is, that I need a correct merge of a XML file comparing the nodes and not the lines. Any idea? Thanks! ...

Getting Textmate to recognize Ruby version upgrade

I used the instructions at http://bparanj.blogspot.com/2010/06/installing-ruby-191-on-snow-leopard.html to install Ruby version 1.92 on my Mac running Snow Leopard. The only deviation is in step 3, which calls for .bash_profile to be updated. I have .profile, but not .bash_profile, in my home directory, so I added the export command to...

Make Visual Studio not care about DLL versions

Is there a way to make visual studio not care about dll versions? Is this a bad idea? I am resetting up my dev machine and I just installed the latest version of Pex and Moles (version .92). All my projects are on version .91. We are in the middle of a release and don't want to upgrade right now. Also, I cannot find an installer t...