Posts

PHP: Regex inquiry -

$ regex = '/ [aeiou] * /' क्या वह "एईआईओएयूओ" या केवल "एआआआआआआआआआआआए," "ईईeeee", "आईआईआईआई", आदि (सेट में केवल एक ही अक्षर के शून्य या अधिक)। धन्यवाद चूंकि कोई गंभीर उत्तर नहीं है, इसलिए मैं एक गंभीर उत्तर देता हूं। जब आप इसे पास करते हैं: $ regex = '/ [aeiou] * /' से preg_match या preg_match_all (या कुछ अन्य फ़ंक्शन ), यह किसी भी स्ट्रिंग पर एक मैच की रिपोर्ट करेगा। preg_match , preg_match_all , preg_replace और preg_replace_callback डिफ़ॉल्ट रूप से सभी गैर-अतिव्यापी उपस्ट्रिंग (ओं) मिलेगा जो कि regex से मेल खाते हैं। (अन्य भाषाओं में फ़ंक्शन होते हैं जो संपूर्ण स्ट्रिंग regex से मेल खाता है, जो अलग है)। [aeou] * किसी भी स्वर (अंग्रेजी में), 0 या अधिक बार, लगातार प्रदर्शित हो रहे हैं चूंकि सभी में कोई भी वर्ण ( खाली स्ट्रिंग ) नहीं है, और रिक्त स्ट्रिंग किसी भी स्ट्रिंग में कहीं भी हो सकता है, फिर भी regex मेल खाती है, आपको हमेशा कम से कम एक मैच मिलता है। यह जांचने के लिए कि केवल ...

datetime php fatal error with negative time stamps -

पार्स करने की कोशिश 5 मई 1 9 42 -872726549 डेटाटाइम :: __ कंस्ट्रक्ट () स्थिति 7 (4) पर समय स्ट्रिंग (-872726549) को पार्स करने में असफल: अनपेक्षित चरित्र पहले सभी डेटा के लिए 1 1 1 1970 31 दिसंबर 1 9 6 9 में एक ही त्रुटि है मैं खिड़कियों पर xampp का उपयोग कर रहा हूं, php 5.4 यह त्रुटि को चालू करता है: $ topv = -872726549 ; $ Compar_time = नया दिनांकटाइम ($ टॉप); दस्तावेज़ के अनुसार आपको ऐसा करना चाहिए: $ topv = '1930/08/09'; $ Compar_time = नया दिनांकटाइम ($ टॉप);

machine learning - why classification results using SVM is not good in matlab? -

I have some problem with svm I used svmtrain and svmclassify classification for mass and no mass. I have 40 incorrect positive data and 13 are true positive. When I test it (the data test i have used is = data training) and gives 100% accuracy, but when I test it (data testing i get from data training) data training (tp = 8 FP = 30) and data testing (TP = 5FP = 10). The result gives false data all false positives. Have an idea about this problem? Or because the small number of data testing and training? It is quite normal that independent test sets can perform poorly, which means that your model Clearly stacks because when you get the training data fits, you get 100%. Try adjusting the SVM model parameters, apply data-preprocessing, especially to reduce your fit in standardization training and (hopefully) your independent test data when two accuracy stops, the model will be valid.

java - Populate an object array -

I am currently studying Java and it is not certain how to do it. At this time I am an employee class public class employee {Private Ent Ampid; Private string empName; Private string job; // Constructors; Public employee () {this.empID = 0; This.empName = ""; This.job = ""; } Public Employee (Anti-APID, String Implement, String Job) {this.empID = empID; This.empName = empName; this. Job = Job; } // it happens; Public int getEmpID () {return.empID; } Public string getEmpName () {return.empName; } Public string getJob () {return this .job; } // set; Public Zero SetEpid (Ent APIDID) {this.empID = empID; } Public Zero Set efmp (string empName) {this.empName = empName; } Public Zero SetJob (string job) {this.job = job; } } While in my main I created an object and type of employee of type with the size of 2 and then the number of arrays for entering the user Increase in basic information and then enter another loop to print all information. import java.util...

sql - NSIS Interacting with C# or VB? -

I'm probably looking for a way to talk with NSIS with C # or VB. This idea is to do some validation of the user through a database. (Actually to see if the user exists or not). Since I do not think NSIS can communicate directly with Microsoft SQL but can be C #, what would be the easiest way to go about this? Can call any normal WinAPI (stdcall / cdecl) function in Windows or third-party DLLs. You need to use it to use .NET stuff ...

How can I access these elements using jQuery to add and remove a class on click? -

I have several undocumented lists, which are being dynamically created for the loop. The problem is that I can not just target elements in this ul, it is changing the active class for every one. I am finding it difficult to understand what a brother is, a cousin etc. I have tried some of the closest (), siblings (), past (), find () and some of them different combinations, but this may not seem to work out. Here is the HTML & lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" square = "active button" & gt; Option 1 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" square = "button" & gt; Option 2 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" square = "button" & gt; Option 3 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" square = "button...

javascript - removeEventListener with Unique Anonymous Function -

I have an object that generates HTML elements that are also associated with an array of objects, and we It says that we have one example of this as it creates this element, it provides the following event listener to a nested part of the element (class uploading). Now the event listener must call the method of removing the example of the object that it was created, with the value of it I assigned to my creation. Because the events are under the window, for example an unknown function must be passed along with the I value. This is why it provides a very unique function for the event, and because the removal method will destroy the element in which the listener is involved. I want to delete it first; I may leak from what I have read otherwise (?) I am also using the strict mode, hence the argument is not. Therefore file.display.getElementsByClassName ('uploadDelete') [0] .addEventListener ('click', (function (that, i) {return function () {that.delete (i) ;};})...