backwards-compatibility

Why did Sun specify String.hashCode() implementation?

There seems to be an ongoing debate about whether it is safe to rely on the current implementation of String.hashCode() because, technically speaking, it is guaranteed by the specification (Javadoc). Why did Sun specify String.hashCode()'s implementation in the specification? Why would developers ever need to rely upon a specific imple...

Visual Studio 2008 Reporting Services backward compability issue

I know there is an Issue using SQL Server 2000 Reporting Services and Visual Studio 2005, but does this error still exsist with Visual Studio 2008 and 2010? If so, is there any work-aground to get this working? ...

Which Android platform and API to target?

I'm just about to launch my first Android app, and it runs on the Android 1.1 platform, API Level 2, but is this what I should officially sign and launch the app as? Does it affect performance at all or is it simply for Android to know which devices it works on? The only problem I see is that I can't specify <supports-screens> in the M...

Porting MATLAB 7 files back to 6.1

I have a MATLAB assignment due in an hour, and I wrote it all in MATLAB 7. One of my friends who took the assignment said that it is not working on MATLAB 6.1 as functions like dirac are not defined. I only just found out that the MATLAB version used for evaluation is 6.1, and I have no idea how to fix my code. Can anyone help by pointin...

Assembly Compatibility Question

I have a basic server control that I've written using .NET 3.5. If I give that dll to someone who is running a .NET 2.0 application, will it work? ...

Tool for backwards compatibility for c#/.net API ?

I found this tool http://sab39.netreach.com/Software/Japitools/JDK-Results/46/ which checks for backwards compatibility between different versions of APIs for Java using javadoc. Is there an tool equivalent to this one for c#/.net? Here is an example of a comparison between JDK 1.5 and JDK 6 APIs using this tool: http://www.kaffe.org/...

How to develop an application which will be compatible for iPhone and iPod Touch 2.0 and above

Hi, I have a requirement of developing an application which will be compatible for iPhone and iPod Touch 2.0 and above. So I have number of questions. 1) Do I need to take care of all the deprecated methods and how? 2) I think there is no support for GPS/Camera before 2.2.1 so what is the best way to handle this using version below it...

PHP regex for validating a URL

Hi, I'm looking for a decent regex to match a URL (a full URL with scheme, domain, path etc.) I would normally use filter_var but I can't in this case as I have to support PHP<5.2! I've searched the web but can't find anything that I'm confident will be fool-proof, and all I can find on SO is people saying to use filter_var. Does anybo...

Isn't the C++ standard library backward-compatible?

Hi. I'm working on a 64-bit Linux system, trying to build some code that depends on third-party libraries for which I have binaries. During linking, I get a stream of undefined reference errors for one of the libraries, indicating that the linker couldn't resolve references to standard C++ functions/classes, e.g.: librxio.a(EphReader...

ISerializable and backward compatibility

hello I have to work an an old application that used binaryFormatter to serialize application data into filestream (say in a file named "data.oldformat") without any optimizazion the main class has been marked with attribute <serializable()>public MainClass ....... end class and the serialization code dim b as new binaryformatte...

OpenGL Shading Language backwards compatibility

I've noticed that my GLSL shaders are not compilable when the GLSL version is lower than 130. What are the most critical elements for having a backward compatible shader source? I don't want to have a full backward compatibility, but I'd like to understand the main guidelines for having simple (forward compatible) shaders running on GP...

Checking whether UI_USER_INTERFACE_IDIOM exists at runtime

I am working on a universal app that should be able to run on iPad and iPhone. The Apple iPad docs say to use UI_USER_INTERFACE_IDIOM() to check if I am running on iPad or iPhone, but our iPhone is 3.1.2 and will not have UI_USER_INTERFACE_IDIOM() defined. As such, this code breaks: //iPhone should not be flipped upside down. iPad can h...

jQuery version compatibility detection

Are there any resources that can test a jQuery script/extension/plugin/whatever for version compatibility issues? ...

Libtool versioning of a library that depends on other libraries.

Hello, I have a framework that uses Boost and CgiCC in the core application and in its interface. How should I version the library binary interface (a.k.a. libtool -version-info)? I have no problems tracking the changes in library itself when I make various changes. As it is clear for me how should I version. But... Both Boost and C...

Android: How to maintain backwards-compatibility?

According to the instructions found here, to make your app state which screen sizes you can support, you'll need to compile your app against Android 1.6. Using the minSdkVersion and targetSdkVersion this should run also on Android 1.5: <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/> However, when I try...

WCF Versioning restful way problem

i have two methods in Icontact and wcf service, i want to version one method for new requirement. and want existing clients to call old code. and new client to call the new changed method and existing method for backward compatibility. code: [ServiceContract(Namespace = "http://www.testk.com/1/11", Name = "cService")] public interfa...

What's discouraging you from writing ruby 1.9-specific code?

So far, I've been merely using YARV (ruby 1.9) as merely a faster implementation of ruby than ruby 1.8, and ensured that all of my code is backwards-compatible with ruby 1.8.6. What circumstances, if any, are stopping you from writing 1.9-specific code? One reason per answer. ...

What issues might I have in opening .NET 2.0 Projects in Visual Studio 2010?

The small software team I work on recently got approved to upgrade to Visual Studio 2010 (we're currently using VS 2005). We have several ASP.NET 2.0 and WinForms (in .NET 2.0) projects in production. I've been tasked with downloading VS 2010 and seeing how well it plays with our current projects. What issues should I be aware of when...

axis2 doesn't return xml-response according to given WSDL

hi, I've got a problem with axis2' backward compatibility. The problem is next: there's need to migrate from axis1 on axis2 w/o changing clients. Since I have WSDL this must not be a problem. Right? So, the only things to do: adjust axis2' stuff like libraries and configuration infrastructure. I created all required infrastructure: ...

What's the best way to build software that doesn't require the newest glibc?

I'm attempting to build a binary package that can be run on multiple Linux distributions. It's currently built on Ubuntu 10.04, but it fails on Ubuntu 8.04 with the following error: ./test: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./test) ./test: /usr/lib/libstdc.so.6: version `GLIBC_2.11' not found (requ...