392 questions
1925
votes
17
answers
708k
views
<button> vs. <input type="button"> -- which to use?
When looking at most sites (including SO), most of them use:
<input type="button" />
instead of:
<button></button>
What are the main differences between the two, if any?
Are there ...
28
votes
1
answer
6k
views
How to define nested arguments?
I'm trying to compile my code into a Python 3 module. It runs fine when I choose "Run module" in IDLE, but receive the following syntax error when I try to create a distribution:
File "/...
170
votes
5
answers
74k
views
Can Java 8 code be compiled to run on Java 7 JVM?
Java 8 introduces important new language features such as lambda expressions.
Are these changes in the language accompanied by such significant changes in the compiled bytecode that would prevent it ...
239
votes
19
answers
252k
views
How to install both Python 2.x and Python 3.x in Windows [duplicate]
I do most of my programming in Python 3.x on Windows 7, but now I need to use the Python Imaging Library (PIL), ImageMagick, and wxPython, all of which require Python 2.x.
Can I have both Python 2.x ...
98
votes
9
answers
115k
views
Java 32-bit vs 64-bit compatibility
Will Java code built and compiled against a 32-bit JDK into 32-bit byte code work in a 64-bit JVM? Or does a 64-bit JVM require 64-bit byte code?
To give a little more detail, I have code that was ...
4
votes
1
answer
4k
views
How to avoid compatibility issues between Java EE and Jakarta EE?
After Oracle donated Java EE to the Eclipse Foundation, it was renamed to Jakarta EE.
With that, the javax namespace was changed to jakarta.
What does one need to take care about in order to avoid ...
27
votes
7
answers
88k
views
Incompatible magic value 1008813135
I am writing a Java applet and embedding it in a web page.
It used to run Mac and Windows in different browsers without problem.
I was using NetBeans on the Mac to build the .jar file the applet used.
...
154
votes
8
answers
39k
views
Was PreferenceFragment intentionally excluded from the compatibility package?
I'm looking to write preferences that can be applied to both 3.0 and pre-3.0 devices. Discovering that PreferenceActivity contains deprecated methods (although these are used in the accompanying ...
238
votes
11
answers
116k
views
Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
When I want to create a Ruby on Rails project, I get the message below.
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::...
77
votes
5
answers
48k
views
OnGlobalLayoutListener: deprecation and compatibility
I have to use an OnGlobalLayoutListener object and then to remove the listener, I had a problem with deprecated methods that I resolve with following code.
protected void onCreate(Bundle ...
103
votes
10
answers
165k
views
Internet Explorer 11 disable "display intranet sites in compatibility view" via meta tag not working
I have been working on an intranet website for over 6 months
were I have been using the below html5 doctype and edge compatibility meta tag to force Internet Explorer to not emulate an older browser ...
25
votes
2
answers
21k
views
Where can I find a definitive Selenium WebDriver to Firefox Compatibility Matrix? [closed]
I have worked on a number of projects using Selenium Java and the Firefox Web Driver, on a variety of platforms. Time and again, I come across incompatibilities between the version of the Selenium ...
88
votes
6
answers
140k
views
Is it possible to run a .NET 4.5 app on XP?
First, I have read the following:
Connect case
VS case
and especially this channel9 post
So, from the last bullet, I really think there is no way around this, but I had to see if I could get a ...
72
votes
4
answers
78k
views
Gradle sourceCompatibility has no effect to subprojects
I have Java 6 and 7 installed on my machine. Gradle uses 1.7 (checked using gradle -v). But I need to compile my code to be compatible with Java 1.6. As far as I understand the documentation I can use ...
54
votes
5
answers
62k
views
Effective maximum mailto: body lengths
There is a maximum length for the text in the &body section of a mailto: link. According to one of my co-workers, the W3C publish the limit as 256 (I don't have a link to back this up, though).
...
31
votes
4
answers
32k
views
How to deal with deprecated classes in Android to keep compatibility
I am getting back to work on an app I worked on a while ago, when I had everything built around Android 2.2 Froyo.
I have updated my SDK for the latest APIs and noticed that the ClipboardManager ...
527
votes
15
answers
466k
views
How to find out if a Python object is a string?
How can I check if a Python object is a string (either regular or Unicode)?
66
votes
8
answers
206k
views
How to set IE11 Document mode to edge as default?
I have Internet Explorer installed on my computer but needed to test compatibility mode of IE 7. After changing the document mode to IE 7, it set it as default and now I can't change it. The default ...
48
votes
3
answers
21k
views
Alternative to sun.misc.Signal
I started research to find an alternative to the sun.misc.Signal class, because it could be unsupported in upcoming JDKs (we're currently working on 1.6). When I build the project I get:
warning: ...
52
votes
8
answers
42k
views
Android: Tint using DrawableCompat
I'm trying to tint an image prior to Android API level 21. I've successfully tinted items using:
<android:tint="@color/red"/>
However, I can't seem to figure out how to do this through code on ...
26
votes
4
answers
9k
views
Creating Library with backward compatible ABI that uses Boost
I'm working on a certain C++ library (or more framework). I want to make it backward
compatible with previous versions preserving not only API compatibility but also ABI (like the great job Qt does).
...
22
votes
5
answers
36k
views
python 2.7 equivalent of built-in method int.from_bytes
I'm trying to make my project python2.7 and 3 compatible and python 3 has the built in method int.from_bytes. Does the equivalent exist in python 2.7 or rather what would be the best way to make this ...
19
votes
4
answers
35k
views
Force IE 11 "User agent string" using tags
My website is broken in IE11.
We all know that HTML tags allow developer to force IE compatibility mode; in example
<meta http-equiv="X-UA-Compatible" content="IE=8, IE=9" />
worked great and ...
66
votes
16
answers
73k
views
iOS 11 safe area layout guide backwards compatibility
Is enabling Safe Area Layout Guides compatible to iOS below 11?
15
votes
2
answers
8k
views
Are windows phone 7 apps compatible on windows phone 8 devices?
very straight forward question. My company has developed a windows phone 7 app and have been testing it on a windows phone 7 device. Can we safely assume that the same app will be backwards compatible ...