Posts

php - Search a date range in a textfield -

मेरे पास एक टेक्स्ट फ़ील्ड है जिसमें MYSQL डेटाबेस में 01/01 / 2014 , 06/2014 और 2014 मैं खोजों की तरह dd / mm / aaaa , मिमी / एए या aaaa श्रेणी में। उदाहरण: 01/01/2013 से 011/01/2014 या 08/2013 से 09/2014 या 2013 से 2014 तक "पाठ"> आप अपनी क्वेरी में खंड के बीच का उपयोग कर सकते हैं फ़ील्डनाम '01 / 01/2013 'और' 011/01/2014 ' OR SELECT * से उस स्थान के फ़ील्डनाम & gt; = '01 / 01/2013 'और फील्डनाम & lt; =' 011/01/2014 '

python - User Defined Types as Dictionary Keys -

I've been struggling with the concept of hash tables and dictionaries over the last few days and could not find the right solution for my problem I hope you will forgive me for your initial (and perhaps repetitive) questions and to spend time answering me The classic GridWorld MDP problem is my "world" as part of the problem but this is not a problem here) I have made various examples of the state , each of them A unique and described tuple is (row, column) . My question is how can I handle these examples and how to reference it. To be more specific ... I have created several states with the following code, failing in many other options, such as dictionaries, sets and sample categories): where class is defined by: class state: def __init __ (self, Line, color): self.row = line self.col = col def __hash __ ): Return hash ((self.row, self.col)) def __eq__ (self, other): return (Swynko == Anykro) & amp; (Self.col == Other. Col) # __hash__ and __eq__ are...

javascript - node.js res.json messed up -

First I request an '/ init' and the response is {"x": 50} , Then I request a '/ user' and the response is {"x": 50, "data": "jack"} . There is no problem till now, but if I make an init again, then it reacts to a {"x": 50, "data": "jack"} possible? var resp.success = {"x": 50} exports.init = function (rick, ridge) {res.json (resp.success)}; Export.user = function (req, res) {user.findOne ({_ id: "1234"}) exec (function (err, user) {var response = resp.success; response.data = user.name; res Jason (reaction);}); }; Because you defined var resp.success = {"x": 50} In a scope outside @init and @user methods, when you modify / read resp.success in those ways, they are reaching a shared object instance of resp.success. You can set it independently within the @init method and define resp.success: exports.init = function (req, res) {var resp.success = {"...

angularjs - Angular bootstrap change button colors on click -

मेरे पास निम्न है & lt; बटन प्रकार = "बटन" class = "btn बीटीएन-डिफॉल्ट "एनजी-क्लिक =" शोमोअरफंक ('शैक्षणिक') "& gt; शैक्षणिक & lt; / button & gt; & Lt; बटन प्रकार = "बटन" वर्ग = "बीटीएन बीटीएन-डीफॉल्ट" एनजी-क्लिक = "शोमोरेफन्क ('प्रैक्टिसाइंस')" & gt; एप्लाइड साइंस & lt; / button & gt; जब हम + चिह्न पर क्लिक करते हैं, तो मुझे 2 बटन के साथ एक पैनल देता है I ये बटन डिफ़ॉल्ट पर सेट हैं लेकिन मुझे एक फ़ंक्शन है जो प्राइमरी जब भी क्लिक किया जाता है (सक्रिय) बटन को सेट करना चाहते हैं, और जब यह अनचेक है या डिफ़ॉल्ट पर वापस जाता है दूसरा बटन क्लिक किया जाता है मैं इस कार्यशीलता को कैसे प्राप्त करूं? बस एनजी- & lt; बटन प्रकार = "बटन" एनजी-वर्ग = "{'बीटीएन-प्राथमिक': डिस्प्ले। अकादमिक} "एनजी-क्लिक =" शोमोरेफंक ('शैक्षिक') "& gt; शैक्षणिक & lt; / button & gt; & Lt; बटन प्रकार = "बटन" ए...

php - Strange pagination behavior giving white page -

I am using points on wordpress page I have used this code on my other pages and it is working fine there, but on the "schedule" on this page, when I try to link the next page of Goto it gives a white page. I reset the permalink setting because I found the only solution on the Internet, there is still no such problem. In the database, there are 9 records in this custom post type, so the page number will be 3 pages. Pagination on the page & lt ;? Php $ paged = (get_query_var ('page'))? Get_query_var ('page'): 1; $ Args = array ('post_type' = & gt; 'schedules', 'posts_per_page' => 3, 'post_status' = & gt; 'publish', 'paged' = & gt; $ paged); query_posts ($ args); If (is_pause ()): while (is_pause ()): the_post (); $ Schedules_vessel = get_field ('schedules_vessel'); $ Schedules_voyage = get_field ('schedule_wies'); $ Schedules_port = get_field ('schedules_port...

vba - Export CSV file from Access without double quotes -

I am trying to export the last 2 table as a CSV file from Access 2010. The quotation mark is generated in the CSV file. How do I remove quotes from CSV file? I tried to use the import export text macro, the VBA code for the macro looks below: function output_to_com_maka () Getout on output_to_ csv_macro_Err DoCmd.OpenQuery "ABC ", ACV, Normal, Acidate DoCMD. OpenTable "Final 2", ACV, Normal, ACIDD, DOCMD. Transfer Text ACXportDelim, "", "Final 2", "C: \ Users \ Output File CSV", True, "" DoCmd.Close acTable, "Final2" Output_to_csv_macro_Exit: Exit Function Output_to_csv_macro_Err: MsgBox Error $ Resume Output_to_csv_macro_Exit End DoCmd.TransferText will always put quotation marks in place without an export specification. itemprop = "text" If you want to do without it, you must first set up an export specification, then reference that specification in your code.

linux - mv wrapped inside an if in shell scripting -

How do you do this? What am I thinking like this .. also, do I need to work and work? Or just one of them if [MV 1.txt & gt; 2.txt == '0'] then resonate "success" and then resonate "failure" will be enough in the bus: mv 1.txt 2.txt & amp; Amp; Echo "success" || If you want to use traditional if / fi> If using mv 1.txt 2, then echo "failure" .txt then echo "success" and "failure" to echo