version

Use older version of Rake

做~自己de王妃 提交于 2019-11-29 01:45:46
I have Rake version 0.9.1 but I need to use 0.8.7 for a project, and I'm fairly certain I have both version installed but it always uses 0.9.1 by default. Is there a way to specify which version of Rake to use? I'm trying to run this: rake db:drop db:create db:migrate db:seed and I get this error: You have already activated rake 0.9.1, but your Gemfile requires rake 0.8.7. Consider using bundle exec. You can specify the version of Rake to use, in your Gemfile: gem 'rake', '0.8.7' Though the "error" message you are getting says it all... you need to run: bundle exec rake ... ... in order to use

java.io.IOException: Server returns HTTP response code 505

99封情书 提交于 2019-11-29 01:18:14
I have HTML based queries in my code and one specific kind seems to give rise to IOExceptions upon receiving 505 response from the server. I have looked up the 505 response along with other people who seemed to have similar problems. Apparently 505 stands for HTTP version mismatch, but when I copy the same query URL to any browser (tried firefox, seamonkey and Opera) there seems to be no problem. One of the posts I read suggested that the browsers might automatically handle the version mismatch problem.. I have tried to dig in deeper by using the nice developer tool that comes with Opera, and

What will the version be when I don't specify it in the Maven's pom.xml?

一笑奈何 提交于 2019-11-29 00:55:29
Recently I wrote a project with maven, but I have a question about the version in maven pom.xml. If I write such a dependency <dependency> <groupId>foo</groupId> <artifactId>bar</artifactId> <!--No version here--> </dependency> what will the version be in a simple project, no subproject as a dependency in another project and that project use foo-bar-1.0.0 Part 1. of your question: If you don't specify a version there are various different outcomes: a) you will get an error... [ERROR] The project org.example:myproject:0.5-SNAPSHOT (D:\src\myproject\pom.xml) has 1 error [ERROR] 'dependencies

Which version of OpenGL to use?

不羁的心 提交于 2019-11-29 00:09:04
问题 I currently run a machine that allows me to program in OpenGL 2.1. If I were to make a program, should I use the power of the current OpenGL versions like 3.x/4.x or use 2.1? On a side question: How can I tell what's the highest version of OpenGL my computer can run? On another side question: does only upgrading my video card allow me to program in upgraded versions of OpenGL? 回答1: OpenGL versions (for AMD and NVIDIA GPUs) roughly correspond to levels of hardware. 2.x OpenGL versions are for

attr('defaultValue') is returning undefined using jQuery 1.6.3

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 23:37:42
I have a simple script in jQuery that works perfectly with jQuery 1.5.2 as you can see in this jsFiddle . What is supposed to happen is that when you bring focus to the text field, the default value is removed. And when if you leave the field blank, the original default value is put back in place. http://jsfiddle.net/kHBsD/ However, the same exact code, where only jQuery 1.6.3 is used instead, is not working. (Not working means that the default value remains in the text box until you manually delete it as you can see in this jsFiddle . http://jsfiddle.net/kHBsD/1/ There are no script errors in

How can I get the Git build number and embed it in a file?

▼魔方 西西 提交于 2019-11-28 23:36:35
I want to introduce a versioning constant grabbed from the version in Git. I know how to do this -- in a very hackish way in svn -- any ideas on how to do this with Git? For me, git describe didn't initially give the hashtag. The following did, however: git describe --all --long This results in something of the by kubi described format. Supposing you would only want the last part (hashtag) something like the following would do (saving to version.txt file): git describe --all --long | tr "-" " " | awk '{ print $3 }' > version.txt EDIT : As a friend pointed out to me this can actually be done

how to check the version of jar file?

做~自己de王妃 提交于 2019-11-28 22:12:22
I am currently working on a J2ME polish application, just enhancing it. I am finding difficulties to get the exact version of the jar file. Is there any way to find the version of the jar file for the imports done in the class? I mean if you have some thing, import x.y.z; can we know the version of the jar x.y package belongs to? Vivek Decompress the JAR file and look for the manifest file ( META-INF\MANIFEST.MF ). The manifest file of JAR file might contain a version number (but not always a version is specified). You need to unzip it and check its META-INF/MANIFEST.MF file, e.g. unzip -p

Grunt plugin for assets versioning

久未见 提交于 2019-11-28 21:20:27
问题 I'm looking for a grunt plugin that will automatically change the references to static assets (js/css) inside an html file like this: <link rel="stylesheet" type="text/css" href="style.css?v=12345678" /> <script src="script.js?v=12345678"></script> I searched at the gruntjs.com/plugins -> "version", but it seems that all of them change the actual version of the files instead of references to them. Am I missing it? Is there a plugin that can perform this task? 回答1: For this I use grunt-filerev

codeigniter 2.0 Fatal error: Class 'Controller' not found in

倖福魔咒の 提交于 2019-11-28 21:14:45
i have download the new codeigniter 2.0 and put my controller,model and view files in the new codeigniter 2.0 installation. but i got this error Fatal error: Class 'Controller' not found in /Applications/MAMP/htdocs/site/application/controllers/forside.php on line 3 What im doing wrong? it works with the old codeigniter version but the new one.. No :S Hope some one can help me out In CodeIgniter 2 your controllers inherit from super class CI_Controller , rather than the super class Controller used in CodeIgniter 1. The same applies to models in CI2 which extend the class CI_Model rather then

What is the difference between Version and 'Runtime Version' in .Net?

强颜欢笑 提交于 2019-11-28 21:01:55
When I open the properties window of one of the referenced dlls in my project in Visual Studio I see a Version and also a runtime version . Actually it is Rhino.Mocks library I am checking. And I see Runtime Version : v2.0.50727 Version : 3.6.0.0 What is the difference? (Does it mean I am not able to use 3.6.0.0 of the Rhino Mocks?) Adam Houldsworth Runtime is the version of the CLR (or .NET framework) the DLL needs (usually as a minimum), version is the DLL's version. So long as you have the minimum runtime installed, it should be usable. However as a general rule it is usually best to select