Exclude a Module from an Android Library using Gradle

Recently I ran into a indirect dependency conflict issue while using an android library. The conflict message was: Conflict with dependency ‘xmlpull:xmlpull’. Resolved versions for app (1.1.2.1) and test app (1.1.3.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details. The root cause of the conflict was a CSV library that i was using. I added it as a […]

Continue reading


Get Query Parameters by Name in JavaScript

Here’s a utility function to get URL’s query parameters by name. function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, ‘\\$&’); var regex = new RegExp(‘[?&]’ + name + ‘(=([^&#]*)|&|#|$)’), results = regex.exec(url); if (!results) return null; if (!results[2]) return ”; return decodeURIComponent(results[2].replace(/\+/g, ‘ ‘)); } The url parameter is optional if […]

Continue reading