FAQ Database Discussion Community


How to color the status bar with styles attributes in all Android versions?

android,android-5.0-lollipop,compatibility,material-design,android-styles
This is styles.xml <resources> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primaryDark</item> <item name="colorAccent">@color/accent</item> <!-- Other attributes --> </style> While this is v21 styles.xml <?xml version="1.0" encoding="utf-8"?> <resources> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item...

IE document mode 8 or below is not compatible with .svg image type

html,css,svg,internet-explorer-8,compatibility
I have a document which has to be compatible with IE document mode 8. The html document has the following line <meta content="IE=8" http-equiv="X-UA-Compatible"> Now I have an .svg image which i Display using css file as follows, background: url('../images/iPhoneAppStoreLogo.svg') no-repeat 0 0; But this image is not displayed in...

Test for compatibility in Matlab

matlab,compatibility,simulink,backwards-compatibility,stateflow
I'm working with an open source Matlab toolbox which, according to its creators, is compatible for versions of Matlab over 7.6, i.e., R2008a. I tried to run it in R2011b and it threw the exception: Undefined variable "Simulink" or class "Simulink.Mask.create" Since: 1- Simulink is installed and functional in this...

python 2.7 equivalent of built-in method int.from_bytes

python,python-2.7,compatibility
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 code 2.7 and 3 compatible? >>> int.from_bytes(b"f483", byteorder="big") 1714698291 ...

HTTP2 headers compatibility with older browsers

php,header,compatibility,http-1.1
I heard today that soon the http2 protocol will be implemented in modern browsers. More information: https://en.wikipedia.org/wiki/HTTP/2, I know wikipedia is not the best resource, but it will give a little clue about what is going on. The question is: How will old browsers respond to http2 headers? I mean...

Need Solution for browser compatibility issue

google-chrome,firefox,compatibility
Our application is running fine in chrome browser. But in Firefox some features and screens are not working properly. So it needs to be fixed .How can i do that and what could be the solution for that?

Worrying about the compatibility of Android MediaCodec and MediaMuxer since API-18

android,compatibility,mediacodec
With an effort, I wrote a demo which can record a h264/aac video successfully. I use MediaCodec and MediaMuxer which are both available since api-18. To avoid that the color formats for the camera output and the MediaCodec encoder input are different, I chose the color format "MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface" according to...

How to use appcompat-v7 with android API 19

