Posts

Showing posts from January, 2014

nullpointerexception - Error in .getText() in a parseInt in Java -

इस सवाल का पहले से ही एक उत्तर है: 12 उत्तरों मुझे पता है कि शीर्षक शायद न हो उस सहायक हो मैं क्षमाप्रार्थी हूं। मेरी समस्या यह है कि मैं जीयूआई में इस्तेमाल होने में मदद करने के लिए एक सरल एमपीजी एप्लीकेशन बनाने की कोशिश कर रहा हूं। मेरे पास गैलन और एक मील JTextField है। एमपीजी को प्रदर्शित करने के लिए मेरे पास एक ेक्टेबल जेटेक्स्टफिल्ड भी है मैं उपयोगकर्ता इनपुट को पूर्णांक में कनवर्ट करने की कोशिश कर रहा हूं, फिर गैलन के मील प्रति गैलन के परिणाम के लिए गैलन और मील इनपुट को विभाजित करने की कोशिश कर रहा हूं, जो प्रदर्शित किया जाएगा। मेरे पास नीचे प्रदर्शित किए गए पैरासेन्ट हैं: int mil = पूर्णांक। पैरासेन्ट (मील 1 .gettext ()); इंट गैल = इंटिजर.परसेन्ट (गैलट्स 1.गेट टेक्स्ट) ()); तब एमपीजी: int mpg = gal / mil; यह कोड में कोई त्रुटि से पता चलता है, लेकिन मैं इन त्रुटियों को मिलता है एक बार मैं एप्लिकेशन को चलाने के लिए यहां जाएं: एप्लिकेशन पर java.lang.NullPointerException। & LT; init & gt; (app.java:40) एप्लिकेशन को $ 1.run (app.java:26) java.aw...

spring - How to set servlet path for every request through MockMvc -

