Posts

Showing posts from January, 2015

maven - how to make a automation testing framework -

I have to make a framework for my organization for the Selenium Automation test. Currently we work on trial-ng, with integrated Eclipse. Maven.Now for this, we have to make a huge setup in every project. Besides, now we are planning to include manual testers in Idolon, but these These things will not be easy to install. So can we make an outline, in which only test cases have to be added only, I know that these organizations are being used by some organizations but I do not know anything about it. Can anyone give me some suggestions on this as we can start and some kind of sample work etc. Any help you would like to be thanked in advanced You can start by writing stories / examples and automating them. Or using frameworks such as

php - Symfony2 decode and compare pass -

I need to create a form: when I select a user from the list I will get an input where the user will be able to write the password (for the selected user) And if I agree with the passwords from the database, I should compare it. I found a solution on the stack. But I am asking, what is the other way to make Mebayri? any idea? Here's what I've already done: Controller: Public function UserAction ( Request $ request) {$ form = $ this- & gt; CreateForm (new UserIncType ()); If ($ request-> method is ('post')) {$ form-> Tie ($ request); If ($ form-> isValid ()) {$ valuePass = $ form-> Receive ('password') - & gt; GetData (); $ ValueUser = $ form & gt; Get ('user') - & gt; GetData (); $ Security_encoder = null; $ UserRepo = $ this- & gt; GetDoctrine () - & gt; GetRepository ('Mancor bundle: user'); $ User = $ userRepo- & gt; FindById ($ valueUser); $ Security_encoder = $ this- & gt; Get (...

Javascript: function with parameters cause lag in animation -

First: I tried to search for a similar problem, but there really is no clue how should I tell it ? Title. So if any solution is already somewhere, please let me know. I am trying to understand how OOP works in Javascript. I have some experience with the ActionScript I have written this code for practice, when the page is loaded, it moves the box from left to right. Now I want to type the code in such a way that I do not need hundreds of functions for many types of animation if I want to create many animated boxes. This is my old code, which worked: & lt; Script & gt; Var DX = 850; Var x = 0; Var y = 450; Function init () {b = document.getElementById ("box1"); Remove it(); } Window.requestAnimFrame = (function () {return window.requestAnimationFrame OR window.webkitRequestAnimationFrame OR window.mozRequestAnimationFrame OR window.oRequestAnimationFrame OR window.msRequestAnimationFrame OR function (/ * function * / callback, / * DOMElement * / element) {Win...

abstract - How to "hide" a virtual method? (C++) -

There is a post with a very similar title, but as I had understood the actual problem is different. I would like to know that if a user is written to override a certain method, but at the same time it is not possible to call this method (but it is only from within my class) . For example, if I want to do the following: class AbstrDataSource {Private: int index; Protected: Int present data; Public: int getData () {currentData;} zero load data (int i) {// check index here (index! = I) {doLoad (i);} this-> gt; Index = i; } Virtual Zero doLoad (int i) = 0; }; In the load data () I can see that the index is in a valid range and some bookkeeping is done, whereas actual loading is to be provided by the user by override (). Because pure virtual methods are part of the interface, they are public, but how can I implement the implementation of doLoad () to see only my own class? Class DataSupplier {Public: DataSpplier (Abstraadosource * S): Source (S) Zero Load Data (Int.) {Sour...

Undestanding Java Inheritance: strange behaviour -

I do not understand class behavior as a strange behavior. This is my parental class: Public class cubettes applied token {... private id = 1; ... public cube (int n) {numero = n; } ... public int getId () {return id; } Public Zero setId (int idx) {id = idx; } ...} and this is the subclass: Public class provides the RGC Cubetry {Private id = 0; ... public RGC (Int IDX) {super (0); Id = idx; // strange Behaviour ! } ...} This test is the main category: public static zero main (string [] args) {RGC ano = new RGC (1 ); RGC Reason = New RGC (2); System.out.println ("anonymous id" + uno.getId () + "pay id" + reason .getId ()); } is output Uno ID is 1 and the reason is ID1 but if I use these I have the line Tagged on RGC subclass: ... id = idx; SetId (IDX); .... The output is the Uno ID is 1 and the reason is ID2 Why? You have id variable both Cubetti super -class and RGC sub-orbit setter and Greater Update use / super...

c++ - Scaling a mesh object with texture -

I have an arc on which tiled texture is applied. When I scaled that object in DirectX, texture tiles were also smaller. If there is a way to keep the same shape of texture and scale the object only, if the object size increases, repeat the same texture again with the original tile size on that tile.

html - Mediaquery based on window width and height -

I am trying to understand how a media query works. I have two windows, one is 1280x700 and the other one is 1280X800. I need to create two different media queries for two different sizes. I tried the following, but it does not work. @ Media (minimum-width: 1280px) and (minimum height: 700 pix) {div # page-content {margin-top: 7%; .chef {max-width: 70%! Important; }}} Media (minimum-width: 1280 px) and (minimum height: 800px) {div # page-content {margin-top: 7%; .chef {max-width: 100%! Important; }}} Thanks for any help Try to be intermediate between both screens so always add some pixels as people can change the size of the screen, take the toolbar space, etc. Always leave room for a few lately, just as you are using the exact meaning of this, before it is feeling incorrect, the browser can not steal the pixel by you! Try this: @ Media (minimum-width: 1250px) and (max-height: 750 pixels) {// screen size 1280x700 (or larger than 1250 ) X (less than 750) media (...

Asp.Net windows authentication: is it possible not to ask login if user is already logged in active directory? -

I am developing an ASP.NET application. The app will primarily be used by intranet users in intranet environments. I have enabled Windows AHT antactin and my app works: In a developing environment, I automatically logged in without asking this username With a Windows Server Production Environment, with Windows authentication, this user name and password (active directory) ask user logs correctly My question is: - Can it be able to automatically identify If you have logged in username and password without asking Windows users already? You can customize your app in Windows authentication in web.config . did you try it? & lt; System.web & gt; ... & lt; Authentication mode = "Windows" /> ... & lt; /system.web> More information can be found at: & lt; - Edit ---> You also need to configure your website in IIS to use Windows Authorization. In IIS, go to your website, double click on authentication Do, disable anonymou...

cordova - Tabs without call facility capturing unique device id -

I am working on Apache Cordova (Hybrid) based project where we plan to get details like device's IMI numbers Are making This work is fine when we are running an app in a mobile device. We want to capture the same on the tab I agree that there is no IMEI number in the tab (there is no calling facility) Is there any other stadder number / id that we can capture for tabs. The idea of ​​capturing a UUID but the problem is that I can not find the ID on device settings. Therefore some threads have suggested downloading the application which will help us to display the details. Of course we can not suggest setting up every customer on their device. Is there any other option? This question can be repeated, please feel free to redirect right topic / thread. Any suggestions or help is appreciated Happy Coding !!!! According to the link we worked for serial number (S / N) without call facility devices A sample was tried: -) Happy coding !!!

Google AppEngine: multple domain urls for a site -

मेरे पास एक Google appengine पर चल रहे वेबसाइट है यूआरएल कह रहा है: www.mysite.com हाल ही में मैंने www.mysite.co.in और www.mysite डोमेन प्राप्त कर लिए हैं। ORG प्रश्न 1: क्या मैं इन नए डोमेन यूआरएल को उसी सर्वर से जोड़ सकता हूं ताकि .com, .org और .co.in सभी काम और कैसे हो? नोट: मैं इन नए यूआरएल को .com url में रीडायरेक्ट करने के लिए नहीं देख रहा हूं। यदि आप (केवल http ) तो आप उसे डेवलपर कंसोल में आसानी से जोड़ सकते हैं: यदि आप (= https) हैं तो आपको पहले अपने Google Apps खाते में डोमेन को एक उपनाम डोमेन के रूप में जोड़ना होगा। तब आप ऊपर दिए गए लिंक पर वापस जा सकते हैं और उसे ऐपएन्जीन उदाहरणों में मैप कर सकते हैं।

Best practices for sharing a symfony application between unix host and vagrant client vm -

I am using Waghat on my Ubuntu machine, to work on my Symphon 2 project, I have provisional There is a provision to use. I have tried to find the best setup to share my code between the host and the client machine, but I am facing troubles: Cash and Log directories are not writable, even when folders have 777 rights. Loading the application via the browser is very slow. I have previously solved the cache and log folder on / tmp / cache (log) because it is just my development environment This host me and client machine Between the file asks you to set up file sharing properly, where you do not experience these extreme loading times. Edit: I want to share the NFS folder and its content Have you tried This generally increases the performance dramatically.

java - how to remove invalid launch configuration from recent launches drop-down -

Image
I am currently developing an Eclipse plug-in which adds its custom launch configuration, which includes some resources in the workspace Is connected to. Background: Sometimes, the underlying resource will change, the launch will invalidate the configuration, and should not be runnable How do I program Remove the way to launch the drop down from the recent launch? I mean it has to face downwards: This will show all the recently started configurations that were recently launched. Edit: I am trying to reach history through this time and I can not find an API that tells me where I can get the proper frequency, is. Second Editing: Launch Configuration Manager is part of an internal package, it should not be used. Background: Occasionally, the underlying resource will change, the launch will invalidate the configuration, And should not be runnable Why do you want to remove an 'invalid' launch configuration history but otherwise retain it? If it is invalid, t...

Fibonacci sequence inconsistency -

I created a small program to generate the Fibonacci sequence in the user-defined length. At the moment when I run the code and input it like 6 digits, this sequence will display as follows: 1, 1,2,3,5,8, How do the string Stays on one line, while I get rid of the initial space? Below is my code #user intiger Input Print ("\ n") f = int (Input ("Enter the length of the sequence:")) Print ("\ n") f1 = 1 F2 = 1 multiply = 2 If F & lt; = 0: print ("Enter a positive integer for length") elif f == 1: print ("Fibonacci sequence:") print ("\ n") print (F1, end = ',') Other: Print ("Fibonacci sequence:") print (f1, ",", f2, end = ",") while multiplication and lt; F: f3 = f1 + f2 print (f3, end = ",") f1 = f2 f2 = f3 multiply + = 1 print ("\ n") Other: print ("Fibonacci sequence:) This is the easiest solution according to my perspective .. But seeing...

c# - WindowsAPICodePack property null when deployed -

While debugging locally, I am able to read the title from .mp4 video. However, I have posted this application in IIS, the title property is zero. Any thoughts on why this is happening? Var f () in foreach (var directoryinfo (videosLocation) where (x => gt; x.fullName.EndsWith (".mp4", string compiler.content culture ignor seas) ) .list ()) {usage (var so = ShellObject.FromParsingName (f.FullName)) {var titleProp = so .Properties.GetProperty (SystemProperties.System.Title) .ValueAsObject; Var Title = TitlePress == Tap? "No Title": titleProp.ToString (); // is zero while employing title}}

javascript - Adding dynamic 'filter' CSS property for IE8 isn't being correctly assigned -

I am trying to allocate the following CSS assets to a DIV in my webpage if the page displayed is IE8 or IE9 browser background-size property is not being supported. I sniffed the browser and the value of my DIV background image is dynamic, which means it changes with an event on selection. This is my code // var msieVersion has been defined previously and it is in nested state // to see if the browser is IE if (msieversion === 8 || msieVersion === 9) Use // // to specify dynamic CSS property and to convert bg image source $ ("# container") to jQuery. ({"Filter": "progid: DXImageTransform.Microsoft.AlphaImageLoader (src = '" + src + ", SizingMethod =' scale ')", "-ms-filter": "Progress: DxImage Transform. Microsoft. Alpha iPod loader Src = '"+ + +"', sizingMethod = 'scale') "}); } Now when I inspect the element using the IE Dev tool, then the Filters does not apply. The follo...

asp.net mvc - c# custom model binder for specific model and specific variable type -

I have a problem with myself in vain ints and validation text. Actually I want to change the validation message when a null integer is not provided which is shown from then "value ' Xxxxxxxxxxxxxxxxxxxx "Invalid" "Please provide a valid number" I have a custom model the binder, such as public class IntModelBinder: IModelBinder {public object BindModel (controllerContext controllerContext, ModelBindingContext bindingContext) {var integerValue = bindingContext.ValueProvider.GetValue (bindingContext.ModelName); If (integer value == tap = integer value. Used value == "") empty return; Var integer = integer value. Used value; Bindingkntestkmodelstteksetmodelvlua (Bindingkntestkmodelnme, Bindingkntestkvluaproviderkjtwlua (Bindingkntestkmodelnme)); Try {return int.Parse (integer); } Catch (exception) {bindingContext.ModelState.AddModelError (bindingContext.ModelName, String.Format ( "\" {0} \ bindingContext.ModelName ...

c# - .NET SmtpMail compared with .NET SmtpClient -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब 7 उत्तर मैं एक .NET 4.0 अनुप्रयोग के साथ काम कर रहा हूं जो System.Web.Mail.SmtpMail वर्ग का उपयोग करता है MailFormat.Html । का एक बॉडीफॉर्मैट निर्दिष्ट करते हुए हम उत्पन्न ईमेल, इस दृष्टिकोण के साथ समस्या यह है कि जब हम ईमेल उत्पन्न करते हैं ( MailFormat.Html ), प्रोटोकॉल केवल प्रति पंक्ति 76 वर्णों की अनुमति देते हैं उस सीमा से अधिक होने पर, शेष पंक्ति काट लगता है और इसके स्थान पर एक विस्मयादिबोधक चिह्न दिया जाता है। यह हमारे लिए समस्याग्रस्त है, और कोड को सुधारने और सुधार करने के लिए बेहद मुश्किल बनाता है। मैंने देखा कि विजुअल स्टूडियो शिकायत करता है कि SmtpMail क्लास अप्रचलित है, और यह कि सुझाए गए विकल्प System.Net.Mail.SmtpClient वर्ग है। मैं सोच रहा हूं कि नए वर्ग का उपयोग करने में परिवर्तन किसी भी सुधार की पेशकश करेगा, खासकर उन अक्षरों की संख्या में जो किसी एकल पंक्ति पर मौजूद हो सकते हैं - या शायद यह एसएमटीपी प्रोटोकॉल के साथ एक समस्या है जिसे दूर नहीं किया जा सकता है। दस्तावेज़ीकरण इन दोनों वर्गों के लिए मौ...

javascript - traceur compiler runtime vs build -

ES6 is close to completion in the form of a device, I am trying to start jumping on the ES6 syntax and I am using the compiler to do this. My question is, I see that a 'runtime' file is required to include the tracuewar on the page, this is a lack of 'core' features such as arrays / etc or Is it a runtime converter so the build is just for deploy? If it is just a 'shim' copy, how do you always cope with the compilation during development? I know that you can make a clock in hours, but for larger applications which seems very slow I also noticed that you can use a node compiler, but the node is not my backend / server technology ( I use IIS, I know either). Thoughts / Suggestions?

Excel VBA - Reference chart data point by name instead of index number -

Image
I have a basic gantt chart with a table in the form of a database, however, when there is no other name on the sheet Is chosen, The same data is identical for each name and I want its bar to get another color. I know of this way to reference a data point: ActiveChart.FullSeriesCollection (2). Digit (3) But this will not work in my example because the amount of data points keeps changing and the same thing is not always in the third position. I tried to do this, but as I thought I would throw a kind of mismatched error: ActiveChart.FullSeriesCollection (2) Points ("Some String" ) Is it possible to refer to the data point in VBA by its name? with a simple gantt chart that looks like this: You can change the color of the first b, return the first XValue Match the name with your name and then set the corresponding color of the color: Options clear sub-changepointbcolor () Dimensional dimensions in the form of variable x dim varValues Cht as the ...

How to parse a string in python? -

I am trying to parse a string. As if this is the string "(A (B (CD) (EF)) (GH)) ", then I want to parse it like the children of A are B and G, near B Children are C and E, and no one has any child, so I want to get the output to be ['A_B_G', 'B_C_E'] I do something like that I am: lst = [] Str = (A (B) (EF)) (GH)) lst.append (str.split ('')) And then I'm stuck! Can someone give me an idea of ​​what to do next? I'm not too much a signal, but you can list the same You can start by changing the ['(', 'A', '(', 'B', ...] , Such as ( , ) or a letter.

angularjs - Angular protractor load modules -

In my own testing application, I want to use methods for random data generation, for that I use this library I do It has only one file, but if there are many files in the library, then I want to use it manually without downloading, install only from npm install somelib When I run my sample, if it is installed with NPM in the library, I get errors, I did not find the library, for example: //example-spec.js var Chance = requirement ('chance'); Describe ("example", function () (this should be "(...", function () {expcect (chance.phone ()) .not bannel ();});}); How to use the projector and import the module from NPM? spot The document says that the necessary statement should be var chance = essential ('chance'); In addition, your NPM installer should probably say npm installs --save-dev opportunity . With those two steps, you should be Education should good.

xml - If one of the attributes is present then another should be required else both must be optional -

Assume that I have followed the content in the XML: & lt; Size type = "rectangle" font size = "14.11" width = "10" height = "5" /> & Lt; Shape type = "rounded length" font size = "16" /> & Lt; Size type = "circle" font size = "12" /> & Lt; Shape type = "roundedcutangel" font size = "11" width = "10" height = "5" /> I want to create an XSD which validates that if "width" exists as a feature, then that element should have "height" and vice versa. xsd 1.0 should be done in the code. XSD 1.1 can be done by one: & Lt; Xs: attribute name = "width" type = "x :: int" /> & Lt; Xs: test = "(@ height and @wide) or (not (@hite) and no (@with))" /> & lt; / XS: complexType & gt; & Lt; / XS: element & gt; & Lt; / XS: Schema & gt;

python - How i can do this regex simple? -

मेरे पास यह regex है: "\ w {4} [एडी] {1 } [विज्ञापन] * \ s * " मैं [एडी] {1} [विज्ञापन] * \ s * के साथ कई बार कैसे दोहरा सकता हूं * जैसा कुछ तो अगर मेरे पास अभिव्यक्ति है: "Bed0Dabc Babc Cabb99rrAbaaaa Daaab" रेगेक्स मुझे देगा: "Bed0Dabc Babc Cabb" "99rrAbaaaa Da" आपका regex अमान्य है और शुरुआत में" \ "की कमी है, आपका वांछित आउटपुट भी अमान्य है और दूसरा स्ट्रिंग" 99rrAbaaaa Daa "होना चाहिए। मेरा मानना ​​है कि आपका क्या मतलब है समूह है, हालांकि यह एक बहुत ही मूल अवधारणा है, आपको उन्हें प्रयोग करने से पहले नियमित अभिव्यक्तियों के बारे में अधिक पढ़ना चाहिए। वांछित regex: \ w {4} ([A-D] [a-d] * \ s *) +

php - Is it possible to update a database with jquery in Symfony2? -

Image
मैंने jsrouting-bundle स्थापित किया है, और यह मेरा कोड है: जावास्क्रिप्ट: $ (दस्तावेज़) .ready (function () {$ ("pmcontents")। Hide (); $ ("। Pmbox")। क्लिक करें (फ़ंक्शन () {$ (This)। सीएसएस ("फ़ॉन्ट-वजन", "सामान्य"), $ (यह) .next ()। टॉगल (); var myValue = $ ('this')। Attr ('id'); var डेटा = 'भेजावाले =' + myValue; $। एजेक्स ({प्रकार: "पोस्ट", यूआरएल: रूटिंगिंग। ('आइडाइड'), डेटा: डेटा, कैश: गलत, सफलता: फ़ंक्शन (डेटा) {अलर्ट ("डेटाबेस अद्यतन किया गया है"); } }); }); }); नियंत्रक: सार्वजनिक फ़ंक्शन isreadAction () {$ request = $ this- & gt; प्राप्त करें ('अनुरोध') ; यदि ($ request- & gt; isXmlHttpRequest ()) {var_dump ($ अनुरोध- & amp;; अनुरोध- & gt; प्राप्त करें ('sentValue')); $ Em = $ this- & gt; getDoctrine () - & gt; getEntityManager (); $ Pm = $ this- & gt; getDoctrine () - & gt; getRepository (...

html - Displaying Visio diagrams and pdf in Internet Explorer -

I am trying to show both Vision-Diagram (vdd) and pdf-document in web part in the SharePoint 2013 Foundation. I use Visio Viewer to display the pdf in an HTML object and the other object. The user chooses a file from the list and displays the document in the same web section. There is no problem when choosing a Visio Diagram or PDF for the first time, but when someone stole the PDF and switches back to the Vizio-Diagram, it all goes wrong, such as a web page that has lost its CSS, And in that way I do not close all explorer-windows and start it again. There is no problem while switching between back and backward between Visio-diagrams, only when the user has selected a PDF document and then a Visio-diagram. It is very strange, will it have to do something with Adobe Reader which I am using to display PDFs? I appreciate any help that I can get. If I can not get it to work because it is not a big deal, because it does not have to display the PDF, but it will be sure that it will be...

html - Bootstrap- How to use horizontal form layout with prepend text? -

I am trying to use a horizontal look layout like the following: Enter email: [field] Enter the password: [prepend + field] I was trying for one hour but there is no solution met. Please tell me how I can do this. I have tried: & lt; Form Category = "Form-Horizontal" & gt; & Lt ;! - & lt; Span class = "offset2" & gt; Sign in to email & lt; / Span & gt; - & gt; & Lt; Div class = "control-group" & gt; & Lt; Div class = "control" & gt; & Lt; Span & gt; Welcome to my email & lt; / Span & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "control-group input-append" & gt; & Lt; Label = "emailid" class = "control-label" & gt; Email ID & lt; / Label & gt; Labels for & Lt; Div class = "control" & gt; & Lt; Input type = "text" / & gt; & Lt; Span class = "add-o...

ios - UICollectionView loading cell data in wrong places -

I have a UICollectionView displaying the grid of a custom cell. When I set up a method on the cell subclass I cell phone in the setup cellForItemAtIndexPath to the UI phone (eg [cell setupUI] ). This method is loading some labels, but it also calls an async method that receives images from the web. I am using AFNetworking to handle it. My point is that sometimes (images) images are loaded into the correct cells + cells in which the image should not be set. Loading data is just in random cells. I was looking at it for a while and tried many approaches, but I do not know where I am wrong. Do I have a catch which I am missing? NB: I have checked and the method sets these image cells, they are called the correct number (3), but the images are visible on 5 cells. > Edit This is the code used to fetch images I have used this without the first CollectionView (drawing the grid itself ) And it worked fine: [self.youtubeThumbnail setImageWithURLRequest: request placeholde...

.net - I want to show any selected item from CheckedListBox in a ListBox in C# -

I have a Windows form that contains the name of a "Cheklistbstboks" is "ChkBox1" and this item (blue, red, Green, yellow). This form includes a blank "listbox" called "LstBox1". I do when I unchecked it "ChkBox1" any item check them, it "LstBox1" and when I "ChkBox1" was removed from "LstBox1". I think I should use "items Checkered" event, but I can not figure out how it before or not, it's another list. This is my attempt: private void chkBox1_ItemCheck (object sender, ItemCheckEventArgs e) {if (ChkBox1.CheckedItems.Count & gt; 0) listBox1 .Items.Add (ChkBox1.Items [e.Index]); Otherwise If (ChkBox1.CheckedItems.Count == 0) listBox1.Items.Remove (ChkBox1.Items [e.Index]); } But when I check it, I can not uncheck it. And it another try: private void ChkBox1_ItemCheck (object sender, ItemCheckEventArgs e) {if (ChkBox1.GetItemChecked (e.Index) == true) listBox1 .ems.Add...

java - separate the two matches -

Rex problem: I want to get the group twice, but I do not know how to solve it. Here is the code: public static zero multiGroupTest () {// pattern p = pattern.compile ("(\\ w +) (\\ d \\ D) (\\ w +) "); Pattern p = Pattern.compile ("([A-Z] {1}) (\\ d +) ([A-Za-z] +)"); String str = "X89SuperJavaJavaX89SuperJava"; Mitcher M = P. Matcher (str); While (m.find ()) {System.out.println (m.group (1)); Println (m.group (2)); Println (m.group (3)); Okay, the result is: x 89 super java java x What do I get to: X 89 Super Jawazawa X 89 Super Java How can I separate two matches? because the last group ([A-Za-z] +) greed Will match the following X, you could not get two wire. Use ((?: [AZ] [az] +) + / to capture the words contained in the FooBar format, because the name does not end with a capital letter Will be ([AZ]) (\\ d +) ((?: [AZ] [az] +) +) pattern p = pattern.compile ("([AZ]) (\\ d +) ((?: [AZ] [az] +) +); String str =...

javascript - Kendo AutoComplete + AngularJS + array of objects -

I have to attach the array of objects to the Kendo AutoCaplate + Conneller, I'm Autocomplete + Angular (its "K-data-source" There was an example of using the "attribute", but only the wire was included in the array. This is a link to my progress. Can anyone help? You should use: & lt; Input id = "i" kendo-auto-complete ng-model = "country" a-data-source = "country" c-data-text-field = "'name" / / data-text-field and "'name'" instead of data-text-field Use . See examples you modified here:

phantomjs - How to export/extract google satelite map to the images automatically? -

I need to use some Google Arial photos for image processing, and because I need many pictures, so It is difficult to manually manually screen these pictures with a hand shot in hand, so I am thinking that there is a way to automatically export satellite images given at the geographical location. I am using nodes.js, and it's zombie and potty JS is an approach to emulate a human browser, it is possible to retrieve HTML from the browser, but Google Map can be used to present HTML and then allow me to screenshots Yes, this is done very easily with plain fontgays. You can also use zombiejs or casper js for this. They make it easy to handle without any steps in callback hell or static code. I have added the necessary functions to click and type, the installation of the user agent string is necessary because otherwise Google will deliver code that may not be on the old (old) PhantomJS 1.x engine Could. Var page = requirement ('webpage'). Create (), classical = tru...

message queue - How to garantee Cosuming Order When Multiple Cosumer MQSeries -

I have two systems that communicate VIA MQSeries System 1 on MQ to System 2 Sends the event. We are running in a fully clustered environment so that the listener posted in System 2 is "multiple". The sequence of events is very important: If we have a serial: (event 1, event 2, event 3) system 1, sent system 2 to the same order Should implement them in otherwise the data is compromised. How to guarantee with MQSeries that concurrent consumers can listen to the sequence of events listening in the same queue. Thank you in advance The only way to guarantee any kind of messaging order is to selectors Or use custom application logic, message grouping with some things. I do not remember how this can happen, the message handles many consumers with the consumer but.

programming languages - Low level and High level data types -

Can anyone say that in the context of programming, what is the low level and high level data types in Java background Coming up I thought that lower levels would be primitive types like integer, bullion, string etc. and higher level mixed object types. It is not absolutely certain that this is a general sense, and I could not find a clear definition online. Your understanding is generally correct, but it also depends on your specific code stack. For example, you list the string as a primitive type; But in C, for example, a string is usually an array of characters, whereas a full-featured string (like one in Java) is a very high level object. At least, more than some struct , you can easily define a complex number, or 2d-point like typedef struct {float x, y} point . Of course it can be explained because Java has a higher level of language than C, so its priorities are higher than C. In the end, it means that the 'High / Lower' level is defined as relative values, s...

VBA code for comparing 2 excel files -

I hope you can help me, I want to create a macro Excel files will be compared to highlighting the difference between red and white in both sheet 1 and green in their workbooks. I need to compare lines if the value in cells in column A is the same (WB1 cell A1 is equal to 123-5, 123-5 in WB2 column A and rest of row matches Make sure.) I want to apologize if it is not understood very well, but this is the best way to explain what I need. Thank you for your time, The code below examines everything from the same workbook and different sheets, I need a separate workbook and only columns I> pre-class = "piece-code -html lang-html prettyprint override" Code> Sub Comparison () Compare Worksheets Worksheets ("Sheet 1"), Worksheets ("Sheet 3") and Subs Subscribed Worksheets (on WS1) Shakesheet, Worksheet as WS2) as the slow diffB in the form of Boolean dim R Long, integer, the meter integer as the dim LR1 long, in the form of LR2 long, LC1 in...

regex - .htaccess remove public folder and index.php in subdirectory -

I'm building an API which is divided into subfolders I a version api.com/v1 of this API Is located and in the next version the version is four, which is located in / v4. The version was not using any framework and it was just PHP directly. In version 4 of API, the use of larvell is being used as its basis. Thus resulting in a public folder. I do not want to end up like API URL 'api.com/v4/public/entry' The only work properly with .htaccess went provides index.php filtering out the URL, but I think it public Folder and index.php file was not found to be filtered, while keeping the v4 subdirectory in the URL I'm not sure that this is possible at all. Then api.com/v4/img/banner.png to api.com/v4/public/img/banner.png . And api.com/v4/gis/layer1.xml link from the api.com/v4/public/index.php/gis/layer1.xml should Even in my .htaccess file is so far, which has been used to filter the 'index.php' modified version of the URL is located in the v4 fol...

MySQL/PhpMyAdmin copy table with different columns -

If someone can help please think I'm sure I did it before but I do not remember! I have two tables database.users - old database. Site_users - new Both have matching columns but more custom in the old table Columns that are no longer used. Can I copy the user from the old database to the new database, but to ensure that only the column that still exists? At the moment I get the load of errors about the counting of columns etc. Thank you for anyone helping you :) I just Will be commented, but I can not do it yet To do this, I think you'll need it either: 1. Make sure you have the same columns on both tables, make the transfer and then delete the unnecessary columns on the new table. 2. Write a script or query that selects all the data from the old table and inserts it into the new table in the required format. 3. Export the data, change the required change Edit: Here is the answer Using it: INFL; INSERT SELECT id, col1, col3 in Biffu1 (ID, Cole 1...

spring - How to disable RepositoryRestHandlerMapping and EndpointHandlerMapping? -

I currently build a application with a spring boot, hibernate and a difference interface using SpringHitos I am doing My data model is defined as the beans with the @enti annotation and I'm using the Spring feature to set up a hibernate repository ( PagingAndSortingRepository Creating an expanding interface). My application is fully annotated-i.e., I do not have any web.xml , but spring annotations such as @configuration , @bin Configure everything with etc., and start the application with my main method using SpringApplication.run (MyApp.class, args); It works fine, but with this approach, a repository raster handler mapping and endpoint handler mapping are created with one of these resources Groups that I do not need and neither do I need I apply my own controllers because they need to do more than standard logic. How can I stop this default behavior and disable these mappings? @EnableAutoConfiguration (exclude = RepositoryRestMvcAutoConfiguration.cla...

c++ - Undefined reference to typeinfo for Code Synthesis generated Class -

I have an XSD schema that uses the replacement group (multipath type). Java schema is used in Java and C ++, Java and JACAB are easy and I do not have any problems there. I am using code synthesis to generate C ++ classes for schema and this is where I am having trouble. command line Argengs: xsdcxx cxx-tree \ - -namespace- map "http: //" ... "=" csspap_xsd "\ --hxx- Credit .hpp \ --cxx- suffix CPP \ --generate- polymorphic \ --polymorphic type all \ - -generate- sequence \ --root- elements-all \ Schema.xsd the basis of the 'MessageType' and there are three abstract types (RequestMessageType, ResponseMessageType, and UnsolicitedMessageType) expand that base type. many messages to expand these types. I'm playing with one I SuccessResponeType which extends ResponseMessageType . Point to a MessageType The form is to be able to pass around the message. I am trying to determine which type of message is being handled. Schema Snippet: ...

jquery - Removing a parent row if a specific value is found -

I have a table without a specific class or id, and I like to remove those table rows within which the link is Inside that table, a specific attribute value (href * = ...), or for that matter, anywhere on the web site. I can get rid of links, but that line is not inside that line. How can I do this with CSS? If not, with jQuery or JS? There is no CSS parent selector, so it is not possible to css alone. You can do this with jQuery very easily, however, using attribute selectors: $ ('table a [href = somethingSpecific]'). Removing the closest ('TR'). Or, you can select all your anchors and filter them (faster): $ ('table a'). Filter (function () {return $ (this) .attr ('href') == 'something special';}). Closest ('tr'). Remove ();

store - android app running multiple instances -

When I download my app from the store it's installed on the main screen, and on the app menu (when I I click on the circle with 6 points) When I click from the main screen, it opens an app, and when I click from another place .. it can also be used as a second app. Opens me I just need to run an app ... how can it be fixed? My manifest & lt; Android: name = "dfsfsdp" Android: allowBackup = "True" Android: Icon = "@ Draubable / IC_Luncher" Android: label = "@ string / app_name" Android: Theme = "@ Style / Aaptim" & gt; & Lt; Activity Android: name = ". Startup activity" Android: Screen Orientation = "Portrait" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; ...

Is it safe to add foreign key constraint on two columns, while one is not unique (MySQL)? -

I have users table and other tables like services , Orders , etc ... which I would like to change in the hair tables of the user table. So far it is simple, I just add the foreign key restriction between user (id) and command (user_id) . But if I want to add a Boolean user (disabled) field, then it will be command (disabled) and services (disabled) fields in those rows Which references the respective row in the (user_id) key via user ? If I make any reference, will this work? In the original table, using a 2 key in the original table, a primary and a non-unique? You may have probably answered your question if you try to do it actually , You can not create an foreign key relationship on those columns which are not part of the primary key on the table (by name) on the foreign table. Therefore, unless the disabled column user is not part of the primary key on the table, then, no, you are not able to create a foreign key relationship Other table will ...

c# - Convert xml to custom class using lambda linq -

I have created a custom class trying to parse an XML document I have successfully figured out how to document Parsing, but for some reason I have to do this in the IEnumerable instead of a single instance of my custom class, it is very easy to show the code in depth, so see the code snippet below . Job Code IEnumerable & lt; Ping & gt; Ping = xmlDoc.Descendants ("p = & gt; new ping {TRAN_ID = (string) P. element (" TRAN_ID "), MILOC = (string) P. element (" MILOC "), traffic = (string) p. Element ("TRANDATE"), TRANTIME = (string) P.Ellement ("TRANTIME"), COUNTRY = (string) P.Element ("COUNTRY")}); Its use Results in ... foreach (ping in ping p) {cmd.Parameters.AddWithValue ("@ TRAN_ID", p .TRAN_ID); Cmd.Parameters.AddWithValue ("@ MILOC ", PMILOC); Cmd.Parameters.AddWithValue (" @ SITE_REF "," ");} ... in the database The desired code idea Ping Ping = (pin...

My Android application does not store the high score -

I am developing a simple game in Android and even I follow the steps found in the net My app is never hysoser saved, I am using shared pages to store, but I know that the problem is there because I do not understand exactly how to use it. Hope people can help me, thanks. package com.example.memory; Import android App Import android.content.Intent; Import android.content.SharedPreferences; Importroid.os.Bundle; Import android.view.View; Import android.view.View.OnClickListener; Import android.widget.Button; Import android.widget.TextView; Public Square uses the last activity OnClickListener {TextView levelReachedText; TextView Best Sound; Int Level Level Reachach, BestScore; Intent to intent; Protected void onCreate (bundled saved instenstate) {super.onCreate (SavedInstanceState); SetContentView (R.layout.finals); LevelReachedText = (TextView) this.findViewById (R.id.nivel); BestScore Text = (text view) this.findViewById (RID.best); Button Menu = (Button) Search ViewById (R.id.in...

rascal - cannot traverse the nodes of an AST, while assigning each node an ID -

It is a simple personal effort to understand what is happening inside rascals should be better (if not already supported ) The solution here is the code: fileLoad = | Home: ///PHPAnalysis/systems/ApilTestScripts/simple1.php | | FileAST = loadPHPFile (fileLoad, true, false); // Assign a simple ID to each node public map [value, int] ID12 (node ​​N) {myID = (); Travel (N) {Case node M: {name = getName (M); IID [name] = 99 9; }} MyID return; } ID = Assigned 12 (file AST); gives me | Stdin: /// | (92,4, & lt; 1,92 & gt ;, & lt; 1,96 & gt;): Expected string, but found value loadPHPFile returns a type of node : The list [STMT], where each STMT can be in a program that is one of the many types of statements (my case in PHP). Why do not the above mentioned code work without knowing why I am doing this? Especially frustrating because a very simple example is used in online documentation. See: I started a new console, and it starts working. Of course, I chang...

python - Beautiful Soup error - not "seeing" entire web page? -

I want to scrap some simple web links. I want to type all the links which belong to the "indent-3" class and type i. I thought the code for this would be: import bsp4 import from imported beautiful soup, Sopstrenier #stats Canada webpage base_page = ("http://www12.statcan.gc.ca/census-recensement/2006/dp-pd/tbt/geo-index-eng.cfm TABID = 5 and? LANG = E & Amp; APATH = 3 more details = 0 & amp; dim = 0 & amp; FL = & amp; free = 0 & amp; GC = 0 & amp; GID = 0 & amp; G = 0 & amp; GRP = 1 & amp; PID = 99015 & amp; prid = 0 & amp; PTYPE = 88971,97154 & amp; S = 0 & amp; SHOWALL = 0 & amp; sub = 0 & amp; Umporal = 2006 & amp; theme = 70 & amp; VID = 0 & amp; VNAMEE = & amp; VNAMEF = & amp; D1 = 0 and D2 = 0 and D3 = 0 and D4 = 0 and D5 = 0 and D6 = 0 ") http = httplib2.Http () position, response = http.request (base_page) soup = beautiful (feedback) link = soup.find_all (" li "...

Adding count(*) to SQL Server query -

I am trying to find a way to add a query to the output of my query: Select from * Code (select ID) as the name of 'Event Site', as the PlaceName piece, coordinates in the form of venueLatLng, (3959 * acos (cos (radians ('xx.xxxxxx')) * Cos (radial (SUBSTRING (venueLatLng, 1, CHARINDEX (',', venueLatLng) -1)) * cos (radians (SUBSTRING (venueLatLng, CHARINDEX (',', venueLatLng) + 1, 1000)) - radians '- xx.xxxxxxx')) + sin (radians ('xx.xxxxxx')) * sin (radians (SUBSTRING (venueLatLng, 1, CHARINDEX ( ',', VenueLatLng) -1))))) Distance from the marker) Where the distance of TMP is & lt; 30 order according to the distance; The way I tried to do this: SELECT * FROM (SELECT id, 'Event Location' AS name, placeName as snippet, PlaceLatLng AS coordinates, COUNT (*) rCount, (3959 * acos (cos (radians ('xx.xxxxxx')) * cos (radians (SUBSTRING (venueLatLng, 1, CHARINDEX (',', venueLatLng) -1)) As (* (SUBS...

html5 - Dropdownlistfor will not show the correct selection -

I have three dropdown lists in the loop, which do not show the correct value from DB. They are always the default for the first entry. I have checked and double checked DB and verified that it should be second in the list. The list is also well-formed. What am I missing @foreach (Customer.MeasurementProfile in Model.Customer.CustomerMeasurementProfiles.Where OProfile (M = & gt; m.DeletedDate == faucet))? {& Lt; Div class = "valuesforoneprofile form-group form-group-tight col-md-2" & gt; & Lt; Div class = "col-md-11" & gt; @ Html.Hidden (String.Format ("Customer.CustomerMeasurementProfiles [{}} .eid", i), oProfile.Id) @ Html.Hidden (String.Format ("Customer.CustomerMeasurementProfiles [{}.] Customer ID "I," Opfile.CustomerID @html textbox (string.format ("Customer. Customer Measurement Profile [{}} .name", I), Opfil .name, new {@ class = "form-control input- SM "{}} If you want to set th...

apache - .htaccess - Deny access to folder but allow access to file via index.php -

I'm having problems with .htaccess and PHP-files in a subfolder. What I am trying to achieve is to prevent any file from accessing it in my sub folder - but I want my index.php to access those files. DOCROOT / subfolder - & gt; Www.somewebsite.com/subfolder/somefile.php - & gt; Access denied but [index.php] & lt; Form action = "/ subfolder / somefile.php" & gt; ... & lt; / Form & gt; - & gt; Success! I would love to solve it just by using .htaccess. I tried deny all and some again s but those rules also kill any request from index.php. I tried deny the order, Allow all to reject Allow from 127.0.0.1 Allow from somewebsite.com Any satisfied but request from index.php is being denied. Can anyone help, please? This is a misconception that people have only because you have links from the PHP file It does not mean that index.php file is reaching them from any other PHP file. To access the end user / browser stil...

ssrs 2008 - Avoid subreports in SQL Server Reporting Services by combining datasets to enhance performance -

I have an independent form report which is basically an overview of a company report. The report looks like this: ------------ Company XYZ ------------ - Address - Telephone - .. ** Contact * * - Brian - Caroline - Patrick ** Complaints ** - Complaint 1 - Complaint 2 This report brings together many company records Need to be able to run, resulting in a good print-out per company I have currently solved using a main report in which I have the choice of the main company Do not: Select company from company This main report is a table with a subreport in it. I provide the company as a subforport parameter. In the sub-report, then I define different datasets (such as contact, complaint, ...) as follows. Contact: Contact contact, name by name where companyid = @companyid Order: Selection of Revenue by Order Please note that these datasets are not related to each other. , They are only related to the company However after running this report for many companies, ...

android - What happens when App crashes? -

I am developing an Android app and, as expected, there are situations where my code crashes (bugs, tap pointer, e.t.c. ). When the app crashes, it automatically restarts, even if I have not written any code to do it (I think this is the default behavior?!) But the problem is, the app The state is opening in the wrong place. Usually, this happens when the app starts: Initially, the app opens with "Splash Screen". This screen attempts to authenticate the user by using the prevailing tokens in share preferences and loading some basic values ​​from the server and continuing them in some services. Based on the login success, it either goes to the main screen or the login screen. When the app starts normally, it all works well and the initial sequence is expected to execute but when it restarts as a result of the accident, the value would be splash The population in the screen piece (such as logging in the user or loading the default value from the server) is all inva...

javascript - How to sort jQuery.dataTables by clicking on widget *outside* of the table? -

long rotation intro for problem I was told Create a web application that displays substantial data in a large amount, I have been asked to "freeze" the column header. I have a good knowledge of the fact that HTML does not support it and the table headers are like a firefighter in different ways of cold and a gun and then it is saying that the pig is flying is. It is being said, I found a clean project on GiltHub which is called TableLock (), in which there is an example with both horizontal and vertical scrolling: Many solutions I have Using the situation is reviewed: Fixed attribute, but it does not work for my project because it breaks the horizontal scroll. TableLock creates a div with a copy of the contents of the table headers, it completely positions, and then the user moves the page up and down in the form of a scroll. (Once again, like firing from a cannon), it starts working, but it introduces a new problem: Problem By default, jQuery.dataTables...

c# - Stacking namespaces can't be referenced just like any other element? -

So here's a snippet I have made where one namespace (inside the BA) is inside the other. Generally when you use 'space'; You can access all the elements without typing SpaceA. This is the case for class A, but I can not see Spaceby without typing Space space B. Why is it like this? Here's the code: using the system; Using SPACE; Namespace space {class A (public A) {console. Weedline ("A"); }} Namespace spacebase {public square b {public b () {console. Vitiline ("B"); }}}} Namespace test CSARP {class program {static zero main (string [] arg) {// it does not spacesby B. B x = new space b. B (); // This works SpaceA.SpaceB.B y = New SpaceA.SpaceB.B (); Usually when you use space; 'You can access all the elements without typing the space. Only direct types which are members of SpaceA a name-place-or-type-name Never using a normal director, using a namespace is not solved, and then another "nicknamepace" is used on the name....

How to read a stack.peek in order to put it in an if statement C# -

I am trying to create a menu system and I am storing those matches in stacks when they are already Have gone I'm trying to use Stack.Peek () basically: If the menuName = menuStack.Peek, then continue. The menu is a draw draw, sprite, and menuname calculated with them, and all menu child classes are of the menu class. Public static zero GoToMenu (MenuName MenuName) {pile & lt; Menu & gt; Menu stack = new stack & lt; Menu & gt; (); Stack & LT; Menu & gt; TempStack = new stack & lt; Menu & gt; (); If the menu stack.PC () = Main menu) {}} More or less, if the menu stack Pike gives a main menu object how do I check it? I do not know how to read the menu stack. Pek () I do not know how to apply this for a statement that it is equivalent to the main menu object, a Poznanu object or whatever. Public Static Zero GoToMenu (MenuName MenuName) {Stack Menu Stack = New Stack (); Stack & gt; Menu & gt; TempStack = New stack & lt; menu ...

ruby on rails - Range doesn't conflict with other ranges -

So I have to do a Rail Validation which manages the following situation: I have a set Is the category, and I need to know if there is a conflict with any of these categories in the category asked. For example, I have the following categories: (0 (3000..4000) (4000 ..5000) (6000 .. 7000) 1.10 will be in conflict because this category is already in 0.000 Has been included In the 1.3100 will be the conflict, because this range is included, partially between 0.35000 and 3000.4000 2800..4500 will be in conflict, because this limit is in part, between 0, 3000, 3000..4000 and 4000..5000 5000 .. 6000 will not be in conflict What I have achieved is the first and easiest issue from this line: def is_not_conflictive_range? Categories = serviceprice where (property: self property) .pluck ( : From_value ,: to_value) .map {| Category | Category.first.change.second} Contradictory_range = Categories | Search | Category | range.include? (Self.from_value..self.to_...

internet explorer 8 - Merging media queries, using SASS and Breakpoint (Respond-To) -

With SASS and Answer-to (Breakpoint) using multiple media queries. Generates CSS file, does not merge. There is no big deal, but in IE8, using css3-mediaqueries.js, cause of IE8 crash. Css3-mediaqueries.js add a style tag to each media player, and can not go up to IE8 32 ... How do I automatically merge all media queries? Thanking Generally, multiple media queries are not a big deal because GSIP is used to compress CSS, since it is passed from time to time. From server to client. To enable media queues in IE 7 and 8, I have been using it successfully. Look at this little guide, how to combine rewand.js with selective thinking:

html - How make icons aside to paragraphs -

Image
किसी को भी पता है कि मैं इस पाठ को आइकनों के पक्ष में कैसे बना सकता हूं? मैं पहले से ही सब कुछ कोशिश करता हूँ .. HTML: & lt; अनुभाग वर्ग = "जानकारी" & gt; & Lt; div वर्ग = "कंटेनर" & gt; & Lt; div वर्ग = "पंक्ति" & gt; & Lt; p & gt; & Lt; span class = "fa fa-location-arrow fa-5x" & gt; & lt; / span & gt; इस वेबसाइट पर विज्ञापन दें किसी भी समय के लिए मुफ्त ऑनलाइन चैट के लिए साइन अप करें मॉरीस एलिट urna, प्लसरेट मॉली मे मील, एम्स्टर्ड ऑक्टर मटर क्रॉस फाइनिबास टर्पिस ईस्ट एलिट लॉरम एंड्रॉइड इस्पम डोलर एसट एमेट, पब्लिशटेर एडिपिसिंग एलिट किसी भी समय के लिए मुफ्त ऑनलाइन चैट के लिए साइन अप करें मॉरीस एलिट urna, प्लसरेट मॉली मे मील, एम्स्टर्ड ऑक्टर मटर क्रॉस फाइनिशस टर्पिस ईस्ट एलिटम्स इंडस्ट्रीज डेवलपर्स एट मैट, डेल्टा टेक्नोलॉजीज एलीट किसी भी समय के लिए मुफ्त ऑनलाइन चैट के लिए साइन अप करें मॉरीस एलिट urna, प्लसरेट मॉली मे मील, एम्स्टर्ड ऑक्टर मटर क्रॉस फाइनिबस टर्पिस ईगेट एलिट & lt; / p ...