version

curl response says “HTTP version not supported”, error 505

心已入冬 提交于 2019-12-01 03:24:38
问题 I made request using curl, the response says that HTTP Version not supported, error 505. What are the steps to make HTTP Version supported. After googling i get, the i should use curl --http2.0 to make it work, but my curl version is not supporting that option, as it is added in curl 7.33, whereas i am using curl with version: curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 Now, should i upgrade my curl or is there any other way to make

Testing uploaded app, other than default version

混江龙づ霸主 提交于 2019-12-01 03:04:27
问题 Can you test an uploaded version of an app, other than the "default" version? I'm told it can be: WoLpH Google App Engine version numbers? But I can't find it in the dashboard or the doco. 回答1: If the version of app is 2 and your app URL is appname.appspot.com then URL 2.appname.appspot.com will give you access to version 2 of your app. 回答2: As Vishal already said correctly (+1), you can prepend the version identifier to your url, so if your version is "version", the URL will be version

wrong version keystore when doing https call

北慕城南 提交于 2019-12-01 03:03:06
Hello fellow android coders. I'm trying to do a https secure call from my android code. The call goes fine on the emulator but on the actual Samsung Galaxy device I get a SSL error. I used crazy bobs method for handling the cetificate. Here is crazy bobs link: http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html . Problem is I get an error: "wrong version of keystore" inside the custom SSLSocketFactory object. Any suggestions on what to do to fix this? Thanks. Did you create your keystore with the Bouncy Castle format? All these 3 parameters are mandatory when creating the

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

大兔子大兔子 提交于 2019-12-01 02:50:52
What's the easiest way to check for the SQL Server Edition and Version using powershell? Invoke-Sqlcmd -Query "SELECT @@VERSION;" -QueryTimeout 3 http://msdn.microsoft.com/en-us/library/cc281847.aspx 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 Names\SQL').$i (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\$p\Setup").Edition (Get

Run test in phpunit with specific php version

泪湿孤枕 提交于 2019-12-01 01:27:59
问题 I have installed multiple PHP versions on my Mac and want to run unit-tests against a specific PHP version (or against multipls versions) Here's the php versions I have: $ php --version Output: PHP 5.4.23 ... $ /Applications/MAMP/bin/php/php5.2.17/bin/php --version Output: PHP 5.2.17 ... My test case looks like this: function test_php_version() { $actual = phpversion(); $expected = '5.2.17'; $this->assertEquals( $expected, $actual, 'Wrong PHP version!' ); } When I run the test I get this

How Do I Detect the Adobe Acrobat Version Installed in Firefox via JavaScript

人走茶凉 提交于 2019-12-01 00:07:35
I know this can be done in IE by creating an ActiveX object, but how do I do it in FF. The navigator.plugins['Adobe Acrobat'] object lets me know if it's installed or not, but it doesn't contain the version number. Any ideas? navigator.plugins[n].name where n is the index of the Acrobat plugin is supposed have the version number in it. Unfortunately, starting with Adobe Reader 8, they changed the name to "Adobe PDF Plug-In for Firefox and Netscape" , with no version information. So, if this is the name you've detected at least Reader 8, but can't tell versions 8 from 9. Also, make sure you

Database versioning

蹲街弑〆低调 提交于 2019-11-30 23:42:16
I have made few projects (CMS and EC system) that required to have some data versioned. Usually I come with that kind of schema +--------------+ + foobar + +--------------+ + foobar_id + + version + +--------------+ it worked great but I am wondering if there is a better to way do it. The main problem with that solution you have to always use subquery to get the latest version. i.e.: SELECT * FROM foobar WHERE foobar_id = 2 and version = (SELECT MAX(version) FROM foobar f2 WHERE f2 = 2) This render most of the queries more complicate and also have some performance drawbacks. So it would be

How to show application version in VS.NET Deployment Project?

蓝咒 提交于 2019-11-30 21:09:23
I have set up a Deployment Project for my application. The problem is that I want to show application version (eg. MyApplication 1.2.3.1) during installation so the user can see the version before installing. The only way I can think of is to modify the WelcomeText in Welcome dialog. Is there an easier or more elegant way to achieve this? You should be able to use the Windows Installer ProductVersion property for this. If you change the Welcome dialog's WelcomeText property to: The installer will guide you through the steps required to install [ProductName] [ProductVersion] on your computer.

CSC version at computer

℡╲_俬逩灬. 提交于 2019-11-30 18:42:48
问题 I making fast changes in my code via Visual Studio Code. As you know it doesn't have build-in compiler so I using CSC via CMD. It's working good only for ( code <= C# 4.6 & code <= .NET 4.5 ) because that version of CSC I have. And there is problem because I writing in new C# 6.0 and .NET 4.6 and can't compile via CSC. I have installed VS 2015 with .NET 4.6 and compilie via VS 2015 working good. I can't find CSC in version witch support CSC in version .NET 4.6 in my computer. I have .NET 4.6

Strange issue in Combining Audio Files and playing in different API versions

我与影子孤独终老i 提交于 2019-11-30 14:57:14
问题 All , I am using Media Recorder for Recording Audio . Case 1: If i use Android Version 2.2 installed devices , my recorded audio combined and playing well. Case 2: If i use it in Android 1.6 installed devices , i am not able to play the combined audio file. It is playing only the very first recorded audio and next recorded audio files keep empty no sound . Also i am not getting any error in Logcat . I used following code for recording audio : mRecorder = new MediaRecorder(); mRecorder