Posts

Showing posts from September, 2012

How to get camunda authorization id -

I am trying to create a REST application in Cambunda, and I want to get the default Eerahiri ID, but I do not know That's how to do this. Can anyone explain what I should do? I think I should send some requests to the server, but I have noticed the Kammunda documentation and I do not know how to get the authorization ID.

c - Stack overflow vs stack crash -

What is the difference between the stack and the stack more than the stack crash when the stack crashes? What is the stack on the flow and pile accidents, what happens when the flow over the flow is stacked on a heap? A stack is overflow and it means an overflow state when there is not enough stack memory and other data Is overwritten due to overridden behavior. Perhaps "stack crash " is probably the first one, although I have heard it (or stack corruption ) to indicate, mostly debugging In the environment, when the stack pointer becomes corrupted, causing all debugging stack-related visual stalls (as well as debugs). A Hep Overflow is generally not excluded from some memory-pool-managed conditions, because the operating system is doing a good job, you never write the memory part used to write You can. If your memory runs out then your system will tell you that fails. A HAP accident can be defined as invalid use of hep memory, e.g. Use of infringement or acce...

java - Can't find spreadsheets v3 API in Google Developers Console -

Which is the correct API for compromising the spreadsheet? They have somehow removed Spreadsheets v3 from the API selection in Project Settings. Although it is available on Oath PlaceGold ... Is it still the drive API v2? Why do they change everything so fast and do not leave any documents ... ... even their gdata-samples.java-1.47.1 is outdated because most of the OAuth 1.0 GData Java Doc IT is really awesome and their examples are so indisputably bloated spreadsheet manipulation Use the spreadsheet v3 (gdata) API if I remember, you just need to install OAuth2 Land. Or the API password is an easy way to test things, because OAuth 2 setup is a pain. Google-apps-script There's also 'Google-apps-script' that can edit this spreadsheet and much more, it's a higher level than GData and there's too much There are facilities and can do many things which GDT can not do, but GDAT has better sugarcane control. drive api drive api is good if you want ...

Is there any javascript framework like extjs? -

I hope to find the Javascript UI framework that is stable, free, fast, browser-cross (support IE8), rich UI. The Javascript is a list of UI Frameworks that are mentioned below.

html - PHP include doen't work inside subfolders -

In my project, I put my file in this folder: / test_server / However, I am creating a group inside my / test_server / css for my CSS file, the problem is that I want to add a new module for my project, which is called the Scheduler . There are several files in it, so I create another module called this test / test_server / scheduler module. I have all my navigation menus in the header file. Let's say this file is called wrapper.php. Use this file from my / test_server / css / folder & lt; Link rel = "stylesheet" type = "text / css" href = "css / style-fit.css" /> Inside the / test_server / style-fit.css located inside / test_server / css / , wrapper.php Next, I have the / scheduler.php file / Test_server / scheduler / folder I have tried to use it like $ _SERVER ['DOCUMENT_ROOT'] inside it, $ path2 = $ _SERVER ['DOCUMENT_ROOT ']; $ Path2 = "/test_server/wrapper.php"; Include_once ($ Path2); It...

php - Is possible to add Wishlist products with quantity and other attributes to Cart in prestashop -

Is it possible to add Wishlist product with quantity and other attributes to make purchases in the cart? I used the code below to add the product to the cart in managewishlist.tpl and remove it from wishlist. "b" - & gt; GetPageLink ('cart', false, tap, "add = 1 and id_product = {$ product.id_product | intval} & amp; volume = {$ product.quantity}", false). 'Html': 'UTF-8'} "rel =" nofollow "title =" {ls = 'Add to Cart'} "Data-id-product =" {$ product.id_product | Intval} "onclick =" wishlist product management ('' $ {product_id} ) .val (), $ ('# priority_ {$ product.id_product} _ {$ product.id_product_attribute}'). Val ()); "& Gt; & lt; span & gt; {ls = 'add to cart'} Please let me know Tell me how to pass the value of quantity so that I can get the result. For example, if I have a product in the wish list and its volume is 3 so whe...

java - Error on POST with Restangular -

I want to send a front end application with a complex JSON object to end the POST request. Back and Side I have a class called a notification service and there is a method named after writing a note: @ POST @Path (SERVICE_PATH_WRITENOTIFICATION) Public Response Written Notice (@formaparam ("Notification") String Notification) Front End Side I send it to: var obj = [[to: $ scope.formComboDestinatari.listaDestinatari, subject: $ scope.formOggetto, date: "xxx", body: $ scope .formTesto, type: $ scope.formComboTipologia}]; If I use this syntax: restangelular.one ('Server Path / Ryanotification'). Post (obz); When I try to send the request, I get this error: 500 internal server error If I use this syntax: restangular.one ('serverpath'). Post ('written notice', obg); 400 bad request I do not understand where my fault is. I have done wrong twice. First: This should not be in obj var because ...

graph databases - How do I write a sub-query? -

I want to retrieve all the sentences and for every one I point it to the 'same' edges I want to count the number. / P> How do I write this type of query in Gremlin? Something like this might happen in SQL .... SELECT *, (SELECT calculation (*) from tbl_like l WHERE l.id = b.id) Number of tbl_blah b Example count in map ( m ) Use sideEffect to insert m = [:]; GVsideEffect {m [it] = It.inE.has ('label', 'like'). Count ()} An option that leaves the corner with 0 likes: m = [:]; GVEN ('like'). GroupCount (M) {it.inV.next ()} Edit Finally Smart Solution: m = [:]; GV GroupCount (m) {it} {it.a.inE ('like'). The first closing of the count ()} group code determines the key to update and the second closure value for the key. When the second is off, it.a thinks the current input value to groupCount (one top here) and the previous value in it.b The map for the input object is actually a document that has no...

isolate string from variable that contains numbers php -

