Windows: Command line to read version info of an executable file?

wmic datafile where name=”C:\\Windows\\System32\\msiexec.exe” get Version /value You can use wmic to do it. And you can wrap it into a batch file @echo off setlocal enableextensions set “file=%~1” if not defined file goto :eof if not exist “%file%” goto :eof set “vers=” FOR /F “tokens=2 delims==” %%a in (‘ wmic datafile where name^=”%file:\=\\%” get … Read more

Error: The specified language version is too high. The highest supported language version is 2.8. in android studio how can I fix it?

Why? This happens, because the your specified language version is higher than the one declared in the .dart_tool directory (specifically in the package_config.json file). Solution You can either delete the folder manually or let Flutter tools do it for you. Run flutter clean from the terminal or, if using Android Studio, go to Tools -> … Read more

How to sort semantic versions in bash?

Well, we could trick sort -V by adding a dummy character at the end of the string for lines that do not contain a hyphen: $ echo “$versions” | sed ‘/-/!{s/$/_/}’ | sort -V | sed ‘s/_$//’ v1.4.0-alpha v1.4.0-alpha1 v1.4.0-patch v1.4.0-patch2 v1.4.0-patch9 v1.4.0-patch10 v1.4.0 v1.5.0-alpha v1.5.0-alpha1 v1.5.0-alpha2 v1.5.0-patch v1.5.0-patch1 v1.5.0 Underscore lexically sorts after hyphen. … Read more

What are the gcc predefined macros for the compiler’s version number?

From the gnu cpp manual… __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__ These macros are defined by all GNU compilers that use the C preprocessor: C, C++, Objective-C and Fortran. Their values are the major version, minor version, and patch level of the compiler, as integer constants. For example, GCC 3.2.1 will define __GNUC__ to 3, __GNUC_MINOR__ to 2, … Read more

Maven “versions” plugin – how to exclude alpha/beta versions from response?

You can configure the versions plugin like this: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>versions-maven-plugin</artifactId> <version>2.1</version> <configuration> <rulesUri>someUrl</rulesUri> </configuration> </plugin> someUrl can also be a file URL. The syntax of the rules file is given in http://www.mojohaus.org/versions-maven-plugin/version-rules.html, it may contain something like this: <ruleset comparisonMethod=”maven” xmlns=”http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd”> <ignoreVersions> <ignoreVersion type=”regex”>.*-beta.</ignoreVersion> <ignoreVersion type=”regex”>.*_ALPHA</ignoreVersion> </ignoreVersions> </ruleset>

What does ‘Unsupported major.minor version 52.0’ mean, and how do I fix it? [duplicate]

You don’t need to change the compliance level here, or rather, you should but that’s not the issue. The code compliance ensures your code is compatible with a given Java version. For instance, if you have a code compliance targeting Java 6, you can’t use Java 7’s or 8’s new syntax features (e.g. the diamond, … Read more

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