Menu
  • HOME
  • TAGS

How do versions work and how are they measured?

version,system,measure

To be honest, they're pretty much arbitrary, and depend entirely on the whims of the developers. However, there are several common conventions that are followed by developers, with the most popular being in the form major.minor[.build[.revision]], such the Minecraft 1.2.5 example. This convention can be used to communicate the significance...

Opsworks : Rails App Layer : specify Ruby minor version

ruby,amazon-web-services,version,aws-opsworks

Ah ha, I picked up tips from some old doco I think. By reading the aws/opsworks code I corrected my custom json to this: "ruby": { "version": "2.1.2" } and it worked! Actually, this is only partially a correct answer. I have one stack that responded to this and downgraded...

lowering minSdkVersion — need warning messages

android,build,sdk,gradle,version

In Android Studio, you can use Analyze > Inspect Code... to run an analysis of your whole project, including Lint checks. Try that and see if it gives you the results that you are seeking.

Handle std::thread::hardware_concurrency()

c++,multithreading,c++11,g++,version

Based on common predefined macros link, kindly provided by Joachim, I did: int p; #if __GNUC__ >= 5 || __GNUC_MINOR__ >= 8 // 4.8 for example const int P = std::thread::hardware_concurrency(); p = (trees_no < P) ? trees_no : P; std::cout << P << " concurrent threads are supported.\n"; #else...

Is System.Data.SqlClient.SqlException.Number the same in all version's of SQL Server?

sql,sql-server,version,sqlexception

The SQL Server error codes don't change - once defined they stay the same, new error codes might be added with each version, but existing ones stay the same. See this link for a list of all SQL Server error codes as of version 2008 R2. Those messages (or message...

Get OSVersion in Windows using C++

c++,windows,version

Have you looked at GetVersionEx() function and OSVERSIONINFOEX structure? Possible usage: void print_os_info() { OSVERSIONINFOEX info; ZeroMemory(&info, sizeof(OSVERSIONINFOEX)); info.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); GetVersionEx(&info); printf("Windows version: %u.%u\n", info.dwMajorVersion, info.dwMinorVersion); } I don't understand, what do you mean by NT. According to MSDN: Since Windows XP, all versions are implicitly NT versions. If...

mvn - project uses incorrect dependency version, even though it is explicitely defined

java,spring,maven,dependencies,version

So the problem was that in my parent pom, which was used (0.10) was the C project defined as 1.0.2. The A project had B, which was referencing C in 1.0.5, so transitively A should have C in 1.0.5, however, A took C version 1.0.2 from R (from Parent/Root). Obviously,...

How to detect Python Compiler Version 2 or 3 in python script

python,version

>>> import sys >>> sys.version_info sys.version_info(major=2, minor=7, micro=6, releaselevel='final', serial=0) >>> sys.version_info[0] 2 For details see https://docs.python.org/2/library/sys.html ....

How to get app versionname for android with delphi XE7?

android,version,delphi-xe7

You need to change the uses a little from the answer that you link to. I think that instead of: uses Androidapi.JNI.JavaTypes, FMX.Helpers.Android, Androidapi.JNI.GraphicsContentViewText; the code will work with: uses Androidapi.JNI.JavaTypes, Androidapi.Helpers, Androidapi.JNI.App, Androidapi.JNI.GraphicsContentViewText; ...

Which XPath version is supported in PhantomJS?

selenium,xpath,phantomjs,version,ghostdriver

