3,003 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 ...
345
votes
7
answers
674k
views
Which TensorFlow and CUDA version combinations are compatible?
I have noticed that some newer TensorFlow versions are incompatible with older CUDA and cuDNN versions. Does an overview of the compatible versions or even a list of officially tested combinations ...
280
votes
24
answers
474k
views
How to run multiple Python versions on Windows
I had two versions of Python installed on my machine (versions 2.6 and 2.5). I want to run 2.6 for one project and 2.5 for another.
How can I specify which I want to use?
I am working on Windows XP ...
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::...
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 ...
142
votes
7
answers
236k
views
Is there a compatibility matrix of Spring-boot and Spring-cloud?
I am wondering if a compatibility matrix exists between Springboot and Springcloud?
I created a simple project on STS and am running into compatibility issues.
<parent>
<groupId&...
105
votes
12
answers
115k
views
Fragments onResume from back stack
I'm using the compatibility package to use Fragments with Android 2.2.
When using fragments, and adding transitions between them to the backstack, I'd like to achieve the same behavior of onResume of ...
98
votes
5
answers
131k
views
IE11 Document mode defaults to IE7. How to reset?
My Internet Explorer 11 on my Windows 8.1 Surface tablet defaults to document mode 7, causing a lot of websites to render wrongly.
When I open the Developer tools, it states that it defaults to ...
94
votes
8
answers
74k
views
Is cross-origin postMessage broken in IE10?
I'm trying to make a trivial postMessage example work...
in IE10
between windows/tabs (vs. iframes)
across origins
Remove any one of these conditions, and things work fine :-)
But as far as I can ...
92
votes
7
answers
73k
views
Enable WiX project in Visual Studio 2013
I have a VS 2012 solution with WiX Installer projects. However, when I open the solution in VS 2013 (Release) the WiX project is incompatible.
Does anyone know where / whether a VS 2013 version (...
79
votes
5
answers
90k
views
How to check SQL Server Database compatibility after sp_dbcmptlevel is deprecated?
According to BOL (SQL Server Books Online) on sp_dbcmptlevel,
This feature will be removed in a future version of Microsoft SQL Server. Do not use this feature in new development work, and modify ...
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 ...
72
votes
3
answers
40k
views
Angular4 Application running issues in IE11
I am building a Angular4 project using Angular CLI (1.1.2). It runs perfectly in Chrome (Version 59.0.3071.115) and firefox(54.0.1) but when I tried to use IE11 (Verison 11.0.9600.18738) nothings ...
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 ...
59
votes
1
answer
15k
views
How to make an iPhone app compatible with multiple SDK (firmware) versions
With iOS 4 coming out soon, I have already planned to include an iAd in a future update of an app of mine. I assume that this will make my app unusable for anyone on a firmware lower than 4.0. Is ...
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).
...
53
votes
3
answers
33k
views
Writing backwards compatible Android code
I'm writing an app that uses some functions and classes only available in the latest API level - 16, but I want it to run with no errors on devices with API level 15.
Let's use a couple of examples. ...
52
votes
3
answers
77k
views
How to make gradle generate a valid pom.xml file at the root of a project for maven users?
While only for two days now, I am definitely sold on using gradle for all of my Java projects, and drop pom.xml from the root of all my projects.
However, I would like to remain maven-compatible, in ...
49
votes
11
answers
84k
views
Blob download is not working in IE
I have this in my Angular.js controller that downloads a CSV file:
var blob = new Blob([csvContent.join('')], { type: 'text/csv;charset=utf-8'});
var link = document.createElementNS('http://www.w3....
47
votes
4
answers
67k
views
c++ #ifdef Mac OS X question
I am fairly new to C++. I am currently working on a group project and we want to make our classes compatible with both the lab computers (Windows) and my computer (Mac OS X).
Here is what we have ...
46
votes
5
answers
40k
views
Theme not applying to DialogFragment on Android
I'm switching my old Dialogs to DialogFragment, but the themes and styles don't seem to be working.
I'm using the DialogFragment from the compatibility library v4, and in the onCreate method I've ...
40
votes
6
answers
57k
views
Do Intel and AMD processor have the same assembler?
The C language was used to write Unix to achieve portability—the same C language program compiled using different compilers produces different machine instructions. How come the Windows OS is able to ...
39
votes
2
answers
1k
views
How to check that two format strings are compatible?
Examples:
"Something %d" and "Something else %d" // Compatible
"Something %d" and "Something else %f" // Not Compatible
"Something %d" and "Something %d else %d" //...
38
votes
2
answers
109k
views
What does '__COMPAT_LAYER' actually do?
Recently, i was trying to give my application administrator rights without system asking for "Do you want to give administrator rights?" and i found a way which is working perfectly.
...
36
votes
4
answers
58k
views
javax.xml.parsers.FactoryConfigurationError running JBoss AS 7.1 with Java 7 update 171
Upgrading Java from 7u161 to 7u171 prevents JBoss AS 7.1.1.Final from starting. I know JBoss AS 7.1.1 is EOL but for compatibility reasons, we still need to run this version.
Very early in the ...