Posts

Showing posts from February, 2013

html - What's a better way to have two short divisions of text, one on the left and one on the right? -

Image
In my website, headings often require some explanation text (for example a date) for their description. Current solution is & lt; Div & gt; Correct & lt; H1 & gt; or & lt; H2 & gt; , so that the header still clears the floating device right. This is the only CSS that I have churned yet: h1, h2, h3, h4, h5, h6 {display: block; Width: Auto; } .right {float: right; } and with HTML: & lt; Div class = "right" & gt; On the right & lt; / Div & gt; & Lt; H2 & gt; Talk to the left & lt; / H2 & gt; Whether a header and and gt; Is there a way to format on the right, for which they will not need to be written backwards? And preferably dependent on the right-aligned diwi, or dependent there around an additional element, or wrapped in earlier or later, these two? It seems really strange that only simple implementation is so far behind. The comments of your two additional elements are being wrappe...

c# - modify object on a form other than the one where was created -

I have an object that I make in Form 1 and then I place that object on Form 2. Is this a good way to modify the properties of 1 object frequency (pois_por_punto)? So far I have done this: in Form 1: public list & lt; POI & gt; Pois_por_punto; Pois_por_punto = New list & lt; POI & gt; (); then: private zeros btn_editar_pois_Click (object sender, EventArgs e) {form formular = new form 2 (this, pois_por_punto); formulario.ShowDialog (); } In Form 2: Public Partial Category Form 2: Form {Private List & lt; POI & gt; _pois; Public Editar_POIs (Form 1 formation, list & lt; POI & gt; pois) {_pois = pois; } Then I change the _pois property in my code and then I do this: formprincipal.pois_por_punto = _pois; } My Poi class is such a public square POI {public decimal POI_x {get; Set; } Public decimal POI_y {get; Set; } Public decimal POI_z {get; Set; Answer: In some circumstances, there are such patterns that you can use in th...

java - How to use Semaphores for Signaling? -

Now I check semaphores I went to the following link about this topic: The author of this link has written about using SACFASS for signaling. To show how he works, he wrote a custom semaphore. Custom semaphore code: public class semaphore {private boolean sign = false; Public synchronized zero () {this.signal = true; This.notify (); } Public synchronized zero releases () throws interrupted exceptions {while (! This.signal) wait (); This. Signal = false; }} How it's used in code: public class sendingThread {Semaphore Semifier = null; Public transmittance (semaphore semaphore) {this.semaphore = semaphore; } Run public null () {while (true) {// something to do, then it signals semaphore.take (); }}} Public Class Receiving Thread {Semaphore Semifar = Faucet; Public recepted (semaphore semaphore) {this.semaphore = semaphore; } Public run zero () {while (true) {this.semaphore.release (); // Get the signal, then do something ...}}} main: semaphore semaphore = new s...

ios - Xcode 5 Architecture i386 multiple duplicate symbols -

After text "itemprop =" text "> By copying the path I specified in the source folder for architecture i386 specified in the error xcode in the xcode. There were many such files which apparently were conflicting, even when I removed one, and ran the program, it will change what I do? Apart from this, I cleaned it and stopped everything and restarted my computer. Thanks o files are your source code, which is where the conflicts really are only compiled versions from lie . What many things do you have, whose names are the same, and the linker is pushing it to take an error message, you might name the name that is conflicting (not the file, symbol), this extra padded The symbols can be, but you should identify the name or name of a method you use. Search for that in Xcode, and see where you're defining it more than once. There may be only one definition in a symbol, so if you are using it in many cases, then you need to solve it.

amazon web services - AWS-PHP-SDK / SNS direct addressing returns error -

Hi, I'm using the Larval 4 setup to use the ADS SNS to send push messages to my iOS device, the published command is My device Works well with AWS console from Then I tried with PHP: $ sns = AWS :: get ('sns'); $ Sns- & gt; Publish (array ('message' = & gt; 'Hello from PHP', 'TargetArn' => "arn: aws: sns: us-west-2: 360542326270: End point / APNS_SANDBOX / testtest / 20a75cd1-Da25 -3331-8126-4db497cbdd5e ")); I'm getting ghazle \ service \ exception \ validation exception validation errors: [topic arn] is a required string: the subject on which you publish But docs specifically say that I can either send ARN to a topic or publish directly to a single device using the address Can i It seems that the AWS PPD SDK forces me to use theme ARRAN. What am I doing? I removed clear gazal line from the composer. So the update ran, it was removed 3.6 mileage and installed 3.9. It was then removed from ADS-PHP...

Go: deep copy slices -

I would like to read a piece of strings that represent hexadecimal numbers, and by them the byte slice ( [] string - & Gt; [] [] Byte ). This is my code so far: Funk (self * algo_t) decode_arge (args [] string) ([] [] byte, error) {var data [] [] for byte : = UIT 32 (0); I & lt; Self.num_args; I ++ {data = create ([] [] byte, manually. NUm_argue) TMP, gal .: = hex. Decodestring (args [i]) fmt.printf ("i =% d \ ttmp =% x \ n", i, tmp) data [i] = create ([] byte, lane (tmp)) copy (data) ], TMP) If mistake! = Zero {FMT. FITTF (Oststir, "Error decoding hex string% s:% (" line 69 \ tdata [0] =% x \ tdata [1] =% x \ tdata [2] \ n ", args [i], err.Error Return data, zero} p> This code is calling and passing args = [] string {"010203", "040506", "070809"} gives the following output: I = 0 tmp = 010203 i = 1 tmp = 040506 i = 3 tmp = 07080 9 line 69 data [0] = data [1] = data [2] = 070809 possible : Returns the ...

ios - Correct adding and UIViewController to another -

आज रात एक का सामना करना पड़ा: - (शून्य) लोड दृश्य {वीसी * वीसी = [[वीसी आलोक] इनिटविथ स्टाइल: यूआईटीबलव्यूस्टाइल समूह []; [आत्म जोड़ें चाइल्डव्यूकंट्रोलर: वीसी]; [Vc removeFromParentViewController]; [स्व सेटव्यू: vc.view]; } और एक बम मिला: अनचाहे अपवाद 'UIViewControllerHierarchyInconsistency', कारण: 'एक दृश्य केवल एक में सबसे अधिक एक दृश्य नियंत्रक के साथ संबद्ध किया जा सकता है पहर! प्रश्न: हम वर्तमान में vc और इसकी मौजूदा कार्यक्षमता को वर्तमान ViewController बिना AddSubView जोड़ सकते हैं? मौजूदा दृश्य के एक सबव्यू के रूप में अपनी तालिका दृश्य नियंत्रक का दृश्य जोड़ें आपको removeFromParentViewController पर vc कॉल नहीं करनी चाहिए क्योंकि इससे पहले लाइन को अनिवार्य रूप से नकारना होगा माता-पिता से मेल करने के लिए फ्रेम सेट करना भी एक अच्छा विचार है। - (शून्य) लोड दृश्य {[सुपर लोडव्यू]; // यह एक बुनियादी दृश्य बना देगा VC * vc = [[वीसी आलोक] initWithStyle: UITableViewStyleGrouped]; [आत्म जोड़ें चाइल्डव्यूकंट्रोलर: वीसी]; Vc.view.frame = self.v...

javascript - Onclick jquery function wont work -

So at the bottom I have an example of a Bela and my code below, currently, the problem I am facing That is when I try to allocate a function variable on click, the function does not execute. I want to enable input numbers in the input field and click to be able to click and it is to generate a new wave ground on click. HTML & lt; Div id = "container" & gt; Any help is appreciated! & Lt; Div id = "wave" & gt; & Lt; / Div & gt; & Lt; Div id = "wavelength-text" class = "text" & gt; Wavelength & lt; / Div & gt; & Lt; Div id = "dimension-text" class = "text" & gt; Ayyavity & lt; / Div & gt; & Lt; Br / & gt; & Lt; Input type = "text" value = "50" id = "wavelength" & gt; & Lt; / Input & gt; & Lt; Input type = "text" value = "50" id = "dimension" & gt; & Lt; / Input & gt;...

php - mysqli_query() returns empty results for full table -

I am creating a page that asks a question for all the columns of all results in descending order with a threshold The entry is in accordance with the time when I query for the counting of the rows, the query works fine, but when I ask for a table again for the data, I do not get anything. I decided to try to harvest the query on "SELECT * FROM comments" , but whenever "SELECT COUNT (*) is calculated from the comments" . I have tried to use mysqli_error (), but he has not given me any information. The query is failing because the result of mysqli_query () is incorrect and when I query phpMyAdmin, the query works. A small piece of my code below // open database need_once ($ root. "Database / data.php"); // Get the number of suggestions in the comment table $ cquery = mysqli_query ($ cbase, "SELECT COUNT (*) as calculated from the comments"); // This works $ c = mysqli_fetch_array ($ cquery); $ Count = $ c ["count"]; // Receive ...

python - How do you access a variable stored in a function? -

def func (): number = 1 def func2 (): प्रिंट संख्या क्यों यह कोड "1" प्रिंट नहीं करेगा? (इस तथ्य के अलावा कि मैंने फ़ंक्शन बुलाए नहीं?) मुझे लगता है कि आप ऐसा करने की कोशिश कर रहे हैं। मेरा जादू क्रिस्टल बॉल काटा हुआ है। def func1 (): user_input = raw_input ("प्रॉम्प्ट") वापसी user_input def func2 (the_input): प्रिंट_इनपुट that_same_input = func1 () func2 (that_same_input) यदि आप पायथन 3 पर हैं, तो input ("prompt") raw_input ("prompt") और प्रिंट के लिए (The_input) के लिए प्रिंट the_input कार्य दो चीजों में से एक करें। वे या तो कोई गणना करते हैं और एक आउटपुट लौटते हैं, या वे कुछ संरचना को आपसे कुछ बदलते हैं। यदि वे इस से कुछ और करते हैं तो आपको (आमतौर पर) रिफ़ाक्टर चाहिए अभी आप अपना func1 एक वैश्विक चर बनाने की कोशिश कर रहे हैं, फिर इसे कहीं और से कॉल करें। अच्छी तरह से, तरह का। आप वास्तव में करने की कोशिश कर रहे हैं कि func1 के साथ गणना का एक सेट बनाने के लिए है आप इसे कुछ उपयोगकर्ता इनपुट प्राप्त करना चाहते हैं,...

php - Redirecting using header after updating database -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मुझे उपयोग करने के लिए पुनः निर्देशित करने में सहायता की आवश्यकता है शीर्ष पर वापस जाएँ। मेरा कोड: & lt;? Php if ($ fname! = "") {$ Query = mysql_query ("UPDATE customer_address SET first_name = '$ fname ', अंतिम नाम =' $ lname ', कंपनी =' $ कंपनी ', company_id =' $ company_id ', address_1 =' $ address_1 ', address_2 =' $ address_2 ', शहर =' $ city ', काउंटी =' $ काउंटी ' , post_code = '$ postcode', देश = '$ देश' WHERE address_id = '$ editTheId'; "); यदि ($ query == true) {हैडर ('स्थान: address.php'); } Else {गूंज "अद्यतन त्रुटि!"; }} और मुझे निम्न त्रुटि मिलती है: चेतावनी: हेडर सूचना को संशोधित नहीं किया जा सकता है - हेडर पहले ही भेजे गए हैं (आउटपुट C: \ xampp \ Htdocs \ eula \ edit-address.php: 72) सी: \ xampp \ htdocs \ eula \ edit-address.php पंक्ति 12 9 पर पूरी फ़ाइल के लिए पेस्टबिन...

Editable HTML, CSS and Javascript within Powerpoint Presentation? -

It is possible to have an editable HTML demo interface (like Plunker) inside PowerPoint to do educational presentations on HTML, I was thinking that , javascript, etc. Has anyone done this? Is it possible to embed iframe with plumber or link to local node server in powerpoint? Cheers, DS You can embed a browser control in a PPT slide Use the free live web add-in for Shyam (if you do not want to mess it up in the code :).

html - Images disappear once in server - Using bootrstrap -

I have a problem in handling images in my footer, I use brackets, so I can preview my page (The preview on Chrome) The problem is that when I upload files to my server the images do not appear, they are PNG, and I have tried to change them, GPG, wrapping them in different ways, any No class use Not do ... they are the only images that do not work without the rest of the page. How do I preview it: How do I view it after uploading it to the server and viewed via webpage (Chrome also): This day is driving me crazy. Any ideas? EDIT: Use Bootstrap 3 on the way. Edit: O .. how can any code without help ... & lt; Div class = "container" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-md-3 col-md-offset-5" & gt; & Lt; A href = "// facebook.com/" class = "media1" & gt; & Lt; Img class = "media1" src = "data 2014 / img / social-media / facebook-noir.png" alt = ...

java - admob fillrate = 0 -

I'm using admob for an app I just launched the other day, at first there were no downloads but one With the campaign I am using now, yesterday I have received 140 requests and so far, 44 and counting ... but still, on the old adobe website, it says that it is not active because it has not yet been able to The ad request has not been received. I have another app in the Adobe list, and it is showing on the old website as a green light. I do not think anything in my code is wrong, otherwise there will be no request, I am right thanks edit In addition to:. I could not ' Edit PS Test Ad .. Edit on your smartphone and Showing on the emulator This is what is being shown to me today: request 299 impressions 0 fill rate 0% CTR - .. itemprop = "text"> You have a lot less number of requests after As you get an extensive coverage you will be better off the rate. You can improve your fill rate using the arbitrator.

linux - Ghostscript: Convert PDFs to other filetypes without using the filesystem -

I want to use C APIs on ghostscript on Linux to convert PDFs to other things: fewer pages and two PDF examples with images. My understanding was supplying the callback function with GPS, I could read and read data from them. Although by my experiment and reading, it does not seem like this My motivation to do this is that I would like to have PDF processing on scale, and do not want my throughput to be held back a spinning disk. Am I missing something? The SDDI API allows you to provide your replacement for stdin, stdout and stderr, this No activity is influenced by an interpreter who does not use them. The pdfwrite tool makes extensive use of the file system to write temporary files, grab the various intermediate parts of the PDF file, as it has been explained, it later rejoined the new PDF file. Are there. Temporary files are not written in stdout or stderr. There is no way to avoid this behavior. Using the file system again, unless you specify stdout the destina...

vb.net - How to make sure a file is closed before renaming it -

I am opening Word document using Appwords.documents.open and closing them with appword.quit. Then in the function named Processa, the name of the application document changes. The problem I am getting is that the file has not been closed before changing the name of the file. How can I ensure that the document of the word is closed before trying to rename it is? WordDoc = AppWord.Documents.Open (filepath + filename) txtFileContents.Text = WordDoc.Content.Text AppWord.Quit () Process Data (txtFileContents.Text, filepath, filename) This is what gives the document the name in the processata function: My.Computer.FileSystem RenameFile (fPath + fName, NewName + ".doc") You should not just use the Skip Application () method to close the document . Usage: WordDoc.Close WordDoc = nothing Call the exit method again.

java - UnsatisfiedLinkError exporting a dll for deployment -

I am trying to create a runan jar file from my project, but two line codes are causing the problem. I use JNA inside my project, some flight calls I used to file dll, which I made, but I can not link it properly. I can not make any problems in Elysses and run the application. I can also make a runner jar, but when I try and run it, I get this error: Enter the dissatisfied link: no kl in java.library.path KL Mary. The name of the dll file is Here's how I am loading it: Personal DLL del; System.loadLibrary ("kl"); Dll = (Dll) Native.loadLibrary ("kl", Dll.class); The .dll file is currently placed in the root directory of my project, I think it is System.loadLibrary which is causing the most problems, I need to see that In the main root folder, which are running my jar file. Thanks Try going with Java - Djava.library.path : java -Djava.library.path = directory_where_your_library_is main-class

c++ - LNK2019 error while using a library function from inside a class -

I have a VS 2013 project with a different file in class, where I want to use BeaEngine to isolate the binary I am I added all necessary files (BEEZH and BAEGN.Lib) to the project and linker to Set to include. When I call the forgotten function from inside the Main Function () function, my project is OK, but when I try to call it one of my class member functions, I get the following error: "__imp__Disasm" symbol "__imp__Disasm" in the pane Private: Zero __thiscall BinaryBlob :: callScan (unsigned int, unsigned int) "(? CallScan @ BinaryBlob @@AAEXII @ Z)" Error in LNK2019: pane " It seems to me that Linker Desmesh Funk Can not find the implementation of the Shan If I comment on the following line, then it will be compiled without any errors. len = vism (and (it->; disasm)); My included include are: #include "stdafx.h" #include "BinaryBlob.h" #define BEA_ENGINE_STATIC / * Specify the use of BeaEngine * / #define A ...

forms - I can't get this to go away in my access 2013 subform -

Image
क्या कोई मुझे तीर को चालू करने और मेरे सबफ़ॉर्म में बंद होने की सेटिंग ढूंढने में मदद करता है धन्यवाद फ़ॉर्म के गुणों पर जाएं प्रारूप टैब में सूचीबद्ध "रिकॉर्ड चयनकर्ता" होगा यदि यह "हां" है, तो "नहीं" चुनें इससे समस्या ठीक होगी।

visual studio 2012 - Simple C++ program not compiling using wstrings and cout -

मैं Visual Studio 2012 का उपयोग कर इस साधारण C ++ प्रोग्राम का निर्माण कर रहा हूं: #include & lt ; stdafx.h & gt; #include & lt; स्ट्रिंग & gt; # शामिल करें & lt; iostream & gt; Int main () {std :: wcout & lt; & lt; "नमस्ते दुनिया..."; Std :: string इनपुट_डेटा; Std :: string output_data ("कृपया अपना नाम लिखें"); std :: wcout & lt; & lt; उत्पादित आंकड़े; std :: wcin & gt; & gt; इनपुट डेटा; std :: wcout & lt; & lt; "आपका नाम है" & lt; & lt; इनपुट डेटा; वापसी 0; } मैं संकलन नहीं कर सकता अनुवर्ती त्रुटियों को प्राप्त करना: त्रुटि C2678: बाइनरी '& gt; & gt;' : कोई ऑपरेटर नहीं मिला जो एक बाएं हाथ के ऑपरेंड प्रकार 'std :: wistream' (या कोई स्वीकार्य रूपांतरण नहीं है) त्रुटि C2679: बाइनरी '& lt; & lt;' : कोई ऑपरेटर नहीं मिला जो कि 'std :: string' (या कोई स्वीकार्य रूपांतरण नहीं है) त्रुटि का सही हाथ ऑपरेंड लेता है C2679: बाइनरी '& lt...

concatenation - A more elegant way to concatenate C strings in C++? -

I was wondering if this was the least to do .... I have an assignment that puts the credit card information in the UDP packet, with a separate notification by the colon in buffer, so that it looks like Bob Jones: 7845 6133 7889 4425: 09/2017: 654.99 stored In a single character array. int main (int argc, char ** argv) {four buffers [256]; Four names [64]; Four card new [32]; Four Ends [8]; Four zodiac sign [14]; While (true) {/ ********* (input prompt go here, break on leaving user type) ******** / strcpy (buffer, amount); Int length = Strellan (buffer); Buffer [length] = ':'; Dome (buffer, cardam); Length = stellen (buffer); Buffer [length] = ':'; Dome (buffer, name); Length = stellen (buffer); Buffer [length] = ':'; Dome (buffer, end); / ****************************************************************************** All networking codes ); C ++ In, you can add std :: string to attach + , or A to the object. In both C and C ++ you have access...

iOS GestureRecognizers All Directions -

I am quite new to iOS development. I have only started one or two months ago. I have an idea for an application, but it will require gesture recouilers. I have searched the document for the gesture recognizer but as far as I can tell, it can only detect 4 directions, write some code above, left, right and down anyway that gives you the user's swipe any direction Will find out. For example, if users want to swipe to the upper-right direction or the bottom-right direction, then is there any way to detect it? EDIT: After thinking about this, I have come in a better way to explain to who I want a code for if I was developing a game for iOS and the user usually has the camera Are visible in the scene (bird-eye scenes) and I wanted to permit them to move their views in a map so that they could see the basis of an enemy base or their allies, Do not be put simply, top right, to the left and swipe those diagonal instead of swiping down know? I think you are a little confused. ...

php - Insert on duplicate key update didn't update, instead insert new value -

I have a table with 4 lines, 1 is the primary key with automatic increments, the line is check_id .. What do I have to do Insert a new data if no data exists and updates data based on ID if it exists. I'm already using it: Checklist on duplicate key updates (check_pos, check_off, check_code) value ('$ name', '$ name ',' $ Code '), check_core =' $ name ' but enter only a new value Instead, I have the code check_id Tried > to the unique key and this is the same, Is there anything wrong with my update query or my table? This is my code: & lt ;? php $ ew = mysql_query ("choose from pos_unit * where pos_unit_name '% director%'"); $ Line = mysql_num_rows ($ ew); While ($ eq = mysql_fetch_array ($ ew)) {$ pos = $ eq ['pos_unit_name']; $ Checklist = mysql_query ("select from checklist * where check_ok = '$ pos'"); $ Excheck = mysql_fetch_array ($ checklist); $ Poss = $ excheck [...

ios - How to pass data to a programmatically created child view controller -

In my app, I have created a child view controller that I have installed with a storyboard ID and then programmatically I add this child view to the UICrol view so I can not create a container view in the storyboard. What I still need to do is: I have to pass the data to the child's chancellor. I know how to pass data when using a seagull for the VC, but how do I complete this operation in this case? The controller that you add to the child, has a child in the ViewControllers property that has any child Controller If you have only one child, you can refer it to parents, SomeClass * child = self.childViewControllers [0]; Child.someProperty = self.propertyIWantToPass;

Maintain access to console while running Node.js program -

क्या मैं एक .js स्क्रिप्ट चलाना Node.js प्रक्रिया को कमांड भेज सकता / सकती हूं? वर्तमान में मैं सिर्फ नोड चलाता हूं और कंसोल में अपना कोड चिपकाता हूं यह बहुत सुविधाजनक नहीं है। आप एक रिप सर्वर शुरू कर सकते हैं (जिसमें स्क्रिप्ट के दायरे तक पहुंच है) जैसे यह: var repl = की आवश्यकता होती है ('repl'), नेट = की आवश्यकता होती है ('नेट'); var REPL_PORT = 2323; Var replServer = net.createServer (function (sock) {repl.start ({prompt: 'myrepl & gt;', input: sock, output: sock, eval: फ़ंक्शन (cmd, context, filename, callback) {var ret, err; अगर (गलती) कॉलबैक (गलती); और कॉलबैक (नल, रिट);}}) पर ('एक्ज़िट', फंक्शन ()); {sock.end ();});}); ReplServer.on ('त्रुटि', फ़ंक्शन (गलती) {console.log ('REPL त्रुटि:' + त्रुटि);}); ReplServer.on ('close', फ़ंक्शन (थाईलर) {console.log ('REPL बंद' + (थाईलर? 'त्रुटि के कारण': 'gracefully'));}); ReplServer.on ('सुनना', फ़ंक्शन () {console.log ('REPL सुनन...

javascript - Get all IDs of selected/highlighted DIVs -

I am going completely in the wrong direction, which I am trying to do, so I want to ask for help Was there. Background / Overview To display the text of the text and select one or more words from the paragraph and save their highlighted text The user needs to allow a database for, just for their profile, the cap of the text will eventually be selected (1) stored in the highlight and (2) on the second set of the second text highlighted from the second paragraph (original form From, i I'm typing in a reference source reference from source) Whatever I have tried ... I have a In the DIV (and a unique ID), we tried to keep each word of the paragraph float to the left, so that the display looks okay. & lt; Style & gt; Div {float: left} & lt; / Style & gt; And ... using an example: & lt; Div id = "GEN_1_1" & gt; & Lt; Div id = "GEN_1_1_1" & gt; In & lt; / Div & gt; & Lt; Div id = "GEN_1_1_2"...

java - Jpa Query Works on Jetty Embedded, but doesn't run when deployed to Jetty -

क्वेरी है em.createQuery ("ब्लॉगपोस्ट बीपी से बीपी चुनें WHERE? 1 Bp.categories "के सदस्य) .setParameter (1, c) .getResultList (); मेरे एकीकृत परीक्षण कंटेनर में यह ठीक चलाता है, यह एक कस्टम जेट्टी इन्सेंट पर है जो मेरे कोड में है। हालांकि, ग्रेडेले जेटी रॉन या जेट्टीरुनवायर का इस्तेमाल करते समय तैनात किया जाता है, लेकिन यह उपरोक्त क्वेरी को चलाने के लिए, मुझे एक रिक्त परिणाम सेट और निम्न त्रुटि मिलती है। 4528 सरल वॉर्न [1241194115 @ qtp-739763767-0] ओपनजपा। रनटाइम - उपयोगकर्ता पैरामीटर प्रदान "[1 ] "अपेक्षित मापदंडों से मेल नहीं खाता" [] "तैयार की गई क्वेरी के लिए" तैयार की गई क्वेरी: [ब्लॉगपॉस्ट बीपी से बीपी चुनें [1] बीपी सीजेन्स का सदस्य 1) ​​- & gt; [टीले। , टी 3.आईडी, टी 3. एडीटर 1, टी 3. एडीटर 2, टी 3 सीटीटी, टी 3 सीमेंट, टी 3 एचएमईफोन, टी 3.मोबाइलफोन, टी 3 पॉस्टल, टी 3.प्रोविंस, टी 2। पहचानकर्ता, टी 2.पासवर्ड_एमडी 5, टी0.ओबी, टी 00 .dateCreated, t0.datePublished, t0.title ब्लॉगपोस्ट t0 INNER से जुड़ें ब्लॉगपोस्ट ब्लॉग टैग श्...

Netlogo: Retrieve position of a nested list given an element of the nested list -

I want to retrieve the status of the nested list given to the element of the nested list. For example, a list of lists is given, [[1.1 AB] [1.2 cd] [1.3 EEF]] I would like to get position 1 given element 1.2. What was said in this question as it is: Your Special Issues In order to remove the sublisting element you are looking for, and to get its index, you can use a combination: observer> Show status 1.2 map before [[1.1 "a" "b"] [1.2 "c" "d"] [1.3 "e" "F"]] Supervisor: 1

c# - how to split the fallowing string into the key and value pair ? -

Image
I have the following string and I need to convert special values ​​into key, value pairs --Wj0WGWaKTUC0ynTbTxQl8Azz // This value is changing every request content-presentation: form-data; Name = "key" donny / uploads / 11.txt --Wj0WGWaKTUC0ynTbTxQl8Azz content-presentation: form-data; Name = "ACL" private - Wj0WGWaKTUC0ynTbTxQl8Az content-presentation: form-data; Name = "content-type" text / plain - Wj0WGWaKTUC0ynTbTxQl8Azz content-presentation: form-data; Name = "AWSAccessKeyId" 12345 - Wj0WGWaKTUC0ynTbTxQl8Az content-presentation: form-data; Name = "policy" eyJleHBpcmF0aW9uIjogIjIwMTUtMDQtMDFUMDA6MDA6MDBaIiwNCiAgImNvbmRpdGlvbnMiOiBbIA0KICAgIHsiYnVja2V0IjogIm9uZWF3c3Rlc3QifSwgDQogICAgWyJzdGFydHMtd2l0aCIsICIka2V5IiwgImRvbm55L3VwbG9hZHMvIl0sDQogICAgeyJhY2wiOiAicHJpdmF0ZSJ9LA0KICAgIFsiZXEiLCAiJENvbnRlbnQtVHlwZSIsICJ0ZXh0L3BsYWluIl0sICAgDQogICAgWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsIDAsIDEwNDg1NzZdDQogIF0NCn0 = --Wj0WGWaKTUC0ynTbTxQl8Azz ...

sencha touch 2 - phonegap/cordova local notification plugin how i display notification in a specific date and time? -

I am working in sencha touch and now i want to use local notification in my project so that i Local Notification The problem I face can not just show my notification on a specific time and date. It instantly shows notifications as I click on the action button, please help me with this problem. The example below should work. I tested it myself Keep in mind that if the date is your phone , The notification will be popped up directly after notification is set. var startTime = new date ('2016', '0', '12', '12', '45'); // year // month - 1 (starts with month 0, so you have 0-11) // day // hour // minute Cordova Plugins.notification.local.schedule ({id: 1, title: 'hello world', text: 'my first notice', at: beginTime})

Catch all exceptions and display dynamic error page Ruby on Rails 4 -

I am currently working on a Rail 4 app and came to the point where I display a custom error page Users want an exception when it is currently 500. In the public directory, using the HTML. How can I get an app instead of rendering an ARB file because I have to keep some dynamic stuff on the page There are: ApplicationController ApplicationController ActionController :: Base Rescue_profor IAWWORD :: Exception. Exceptions | Render_403 (exception) end def render_403 (exception) logger.warn ("message for log.") @error_message = exception.message response_to do | Format | Format.html {Render Template: 'Errors / Errors', Layout: False, Status: 500} format.all {None Render: True, Position: 500} End End End You can now create a sequence in the error folder errors.html.erb and render the @error_message variable.

c# - Query to URL conversion -

I have such a question select xxx from '10-26' and '2012 -10-27 ' and URLs like url /? $ Filter = dates gt datetime'2012-10-26 'and the date is' Lepidated '2012-10 -27' and I am getting the response using this . Now, I need over time , so I changed and $ filter = LastModifiedDate + ge + datetime'2012- 09-25 23:59:59 ' But I'm getting an error: {"odata.error": {"code": "", "Message": {"lang": "en-US", "value": "unfamiliar" Edm.DateTime 'literally' datetime'2012-09-25 12:00:00 '' at '20 ' 'Lstoddifidad GE Date Time' 2012-09-25 12:00:00 ''. "}}} short answer dateTimeOffsetValue = year" - "month" - "day" t "hours": "min [": "second [ "." Partial Seconds]] ("Z" / Sign-Hour ":" Minute) Example: 200...

`Could not find a part of the path WiX Toolset v3.8\bin\IA64\burn.exe` even though I don't target IA64 -

Image
Failed with : Since the dragging changes, the view path of the My InstallerBootstrapper project in C # 2010 does not find any part of "YX Toolset v3.8 \ bin \ IA64 \ burn.exe" This directory does not actually exist, but it never happened and the InstallerBootstrapper was producing correctly before dragging it. VIXPRG and .Wocks have not changed. I've reviewed the changes, but can not figure out what kind of changes can happen. There is no file string "IA64" in the entire solution. I have not updated the YX since a few months. Google returns anything with these words Anyone could have thought what could happen? The reason for some unfathomable, InstallerBootstrapper was configured to use IA64: This happened when I reinstalled the installer e In installer bootstrapper projects no idea why, but this solution can be fixed by editing the file or using the configuration manager. I should also search for lowercase string.

json - Java ElasticSearch example using TransportCilent -

The following code describes the communication between Java and elastic search - using the transport client. When I run, I'm sorry. Elastic Search Any clear example for the Java flexible shirt will be given or someone can help me get the solution. public static client function () {settings setting = ImmutableSettings.settingsBuilder (). Put ("cluster.name", "localtestsearch"). Build (); Client = new transport client (); Customer = client.addTransportAddress (new InetSocketTransportAddress ("localhost", 9300)); Return customer; } Public static zero main (string [] args) {System.out.println ("in the main method"); Try {System.out.println ("in the attempt block"); Client Client = New Transport Client (.addTransportAddress) (New InetSocketTransportAddress ("Localhost", 9300)); Println ("connected"); Client.close (); Settings settings = ImmutableSettings.settingsBuilder (). Input ("client.transport.sniff...

ios - CUICatalog: Invalid asset name supplied: , or invalid scale factor: 2.000000 -

I have a UiVIEW controller in which I have drawn a table view and have inserted all necessary connections such as delegate and data source and It works just fine, everything is great I tried to set the background to this table view and I got this strange error CUICatalog: Invalid property name given, or invalid Scale factor: 2.000000 I used this method Try to set Rishtbhumi of: UIImageView * tempImageView = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @ "mypredictions_bg.png"]]; [TempImageView setFrame: self.tableView.frame]; Self.tableView.backgroundView = tempImageView; What am I missing? I have checked that the name of the picture is correct I have created a debug class, So that you you need to install JRSwizzle to use it. #import "UIImageDebugger.h" #import "JRSwizzle.h" @ Implementation UIImageDebugger + (Zero) startDebugging {Fixed Dispatch_ENC_T once; Disappear_onces (and once, ^ {NSError * error = NULL; [UIImage...

java - Download .class file and load it into JVM -

How can I download a .class file and load it in jvm with square loader, I have written That a simple code is a .class file I tried to load it into JVM. the face of the public square {Public static throws IOException the main (string [] AGR), the classnamefound exception {file F = new file ("Task Class"); integer number; Byte [] buffer = new byte [1024]; DataInputStream dis = New DataInputStream (new FileInputStream (f)); Stringbuilder all = new stringbillers (); While ((count = DAP (buffer)) gt; 0) {// System.out.write (buffer, 0, count); all.append (buffer); // System.out.flush (); } File b = new file ("Task Class"); FileOutputStream fos = New FileOutputStream (b); DataOutputStream dos = new dataoutputstream (fos); Dos.write (all.toString () getBytes ().); Classloader lod = face.class.getClassLoader (); Lod.loadClass (b.getAbsolutePath ()); }} Use class.forName (& lt; package_qualified_class_name & Gt;)

android - ListView of Contacts -

I should have a list view of my contacts I use the Google sample code The problem is that I have a single contact repeatedly Gym Jim Jim Jim Anna Anna Anna ... How do I make a separate list of my contacts Can I get it? Expands LISTView List of Public Class Contacts LoaderManager.LoaderCallbacks & lt; Cursor & gt; {Simple cursor adapter mAdapter; Fixed final string [] Projection = new string [] {ContactsContract.Data._ID, ContactsContract.Data.DISPLAY_NAME}; Fixed Last String Selection = Contact Contact Contact. IN_VISIBLE_GROUP + "= '" + ("1") + "'"; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); // progress progress bar to progress progress bar display progress bar = progress bar = new progress bar (this); Progress Bar. Seat Output (New Layout Prarm (WRAP_CONTENT, Gravity.CENTER);) ProgressBar.setIndeterminate (true); GetListView () setEmptyView (Progressbar) // should add th...

java - apache ant not installing properly -

I downloaded apache-ant-1.8.4 and re-opened the folder in the c drive, after that The Command Prompt has given me a command prompt such as 'Ent' has not been recognized as an internal or external command, the operable program or batch file. I am already setting the environment variable of Java and ant. Please see my environment variable below. ANT_HOME - & gt; C: \ Apache-Ent \\ Apache-Ente-1.8.4 \ Bin Jawa_HOME - & gt; C: \ WINDOWS \ system32; C: \ WINDOWS; C: \ Program Files \ Java \ jdk1.6.0_37 \ bin I am using Windows XP Please tell me where I am wrong I am trying very hard but my goal I'm not getting it. Please help me to solve this bug. thank you in advanced. Try it: - Set your environment variable on system properties: a: variable: ANDROID_HOME Price: Your Path \ phonegap \ sdk b: Variable: ANT_HOME Value: Your Ant Homy \ Java \ Apache-Ent + 1.9.2 I hope this help is your problem To resolve

meteorite - How to display Meteor.loginWithPassword callbak error message on the same page -

I created a custom login page and used Meteor.loginWithPassword (user, password, [callback]) function to login in the app. The login template is the following: & lt; Template name = "Login" & gt; & Lt; Form class = "login-form form-horizontal" & gt; & Lt; Div class = "control-group" & gt; & Lt; Input class = "email" type = "text" placeholder = "email" & gt; & Lt; / Div & gt; & Lt; Div class = "control-group m-inputwrapper" & gt; & Lt; Input class = "password" type = "password" placeholder = "password" & gt; & Lt; / Div & gt; & Lt; Div class = "control-group" & gt; & Lt; Button type = "submit" class = "submit t-btn-login" & gt; Login & lt; / Button & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; Div class = "alert-container" & ...

Android FileNotFoundException in uploading Photo -

There is a problem finding photos after saving. Here's how I take photos from the camera and save it to the file I am making sense for Private zero lephoto (condition of int) {meter meter = adapter.get item (condition); Intentional LifestyleIntent = new intent (mediastore.action_IMUNDCCCT); File StorageDire = Environment.GetEstinestAssistant Directory (Environmental. DIRECTORY_PICTURES); File tempFile = createTempFile (meter.id, JPEG_FILE_SUFFIX, storage DIR); If (tempFile! = Null) {lastPhotoPath = tempFile.getAbsolutePath (); Log D. (Tag, "floating picture path =" + last photopath); Le Picturecentant Input Extra (MediaStore.xtra_utuutut, ure.framefile (tamphfile)); Try {StartActivityForResult (tryPictureIntent, TAKE_PHOTO_REQUEST); Previous photo page = position; } Catch (ActivityNotFoundException exc) {LogE (tag, "Activity not found for photo"); }}} Then I want to upload this image to the server later. Here's how I am doing this. The public de...

Tableau Parameter Selection -

I have a parameter and a calculated field parameter - "hierarchy" (which is Calculation Field - "Division" (which is based on selected hierarchy) Case 1 Display '' (nothing) Case 2 and 3 show dimension A My question- When I get a value from the division I select 'X' when the parameter is set to 2 or 3. When I switch to 1, the value remains 'X'. I would like to do it in the default 'all' No. I do not have data for 'X' on the Level 1 hierarchy. So, my graph does not show anything, which is not good. Do anyone know How does it script in 'All' as 'default', when I select '1' (and I mean string 'all', I mean selection of all the values ​​used in filtering. > thanks, gemmo To the point Try to set your quick filter to display "all the values ​​in the database" rather than "only relevant values" in the database. I think this is the default setting, so it'...

cuda - managedCuda C# free GPU Memory -

I am using C # with managedcuda lib, I assign memory on GPU with this command: CudaDeviceVariable name = New CudaDeviceVariable (length); And it works fine. But I can not find the command to free it from the GPU. Thank you in advance) = Use names Conflict (); - CudaDeviceVariable is a IDisposable . It also means that you can use the syntax of this work: Use (var name = new CudaDeviceVariable (length)) {// work }

php - How do I hash SHA2 on $_POST? -

I am trying to encrypt my 'password' column with SHA2. The problem is that the injection of MYSQL is through a $ _POST variable, so I do not understand where to put SHA2 () Here is my 'Insert' page (Internet.fp): From what I've read, I've put it in the 'Price' section of my insert query: Attempts to combine: But then if the password was for example: mypass, the output in my database was this: SHA2 (mypass) I tried: But then I get a parse error (which I think, but still I'm trying ) So my question is: Does anyone know if I'm $ _POST I encrypts ?? Look at the examples again. mysql> Include user password (id, username, password) - & gt; Value (zero, 'Lily', SHA2 ('mypassword1', 256)); Let's move around the quote string. The SHA2 () function goes around the call quote. Apart from this, SHA2 () takes two argument. 'SHA2 ($ _ POST [pwrd])' ' should be: SHA2 (...

c++11 - Why std::thread doesn't have try_join_for() and interrupt() methods -

Can anyone explain to me why std :: thread to boost :: Thread of the following: There are no try_join_for / try_join_until methods any Interrupt method Here are some explanations: There is no way to request a thread ending (i.e. request that Get out of it as soon as possible and with as much grace as possible) or close a thread Forcing it to kill (i.e. kill it). We have omitted the options of , designing our own cooperative "interception mechanism". (With a piece of shared data that the caller thread can set to check a thread, and exit it quickly and quickly from being set), Go to a local Used to be ???? Kill the process ( std :: quick_exit () ), using the thread :: country_handle () to obtain the perception of the operating system of thread: Kill the program ( std :: terminate () ). All this committee could agree on this. In particular, Posx's representatives strongly criticized against any kind of 'cancellation'. However, many C...

sql - Query to find duplicate values for two fields -

Sorry for the title, but do not know how to explain I have a table that has 2 fields A and B. I should get all the rows in the table that are duplicate A (more than one record), but also the e will consider only as a duplicate if B is different in both rows Example: FIELD A field B10 10 10 10 // This is not a duplicate 10 10 10 5 // This is a duplicate How to do this in a single query FIELD count from your_table group (B) & gt; 1 Keep in mind that this will return the count of all duplicate instances if you have 1 1 2 1 value, then this value will not be 1 2

c# - How do I have to pass a MemberInitExpression object -

When I run this code, I get an exception to the update method Public Zero UpdateTeststep (teststep phase) {_context.Teststeps.Where (t = & gt; t.TeststepId == step.txtstepid). Update (t = & gt; phase); _context.SaveChanges (); } {"Update expression should be of member type. InitExpression. \ R \ nParametername: updateExpression"} What's wrong with my updates? The source code of the update method: line 454: var member as InitExpression = updateExpression.Body MemberInitExpression; If (memberInitExpression == faucet) throwing new logic exception ("Update expression member type should be InitExpression.", "UpdateExpression"); Why do I have to tap the value? Do I pass my test incorrectly? Let's say that there is a unit person a DBCCText derived class TestDbContext with related set person public class person {[Key] Public Ent ID {Received; Set; } Public string name {get; Set; }} Then a batch update can be ...

Entity Framework bug with table name? -

मेरे पास तालिका फ़ोरम और इकाई फ़ोरम है। लेकिन जब मैं इस तालिका के लिए क्वेरी कर रहा हूं, तो इकाई फ़्रेमवर्क पीढ़ी की क्वेरी Fora तालिका में। इकाई वर्ग में फ़ोरम विशेषता जोड़ें तालिका ("फ़ोरम") मुझे उचित क्वेरी मिलती है। ऐसा क्यों होता है? यह वास्तव में एक बग नहीं है, फोरम का उचित अंग्रेजी बहुवचन रूप है Fora हालांकि, आपने अपने प्रश्नों के उत्तर दिए हैं। आप वास्तव में एक विशेषता तालिका ("मंच") जोड़कर इसे हल कर सकते हैं। स्रोत:

language agnostic - Finding angles of dots to make a mechanical wave effect -

Image
This is just for fun. I have the following values: Number of rows The radius of their circle (universal) And this is the picture that I want to achieve: I think the rotation speed of each point is the same Update : Yikes! Thanks for all your answers. However, I manage to create myself, but in different patterns: Argument in constructor side only: circle with dots (): timer (clock), angle (angle-counter 0 = angle_counter> ANGLE_STEP = 20; And also (to rotate the dot): x = table_cos [angle] * radius; Y = -table_sin [angle] * radius; As I said in my comment that it is only raising the diagonals, so you have everything. There is a processing JS sketchpad (it is slow, you can copy it in.) Copy local processing installation to run it fast): The related part is: ang = (xy) * scalefac + Anim; Float xpos = x * xscale + sin (ang) * cwidth / 2.0; Boat ypos = y * yscale + cos (ang) * cheute / 2.0; Arc (xpos, ypos, 4,4,0, pi * 2); if Someone ...

asp.net mvc - how to get values of checked rows in kendo ui grid? -

I am trying to get the values ​​of rows of selected rows in a condo grid. Please see, for example, on a button click, I have to get all the names or IDs of names selected as an array or a comma separated string. How can I do that? Thank you. Kando Grid $ ('# getNames'). Click (function () {// How to get all the names of the selected rows? Warning ('You have selected these people:')}); $ ("# Grid"). Kendo Grid ({Data Source: {Type: "Odata", Transport: {read: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"}, page: size: 10} Groupable: True, Sortable: Correct, Page Eligible: {Fresh: Right, Page Size: Right, ButtonCount: 5}, Columns: [[Field: "", Title: "", Template: "& lt; Input Type = 'checkbox' name = 'selectcandidate' / & gt;}, {Region: "ContactName", Title: "Contact Name", Width: 200}, {Field: "ContactTitle", Title: "Contact Tit...

java - Domain model that needs to store another domain model -

Suppose I have the following simple domain model setup: class events. .} Class Schedule Event {event event; Date time date; ..} And I want to see the events as detailed as possible, I will call it class event {public zero plan (Date time date) {// Can I create and store a planned event here? // Use a repository in other words} I combine the planning method, because from within the omnipresent language, you plan an event that happens in a planned event in the future. . Therefore it seems natural to put the method of planning in the event class. I have always read that you should not use repostories in domain objects, I can understand why, but how do I solve the above version? Does such domain events occur in the game? class event {public zero plan (date time date) {DomainEventPublisher .instance (). Publish (New planned art-crafted (this, date))); } Where will the domain event ensure that any planned event will be created and stored (by a repository)? Is i...

javascript - AngularJS $rootScope not working as expected -

I searched my problem but could not find the solution. I want to be able to cross a variable starting from an http.get to anular as an angle at http.post. The problem is that my retire array is always empty what you want to get my plnkr code Can get on with the comment. In Javascript, calls are asynchronous You call $ $ http.post $ $ http.get in response Will be: $ http.get ('someurl'). Success (work) {var data_array = JSON.parse (data); var tempArray = new Array (); tempArray ['hi'] = 'hi'; $ rootScope.post_array = tempArray; console.log ($ rootScope. post_array); $ http.post ('some-other-url', $ rootScope.post_array) .success (function) {console.log (data);})});

java - Spring webservice won't read JSON -

It did not seem to bump for more responses as a question editing, I continue to ask in a new thread I am The thing is that I am trying to establish a very basic web service with Spring, for which I should send JSON via Java. But I'm very new to Spring, and in general web services, so I do not know where the troubleshooting is from. Old question: Now I have this in my controller @RequestMapping (value = "/ toggleB") Send public @ResponseBody string Send this string to / P> {"IP": "192.168.1.9"} returns a return code of 400. The thing is, I think there may be some confusion or may disappear in build.gradle (or pom.xml). My main method is runnable, and looks like this: import org.springframework.boot.autoconfigure .EnableAutoConfiguration; Import org.springframework.boot.SpringApplication; Import org.springframework.context.annotation.ComponentScan; @ComponentScan @EnableAutoConfiguration Public class mainFile {pub...

Read & write AT command to serial port in C -

I am trying to switch the modem in command mode, write the AT command and parse the response, but with C Not very good and I do not understand what is wrong. The code I am calling is: zero switch_to_command_man (int yuat) {current_command_type = BTCommandTypeSwitchToATMode; Four switch CMD [] = "\ x2F \ x2F \ x2F"; Four empty symbol [] = ""; Four checkat [] = "at \ r"; Ssize_t lane = 0; Write (Uate, Empty Symbol, Stellen (Empty Symbol)); Sleep (1); Write (UET, Switch CMD, Stellon (Switch CMD)); Sleep (1); Write (Uyert, Czech, Stalin (Czechat)); Four buffer [255]; / * Input buffer * / four * bufptr; / * Currently buffer * / int nbytes; Bufptr = buffer; While (ioctl (uart, fionread, (unsigned long) and len) == 0 & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp & nbsp; ln; 2) {warnx ("wait"); usleep (1000); } While ((nbytes = read (uart, bufptr, buffer + size (buffer) - bufptr - 1))> 0) {bu...

java - what is the need to transfer an object via network using serialization -

I am going through the serialization topic and read that through serialization we move an object through the network can do. What is the need to trash any object state through Newark and give me a scenario where this transfer is useful "post-text" itemprop = "text"> me Provide a scenario where this transfer is useful I had a similar problem some time back. I was considered how to serial an object but why did not understand. Imagine the real-world example like drive through fast food restaurants. You tell your commands in the microphone and the employees put it in the application. Now wants to see an order on your monitor in the kitchen and you have to make cheesburger and large cola. If he is running another example of application on different JVM, then the "microphone app" sortes the sequence and sends it to the "kitchen app" There are other ways to do this , I.e. file through the basic Txt network, but in this case, bo...

php make next set of items on a limited while loop -

relates to the above topic, if the example Ill is showing the next 10 items on a separate block (Page or other loop), what can be the code for it? Personally I do not agree with your example link with loops in my humble opinion It is a bit old to pass some data processing and offset a limit, such as the database query with LIMIT 0,10 or LIMIT 10,10 (in MySQL) is more common. Then you can learn only a few through the whole set, because you will always get the maximum of 10. If you search something like "PHP MySQL endorsement" then you will find many resources on Google that explain it Your question is very common to give you a specific answer.