You can directly check whether specific functions are supported or not. For example, boolean() is provided by XPath 1.0, but abs() is only provided by XPath 2.0. PhantomJS 1.x & 2.0 only supports XPath 1.0. Full script: var page = require('webpage').create(); console.log(JSON.stringify(page.evaluate(function(){ var b = -1, body = -1, abs...

Backbone Underscore Version Error

javascript,backbone.js,underscore.js,version

<script src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.0/backbone-min.js"></script> simply your underscore version is too old, use the version 1.7.0. The backbone version u're using trying to use _.has which is only introduced in underscore version 1.3.1...

Spring mvc and spring security version conflict

spring,version,conflict

According to spring docs so: Spring Security builds against Spring Framework 4.1.3.RELEASE. And to get it work, your pom.xml should be like this one: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.test</groupId> <artifactId>test</artifactId> <packaging>war</packaging>...

What does the last digit of msysgit version mean?

git,version,windows-server-2008,msysgit

I tested all 3 versions, and found that: git version 1.9.4.msysgit.0 is Git-1.9.4-preview20140611 git version 1.9.4.msysgit.1 is Git-1.9.4-preview20140815 git version 1.9.4.msysgit.2 is Git-1.9.4-preview20140929...

Eclipse for Java shows Multiple Errors

java,eclipse,configuration,version

Try cleaning your project by going to the following menu item: Project > Clean... If that doesn't work: Try removing the jars from the build path and adding them again. Double-check the jars being really on the build path (with no errors). Make sure there is nothing in the "Problems"...

How to delete a uploaded version, and add a new version, in the New iTunes connect

ios,build,upload,version,itunesconnect

You cannot 'delete' the rejected version, but can edit and change the version number. Goto 'General App Information' part of 'Version Information' page of the previous version (1.6.1), change Version from 1.6.1 to 2.0.0. ...

How can I know that which version of gcc compiler I am using?

gcc,version

In order to get that information you should type the commands: gcc -v or gcc --version. For more details see the man pages for gcc http://linux.die.net/man/1/gcc

Assembly file version management in Silverlight application

c#,silverlight-4.0,version

In this case, you cant increase the file assembly version, but you can track the version by using other attribute of assembly file, for instance you can use the "AssemblyTrademark" attribute to track the version. In each release you can increase the version. Eg- [assembly: AssemblyTrademark("1.1.1.7")] ...

Python - sorting incremented files

python,file,sorting,version

Regular Expression may help you. import re file=["Cat_Setup_v91.mb", "Cat_Setup_v01.mb", "Cat_Setup_v119.mb"] print sorted(file, key=lambda x: int(re.findall("(?<=v)\d+", x)[0])) give the output: ['Cat_Setup_v01.mb', 'Cat_Setup_v91.mb', 'Cat_Setup_v119.mb'] Updated: change "(?<=v)\w*" to "(?<=v)\d+" according to @Rawing comment...

What does rc mean in angular versions

angularjs,version,abbreviation

rc is release candidate. This means no new feature will be introduced just a bugfix releases before final release.

how to version packages in golang?

go,package,version

The official version, from the GO FAQ: If you're using an externally supplied package and worry that it might change in unexpected ways, the simplest solution is to copy it to your local repository. (This is the approach Google takes internally.) Store the copy under a new import path that...

How can I test the syntax on SQL Server 2005 without install it

sql,sql-server,sql-server-2008,sql-server-2005,version

Using the compatibility level of your database, you can create a database in SQL Server 2008, but then make it look, feel and act like SQL Server 2005. Steps: Create your database - either visually or with CREATE DATABASE MySampleDB This creates a database on your server, in the default...

Mysql version 5.6 jar version 5.1

mysql,jdbc,jar,version,wildfly

Yes, of course. Connector/J 5.1.34 is latest version the official JDBC driver for MySQL. See docs http://dev.mysql.com/doc/connector-j/en/connector-j-versions.html Connector/J 5.1 is a Type 4 pure Java JDBC driver, which conforms to the JDBC 3.0 and JDBC 4.0 specifications. It provides compatibility with all the functionality of MySQL, including 4.1, 5.0, 5.1,...

Find version of file from file name with regex

javascript,php,regex,version,extract

You could use the below regex to match the version number. \b\d+(?:\.\d+)*\b \b word boundary which matches between a word character and a non-word character. \d+ Matches one or more digits. (?:...) Called non-capturing group. (?:\.\d+) Matches a dot and the following one or more digits. (?:\.\d+)* , matches a...

Storing database version in the database itself

sql,database,configuration,version,h2

I think this is a good solution, if you just need to persist the database version. Sometimes you need to persist more than one such 'global' settings, for example if your application consists of multiple modules, and each module has its own version. Or other things, like the location of...

Java Compiling Error in Command prompt: class file has wrong version 52.0, should be 50.0 [duplicate]

java,compilation,version

You are trying to run/reference a class compiled with JDK 8 using a runtime/compiler JRE/JDK 6. The Java being used by the command line is probably a different version than the one used by NetBeans. See Java class file for a list of what the numbers mean. Download JDK8, or...

To upgrade mysql vesion in workbench

mysql,version,mysql-workbench

MySQL Workbench is a client tool that uses an existing server. Both have their own version numbers. The current GA (generally available) version of MySQL Workbench is 6.2.5. For the server there are obviously different versions. You don't need to consider WB when upgrading. Just upgrade your server and WB...

Start different services depending on Android Version

android,service,notifications,version,android-4.4-kitkat

I just figured out, how to do this. The key is the "enabled" flag, you can provide to the service in your manifest-file. Then you can do it like this http://stackoverflow.com/a/23845884/1894572. Created a "normal" bool.xml and one bool.xml for v-21 (Lollipop). This is the normal: <resources> <bool name="remoteControllerService_enabled">true</bool> <bool name="mediaControllerService_enabled">false</bool>...

Why sbt does override scala version in subproject?

scala,sbt,version,overriding,subproject

Scala 2.10 and 2.11 aren't binary compatible (see https://typesafe.com/blog/scala-211-has-arrived). So it isn't possible for a 2.11 project to depend on a 2.10 project. See also Cross-Building in SBT documentation.

Test if String Given is A Version Number

php,version

I'm not sure if this is the best way but using the version_compare() I just ensured that it was at least 0.0.1: version_compare( $given_version, '0.0.1', '>=' ) Which filters out 'non-version' strings. For example: if( version_compare( $_POST['_iq_plugin_vers'], '0.0.1', '>=' ) >= 0 ) { echo 'Valid Version'; } else {...

How to handle versions of sbt, scala, libraries

scala,sbt,version

I struggled with this extensively when i started out. These days i start every project with a boiler-plate build.sbt with just scalaVersion and whatever sbt is currently on my machine: organization := "foo" version := "0.1" scalaVersion := "2.10.4" Pick the latest 2.10 or 2.11, dependening on your need. Most...

Entity Framework Version Number

entity-framework,version

Look at the file properties of EntityFramework.dll in Windows Explorer, and you will see a product version of 6.1.2 - the 6.0.0.0 version is the assembly version

Should I increase versions after a release or with every commit

version-control,version,semantic-versioning

Version does not depend on how many functions you have written in that particular release. If your current version is 1.0.0 ,then it should be 1.0.1 or 1.1 depend upon your naming rule that you have put for your product and dependencies.

How to understand `org.ow2.asm:asm-tree:4.0 -> 5.0.3 (*)` in `gradle dependencies`?

gradle,dependencies,version

tl;dr Have a look at this answer. explanation It means that among dependencies there are conflicted - with same group and artifactId. They are often transitively downloaded with dependencies specified. Gradle tries to resolve it automatically - by picking the latest version (signed with ->). Conflicting dependencies can be excluded....

JRuby Java Version Compatibility

java,version,jruby,java-7,java-5

From JRuby 1.7.0. Released: Java 5 support dropped (Java 6+ required) Bugs running under Java 8 are actively fixed (e.g. #1899, #1858)....

How to check version of Visual Studio

visual-studio-2013,version

Click on Help > About. You will see the version number and the update you have installed.

Which Qt version to use if i want to support low windows OS with low hardware Or maybe win32 plain c++? [closed]

c++,qt,windows-xp,version,pentium

Since QT 5.3, Qt5Core library on Windows (Visual Studio 2012 or newer) depends on ICU version 52 which is not supported on Windows XP. You have some options : Using Qt 5.2.1 Using Qt 5.3.* MinGW binaries Rebuilding QT 5.3 with -no-icu option (but with -no-webkit too because you can’t...

OpenGL GLSL shader versions

c++,opengl,version,shader,compatibility

Writing portable OpenGL code isn't as straightforward as you might like. nVidia drivers are permissive. You can get away with a lot of things on nVidia drivers that you can't get away with on other systems. It's easy to accidentally use extra features. For example, I wrote a program targeting...

What version of Ruby 2.0.0 is the stable version?

ruby,version,ruby-2.0

2.0.0-dev is the ruby_2_0_0 SVN branch. The development (mostly merging fixed issues from trunk) of future 2.0.0 releases is done there. 2.0.0-previewX are preview releases that may contain some serious issues or features that'll never be a part of the first stable release (2.0.0-p0). For example, 2.1.0-preview1 had frozen string...

Disable and enable different Java versions on Windows?

java,windows,version,disable-app

The solution I found for THIS program (ATLauncher) was to download a little jar-file called LegacyJavaFixer (specific for only ATLauncher though) and place it in each modpack folder. It doesn't seem to be possible to do it from batch? I'll mark this answer as correct as long as noone else...

How to get and compare libcurl version?

c,version,libcurl

If you want to detect version at run-time, you can use curl_version_info() in a style like this: curl_version_info_data *d = curl_version_info(CURLVERSION_NOW); /* compare with the 24 bit hex number in 8 bit fields */ if(d->version_num >= 0x072100) { /* this is libcurl 7.33.0 or later */ printf("Succcess\n"); } else {...

C# determine OS is Windows 7 or WIndows Windows Server 2008

c#,windows,version

I'm assuming the problem with that code is that it uses LINQ. You can still use WMI to check it, just don't use LINQ. I also think it's better to check the ProductType rather than Caption. using (ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem")) { foreach (ManagementObject managementObject in...

How to test apk on previous versions

android,version,apk,intel-xdk,android-install-apk

Do you have the apk downloaded in your 2.3 version android device? If not, you could install it sending the apk in an email to the account in your android device, allow installations of apps from unknown sources in your settings in case that you didn't set that option before...

How to version an erlang project?

erlang,package,version,release,rebar

Versions exist at several levels in Erlang: Erlang modules can be versioned using the -vsn attribute. For example, the top of a mymodule.erl file might be written as shown below: -module(mymodule). -vsn(1.0). ... If you don't specify -vsn the Erlang compiler generates one for you using the MD5 checksum of...

Revert back to an old version of Lua?

lua,version,revert

Lua 5.3 builds by default with compatibility with Lua 5.2. If you aren't using the Makefile from lua.org, make sure to build Lua 5.3 with LUA_COMPAT_5_2 defined. If you want to revert to Lua 5.2, just uninstall Lua 5.3 (make uninstall) and install whatever version you want....

Exception IP6 has no attribute

python,filter,version,ipv6,dpkt

Finally i found the good way to do it, the line is not: if ip.p == dpkt.ip6: return But: if eth.type == dpkt.ethernet.ETH_TYPE_IP6: return ...

How to check all versions of python installed on osx and centos

python,linux,osx,centos,version

Use, yum list installed command to find the packages you installed. ...

PHP - get current php version release date

php,version,maintainability

Basing on Antony D'Andrea link I've modified slightly phpinfo_array function so you can use it like phpinfo_array("Build Date"); I've also created phpdate($format) function that handles it. function phpinfo_array($info=false){ /* Andale! Andale! Yee-Hah! */ ob_start(); phpinfo(-1); $pi = preg_replace( array('#^.*<body>(.*)</body>.*$#ms', '#<h2>PHP License</h2>.*$#ms', '#<h1>Configuration</h1>#', "#\r?\n#", "#</(h1|h2|h3|tr)>#", '# +<#', "#[ \t]+#", '#&nbsp;#', '#...

How to denote Java versions correctly?

java,version,java-8

If you are writing about Java Standard Edition, then the correct notation will be: Java SE 8, the same rule applies for Enterprise Edition (Java EE 7).

How to get my R version

r,version

From within R: R.version.string ## [1] "R version 3.1.0 (2014-04-10)" From the command-line you can grep it out: > R --version| grep -Eo 'R version [0-9.]+ \([0-9]{4}-[0-9]{2}-[0-9]{2}\)'; ## R version 3.1.0 (2014-04-10) ...

code pulls wrong versionName from manifest

android,version,manifest

If you are using gradle build system versionCode and versionName fields from the manifest will be overridden with values from build.gradle. So, go to module's build.gradle, change versionCode/versionName, it must looks like android { ... defaultConfig { ... versionCode 23 versionName '0.70b' } ... } You may check it using...

Meaning behind version numbers (i.e. 0.1, 0.10.10, 1, etc) [closed]

functional-programming,logic,version

There is not a specific standard - anybody can follow any scheme (or lack of scheme). It's up to corporate policy, development standards, or whatever guidelines you are under. There are some popular standards out there. We try to follow the Semantic Versioning standard. The basic tenants include (quoted): Given...

Updating project version: Composer

git,version,composer-php

There is no need to run composer update when you update your own version number. Only run it when you want to update dependencies: In order to get the latest versions of the dependencies and to update the composer.lock file, you should use the update command. php composer.phar update This...

Ruby on Rails: database all previous migration numbers

ruby-on-rails,migration,rake,version

rake db:migrate:status will show all the migrations, along with whether they have been applied or not. `...

version_compare to check for major and minor versions

php,version

After some fiddling I came up with this: function my_version_compare($new_version, $old_version, $operator, $only_minor = false){ $pos = 1; //position to indicate what's a major version (x.[x].x.x = 1) if($only_minor){ //get parts as array and remove trailing zeros $new = explode(".", rtrim($new_version, ".0")); $old = explode(".", rtrim($old_version, ".0")); //check if it's...

gigaspaces gs.bat unable to execute java command

java,version,gigaspaces

For some reason java 7 doesn't like this path: \tools\groovy\bin\..\..\..\ when investigating further I found out that JSHOMEDIR is being set to [SOME-PATH-TO-GS-HOME]\tools\groovy\bin\..\..\..\ so in setenv.bat, I placed a set JSHOMEDIR=%~dp0\.. before the line: if "%JSHOMEDIR%" == "" set JSHOMEDIR=%~dp0\.. For some reason setting an (system/user) environment variable didn't change...

How to Check Which Version of Team Foundation Server on my Machine (client side)?

visual-studio-2012,tfs,version

TFS isn't installed client-side. On the client you use Team Explorer, which is part of Visual Studio. So the only version on the client-side that is important is the Visual Studio version which you get from Help->About.

jQuery Version Download

jquery,download,version

You'll want the latest available release of v1 or v2. If you need to support IE8 or earlier, use v1 (at the moment, v1.11.2). If you don't, use v2 (at the moment, v2.1.3). For development, you may want the uncompressed version of jQuery (although many people just use the compressed...

How to get a build number for my current jsp application version (using CVS)

java,jsp,build,version,cvs

CVS really doesn't understand 'snapshots' of the repository; it works at a file level. So your best solution would be to get up to date and use something like Git with the "git describe" command. Assuming you can't do the obvious you might try the "cvsps" command. This does a...

At what version of AngularJS was the '=?' isolate scope introduced?

javascript,angularjs,version

This was introduced in 1.1.4. Here's a link to Angular's change log: https://github.com/angular/angular.js/blob/master/CHANGELOG.md#features-46 And the change itself: https://github.com/angular/angular.js/commit/ac899d0da59157fa1c6429510791b6c3103d9401...

My app's minSdkVersion is 14 and targetSdkVersion is 21 but Google Play judge it just support Android 4.0~4.4

android,version,android-5.0-lollipop,playback

I have fix it. just add: maxSdkVersion 21 in the gradle.build nearby minSdkVersion....

Is the jQuery version I can use limited by the .NET version I am using (in Sharepoint apps)?

jquery,asp.net,sharepoint-2010,.net-3.5,version

No. They are not connected in any way. You can use whichever version of jQuery you desire. Update As correctly pointed out in the comments below, SP2010 renders in IE8 mode and jQuery 2.x.x is not supported by IE8....

Getting the version of DigitalMicrograph in script

version,dm-script

Unfortunately there doesn't exist a command to get the DM version. (Well, there exists one in later GMS versions now, but that is of no help.) One "trick" how to work around this is shown in the tutorials on this page: One can use the command DoesFunctionExist() to query if...

How to change version string of the kernel?

linux,kernel,version,fedora,uname

At the top of the top-level Makefile, there are four lines VERSION = 3 PATCHLEVEL = 18 SUBLEVEL = 7 EXTRAVERSION = The values are different for different kernel versions, of course. These are used to construct the version string, so changing them before building the kernel changes the version...

breeze.js - how coupled are the client and server versions

version,breeze,upgrade,server

Our recommendation is usually to upgrade both at the same time. In general, we very rarely have breaking changes on the server. ( None in recent memory). But we do occasionally on the client and these are called out in the release notes ( available on the website here: http://www.getbreezenow.com/documentation/release-notes.)...

How to Change Version of Existing Android Project in Eclipse?

java,android,eclipse,version,project

in AndroidManifest.xml file, find <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21" /> change the minSdkVersion to 17 for JellyBean...

How to get Tomcat version number in Java [duplicate]

java,tomcat,version

From a JSP In a jsp file you can print out the version like this: Tomcat Version : <%= application.getServerInfo() %> Output: Tomcat Version : Apache Tomcat/8.0.14 Outside of JSP (Any Java Code) If you want it outside of a JSP (e.g. in a Servlet or listener or w/e) take...

correct way to encode/embed version number in program code

c++,linux,bash,version,gnu

Normally, for major and minor version numbers (as in, 1.2, 1 is major and 2 is minor), they are most often written in the code directly, usually as a #define (because you might need them for conditional compilations, i.e., #if blocks). You would typically have a separate header that contains...

Best practice for ServiceBus message versioning

c#,version,message,servicebus

I have been looking at something similar but am yet to implement it so can't provide full guidance, but to answer your question on #3... I have messages which have a flag to re-queue the message to run again, e.g. to get a process to run every 5 minutes. So...

CMake find wrong gcc version

c++,gcc,cmake,version

Answering my own question. Actually, gcc 4.5.1 seems have a bug because the following simple code (correct according to the official doc : https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html) prints 4.5.0 when compiled with gcc 4.5.1 on my workstation. #include <iostream> int main(int argc, char** argv) { std::cout << __GNUC__ << "." << __GNUC_MINOR__ <<...

Python: Two Nested Loops

python,version

For python version 3. First: for i in range(4): for j in range(i+1): print(j, end="") print() Second: x=10 for i in range(1,5): for j in range(x,i+x): print(str(j)+" ", end="") x+=i print() Third: for i in range(3): print((str(i)+" ")*9) ...

Chef cookbook version delete, or update specific version

version,chef,knife,cookbook

when you run knife cookbook upload it will update whatever version is listed in your local metadata.rb file. (unless it is frozen). If you use Berks, you'll need to add the --force option to overwrite an existing version. deleting a specific version is as easy as knife cookbook delete mycookbook...

Java 1.7 not an option in Eclipse Project Facets

eclipse,version,facets

Your configured path for your jre7: /Library/Java/Home is actually pointing to your jdk6 installation. Change /Library/Java/Home to whatever the output of this command is: /usr/libexec/java_home.

Choosing .NET version when injecting code with Reflexil

.net,version,decompiling,reflexil

This bug was fixed in Reflexil v1.9. It was related to an improper corlib type import.

rsync: /usr/lib/libpopt.so.0: no version information available (required by rsync)

linux,linker,version,rsync,shared-objects

Actually there were two libraries (popt library) being generated in the same location with same version number. This is how the sequence flow happened in my case. 1) first popt library (libpopt.so.0) is built. 2) rsync is built using the first libpopt.so.0 generated in step(1). 3) Another modified popt library...

How to use multiple versions at the same time in an Apigility app with Doctrine?

doctrine2,zend-framework2,version,dbconnection,apigility

The following section of your config: [ 'db'=>[ 'adapters' => [ 'DB\\myproject_v1' => [], 'DB\\myproject_v2' => [], ] ] ] configures an abstract factory that registers the service names DB\\myproject_v1 and DB\\myproject_v2 with db adapter instances. It is the part of the configuration below that actually assigns the adapter to...

bash 4.2 / 4.3: Different behavior in C-style loop

bash,loops,version

If you replace $(expr with $((, it starts to work: TIMES=30 for (( n=0; n < $(shuf -i $TIMES-$((TIMES + 20)) -n 1); n++ )) ; do echo $n done ...

Check module version

javascript,node.js,module,version,require

I don't think there's a built-in function that does this. Instead, you can get the version from the package.json file: var packageJson = require('./package.json'); console.log(packageJson.version); ...

Error: My app stops working when I use getRunningTasks even when @TargetApi is set to 18

android,version,android-4.3-jelly-bean

Your logcat says that you must use permission "android.permission.GET_TASKS". Put it to your AndroidManifest.xml before <application> tag: <uses-permission android:name="android.permission.GET_TASKS" /> ...

Perl keyword say is not working in version 5.14.4

perl,version

For backwards compatibility reasons, it's not available by default. You could use CORE::say(...); but it's probably better to add one of the following: use feature qw( say ); # Requires Perl 5.10. use v5.10; # All 5.10 features including "say". use 5.010; # Same as previous. use v5.14; # All...

Android Project Dependency Needs Different Version of Android Gradle Plugin

android,gradle,version,build-tools

We experienced the same issue. If you change your repository to mavenCentral() from jcenter(), it should resolve the issue. Its also possible to have both repositories.

C system call msgsnd(): invalid argument error on certain compiler versions

c,gcc,version,syscall

Okay so turns out that my verion of gcc (or the linux kernel or whatever software component I was using) automatically creates the key file at ftok (note that "key" did not exist on my system). The college server however did not. So key_t key = ftok("argv[0]", 1); or key_t...

How to know what C++ Builder needed to open existing project

version,project,c++builder

cbproj files are evidence of a newer version, definitely not C++Builder 6 or older. You can check the version within the cbproj file, the first lines include a ProjectVersion field that will tell you more or less what version was used. For instance: C++Builder XE5: 15.3. C++Builder 2010: 12.0. C++Builder...

Fatal error: Call to undefined function password_verify() (with godaddy)

php,function,passwords,version,password-hash

I found this library that someone created which appears to be exactly that (PHP 5.5 password functions for lower PHP versions) https://github.com/Antnee/phpPasswordHashingLib...

Maven version custom upgrading

maven,plugins,version,maven-release-plugin

There are two ways to accomplish your needs. Either you use the maven-release-plugin which means in other words to create a relealse including creation of tag in your version control which might not be what you like to do. Or go via the versions-maven-plugin by which it can be simply...

Embed laravel application version using git describe

git,version,laravel-5

For my application, I have an "About" dialog that the user can access via a menu. The "About" dialog displays the current version number and the short git commit hash. I store my version information in my .env file in two values: APP_VERSION and APP_HASH. These values are rendered into...

Does it make sense not to reset last digit in version number

java,version,versioning,product

There is no problem skipping version numbers (or having complex version numbering) as long as you have internal logic that your whole company understands and abides by. (If things don't change... Microsoft is going to be skipping version 9 of it's windows systems.) [major].[minor].[release].[build] is used quite a bit by...

What is the best stategy to update modules version in multi-module Maven project

java,maven,version,multi-module,strategy

Personally I will go absolutely for your strategy 1. That's the strategy is used in a company I work for. Your side effect that you mention as HDD space or upgrading module versions which are not required to be upgraded are minor issues compares to "versions zoo". Only I will...

Can I Write Version Information API For Both CHAR And WCHAR?

winapi,character-encoding,version

Since you are using TCHAR, use std:::basic_string<TCHAR> instead of std::wstring to match. Otherwise, drop TCHAR and use WCHAR for everything.

Closing a modal dialog in GMS 2.x and GMS 1.x?

dialog,version,dm-script

Presumably your goal is to have a modal 'choice' of multiple actions. A code which would do that would be class CThreeButtonDialog:UIFrame { TagGroup DLG,DLGitems TagGroup radio,radioItems object Init( object self, string title, string prompt, string s1, string s2, string s3 ) { DLG = DLGCreateDialog(title,DLGitems) DLGitems.DLGAddElement( DLGCreateLabel(prompt) ) radio...

“Redundant binary upload” version 1.0.1 for initial release?

objective-c,app-store,apple,version

You can submit 1.0. Build version in xcode != Version of you app. You specify it in itunesconnect. Deleting app. You need to submit it for review once it is reviewed than you can delete it. Below is apple's documentation for deleting app. For redundant binary just submit a new...

Disadvantages of ignoring Maven version number rules

java,maven,version,versioning

Following the maven version number rules is fundamental when you want to use any maven functionality that requires version "sorting", for example, ranges. If you follow the format <MajorVersion [> . <MinorVersion [> . <IncrementalVersion ] ] [> - <BuildNumber | Qualifier ]> Then maven will sort MajorVersion as a...

Upload Android application with different version code but same version name

android,google-play,version,publish

Yes. Version Codes are unique identifiers to the different versions of your application and they must be different. Version Codes must be whole numbers too. On the other hand, Version Name is what is shown in the Google Play Store to the users and it can be the same.

trouble reading shape file from QGIS 2.6

version,shape,raster,qgis

i think your answer is here: http://gis.stackexchange.com/questions/78618/loading-a-multipoint-shapefile-in-r It's a fact, that readOGR does not handle multipoints (for whatever reasons). You may insist on your file not being multipoint, but that doesn't help, cause readOGR identifies it as such ("Incompatible geometry: 4"). 4 is the index number for multipoint in OGR....

arrays.aslist adding derived class java

java,arrays,list,version

That's right. You must be compiling on Java 8 while your friend is on Java 7. In Java 7, the type of of the List returned by Arrays.asList(new C(), new D()); would be inferred as List<B> and a List<B> cannot be assigned to a List<A>. In Java 8, with some...

How does Windows obtain and display My Computer System Version

windows,version,system

The Windows kernel stores its version as a global variable. On creation of a new process, the OS version is copied into the process' Process Environment Block (which is accessible from user mode). The process gets the version by calling the WINAPI GetVersion(), which retrieves the version simply by reading...

iOS - comparing app versions

ios,objective-c,version,string-comparison,info.plist

You can compare numeric version numbers using natural sort order (which will consider 1.10 to come after 1.1, unlike lexicographic sort order) as follows: BOOL isNewer = ([currentVersion compare:oldVersion options:NSNumericSearch] == NSOrderedDescending) ...

What version of GWT is a site using?

gwt,version

AFAIK: there is no simple way of getting the GWT version from a deployed GWT app. However you can have a look at the Chrome Extension "Library Detector" which supports GWT (also the version). I tested it and at least for normal deployed GWT apps it works. The code for...

How to find playframework version of a project?

scala,playframework,version

In plugins.sbt: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.8") My version is 2.3.8....