Posts

Showing posts from July, 2015

shell - wget --spider fails to find file when executed in a script that is run in the background from a remote SSH command -

मेरे पास एक स्क्रिप्ट है जो कि wget --spider & lt; url & gt; का उपयोग करके फाइल अस्तित्व की जांच करता है। मुझे किसी अन्य मशीन से दूरस्थ SSH कमांड का उपयोग करके स्क्रिप्ट को कॉल करने और इसे & amp; का उपयोग करके पृष्ठभूमि में चलाने की आवश्यकता है। हालांकि, जब मैं एक दूरस्थ SSH कमांड का उपयोग कर पृष्ठभूमि में स्क्रिप्ट चलाता हूं, तो यह त्रुटि 141 देता है, जब मुझे 0 की अपेक्षा है। यह मैंने जो किया है और परिणाम: SUCCESS - wget --स्पिडर & lt; url & gt; किसी अन्य मशीन से दूरस्थ SSH कमांड के रूप में SUCCESS - wget --spider & lt; url & gt; असफलता - wget --स्पिडर & lt; url & gt; स्थानीय होस्ट पर पृष्ठभूमि के काम में स्क्रिप्ट को निष्पादित क्यों करना चाहिए लेकिन रिमोट एसएसएच कमांड का उपयोग नहीं करना चाहिए? यहां अपनी फ़ाइल की सामग्री को वास्तविक यूज़ करने के लिए नीचे दिया गया है: #! / Bin / sh wget --spider http: //myurl/file.oxu echo $?

php - How do I execute a query with an advanced ORDER BY situation? -

I have a question about a query in MySQL which I am trying to do. Suppose i have the following table: table: product id | Name | Price | Value_mode | 0 | Product 1 | 150 | 1 | 1 | Product 2 | 5 | 2 | 2 | Product3 | 8 | 2 | And if I want to order products by value DESC but by price_mode "2" , Then I want the value to be multiplied by a number, say 20 for example. With this criterion, the table order should be ordered: product3, product1, product2. I hope you understand my questions and thanks! : You can do this with expression in order : command (when price_mode = 2 then price * 20 other price end) desc

Scala - Booleans - & vs &&, | vs || -

मैंने देखा कि Scala Boolean में दोनों और का समर्थन करता है और & amp; & amp; । क्या इन दो ऑपरेटरों के बीच अंतर है? स्कला डॉक्स उन दोनों के लिए सटीक विवरण का उपयोग करते हैं, इसलिए मुझे यकीन नहीं था। & amp; और | सख्त होते हैं जबकि & amp; amp; & amp; amp; & amp; amp;; और || शॉर्ट सर्किट हैं: झूठा & amp; amp; (नया अपवाद ()) = & gt; झूठी झूठी और amp; (नया अपवाद ()) = & gt; पूर्व सच || (नया अपवाद ()) = & gt; सही सच | (नया अपवाद ()) = & gt; पूर्व और और | के लिए पूर्ण दस्तावेज इस व्यवहार को समझाते हुए एक नोट है: यह विधि एक और बी दोनों का मूल्यांकन करती है, भले ही परिणाम का मूल्यांकन करने के बाद पहले ही निर्धारित हो।

gruntjs - Minimal example of using grunt-connect-proxy -

