Posts

git - cannot run hooks/post-update: No such file or directory -

Thx For this great article I have managed to manage a remote server under GIT control. Unfortunately I had to change the server Now after completing all the steps in the tutorial and running Git Push Original Master I: Error: Can not run hook / reply update: Directory to any such file or root@myproject.com: ../ver / Git / Myproject.git I have tried many more variations and I replaced #! / Bin / sh #! After reading / bin / bash Anyway as far as I checked (many times) the path is correct I am thinking Why do so say:. ../ instead of: / var but I do not need any idea where this comes from Any suggestions on how to make it work again To see if this problem is: cat -v / path / file and if this problem is If you only can be sorted by sed -i are - E / \ r \ 'g' / path / file \ / code>

mysql - Why the following PHP code is not inserting the values in the database? -

I want to include values ​​of a form in the database table named Company. But this program repeatedly tells me that my query has not been executed. I know why this is ?? I have put all the values ​​of the array in the insert and by this I threw the array and gave it name as the new one, so that it can be in a form being put into the database. But this does not work for me Please tell me what is the problem here? & lt ;? Php $ host = "localhost"; $ Name = "root"; $ Password = ""; $ Db = "shopping"; $ Con = mysqli_connect ($ host, $ name, $ password, $ db); $ Insert = array (); $ Newarray = array (); If (mysqli_connect_errno ()) {echo ("can not connect to databse". Mysqli_connect_errno ()); Go out(); } And {if ($ _ server ['REQUEST_METHOD'] == 'POST') {foreach ($ _ POST $ value) {if ($ value == $ _POST ['submit']) {break; } And {array_push ($ global ['insert'], $ value); }} $ Newarray = implo...

javascript - Replace image in DIV on Phonegap -

I write an application in PhoneGap and I need to create a function: Play button, An image appears in the DIV and after 3 seconds it automatically turns into another image. & lt; Div id = "imgtrening" & gt; & Lt; div class = "cw1a" style = "display: none" & gt; & Lt; Img style = "width: 100%"; Src = "picture / cw1a.jpg" alt = "" & gt; & Lt; / Div & gt; & Lt; div class = "cw1b" style = "display: none" & gt; & Lt; Img style = "width: 100%"; Src = "picture / cw1b.jpg" alt = "" & gt; & Lt; / Div & gt; & Lt; / Div & gt; and after clicking on the button id = "play": document.getElementById ('play'). Onclick = function () {$ ('.cw1a'). CSS ('display', 'block') sleep (3000); $ ('.cw1a'). CSS ('display', 'none') $ ('.cw1b') CSS ('displ...

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver -

इस सवाल का पहले से ही एक उत्तर है: 13 उत्तर मुझे मिल रहा है Java.lang.ClassNotFoundException: com.mysql.jdbc.Driver मेरे डायनेमिक वेब अनुप्रयोग में भले ही मैंने eclipse में mysql connector के लिए सही तरीके से निर्माण पथ निर्धारित किया है। मुझे पूरा यकीन है कि मैंने सही तरीके से निर्मित पथ सेट किया है। मैंने यह जांच कर दोगुनी कर दी मैं स्टैकहोवरफ्लो में इतने सारे समान प्रश्नों के माध्यम से भाग गया वे सभी सुझाव देते हैं कि ग्रहण में पथ सेट करें मेरा प्रश्न यह है, क्या कोई अन्य तरीका है जो java.lang.ClassNotFoundException: com.mysql.jdbc.Driver त्रुटि उत्पन्न कर सकता है? यदि हां, तो उसे कैसे हल करें? धन्यवाद! अपने mysql-connector-java.jar फ़ाइल को अंदर रखें वेब-आईएनएफ फ़ोल्डर - & gt; lib और इसे कक्षापथ में जोड़ें और उसके बाद अपने युद्ध को निर्यात करें और तैनात करें। यह दस्तावेज़ीकरण - कहते हैं इसलिए , एक वेब अनुप्रयोग, क्लास या संसाधन लोडिंग के परिप्रेक्ष्य से निम्न खजाने में इस क्रम में दिखता है: अपने जेवीएम के बूटस्ट्रैप वर्ग / WEB - अ...

c# - Redirect to a controller's action from another controller while action name is same in both controllers -

I have two controller controllers 1 and 2 controller. I am redirecting to an action name of 1 controller controller 1 from Controller Controller 1, whereas the controller controller 2 has an action name in Action1. Therefore, when I @ html.ActionLink ("Cancel", "Action 1", "Controller 1", new {id = "btnCancel", @class = "btn BTn-LG BTN -Partial BTN-Block flares "}) This redirects the action 1 action of the controller 2. Ah, you can help me at this That helps you post the actual code. You are actually using: public static MvcHtmlString ActionLink (this HtmlHelper html helper, string link text, string action name, object path value, object html accवटates) you want: public static MvcHtmlString ActionLink (this HtmlHelper html helper, string link text, string action name, string control name, object path value, object htmlAttributes) Basically, add an empty object before your html properties . You will see t...

mysql - Query the records that the number of it is equal to the number of it in another table -

उदाहरण के लिए, movieCopy (cp_id, movie_id), किराये (cp_id, दिनांक) कुछ प्रतियां और प्रतियां अद्वितीय आईडी है रेंटल की टेबल मूवी की प्रतिलिपि के किराए के रिकॉर्ड का प्रतिनिधित्व करती है (केवल एक बार किराए पर ध्यान न दें)। मैं यह पूछना चाहता हूं कि फिल्म किसने किराए पर ली है, इसका मतलब है कि किसी फिल्म की प्रतिलिपि की संख्या किराए पर होने वाले संभावित सीपी_आईड की संख्या के बराबर है MYSQL डाटाबेस मूवी `सीपी_आईडी फिल्म_आईडी किराये की सीपी_आईडी 101 101 101 101 102 102 1 99 3 103 1 103 2001 104 2 104 2002 105 2 106 2002 106 3` मैं फिल्म_आईड, 1 और 3 का चयन करना चाहता हूं आपके द्वारा प्रदान किए गए कॉलम के आधार पर, यह चाहिए काम: मूवी से मूवी की फिल्म चुनें जहां मूवी_आईडी मौजूद नहीं है (मूवी से मूवी का चयन करें जहां सीपी_आईडी मौजूद नहीं है (अलग सीपी_आईडी चुनें किराए पर से दिनांक 1 और तारीख 2 के बीच की तिथि) दिनांक 1 और तिथि 2 बस धारकों के स्थान पर हैं, यदि आप उन्हें फ़िल्टर करना चाहते हैं।

ios - Ternary operator with nothing in 'if' condition -

निम्न कोड क्या करता है? वापस obj? : [NSNull नल]; टर्नरी आपरेशनों की मेरी समझ से यह समतुल्य होगा: अगर (! ओबीजे) वापसी [एनएसनल की नल]; लेकिन क्या हो जाता है यदि (obj) ? क्या यह अभी भी वापसी [NSNull null] ? कोड के माध्यम से गिरता है ... रिटर्न एफू? : बार; उसी मान को वापस लाएगा ... रिटर्न एफू? Foo: बार; अंतर यह है कि पहला तरीका केवल foo मान का एक बार निरीक्षण करता है। कई मामलों में पहली बार इसका उपयोग करना बेहतर होता है। उदाहरण के लिए, एक ऑब्जेक्ट बना रहा है ... // यह दो ऑब्जेक्ट्स बनायेगा, चेक करने के लिए एक और दूसरा रिटर्न वापस [MyObject objectWithSomeParam: param]? [MyObject objectWithSomeParam: परम]: बार; या एक महँगा फ़ंक्शन चल रहा है ... // महंगी फ़ंक्शन यहां दो बार वापस आ जाता है [आत्मसम्प्रभावपूर्ण फ़ंक्शन]? [स्वयं कुछ एक्सपेन्सिव फंक्शन]: बार; इन दोनों का उपयोग करने से लाभ होगा रिटर्न एफू?: बार; अनिवार्य रूप से, यदि सत्यापन ऑब्जेक्ट सही के लिए रिटर्न ऑब्जेक्ट के समान है तो छोटा संस्करण का उपयोग करें।