I am trying to isolate the text of which I have added the variable in which only numbers I saw it And I am not getting anything that works or is close to what I am trying to do. Here I am searching for: $ winning = max (array $ $ var1. "Var_One", $ var2. "Var_Two", $ var3. "Var_Tree", $ var4. "Var_Four ")); $ Winning = {Function which I remember} I have to get the string with the highest value variable and then use it in a switch case, for example: switch (winning $) {case "Var_One": echo "This variable is the highest value."; break; Case "Var_Two": echo "This variable is the highest value."; break; Case "Var_Three": echo "This variable is the highest value."; break; Default: The echo "value is bound."; } I tried to use a regedx solution that did not work and I do not want strokes. Any help is appreciated. Answer: function getMaxValue (array $ list) {$ re...

javascript - Fullcalendar add icon to event and not trigger eventClick -

I am trying to add custom "options" icon to the event. I want to click if I click on this icon So, small tooltip appears. But if I click on this icon, the eventClick gets triggered. This is my html I tried this JS & lt; Script & gt; $ ("Tecky"). ("Click", function (event) {event.stopPropagation (); warning ("test");}); & Lt; / Script & gt; event.stopPropagation (); I found it in the article but it will not help use event.preventDefault () it should help you .

html - How to align form inputs -

What is the best way to align form inputs next to labels The width of the label, as it looks very bad, if the label is very low, then specify the length (especially when using a Texter in the same form, it looks like this) 2 columns ( Inline divas or tables), for one label and for one input, because it is where the label and Input is on different lines Check this Bela & lt; Label class = "middle-inline" & gt; Label & lt; / Labels & gt; & Lt; Div class = "middle-inline" & gt; & Lt; Input type = "text" / & gt; & Lt; / Div & gt; @ Media only screen and (minimum-width: 30 AM) {. Media-inline {display: inline; }} @ Media only screen and (max-width: 30m) {. Media-inline {display: block; }} What I have done is a display property to inline and block, respectively.

SOP POS of MIPS OR function -

I'm about to study MIPS. Architecture Problem, I'm stuck. My teacher had asked me to prepare SOP and POS for education in MIPS. Oring2 registers I am confused how to do this. Should I make a map of the ?? If yes ... then got stuck again. When variables are to be considered, should I consider 32 variables in K-map? Or just 2 (A and B) ?? Anybody can help. P.S. It's just my first question that stack ... otherwise I'm getting answers to all the queries in search. thanks - I have tried to search it on Google as well as where Unfortunately this did not answer my question

spring - ClassCastException: Can't cast oracle.sql.ARRAY to oracle.sql.ARRAY in JBoss 7.1.1.Final -

DemoApp jboss 7.1.1.Final में तैनात वसंत एकीकरण परियोजना है परिणाम एक संग्रहीत से लौटे प्रक्रिया oracle.sql.ARRAY (वस्तु jboss मॉड्यूल के ojdbc जार चर्चा करते हुए) का उद्देश्य होता है और मैं जो अपवाद फेंकने oracle.sql.ARRAY में कनवर्ट करने की कोशिश की कोड: URL resultJarLocation = resultMap.get ( "returnObj") getClass () getProtectionDomain () getCodeSource () getLocation ()।; यूआरएल appJarLocation = oracle.sql.ARRAY.class.getProtectionDomain ()। GetCodeSource ()। GetLocation (); System.out.println ("परिणामजार स्थान:" + परिणामजार स्थान); System.out.println ("एप्लिकेशन जेल स्थान:" + एप्लिकेशन जेल स्थान); Oracle.sql.ARRAY वापसी ओबज = (oracle.sql.ARRAY) resultMap.get ("returnObj"); अपवाद: org.springframework.messaging.MessageHandlingException: java.lang.ClassCastException: oracle.sql.ARRAY oracle.sql में ढाला नहीं जा सकता है। ARRAY एप्लिकेशन एआरएआरई कक्षा तैनात किए आवेदन में ओजडीबीसी जार का जिक्र कर रहा है। जहां ojdbc जार jboss ...

html - Hiding other elements by one input field - Javascript -

Please provide me some small help with my Javascript code. I have an input field that hides the div element, if it is completely empty (without text): if (search_value! == "") {document.getElementById (" Frei "). ClassName = "Free 1"; } This does exactly what I want, the main problem is once activated by typing in the input field and when my input does not empty, my hidden divan appears , Even if there is no text in the input (because I erase it). This function is good only on first page loads, when I type something in input and erase it, then my javascript code is not functional. Would you please advise me how does the JavaScript code look like that there is no text in every input field in the DIV? Even when the text was deleted manually? Thank you very much and apologize for that kind of question. Iam is not strong in the original javascript. This code will only be executed on the page load, even if you want it to Run in the input, you...

labview - Split Number into high and low words in C -

I want to send data from Labavi FPGA to a function using CV API. To synchronize the data transmitter, I do the following: 1) Input: 3x I16 value 1x U16 value 2) In two steps I pack these 4 values ​​in a U64 using the number function to add to the libewiew (this is hi.lo). So it's basically: ((I16.I16). (I16.U16)) (U32.U32) U64 3) Now This U64 value is moved to the C function, where it should be unpacked like this: U64 (U32.U32) ((I16.I16). (I16.U16) ) Now I wonder how unpacking will be handled in C. Is there something like "Split Number" function in LabView? How do I ensure that all the parts were assigned the correct data type? No, no. You usually do this kind of thing that using bitview operations, mainly using shifts and masks: const uint64_t incoming = 0xfeedcafebabef00d; Const int16_t first = (int16_t) (incoming & gt; 48); Const int16_t second = (int16_t) ((Inbound> 32) & amp; 0xffff; Const int16_t third = (int16_t) ((Inbo...

c# - Multithread: ThreadPool and show image exception -

