Blob download is not working in IE

Try this using, this or useragent if (navigator.appVersion.toString().indexOf(‘.NET’) > 0) window.navigator.msSaveBlob(blob, filename); else { var blob = new Blob([‘stringhere’], { type: ‘text/csv;charset=utf-8’ }); var link = document.createElementNS(‘http://www.w3.org/1999/xhtml’, ‘a’); link.href = URL.createObjectURL(blob); link.download = ‘teams.csv’; link.click(); }

How to make gradle generate a valid pom.xml file at the root of a project for maven users?

You can use the gradle maven plugin. This adds the pom convention method to your project, which you can use in a task to generate a pom.xml file, like task writeNewPom { doLast { pom { project { groupId ‘org.example’ artifactId ‘test’ version ‘1.0.0’ inceptionYear ‘2008’ licenses { license { name ‘The Apache Software License, … Read more

Android: Tint using DrawableCompat

In case anyone needs to use DrawableCompat‘s tinting without affecting other drawables, here’s how you do it with mutate(): Drawable drawable = getResources().getDrawable(R.drawable.some_drawable); Drawable wrappedDrawable = DrawableCompat.wrap(drawable); wrappedDrawable = wrappedDrawable.mutate(); DrawableCompat.setTint(wrappedDrawable, getResources().getColor(R.color.white)); Which can be simplified to: Drawable drawable = getResources().getDrawable(R.drawable.some_drawable); drawable = DrawableCompat.wrap(drawable); DrawableCompat.setTint(drawable.mutate(), getResources().getColor(R.color.white));

Is arm64-v8a compatible with armeabi-v7a?

Many modern Android devices (i.e. Nexus 5x) have AArch64 processors with arm64-v8a instruction set. Both – armeabi and armeabi-v7a – libraries run fine on these modern devices. Therefore, we can assume the answer to your question to be ‘YES’. See this for a breakdown of ABI management on Android: https://developer.android.com/ndk/guides/abis.html

What does it really mean to target a framework, and how do I maximize compatibility?

The frameworks are designed to be backwards-compatible; if you have a program written in .NET 2.0, you can run it in the 4.0 runtime, because none of the frameworks ever remove functionality that a prior version had (which is why we still have the non-generic collections like ArrayList, even though they’re deprecated in favor of … Read more

Possible to restore a backup of SQL Server 2014 on SQL Server 2012?

You CANNOT do this – you cannot attach/detach or backup/restore a database from a newer version of SQL Server down to an older version – the internal file structures are just too different to support backwards compatibility. This is still true in SQL Server 2014 – you cannot restore a 2014 backup on anything other … Read more

How to check SQL Server Database compatibility after sp_dbcmptlevel is deprecated?

select name, compatibility_level , version_name = CASE compatibility_level WHEN 65 THEN ‘SQL Server 6.5’ WHEN 70 THEN ‘SQL Server 7.0’ WHEN 80 THEN ‘SQL Server 2000’ WHEN 90 THEN ‘SQL Server 2005’ WHEN 100 THEN ‘SQL Server 2008/R2’ WHEN 110 THEN ‘SQL Server 2012’ WHEN 120 THEN ‘SQL Server 2014’ WHEN 130 THEN ‘SQL Server … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)