Is it possible to set servlet path for all requests (receiving, posting, inserting, deleting) that Go through MockMVC? The spring transmission servlet is mapped to / rest / *, but in my testing, I have to remove the rest in the URL otherwise the spring test does not recognize the controller. Edit @ Sotirios: anything is possible: Maywvetsstes public class {private Mokmvisi Mokmvisi; @Before public void setup () {mockMvc = standaloneSetup (New AccountController ()) .defaultRequest (find ( "/") .contextPath ( "/ app"). ServletPath ( "/ main") .accept (MediaType.APPLICATION_JSON). } } but I may be surprised how to set servlet path for all requests. it is only possible to define servletPath with standaloneSetup "itemprop =" text "> I have had problems with ServletException (" Circular View Path ... ") which is only real In deployment but with MockMvc Hama Sector has never tests. The problem is that a method...

c# - regular expression not matching mutiple results, when matching against a single line -

Does anyone work with regular expressions? .. I am running the following RegEx: On the following text: & lt; Text & gt; Initial Text & lt; / Text & gt; & Lt; Comment & gt; & Lt; Users & gt; 6 & lt; / User & gt; & Lt; Date & gt; 635277984371174139 & lt; / Date & gt; & Lt; Body & gt; Recorded clinical data: 0132.00 MD Dud & lt; / Body & gt; & Lt; / Comment & gt; & Lt; Comment & gt; & Lt; Users & gt; 6 & lt; / User & gt; & Lt; Date & gt; 635277984559612059 & lt; / Date & gt; & Lt; Body & gt; Recorded clinical data: 0132.00 Managing Director ii & lt; / Body & gt; & Lt; / Comment & gt; & Lt; Comment & gt; & Lt; Type & gt; Complete & lt; / Type & gt; & Lt; Users & gt; 6 & lt; / User & gt; & Lt; Date & gt; 635277984668163579 & lt; / Date & gt; & Lt; Body & gt; Kkk & lt;...

String handling and encoding between Java and Oracle -

I have some code that does something like this: string incoming Content = getContent (); If (incoming content.line ()> 14) {incoming content substrings (0, 14); } GetContent () returns a string with the text "Lorem Ipsum § Lorem ipsum" The returned string is saved in an Oracle database, but Oracle complains that the string is greater than the column size. The column size is defined as VARCHAR2 (14 BYTE) . Why is there any idea? I suspect that this is the character in the § string but I'm not sure. I know that Oracle database only supports UTF-8, can it be the reason for wrong size / string length? JAVA says that it is 14 letters, but Oracle thinks it is not like that. Because the data type in oracle is byte instead of alignment CRAR Alignment You are eating out of 14 of the "slots" available at the end with any multi-byte characters. For example, VARCHAR2 (2 BYTE) will have two 1-byte characters or only one 2-byte character (...

c++ - Print CGAL arrangement with Qt -

मैं एक CGAL व्यवस्था का उपयोग कर रहा हूं। यह मेरा व्यवस्था है I : टाइप किया गया है CGAL :: CORE_algebraic_number_traits Nt_traits; Typedef Nt_traits :: तर्कसंगत तर्कसंगत; Typedef Nt_traits :: बीजीय बीजीय; Typedef CGAL :: कार्टेशियन & lt; तर्कसंगत & gt; Rat_kernel; टाइपेडएफ़ रट_कर्नल :: Point_2 Rat_point_2; टाइप कियाइफ़ रेट_कर्नल :: सेगमेंट_2 रट_सेगमेंट_2; टाइप कियाइफ़ रेट_कर्नल :: सर्किल_2 रैट_कैक्रिकल_2; Typedef CGAL :: कार्टेशियन & lt; बीजगणितीय & gt; Alg_kernel; Typedef CGAL :: Arr_conic_traits_2 & lt; Rat_kernel, Alg_kernel, Nt_traits & gt; Traits_2; टाइपफीफ्सटीट्स_2 :: प्वाइंट पॉइंट पॉइंट 2; Typedef Traits_2 :: Curve_2 Conic_arc_2; Typedef CGAL :: व्यवस्था 7 & lt; Traits_2 & gt; Arrangement_2; मैं जानना चाहूंगा कि मैं एक क्यूटी विंडो में यह कैसे Arrangement_2 प्रिंट कर सकता हूँ मैं वास्तव में एक उदाहरण की सराहना करता हूं। क्यूटी डेमो कोड को पर देखें डेमो / व्यवस्था_ऑन_सुरफेस_2 , सीजीएल टारबॉल में आपकी ज़रूरतों को पूरा किया जाना चा...

ruby on rails - unable to display images on heroku -

When I run the website locally, it works fine. Nevertheless, after being pushed to Heroku, it is displayed as a broken image & lt; Img src = "Assets / Pictures Blank_avatar_male.jpg" alt = "blank_male_avatar" & gt; I tried to change the path to / properties / images / JPG and erased it again and again. There is no luck so far Please be bare with me, new to using herooku, so I am probably unable to answer your questions Thank you! My guess is that you have config.serve_static_assets your Output.rb is not right in the file. The simplest solution is to include rails_12factor gem which will do this for you

html - converting inline and internal styling to responsive layout -

I have a large site that needs to be converted to a responsive layout. Previous developers have internal and inline styling problems in all pages as well as tables. I have removed these styles and put them in an outer. It is going to be very time consuming and wondering if anyone has any suggestions or alternative ways to deal with it. Here's something I'm working on & lt; Div class = "header-top-scroller float-left" & gt; & Lt; Width of table = "1280" range = "0" cell area = "0" cellpadding = "0" & ​​gt; & Lt; TR & gt; & Lt; Width = "344" align = "left" valign = "middle" scope = "col" & gt; & Lt; Table width = "350" range = "0" cell area = "0" cellpadding = "0" & ​​gt; & Lt; TR & gt; & Lt; Width = "86" align = "left" style = "font-family: Tahoma, Geneva, without-se...

how does c++ multiple inheritance casting work? -

helped me understand a bit, but my question is slightly different from them. Casting the Basic Type I think that referencing a structure in memory in C ++ is, as a separate structure. For example: class building {int sqFootage;}; Class office: public building {int cubicles;}; Int main (int argc, char ** argv) {office * foo = new office (); / * Members of the House appear on an office after a member of SQLFoothes, * therefore, Fu Pointer actually only * with some buildings * after some additional * information * / building * bar = (building *) foo; Return 0; }; The important point here is that a building can be interpreted in memory as a building without any change in the structure. It breaks into cases of multiple parts: class animals {living alive} ;; Class Water Deluxe: Public Animal {Float Speed ​​Speed;}; Classroom Land Deluxe: Public Animal {Float Run Speed;}; Class Amphibian: Public Water Water, Public Land Delilar (Float Transition Speed); Int main (int arc, four ...

ios - Accesing the information of a NSArray inside another NSArray -

I am trying to pass data from a collection view controller to the table view controller. What do I want when a user selects an item in the collection then it passes the data of the item to the table view controller, and the table view controller presents the item information based on the chosen item but I do not know How to use data from NSARRA, which is within the second NSARRA This has declared all member variables inside the implementation file. _arrayOfChaufa = @ [@ "qUESIto", @ "Jodido", @ "nick", @ "q pajita", @ "Wuauau", @ "Tengo hambrunita", @ "jojolete" , @ "Sequito Doo", @ "Latitititis", @ "Mansuo"]; _arrayOfLomo = @ [@ "jajajaja que buena" @ "lukita", @ "losisisisi" @ "maniserio" @ "joder" @ "joselet" @ "lskadlkdl" @ "Q novedada" ,,,,,,, "@ Bah "]; _arrayOfPapita = @ [@ "Q b...

java - cannot make a static reference to a non static method -

अभी तक मेरे पास निम्न कोड है: import java.util.Scanner; पब्लिक क्लास HallLanceMemoryCalculator {निजी डबल चालूवॉल्यूज; सार्वजनिक स्थैतिक इंट डिस्प्लेमेनू () {स्कैनर इनपुट = नया स्कैनर (System.in); इंट पसंद = 0; जबकि (पसंद & lt; 1 || विकल्प & gt; 5) {System.out.println ("1.Add"); Println ( "2.Subtract"); Println ( "3.Multiply"); Println ( "4.Divide"); Println ( "5.Clear"); System.out.println ("आप क्या करना चाहते हैं?"); पसंद = input.nextInt (); } वापसी विकल्प; } सार्वजनिक स्थिर डबल getOperand (स्ट्रिंग प्रॉम्प्ट) {स्कैनर इनपुट = नया स्कैनर (System.in); System.out.println ("दूसरा नंबर क्या है?"); डबल सेकंडनंबर = इनपुट .nextDouble (); दूसरा नंबर वापसी; } सार्वजनिक डबल मिलना चालू करें () {चालू वर्तमान मूल्य; } सार्वजनिक शून्य जोड़ें (डबल ऑपरेंड 2) {currentValue + = operand2; } सार्वजनिक शून्य घटाएं (डबल ऑपरेंड 2) {currentValue- = operand2; } सार्वजनिक शून्य गुणा (डबल ऑपरेंड 2) {currentValue * = operand2; } ...

Javascript/jQuery/Ajax interface to HTTP GET api -

I am trying to find the simplest way to interface a HTTP GET API: I was able to pass in a zip Want to get code and get results json / xml / csv I copied this code () but I think I am trying to reach an external server. However, this website () is capable of joining the API successfully and returning the values, so it should be possible! I have no experience of jQuery / Ajax / other (?) As much help / code as possible will be appreciated! short answer: with the current circumstances, it is impossible explanation : About the request You can send with cross-origin requests, but the server should handle this type of operation. Your server does not work with it, because response verification fails (consider sampling): var option = {apiKey: 'j6M7YeDBfIo2QC3wBkS9zwJt63Q0DzKWGw3ELHg0pE3gh6MSqE10bKuhOkirU2oB', format: 'json', zip1 : '64052', Zip2: '52242', Units: 'km'}; $ Ajax ({url: 'http://zipcodedistanceapi.redline13.com/rest...

php - cURL validation on salesforce Web2Lead -

Let me lead a form for the new web (sales force) to implement a verification process within the PHP cover I am trying. {$ FirstNameErr = "name is required";} Else {$ first_name = test_input ($ _ POST [/ p> "First_name"];} if (empty ($ _ POST ["last_name"])) {$ lastNameErr = "email is required";} else {$ last_name = test_input ($ _ POST) (below ($ _ POST [ {$ Phone {name} Other {$ email = test_input ($ _ POST ["email"]);} (empty ($ _ POST ["company"])) {$ companyNameErr = "gender required";} Other { $ Company = test_input ($ _ POST ["company"]);} Here is the full php code: OK, a framework has been completely re-developed, Is allowed. If someone wants a salesperson Web 2 lead which can be easily associated with any type of form:

PHP Calculation, break point, and reset value in foreach loop -

How do you calculate a value (amount) + a value in the foreach loop? I have a cricket application where I have to calculate the loop for every 6 times and then count the specific value and then the resonance resonates. I do not have a code, but there is something like that. And there are two values: $ balls to ball ['1']; Like arrays to 1,2,3,4,5 and 300-1000 balls Running $ balls ['6']; Arrays can be 2,3,1,5 random numbers; The value comes from the mysql table column balls and runs foreach ($ ball $ As ball) {$ countball ++; // What do I need to know here that how do I calculate $ ball values ​​+ $ ball? // so I can resize it under the condition below? $ Run = $ ball ['run'] + $ ball ['run']; // If not working ($ countball == 6) {echo $ runs; } $ Run + = $ ball; // Reset the ball count to continue extra from the loop? // and reset} // and foreach However this way something works fine for the first $ countball == 6. But then i...

javascript - Entering data to a form and returning the data without duplication -

Image
I am trying to create a form in JS which takes less and high urgency and creates the output that looks Like this graphic: The problem I am running is that when I submit for a second time, it repeats all this again, so if I enter 30,40 for the first time, and another 60,80 it will be displayed: 30,40 30,40 60,80 The more problems you enter, the more problems the data gets worse. 'strict experiment'; // Output from where reference: var output = document.getElementById ('output'); // Create a new object: var todays_date = new date (); Var day = todays_date.getDate (); Var month = todays_date.getMonth () + 1; Var year = todays_date.getFullYear (); Var temps_data_low = []; Var temps_data_high = []; Var temp_data_msg = ""; Var sum_low = 0; Var sum_high = 0; Temp_data_msg + = "Date" + '' + "Low Temperature" + '' + + "High Temperature" + '& lt; Br> & # 39; & # 39; Function call () {...

node.js - Bootstraping an application, is triggers a good idea? -

I am creating an internal web application for components of building parts. I have projects in which some other tables are linked. When a user creates a new project, I want to project "bootstrap" with an original classification schema, which the user can modify for his / her project, so I have to make some copy with a default schema and it will be used by the user project There is a bond in it. I am running nodes on the backend, as Frontend and Postgres DB on the English JS. Where is the best way to keep this argument? Either I use the trigger on DB. The trigger is activated when a new post is created in the project table. Or, I will do it with complex questions in the node or is there any other way? Is there any best practice? Probably is "easy" to trigger, but I worry about the maintenance and testing of the app. Since you have a problem with the status of the database, you should resolve it inside the database. Basically there are two ways to solve it:...

php - Use with mongodb $in only showing first id -

I am working on a project that works with the Mongodb and Spinks. I have a sphinx result in an array. The array looks like this array (2) {[0] => int (33) [1] => int (34)} 33, 34 When I try to get results from Mangode, only $ is used in the first id. I have been ousted on this on my head. I have seen many examples that show how to do it, but the results are not correct. Here is the Mangode query which only gives the first ID. $ collection-> search (array ("_ id" => array ('$ in' = & gt; array (int) $ theseIds))); Now, if I change the $ archive-> Address (array ("_ id" = & gt; array ('$ in' = & gt; array ((int) 33), 34)))); I get the right results, not sure what is happening here Any help would be very commendable. Thanks! :)

grails - Groovy strange notation -

I downloaded the camel project () written in Groove and noted the file with a strange notation: package $ {package} And there is a similar thing in another project: package org.codenarc. Rule $ {RuleCategory} As far as I know this Groovy is not valid in syntax. Is there a special tool to deal with this? Thank you! those views such as groovy template files Those files are used to generate other Groovy source files

actionscript 3 - AS3. How can a global var take a value which appears in a listener Event.COMPLETE. -

यह मेरा कोड है: पैकेज {import flash.display.MovieClip; आयात करें flash.events.Event; आयात करें Flash.Display.Loader; आयात करें flash.net.URLRequest; आयात करें Flash.Display.LoaderInfo; आयात fl.transitions.Tween; आयात fl.transitions.easing। *; आयात करें flash.display.Sprite; आयात flash.events.MouseEvent; आयात करें Flash.Display.DisplayObject; आयात करें Flash.Display.BitmapData; आयात करें Flash.Display.Bitmap; आयात करें flash.display.GradientType; आयात करें flash.sampler.getSize; सार्वजनिक वर्ग Miniaturka MovieClip प्रदान करता है {निजी var आईडी: स्ट्रिंग; सार्वजनिक स्टेटिक वेर मिनीवड्थ: संख्या = 0; निजी वर् ट्विन: टीविन; निजी प्रकार tryb: बूलियन; निजी वैर बटन: स्प्राइट; निजी वैर इंडेक्स: संख्या; निजी वार अक्षय: बूलियन = गलत; सार्वजनिक वरीयता: बूलीयन = गलत; सार्वजनिक फ़ंक्शन मिनिटुरका (id: स्ट्रिंग, इंडेक्स: नंबर): शून्य {this.id = id; This.index = सूचकांक; Tryb = false; Var लोडर: लोडर = नया लोडर (); Loader.load (नया URLRequest ("images /" + id + "m.jpg")); load...

PHP Session Data for Username/Password -

मैंने लॉगिन इनपुट के साथ एक HTML फ़ाइल बनाई है: & lt;? Php शामिल करें "http : //website.com/login.php "; ? & Gt; & Lt; link href = "http://website.com/css/login.css" rel = "स्टाइलशीट" प्रकार = "टेक्स्ट / सीएसएस" / & gt; & Lt; div वर्ग = "संपर्क फ़ॉर्म" id = "संपर्क फ़ॉर्म" शैली = "चौड़ाई: 500px; मार्जिन: ऑटो; फ्लोट: बायां;" & gt; & Lt; form name = "myform" method = "post" क्रिया = "http://website.com/login.php" & gt; & Lt; p वर्ग = "फॉर्म" शैली = "चौड़ाई: 245px; ऊंचाई: 116px; मार्जिन-दाएं: 10px;" & gt; इनपुट वर्ग = "क्षेत्र" प्रकार = "पाठ" नाम = "उपयोगकर्ता नाम" प्लेसहोल्डर = "नाम "/ & Gt; & Lt; input class = "field" प्रकार = "पासवर्ड" autofocus = "" name = "passwort" प्लेसहोल्डर = "पासवार्ट" / & gt; & Lt; बटन वर्ग = ...

java - why String Array did't tak a string as first Index -

मेरे पास निम्न कोड है स्ट्रिंग [] सेप 2 = स्ट्रैडर में समस्या है; संकलक सुझाता है कि सीप 2 को स्ट्रिंग में बदलने या स्ट्रैडर के प्रकार को स्ट्रिंग में बदलना [] मैं उस बारे में उलझन में हूँ मुझे लगता है कि यह काम करना चाहिए स्ट्रिंग strAdder = null; जबकि ((strLine = br.readline ()) = नल) {यदि (strLine.contains ("& gt; & gt;")) {स्ट्रिंग [] sep1 = strLine.split ("& gt; & gt;"); स्ट्रिंग [] सीप 2 = स्ट्रैडर; Dd = null; } यदि (! (StrLine.contains ("& gt; & gt;"))) {strAdder.concat (strLine.toString ()); } I ++; } In.close (); मुझे नहीं पता कि आप क्या करने की कोशिश कर रहे हैं stradder प्रकार स्ट्रिंग का है, जिसका अर्थ है कि आप इसे स्ट्रिंग [] पर निर्दिष्ट नहीं कर सकते। यह देखते हुए कि मुझे नहीं पता कि आप sep2 के साथ क्या करने की योजना बना रहे हैं, तब आप स्ट्रिंग sep2 = stradder या स्ट्रिंग [] sep2 = new string [] कर सकते हैं { Stradder}

ruby on rails - Why can I access :number_to_currency but not :titleize as helpers in my view? -

I think this is the default behavior I : display_with = & gt; I'm trying to use the best_in_ location. : title to format the output. How can I ensure title: is available in this namespace? Applying it to the works of a symbol, e.g. @ name.titleize , but when passed as a parameter Many thanks! Chris Have you tried to do something like that? : Display_with = & gt; Lambda {| Wei | ActiveSupport :: Inflector.titleize (v) .html_safe} You have to include the entire path because it is not available in ideas. The reason @ name.titleize is working because this method is in any other related to the string class. Vs

python - splitting strings using re.split -

मेरे पास फ़ॉर्म के कई स्ट्रिंग्स (> 1000) हैं: \ r \ n सेंसर सिसिग \ n अध्यक्ष \ n कुटीर \ n कम ग्रीन साइक्लो \ n सँगचॉन \ n पहियों पर सीओल \ n कैसा भारतीय \ n \ n आनंद ले जाना \ n वाम आउट! \ N लिबा फलाफ़ेल \ n मिर्च पनीर बैंडिट \ r \ n '\ N' से पहले स्ट्रिंग्स का एक रिक्त स्थान हो सकता है। मैं इन तारों को कैसे एक अलग तरीके से विभाजित कर सकता हूं ताकि किसी भी रिक्त या डुप्लिकेट (व्हाट्सपेस केस) तत्वों से बचें? मैं उपयोग कर रहा था: re.split (r '\ r | \ n', str) संपादित करें: कुछ अधिक उदाहरण: \ r \ n क्रेम ब्रूली कार्ट \ r \ n अब क्रि अप करें \ r \ nKoJa रसोई \ r \ n जाओ पर \ r \ n विशिष्ट पुश \ r \ nEbbett का अच्छा चलना \ R \ n फ़िट्टेन बर्गर \ r \ n जाओ सफ़ाई \ r \ n हियाया \ r \ n एएसजेजे \ r \ n केंडर्स ट्रक \ r \ n ब्लू सैगोन \ r \ r \ n अध्यक्ष \ r \ n सँगचॉन \ r \ n पहियों पर सील \ r \ आर \ n स्ट्रीट कुत्ता ट्रक \ r \ n कींडर्स ट्रक \ r \ n यम्मी बीबीक्यू \ n लॅक्सियों का जमे हुए कस्टर्ड \ r \ n ड्रास्की की हॉट रॉड रसोई \ r \ n एक गो \ n प...

c++ - moving a opencv visual studio project -

I am working on an OpenCV project with Visual Studio 2013 and the version of OpenCV is 2.4.8. The problem I have is that when I move the .exe file that is created from second to Visual Studio, it complains that DLL files from OpenCiv Library are located in the C: \ OpenCV directory. Here is an error message: System error: The program can not be started because opencv_core248d.dll is missing from your computer. Try to reinstall the program to fix this problem Thank you in advance for your help. You need to add either the directory in which all those DLSs are included in you , Or insert all those required DLSs in executable (or your executable where your DLS are located) in the same directory. They are dynamic libraries, so the program requires access to them when it tries to execute.

c - Setting value stored at address using x86 ASM -

I am trying to get my head around some inline ASM but for some reason it is not behaving Why was not this value equivalent to x 62 as I expected? #include & lt; Stdio.h & gt; Int main () {int x = 525; Int * y = & amp; X; _asm {mov eax, 62 mov [y], eax} printf ("% i", x); Getchar (); Return 0; } Code results in the 525 output I expected it would be 62. Here is a perfectly appropriate misconception: Definitely [ Or] would mean [0xCCCCCC] (assuming X was 0xCCCCCCCC) In high-level theory, yes trouble, in the actual assembly [0xCCCCCCCC] Not that the CPU can not directly define a memory address - it can only load a value from that address, then dereference that . Similarly y is a variable , not registered , it is contained y or y inside asm is considered equal to the address of the block & y c 2 In the code outside, as you can see in a debugger, what has happened, only ignores the brackets that do not understand the codec ...

big o - Big O notation complexity for GF (Galois Fields) multiplication between array and matrix -

यह प्रश्न एक सटीक डुप्लिकेट है: 2 जवाब मान लीजिए A = [1 0 1 0], बी = [1 0 1 0 0 0 0 0; 0 1 1 0 0 0 1 1; 0 0 1 0 0 1 0 0; 1 0 1 0 1 1 1 1] ए और बी जीएफ (2) (गाल्वा फील्ड) में हैं। जैसा कि हम ध्यान दें, (सी = ए.बी.) प्राप्त करने के लिए, 4 गुणा क्रियान्वयन और 3 अतिरिक्त संचालन हैं। इस मामले में, सी = एबी = 1 0 0 0 0 1 0 0 प्रश्न, सी प्राप्त करने के लिए बिग हे संकेतन क्या है? यह सिर्फ ALU (अंकगणितीय तर्क इकाई) पर एक ऑपरेशन है, । यह ओ (एन ^ 2) है जहां n संख्या की लंबाई है ... आप विभिन्न गुणा एल्गोरिदम की जटिलताओं को पा सकते हैं।

coldfusion - Need to send a string to another server with PGP encryption -

A customer is asking me to post an XML string for a third party hold that the XML is from PGP It has to be encrypted, they have given me a public key that looks like this: ----- BEGIN PGP Public Key Block ----- Version: GNUPG v1.4.14 (GNU / Linux) There is very little information about doing this with Called Fusion on I Riaforge A project that could do the job but it needs to be installed on the server. My question is establishing PGP on the server to do the same. I have not even heard of PGP in a decade and have never encrypt anything with it, so any insights will be highly appreciated.

mysql - Database schema: Key/Value table or all keys in one record -

I think this is part of the philosophical question. I need to collect pathology results for the group of patients and store them in the database. In the past, I have used a very simple table structure (simplified): + --- ---------------- + ---- ---------- + ------ + ----- + ----- ---- + ------- + | Field | Type | Faucet Key | Default | Extra | + ------------------- + -------------- + ------ + ----- + - -------- + ------- + | ID | Bilent (20) | No | PRI | Faucet | | Updated | Day-time No | PRI | Faucet | | Patient ID Varchar (255) | No | | Faucet | | Name | Varchar (255) | No | | Faucet | | Price | Varchar (255) | No | | Faucet | + ------------------- + -------------- + ------ + ----- + - -------- + ------- + I look at the schema design more often: + - - ---------------- + -------------- + ------ + ----- + ---- ------ + ------- + | Field | Type | Faucet Key | Default | Extra | + ------------------- + -------------- + ------ + ----- + - -------- + ------- + | ID | Bilent (20...

linux - tar returns 1 in script, but not interactively -

If I run the following shell script (ie the tar file then delete the source if it succeeds) #! / Bin / bash tar cvf /home/acampton/vortex_data/2014-02-14/tmp-2014-02-14-test2.tar-C / home / acampton / vortex_data / 2014-02-14 SIC_17_RADAR -2014-02- 14_all_no_dups.How if [$? -a 0]; Then "Delete files" - "Deleted" at the time of "Successful" ($?) And then "Delete echo files" - "Failed" ("$") "" Date This returns 1 (the source file is being changed when stored) acampton @ ALIEN: ~ / work / spm $. / V1.sh SIC_17_RADAR-2014-02-14__all_no_dups.csv Do not remove files - Tar unsuccessful (1) Timed on February 18 10:38:16 EST 2014 But if I run it interconnected, it works (every Bar!) Accepton @ ALIEN: ~ / work / spm $ tar cvf /home/acampton/vortex_data/2014-02-14/tmp-2014-02-14-test2.tar- C / Home / acampton / vortex_data / 2014-02 -14 SIC_17_RADAR-2014-02-14_all_no_dups.csv SIC_17_RADAR-2014-02-14_all_no_d...

javascript - Kendo UI Datasource Limitation -

I am having a problem with getting values ​​of an array within the keyndo ui data source object, I have several things Searched and tried, but in 3 weeks the solution was not found. Actually I want to get the value of the array named 'base64img' which is assigned as a field in the Candido UI datasource, but I am unable to access the array value data. Here are all my statistics: (If there are errors in the response, please note, as I have modified for security purposes) XML response - & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; Soapenv: envelope xmlns: soap = "http://schemas.xmlsoap.org/soap/envelope/" & gt; & Lt; Soapenv: body & gt; & Lt; Retrieve unit response xmlns = "http://lal.lala.com/lala/messages/" & gt; & Lt; IncidentStructure & gt; & Lt; GeoLoc & gt; LALA1 & lt; / GeoLoc & gt; & Lt; Accountant & gt; Party & lt; / Eclipse & gt; & Lt; ...

c++ - Function causes mysql_close() to leave connection thread open -

The work given below was found to be responsible for a heavy connection leakage, because each thread passes the cone as the parameter The connection was uncharted. Work all the queries as expected, just the mysql_close () function can not stop the connection thread. This function is fine and I do not remember to change anything since finally working. Just the project was changed where it was used and there were some compiler flags. I read it in: mysql_close () Deals the connection handle is indicated by mysql if mysql_init () handle Was allocated automatically by mysql_connect (). But do not understand, and do not know how to test. int mysql_get_item_id (MYSQL * conn, const char * item_e, const unscripted long * ip_nr, bool * is_new_item = NULL) {char ip_nr_string [10]; Std :: sprintf (ip_nr_string, "% lu", * ip_nr); String query = "SELECT id FROM item_unique WHERE item = '" + (string) item_e + "' LIMIT 1 '; if (mysql_real_que...

java - How to load and save files in Android? -

I have to load "configuration" type files for my program in Android, both of them. NLP Library I am still new to Android, and I have trouble finding folders to keep files, so I can access them when activity starts. I also need to create / save / load a file type for my program is specific, and I do not know where to place it, I can find all of those here that have input strings Using the getAssetManager () function to fetch, but I definitely need the file object so that they can load into my already existing desktop software code. Use again (as well as libraries they need anyway) I have seen people using the "res / raw" folder, though ADT did not make this project a "raw" file - So I'm not sure what to do there. Here's how I usually start the software in the desktop version, but these files need to be brought in the Android environment: Brain Start (new file ("memburbic core"), new file ("en_pos_maxent.bin"), new fi...

jquery - Sending an error or success message only after all files have been processed -

I am trying to send success or error messages to the blueships once all the files are processed ... Otherwise the first file will send success message and if there is an error in the second file, then this error will also trigger. Here is my code: // launch the jQuery file upload widget: jQuery ('# fileupload'). Fileupload ({url: url, done: function (e, data) {var response = jQuery.parseJSON (data.jqXHR.responseText); var error = response.files [0] (error) {jQuery ('# error') Show (); jQuery ('# Error') .Append (' Error returned: & lt; / strong> / P & gt; ');} Other {jQuery (' #Success'). Show ();}},}); Thanks for any help! single-file upload options If you want your files to be on a single request Uploaded, you can use it: Single File Username: Incorrect, This way only 1 done callback for every file Will be triggered. Stop callback Create a global array: var temp = new array (); Then your done , ...

windows phone 8 - how to Add custom Convention for caliburn.micro? -

In my project, I need to force the visibility of the UI element for the bool property, as you know that caliburn Conference "CanName" in .micro, that's why I think adding my own custom conference. Then I found the Autobinding with the naming I add this code to my project in this project [Visibility, but this does not work and the conference "CanName" also does not work ConventionManager.AddElementConvention & LT; FrameworkElement & gt; (Control Visibility Property, "Visibility", "Invisible"); Var baseBindProperties = ViewModelBinder.BindProperties; SeeModelBandar BindProperties = (Framework Illustrations, See Modell) = & gt; {BinduismiTiperties (framework notices, visual model); Return basebind properties (framework elements, see modell); }; Fixed zero BindVisiblityProperties (IEnumerable & lt; Framework Element & gt; Item, Type View Model) {foreach (Framework element element in item) {string PropertyName = element....

Python: Find a substring in a string and returning the index of the substring -

मेरे पास है: एक फ़ंक्शन: def find_str (s) और एक स्ट्रिंग: "जन्मदिन मुबारक" , मैं अनिवार्य रूप से "py" इनपुट करना चाहता हूं और 3 वापस भेजना चाहता हूं, लेकिन मुझे इसके बदले बदले 2 मिलता है कोड: def find_str (s, char): index = 0 यदि char में s: char = char [0] ch के लिए एस में: यदि CH: s: अनुक्रमणिका + = 1 यदि CH == चार: रिटर्न इंडेक्स अन्य: रिटर्न -1 प्रिंट (find_str ("जन्मदिन मुबारक", "पी")) यकीन नहीं है कि क्या गलत है! आदर्श रूप से आप उपयोग करेंगे या जैसे पाशवी हाथी ने कहा । लेकिन आपने कहा है कि आप नहीं कर सकते ... आपकी समस्या केवल आपकी खोज स्ट्रिंग के पहले अक्षर के लिए कोड खोज है जो कि (पहले वाला) इंडेक्स 2 पर है। आप मूल रूप से कह रहे हैं कि यदि char [0] में s है, वेतन वृद्धि अनुक्रमणिका जब तक ch == char [0] जो 3 पर वापस आ गया जब मैंने इसका परीक्षण किया लेकिन यह अभी भी गलत था इसे करने का एक तरीका है। def find_str (s, char): index = 0 यदि चार में s: c = char [0] s में ch के लिए: यदि ch == c...

python - Paginated based on the alphabet (A-Z) -

I have a simple contact application where I want to paginate the contact list based on the first name alphabet. Here's my idea def contact (request): contact_list = contact.objects.filter (user = request.user) .order_by ('first_name') return render (Request, ' This is my template & lt; ul & gt; Contact / contact html' {contact_list}: contact_list}) gt; for contact in / code> {Contact_list%}; & Lt; A href = "/ contacts / {{contact.id}} /" & gt; {{Contact.first_name}} & lt; / A & gt; & Lt; / Li & gt; {% Endfor%} & lt; / Ul & gt; Is there a default way in Django that does this? Is there but I think that only divides data into pages, what would be the easiest way to do this? It seems that a letter-based constructor is not present in the error. Such as page & lt; & Lt; & Lt; It shows a hand-made implementation. However, this is not so difficult to apply: You can base yourself on th...

javascript - Getting undefined for jQuery position variable -

$ ("# कैप्चर")। क्लिक करें (फ़ंक्शन (इवेंट) {var photoCoords = $ ("# doge1 ") .position ();}) उपयोगकर्ता को #capture आईडी के साथ कैप्चर बटन पर क्लिक करने के बाद मैं एक तस्वीर के निर्देशांक प्राप्त करने के लिए ऊपर का उपयोग कर रहा हूं छवि में # doge1 का एक आईडी है जब मैं सांत्वना में var फोटो कॉओर्ड टाइप करता हूं, तो मुझे अपरिभाषित की वापसी मिलती है। इसकी एक गुंजाइश मुद्दा चर अज्ञात समारोह के बाहर सुलभ नहीं है अगर आपका डिबग करने की कोशिश कर रहा है - आप कंसोल। लॉग स्टेटमेंट को अनाम फ़ंक्शन में भी डाल सकते हैं। अन्यथा आप को वेरिएबल को एक दायरे में घोषित करना होगा जहां यह आपके लॉग स्टेटमेंट के लिए सुलभ होगा। $ ("# कैप्चर")। क्लिक करें (फ़ंक्शन (इवेंट) {var photoCoords = $ ("# doge1")। स्थिति (); console.log (photoCoords);})

java - How to remove a property from a spring bean -

I want to remove an asset from a spring bean, this property is an object or Java primitive-ish type (string, int , Map ..) & lt; Bean id = "test" class = "meat. Xxxx" & gt; & Lt; Property Name = "User" ref = "Mete.Tech" /> & Lt; Property name = "other" ref = "meetst others" /> & Lt; / Bean & gt; I can create a new class to implement BeanFactoryPostProcessor and override PostProcessBeanFactory I do not want to remove this method, but I do not know how to remove an object property from Bean property. Thank you. It is not clear what you want to achieve, but if you want to remove, for example For, & lt; Property name = "other" ref = "me.test.other" /> Before the bean started, declare beanfactor post processor with the following implementation in its implementation @Override Public Zero Post Process throws the BENFactor (Configurable Liquid BinF...

jquery - Submit checkboxes via ajax without a form in Rails -

How can I submit checkbox values ​​to a Rail 3 controller via AJAX (in a post Without wrapping)? In other words, how can I serialize an array's checkbox with no form. Any help with this would be greatly appreciated thanks! Here I am trying to do specially: See: & lt; Ul & gt; & Lt;% = @ item. Items | & Lt; Li & gt; & Lt;% = checkbox_tag_tag "item_ids []", item.id, false ,: class = & gt; "Item-checkbox"%> & Lt;% = item.name% & gt; & Lt; / Li & gt; & Lt;% end% & gt; & Lt; / Ul & gt; Controller: Class item controller & lt; ApplicationController response_to: html ,: js ,: json. . Parameter [: item_ids]} End End javascript: def update_multiple_items item.update_all ({: category_id = & gt; params [: category_id]}, {: id = & Gt; $ ("# update-link"). Click (function () {var categoryId = 2; var itemsArray = $ (". -Image-checkbox: checked") SerializeArra...

requirejs - Should I return Marionette view instances from view modules? ---require JS marionettee -

If I am using JAVA with Marriott and I have a module to look for, then I Should an example be returned? (And why) You should return the visual definition, not for example. Define (['Marienet'], Function (Meriannet) {return MeriNet.view extension ({standard: function} () {// some}});}); This is the reason why, once the module needs to be evaluated and then caches the result. So if you want to return the example that would be the only example created from that scene, then you will not be able to create other examples. I hope this will answer your question.

c++ - How to pass "this" pointer to a global function -

// यह है AsynchronousFunction वर्ग हेडर फाइल typedef int (* functionCall) (int, int); DWORD __stdcall functionExecuter (एलपीवीओआईडी pContext); // वैश्विक फ़ंक्शन वर्ग एसिंक्रोनस फंक्शन {int param1, param2; फ़ंक्शनकॉल fCall; हैंडल एम_हेन्डल; सार्वजनिक: एसिंक्रोनस फंक्शन (फ़ंक्शन कॉल, इंट, इंट); ~ AsynchronousFunction (); पूर्णांक परिणाम (); संरक्षित: निजी: int returnVal; }; यह कार्यान्वयन के रूप में AsynchronousFunction :: AsynchronousFunction (functionCall fCall, पूर्णांक param1, पूर्णांक param2) इस प्रकार है: m_handle (CreateEvent (शून्य, झूठे, झूठे, शून्य)) {bool ख = QueueUserWorkItem (functionExecuter, इस, WT_EXECUTEDEFAULT); प्रतीक्षाफ़ोसरसिन्लेऑब्जेक्ट (एम_हेन्डल, INFINITE); SetEvent (m_handle); } एसिंक्रोनस फंक्शन :: ~ एसिंक्रोनस फंक्शन () {CloseHandle (m_handle); } एसिंक्रोनस फंक्शन :: परिणाम () {वापसी 0; // अभी तक कार्यान्वित नहीं किया गया है} DWORD __stdcall functionExecuter (LPVOID pContext) {वापसी 0; } यहां pContext "this" सूचक प्राप्त करता है मेरा प्रयास य...

php - Getting data from page to program -

I have UISplitView and I want to populate the controller on the left with values ​​from a database I am trying. I have this phpcode. $ query = "select name from country"; $ Result = mysql_query ($ query); While ($ line = mysql_fetch_assoc ($ result)) {$ json_output [] = $ line; } Echo json_encode ($ json_output); However, when I come to my iOS app, I have this code in my viewDidLoad NSURL * myURL = [NSURL URLWithString : @ "Http://www.mywebsite.com/index.php"]; NSArray * test = [[NSArray alloc] initWithContentsOfURL: myURL]; Typear = [[NSMUTABARARAOL] INNTH WITH CONTENT OFF URL: TEST]; and cellforRowAtIndexpat I added cell.textLabel.text = [TypesArray objectAtIndex: indexPath.row]; Therefore, when I run my program, I hope to see my values ​​listed in the leftviewcontroller , but sadly it appears to be empty. NSLog also appears blank, some help wants why my values ​​are not being added to my app thanks NSMutableURLRequest * Request ...

cordova - Using phonegap to develop iphone app on visual studio -

I'm totally new to mobile app development and basically c #. Pure developer Recently, I need to develop an iPhone app. Some experts suggested that I use the Iconium extension for Visual Studio and PhoneGap. I want to know how to use / install phonegap for this and how does phonegroup help in developing this application? What is the difference between ICAnim and PhoneGap? I know that both cross platforms help in developing the app. The Taylor Appbilder (formerly known as Icenium) is a set of IDE and cloud-based build tools that allows you to use PhoneGrap / Cordova. You should read on it to make cross-platform applications and use your free trial here:

intel-xdk: can we get the source code for different platforms? -

I am building Intel XDK NEW 0419 I have been working since 2-3 weeks. Everything is working fine but I need the source code of Android Build (or any platform). If this is possible, how do I get it? I do not think it is possible, Intel is free to use XDK and I have heard that their containers An older version of was available as an open source, but no longer. Still, you can ask them yourself, they give a quick answer to all the questions :)

android - App not uploading on PlayStore -

I have published the Play Store on my store since about 2 days Package name is com.codebrew.bmp3 The app was properly published and the Sports Store said that it will be available in the shop soon (I have uploaded many apps and every time this message comes, because Google takes time to analyze it). But this time, it's been too long I did not get an app using the URL. Any help would be appreciated. Thanks! EDIT: After uploading this app, I uploaded another app and it is available on the store. Where did you upload it? Production? Beta? Or alpha? If beta and alpha you can not see it on the Play Store website because it is only available to the tester.

html - How do I create this div id? -

I am trying to create a django template generated table. How can I do this? & lt; Div id = "holder" onclick = "dostuff ()" & gt; & Lt; Table id = "table" bgcolor = "{{c.color_hash}}" & gt; & Lt; Tbody & gt; {& Amp; For S. xnum_rows & amp;} & lt; Tr id = "r" & gt; {& Amp; S.num_columns for Y & amp;} & lt; Td id = "c" height = '{{s.height}}' width = '{{s.width}}' & gt; & Lt; / Td> {& Amp; Endorph & amp;} & lt; / Tr & gt; {& Amp; Endorph & amp;} & lt; / Tbody & gt; & Lt; / Table & gt; & Lt; / Div & gt; Where & lt; Tr id = "r" & gt; from X to {& amp; For x in s.num_rows & amp;} . I know that id should be of value for loop Any clue? Thanks Burhan Khalid used {{x}} but templates Walking in does not work in this way. "Take a look at these template filte...

WCF EF code first syncronization best practices -

An offline WPF client and WCF server is the client's use of SQL-CE or local DB-EF-code first For example, for the following scenario - the administrator can edit general information and users can add jobs, and the user can see that the lobules added him to the job, and synchronized the change made when a connection. Ask the best way to synchronize reference data. Looking at "Microsoft Sync Framework" - but it seems that then you have to implement your provider perhaps there is an easy way? Both SQL CE and localdi are supported outside the box in sync framework. You can use the same SqlSyncProvider against LocalDb There is no need to write custom sync providers.

How to set large number of items in ViewFlipper in Android -

I have ViewFlipper and have a ImageView in it. I have a large number of images, if the number of images is low, then its work is fine. How can I get a large number of flipping images? help please. I went to this same issue if you are targeting honeycomb and new advice Use adapterviewflip instead. You can search / replace ViewFlipper in your code for AdapterViewFlipper (many ways have been shared between two), and then of course you should add it to the adapter from the basapadapter. I could not find many examples of doing this, which were specific to the adapter weflipper, but this process is quite similar, such as Gridview, Listview, etc. This brief example helped me find out.

How to disable ul li link zoom in android chrome -

Image
How to disable this link zoom tool in Android Chrome with html / js / css code code> & lt; Ul id = "dropdown_address_block" & gt; & Lt; Li & gt; & Lt; A href = "map_all" & gt; Based on this word & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "vo17line" & gt; В.О. 17-я линия, 66 (24 bars) & lt; / A & gt; & Lt; / Li & gt; ... & lt; / Ul & gt; There are some things you can do: Make sure you have a viewport Increase the touchable area (i.e., increasing the font size) Give the space around the element with more margins so that the chrome is clearly understood by you when clicked At a high level I explain Try what the Chrome does, when determining whether the click should be handled or if the magnifier should be shown: But it can be summarized: Adds a large bounding box around the touch Finds all targets with the bounding box Score ea...

java - View login status real time -

I am on a Java project and I meet the problem with the view login user. My client wants to see the login time in real time, I have a solution (when the entry, status of change in DB and status updates in the user table, this is not real time, my client is updated when there is an event. ..), I know that this is a bad idea, can anyone give me some solution for this matter? Thank you.

asp.net - My jquery selectors doesn't work after update panel in content page -

I have a content page, I write some jQuery selector after the ash: updatepanel, the first time the page is loaded (Document) .ready (function ()) works right, but after a postback, the selectors no longer work, any method exists to solve this problem ?? & lt; Asp: content id = "content1" contentplaceholderid = "contentplaceholder1" runat = "server" & gt; Asp: UpdatePanel ID = "Update Pencil 1" Run = "Server" & gt; Content content & gt; & Lt; Asp: text box id = "txtdate" runat = "server" CssClass = "Persian DTP" & gt; & Lt; / Asp: text box & gt; Some code - & gt; & Lt; / Content title & gt; & Amp; Asp: UpdatePanel & gt; & Lt; Script & gt; $ (Document) .ready (function () ($. 'Persian DTP') .DadePicar ({showOn: 'Button', Button Image: 'Calendar.' ', DateF Ormat:' yy / mm / dd ', / / AppendText: '(yy / mm...

apache - Cannot resolve localhost: Unknown host on OS X 10.8.2, but 127.0.0.1 is working fine -

Mimop is installed on my MacBook Pro (OS X 10.8.2) I have both Apache server and MISCL server MAMP in green color. Are in the light but I can not access the local host; I am able to reach 127.0.0.1. (Both localhosts and 127.0.0.1 were working fine before.) Leiheteki MacBook-Pro: ~ Lehey $ Ping Localhost Ping: Localhost can not be solved: Unknown host When I try to reach the local host in Safari, it shows: Safari page can not open "http: // localhost /" because Safari Server can not fix "localhost" In apache_error.log, it shows: [Tuesday, February 18, 2014 14:30:43 2014] [error] [customer 127.0.0.1] Customer server configuration denied: / users / lihi / desktop / sites / ddi_store My host file is located in private / and looks like this: # Host database # is used to configure the local host loopback interface # when the system is booted. Do not change this entry ## 127.0.0.1 localhost 255.255.255.255 Broadcastost :: 1 local host fe80 :: 1% lo0 loc...

Adding Tizen native application at framework level -

Is it possible to add Tizen native applications at the framework level as an inbuilt application You can also create a platform application with the Tizen SDK IDE: file & gt; New & gt; Project & gt; Tizen & gt; Tizen Platform Project This RPM builds the package. Of course you need administrator rights to make this and install it on a Tezon device. Also, do not spam the same question repeatedly, please.

java - Converting PBSELECT to standard SQL -

I'm trying to convert PowerBuilder stuff (containing PBSELECT statement) to Java. I am very comfortable with other things except PBSELECT statement within it. I want to convert to standard SQL format under the PBLabel statement. Table (name = "table_barcode_attrib_map") table (name = "table_barcode_attribute") column (name = "table_barcode.label_name") of PBSELECT (VERSION (400) TABLE name = "table_barcode") Calculation (name = "IsNull (table_barcode_attrib_map.value, 0) pacmed_valid") JOIN (Left = "table_barcode.barcode_id" OP = "=" true = "table_barcode_attrib_map.barcode_id" OUTER1 = "table_barcode.barcode_id") JOIN (Left = "Table_barcode_attrib_map.attribute_id "Op =" = "true =" table_barcode_attribute.attribute_id "OUTER1 =" table_barcode_attrib_map.attribute_id ") where (EXP1 =" (~~ "table_barcode ~~ barcode_id ~~" "OP =...