Posts

Showing posts from May, 2015

spring roo - Roo generated test code does not compile for int @Id variable -

I have created a very simple Spring Roo 1.2.5 project with an Entity class MyEntity that has some string variables. I have a @ id @ generated value (strategy = GenerationType.AUTO) Private Ent ID; On MyEntity.java to create a primary key, and spring generated Cry @Test public void MyEntityIntegrationTest.testFindMyEntity () {MyEntity obj = Dod getRandomMyEntity (); Assert.assertNotNull (data on demand "Maiantiti" failed to correctly start ", obj); int id = obj.getPrimaryKey (); Assert.assertNotNull (to provide data identifiers on demand" Maiantiti failed ", id); Obj = MyEntity.findMyEntity (ID); Assert.assertNotNull (" Search method "MyEntity '' illegal ID" + + + "," ", nULL returned for obj); Assert.assertEquals ("The method for 'MyEntity' detected the wrong identifier", id, obj.getPrimaryKey ()); } In the MyEntityIntegrationTest_Roo_IntegrationTest.aj file. Although there are two proble...

symfony - Share a method with all controllers : Best practice -

I am developing a notification system in symfony2 and need to get notifications for every page I run I The trivial solution is to copy the contents of the function in each controller and calls the function with $ this . How can I make the notification function accessible for each controller? I have heard that setting up the controller as a service is bad behavior, what is the best practice? If the template has to use it for output then the best method would be to have a custom TwigFunction Use and then call in a base / layout / extended template like that. TwigExtension Namespace Acme \ NotificationBundle \ Twig; Use Acme \ NotificationBundle \ Provider \ NotificationProviderInterface; Class AcmeNotificationExtension \ Twig_Extension {protected $ container; Protected $ information provider; Public Function __ Composition (Container Interface $ Container, Notification Provider, Interface $ Notification Provider) {$ this- & gt; Notification provider = $ Notificati...

java - How to run entire JUnit Test Suite from within code -

In eclipse, with JUnit 4, you can right click on a project or package and run as JUnit test Click, and all the JUNET tests within that group, what is the method to do this same thing from within the code? You can use the packages in Janet as follows: public static zero main (string [] args) {list test = new array list (); Tests.add (TestOne.class); Tests.add (TestTwo.class); (Class test: test) {runTests (test); }} Private static zero runtext (class test) {Results Results = JUnitCore.RunClasses (test); (For failure failure: result.getFailures ()) {System.out.println (failure.toString ()); }}

python - Django request.GET and jQuery Datatables -

With the data provided by the server, taking into account the example to fill the jQuery-Datatables table, a specific request The following forms are: http://www.datatables.net/examples/server_side/scripts/server_processing.php?draw=2&columns%5B0%5D%5Bdata%5D=0&amp ; Column% 5B0% 5D% 5Bname% 5D = & amp; Column% 5B0% 5D% 5Bsearchable% 5D = True & amp; Column% 5B0% 5D% 5Borderable% 5D = True & amp; Column% 5B0% 5D% 5Bsearch% 5D% 5Bvalue% 5D = & amp; Column% 5B0% 5D% 5Bsearch% 5D% 5Bregex% 5D = false & amp; Column% 5B1% 5D% 5Bdata% 5D = 1 & amp; Column% 5B1% 5D% 5Bname% 5D = & amp; Column% 5B1% 5D% 5Bsearchable% 5D = True & amp; Column% 5B1% 5D% 5Borderable% 5D = True & amp; Column% 5B1% 5D% 5Bsearch% 5D% 5Bvalue% 5D = & amp; Column% 5B1% 5D% 5Bsearch% 5D% 5Bregex% 5D = false & amp; Column% 5B2% 5D% 5Bdata% 5D = 2 & amp; Column% 5B2% 5D% 5Bname% 5D = & amp; Column% 5B2% 5D% 5Bsearchable% 5D = True & amp; Column% 5B2% 5...

json - Highcharts numericSymbols when rendered server-side with Phantomjs -

Is there any way to replace numerical symbols when rendering a hypertext to a server with Phantomjs? I generate JSON locally on the server and pass it to the phantom as a parameter with highcharch-convert.js script and my output file My graphs are given in fine pictures But I should effectively do the same server-side (or via JSON) that a global client is set up with on the browser client: Highcharts.setOptions ({Lang: {numericSy Mbols: null}}); Is there a way to do this with a callback? Or is it a JSON object that with whom can it be done? This can help you: This allows me to set my decimal Instructions help solve the problem. If you are using the POST method, then just follow the instructions given in the link, if using the command line method (like my), just click the Add globaloptions as parameters: Fastcoms Highchurch-convert.JS -Ifile Temp / Test. JS-Outfile Temple / Chart.png - Glooption Temp / Test 2.js and the content of temporary / test2.js was my c...

android - robospice parse nested object response -

I have returned from a JSON object server like: {"Success": True, "value1": 1, "other value": {"var1": 1, "var2": "asd", "var3": 2} } How should I model the reaction class to accept all the values? For example package com.phoneme.API.popIndex; Import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties (Undiscovered unknown = true) Public class GetResponse {Private string success private string value 1; Private ??? OtherValues; // Recipients and Setors of each The feedback you are trying to decode It is not necessary to quote the names of the valid JSON area. For example: - {"success": true, "value1": 1, "other value": {"var1": 1, "var2": "asd", "Var3": 2}} Using this correct version of the message, you can generate your POJO here: - Good luck!

c# - Storing dynamic number of data values on same row in SQL database table -

I need to store test results from one device in a test in the SQL database. What data for each test There may be an example of the need to store: id, load units, height units, load, height Can: id, load units, height units, load 1, height 1, load 2, high 2, load 3, height 3 ... The solution that I thought was possible to store how many possible loads and height values ​​in the table, it set an arbitrary limit Have to do. It also means that many load / height columns may be zero depending on the test result. However, it seems like a dirty solution. Will it be more appropriate to store many load / height values ​​formatted in XML? Or is there any other possible solution? EDIT: Using load / height values ​​I will not need to be able to search for data, other fields such as "test name" and "timestamp" are used to search for data. Will be done for. You may have a table with test ID, load units and height units, load results ( For example, for ano...

selenium - WebDriver - sendKeys(input) does not complete before sendKeys(Keys.RETURN) -

My test is entering a key in a search text box, which is mostly Ajax, and then by pressing the entry from the keyboard. There is no button to start searching so that we can use the enter key. I am using the ChromeDrOr because Firefox is not supported for our application in relation to this flow. For my WebDriver code (Java), I have to: searchIcon.click (); // search box opens the Ajax overlay of searchbox.clear (); // searchBox.sendKeys (input) from whatever text is already there; // input text enters search box.sendKeys (Keys.RETURN); // Press back to start the search The problem is, I have found that the input text is not yet fully typed in the text box and the return has already been done. Actually, I am searching for part of the input text that was entered. Anyone is facing this? I tried to add an implication before the return action but because the elements are already loaded, it is not helping. Try it out, once you enter the input into the search box, check t...

php - How can I merge or search an object? -

This is my problem: I have an orange orange that looks like this. [37633 9] = & gt; Array ([0] = & gt; 1f422730-f54b-4e4d-9289-10258ce74446 [1] = 60dc4646-06ce-44d0-abe9-ee371847f4df) Need to find objects matching with matching id, as if there is no such way without which there is a foreach? There are many and I do not want to loop on the whole item every time stdClass object ([id] = & gt; 1f422730-f54b-4e4d-9289-10258ce74446 [percent] = & Gt; 32 [Destinations] = & gt; Array ([0] => Study Class Object ([ID] => 59826 [destination_id] => 59826 [type] => Destination [ Dequeue] => [value] => xxxxxxxxxxx)) stdClass object ([id] => 60dc4646-06ce-44d0-abe9-ee371847f4df [percent] => 68 [destinations] = & gt; ; Array ([0] = & gt; stdClass object ([ID] => 60046 [destination_id] => 60046 [type] => destination [dequeue] => [value] => gt; ; Xxxxxxxxxxxx)) I must It looks like the end. [37633 9] = & gt; Array...

bash - How to check on FTP if there files on the list older than 7 days -

I have a list of files from a remote FTP server: drwxrwxrwx 2 test backup All 4096 July 8 02:30. Drwxrwxrwx 5 0 0 4096 Jul 23 07:02 .. -rw-rw-rw-1 test backup everyone 352,696 July 18 02:30 expdp_teST11P2_custom_Fri.dmp.gz -rw-rw-rw-1 test backup everyone aged 352796 02:30 expdp_teST11P2_custom_Mon.dmp.gz -rw-rw-rw-1 test backup everyone 352,615 July 19 02:30 expdp_teST11P2_custom_Sat.dmp.gz -rw-rw-rw-1 test backup everyone 352,626 July 20 02:30 expdp_teST11P2_custom_Sun .dmp.gz -rw-rw-rw-1 test backup everyone 10511523642 July 24 03:08 expdp_teST11P2_custom_Thu.dmp.gz -rw-rw-rw-1 test backup everyone 9 96881744 22 03:03 expdp_teST11P2_custom_Tue.dmp.gz -rw-rw-rw-1 test backup everyone 10504557 9th Jul 23 03:03 expdp_teST11P2_custom_Wed.dmp.gz I have to check if there are 7 days of any age than any file, you have any ideas I need How can I do this in Bash? As I understand this issue, you have ftp (and You do not have access to find on the remote server). Assuming tha...

How to loop through a python class -

There are problems for the first time in my class in Python, yet it will return the correct value, although the second pass when it gets It is: vm_return.vmPerf () All things that are defined in the init class have been completely erased and whatever remains is: pass_vm_mor The object can not be found there because it is no longer present when I call it the second time it does not make any sense The possibility is just a misunderstanding on my part. import from import pyVim.connect Import SmartConnect, PIVMOM Import Vim importing system import timing off #globals passed_vm_mor = '' class getVM (object) ): Def __init__ (self, passed_vm_mor): self.passed_vm_mor = pass_vm_mor vcenter_connection = smartconnect (host = hostname, user = username, pwd = password) atexit.register (disconnect, vcenter_connection) content = vcenter_connection.RetrieveContent () perf_dict = {} PerfList = content.perfManager.perf in perfList for Counter: counter_full = "{} creating vcenter...

ios - Cocos3d rotate model -

Boys, I touch touch and touch a model in cocos3d. I know that I should add some code "- (zero) touchIight: (UIT) on touch type: (CP point) TouchPoint" method I do not know the extension code Does anyone know me some detail code or an example about it Could? Thanks! View a CC3DemoMashUp demo app using touch and gestures in it There are many examples of interacting with objects (even rotating) objects. CC3Demo3DTiles Demo is an example of rotating a node with rotation in the app.

lua - How to find the center of a CircleShape in Love2D? -

For debugging purposes, I have to attract all the physics bodies in my love 2D game. It's easy for polygons, but CircleShaps present a problem: I can not get their center! The function getLocalCenter actually what I want, but it was removed 0.8.0. First of all, I'm worried that removing this can be a mistake. First of all, I need some type of options to attract my debug output. Is there a function anywhere that I need? CircleShop: getpoint love2d 0.9.0 , which resolves my problem. As it turns out, the wiki page I was reading closed, which I downloaded and used for offline use was using it because the faster navigation compared to their online versions was older, and it does not reflect the new function was. / P>

multithreading - Attempting to run two processes simultaneously in GCD - iOS -

I am trying to load two set data in the background via GCD in the background simultaneously. At present, I created two specific concurrent queues, in which I run every work. However, the delay in completion of the first queue and the second line (which runs equally intensive tasks) is very large (so I think they are not running together) are you there any suggestions on how to fix this? ? I am not able to fully understand the way to reach it. ! Thanks dispatch_queue_t myQueue = dispatch_queue_create ("com.a.identifier", DISPATCH_QUEUE_CONCURRENT); Sender_qi_t myQueue2 = dispatch_queue_create ("com.a.identifier2", DISPATCH_QUEUE_CONCURRENT); Dispatch_async (myQueue, ^ {[self fetchDataWithDataFromUrl: [NSURL URLWithString: linkOne]]; dispatch_async (dispatch_get_main_queue (), ^ {[self.tableView reloadData];});}); Dispatch_async (myQueue2, ^ {[self fetchDataWithDataFromUrl2: [NSURL URLWithString: linkTwo]]; dispatch_async (dispatch_get_main_queue (), ^ {[self.t...

matlab - Display matrix with single line semi-colon delimited format -

मैं इनपुट मैट्रिक्स को ओक्टेव में पसंद करता हूं: a = [1 2 3; 4 5 6]; ओक्टेव उन्हें एक अलग मल्टी-लाइन प्रारूप में दिखाता है: 1 2 3 4 5 6 इनपुट के लिए प्रयुक्त स्वरूपण के साथ एक मैट्रिक्स प्रदर्शित करने के लिए मुझे आक्टेव मिलता है? दूसरे शब्दों में, एकल पंक्ति अर्द्ध-बृहदान्त्र सीमांकित प्रारूप के साथ एक मैट्रिक्स को प्रारूपित करें? स्ट्रिंग कर सकता है मैट्रिक्स का प्रतिनिधित्व, उदाहरण के लिए: आक्सेव: 4 & gt; ए = [1 2 3; 4 5 6]; सप्तक: 5 & gt; Mat2str (a) ans = [1 2 3; 4 5 6]

python - splitting list with equal contents -

For example, I have the following list: content = ["I have two I have created pens, "" prices = 5 $ "," ____ and ____ "] I want to divide them in such a way that the following is the following: array = [phrases] (for the phrase in content)] But of course, it divides them Does not it equate with content. Can someone suggest me how can I solve using this python? You have to see which length is the longest array and then pad others like this: array = [phrase] (speech For the phrase in the phrase)] x = max (for the i in the array i) the result = [i + [']] * (x - lane (i)) for the array i is complex but gives you the result you are looking for.

ios - UIWebView loadRequest with no parent -

मैंने एक UIWebView बनाया और [webview loadRequest: url] । जब वेबव्यू में कोई पर्यवेक्षक / अभिभावक नहीं होता है, तो [webview isLoading] लगातार झूठ बोलता है और - (शून्य) webViewDidFinishLoad: (UIWebView *) webView प्रतिनिधि कभी नहीं कहा जाता है। हालांकि अगर मैं ऐसा करता हूँ: self.view = webview; या इसे अपने मौजूदा जीयूआई में जोड़, [is loading] रिटर्न सही है और प्रतिनिधि को कहा जाता है। । क्या इसका कोई भी तरीका अनुरोध को लोड करने के लिए सबसे पहले है, प्रतिनिधि को कॉल करें, और फिर मैं यह जानकर उसे प्रदर्शित कर सकता हूं कि यह सफलतापूर्वक भरी हुई है? अपने webView छुपा [myWebView setHidden: true] एक बार webViewDidFinishLoad को सेट MyWebView setHidden: false] .h #import & lt; UIKit / UIKit.h & gt; @ इंटरफेस व्यू नियंत्रक: UIViewController & lt; UIWebViewDelegate & gt; @ प्रॉपर्टी (कमजोर, नॉनैटॉमिक) UIWebView * myWebView; .m - (शून्य) webViewDidFinishLoad: (UIWebView *) webView {if (webView == myWebView) {[webView setHidden: false]; }} - ...

c# - Custom JsonConverter is ignored for DEserialization when using custom contract resolver instead of JsonConverter attribute -

I Jason for serialization I am using Net (6.0.3). I custom JsonConverter TestConverter wrote that handles some instances BaseClass (by converting them into an integer ID and back). Everything is working fine when I interpret the properties in my classes with JsonConverter [typeof (TestConverter)] . I'm still as much rather prefer to use a custom contract resolver, which should fully be able to change to use all features Here's how I established the contract resolver: Protected Override JsonProperty CreateProperty (MemberInfo Member, MemberSerialization Subscribing) {var Properties = Base. CreteProperty (Member, Member Empowerment); If (type class). ISSA SignableForm (property type)) {property.Converter = New TestConverter (); } Return Property; } Everything is working fine for serialization, but it seems that the converter I have been established in the contract resolver is not focus entirely on The given amount is done during the process. ReadJson the me...

R regex to parse token after @ also with no additional tokens in string -

I have a problem parsing the address in the text string. The usual address will be "@edder token token token" or "@edder token token / NTOn". string & lt; - c ("@ address token token token", "@ address token token / ntoken") gsub ("^ \\.? @ ([A-z0- 9_] {1,25}) [^ a-z0- 9 _] +. * $ "," \\ 1 ", string) is correctly parsed [1]" address "Address" So far, in some cases the address string will be the only token, then regex @ string & lt; - c ("@ address token token token", "@ address token token / ntoken", "@address") gsub ("^ \\.? @ ([A-z0- 9_] {1,25}) [ ^ A-z0- 9 _] +. * $ "," \\ 1 ", string) # [1]" address "" address "" @ eddy " one-token How to instruct regex to manage the case In some cases address string The only token will be, then the address will return with the regex @ Because there is no ma...

c# - WPF Binding is not working -

I am working on simple MVVM applications using WPF in simple studio. I am providing code as well as model class here. My concern is only about the first textbox that is not binding with the property name of the class name. You can skip the rest of the code. I am starting for MVVM architecture and WPF if you find fit, you can also suggest mistakes to me. Thank you. UI.xaml & lt; Window X: Class = "MVVM .view. UI" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/ 2006 / xaml "xmlns: custom =" clr-namespace: MVVM.ViewModels "title =" UI "height =" 300 "width =" 300 "& gt; & Lt; Grid & gt; & Lt; Text box textwapping = "wrap" text = "{binding MVVM.Models.Form.Name}" margin = "20,15,160,225" /> & Lt; Text box textwapping = "wrap" text = "back color" margin = "20,73...

eclipse - Run Python project from shell -

Eclipse can run a python project instead of just a .py file. Can the whole project be run from Python 3.x shell? I saw it a little bit, but I did not really find any way. I've just tried to run the .py file with the main code in the code exec (open 'bla / blah / projMain.py') like you would file a python All of my modules (including main) are in a package, but when I went to the main section, I got a module 'code' called 'blah' (in the package). Also, as a side note, there is actually a init .py and even pycache 'directory . Perhaps I have not made it correctly with eclipse (or rather Eclipse did not find it properly), but eclipse can run it, so I have a python with a 3.4.1 shell How can i Do I have to put something in __init __.py , perhaps, and then run that file? It depends on what your file looks like - if you have then __name__ == "__main__": do_whatever () , then there will be no import do_whatever () because t...

javascript - Correct syntax of $table.currentRow.1stCell -

यह मेरी जावास्क्रिप्ट है: $ (document) .on ("keypress" "#desc", फ़ंक्शन (e) {// # $ table.currentRow.1stCell` $ ('# cd') के लिए। Val () = "बदलना था";}); यह मेरा html है: & lt; तालिका & gt; & LT; टीआर & gt; & LT; टीडी & gt; & Lt; इनपुट प्रकार = "टेक्स्ट" id = "cd" & gt; & Lt; / टीडी & gt; & LT; टीडी & gt; & Lt; input type = "text" id = "desc" & gt; & Lt; / टीडी & gt; & Lt; / tr & gt; // पहली पंक्ति & lt; tr & gt; & LT; टीडी & gt; & Lt; इनपुट प्रकार = "टेक्स्ट" id = "cd" & gt; & Lt; / टीडी & gt; & LT; टीडी & gt; & Lt; input type = "text" id = "desc" & gt; & Lt; / टीडी & gt; & Lt; / tr & gt; // दूसरी पंक्ति & lt; / table & gt; जैसा कि आप देख सकते हैं, मैं id का उपयोग करता हूं, इसलिए जब मैं पहली या दूसरी पंक्ति पर ...

java - Cannot Get ImageButton onClick to fire -

मेरे पास निम्न XML फाइल है: & lt; FrameLayout xmlns: android = "http: //schemas.android.com/apk/res/android "xmlns: tools =" http://schemas.android.com/tools "एंड्रॉइड: आईडी =" @ + आईडी / कंटेनर "एंड्रॉइड: layout_width =" match_parent "एंड्रॉइड : Layout_height = "match_parent" उपकरण: संदर्भ = "com.SPTechnos.ambassador.Home" उपकरण: उपेक्षा = "मर्जरूटफ्रेम" & gt; & Lt; LinearLayout एंड्रॉइड: id = "@ + id / linearBG" एंड्रॉइड: layout_width = "match_parent" एंड्रॉइड: layout_height = "match_parent" android: orientation = "लंबवत" & gt; & Lt; RelativeLayout एंड्रॉइड: आईडी = "@ + आईडी / टूलबार" एंड्रॉइड: layout_width = "match_parent" एंड्रॉइड: layout_height = "50dp" एंड्रॉइड: पृष्ठभूमि = "# 263359" एंड्रॉइड: gravity = "top" & gt; & LT; ImageButton एंड्रॉयड: आईडी = "@ + id / imageButton_Back" ...

variables - Fortran unassigned array -

I am just starting to learn Fortran, and I have come to this issue. Consider the following simple code. Random INTEGER, dimension (12) :: array print *, array and program random array not assigned Is done, but can be printed, and it has some random elements and many zeros. However, if I consider a small array, then I say INTEGER, DIMENSION (5) :: array then print the array All the elements = 0. I wonder what's going on here? When you define an array and try to see the values ​​before it starts (By printing) Meaning, the behavior is undefined. It depends on the compiler on the compiler. While a compiler can automatically set all the values ​​to zero (many of us think that this is the default), another compiler can set it completely in random values, which is why you have array values Sometimes you are not seeing zero and sometimes. However, there are options to start an assigned array for zero at the level of many compiler packages. It is always advised that ...

Localisation in my Android App on button click? -

I have an Android app and I have different activities and I have separate text views in those activities I have two buttons for two languages ​​for one English and for another Chinese This is my activity ... AndroidLocalize the public class as I now Want to change all the text scenes from different activities in different languages. Activity {TextView TV; Button B1, B2; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); SetContentView (R.layout.main); Tv = (TextView) findViewById (R.id.textView1); B1 = (button) Find VBID (R.B. button 1); B1.setOnClickListener (New OnClickListener) {Public Zero onClick (see arg0) {Locale Locale = New Location ("N"); Locale.setDefault (location); Configuration Config = New Configuration (); config.locale = Location; GetBaseContext .getResources () updateConfiguration (.. config, getBaseContext () getResources () getDisplayMetrics ()); tv.setText (R.string.greet);}}); B2 = (button) Find VibibIID...

java - GWT Project reads properties file correctly at dev mode, but couldn't find it when I deployed it -

So I have 2 GR files which have been referred to my GWT project, both of which read the properties file : string PROPS_FILE = "Props.properties" attribute propfile = new properties (); PropFile.load (new FileInputStream (PROPS_FILE)); Both jar files are coded into java and jar is exported as libraries. The attributes file are located in the war folder in Dev mode. It works well on dev mode, but when I try it, it encounters an error java.io.FileNotFoundException: Props.properties (such a File or directory). Can this work be done without modifying the jar? Thank you. The folder structure is like this: war WEB-INF -Props.properties -Props2.properties After compiling the project and deploying the use of glassfish, the folder structure is like this: (Pat eti ...) / Application / SampleGuat OPP / -VB-INF -PPP Properties -PRP 2. Properties Option 1: When you run GWT in Prod Mode, war Mr. is the WEB-INF / classes to default on its Wargpt...

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

I have a SKScene where I am adding an SKSpriteNode I have subclassed the SKSpriteNode class to create this node. In the subclass I am defining some SKActions on Sprite. What do I want to do when the end of this phantom ends the SKAction sequence, then I add a new Prayer node to this scene. How is this possible. The following code is mine: The code for the sequence is that I'm running on the Scansprinitode subclass (TEMissileNode): - SKAction * moveDown = [SKAction moveToY: Self.position.y - 20 Duration: 0.2]; SKAction * animation = [SKAction animateWithTextures: textures timePerFrame: time / 7]; SKAction * moveMissileProjectile = [SKAction Moving: Pointoffscreen Term: Time]; SKAction * group = [SKAction group: @ [animation, movement projectile]]; SKAction * Sequence = [SKAction Sequence: @ [Hilldown, Group, [SKAction removalFromParent]]]; [Self run action: sequence]; From the main scene, I call those actions that execute these tasks TEMissileNode * missile = [tmissil...

javascript - stopPropagation() not working for right click in firefox -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब 8 जवाब मुझे फ़ायरफ़ॉक्स में एक अजीब समस्या का सामना करना पड़ रहा है। StopPropagation () मेरे कोड में फ़ायरफ़ॉक्स में सही क्लिक करने के लिए काम नहीं कर रहा है, लेकिन अगर मैं कोड से पहले एक अलर्ट या ब्रेकपॉइंट का उपयोग करता हूं तो यह काम करेगा। यह, यानी सफारी, क्रोम, ओपेरा में सुचारू रूप से काम कर रहा है jquery $ ("# div-login") पर क्लिक करें (फ़ंक्शन (e) {E.stopPropagation ();}); तब यह $ ("# div-login")। मूसुडाउन (फ़ंक्शन (e) {e.stopPropagation ();}); और यह भी $ ("# div-login") क्लिक करें (फ़ंक्शन (e) {if (e.button === 2 ) E.stopPropagation ();}); मार्कअप & lt; div = "div-login" & gt; & LT; fieldset & gt; --- मार्कअप ---- & lt; / fieldset & gt; & Lt; / div & gt; लेकिन ऊपर दिए गए कोड में से कोई भी फ़ायरफ़ॉक्स में सही क्लिक करने के लिए काम नहीं कर रहा है लेकिन बाएं-क्लिक के लिए कोई समस्या नहीं है मुझे समस्या का पता नहीं लगा सका कृप...

javascript - MongoDB: truth behind find({...}).limit(#) -

मोंगोडीबी में, । Find ({...})। सीमा (#) वास्तव में प्रश्नों की संख्या को सीमित करें? मेरा मतलब है, जब आप db.collection.find (condition) करते हैं, तो क्या यह पहले से ही कम्प्यूटेशनल शक्ति को बर्बाद नहीं करता है, जो सभी परिणामों से मेल खाता है दी गई स्थिति? यदि ऐसा है, तो इसके बाद .limit () जोड़ता है, इसके बाद क्वेरी परिणामों से अनावश्यक तत्वों को हटा दें? धन्यवाद इसे स्पष्ट करने के लिए बहुत कुछ! db.collection.find परिणाम की एक सरणी या समान नहीं देता है। प्रलेखन से: जब ढूंढें () विधि "रिटर्न दस्तावेज़," ??? यह विधि वास्तव में दस्तावेजों को एक कर्सर लौट रहा है। वास्तव में दस्तावेज तब होते हैं जब आप पुनरावृत्त करें कर्सर तो .limit कहता है कि कर्सर कहता है कि इसे पुनरावृत्त किया गया है। यहां कर्सर के बारे में अधिक:

jms - Spring Integration message redelivery best practice -

I am currently working on an application with spring integration. Guaranteed delivery and option for application require that it will be functional for a certain time, which is unavailable without the external system lost. The channel will be supported with JMS finale. I would like to understand what is the best practice for reproduction with spring integration. We have the following options: There are several outbound message gateways in the flow of integration of applications that require RPC calls with external systems Stateful retrieval advice can be used specific After reaching maximum attemps for runtime exceptions, the message will be addressed in the recovery channel. The recovery channel will use a delay and then send the message back to the original channel. After the X bar, this message will reach the Recovery Channel, this error channel will be addressed, where it will be logged without further processing. In this case, the delayed component should use the JDBC mess...

ruby - Running cucumber scenario outline in parallel -

I have a scenario outline that makes it very long to run because I use the number of those examples Which I use. I want to take advantage of many threads available and run these settings in parallel. One way to divide the feature / landscape into multiple attributes, it works, but then it gives me more than one copies of the same scenario in which there is only one difference in the examples. My question is whether this scenario is in parallel Is there a way to separate the outline for running without features? I suspect that there really is a way to do that in different parallel run Outline a single scenario I would say that if your primary concern is 'speed' about this test, then having duplicate features and separating examples will be so good that the coverage will be completed faster. I want to keep the scenarios below one minute Of that I am certain I am not the one who describes the 'voice', but runs throughout the night for tests and do not expect quick...

java - Why aren't my images downloading into ImageViews? -

मैं मूल एंड्रॉइड डेवलपमेंट के लिए बहुत नया हूँ। प्रत्येक छवि के लिए ListView में ImageView जोड़ें मैंने JSON और अब ListView को पॉप्युलेट करने के लिए ImageAdapter (विस्तारित BaseAdapter ) का उपयोग करने पर काम कर रहा हूं, लेकिन मैं एक त्रुटि में चल रहा हूं: मेरे OpenHttpGETConnection फ़ंक्शन में InputStream के निर्माण के दौरान मुझे println को एक संदेश की आवश्यकता है मिल रहा है। यहां मेरा कोड है (अनावश्यक कोड के साथ सबसे कम के लिए उच्चतम के क्रम में हटाया गया है): एक बार जब JSON मेरे onPostExecute लोड हो जाता है एडेप्टर शुरू करने के लिए कोड 'चलाएँ: निजी वर्ग डाउनलोड इमेजेसटेक्स्टकॉस्क एसिंकटस्क एंड लिट; स्ट्रिंग, वाइड, स्ट्रिंग & gt; {सुरक्षित स्ट्रिंग doInBackground (स्ट्रिंग ... यूआरएल) {return getImages (यूआरएल [0]); } @Override सुरक्षित शून्य पर PostExecute (स्ट्रिंग परिणाम) {JSONArray images = null; छवियाँ = नया JSONArray (परिणाम); // छवियों की सूची में छवियों को चालू करें सूची दृश्य सूची देखें = (सूची दृश्य) ढूंढें ViewById...

Android Studio 0.8.2 : How to add local Project Library? -

I'm an Android app developer and converting myself from Eclipse to Android studio. Now I have difficulty connecting a Library Project to another project. What I can do in Eclipse is very clear: 1. Library Project in Project B (Right click-> Properties-> Android-> Library 2.) Project A (right click-> gt ;-> Android-> gt; Android & gt; Add ...- & gt; Project B & gt; OK in this library but How can I execute this kind of behavior in AS? I read the article and projected as A's library Create a B in the Project B with A module BAP, how do I add B / BAP to Library Project A? I have a project from Project A I would not want to copy B's files, I would also use Library Project A in many of my other projects. I do not think it is a good idea to make every project a hard copy, Appreciation for the help! Structure and add the library as a new module. Click on the + icon to select it and select Import existing project, once the module...

utf8 not converting string in PHP -

Hello, I have a German client and I'm getting the wire with the German alphabet, which I am trying to display properly in the output. I tried utf8_encode to convert the string but is not working for me. code: echo "Desc short =>" Utf8_encode ($ obj-> Disco_Short) "& lt; br & gt; \ r \ n"; Echo "Desc Long =" Utf8_encode ($ obj-> Desc_Long). "& Lt; br & gt; \ r \ n"; Output: Desc short = & gt; Abalagefatch mating in gape ?? Acam Trayrenvand; ESACO_UG (122) DCC Long = & gt; Ablaffac mating in gepà ?? ■ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ren ren ren It looks like you just need to use the php header to use utf8_decode and set the encoding. (Or set encoding to HTML document). For the following code: & lt ;? Php header ('content-type: text / html; charset = utf-8'); $ X = 'Apply Maze in Gape'? 'Akkarmatrenvand; ESACO_UG (122) '; Echo utf8_decode ($ x); The output for this is: FLFFac M...

linq - IQueryable to get sum and order by descending in subset -

I have a collection of DTOs in which I want to make some order in the nested DTO with the sum of some values. / P> This type of search is as follows: One question is of QuestionDTO. A question DTO has a lot of answers that have many votes. In short: 1 question: question, question, question, answer: answer, answer, vote: vote, answer, value, I have explained for each answer, and then for each question, order by this amount. p> I think you want it: var question list = new list & lt; Question & gt; (); // Get a genuine list var sorted questions = (i select the list in question from i.QuestionID, i.QuestionText, VotesSum = i.Answers.Sum (ee = & gt; ee.Votes.Sum = & Gt; ss.Value))}) .OrderByDescending (ee => ee.VotesSum); Voroch (Miscellaneous items in the sorted quest) console Whiteline (item Q & A + + + + item quotes); Highlighting your classes are like class vote {public int VoteID {get ; Set;} public int value {get} set;}} class...

java - how to detect the number of face in an image picture -

I'm making an Android face detection app and it is always called when I run it on my device : "Sorry TakePic has stopped suddenly" Here is your code for face detection and I believe that this is the source of error: / P> Bitmap = MediaStore.Images. Media.getBitmap (CR, selected image); = (TextView) FindViewById (R.id.detect) to detect textView; Bitmap maskBitmap = Bitmap.createBitmap (bitmap.getWidth (), bitmap.getHeight (), Bitmap.Config.RGB_565); Canvas C = new canvas (); C.setBitmap (maskBitmap); Paint P = new paint (); P.setFilterBitmap (true); // Perhaps probably not because there is no scaling c.drawbitmap (bitmap, 0,0, p); Bitmap.recycle (); DetectedFaces = New Phase Detector Face [NUMBER_OF_FACES]; FaceDetector = new FaceDetector (maskBitmap.getWidth (), maskBitmap.getHeight (), NUMBER_OF_FACES); NUMBER_OF_FACE_DETECTED = faceDetector.findFaces (Mask bitmap, detected); K.setImageBitmap (bitmap); Detect.setText (NUMBER_OF_FACE_DETECTED); Toast.makeT...

php - How to use COMPOSER_PROCESS_TIMEOUT? -

मैंने इसे सीएमडी में दर्ज किया है COMPOSER_PROCESS_TIMEOUT = 9999 php composer.phar install मुझे लगता है कि उपरोक्त कमांड दिए गए टाइमआउट सेटिंग्स के साथ Compser इंस्टॉल करेगा। हालांकि यह त्रुटि देता है: 'COMPOSER_PROCESS_TIMEOUT' को आंतरिक या बाह्य कमांड, ऑपरेटिव प्रोग्राम या बैच फ़ाइल के रूप में पहचाना नहीं गया है। फिर मैं संगीतकार बनाने-परियोजना लारेवेल / Laravel --prefer-dist विंडोज में आपको सेट इस चर: सेट "COMPOSER_PROCESS_TIMEOUT = 9999" php composer.phar install उद्धरण चिह्नों में शामिल आवश्यक ।

java - Is (x - x) always positive zero for doubles, or sometimes negative zero? -

जब x एक डबल होता है, तो (x - कोड हो सकता है, या शायद यह कभी-कभी -0.0 हो सकता है ( x के संकेत के आधार पर)? x - x हो सकता है +0.0 या नाएन । आईईईई 754 अंकगणित में गोल से निकटतम (और जावा में, गोलाकार मोड है) कोई और मूल्य नहीं है। दो समान परिमित मूल्यों का घटाव राउंडिंग मोड में +0.0 उत्पादन के रूप में परिभाषित है , नीचे दिए गए टिप्पणियों में, आईईईई 754 मानक को यह कहते हुए कहते हैं, खंड 6.3: जब विपरीत दिशाओं (या दो तरह के संकेतों के अंतर के साथ दो ऑपरेंन्स) की राशि बिल्कुल शून्य है, उस राशि (या अंतर) का चिह्न राउंड टूवार्ड नेगेटिव के अलावा सभी गोलाई-दिशा विशेषताओं में +0 होगा। [...]। यह दिखाता है कि विशेष में 0.0 - 0.0 और -0.0 - (-0.0) दोनों +0.0 हैं। अनियमितता और नाओएन दोनों खुद से घटाए जाने पर नाएनएन का उत्पादन करते हैं।

Get all cross references in word with VBA -

I have many cross references to handling a very large word document (& gt; 400 pages) So far, I always The title is referenced in the title, but now I would like to change it and look at the page that remains on top. I did not get the solution for this GUI (except for manual treatment, of course), so I was trying to write some VBAs. Unfortunately, I've found a way to list only those goals that can be cross-referenced (via GetCrossReferenceItems ), but I want a way to reach the actual cross reference field . Can you help me with that? Is a cross reference field similar to a hyperlink? Cross-references are fields in a Word document, and through field archive (ActiveDocument.Fields) Can be reached. You can loop through them like any other collection and check your type if you want to work on it. It seems that cross-references in the context of the text are type 3 (wdFieldRef) and cross-reference type 37 (wdFieldPageRef) of page numbers. Changing the field can be a bi...

java - Apache POI version in ColdFusion 10 -

Is Apache POI a Way to Use the Version of ColdFusion 10? I have a look in Lib Directory but the name of the POI JAR file is not in any version number. If this is not the latest version, how do I use the latest version in my code? I know that I can use this.JavaSettings to load a jar with custom code. I have downloaded the latest version of PoI and there are several JR files: 6 at the top level directory, 4 in sub-directory and 3 in ooxml-lib directory. Do I have to give all these jars to this Need to be referenced within Java settings? Once I have referenced the correct JARs in this.JavaSettings , then use the library in my code? I have used the code with the code like CODE of cold fusion as the following: createObject ('java', 'org.apache.poi.ss.usermodel.WorkbookFactory'). Create (Infel); How do I change this code to use the latest version of POI that I have referenced in this.JavaSettings ? Still getting my head around all of these Java stuff! ...

iphone - Float is not convertible to CGFloat and CGFloat is not convertible to Float -

I have a problem with XCode 6 Beta 4, is driving me crazy to develop a game in iOS 8 and I Have followed a tutorial but I get this: The float is not convertible to CGFloat and then when I rearrange the CGFlot, I get another code here: Override Function didMoveToView (see: SKView) {your view here / * setup * / // physics self.physicsWorld.gravity = CGVectorMake (0.0, -5.0) ) // Bird Bridesmaid birdTexture = SKTexture (imageNamed: "Kirby") birdTexture.filteringMode = SKTextureFilteringMode.Nearest bird.setScale (0.5) bird.position = CGPoint (X: self.frame.size.width * 0.35, Y: self. frame.size .height * 0.6) bird.physicsBody = SKPhysicsBody (circleOfRadius: bird.size.height / 2) bird.physicsBody.dynamic = true bird.physicsBody.allowsRotation = false self.addChild (bird) // land ground.setScale (2.0) Groundkpojishn = Kgpointmake (Selfksaijkvidth / 2, Groundksaijkhait / 2) Groundkfysiksbody = Skfisiksbody (Rektenglosize: Kgsizemake (Selfkfremksaijkvidth, Groundksaijkhait))...

regex - Javascript Regular expression (?i)^inf -

I want to know what this regular expression is. > "Itemprop =" text "> It is easy to find: type Conclusion: This javascript has an invalid regular expression. But I think that you saw this Rijks in the second language. If you want, the syntax is different: / ^ inf / i What does it mean: with a string "inf Starting with ", , with case insensitive matching

java - Moving undecorated JFrame using mouse event and thread to update -

I would like to have my undecorted JFrame s happy, then using a fixed reference location. Therefore, in an attempt to understand threads better, I have a very simple undercotted JFrame JFrame Add MouseListener onMousePressed: point: P = Mousevent.getPoint (); On -Mouse Release: point p = mousewot.gatepoint (); and at the same time a thread continually updates the JFrame s location. However, I can not understand why the controlling rhythm does not move more than one? Also, there is an explanation that the code below will be highly appreciated due to the horrific code. Public animation () headless expansion {P = this.getLocation (); Run (); Class Control Thread Extended Thread {JFrame j; Public Controllerthread (JFRM J) {this.j = j; } @ Override Public Wide Run () {this.j.setLocation (P); }} Controllertrade CT = new controllthread (this); Ct.run (); //ct.start (); } @ Override Public Wide Run () {this.setSize (d); Container CP = this.getContentPane (...

javascript - Setting active slide on angular-ui-bootstrap carousel -

I am using a plugin called "ui-bootstrap" for angular, bootstrap and angle to create the context. I have a list of thumbnails and when a model is clicked with high definition images inside a carousel, then there is something similar on your Amazon or other websites. I used to show first in the carousel Trying to set the image as a user clicked. I was able to get the index of the image using the $ index because I give it ng-repeat, give it to the modal controller and display the carousel without any problem. But the first image I always index is 0, even if I try to set my index. These are some of the things I've tried: $ scope .SliderItems = Items; // It sets the item in a slider array item [selected index]. Active = true; $ Scope Sleditime [selected index] .active = true; $ Scope.SliderItems.select (SliderItems [SelectedIndex]); I also tried to establish it on a property, with the "active" property set to the right thing as required, but it was b...

c# - Application Insights Monitoring -

Image
मैं एक asp.net mvc वेब अनुप्रयोग पर अनुप्रयोग इनसाइट्स स्थापित करने का प्रयास कर रहा हूं और मैं सेटअप की आवश्यकता पर निश्चित नहीं हूं। मैंने विज़ुअल स्टूडियो 2012 में मेरी प्रोजेक्ट के लिए सेवा अंतर्दृष्टि टेलीमेट्री एसडीके NuGet पैकेज को जोड़ दिया है। क्या मुझे पुष्टि हो सकती है कि मुझे जावास्क्रिप्ट दोनों की आवश्यकता है मेरे HTML में: और Global.asax में निम्न कोड: सुरक्षित void Application_BeginRequest (ऑब्जेक्ट प्रेषक, EventArgs ई) {ServerAnalytics.BeginRequest (); ServerAnalytics.CurrentRequest.LogEvent (Request.Url.AbsolutePath); } मैं वर्तमान में प्रोजेक्ट में जोड़ा गया हूं और मुझे कुछ जानकारी मिल रही है, लेकिन यह सही नहीं है (उदाहरण के लिए 0 अद्वितीय उपयोगकर्ता)। मैं था भी प्रदर्शन डेटा मिल रहा है, लेकिन यह अब नहीं हो रहा है। मैं संदर्भ के लिए नीचे दिए गए लिंक का उपयोग कर रहा हूं: मैं कहूंगा कि यह आपके कार्यों पर निर्भर करता है। यदि आप क्लाइंट साइड पर इवेंट लॉग करना चाहते हैं लेकिन सर्वरएएनएक्सनेट का उपयोग करते हैं, तो केवल जावास्क्रिप्ट कोड ...

swift - Can't add a 3D subview to the view of the controller -

I have a problem when I want to add a 3D subview in my controller view. I can not see 3D Sbwu println ( "Game") viewDidLoad () function override {super.viewDidLoad () // Model cubeData = CubeData () / * go viewTest = UIView: GameControllerView class code (frame: self.view.frame) self.view = viewTest * / // 3-D view state to sizeScnView = CGSize (width: 350.0, Height: 350.0) to Centerview = CGPoint (X: CGRectGetMidX (self. view.frame) - sizeScnView.width / 2, Y: CGRectGetMidY (self.view.frame) - sizeScnView.height / 2) scnView = GameSceneView (frame: CGRect (original: Centerview, size: sizeScnView)) // add 3D View self.view.addSubview (scnView) // No user to manipulate the camera Mrs. gives the scnView.allowsCameraControl = true // show figures such as FPS and time information scnView.showsStatistics = false // Start Accelerometer self.motionManager = CMMotionManager () self.startAccelerometer () timer = NSTimer.scheduledTimerWithTimeInterval (0.4 target: subclass of se...

android - Simulate no network using Retrofit and MockWebServer -

मैं RetroFit और MockWebServer । मैं वर्तमान में एस्प्रेसो का उपयोग कर परीक्षण कर रहा हूं और अपने परीक्षणों को शुरू करने से पहले MockWebServer s url को RestAdapter में आपूर्ति कर रहा हूं यह सर्वर प्रतिक्रियाओं और इतने पर मजाक के लिए बहुत अच्छा काम करता है, लेकिन मैं एक java.net.ConnectException स्क्रिप्ट को एक सरल तरीका नहीं देख सकता जब कोई डिवाइस पर कोई नेटवर्क नहीं है। मैं देख सकता हूँ कि MockResponse थ्रॉटलिंग सिमुलेशन और इसी तरह की अनुमति देता है, लेकिन कस्टम अपवाद नहीं। मुझे पता है कि मैं retrofit द्वारा उपयोग किए गए वास्तविक वेब एपीआई इंटरफ़ेस का मजाक उड़ा सकता हूं, लेकिन मैं अपने दूसरे परीक्षणों के उपयोग के लिए उपयोग करना चाहूंगा जैसा कि MockWebServer । मुझे लगता है मैं बस कुछ सरल याद किया है:) धन्यवाद रेट्रोफ़िट में एक रेट्रोफ़िट-नकल मॉड्यूल है जो एक MockRestAdapter वर्ग प्रदान करता है जिसका उद्देश्य नेटवर्क देरी और त्रुटियों का अनुकरण करना है। यह आपकी सेवा का एक उदाहरण बनाने के लिए सामान्य रेस्टएडएप्टर के साथ संयोजन में उपयोग किया जाता है ...

PHP Pass variable through URL using ?object=value -

I know that there is a group of these topics, but all the answers are not working just for me. What I could have achieved, I have tried, and I am still right where I started. I am trying to pass a variable through a URL: & lt; A href = "test2.php? One =" & lt ;? Php echo $ _GET ['one']; ? & Gt; "& Gt; Link & lt; / a & gt; When clicking on the" link ", it redirects me to the appropriate page (test2.php), but leave the empty value (As a result of localhost / test 2.php? One =) means that now I can not see which variable is being sent. $ one = $ _GET ['A']; $ echo; How can I send test2.php from test.php? href : & lt; A href = "test2.php? A =

php - Codeigniter if uri_to_assoc parameters not set how to find that -

inside the codeigniter controller I have to find out whether the values ​​are set correctly if somebody displays a proper error message Do not want. So please let me know how to find out. Please see the examples below, When the price is set correctly, www.example.com/features/ > You must check each value starting with the second segment. In Administrator: Public Function _checkUriSegments () {$ Params = $ this- & gt; Yuri- & gt; Uri_to_assoc (2); Var_dump ($ parameter); Foreign currency ($ par value = $ gt; = $ value as $ $ $) {if (! $ Params [$ key]) {return false; True} true; } Edit Public Function () {if (! $ This-> _checkUriSegments ()) {Echo 'wrong url!'; break; } // make some edits}

java - multiple classloader issue on weblogic -

अपवाद लोडर बाधा उल्लंघन: जब विधि के समाधान "org.apache.hadoop.io.IOUtils.cleanup (Lorg / अपाचे / कॉमन्स / प्रवेश / प्रवेश करें, [Ljava / कब / closeable;) वी "वर्ग लोडर (weblogic के कहने / utils / classloaders / ChangeAwareClassLoader) वर्तमान वर्ग के, org / अपाचे / Hadoop / HDFS / FileInputStreamCache, और वर्ग लोडर (weblogic के कहने / utils / classloaders / GenericClassLoader) संकल्प लिया वर्ग के लिए, org / अपाचे / Hadoop / कब / IOUtils, प्रकार org / अपाचे / कॉमन्स / प्रवेश / लॉग हस्ताक्षर में इस्तेमाल किया के लिए अलग क्लास वस्तुओं है मुझे आवेदन का उपयोग करते समय यह मिलता है, कान की तैनाती के समय नहीं। अगर मैं इस राइट को समझता हूं, तो मेरे पास दो क्लासलोडर्स होते हैं जिनमें दो अलग-अलग लॉगिंग ऑब्जेक्ट होते हैं? कैसे मैं उन दोनों को एक करने के लिए उल्लेख कर सकते हैं? संपादित करें 1 आगे की जांच पड़ताल करने के बाद, मुझे लगता है कि इस त्रुटि तथ्य हम एक आम जार पुस्तकालय का उपयोग कर रहे की वजह से है और वहाँ का एक और संस्करण है वहाँ के कॉमन्स, उन्हें संघर्ष कर रही है क्या...

java - I need to create XML-PRC compatible Web Service -

In Netbeans 8.0 I created web service (without authentication) which is scripting on SOAP. I But the SOAP protocol with it Incompatible, is there a demand for a remote client? I have changed from "Documents" to "RPC" in the WSDL protocol, but it is not an annigation and is related to application server errors: & lt; Soap: Binding Transport = "http: //schemas.xmlsoap .org / soap / http" style = "rpc" /> Surrender: WSITPVD0035: Error verifying security in inbound message. Com.sun.xml.ws.streaming.XMLStreamReaderException: Unexpected XML tag is expected: {} Envelope but found: {} call method Do you have any web service under this old technology properly Know to develop? Someone advises me to look at this page. If I will succeed, then I will report here.