I should show the order of the image in a new thread because otherwise the frame is lost for the complexity of the conection operation. I have tried to: using (bodyfire bodyfrem = e.frame reference.acquirefreem ()) {if (bodyfram! = Empty) {if (this.bodies == Null) {this.bodies = new body [bodyfreight. Bodycount]; } // The first time called getandrefreshbodydata, Kinect will allocate in each body array. // Until those objects are not resolved and the null is not in the array, // those body objects will be reused. Bodyframe.GetAndRefreshBodyData (this.bodies); DataReceived = true; } And console. WrightLine (); } BodyCustom [] Entity custom = deserialize (directoryTxt [frameCount]); Sw.WriteLine ("frame" + framecount); If (data received) {sw.WriteLine (data received); ThreadPool.QueueUserWorkItem (showImage, frameCount); .............. and: Private zero show image (object framecount) {imageReference.Source = New bitmap image (new ury (@directoryjpg [(int framescount...

javascript - NotifySubscribers is not refreshing UI (Writable Computed) -

I have a writable writing within a custom binding to format a mapping, however, when users remove the formatted mask , The reading function is not triggered, because all the non-points being viewed are being removed, well, it should work, so I added the notification to everyone to read, even if the honorable price changes and its work, But the UI element is not refreshing the new value (see returns) Follow the code: ko.bindingHandlers.conta = {init: function (element, value, user) , All BindingsEver, ViewModel, Binding Contx) {Values ​​of Values ​​= value Axtor (), formatted = COPPATED ({read: function} {var val = ko.unwrap (valueAccessor ()); if (! Val) return Val;) if (val.toString (). Length & lt; 6) {val = zeroPad (val, 6); Look (val);} return val.toString () Piece (0, val.toString (). Length - 1) + "-" + val.toString () Piece (val.toString (). Length - 1);}, type: function (value) {if (value) {value = zeroPad (value, 6); } Overview (value location (/ \ D / g...

perl - Avoid "could not find parserDetail.ini" warning -

जब XML :: Simple का उपयोग करते हैं, तो मुझे हमेशा चेतावनी मिलती है /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX में ParserDetails.ini नहीं मिल सका {कोई चेतावनी qw (insert_your_magic_here); मेरी $ hash_ref = XMLin ('my_file.xml')} चेतावनी के बारे में मैं लाल प्रतिलिपक और एक 'कैथेगोरी हिस्टी' पाया, लेकिन मुझे नहीं पता कि यह चेतावनी किस श्रेणी में है। क्या आप जानते हैं? क्या आप जानते हैं कि उन पार्सडिटरेट्स के लिए क्या इरादा है? इसके नाम के बावजूद, सही तरीके से काम करना बेहद मुश्किल है, और आप उपयोग या बदले में बेहतर होगा। XML :: सरल आपको चेतावनी दे रहा है कि कोई प्रयोग करने योग्य SAX पार्सर कॉन्फ़िगरेशन नहीं है। चूंकि SAX विकल्पों की तुलना में तेज़ और अधिक विश्वसनीय है, मैं सुझाव देता हूं कि आप इसका इस्तेमाल करने के लिए XML :: Simple बताएं आप इसे जोड़कर ऐसा कर सकते हैं $ xml :: सरल :: PREFERRED_PARSER = 'XML :: Parser'; अपने प्रोग्राम के शीर्ष पर, एक्सएमएल :: सरल का उपयोग करने के ठीक बाद। आपको XML को भी इंस्टॉल करना पड़ सकता ...

java - Is gravity with dual or multiple constants possible -

I want to align a widget at the bottom-center of the screen. I am using a frame layout because I have a full screen app running behind the widget that I want to align. I set the parameter like this: Frame layout. Layout lp = new frame layout. Layout paragraph (frame layout layoutPem.RRAP_CONTENT, frame layout. Layoutpack.wrap_CONTENT, Gravity.BOTTOM); Using the code above, the widget is aligned with the bottom of the screen but it is not centered. Is it possible to add second constants to gravity? Yes, use gravity. CntEROriginal | Gravity Bot

java - Ehcache RMI replication works only in one way -

I have a Djibos Wildfi 8.0.0 cluster with a master and a slave. The eHatch has been configured for RMI replication with the manual option. The problem replication is only in one direction, replacing the slave Jboss with the master is working fine. There is no replica JBoss master from Das Jboss. I confirm the details of the cache with JConsole and I can see the replication in a way. I can see that cash is being made in both the masters and slaves, this issue is replicated in a way. My master Jboss is a VM Windows Server 2012, the slave JBoss 8.0 desktop I have windows do not see any errors in my JBoss console Master ehcache.xml: & lt; cacheManagerPeerProviderFactory class = "net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" property = "peerDiscovery. = Manual, rmiUrls = // myslave: 40002 / user Akadri" / & gt; & Lt; cacheManagerPeerListenerFactory class = "NetksfkehcachekdistributionkRMICacheManagerPeerListenerFactory...

Scrapy: Use particular python version -

I tried to run scary in my CTO since Centos python2.6 is installed and scattery requires dragon 2.7 I tried to create a virtual environment and ran a scamp, but I still get the error Scrapy 0.24.4 requires dragon 2.7 This spider is my output (scrapyproject) [imadmin @ im03 tutorial] $ python --version dragon 2.7.6 (scrapyproject) [imadmin @ im03 tu Torial] $ scrapy gen_spider requires Python 2.7 for Scrapy 0.24.4. I also tried to set a shell nickname: alias python = / thanks -text" itemprop = "text"> install scaf (I.e. run the pip install scrapy since activating the Virtual Envil "ScreenProject"). The way you are doing it now, the command can not be found in the virtual and scrapy , so it is called outside of the virtual and the other. Remove the PS Alias.

shell - execute last output line of previous command in linux -

How to execute the last output line of the previous command in a Linux base terminal by a shortcut? For example: $ tree The 'tree' is not currently installed. You can install it by running: sudo apt-get install tree I want to copy execution sudo apt-get install tree If the last line is safe to run, there is a simple command, and does not contain any spaces or quotes Or something else will need to be parsed / understand if this should work (though you need to re-run the first command for this Is). $ (!! 2> Tail-N1) It is being said that I do not recommend it at all. If you copy and paste it or type it, then it is very simple (and supports more complex commands). You can not get the last line of the displayed output, though you need to run the command again. Your terminal can support shortcut, although you can copy and paste though GNU screen can do this I believe that rxvt- Unicode may be supported with this perl script.

jquery - Converting a date into a description in JavaScript -

मैं एक तिथि की तुलना करना चाहता हूं (जैसे Tuesday, 04 Nov 2014 04:02:59 -0800 ) वर्तमान तिथि के साथ और नीचे प्रदर्शित करें: कुछ सेकंड पहले 10 मिनट पूर्व 2 दिन पूर्व 1 महीने पहले आदि। जावास्क्रिप्ट / jQuery में ऐसा करने का सबसे कारगर तरीका क्या है? मैंने ऐसा कुछ बना लिया है जो उपयोगी हो सकता है। फ़ंक्शन का समयअगू (डेटस्ट्रिंग) {var postDate = नई तिथि (डेटस्ट्रिंग), अब = नई तिथि (), dif = अब - पोस्टडेट, // ms s = Math.floor (dif / 1000), m = Math.floor (s / 60), h = Math.floor (m / 60), d = मठ.फ्लूर (एच / 24), एम = अब.गेटमॉन्थ () - पोस्टडेट .getMonth (), वाई = नई तिथि (डीईएफ़) .getFullYea आर () - 1970, टी = ["वर्ष", "महीने", "दिन", "घंटे", "मिनट", "दूसरा"], एक = [या, एम, डी, एच, मी, एस]; के लिए (var i में) यदि (a [i]) {a = a [i]; टी = टी [i]; तोड़;} एक + "" + (ए और gt; 1? टी + "एस"); + "पहले" लौटाएं; } चेतावनी ("यह पोस्ट बनाया गया था" + टाइमअगो ("मंगल, 04...

android - which key gets fired when user answers a call -

I swipe the green circle on the other side of the screen when I was blocking that keycode which Removed to answer any call. As far as I know every activity and block all keys pressed like a back key or home key is allowed It would be good to know whether an onkeylistener interface Implementing one service is one thing to stop or not. Thanks in advance. It is not possible to stop the actual keypress, however you can still listen to the call state changes. Are there. For example how can you add a phonestate launcher.

java - @PostConstruct run when not all the properties of cascaded bean were initialized in Spring -

उदाहरण के लिए, मुझे कक्षा ए, बी, सी @ सेवा सार्वजनिक वर्ग ए {@ निजी बी बी; @PostConstruct सार्वजनिक शून्य प्रारंभ करें () {b.computeUsingC (); } @ स्वामित्व वाली सार्वजनिक शून्य सेट बी (बी बी) {this.b = b; } ...} @ सेवा सार्वजनिक वर्ग बी {निजी सी सी; सार्वजनिक computeUsingC () {c.compute ()} @ एटोवर्ड पब्लिक व्होइड सेट सी (सी सी) {this.c = c; } ...} @ सेवा सार्वजनिक वर्ग सी {निजी ए एक सार्वजनिक शून्य गणना () {a.otherMethod (); } ... सार्वजनिक शून्य सेट ए (ए ए) {this.a = a; }} मुझे निम्न के साथ लाइन में एक नलपॉइंटएक्सेप्शन मिला: c.compute () जब स्प्रिंग शुरू होती है, क्योंकि ग अभी तक वायर्ड नहीं हो जाता है। I लगता है कि ए को एनोटेशन के साथ विधि नहीं चलाना चाहिए @PostConstruct से पहले B पूरी तरह से आरम्भ हो जाता है यद्यपि बी अपने लिए ही तत्काल प्रारंभ होता है। मुझे पता चला कि मुझे ए के लिए एक चक्रीय संदर्भ मिला है -> बी -> सी -> ए इसलिए स्प्रिंग बी का उपयोग करने से पहले बी पूरी तरह से प्रारंभ नहीं कर सकता है।

javascript - Use JQuery to iterate over deep XML structure - IE9 -

I have a variable data with the following XML in JS: & lt; Data & gt; & Lt; Distribution & gt; & Lt; Checklist & gt; Pre-Vehicle Check Bulk & lt; / Checklist & gt; & Lt; Distribution & gt; 800056799 & lt; / Distribution & gt; & Lt; Shipment & gt; 105065995 & lt; / Shipment & gt; & Lt; DriverName & gt; John Doe & lt; / DriverName & gt; & Lt; DriverLanguage & gt; NL & lt; / DriverLanguage & gt; & Lt; Country & gt; Belgium & lt; / Country & gt; & Lt; Products & gt; 01248741 & lt; / Products & gt; & Lt; Product Details & gt; Metam 200% -33 & lt; / ProductDescription & gt; & Lt; Location & gt; P0204A & lt; / Location & gt; & Lt; / Distribution & gt; & Lt; Question & gt; & Lt; Question & gt; & Lt; ID & gt; Question 1 & lt; / Id & gt; & Lt; Driver & gt; True & lt; / Driver ...

android - How to get FastScroll to work with ExpandableListView? -

I am trying to be able ExpandableListView fast scrolling, and I have tried to solve the solution to this link : The problem is that when I expand enough groups to trigger the fast scroll bar, I get the Null Pointer Expression error. I tried the following code: main activity: expandable list = (Vistaryogylistwu) Khojwubiaiaidi (Arkdidkmakspandalebldrishy); Adapter = new adapter (this, list of extensions, category_array); Expandblelist.setAdapter (adapter); Expandblelist.setFastScrollEnabled (true); Adapter: Public Class Adapter Extends Expandable List Adapters Section Idencer, Abselieveview Onscroll lister (private context macontax; private expandable listviewspendablibelview; private list & lt; class & gt; mGroupCollection; private int groupstats; private boolean manual scroll; private string [] group; public adapter (reference reference, expandable listview pxpandablablelist, list & lieutenant ; category & gt; pGroupCollection) {mContext = context; MGroupColle...

c# - How to pass variable from event method? -

मेरे पास एक इवेंट विधि निजी शून्य बटन 1_Click_1 (ऑब्जेक्ट प्रेषक, इवेंटएआरजीएस ई) कुछ कोड में यह। वहां मैं किसी अन्य ईवेंट विधि से public void textBox2_TextChanged (ऑब्जेक्ट प्रेषक, इवेंटएआरजीएस ई) नामक एक वेरिएबल का उपयोग करना चाहता हूं ताकि उपयोगकर्ता एक नंबर लिखता है जो इसे किसी चर में सहेजा जाता है दूसरी विधि और मैं इस वैरिएबल को पहली विधि में इस्तेमाल करना चाहता हूँ जहां बटन क्लिक किया जाता है। मैं इसे कैसे पास कर सकता हूं? इसे अपने फ़ॉर्म क्लास के क्षेत्र के रूप में सहेजें फिर आप इसे एक ईवेंट हैंडलर में लिख सकते हैं और इसे दूसरे में पढ़ सकते हैं: सार्वजनिक आंशिक वर्ग MyForm {निजी स्ट्रिंग _someValue = null; सार्वजनिक शून्य TextBox2_TextChanged (ऑब्जेक्ट प्रेषक, EventArgs ई) {_someValue = "कुछ नए मान"; } सार्वजनिक शून्य Button1_Click (ऑब्जेक्ट प्रेषक, EventArgs ई) {यदि (_someValue! = Null) {// ...}}} हालांकि शायद आप बस TextBox2 पढ़ सकते हैं दूसरी विधि में पाठ

function - what means "return+" in javascript -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर कुछ कोड जो कि लागू करता है पुरानी ब्राउज़र के लिए दिनांक। अब समारोह, कोड है दिनांक.नान = दिनांक.नौना || फ़ंक्शन () {वापसी + (नई तिथि)}; + ऑपरेटर क्या करता है? नेट से कुछ भी नहीं पाता डॉक्टर से: यूनिअरी प्लस (+) यूनरी प्लस ऑपरेटर इसके प्रचालन से पहले होता है और इसके संचालन के लिए मूल्यांकन करता है लेकिन यह पहले से ही नहीं है, अगर उसे किसी संख्या में परिवर्तित करने का प्रयास करता है हालांकि, unary अस्वीकृति (-) भी गैर-नंबरों को परिवर्तित कर सकते हैं, एक संख्या में प्लस एक संख्या को बदलने का सबसे तेज़ और पसंदीदा तरीका है, क्योंकि यह नंबर पर किसी अन्य संचालन को नहीं करता है। यह पूर्णांक और फ़्लोट्स के स्ट्रिंग अभ्यावेदन को परिवर्तित कर सकता है, साथ ही गैर-स्ट्रिंग मान सही, गलत, और शून्य। दशमलव और हेक्साडेसिमल ("0x" -prefixed) दोनों प्रारूपों में पूर्णांक समर्थित हैं। नकारात्मक संख्याएं समर्थित हैं (हालांकि हेक्स के लिए नहीं) यदि यह किसी विशेष मान को पार्स नहीं कर सकता है, तो यह एनएएन के लिए मूल्यांकन करे...

html - disable url action without disabling mouseover text -

Is there a way to use something similar to pointer-events: disable any For example hyperlinks and no mouseover text For example, suppose I have: The link is disabled, but mouseover text is also disabled. I want to know how to disable the link by enabling mouseover text. You can repeat this by using javascript , just enter Exclude the style and add onclic . & lt; A href = "http://www.google.com" title = "mouseover text" onclick = "return false;" & Gt; Link text & lt; / A & gt; I do not suggest doing this, instead, I have a & lt; Span & gt; To get a colonial effect, a title .

c# - WinForms Dialogs in WPF Application: Controls look like .NET 2.0 -

I have a WinForms application and it started to convert to WPF. To work less, I thought the old dialogue window should be WinForms. VS2010- In the designer the dialog looks normal (with .NET 3.5 / 4.0 controls), but if I run my program all WinForms controls become an old style and it seems. NET 2.0 (I think you know what I mean, that Bevel style for all the gray controls ...) What happens there? Any way to fix this? You must call System.Windows.Forms.Application. EnableVisualStyles () to enable the system style for windows forms; WinForms project templates are called by default; The WPF template is unavailable because it does not require WPF control.

lucene - Why is my index directory so small when fields are compressed? -

The answer is probably in question, but I would like to ensure: -) I have received 10000 documents Indexed Each has an area that stores a text which is actually 100KB larger (it comes from a text file that uses UTF-8). When this field is uncompressed, the index is 436 MB large, but when the field is compressed, it is only 11.4 MB, this will be a compression ratio of 37.5 - is it good to be true or is it not? Or is it possible that the data from the index directory is stored somewhere else on my computer? When I retrieve the field then there is no error, everything is fine, but I certainly know from life that if anything is true, then there is definitely something wrong. : D Here is the code: / / raw, do not search field type field type 2 = new field type (); FieldType2.setIndexed (incorrect); FieldType2.setTokenized (incorrect); FieldType2.setStored (true); FieldType2.setOmitNorms (true); FieldType2.setIndexOptions (FieldInfo.IndexOptions.DOCS_ONLY); FieldType2.freeze (); ...

Android ListView with multiple onclick listener and GestureDetector -

I am using a gesture detector for the first time on the list view. This works fine for me unless I have click on more than one click on the list view object. I want a gesture detector for the entire list but it is not working, where I have the onclick event for some item in the list view. Consider my code: & lt; LinearLayout xmlns: android = "Http://schemas.android.com/apk/res/android" Android: Android: Android: Android: Leaut_vind = "Mac_perent" Android: Leaut_heit = "wrap-content" android: orientation = "horizontal "Android: weightSum =" 100 "Android: background =" #FFFFF "& gt; & Lt; TextView android: id = "@ + id / meet_time" Android: layout_width = "0dp" Android: Layout_height = "Match_parent" Android: textcolor = "# FFFFFF" android: gravity = "center" Android: TextAppearance = "Android: Attr / TextAppearanceSmall "android: background ="...

ruby - Gemfile: Difference Between branch and ref in a github Reference -

It is possible to mention the gem hosted on github in Gemfile GIT: describes three characteristics for branch , ref and tags . What's the difference between referee and branch ? And how does bundler handle jewels differently depending on the properties? This is especially interesting because you can only use one of the features at a time. with the branch , you simply specify the git branch to drag If you had a bundled up while targeting a branch & lt; Gem & gt; , then it will be updated in the tip of that branch. Ref is actually a personal commitment to get it down. You do not name "human-readable", as you did in your question, you do something like this: Mani 'something', Gitub: 'some / some', ref: '832e76a 9' And now you have pinned it in the ref if you have made something , then it will not change that gem (though its reliance Can update).

hadoop - Why does application change from SUBMITTED to FAILED immediately when I ran a HIVE select? -

"itemprop =" text "> I just ran select COUNT (*) from t1; , Then it has failed and the application in the web is executed FinalState The hive log is as follows:. 2014-11-04 23: 06: 45,264 info org.apache. Thaup.Year Surveyor Resources manager RMAP RMAPIMPL: Depositing application with ID application: 415104634062_0005 2014-11-04 23: 06: 45,264 INGOAP.APYHDPOP.vernor.org Resources manager Aramayuutiotogajr: USER = IP = 10.20.216.51 operations = Application Enter request Target = ClientRMService result = success APPID = application_1415104634062_0005 2014-11-04 23: 06: 45,264 information org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl: new from application_1415104634062_0005 state changes 2014- the NEW_SAVING 11-04 23: 06: 45,264 information org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore: storing the information for applications: application_1415104634062_0005 2014-11-04 23: 06 : 45,264 info org.apache.hadoop.yarn server.r...

browser extension - $.get doesn't work in CrossRider in the background -

क्या क्रॉसराइडर का उपयोग करते समय पृष्ठभूमि में jQuery का $ .get, $ .post या $ .jax का उपयोग करना संभव है? मैंने कोशिश की लेकिन ऐसा नहीं लगता है। किसी भी क्रॉसराइडर क्षेत्र में, हम क्रॉसआइडर एपीआई विधियों ब्राउज़र और amp; कोर अनुकूलता वे jQuery के समकक्षों के समान हैं और सभी गुंजाइशों में सभी ब्राउज़रों के लिए काम करते हैं। [ प्रकटीकरण : मैं एक क्रॉसराइडर कर्मचारी हूं)

c# - Create object instance from assembly qualified name and get property value -

मेरे पास निम्न प्रकार के कई वर्ग हैं: नामस्थान MyCompany.MyApplication रिपोर्टिंग क्लासेस {सार्वजनिक वर्ग ReportingClassName {सार्वजनिक स्ट्रिंग HTMLReportString {get; निजी सेट;} ReportingClassName () {// रिपोर्ट उत्पन्न करने के लिए linq का उपयोग करें; // पॉप्युलेट ग्रिडव्यू, फ़ंक्शन को पास ऑब्जेक्ट जो HTMLString देता है; // सेट HTMLReportString संपत्ति; }}} रिपोर्ट पर आधारित प्रत्येक वर्ग में एक अलग लीकक क्वेरी मौजूद है। मैं ड्रॉप डाउन बॉक्स में रिपोर्टों की सूची से गतिशील रूप से लोड करना चाहता हूं। मैं डीएसडीएल को पॉप्युलेट करने के लिए एसेबलीक्वालिफाइड नाम के साथ-साथ एक प्रदर्शनी नाम को संग्रहीत करता हूं। मैंने उन पदों के आधार पर प्रतिबिंब का उपयोग किया है जो मैंने देखे हैं, लेकिन मुझे ऐसा करना नहीं लगता जो मुझे करना चाहिए; string myAssembly = "AssemblyName"; // यह स्थिर है; स्ट्रिंग myClass = "विधानसभा क्वालीफाइड नाम"; // डीडीएल से यह मान; Var myObject = Activator.CreateInstance (विधानसभा नाम, AssemblyQualifiedName); स्ट्रिंग propertyValue = myObject...

c++ - Overloading >> operator and adding a number to a string -

I'm having trouble adding numbers to my function string, numbers are matrix and are integer. I am trying to parse them in a string formised in {{A, b, c}, {d, e, f}, {g, h, i}}. I have implemented the code but when I run it, it is empty where the number should be and why I do not know why. My Function: Istream & amp; Operator & gt; & Gt; (Istream and In, Matrix and M) {Vector & lt; Int & gt; Vec; Vec = m.getRow (0); String matrix = "{"; In & gt; & Gt; Matrix; For (int i = 0; i & lt; vec.size (); i ++) {vector & lt; Int & gt; VecRow = m.getRow (i); Matrix + = "{"; For (int j = 0; j; lieu; vec.size (); j ++) {if (j> = vec.size () - 1) {matrix + = vicro [j]; } Else {matrix + = vecRow [j] + ","; }} VecRow.clear (); Matrix + = "}"; VecRow = m.getRow (i); } Matrix + = "}"; The court's & lt; & Lt; Matrix & lt; & Lt; Endl; in back; } OK, I have modified it and now I ...

core data - Problems accessing 1:N relationship in entity -

I have the institutions: bank, section, subdivision, set, question Problems reaching "NSSet subdivision" and "[UITableViewCell thesubsection]:" Unknown selector is sent from this code to CRSectionVC.m, which fills the table view cell - ( NSArray *) All questions {NSSortDescriptor * Partition = [NSSortDescriptor sortDescriptorWithKey: @ "Subdivision" ascending: Yes]; Return [_section2.thesubsection sortedArrayUsingDescriptors: @ [partition]]; However, I can use the "NNSAT section" relationship in the bank entity using this code NSSortDescriptor * division2 = [NSSortDescriptor sortDescriptorWithKey: @ "Division" ascending: yes]; Return [self.detailItem2.sesection sortedArrayUsingDescriptors: @ [Partition 2]]; _section2 to CRSubsectionVC.h @property (strong, nonatomic) section * section 2; Storyboard 1. CRMasterViewController which displays the 'category' attribute from the bank in a table view, bank.h square c...

javascript - How to user a condition in a String inside an IF sentence -

मेरे पास निम्न स्थिति है: var उत्तर = 'तीन'; Var isClosed = सच है; Var स्थिति = "जवाब! = नल और amp;! बंद है"; हालत एक शाब्दिक स्ट्रिंग है और यह गतिशील रूप से उपयोगकर्ता द्वारा सेट की गई है। if (condition) // कुछ और करो // कुछ करो P> क्या मैं "eval ()" का उपयोग किए बिना ऐसा कर सकता हूँ? कैसे? मैं इसे से बचना चाहता हूं: यदि (eval (condition)) ... नोट: यह एक सरल उदाहरण है, वास्तविक स्थिति एक है गतिशील परिस्थितियों में बिट जटिल:) यदि आप eval से बचना चाहते हैं सभी लागत (जैसा कि सुरक्षा कारणों के लिए वास्तव में खतरनाक हो सकता है), आपको मूल रूप से नियम इंजन को अपने डीएसएल के लिए अनुकूलित की जरूरत है, जिसे आप डेटाबेस से प्राप्त करते हैं। मैंने यह एक गोल कर दिया और यह दिखता है कि सभ्य, वास्तव में यह कोशिश नहीं की, लेकिन अब आपको पता है कि कहां से शुरू हो।

bootstrap: split, divide, float sidebar -

I have to divide my sidebar into two columns, when the silver screen is smaller. My content layout looks like this: There is such a material wrapped in a material on the left: and on the right hand I have some images which are wrapped in a div: A small site screen In a column shows the images located below the content. I would love to know that I can split images into two columns instead of just one. Any suggestions? You are responsible for col - * sections: & lt; Div class = "col-md-9" & gt; Content & lt; / Div & gt; & Lt; Div class = "col-md-3 sidebar" & gt; & Lt; Div class = "col-md-12 col-xs-6" & gt; Sidebar 1 & lt; / Div & gt; & Lt; Div class = "col-md-12 col-xs-6" & gt; Sidebar 2 & lt; / Div & gt; & Lt; / Div & gt; You need to change the external sidebar padding: . Sidebar {padding: 0; } (move this to the middle of the test to test it)

java - hibernate projection unique list -

I am trying to use hibernate and projection, which can result in a list that does not have duplicate content . I have a square CurrEntityProfileBO, it has the property unit id. Criteria Criteria = Sessions .createcriteria (CurrEntityProfileBO.class, "entityProfileBO"); Criterion Source publication (Projections. Projection List). Add (Projections Property ("Unit ID")); I'm getting an exception: [2014-11-04 11:28:59] error [http-8080-5] (SqlExceptionHelper .Java: 144) - ORA-01791: Not a Selected Expression [2014-11-04 11:28:59] Warning [HT-8080-5] (AbstractsHandler Expression Solver. Jawaator 85) - Exception Org Hibernate as a result of handler execution. Exception.SQLGrammarException: ORA-01791: org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert is not a selected expression (SQLExceptionTypeDelegate.java:82) Any help appreciated! According to sp00m criteria.setResultTransformer (CriteriaSpecification.DISTINCT_ROOT_ENTITY); Work...

javascript - Script not working for search page and click link -

मेरे पास निम्न स्क्रिप्ट है & lt; script & gt; SetTimeout (फ़ंक्शन () {window.location.reload ();}, 2000); // 2 सेकंड, उदा। ।।। $: निकटतम ( 'tr') लगता है ( '। FightActionInnerInner') पर क्लिक करें ( 'एक ( "13,468,100") शामिल हैं') (); & Lt; / स्क्रिप्ट & gt; पेज पर एक iframe है। स्क्रिप्ट को किसी भी लिंक्स के लिए iframe की सामग्री को 13468100 नंबर पर खोजना चाहिए और 'लड़ाई एक्शन इननर इननर' के एक आईडी के साथ उसके अगले ट पर क्लिक करता है, पृष्ठ को प्रत्येक 2 सेकंड रीफ़्रेश करता है। ताज़ा करें फ़ंक्शन काम करता है, लेकिन स्क्रिप्ट लिंक पर क्लिक करने के लिए प्रतीत नहीं होता, भले ही मुझे पता है कि यह वहां है। इसके अलावा, मैं एक इनपुट बॉक्स रखना चाहता हूं जहां उपयोगकर्ता इनपुट को स्क्रिप्ट की आवश्यकता कर सकता है। खोजने के लिए। उदाहरण: यदि वे "डेविड" वाले लिंक की खोज करना चाहते हैं, तो वे दाऊद को एक टेक्स्ट बॉक्स में टाइप कर सकते हैं और यह स्क्रिप्ट को बदल देता है। यह html है I खोज करने के लिए स्क्रिप्ट पूछ रहा ...

javascript - JSONP Callback - data arrives unescaped when using jQuery call -

An external API from within a domain In my client html / js code, I am speaking to get json data . Other APIs run in a separate domain, so basically this does not allow me to use regular Ajax / Exhaust requests. The solution we agreed with the API vendor was that they had support of jsonp so I'm sending a jsonp request as follows. $ .ajax ({url: "https://rest.somevendor.com/app/site/hosting/restlet.nl?script=204&deploy=1&cid=436& Type "jsonp", type: 'received', jsonp: "callback to", contentType: "application / json; charset = utf-8", processData: false, header: {"authorization" : "NLAuth nlauth_account = xxxxxxx, nlauth_email = YYYYY @ pppp-zzzz.com, nlauth_signature = FGrmr5fjd"}, success: function (data) {//console.log (data);}}} My callback is called with JSN data, but there is a problem. When I make the same call from a browser REST client, then I have a valid J. However, when I make the...

javascript - window.location.href not redirecting -

Hope this is not a silly question. A new page but it seems that it is not working. Here is part of my code: (in my local host: MyProjects / QuizApp / main / index.php) if (score> = min_scores [i ] & Amp; amp; scores & lt; = max_scotters [i]) {window.location.href = page_links [i]; } Page_Link [] Array has a redirect URL. I (Http: youtube.com) I am testing in my local server when this line causes browser ports Executes on http: // localhost / MyProjects / QuizApp / main / http: //www.youtube.com. As you can see that the URL is linked to the current URL. Why is this happening? How can I fix this? Thank you, You need to use the string ( "..." ): window.location.href = "http://www.youtube.com";

python - Testing to see if a word contains only specified syllables -

I have to check that only one syllable contains only one word. For example, if a word "pickuppieu" contains only syllables , "P", "ka", or "chu", then I have to return "yes". If there are other syllables or characters in it, I want to "no" back. Another example: The word "peakapacchudo" returns Returns: "No" because it contains 'P', 'K' and 'Chu' P> There is no other word for describing a stroke where each letter is open and the nuclei Is always done by a cluster before. (With some extra, which I hope is unimportant here, Japanese is a language with this structure.) In this way you get a regular expression like pc Aeou] to describe each syllable.

ios - GPUImageMovie not respecting imageOrientation -

I'm using GPUImageMovie which is playing a movie file, this file was filed on the iOS device. However, when GPUImageMovie plays it, it is in the wrong orientation so that the video can not be displayed correctly. How do I get it in honor of my orientation? I have tried to modify the open code with no luck. I had the same problem when playing a video record using the GPUImageMovie in the IOS device, I did it the following functions Resolved using: Set this code by calling this filter: RotationFor Filter: . orientationForTrack: will return your current video orientation - (zero) setRotationForFilter: (GPUImageOutput & LT; GPUImageInput & gt; *) filterRef {UIInterfaceOrientation Orientation = [Self OrientationForTrack :. Self .playerItem.asset]; If (Orientation == UIInterfaceOrientationPortrait) {[filterRef set input rotation: kGPUImageRotateRight atIndex: 0]; } Else if (Orientation == UIInterfaceOrientationLandscapeRight) {[filterRef setInputRotation: kG...

R + ggplot2, multiple histograms in the same plot with each histogram normalised to unit area? -

Image
Sorry for the novice R question ... I have data. A single variable will be distributed separately to these measurements, depending on whether the thing is being done type A or Type B; That is, you can imagine that my column names are: measurement, type label (A or B) I want to plot the histogram of different measurements of A and B, and by inserting two histograms in the same plot, each Histogram unit is normalized in the field (this is because I hope the ratio of A and B is quite different). From unit area, I mean that A and B have unit area, not unit area in A + B. Actually, I want something like ground-density, but I do not want an easy distribution for everyone; I want to histogram times did not interleave, but plotted one over the other. Not stacked, though it would be interesting to know how to do this (The aim of this conspiracy is to find the difference between the sizes of the distribution which is a quantitative difference between A and B which can be used to differenti...

rest - How do I solve this Yii2 RESTful Web Service API routing error? -

I'm trying to implement the Yii2 Restart Web Service API described in the guide. I'm trying to use an advanced app template. The problem is that when I try to use the service, I get 404 errors. I wanted to start trying something easy, so I was just going to use a country table and affiliate active class to see it, here is the code: This frontend / configure / The component is in the component configuration .php: 'urlManager' = & gt; ['EnablePrettyUrl' = & gt; True, 'enableStrictParsing' = & gt; True, 'showScriptName' = & gt; Wrong, 'rule' = & gt; [['Class' = & gt; 'Yii \ rest \ UrlRule', 'Controller' = & gt; 'Country'],],], 'request' = & gt; ['Parser' = & gt; ['Application / JS' = & gt; 'Yii \ web \ jsonparser',]] This is the code in Frontend / Controllers / Country Controller. FTP: Namespace Controller; Use Yii \ rest \ ...

python - Psycopg2 db connection hangs on lost network connection -

Problem Description I use psycopg2 to connect to your PostgreSQL database on a remote host I am I open a connection and wait for the requests, then for each request, I run a query on connection and return data. But when the network connection is lost after connection, the next DB query is already hanging and I details: This less I can not use the asynchronous connection because I need a transaction Python 2.6 psycopg 2.2.1 Debian Linux 6 and 7, 64bit Postgresclines 8.4 and 9.1 What do I need I need reliable way to detect some unsuccessful connections before running a query, so my program will not hang, or cursor.exact (..) make way failed to raise an exception on connection example :. import psycopg2 import time Conn = psycopg2.connect ( "host = ' DBS 'dBNAME =' foo 'user =' joe 'password =' ​​x '") time.sleep (10) # I manually switch off VPN during this sleep Vendor am .. cu = conn.cursor () cu.execute ( ...

testing - VHDL testbench real-life example -

I think I have read most textbooks which dedicate chapters, sections or whole texts to write testbench in VHDL . Still, I have the impression that none of them is showing the real thing seriously, if everything happens to write testbanks, then the complete verification process looks a little lower for me. Is there any real life, high quality, industry-level testbank VHDL code which is open for study? PS: I just finished reading writing testbench - function verification of HDL model , and although this is a great book, I still want to see some real life in the book Code example based on the proposed method

sql server - SQL: Add a column and classify into categories -

I have a table that contains transaction_id as the primary code and in this customer_id which is a foreign key Now a column is type which has two values: 'card' and 'cash' . Now some customers have used both methods for payment I want to add a new column and classify customers as "only cards" as "only cash" and "both" Transaction ID Customer ID Type 1 100 Card 2 101 Cash 3 102 Card 4 103 Cash 5 101 Card So in this table I have a new I want column 'type of payment' which classifies customer 101 as both Because he has used both methods of payment. Instead of adding a column to the table, if you analyze the payment methods you want to do , Then it may be better to do something like this: Select the difference table 1. [Customer id], t1 * Apply 1 table 1 cross from (select SUM (in case [type] = 'cash' then 1 ELSE 0 END) AS cash, SM (case when [type] = 'card' then 1 ELS 0nd Table 1 T virus T...

hibernate - spring transaction commits but data not inserted in db -

I am facing a problem in my application which uses Spring 3.1 and Android. 3.6 Hibernate I have two service classes: ServiceA & amp; ServiceB ServiceB.dbInsert () method has 'REQUIRES_NEW' tx attribute and Service A is 'required' at the class level. 1. When I perform normally, the data entered by ServiceB.dbInsert () is given to DB - it's OK. 2. When I fail the TX in ServiceB.dbInsert () to debug mode in Eclipse, then Tx is returned - it's OK. 3. In the above case, if I retry the operation ServiceB.dbInsert () Since the failure of the service, the data entered by ServiceB.dbInsert () is not committed. - This is a problem. Spring transaction advice is applied in all the above cases and the doCommit () of spring is called (except 2 where rollback occurs). It is unclear why the problem 3 is going on. No exceptions have been thrown. Debug mode is well checked in.

Edited Java add digits of 4 numbers -

I want to add 4 digits of 1 or 2 digits using Java. I1 = 2 i2 = 33 i3 = 12 i4 = 10 Result: 12 (2 + 3 + 3 + 1 + 2 + 1 + 0 ) How can I do this? Here are some pointers you can give: 1) Code> / which are integers on those arguments, then your result will also be integer example: int x = 7/2; Println (x); Output: 3 (not 3.5 ) Then get rid of the last digit of the integer Everyone can, this number is divided by 10 int x = 123; X = x / 10; Println (x); There is also a modulo operator in Java that gives a reminder from the partition, like 7 / 2 = 3 and 1 will be the reminder this operator % example int x = 7 ; X = x% 5; Println (x); Output: 2 because 7/5 = 1 (2 relics) For integer you can use just like % 10 like int x = 123; Int lastDigit = x% 10; Println (lastDigit); Output: 3 Now try to combine this knowledge. Get the last point of the number, add it to the sum, remove this last digit (there will be no number until repeat a...

python - Interpreting scipy.stats.entropy values -

मैं Kullback-Leibler का अनुमान लगाने के लिए scipy.stats.entropy का उपयोग करने की कोशिश कर रहा हूं। (केएल) दो वितरण के बीच विचलन अधिक विशेष रूप से, मैं केएल को एक मीट्रिक के रूप में उपयोग करने का निर्णय लेना चाहता हूं, ताकि यह तय हो जाए कि दो वितरण कैसे सुसंगत हैं। हालांकि, मैं KL मूल्यों का व्याख्या नहीं कर सकता पूर्व के लिए: t1 = numpy.random.normal (-2.5,0.1,1000) टी 2 = numpy.random.normal (-2.5.0.1,1000) scipy.stats.entropy (t1, t2) 0.0015539217193737955 फिर, t1 = Numpy.random.normal (-2.5,0.1,1000) t2 = numpy.random.normal (2.5,0.1,1000) scipy.stats.entropy (टी 1, टी 2 ) = 0.0015908295787942181 अनिवार्य रूप से कोई ओवरलैप के साथ पूरी तरह से अलग वितरण कैसे एक ही KL मूल्य हो सकता है? t1 = numpy यादृच्छिक। सामान्य (-2.5,0.1,1000) टी 2 = अंडा.रेन्डम। सामान्य (25,।, 0.1,1000) scipy.stats.entropy (टी 1, टी 2) = 0.00081111364805590595 यह एक छोटे केएल मूल्य (यानी दूरी) देता है, जिसे मैं "अधिक सुसंगत" के रूप में व्याख्या करने के लिए झु...

c++ - CUDA -prec-sqrt=false VS2010 -

I am trying to set -prec-sqrt = false for my code in VS2010, the only place I see Could the property page of myfile.cu be on (CUDA C / C ++ => Host => additional compiler option), but when I put it there it reports an unknown compiler option and ignores the very page For example, to use "fast math" is a toggle I want to have the curved compiler options Where do I set and there is a specific way (as opposed to just -prec-sqrt = false). thank you in advanced. In these Nvidia Nsight Eclipse Edition , such Toggle Project -> Properties -> Create -> Settings -> Under the Device Settings -> Project Properties -> CUDA C / C ++ -> Optimize VS, this option is not available as a toggle option, Em> command -> additional options as -prec-sqrt false . You should drop = in your order.

floating point - Java subtraction of floats is infinity? -

मेरे डीबगर में मैं निम्न मान देख सकता हूँ: float min = -3.1931721E38 फ्लोट अधिकतम = 3.3434891 ई38 फ्लोट टेम्पप = (अधिकतम-न्यूनतम); यह अनन्तता में परिणाम है। ऐसा क्यों है? (2-2 ^ 23) · 2 ^ 127 अस्थायी चर अधिकार से बड़ा है? गणितीय इस घटाव का परिणाम सबसे बड़ा संभव फ़्लोट मान से अधिक है जावा फ़्लोटिंग-अंक अंकगणित के लिए आईईईई नियमों का पालन करता है, जिसके परिणामस्वरूप अनंत यदि आप परिणाम चाहते हैं, तो आप इसके बजाय double s का उपयोग कर सकते हैं , जो अधिक सटीक और मान्य मानों की एक बहुत बड़ी रेंज है।

Convert varchar(50) to Date Format 'yyyy-mm-dd' in teradata? -

I have a column date format yyyy-mm-dd while making I want to insert data from another table in that column as varchar (50) While selecting the table I put it Error found INSERT failed. 2665: Invalid date Can anyone help me in this casting? The TEMP_TABLES.FACT (CUSTOMER_ACCOUNT_ID, LOB_START_DATE,) put in the SEL CUSTOMER_ACCOUNT_ID, LOB_START_DATE as I.start_date, #LOGIN I join JOURNEY_TABLE.DOTCOM_DIM d1 on I.PAGES = d1.PAGE_DESC left this is an example of the date stored in varchar (50) Regions: 2014-04-03 thanks in advance If it would be helpful if a query that should allow you to identify rows with invalid dates: select * t1 outer leave Received #login cast = on Tlkstart_date (cast (as 'YYYY-MM -DD') joining date format t2.calendar_date Sys_calendarkcalendar T2 four (10)) where t2.calendar_date Null A line will have invalid dates returning from this query.

Correct way to get contextual reference of a Java CDI bean -

I went to get a reference reference of a CDI bean. I found two ways: 1 beans Use of Nitter () Public Stabilized & lt; T & gt; T-Letter Reference (Bean Manager BM, Class and LT ;? T & GT Type, Annotation ... Qualifier Expands) {Set & lt; Bean & lt ;? & Gt; & Gt; Bean = BMGate beans (type, qualifier); If (Beans == faucet) Beans.ISEacti () Exception ("Bean not found") to establish new invalid record;} // Beans. Use Iterator () Bean & lt; T & gt; Bean = (Bean & lt; T & gt;) Beans Inhibitors (). Next (); Return (t) BM Gate Reference (Bean, Type, BM Creation Creative Contex (Bean));} T & GT type, annotation .. Qualifier spreads) {set gt; beam = bm.gate beans (type, qualifier); if (beans == faucet || beans.ISEacti) (new invalid record Installing Exception ("Bean Not Found") //} BeanManager.resolve () Use Bean Bean = (Bean> T & gt;) BM.Rolove (Beans); Return (T) BM.Getrerence (Bean, Type, BM Creation C...

Why can't I print from background threads in Clojure Cider REPL in emacs? -

If I try to evaluate the following code in my emacs cider-repl, it is expected, but someone Not even in print per buffer or console How do I print it? (dotstart [i5] (.start (thread. (FN [] (thread / sleep (rand 500)) (println (format "= & gt;% s" / CurrentThread)))))));% d; Zero This works fine, however: (println (format "% s is at% s" (thread / current thread)) ; = & Gt; 1 end on thread [nREPL worker-18.5, main] ----------- Mini buffer ---------------- - Void println on a dynamic bound called Is to use * out * as Emacs dynamically copied buffer code as your output stream A rip binds to go to * out * , but if you make a thread, that code becomes the * out * root binding * Out * , which will not be buff in case of cider. If you started repl using in cider-jack , when you Look at yourself the buffer list there should be a buffer with a name like * nrepl-server * which is the root output of * * binding. After running your cod...