Posts

cloudfoundry - Pushing ruby app to V2 cloud - Error, no such file ruby_versions.yml -

(cross-post on) I have a hand-made V2 installation for which I'm trying to push a Ruby app correctly to identify this Ruby app because it reports that it is "installing Ruby." But then the following is thrown: Installing Ruby. /usr/lib/ruby/1.9.1/psych.rb:297: 'Start': There is no such file or directory - ruby_versions.yml at / usr / lib / ruby ​​/ 1.9.1 / psych (Errno :: ENOENT ) .rb: 297: / home / cdavisafc / cloud-fabric / dea_ng / buildpacks / vendor / ruby ​​/ lib /usr/lib/ruby/1.9.1/psych.rb297:in_load_file from 'open' in ' `/language_pack/ruby.rb:192:in block ruby_versions (2 levels) /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/lib/language_pack/ruby.rb: 190: from in` chdir / usr / lib / ruby ​​/ 1.9.1 / tmpdir.rb from '' the /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/lib/language_pack/ruby.rb:190:in block ruby_versions': 83: `/ home / cdavisafc / cloud-clothes / dea_ng 'ruby_versions / home...

javascript - Stuttering on mouseout of moved image element -

Actually, when hovering over an image, I want to move the image slightly more then mouseout, return the image Original Place I have a version of this code that works to accomplish this task, but if the "mouse" is a bit of the "here and there" effect, then the user was moving the mouse from that image Where the image was originally located. ----- | | ----- | Img | | | | | | Img | ==> ----- | | In the above diagram, when the mouse jumps over the image, it is pulled up to 2 units. On mouseout, the image returns to the original state. My code works, but when the mouse is moved to an empty area (for example, X), the code thinks that it is hovering over the image again and then the image is returned to 2 units It is brought about by hovering the mouse over the area marked upwards, it creates a kind of rattling effect. I have tried various methods (such as using animate (), adding / removing a wrapper div using the settimeout, etc.) but they all produce the sam...

javascript - PhoneGap Build: how to open external url in device browser on Android? -

The external URL does not open in the phone's browser in my PhoneGap Android application. I'm using PhoneGap build 2.3.0. According to I used the target_system: window.open ('http://www.myurl.nl', '_system'); I have my config.xml: & Lt; Origin of access = "*" Browser only = "true" /> But still open the webwain in my app I How to solve it? When you want to keep, the answer is no, using the PhoneGap build, but on my machine Cordova 2.5.0 window.open ('http://www.myurl.nl', '_system') was set up by setting up a development environment for Cordova (PhoneGap) and compiling the app locally. ) In; does the right thing, it will open links in the system's browser. So my advice is to stop using the PhoneGap build and start compiling your app locally.

php - preg_split() help, properly formatted regular expression -

I am very weak in regular expressions I want to split these letters on: Location "" The hyphen " Underscore" _ " I have it: preg_split ('/ \ + | - | \ | | _ /', $ string], .. I suspect this is not correct - I like some advice on the "+" sign. preg_split ('/ [+ \ s _-] /', $ string); should work for you Unlike the squares, the characters are creating a character square. Note - It is sometimes important that - , So I keep it always kept safe.

excel - VBA - Get Selected value of a Combobox -

I have thousands of cells in the worksheet that are comboboxes, the user will select at random and populate it. How do I get the selected ComboBox value? Is there a way to speed up a function (ie an event handler) when ComboxBoxes has been selected? Text after "div class =" itemprop = "text"> If you are working with the data validation list, you can use the Worksheet_Change event . Right click on the sheet with data validation and select View code. Then type: range as private sub Worksheet_Change (ByVal Target) MsgBox Target.Value End Sub You can work with ActiveX comboboxes To hook up events, this is a bit more complex. First of all, you need to create a custom class module, create a class module named CComboEvent and put this code in it. public WithEvents cbx MSForms.ComboBox Private Sub Cbx_Change () MsgBox Cbx.Value End as Sub Next, create a class module that CCOOVOVENT says it will hold all our CComboEvent instances and keep them in the...

Java reflection superClass loaded by hibernate problems -

I am trying to print in the console, which, by the name of the name of a superclass, which is required for later computing A simple POJO is working fine but when the class is first loaded by hibernation, I can not find a super class in the area of ​​the child and when I print the name of the parent (when it happens to be in hibernation , So I'm getting the following) [Handler, _Filter_signature, serialWARUID, methods ] This is my code public static zero main String [] args) {fixing models clause = new fixing models (); Hibernate Handler Handler = New Hibernate Handler (true); Student student = (student) handler.jet session (). Load (student.jagger, 1); Student new student = new student (); System.out.println ("Printing class loaded by Humbernet"); Clazz.showFieldsFromSuperClass (student); // Show Fields of the Child and Parent Incorrect Systems. Out.printline ("------------------------- -------------------- ----- "); System.out.println ("Printin...

mysql - #1064 - You have an error in your SQL syntax; right syntax to use near 'block'? -

मुझे इस प्रश्न के लिए मदद की ज़रूरत है: update ibf_posts set post = replace (post, '& Lt; div & gt; & lt; div शैली = "पृष्ठभूमि: # बी 7 ई 5 सीई; सीमा: 1px बिंदीदार # 000; सीमा नीचे: 0; सीमा-बायां: 4 पीएक्स ठोस # 42 9 ई 6 एफ; रंग: # 000; फ़ॉन्ट-वजन: बोल्ड; फ़ॉन्ट -आकार: 10px; मार्जिन: 8px ऑटो 0 ऑटो; पैडिंग: 3px; "& gt; स्पॉइलर & lt; a href =" जावास्क्रिप्ट: शून्य (0); "ऑनक्लिक =" जावास्क्रिप्ट: if (parentNode.parentNode.getElementsByTagName ('div' ) [1] .style.display == 'ब्लॉक') {parentNode.parentNode.getElementsByTagName ('div') [1] .style.display = 'none'; this.innerHTML = '- यहां देखने के लिए यहां क्लिक करें - ';} अन्य (parentNode.parentNode.getElementsByTagName (' div ') [1] .style.display =' block '; this.innerHTML =' - छुपाने के लिए यहां क्लिक करें - ';} "& gt; - यहां क्लिक करें देखने के लिए - & lt; / a & gt; & lt; / div & gt; & gt; ...