I have an angular JS app that I created with Kadaka and was written in Java running on a Tomcat server The server is backend. When I wanted to develop, I wanted to use a wire-connect-proxy to wire them together. But I could not do it in a bit of work. All the "examples" and "demos" found on the web were used to use several hundred lines, GrantFile.JS. This did not prove to be really useful in finding my problem Min (!) What does the example look like? How is it that you can create a minimum demo that is just a proxy for google.com Run: Run: Install NPM Connect Hard -proxy --save-dev npm Installation Grunt- Contrib-connect --save-dev and create the following Gruntfile.js: module.exports = Function (grunt) {var proxySnippet = is required ('can not connect-proxy / lib / utils'). ProxyUxt; Grunt.initConfig {{server: {options: {hostname: 'localhost', keepalive: true, open: true, middleware: function (connect, option) {return [pro...

ios - Undefined symbols for architecture i386 (RevMob) -

I tried to remove all RevMob ads related to my app, I did not know how to do it correctly I deleted it first by removing all the lines of code related to RevMob, but now I have this error that I can fix: Undefined symbols for architecture i386: "_OBJC_CLASS _ $ _ RevMobAds ", referenced from: Delegate.o in the objc-class app I think people have a Mr. problem (not RevMob but similar in structure), but they are looking to add to this project, I try to pull it off. If you can tell me what error is to be removed in sequence, then it will be awesome thanks! In a file (probably called) AppDelegate.m, you probably are probably using the RevMob header If its items are not in that file, then the file is included in it. This error means that you had the header to compile the time to use Revobo, but you do not have a framework or library at link time (or the implementation of that object in the structure or library Is not what you are trying to use in simulator build) ...

Im trying to make a square root function in python -

I know that maybe one of these is but those people I have seen are not quite the question. Trying to create where you ask, "which class you would like" and then I have raw input for them to type something. How can I make it so that I can type in any number and it will be square, I can not use this thing for me ** thing My exact code is a special, very basic . def class (): print ("Which category would you like?") Raw_input ("& gt;") class () You want to insert the value from the first user input into the actual number ( raw_input > gives a string), and After that, take the square root of: import math def square (): print ('what category would you prefer?') User_input = raw_input ('& gt;') Try: Value = excluding error = float (user_input): print ('you have a number Do not input! ') Other: print (math.sqrt (number)) square ()

ruby on rails - Devise Invitable error: The invitation token provided is not valid -

Despite all the efforts I have made and I have seen it, I'm getting the error provided Invitation token is not valid! I have been embedded on a separate page on my website and sending the invitation, but the token seems wrong. I have this line in my mailer code & lt; P & gt; & Lt;% = link_to I18n.t ("devise.mailer.invitation_instructions.accept"), accept_invitation_url (@resource ,: invitation_token = & gt; @ token)% & gt; & Lt; / P & gt; I am also using a custom controller, but nothing in it yet.

Need help repeating a function for JavaScript -

There is a pastebin function I am unfamiliar with javascript Need help repeating this function. Rather than run out of 1 of this function, I want to run it continuously for this function. In the function with some time loops, such as Function DupeReroll () {When (true) {// existing script}} To run it for only 30 times, use the loop instead. function DupeReroll () {for (i = 0; i

cython - cdef statement not allowed here for structure -

I have a simple estrotic_jax with a straight define (astrct.pxd): Cdef struct A: int x int y int z and a Cython function that uses it (struct_test.pyx): random import From arctic seamport to Randink is FDET (): N = 1000000m = 65535 like I = xrange (N) in = 0 to = 0: cdef A A ax = Randint (0, M) AI = Randint (0, M ) As az = Randint (0, M). For xanded (a) i am in xrange (n): [i] as the total + =. X + like [ii] However, when I try to create struct_test.pyx, I get this error: "cdef statement is not allowed here", " Cdef aa ". It does not complain about another definition of a variable, if it is outside the loop, but I do not have much speciality about loop. There are different types of rules in Python and C. Cython uses the same scoping rules as for / if / while or other blocks for the entire work cdef , but as you have seen, these variables should be declared at the function level and not in the sub-block. I can think of at least two good re...

r - ggplot side by side geom_bar() -

Image
After I want to create a side by side barplot using the geom_bar of this data frame, & gt; dfp1 value percent1 1 percent (18,29] 0.20 9 0 9 0 9 1 .45,45,455 2 (29.40] 0.23478261 0.5431034 3 (40.51] 0,154 9 2 9 58 0.3661 9 72 4 (51.62] 0 .1011 9 048 0.17261 9 0 5 (62,95] .0,56,60,377 0.11, 9 4, 9 6 9 side percents as side by barplots values ​​on the x- axis I have tried to use this code, p = ggplot (dfp1, aes (x = value, y = c (percent, percent1)), xlab = "age group ") P = p + geom_bar (stat =" identity ", width = .5) However, I get this error : Error: Beauty should be the same length as either a length, or dataProblems: The value is the same period of my percentage and percent1 value, so I am confused Thanks for the help You will first need to melt your data on value by default. If you have another variable named value , you will need to nominate it (I have called it percent .] Then, fil Set new data by using L to separate data into...

cplex java api modelling 1-sum_j 2d array -

मैंने अभिव्यक्ति मॉडलिंग की कोशिश की है Sum_j (1- (Sum_i z [i] [j])) * c [I] [j] , जहां z [i] [j] मेरे obj फ़ंक्शन का बुलियन चर है मैंने यह कोशिश की है कि सरणी के प्रत्येक स्तंभ के रूप में एक अभिव्यक्ति के रूप में मॉडलिंग करें और फिर 1-योग की कॉलम के लिए एक अभिव्यक्ति और आगे। कुछ जैसे राशि (प्रोड (राशि (1, ऋणात्मक (sum_j)), c [ij])) । लेकिन इसे नहीं बनाया मुझे थोड़ी मदद चाहिए धन्यवाद मेरे उद्देश्य फ़ंक्शन "Sum_i Sum_j c [ij] * z [ij] + Sum_j (1- (Sum_i z [i] [j])) होगा * यूके [j]" , जहां z (ij) निर्णय चर हैं और अन्य ज्ञात हैं मेरी समस्या यह है कि मैं अभिव्यक्ति को छोटे subwepressions में विघटित करने की कोशिश कर रहा हूँ। तो बाद में मैं उन्हें किसी तरह मर्ज करना चाहता हूं। IloNumExpr [] colexpr = नया इलोलाइनर न्यूएक्सएप्रप्र। [यात्रियों]; IloNumExpr [] colexpr2 = नया IloLinearNumExpr [यात्रियों]; IloNumExpr [] colprod = नया IloLinearNumExpr [यात्रियों]; IloNumExpr [] firstpart = नया इलोलाइनर न्यूएक्सप्र। [यात्रियों]; IloNumExpr [] finalobj = नया IloLinearNumExpr [य...

java - how volatile keyword Influences atomicity when defining a long or double variable -

I've been thinking lately in Java and confused with the following: However, you receive atomism (for simple work and returns) if you use a volatile keyword while defining long or double variables (note that the volcano was not working properly before Java SE5). Why can I get atoms if I use fluctuation while defining long or dual variables? JVM is allowed to write and write 64-bit quantities (long and double variables) as two separate 32-bit functions, and if I am unstable by two different 32-bit operation threading mechanisms as long or double variables Do not interrupt? The entire paragraph content: Atomicity is "simple operation" long and in addition to doubles, on the primitive types of undivided (atomic) operations, Reading and writing primitive characters other than dual, however, there may be a context switch between reading and writing JVM and after that, 64-bit quantities (long and double variables as two separate 32-bit operations) ) To read and wr...

error handling - Is it possible to throw an exception using short hand condition operator? c# -

To throw an exception, I'm trying to use a short hand operator to check a condition. Throw (Results == Wrong)? The new exception ("the result is false."): Faucet; After the lines above the line above, I get an "unrequited code detected error". I think if "not found, it is still throwing an exception." Any better way to do this little hand? As far as I know, you can not do this because you throw is either an exception or a zero And in both cases the code below is not always available, you can do it on one line only: If (! Result) throw a new exception ("the result is false." ); This also expands less typed characters

php - add/call widget in default.tpl layout socialengine -

I am new to programming zend and socialengine. I have default.tpl layouts such as: & Lt; Body id = "global_page_ & lt; php echo $ identity?" & Gt; & Lt; Div id = "global_header" & gt; & Lt ;? Php echo $ this- & gt; Content ('Header')? & Gt; & Lt; / Div & gt; & Lt; Div id = 'global_wrapper' & gt; & Lt; Div id = 'global_content' & gt; & Lt; Div class = "widget with new class" & gt; & Lt; / Div & gt; & Lt ;? Php // echo $ this- & gt; Content ('global-user', 'first')? & Gt; & Lt ;? Php echo $ this- & gt; Layout () - & gt; material? & Gt; & Lt ;? Php // echo $ this- & gt; Content ('global-user', 'after')? & Gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "global_footer" & gt; & Lt ;? Php echo $ this- & gt; Content ('footnote')? &...

css - Float the nav to the right and keep it flush with the edge of the page on resize -

I need the menu (book 1, book 2 etc.) which is wrapped in div class = "nav" correctly And whether the alignment on the right side of the browser window and sticky, regardless of how big monitor size. Do I need to use 100% width on one of the above elements of this NAV or maybe body? Any help would be great! Thanks

Restrict published event to certain user groups in Plone -

I am using Plone 4.3.3 and am trying the following: When the administrator Adds new events, I want them to be able to specify user groups who should be able to see that event in their calendar. Any user related to that user group does not want to see that event. I think that only the published event is viewable in the calendar, so the administrator has to publish it. On the other hand, the "Share" tab-> "Only viewable" works only for private events, once the event is published it is visible to any user. What will be the method of restricting a published event to a certain user group, so that users outside of that group will not be able to see it? Thank you. Portlanderlander tool, by JMI, allows you to add new states to the event shown in the calendar. is. Obviously, in addition to calendar configuration, security issues and only events that users can actually see are shown. So you can add a "personal" status here, which you can play wit...

JDBC Cache statement per connection -

I know that while using predefined the statement will be cached for use next time, but I have read the documents that Cache per connection is made, I think it means that each connection maintains its cache. That is, connections can not use a cached statement in Connection B, even those two connections are in the same connection pool. I'm wondering why the connection pool can not manage the cash for everyone in the connection, so the statement can be reused by all connections. My question: Am I right about this? Or I just misunderstood it. And if I am right, then about my thoughts mentioned above. Can this be implemented in such a way? A statement handle - usually - is connected to a built-in physical connection (not only in JDBC favor , But also in the database side). When the connection is closed, it has been deleted / stopped. As it is connected to the connection, the handle can not be done with a separate connection, so for the statement cache - if any - per connec...

php - Zend Framework Image upload Error : The given destination is not writeable -

// लेख के साथ डिफ़ॉल्ट छवि $ imgElement = नया Zend_Form_Element_File ('imgElement'); $ ImgElement- & gt; सेट लेबेल ("एक छवि अपलोड करें:"); $ ImgElement- & gt; setDestination (APPLICATION_PATH "/../ अपलोड / articleImg /"।); $ ImgElement- & gt; addValidator ( 'गणना', झूठे, 1); // केवल 1 फ़ाइल $ imgElement- & gt; addValidator ('आकार', गलत, 102400) सुनिश्चित करें; // सीमा 100K $ imgElement- & gt; addValidator ('एक्सटेंशन', गलत, 'jpg, png, gif'); $ इस- & gt; addElement ($ imgElement); उपरोक्त लेख के साथ फाइल अपलोड करने के लिए मेरा कोड है। मुझे मिलती हुई त्रुटि एक त्रुटि हुई; अनुप्रयोग त्रुटि अपवाद जानकारी: संदेश: दिए गए गंतव्य लिखे जाने योग्य नहीं है अगर मैं ls करता हूँ -एल , मुझे मिल जाता है drwxrwxr-x 3 aman aman 4096 31 जुलाई 20:03 अपलोड मुझे उस निर्देशिका में लिखने की अनुमति है अगर मैं टर्मिनल का उपयोग करता हूं और एमवी कुछ फाइल उस स्थान पर चला जाता है तो यह उसमें से हो जाता है। मुझे लगता...

music - How does pyechonest (Echo Nest python library) collect data about current artists locally? -

Does it come Every time I run a dragon script on my machine, is the database hosted online? This can be done by pyechonest.artist.search / P> I will provide you a sample code from the document. Peknest import artist result = artist (Details = ['synthpop'], bucket = ['id: 7digital', 'id: musicbrainz'], result = 5) For some results : // your remaining code More information can be found

http post - How to access a variable from one PHP page to another, without a form, link, or button? -

TLDR: - एक चर फ़ॉर्म , लिंक या बटन को शामिल किए बिना कोड> एक से PHP फ़ाइल पर क्लिक करें। प्रश्न: - ऐसा फ़ॉर्म एक पृष्ठ / फ़ाइल में है जिसे question_edit_form.php नामक और उसके क्रिया विशेषता पहले से ही किसी अन्य फाइल पर सेट है जिसे question.php नामक है। उपयोगकर्ता से question_edit_form.php ब्याज का चरम पढ़ा जा रहा है और फिर स्पष्ट रूप से question.php पर भेजा जा रहा है $ _ POST । अब, renderer.php नाम की एक तीसरी फाइल है, और जो अन्य दो फाइलों से जुड़ी नहीं है। मैं इस फ़ाइल में रुचि के उस चर का उपयोग करना चाहता हूं। तो मैं उस वेरिएबल का उपयोग कैसे कर सकता हूं जो question.php में renderer.php के अंदर से निर्धारित है? आप सत्र में वेरिएबल्स को स्टोर कर सकते हैं।

How to install ruby 2.1.2 on windows? -

I did not find any Windows Installer to install Ruby 2.1.2. The only resource I have found is a tar / zip file available on that. I do not know how to install it, some suggesting how to install Ruby 2.1.2 version. I am able to fix Zlib Walnut (for Windows 8.1 - see below), but I am still struggling. With Openssl, readline, etc. ... I feel amazing that this documentation is not easily found, and users are fighting this battle without considering using some expert / responsive 2.0 installer because we have 2.1.2 Functionality is required I downloaded zlib128-dll.zip and opened the content in a directory (for example, c: \ zlib). After following some signals from this post (), I created these songs with the formation of my C: \ ruby-build \ usr directory: Zlib zlib \ include zlib \ lib Then I copied some files from my c: \ zlib directory in my c: \ ruby-build \ usr directory: * .h file C: \ zlib \ lib from c: \ ruby-build \ usr \ zlib \ lib to c: \ zlib \ include to c:...

php - SQL Query failing on Microsoft Access, working on MYSQL -

I'm trying to run a query on a Microsoft Access database by doing this $ Ticket_time = $ db- & gt; Prepare ("Choose Problems. Start_date, Problems. Problems, problems.id, tblusers.fname, tblnotes.id, tblnotes.note Fix problems by connecting problems.rep = tblusers.sid on the right join problems tblnotes.id = tblnotes .id WHERE 'start_date` & gt;' History 'and start_date position between 1 and 8 groups from start date by ASC;); $ Ticket_time- & gt; executed; while ($ line = $ ticket_time- & Gt; Fetch (PDO :: FETCH_ASSOC)) {// Some Things} This query works when I connect to mysql database This is the same question when connecting to the MS Access database, but the production database is Microsoft Access; Fatal error: Call to execute a non-object member function on line 84 line 84 with $ ticket_time-> execute (); A var_dump ($ ticket_time); Returns boolean false is connected to the MS Access database, but the expected return ...

Iterating through a two dimensional array in Ruby and substituting a string for every instance -

win_array = [["टीएल", "टीएम", "टीआर"], ["एमएल", " एमएम "," एमएम "], [" बीएल "," बीएम "," बीआर "], [" टीएल "," एमएल "," बीएल "], [" टीएम "," एमएम "," बीएम "] ["टीआर", "एमआर", "बीआर"], ["टीएल", "एमएम", "बीआर"], ["टीआर", "एमएम", "बीएल"]] जीत_अरे [0] .मैप! {| X | X == "टीआर"? "1": x} #works के लिए [0] सरणी win_array [0 .. 7] .मैप! {| X | X == "टीआर"? "1": x} # win_array.each.map काम नहीं करता! {| X | X == "टीआर"? "1": x} # काम नहीं करता win_array.each {| x | x.map! == "टीआर"? "1": x} # काम नहीं करता मैं इस पूर्णांक या स्ट्रिंग को या तो 2 डी सरणी में "TR" के प्रत्येक इंस्टेंस को स्थायी रूप से बदलने की कोशिश कर रहा हूं। मैंने। मैप का उपयोग करने की कोशिश की है!...

java - error: cannot access Filter -

My error of my Spring-security-log-in-annotation project I see that Macong Failed to execute target org.apache.maven.plugins from site [ERROR] to: Maven-compiler plugin: 2.3.2: Compilation at (default-collection) ) project spring-Security loginform- annotation: compilation failure: compilation failure: [error] \ projects \ SpringKT \ spring-security-custom loginform- annotations \ src \ main \ java \ com \ mkyong \ config \ SecurityConfig.java: [ 12, 7] Error: \ src \ main \ Java \ com \ mkyong \ config \ core \ SpringSecurityInitializer.java filter [ERROR] can not use \ projects \ SpringKT \ spring-security-custom login form-annotation [5,7] error I can not use ServletException Here is my description of the project version Lt; Spring.version & gt; 4.0.6.RELEASE & LT; /spring.version> & Lt; Spring.security.version & gt; 3.2.3.RELEASE & LT; /spring.security.version> & Lt; Jstl.version & gt; 1.2 & LT; /jstl.version> & Lt; ...

jquery - this reference in JavaScript -

Today I was writing some basic stuff of Java script, while I had to face the problem. Although I was able to solve this problem, but the reason was not known why this was not working. Here is my code $ ('document'). Ready (function () {$ (this) .click (function () {var node1 = $ (this); a = node1 text (); console.log (a);});}); In this console I see the empty string. But if I change $ (this) .click (function {...}) from $ ('. Some_class_name'). Click (function {.....}); works fine in comparison to my code and I display the text value of the button that was clicked. I want to know what is wrong with the above code. You should find it, use to get the text inside the clicked element E.target which exists inside the document. $ ('document'). Ready (function () {$ (this). Click (function (e) {var node 1 = $ (e.target); var a = node1.text (); console.log (a);});} );

java - changes not reflected in eclipse -

I'm trying to debug some code in the controller of my application, but at the time of execution Is not displayed. I installed a session out statement in my controller and it was printed. Public string code (@model unbreakable project, binding result result, map & lt; string, object & gt; map) {Project Projectsult = @RequestMapping (value = "/ edit ", Method = RequestMethod.POST) new job (); Date = new date (); String Revised Date = New SimpleDormat ("YYA-MM-DD"). Format (date); Project.setSubtrack (.. (subtrackService.getAllsubtrackByName (project.getSubtrack () getSubtrack ())) (0)); Project.setSubmittedDate (modifiedDate); Project.setApprovedDate (modifiedDate); Project.setCreatedDate (modifiedDate); Project.setCreatedBy ("r1"); Project.setLastModifieddate (modifiedDate); Project.setLastModifiedby ("r1"); String action = "edit"; System.out.println ("This is a test at first place" + project.getEndDate ()); ...

javascript - Three.js Use Skeleton like an Armature in Blender? -

Is it possible to create a skeleton in three agencies, which is similar to an ammuncher in blender with an amnesia and different skin mesh Adding (with your bones) to the skeletons and limiting those bones from wart to skeletal bones with the same name? For example, you have a person's skeleton and then adding a person's body trap and then perhaps a sword mesh and other armor mash will allow you to do the animation (by the way I'm currently doing this) should not expect to save each person in their mesh (their file size reduction) and instead save the animation only in the skeleton (armature). Reducing the mesh file size would be great to reduce the bandwidth of my site in this way. I saw that already three. JS is a skeleton object in the source, but it seems that in order to demonstrate the skeleton of an existing mesh on the basis of given example used in conjunction with SkeletonHelper and not as a standalone unit. So it is possible to use the skeleton object o...

ios - xcode format numbers with spaces -

इस सवाल का पहले से ही एक उत्तर है: 6 जवाब मैं कैसे कीमतों में परिवर्तित कर सकता हूँ इस प्रकार से 1000000 1 000 000 धन्यवाद। यहां यह है: NSNumberFormatter * numberFormatter = [[NSNumberFormatter alloc] init]; [NumberFormatter सेटनम्बर स्टाइल: NSNumberFormatterCurrencyStyle]; NSString * numberAsString = [numberFormatter stringFromNumber: [एनएसएनम्बर नंबरवास्त डबल: [मुद्रा डबल वैल्यू]]]; Self.label.text = numberAsString; और अगर आप दिखाना चाहते हैं

angularjs - Angular slow hide/show -

To hide and show some code I have the following: & Lt; An id = "back button" type = "button" ng-show = "onslide" class = "left carousel-control" ng-click = "onslide = onslide - 1" & gt; & Lt; Span class = "glyphicon glyphicon-chevron-left" & gt; & Lt; / Span & gt; & Lt; / A & gt; & Lt; An id = "nextButton" type = "button" ng-hide = "onSlide == slide.length - 1" class = "right carousel control" ng-click = "onslide = onslide + 1" & gt; & Lt; Span class = "glyphicon glyphicon-chevron-right" & gt; & Lt; / Span & gt; & Lt; / A & gt; The display is very good when using the button, the slides are switched right However, if I change scope.onSlide to the controller, then slide switching There is a lot of delay, though a console.log suggests that the scope.onSlide is actually incremental, can it leak...

jquery - On click anywhere close slide menu -

I am using a Blueprint Slide and Push menu but the problem is that I need a menu when I close Click on any part of the body, leaving the body. Please help me I need the code this can help you is. $ (document) .click (function () {if ($ ('yourElement'). (': View')) {$ ('yourElement') SlideUp (300) ;}}); $ ("Your Element") On ('click', function (e) {e.stopPropagation ();});

karma jasmine - unit testing : http call in controller inside directive -

वर्णन ("फ़ाइल अपलोड निर्देश", फ़ंक्शन () {var elm, scope, httpBackend, नियंत्रक, अलगाव स्कोप; पहले प्रत्येक (कोणीय। मॉक। मॉड्यूल ("fileApp"); पहले प्रत्येक (कोणीतरी। मॉक इन्वेंट (फ़ंक्शन ($ रूटस्स्कोप, $ संकलन, $ httpBackend) {elm = angular.element ("& lt; div फ़ाइल-अपलोड बेस अपलोड -URL = 'फ़ाइलें /' & gt; & lt; / div & gt; "); httpBackend = $ httpBackend; scope = $ rootScope; httpBackend.whenGET (" fileUploadTemplate.html ")। प्रतिक्रिया (सच); $ संकलन (एल्म) (स्कोप ); नियंत्रक = elm.controller; गुंजाइश। $ डाइजेस्ट ();})); ("चयनित फ़ाइल को अपलोड करना चाहिए", फ़ंक्शन () {httpBackend.flush (); अलगाव; स्कोप = एलएम। इलोलैटस्स्कोप (); उम्मीद है (अलग-अलग स्कोप) .toBeDefined (); अलग-अलग स्कोप। चयनित फ़ाइल्स = [{"वेबकीट रिलेटिवपाथ": "", "अंतिम सुधारित दिनांक": "2014-05-2611 11: 15: 55.000 जेड", "नाम": "सीसीवी", "प्रकार": " पाठ / सीएसवी "...

javascript - How to create CSS styled dom element inside Google Maps InfoWindow? -

I tried to create a custom element inside Google Map information but it does not work. I've linked CSS and JavaScript properly. function open window (map, marker) {var contentString = '& lt; Div id = "content" & gt; + '& Lt; Div id = "cyanotis" & gt; '+' & Lt; / Div & gt; '+' & Lt; H1 id = "first hadding" class = "first hadding" & gt; Location # 1 & lt; / H1> '+' & Lt; Div id = "bodyContent" & gt; '+' & Lt; Div class = "panel panel-default" id = "spr_32" & gt; & Lt; Div class = "panel-title" & gt; & Lt; H4 square = "panel-title" & gt; With button & lt; / H4 & gt; & Lt; Div class = "panel-title-content" & gt; & Lt; A href = "#" class = "btn btn-success btn-xs" & gt; Such as & lt; / A & gt; & Lt; / Div & gt; ...

c++ - When should specific constructors be implemented? -

If my class has different attributes, for example the following code: Class status {double latitude; Double longitude; Double height; Pausx Time Time; }; So we say that this is the class that I want to make, where is the time (currently in the development of the current time) always current time . I do not currently use any other time, it is always the creation time, should I still apply a manufacturer with a time parameter? Maybe it's used later or by any other developer? In short, there are two options: Writing only 2 constructs: position (): latitude (0), longitude (0), alitutde ( 0), Time (PosixCurrentTime ()) {} Status (double latitude, double loan, double alt): Latitude (latitude), longitude, alitutde (alt), time (PosixCurrentTime ()) {} position (double latitude, double lawn, double alt, poketime t): latitude (latitude), longitude (loan), alitutde ( Alt), time (t) {}

iterator - Remove Entries From TreeMap, getting java.util.NoSuchElementException -

I am trying to remove some entries from TreeMap using some arguments. This is my code treemark Obtaining an exception: - java.util.NoSuchElementException at java.util.TreeMap $ PrivateEntryIterator.nextEntry (TreeMap.java:1113) On Java.util.TreeMap $ EntryIterator.next (TreeMap.java:1151) java.util. Treemap $ EntryIterator.next (TreeMap.java:1146) What is the exception? This error is in the recurrence please correct me also. You should check the following elements like this: Treemark & ​​lt; String, Object & gt; Tree map = some entry (); Iterator & lt; Entry & lt; String, Object & gt; & Gt; IARAR = treemap Enterreset () Iterator (); Entry & lt; String, Object & gt; enter; While (iter.hasNext ()) {entry = iter.next (); {(Entry.getKey ()) in (search) {iter.remove (); }} If you call iter.next () , then there is no next element, then NoSuchElementException goes.

c# - Linq query converting to bool? -

How can I get back to the Linux query below? I need to compare every bargain target property and total assets, and if a deal is less than the target total completed, then set HasEachTeamMemberHitTarget to false. If I create the code below on the statement, I get an error. I am doing it in C #, MVC. for (int i = 0; i Do you want it? HitsememberHitTables = this. All (M = & gt; M.DelletGrage & amp; lt; m contains total Deals);

lotus notes - How can i get html content or bytes of a rich text field in XPages? -

I have XPage in 2 text fields and 1 recharge text field. I have created a system that whenever there is at least one change in these areas then the document is automatically saved as a draft. My problem with rich text fields is that I can change the text but I can not hold it in the change in text style (i.e. if I make some letters bold). So I want to change rich text content together with HTML or byte or style. I want to compare the content stored in the document and the new content in the client, so I want something like a doctor .getItemValueAsHTML ()! = RichField.getValueAsHTML () ... Any thoughts? NotesXspDocument method getValue () Then getHTML () gives you the HTML representation of rich text fields. Then use your data source and call getValue () and getHTML () methods to use the field names as parameters. Example: document1.getValue ("rtfield"). GetHTML ()

Indenting Table columns using Css and HTML -

I have created a table using HTML, but the column headers are very close to each other and so I want to I'm using CSS to get them out. In my HTML, I have created a table with the header like this: & lt; Table class = "datable" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; School & lt; / Th & gt; & Lt; Th & gt; First Namer & lt; / Th & gt; & Lt; Th & gt; Last name & lt; / Th & gt; & Lt; Th & gt; Game & lt; / Th & gt; & Lt; Th & gt; Enrollment date & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; / Table & gt; And in my CSS file: table.DataTable {border: 1px solid # 79bbff; // There is nothing more, but how do I remove the headers? } Thanks Your best bet is CSS rules Follow: table. DataTable th {padding-left: 5px; Padding-right: 5px; } Adjust the padding pixel size for your taste.

PHP: move with rename fails, but combination of copy and unlink works -

I use PHP's rename to move one file to a different folder Trying to file in one step) However, rename always false returns. On the other hand, using a combination of copy and unlink works just fine, what could be the reason for this? The relevant code looks like this: (Rename ($ targetpath, $ backuppath)) {// If the name change fails, try Copy and delete with copy (copy ($ target path, $ backpack)) ("9 \ n can not move existing file back in backup"); Touch ($ backpack, filetime ($ target path)); If (! Unlink ($ targetpath)) dies ("9 \ n existing file can not be transferred to backup"); } The path will be for example $ targetpath: /path/to/plots/some.pdf $ backuppath: / path / to / plots / Start by checking the error: Print_r (error_get_last ()); Which php are you using? On older versions, rename works only when both the source and destination are on the same file system Rename on some systems will also fail if you have an op...

R subset in association rules from spmf -

कोड: डेटा = read.csv ("। / Spmf1234.csv", हैडर = एफ); Df & lt; - data.frame (do.call ('rbind', strsplit (as.character (डेटा $ V1), '#', तय = एफ))); Df2 & lt; - data.frame (do.call ('rbind', strsplit (जैसा कि ascharchar (df $ x1), '== & gt;', fixed = f))); DF3 = cbind (df2, df); colnames (DF3) = सी ( "एलएचएस", "आरएचएस", "नियम", "सहायता", "विश्वास", "लिफ्ट"); Df4 & lt; - सबसेट (डीएफ 3, चयन = सी (एलएचएस, आरए, समर्थन, विश्वास, लिफ्ट)); अंतिम = सबसेट (DF4, एलएचएस = 1!); मैं सीएसवी फ़ाइल पर उपरोक्त कोड की कोशिश कर रहा हूं जो कि एसपीएमएफ से संबद्ध नियमों को प्राप्त करने के लिए मैं एफपी-ग्रोथ का प्रयोग कर रहा हूं। मैं चाहता हूं कि सभी नियमों को '1' में हटा दिया जाए, हालांकि यह काम नहीं कर रहा है। csv फ़ाइल: 2 ==> 1 #SUP: 1 #CONF: 0.33333 # लाइफटी: 0.66667 1 ==> 2 #SUP: 1 #CONF: 0.33333 # लाइफटी: 0.66667 3 ==> 1 #SUP: 2 #CONF: 0.5 # लिफ्ट: 1 ...

iis 7 - PHP cannot anonymously bind to LDAP -

The problem is that I can add LDAP via PHP, but I can not force it. In the Apache Directory Studio I can connect and tie without any problems, but the PHP result is always "FAIL" How is PHP linked to LDAP? & lt ;? Php $ ldaphost = "ldaps: //server.net"; $ Ldapport = 636; $ Ldapconn = ldap_connect ($ ldaphost, $ ldapport); If ($ ldapconn) {echo 'connected'; $ Ldapbind = ldap_bind ($ ldapconn); If ($ ldapbind) {echo "OK"; } And {echo "unsuccessful"; }} Try setting the protocol version & lt ;? Php // unmatched connection $ ldaphost = "ldaps: //server.net"; $ Ldapport = 636; $ Ldapconn = ldap_connect ($ ldaphost, $ ldapport) or die ("Can not connect to LDAP server."); If ($ ldapconn) {echo 'connected'; // Set protocol version ldap_set_option ($ ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3); // anonymous identity $ ldapbind = ldap_bind ($ ldapconn); If ($ ldapbind) {echo 'OK'; } And {echo...

java - Using Selenium webdriver when tried to get the CSS property of background-color, it returned ‘transparent’ -

When using the Selenium WebDriver in Java, when I try to get the background color, the result is obtained as a hex value rather than transparent. I if (elementName.contains (" background ")) getColor = driver.find element (byexpath). GetCssValue ("background-color"); String [] numbers = getColor.replace ("RGBA (", "") .replace (")", "") .split (","); Int r = integer.centrate (number [0] .tem ()); Int g = integer. Parcel (number [1] .tim ()); Int b = integer Parasont (number [2] .tem ()); Hex = "#" + integer.txtster (r) + integer.txtstring (g) + integer.txtestring (b); String [] numbers = getColor.replace ("RGBA (", "") .replace (")", "") .split (","); returns the above code as "transparent" Try the following code: ((JavaScript Execution driver)). ExecuteScript ("return logic [0] .style.background-color", element);

android - Multiple voice triggers to start the same Activity on Glass and distinguish which one was used -

I would like to use two different voice triggers to open the same activity, and within this activity, the decision Take what the trigger was used Is it possible without adding an additional signal? According to the docs, you have access to RecognizerIntent.EXTRA_RESULTS , if any prompt is used So my question is, does the same activity trigger more than one trigger Is it possible to fire with, and what code is there any way to know which trigger was used? After doing that I found a better way with activity-aka and meta-data. Add an activity in which your AndroidManifest.xml first sounds trigger: & amp; Activity Activity: Name = "com.package.MainActivity" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "com.google.android.glass.action.VOICE_TRIGGER" /> & Lt; / Intent-Filter & gt; & Lt; Meta-Data Android: name = "com.google.android.glass.VoiceTrigger" Android: resource = "@xml / glass_fi...

jquery - Javascript: how to get the value of <a> tag i clicked from other previous page -

& lt; a & gt; टैग एक तालिका पर हैं। - HTML - & lt; tbody id = "TableBody" & gt; & LT; टीआर & gt; & Lt; td वर्ग = "स्पैन 2" & gt; स्पैन क्लास = "रेखा" & gt; & lt; / span & gt; & lt; b & gt; & lt; a href = "होम / अगली पृष्ठ" & gt; 1207012097 & lt; / a & gt; & lt; / b & gt ; & lt; / टीडी & gt; & Lt; / टीआर & gt; & LT; टीआर & gt; & Lt; td वर्ग = "स्पैन 2" & gt; स्पैन क्लास = "रेखा" & gt; & lt; / span & gt; & lt; b & gt; & lt; a href = "होम / अगली पृष्ठ" & gt; 1207011881 & lt; / a & gt; & lt; / b & gt ; & lt; / टीडी & gt; & Lt; / टीआर & gt; & LT; टीआर & gt; & Lt; td वर्ग = "स्पैन 2" & gt; स्पैन क्लास = "लाइन" & gt; & lt; / span & gt; & lt; b & gt; & lt; a href = "होम / अगली पृष्ठ...

java - tomcat6 regular task every 10 seconds -

Image
Does Tomcat work some routine in some 10 seconds? I notice this on my local Biscuit server, but not on the remote server. Here is the JVM CPU usage: See this It's a peak about every 10 seconds that I'm not running anything, and, what is this doing? UPDATE : These are threads, it's true that I'm using quartz for scheduler. But they are always waiting for the situation Try to use visual or visual as an instrument and check which classes are included. It is possible that your tomat is using quartz.

Interaction Between Spring Container and Servlets -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैं समझने की कोशिश कर रहा हूँ एक स्प्रिंग फ्रेमवर्क कंटेनर और एक सर्वलेट के बीच पाइपलाइन मैं सिर्फ शुरुआत कर रहा हूं और विश्वास करता हूं कि एक स्प्रिंग एमवीसी एप्लीकेशन सर्वलेट्स, पोर्टेलेट्स आदि के साथ काम कर सकता है। जब एक स्प्रिंग एप्लीकेशन सर्विसलेट्स लॉन्च की जाती है, तो मेरा मानना ​​है कि एप्लीकेशन की दुनिया वसंत कंटेनर के निर्माण से शुरु होती है , जिसका मुख्य कार्य (वास्तव में मुख्य नहीं है, लेकिन कुछ इसी तरह से) सेम बनाता है, उन्हें टाले आदि। इसके अलावा, यह एक सर्वलेट, डिस्पैचर सर्कल बनाता है, जो वसंत आवेदन में अन्य नियंत्रकों को कनेक्शन और मार्ग अनुरोध स्वीकार करना शुरू करता है। वसंत कंटेनर सक्रिय रूप से सर्वलेट का प्रबंधन नहीं करता है, इसलिए डिस्पैच सर्बिल को वसंत कंटेनर का हिस्सा नहीं माना जा सकता है। क्या मेरा सही ऊपर की समझ है? यह महान होगा अगर कोई स्प्रिंग फ्रेमवर्क और (कहते हैं) और एम्बेडेड सर्वलेट कंटेनर जैसे टोमकैट / गेटी के बीच प्लंबिंग पर अधिक रोशनी को चमक सकता है। धन्यवाद! वसंत ही एक कंटेनर नहीं है, इस...

jquery - Why doesn't all values get iterated from object? -

में jQuery - मेरे पास यह है: // रिटर्न = ऑब्जेक्ट {0: 17 ", 1:" 16 ", 2:" 24 "} console.log (अंतिम कॉलर्स चयन); $ (अंतिम कॉलर्स चयन) .each (फ़ंक्शन (कुंजी, मान) {console.log (मान [कुंजी]); // क्यों?}); केवल लूप में पहला मान क्यों मिलता है? (17) मैं चाहता हूँ कि 17,16 & amp; 24. के माध्यम से दोहराई जा सकती है। $ .each का उपयोग करें () फ़ंक्शन नहीं object.each () $। प्रत्येक (अंतिम कॉलर्स चयन, फ़ंक्शन (कुंजी, मान) {console.log (मान);});

c++ - Qt : how to set text to QSystemTrayIcon? -

I want to dynamically set text instead of icon in QSystemTrayIcon . How is this possible? The tray icon is not designed to show text, only small image Additionally, you can send tooltip messages You can set as @ Marilyn 069, show a balloon message or create a context menu. Of cours, you can create an image in your program and create some text on it: QPixmap pixmap (24, 24); Pixmap.fill (QT :: white); Couponer painter (& pixmap); Painter.drawText (pixmap.rect (), Qt :: AlignCenter, "Hi!"); Icon.setIcon (Pixmap); Icon.setToolTip ("Hi!"); Icon.setVisible (true);

android - Draft or backup versions -

What wordpress code + is there any way to automatically control the development process using some draft attributes? Since I am a newbie, I am using a lot of things, and I face such errors which sometimes I do not understand. And then, instead of solving an error initially, I will recover the previous draft version. I have come up with the best thing, making another project with version code 1 and the version name "0.xx", where 0 stands for the draft, maybe after experiencing some experience, Do not want anything better? Okay, so this is where I came to GIT; Was a newbie. Commit.

PHP PDO dblib parameters not bound -

I have to connect to an external SQL database. I am using PDO dblib The connection works fine. Once I try to use the prepared statement, the parameters are not set. $ dbh = new PDF (sprintfo ('dblib: host =% s; dbname =% s', self: DB_HOST, auto :: DB_NAME), auto :: DB_USERNAME, auto :: DB_PASSWORD); $ Dbh- & gt; Prepare ("Select from * Contact Where to Ref = = Id"); $ Sth- & gt; Execute (array (': id' => 1172)); $ Result = $ sth- & gt; Get All (PDO :: FETCH_CLASS); returns an empty array Another attempt, according to the document: () $ dbh- & gt; Ready ("select * contacts WHERE ref =?"); $ Sth- & gt; Amal (Array (1172)); $ Result = $ sth- & gt; Get All (PDO :: FETCH_CLASS); also returns an empty table The third attempt without parameters: $ dbh- & gt; Ready ("Select" WHERE Ref = 1172 "); $ Sth- & gt; Executed (); $ Result = $ sth- & gt; Get All (PDO :: FETCH_CLASS); ret...

Python Equivalent for matlab cart2pol and pol2cart -

I would like to use pol2cart and cart2pol for two functions in MATLAB. Is there an equivalent Python Function? Or if we can define work? For example, I tried to use the CeMatePactor function, but it only accepts one argument, I have 2 arguments to cross the polar and REC function. P> I have tried to use this function for cart2pol: def cart2pol (x, y): theta = atan2 (y, x) rho = Sqrt (x ** 2 + y ** 2) returns (theta, ro) thanks

java - Display present SQLite databases on listview -

I want to add all the databases on my Android phone to the program and display them all on the list view, But I could not find any solution. I got this code from Google, but it does not show all the current databases in the list view. Private array list & lt; String & gt; GetDBFILES () {ArrayList & lt; String & gt; Arr = new arreelist & lt; String & gt; (); String db_path, rand_name, str_tmp; //ad.1-2 Rand_name = Random file name for DB = new random (). NextInt ((4000000-2000 + 1) +2000) + ".db"; Db_path = openOrCreateDatabase (rand_name, MODE_PRIVATE, null) .getPath (); //ad.3. DeleteDatabase (rand_name); //ad.4 Db_path = db_path.replace ("/" + rand_name, ""); //ad.5. File [] files = new file (db_path) .listFiles (); If (files == faucet) {return tap; } // So now we can get file names one (int i = 0; i & lt; files.length; i ++) {str_tmp = files [i] .getName () for one; If (str_tmp.endsWith ("- magazine")) {arr...

database - Import MySql DB just tables without field values -

Is it possible to copy all my DB tables in another DB but without field value my Status: I am developing a web page in parallel with a DB (MySQL workbench). In that DB, I only put fake information and did the local on my PC. Soon it is time to do this with real information & lt; I want to tease my DB table only on the new server, a copy will not be okay, it will also copy all the fake values: / So what is it possible? PS: I can not remove all my values ​​because all PK at FK constraints I declare -_- There are several ways to know about this. Use db.tableName to create the table; To obtain the structure of the table, repeat for all required tables. Use the MySql dump to dump the table structure that looks like this mysqldump -d -h localhost -us root-P database > Dumpfile SQL

android - Are deleted sms are still in content://sms? -

I am working on a project that uses SMS and call_logs. I want to know that deleted SMS (call_logs) are still in content: // SMS database? Thank you. Why should you be there if you want to delete them? SMS and call logs are stored in the database and you need to use the content provider to modify them. The content provider will receive your request and execute a query on the database. So when you delete an SMS, a deleted query will run on the database and the data will be permanently deleted!

delphi - Grouping items inside TListView object? -

Image
I am trying to group items within the TListView object, but I find the class responsible for grouping the object I can not, neither am I able to do this within the document. What is the class about grouping items within the TListView object, and how to use it properly? Platform FireMonkey (Android / iOS) / Delphi X6 This property I believe is you talking about TListGroups , is a collection in which TListGroup items are provided in the Delphi document Unfortunately, this is not only available in VCL and is not FMX, because the built-in functionality is a part of the Windows List View Control which can be found in the TListView Wrapped. The closest you can get in FMX is using TListBox and a TListBoxGroupHeader which is included in the Multi-Device Tutorial A table view (Using ListBox component to display iOS and Android)) : Process TForm1.FormCreate (Sender: Toubys); Var c: Four; I: integer; Buffer: string; Listbox item: TLITboxime; ListBoxGroupHeader: T...

jclouds create tenant in openstack -

I am using jclouds 1.8.0 to create a tenant in the openstack. "TenantAdminApi" is used to make a tenant. The following is my code snippet: Optional But I can not make a tenant because the "isPresent" flag is false. If I am not wrong, you need OS-KSADAM extension, and when you create references Check the endpoint of the administration (double check which you are using).

jquery - How to serialize form with file inputs -

I am using Ajax which posts values ​​to my php file with some file input. It is not sorting my file and I found out that jquery only for file elements except for file inputs. Anyone can help me please. You can not submit file data with the basic jQuery AJAX function. Edit: You can upload files using AJAX interface, although this is not supported by IE less than 10. I still recommend using the above mentioned plugin.

php - MongoDB extension is not working in Wamp -

I want to use MongoDB in my Symfony2 project I have added the composer. Jason (required section) "theory / mongodb": "1.2.*@dev", "theory / mongodb-odm": "1.0.*@dev" , "Principle / Mongodb-ODM-bundle": "3.0.*@dev" But when I update the composer, there was an error Problem 1 - Installation request for principle / mongodb 1.2.*@dev - & gt; Theory / Mangode satisfied by [1.2.x-dev]. - Additional Requirements for Principle / mongodb 1.2.x- dev & gt; = 1.2.12, & lt; 1.6-dev - & gt; The PHP extension requested from your system is missing. I'm adding Vamp and I (as mentioned in the post) in php_mongo.dll ext directory. The phpinfo () function indicates that Mongo is available when I press the left button, the "php_mongo" extension appears, however, when I execute php -m , the Mongo extension is not listed . C: \ wamp \ www & gt; Php -iini configuration file (php.ini) path: C: \ Wi...

c# - Operation not permitted on IsolatedStorageFileStream. IsolatedStorage Exception -

I'm starting for C # and Visual Studio to get the custom parameters in the player to play videos from within the browser Has created a Silverlight application. The code for running the application outside the browser is given below: // When running outside of the browser, retrieve initParams from separate storage. If using (Application.Current.IsRunningOutOfBrowser) {(IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication ()) (using stream = new IsolatedStorageFileStream ("initParams.txt", System.IO.FileMode.Open, System.IO FileAccess.Read, File)) // Serializer needs a reference to the system. time to time. Serialization.dll Data Contracerecerizeriser serializer = New Data Contrast Cyberizer (typef (dictionary; string, string & gt;)); InitParams = (dictionary & lt; string, string & gt;) serializer.ReadObject (stream); }} // Otherwise, save initParam for separate storage. Other {initParams = E. Antwerp; (IsolatedStorageFile file = Is...

android - Gradle Script to generate/clean Multiple Product Flavors -

I know how the product is made. I have successfully made product flavors and apks according to product flavors. I have 8 different product tastes in my project. I want a gradle script by running this script I can generate / clear multiple APX for all product flavors Can anyone help me? Additional information: I am using Android Studio 0.8.3 gradlew build will generate an APK for each version (taste + build type). If you want to generate certain types, you can run gradlew functions for a list of all available jobs .

python - what is the meaning of module name in imp.load_source? -

stock.py में d: \ stock.py नाम की एक फाइल है, मैं इसे import imp x = imp.load_source ('module_name', 'd: \\ stock.py') x & lt; मॉड्यूल 'module_name' से 'd: /stock.py'> इसे इस रूप में लिखा जा सकता है: y = imp.load_source ('module', 'd: \\ stock.py') y & lt; मॉड्यूल 'मॉड्यूल' से 'd: /stock.py'> किसी भी स्ट्रिंग को imp.load_source (arg, 'd: \ stock.py') के आरजी में इस्तेमाल किया जा सकता है, इसका अर्थ क्या है? किसी भी स्ट्रिंग को imp.load_source (arg, 'd: \ stock.py') के arg में उपयोग किया जा सकता है इसका अर्थ क्या है? एक समझदार मूल्य का उपयोग करने से त्रुटियों और डीबग करना आसान समझ जाता है। साथ ही, आप __ मुख्य __ ब्लॉक को चालू कर सकते हैं।

jquery - Showing Javascript Panel -

In a big javascript application, I saw a javascript panel and just trying to apply the panel code. I copied and I thought the pieces of the code were useful for working in the pasted panel but unfortunately it is not working .. HTML code .. & Lt; Body & gt; & Lt; Div id = "rtfm" style = "display: none;" & Gt; & Lt; / Div & gt; & Lt ;! - Support panel - & gt; & Lt; Div id = "dashboard" & gt; & Lt; A href = "#" class = "help" & gt; Syntax help & lt; / A & gt; & Lt ;! - Clicking on it shows the panel - & gt; & Lt; / Div & gt; & Lt; Script src = "jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; (Function () {test = function (elt) {var dom = $ (elt) var == {helpPanel: HelpPanel ($ ('# rtfm')), init: function () {$ ('help'). Click (that.showHelp) $ (that.helpPanel) .bind ('closed', that.hideHel...

ios - Error ("'()' is not identical to 'UInt8'") writing NSData bytes to NSOutputStream using the write function in Swift -

I am trying to create an asynchronous file download in Swift. But I need to handle large files, so I found, understand. However, I can not get it to work when I try to add NSData byte (write my NSURLConnection didReceiveData function) NSOutputStream to work, I get this error: '() 'UInt8' is not equivalent to doing this on line: bytesWritten = self.downloadStream.write (data.bytes, maxLength: bytesLeftToWrite). data.bytes type is ConstUnsafePointer & lt; () & gt; and .write () function to ConstUnsafePointer & lt; UInt8 & gt; is expected, so in that sense, the error is correct but since I am new to iOS and definitely do SWIFT programming, how can I fix it? So, how do I change the data.bytes? : ConstUnsafePointer & lt; () & Gt; to ConstUnsafePointer & lt; UInt8 & gt; alt Do this work any other way? My didReiveiveData function: Function connection (connection: NSURLConnection !, didReceiveData Data: NSData) {va...

how do I tell Google Maps JavaScript API v3 to use Finnish (or Swedish) characters? -

I try to query LatLong-coordinates from a Finnish address with Google Maps geocoder. The objective is to create a marker on the map where the address points. It works with English characters so far, but the Finnish (and Swedish) letter 'A, O, One' causes the problem; I have found this: , but it does not help. For example, there is no problem in this address: "MannerHiniti 10, Helsinki, Finland" But this one Here is my code: Geocoder = New google.maps.Geocoder (); Geocoder.geocode ({'address': address}, function (result, status) {if (status == google.maps.GeocoderStatus.OK) {... ... ... doing something ... I also tried with these parameters but did not work: Geocoder = new google.maps.Geocoder (); geocoder.geocode ({'address' : Address, 'field': 'FI' // I also tried with 'language': 'fi'}, work (result, status) {if (condition == google.maps.GeocoderStatus.OK) {.. . ... // Do something ... The A...

c++ - Qt Heap corruption detected after normal block -

Text after " I get the following status: InspectionTreeWidget header: Class InspectTreeVidget : Public Citizenship {Q_OBJECT Public: Clear InspectTrevigate (QWidget * parent = 0); Private: QVBoxLayout * layout_sourcesettings; QFrame * frame_source settings; ... InspectionTreeWidget implementation: InspectionTreeWidget :: InspectionTreeWidget (QWidget * Parents): QTreeWidget (parent) {QVBoxLayout * layout_sourcesettings; Layout_sourcesettings = New QVBoxLayout (); Frame_sourcesettings = New Queue (this); Frame_sourcesettings- & gt; SetLayout (layout_sourcesettings); ...} Everything works well, but when I close the application, I get "heap corruption after the normal block" What am I doing? Thank you Edit (Solved): If this is a bug or not but the problem is I do not know the creation process I was in this code: InspectionTreeWidget :: InspectionTreeWidget (QWidget * parents): QTreeWidget (parent) { QVBoxLayout * Layout_sourcesettings = Ne...

matlab - What is the difference between calling a dependent property of a class with and without parentheses? -

मेरे पास ऐसा वर्ग है: classdef उदाहरण क्लास गुण (निर्भर = सच) एक्स अंत विधियां इस = उदाहरण क्लास (यह) this.x = 4; अंत समारोह x = get.x (यह) x = 4; x के रूप में classInstance.x और classInstance.x () > फ़ंक्शन get.x (this) को एक getter कहा जाता है संपत्ति x का इसका वास्तव में कुछ भी नहीं करना है कि संपत्ति पर निर्भरता निर्भर है या नहीं, यह किसी भी प्रकार की संपत्ति के लिए समान है। यदि आपके पास अपनी संपत्ति के लिए निर्धारित एक सेटर / गेटर है, तो मैटलैब हमेशा कॉल करेगा कार्य प्राप्त करें। प्रॉपर्टी नाम या सेट करें। प्रॉपर्टी नाम जब आप ऐसा करते हैं: tmp_var = my_instance.x या My_instance.x = 3.1416; इसलिए यदि आपके पास अपना कोड my_instance.x या my_instance.x () में है, तो वास्तव में एक ही है। लेकिन अगर आप सर्वोत्तम अभ्यासों का पालन करना चाहते हैं, तो आपको फ़ंक्शन कॉल से बचना चाहिए। अब, एक अतिरिक्त बिंदु के रूप में: प्रदर्शन कारणों के लिए, यह अनुशंसा की जाती है कि आप सेटर्स / गेटर्स का उपयोग न करें क्योंकि हर बार जब आप संशोधित होते हैं आपकी संपत्त...

jsf - Add Dynamic Row in <p:datatable> Using <p:commandButto> and <f:ajax> -

The command button in the following code does not work properly for the dataset. & lt; P: datatable id = "invoitable" var = "ipsDetail" value = "# {invoiceBean.ipsDetails}" border = "1" & gt; & Lt; P: column header text = "senior number" & gt; & Lt; H: Input text id = "serialN7umber" value = "# {ipsDetail.serialNumber}" size = "3" /> & Lt; / P: column & gt; & Lt; P: column headerText = "luggage details" & gt; & Lt; P: inputtext value = "# {ipsDetail.descriptionOfGoodsOrService}" /> & Lt; / P: column & gt; & Lt; P: column header text = "hsn code" & gt; & Lt; P: inputtext value = "# {ipsDetail.hsnCode}" style class = "alignment" /> & Lt; / P: column & gt; & Lt; P: column header = "volume" & gt; & Lt; P: inputtext value = "# {ipsDetail.quantity}...

javascript - Can a page detect when user has loaded it insecurely -

Regardless of the SSL certificate issues, whether the user has loaded the page or not (via javascript) to detect an HTTPS Any way on the page? Usually users click through many exception alerts and the address bar turns red, but in some contexts users can ignore it, and as an author of an application , I would rather place additional in-app warnings to warn the users against doing this, it would also be useful to be able to log in such incidents. The short answer is that you can not. The reason for this is that if you can increase it some security issues. SSL verification is done in the browser by third party components and you have "" status for the browser. " for example in Chrome The implementation is only part of the browser code and not a part of the V8 engine is a JavaScript engine used by Chrome then the answer is not , you can not tell it Whether the connection is secure or not. The only thing you can know is that The Javascript protocol i...

SQL Server Decimal precision -

Text after declared @nr1 decimal (20,19), @ NR2 decimal (20,19) set @nr1 = exp (1.0) Set @ NR2 = PI (); Print @ nr1 / nr2 There are "infinite" numbers in the form of XP and PI, you must have enough decimal to print As a result of this query 0.865255979432265082 For query: Announce @nr12 decimal (34,25), @ nr22 decimal (34,25) set @ NR12 = XP (1.0) set @ NR22 = PI (); Print @ nr12 / @ nr22 I get the result: 0.8,65,255 So my question is, why the first query More accurate then second one? As it is defined in decimal (P, S) as defined in MSDN, it tells me that the second query should be more accurate. This link will help you: According to this, a division e1 / e2 The result of this formula is maximum (6, s1 + p2 + 1) and includes this note: The result is accurate and the scale is a full maximum of 38. When the result is more than the exact 38, the respective scale is reduced to prevent integral part of a result from being cut. Perhaps you wo...