version

How to change version string of the kernel?

百般思念 提交于 2020-01-21 04:30:33
问题 I'm very new to Linux and very new to building/compiling my own kernel. For starters, I'm just trying to figure out how to change the version string of my kernel. For instance, when I do uname -a, it prints out "Linux localhost.localdomain 3.11.10-100.fc18.i686". I'd like to customize that, but I'm not sure what file to edit. I know it must be some file in my kernel directory, but I've been going through them with no luck. Any help would be great! 回答1: At the top of the top-level Makefile,

How do I check for the SQL Server Version using Powershell?

梦想的初衷 提交于 2020-01-21 04:11:05
问题 What's the easiest way to check for the SQL Server Edition and Version using powershell? 回答1: Invoke-Sqlcmd -Query "SELECT @@VERSION;" -QueryTimeout 3 http://msdn.microsoft.com/en-us/library/cc281847.aspx 回答2: Just an option using the registry, I have found it can be quicker on some of my systems: $inst = (get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server').InstalledInstances foreach ($i in $inst) { $p = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance

How does Maven resolve version conflicts of transitive dependencies ? nearest-wins strategy

白昼怎懂夜的黑 提交于 2020-01-21 02:36:08
问题 I just finally got used to not having any Used undeclared or Unused declared dependencies in my projects. Although it is very hard to track Unused declared runtime/test dependencies that are listed in dependency:analyze... One just must write comments to them in pom.xml or otherwise manage them to know that they are needed for testing or runtime. But the way of resolving version conflict is still unclear to me. Regarding transitive dependencies. How does the nearest-wins strategy work exactly

How to sort versioning info

巧了我就是萌 提交于 2020-01-21 01:03:08
问题 What's the right way, to handle versioning indicators like 2.4 or 2.4.0.9 etc. to get the ability of sorting versions. PHP says, that 1.3.4 is not a valid integer, but also a non-valid number. array('2.4','2.3.4','2.4.0.9') 回答1: PHP has a version_compare function. Use usort to sort it. Like following. :) $a = array('2.4','2.3.4','2.4.0.9'); usort($a, 'version_compare'); 回答2: Or, just use natsort: $array = array('2.4','2.16.6','2.3.4','2.4.0.9'); natsort($array); print_r($array); #Array ( [2]

How to sort versioning info

与世无争的帅哥 提交于 2020-01-21 01:01:07
问题 What's the right way, to handle versioning indicators like 2.4 or 2.4.0.9 etc. to get the ability of sorting versions. PHP says, that 1.3.4 is not a valid integer, but also a non-valid number. array('2.4','2.3.4','2.4.0.9') 回答1: PHP has a version_compare function. Use usort to sort it. Like following. :) $a = array('2.4','2.3.4','2.4.0.9'); usort($a, 'version_compare'); 回答2: Or, just use natsort: $array = array('2.4','2.16.6','2.3.4','2.4.0.9'); natsort($array); print_r($array); #Array ( [2]

How do I retrieve the version of a file from a batch file on Windows Vista?

拟墨画扇 提交于 2020-01-19 05:25:28
问题 Binary files have a version embedded in them - easy to display in Windows Explorer. How can I retrieve that file version, from a batch file? 回答1: and three ways without external tools 1. WMIC WMIC DATAFILE WHERE name="C:\\install.exe" get Version /format:Textvaluelist Pay attention to the double slashes of file name. Ready to use script: @echo off :wmicVersion pathToBinary [variableToSaveTo] setlocal set "item=%~1" set "item=%item:\=\\%" for /f "usebackq delims=" %%a in (`"WMIC DATAFILE WHERE

How do I retrieve the version of a file from a batch file on Windows Vista?

岁酱吖の 提交于 2020-01-19 05:25:05
问题 Binary files have a version embedded in them - easy to display in Windows Explorer. How can I retrieve that file version, from a batch file? 回答1: and three ways without external tools 1. WMIC WMIC DATAFILE WHERE name="C:\\install.exe" get Version /format:Textvaluelist Pay attention to the double slashes of file name. Ready to use script: @echo off :wmicVersion pathToBinary [variableToSaveTo] setlocal set "item=%~1" set "item=%item:\=\\%" for /f "usebackq delims=" %%a in (`"WMIC DATAFILE WHERE

How to detect current JSF-Version?

此生再无相见时 提交于 2020-01-19 00:48:22
问题 I am developing a jsf-webapp and now I need to know what JSF-Version I am using? Where can I look this up? Thanks in advance. 回答1: Programmatically, you mean? You can get it from Package#getImplementationVersion(). String version = FacesContext.class.getPackage().getImplementationVersion(); There are by the way also getImplementationVendor() and getImplementationTitle() methods. You might want to use it as well in order to distinguish the vendor (MyFaces or Mojarra, for example). Or do you

How to detect current JSF-Version?

試著忘記壹切 提交于 2020-01-19 00:43:05
问题 I am developing a jsf-webapp and now I need to know what JSF-Version I am using? Where can I look this up? Thanks in advance. 回答1: Programmatically, you mean? You can get it from Package#getImplementationVersion(). String version = FacesContext.class.getPackage().getImplementationVersion(); There are by the way also getImplementationVendor() and getImplementationTitle() methods. You might want to use it as well in order to distinguish the vendor (MyFaces or Mojarra, for example). Or do you

SVN upgrade working copy

只愿长相守 提交于 2020-01-18 12:25:31
问题 I cannot do a SVN commit. I get this error: org.apache.subversion.javahl.ClientException: The working copy needs to be upgraded svn: Working copy 'C:\.... is too old (format 10, created by Subversion 1.6) How can it be fixed? 回答1: You have to upgrade your subversion client to at least 1.7. With the command line client, you have to manually upgrade your working copy format by issuing the command svn upgrade : Upgrading the Working Copy Subversion 1.7 introduces substantial changes to the