Posts

apache - multiple RewriteCond or multiple RewriteRules, which is more efficient? -

क्या अधिक कुशल होगा? एक RewriteRule के साथ [OR] सूची RewriteCond : RewriteCond% {QUERY_STRING} ^) के साथ आईडी = 8 [3- 9] $ [या] रीराइट कंडोम% {QUERY_STRING} ^ आईडी = 9 [0-2] $ [OR] पुनर्लेखन% {QUERY_STRING} ^ आईडी = 35 $ पुनर्लेखन नियम ^ index \ .php $ / go- यहाँ/? [एल, आर = 301, एनसी] या एकाधिक पुनर्लेख नियम , प्रत्येक एक RewriteCond : पुनर्लेखन% {QUERY_STRING} ^ आईडी = 8 [3- 9] $ पुनर्लेखन नियम ^ .php $ / go-here /? [एल, आर = 301, एनसी] रीराइटकंड% {QUERY_STRING} ^ आईडी = 9 [0-2] $ रीरेमिट नियम ^ index \ .php $ / go-here /? [एल, आर = 301, एनसी] रीराइटकंड% {QUERY_STRING} ^ आईडी = 35 $ पुनर्लेखन नियम ^ .php $ / go-here /? [एल, आर = 301, एनसी] मैं पहले विकल्प की ओर झुका रहा हूं क्योंकि कम लाइनें हैं, लेकिन संभवतः क्योंकि तर्क अधिक जटिल है, दक्षता खो जाती है? एक बार आप फिर से लिखना लॉगिंग को चालू करने पर ध्यान देंगे, यह एक RewriteRule को पहले लागू किया जाता है, तो अगर वह पैटर्न यूआरआई से मेल खाता होता है, तो RewriteCond स्थितियों की जांच की जाती है इसका म...

asp.net - Hidden set in the view but null in controller -

I try to get a value in my controller, it is set in the view (in the hidden area), but Once the posting area is zero, my model: public partial class customer {public full customer ID {receive; Set; } Public String CompanyName {get; Set; } Public int? Customer Adwords Id {Received; Set; } [Foreign Key ("Customer IDS")] {Receive Public Virtual Customer Subscriber Customer Record; Set; } Public int? Receive customer edderbid { Set; } [External ("Customer AddressBilling ID")] Public Virtual Customer Updating Consumer OfficerBilling {Receive; Set; } Public int? Receive Customer Bank ID { Set; } [Foreign Key ("Customer BankID")] Public Virtual Customer Bank Customer Bank {Receipt; Set; } Public virtual iconging & lt; Customer Link & gt; Receive customer link { Set; }} My view: @using (Html.BeginForm ()) {@ Html.AntiForgeryToken () & lt; div class = "form-horizontal" & gt; & Lt; Hour / & gt; @html Validity valid (tru...

Schema Name Sql server from java jdbc connection -

मैं jdbc conjunction का उपयोग करके जावा से संग्रहीत कार्यविधियाँ कॉल करने की कोशिश कर रहा हूं एसक्यूएल सर्वर से कनेक्ट करने के लिए स्ट्रिंग संग्रहीतProcd = "{call TEST_PROC (?,?)}"; कॉलबल स्टेटमेंट = डीबीकनेक्शन। प्रीपेयरकॉल (संग्रहीतप्रोक्ड); कॉलबल स्टेटेट .सेटआईंट (1, आईडी); कॉलबल स्टाटामेंट। सेटस्ट्रिंग (2, इकाई का नाम); callableStatement.execute (); callableStatement.close (); समस्या यह है कि मैं JDBC url में स्कीमा नाम सेट नहीं कर सकता, यह ठीक काम करता है अगर मेरी संग्रहीत procuders डिफ़ॉल्ट स्कीमा में हैं जो कि dbo लेकिन क्या हुआ अगर मेरी संग्रहीत प्रक्रियाएं अन्य स्कीमा में हों? किसी भी एसक्यूएल संसाधन के रूप में आप प्रक्रिया का नाम उपसर्ग कर सकते हैं स्कीमा नाम के साथ: "{call schema.TEST_PROC (?,?)}"

php - My code is not working properly when I attempt to login -

This is my first time that I am using mysqulli, maybe I made a mistake. Well, I have successfully inserted all the data from the MySQL database for the registration purpose, including the following password hash. $ Random_salt = hash for password ('sha512', uniqid (openssl_random_sese_bytes (16), true)); $ Pass = hash ('sha512', $ password. $ Random_salt); Well, when I login with the following code it is showing my custom error message "Email address or password is not correct" & lt ;? Php ob_start (); Session_start (); Require_once ("include / config.php"); $ Email = inputvalid ($ _ POST ['email']); $ Password = inputvalid ($ _ POST ['password']); // $ random_salt = hash ('sha512', uniqid (openssl_random_pseudo_bytes (16), true)); // $ random_salt = hash ('sha512', uniqid (mt_rand (1, mt_getrandmax ()), true)); // $ pass = hash ('sha512', $ password. $ Random_salt); $ Salt = mysqli_query ($ mys...

python - How to hide an ActionButton in Kivy? -

I am trying to modify the visibility of the current view of the action button (using the screen manager). I could not find the visible property or something that could just toggle visibility (neither for actionbutton nor for general widgets) Suggestions to change the texture of the button, but I do not want to believe that on such a hack to accomplish such a simple task, besides, the background of my app will be variable . Regardless of its unnecessary complexity, I modified the widget to work in my case (Actionbars and Actionbuttons), so I cleared the widget from ActionView and then adding ActionButton I tried to collect both a weak and self member, I got the following error with both: widget expression: , it is already used by parents and lt; 0x7fcd3fe22870 & gt; on kivy.uix.actionbar.ActionView object Any ideas will be greatly appreciated. I am working with Dev version, but it does not work with 1.8. Edit I tried the following code: & lt; AppActionBar ...

regex - How to remove the infront regular expression? -

'http' या 'https' और 'www' को कैसे दूर करें, फिर 'google.com' पर छोड़ दिया जाए, '? no_http_URL = regexp (domain_URL,' [az] +: // ',' match ',' one ') उपरोक्त कोड मुझे परिणाम के लिए 'http' लौटाओ, जो मेरे उत्तर में उलटा है। no_http_URL = Regexp ('http://google.com', 'https ?: // (?: Www।।)? (। *)', 'टोकन', 'एक बार') no_http_URL = regexp ('http: // www .google.com ',' https?: // (?: Www।)? (। *) ',' टोकन ',' एक बार ') no_http_URL = regexp (' https://google.com ',' https ?: // (?: Www।।)? (। *) ',' टोकन ',' एक बार ') no_http_URL = regexp (' https: //www.google.com ',' https?: // (? : Www।।)? (। *) ',' टोकन ',' एक बार ') no_http_URL के ऊपर अभिव्यक्ति में 1x1 सेल सरणी । यदि आपको स्ट्रिंग मान तक पहुंच की आवश्यकता है जिसे आपको निम्न निष्पादित करने की आवश्यकता है no_http_URL = ...

java - "Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart." issue in adt ( v22.6.2) -

I get this error in my ATT Eclipse I am using the updated version of Java. Please help me solve this issue. I found the same bug in eclipse at a time. This happened to me after a Windows update. What I did to solve my problem (again) "Full control" / "Admin read" permissions of the Eclipse folder "C: \ eclipse-jee-kpler-SR2-win32-x86_64" (Right click, then properties -> safety tab, and at least edit your user there - with full control) Windows Update has changed this for some reasons .