java,android,compatibility,android-5.0-lollipop,appcompat
All is in the questioin I have a module with this graddle : apply plugin: 'com.android.library' android { compileSdkVersion 21 buildToolsVersion "21.1.2" compileOptions.encoding "ISO-8859-1" defaultConfig { minSdkVersion 8 targetSdkVersion 8 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile 'com.android.support:appcompat-v7:21.0.3' } When I...

Why would two iPhones (5c and 5s) display a Wordpress plugin differently?

ios,css,iphone,wordpress,compatibility
I'm porting an html site to wordpress (plugin) and I'm running into a unusual issue (for me, at least). The html version of the website looks correct on both iphones, but the wordpress version only looks correct on the 5s. The 5c is showing an incorrect margin-bottom. Also, I should...

Best way to write Python 2 and 3 compatible code using nothing but the standard library

python,python-2.7,python-3.x,compatibility
I am trying to make some of my code Python 2 and 3 compatible. At the moment I am struggling with functions like range/xrange and methods like dict.items/dict.iteritems. Ideally I would like my code to be able to use the former in Python 3.x and the latter in Python 2.x....

Polymer Project not working on Safari

safari,polymer,compatibility,platform,material
I'm developing a websites using Paper/Core Elements with HTML Import of Polymer Project. As subjested in some post about Polymer and Polyfill, I have imported 'webcomponents.js' that matches to 'platform.js'. That solved my problem partially, only for Mozilla Firefox and Internet Explorer. On Safari its not still working. I'd like...

absolute positioned within a relatively positioned
  • works in chrome & IE11, NOT firefox
  • image,browser,compatibility,absolute,relative
    I am making a roster. I have a container absolutely positioned. Within this, I have an unordered list with several list items positioned relatively. Within each list item I have some text (displaying their name) and then below this an absolutely positioned image (of them). It works great in both...

    ios Swift: looking for a cross compatible method to Java's Random() PRNG that has identical output

    java,ios,swift,compatibility,prng
    Here's my delimna: I am writing an application that needs to exactly reproduce the PRNG output from a game that was written in Java that uses the Java random() with a given seed to create all it's initial game 'world' data. The problem I am facing is that Java's random()...

    TSC: what does --target ES3 compatibility flag do?

    javascript,typescript,compatibility,tsc,ecmascript-3
    I installed typescript npm package: npm install typescript and ran node_modules\.bin\tsc doodle.ts -t ES3 Where doodle.ts has: var test = document.querySelector('.test'); It echoed back the same in output doodle.js. How to configure it so in the output, I get: var test = document.getElementsByClassName('.test')[0]; Shouldn't -t ES3 flag take care of...

    Android Studio and Eclipse

    java,android,eclipse,android-studio,compatibility
    All the people that I work with use Eclipse for creating android apps. However, I recently found out that Android is no longer supporting Eclipse and they are moving to Android Studio. All that apps that I am working on have been complied and created with Eclipse. I'm thinking if...

    Selectors fail to translate properly from Chrome to Firefox and Safari

    css,cross-browser,hover,selector,compatibility
    Unabridged Explanation Last night I was working on replicating an interesting Codepen I found. After I finished it, I was extremely happy with how it worked. Since I wasn't planning on using it in production, I neglected to use the proper CSS prefixes to insure cross-browser compatibility. However, when I...

    Why Compatibility mode only in IE not in other browsers?

    html,internet-explorer,cross-browser,compatibility
    When i am checking my code with the developer tools (F12), I have seen the option Compatibility view only in IE browsers. Why don't other browsers have this compatibility view mode? I am confused about this. Can you guys clarify, is there any specific reason for this?...

    Can Android devices with old firmware download old app versions in play store?

    android,google-play,compatibility,publishing
    We currently have an Android app listed in play store which supports Android 2.x and plan an update which has minimum Android 4 (having Holo theme etc). The question now is: If we publish the update, what will happen to phones having Android 2.x? Will they see the last version...

    Running a C++ program in Windows vs Linux

    c++,linux,windows,compatibility
    I've been told by my teacher that my homework (a simple program, I chose to code in C++) must be runnable in Linux. Here's what he said exactly: "...you should also include a README file that contains all command lines that should run by cut-and-paste. If you used C, then...

    flex -l longest pattern match strategy - not here?

    compatibility,flex-lexer,lex
    I have two lex rules and was wondering why I never matched the second rule. Instead rule 1 always fired upon the pattern 2005-05-09-11.23.04.790000 <data>[-]?[0-9]*[.][0-9]* { comma=0; printf("DEBUG: data 1 %s\n",yytext); strcat(data_line,yytext); } <data>[0-9]{4}[-][01][0-9][-][0-3][0-9][-][0-9]{2}[.][0-9]{2}[.][0-9]{2}[.][0-9]{6} { printf("DEBUG: data 2[%s]\n",yytext); /* 1996-07-15-hh.00.00*/ I thought, flex/lex would follow the longest string match rule?...

    Is it possible to increase compatibility of AngularJS to IE6?

    angularjs,compatibility
    By using polyfills is it possible to develop web apps with AngularJS for IE6 ? If so what are some of the polyfills that I would require ?

    Backwards compatibility with sqlite DB

    sqlite,compatibility
    In my application I'm using an amalgamated embeded version of SQLite v3.8.4. In the past I had compatibility issues with v3.7 regarding page_size > 32768. Now I'd like to keep backwards compatibility on database files with v3.6.20 (default on RHEL6), but when I try to open my DB file on...

    How to remove iPhone 4s and lower compatibility from Xcode project

    ios,xcode,compatibility
    iTunes Connect always asks me for 3.5 inch snapshots, how can I get rid of it?

    jQuery working on Firefox but partially on IE8

    jquery,firefox,internet-explorer-8,compatibility
    I have made a jQuery script who working well on Firefox but not on IE8. On IE, when I select an option, the title don't change but in Firefox it do it. I'm using jQuery v 1.11.3, suposed to be compatible with IE8. My HTML code : <!DOCTYPE html> <html>...

    Where is the Compatibility Area in iTunes Connect?

    xcode,itunesconnect,compatibility
    When I go to the App Store on an IOS device and select an app and scroll down, I see this Compatibility area, which says what devices are supported for this application. In iTunes Connect, where is that Compatibility place?

    Highest .NET version supported by Windows XP

    .net,windows-xp,compatibility
    What is the highest version of the .NET framework that is supported by Windows XP (32-bit)

    Browser compatibility of Polymer

    cross-browser,polymer,compatibility,polymer-1.0
    I am starting to use Polymer 1.0: the only thing I tried is a simple template like this: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="bower_components/webcomponentsjs/webcomponents.min.js"></script> <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script> <link rel="import" href="bower_components/polymer/polymer.html"></link> <link rel="import" href="bower_components/iron-icons/iron-icons.html"> <title>Polymer...

    Could IE=edge affect the document mode?

    internet-explorer,compatibility,meta
    In the header of my website I have the following meta tag: <meta http-equiv="X-UA-Compatible" content="IE=edge"> As I understand it, IE=edge will tell IE to view the webpage in the highest mode that the browser is capable of displaying. So if the visitor is using IE9 it will display the page...

    Browser versions that support web workers?

    javascript,compatibility,web-worker,worker,browser-support
    What are the earliest versions of Internet Explorer, Firefox, Chrome, Safari and Opera that define window.Worker? W3Schools states Internet Explorer 10, Firefox, Chrome, Safari and Opera support Web workers. But it is a bit vague for me. It does not state which versions of all the latter browsers have web...

    chaining .add and .submit does not work as expected in IE

    jquery,compatibility
    The following syntax works on Safari (osx), Chrome (win/osx), and FireFox (win/osx) - but does NOT work on non-metro IE 11 (windows 8.1). var html = '<form id="theForm" name="theForm" action="/controller/action" method="POST">; html += '<input type="hidden" name="bob" value="-1" />'; html += '</form>'; // I expect this to work in IE as...

    Any issues using SQL Server 2008 R2 backup on SQL Server 2014

    sql-server-2008-r2,compatibility,sql-server-2014
    Our website is backed by a database written using SQL Server 2008 R2 Enterprise. I am in India working with an outsource org and the only thing they can get is SQL server 2014 developer edition, which supports the compression options that are used with 2008 r2 enterprise. I have...

    Compablity issue with Chrome Web Browser

    javascript,html,css,google-chrome,compatibility
    We have developed a website using HTML, css and javascriipting. When we open it in Mozilla firefox then we get correct display for the webpage but when we open it in Chrome browser then we gets a gap between news and event box and the images which we put just...

    Python 2.7 and 3.4: Libraries inaccessible across versions

    python,python-2.7,python-3.x,compatibility
    I am new to Python. I am running Ubuntu 14.04, and I have both Python 2.7 and 3.4 on it. I want to use the newer 3.x version, with the NumPy, SciPy, and NLTK libraries. I set the Python REPL path to Python 3.x in the ~/.bash_aliases file like so:...

    How to make python compatible on all computers?

    python,dependencies,compatibility
    I wrote an interesting script that I want to share with people, but it won't run on other computers unless they have the same dependencies installed. How do I bundle the dependencies into the script package so that other people don't need to install dependencies to run the script? Like,...