Posts

Showing posts from June, 2015

python - Matplotlib similar axis scales -

How can I earn matplotlib for plotting my x- and y-axis at the same scale, i.e. in both The length of an unit ax is analogous to a single physical distance or a piece of paper on my screen? You can use the set_aspect () method axes : Import pls as pl pl.gca (). Set_aspect ("equal")

windows - Glassfish asadmin batch file not opening command prompt -

Haiti has two glassfish versions 3.1.1 and 4.0 installed on my machine. When I click on the Glassfish 3.1.1 / bin / ASMMan Window batch file, it opens the command prompt where I can create a service and delete the service. But when I click on the glassfish 4.0 / bin / ASMMM, the command prompt for each other blinks and ends even I do not even see an exception or error. I think it is due to 2 establishments.Someone suggested some suggestions so that I can open the ASDM of Glassfish 4.0 instead of Glassfish 3.1.1. Thanks in advance. Glassfish should not cause two installation problems. I think that asadmin.bat has some error like "Java not found ..." or similar when you try to start it. In order to see this error before the window closes, you can search for asadmin.bat through the command prompt already opened. In the area, click Start button and type cmd , then start cmd.exe . At the command prompt, go to your Glassfish \ bin folder and type asadm...

jquery - Click a button to zoom hidden div? -

मेरे पास ऐसा HTML है: & lt; div id = 'btnzoom' & gt; बटन & lt; / div & gt; & Lt; div वर्ग = "सामग्री" शैली = "प्रदर्शन: कोई नहीं" & gt; सामग्री & lt; div class = "btnclose" & gt; बंद करें & lt; / div & gt; & Lt; / div & gt; मैं चाहता हूँ जब मैं btnzoom बटन पर क्लिक करता हूं, सामग्री केंद्र से ज़ूम होगी और जब मैं क्लोज़ बटन पर क्लिक करता हूं, तो लाइटबॉक्स बंद हो जाएगा। मैं कैसे कर सकता हूं यह। आपकी मदद के लिए धन्यवाद।

ios - Missing or Invalid signature .The bundle 'com.company.appname' at bundle path 'appname.app' is not signed using an apple submission certificate -

I am getting this error while uploading a new app and even while updating. I have reinstalled all the certificates. Please tell me why I Where did you get the certificate? If certSigningRequest is not generated from your system, then you must use one exported. Downloading directly from Developer.apple.com will not work for you.

magento - Adding attribute options programmatically are not available for use immediatly -

I am creating the Magento attribute option through a script, but then I need to get and use the new ID Directly in the same script This time it is not pulling the ID - if I delete the script and start it again, then it picks up the option and gives the id, but it is not part of the same script . Here's the code I'm using: $ attr = Dana :: getModel ('list / product') - & gt; GetResource () - & gt; GetAttribute ($ key); If ($ attr-> uses the source (source)) {$ vattr_id = $ attr- & gt; GetSource () - & gt; GetOptionId ($ value); } And {resonate "not a source"; $ Vattr_id = false; } If ($ vattr_id) {return $ vattr_id; } And ($ attr_model = Mage :: getModel ( 'catalog / resource_eav_attribute'); $ Attr = $ attr_model- & gt; Lodbikod ( 'catalog_product', $ key); $ Attr_id = $ attr- & gt; getAttributeId (); $ Option ['attribute_id'] = $ attr_id; $ option ['value'] [$ value] [0] = $ value; $ option...

java - Change the jprogressbar in an other class -

I have found a project and I want to change the value of the progress bar with the calls of another class. How can it execute? Improves the Stable Class Button ActionList Method {@ Override Public Voice ActionPerfed (Action Event E) {New Thread (New Runnabal) {@Override Public Zero Run (for (Int i = 1; i & lt; = bar.getMaximum (); ++ i) {last int j = i; SwingUtilities.invokeLater {@Override Public Zero Run} {bar.setValue (j);}}) ; } } } ).Start(); }} you bar.setValue (...) To change progress. However, be careful that you can safely do this with code that swings to the Event Listener thread. Calling this method from any other thread leads to unfinished failures which are only occasionally done, are working hard to test, and are hard to track down. Using SwingUtilities.invokeLater (...) The right approach to change is that you can do with any code in which bar Access to the context is, for example, you can highlight it through the recipient. ...

ios - Login with facebook button with Parse -

I'm working on an app that uses a pars backend, and after I implemented the Facebook login Have done I am not using the PFLoginViewController provided by the parser, only the login method calls for the PFFacebookUtils class. Implementation works well. Now what do I need to do is 'Login with Facebook' button. Since I am not using log in using Vicentron, I can not use the log inview property which will give me the button or I will not get the code from the Facebook SDK to FBLoginView , because neither monitors the button nor allows to override the button that is clicked on the button. What's the best way to remove the button from the existing SDK - either parse or facebook - so that the button is always visually updated?

ios - UITableViewCell detailTextLabel disappears when scrolling -

I am using an array of stars from which I set the detailTextLabel initially All the subtitles are installed correctly but if I scrolls detailTextLabel disappears - (UITableViewCell *) tableView :. (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath {UITableViewCell * cell = [tableview] dequeueReusableCellWithIdentifier: @ "personCell" forIndexPath: indexPath]; Person * person = [_persons objectAtIndex: indexPath.row]; Cell.textLabel.text = person.name; Cell.detailTextLabel.text = person.phone; // also tried setNeedsLayout, but [cell setsladeslayout] does not help; Return cell; } I am using an iPhone 6 and iOS 8. I am also using Storyboard and setting UITableViewCell for style subtitles . OK, now we have got the problem (with zero phone number text on the person) Can solve some ways. It seems that you do not want to set the text to clear. I think this is due to the fact that it connects the cell in an odd way, pushing it with the ...

Python: Find time difference between consecutive lines in a text file -

I have a text file that contains the following content: 12: 10: I would like an output like this: 29 DU: 41.016 U 12: 11: 10.517D12: 11: 11.516D12: 12: 01.233 1 DD 80 UD , which means (i + 1) - line-i-th line -> time difference in seconds + tag (u / d). I am coming for the number , line in the line (open ("foo.txt")): But getting confused; How do I use the 'num' variable? Whatever you are trying to do will not work because you do not have an array of lines for the don index When you are running again, you only have the current line, but to calculate the difference of time, you need access to both the existing line and the previous line. Instead, I would like to repeat the lines of lines again, such as importing the importatulos to import the dimensions from time to time; From IIPIP import partial DAP pair (itrebil): "" (pairs, ([0, 1, 2, 3])) [(0, 1), (1, 2), (2, 3)] "" "A , B = T (again) next (B, none) back izi...

java - ShowDialog in Fragment for DateTimePickerDialog -

After I'm trying to follow up with this tutorial: Because I'm using However, showDialog can not be solved, how can I use the DateTime Picker dialog inside a square that spreads a piece? Edit: Show code: @Override protected Zero OnCreate (bundled savedInstanceState) {super.onCreate (savedInstanceState); SetContentView (R.layout.date_and_time_picker); // Get the context of the button btnSelectDate = (button) findViewById (R.id.buttonSelectDate); BtnSelectTime = (button) findViewById (R.id.buttonSelectTime); BtnSelectDate btnSelectDate.setOnClickListener // Set ClickListener (New View.OnClickListener () {Public Zero onClick (see v) {// DatePickerDialog showDialog (DATE_DIALOG_ID) Show;}}); BtnSelectTime btnSelectTime.setOnClickListener // Set ClickListener (New View.OnClickListener) {Public Zero onClick (see v) {// Show TimePickerDialog showDialog (TIME_DIALOG_ID); // Not resolved in piece}}); This is working for me in one piece time-currDate = new time (timeTr...

windows phone 8 - ListPicker DataBinding -

I am using a toolkit: Listpicker for wp8 with data binding. I have been compelled to code in this way: from the list & lt; Project & gt; List = new list & lt; Project & gt; (); ListPickerOptions.ItemSource = Lists; The textbox is connected to the data, but since the data is more than 5, when I select the data, I take me to a new screen where each element is named namespace Is shown as. Project I'm new to databases. The .xaml part below is for the listing picture & lt; Stackpanel orientation = "vertical" height = "167" margin = "0" & ​​gt; & Lt; Text block text = "domain" margin = "13,0,285,0" x: name = "domain" /> & Lt; The text box isEnabled = "False" text = "redmond" x: name = "domain_tyethbox" visibility = "short" /> & Lt; Toolkit: List Picture X: Name = "PictureDamman Option" itemsource = "{binding title,...

c++ - Why doesn't my code generate the prime numbers correctly -

The prime number of less than 10,000,000 is 664,579 but my code only generates 664,214, the source of numbers #include & lt; Iostream & gt; # Include & lt; Bitset & gt; # Include & lt; Vector & gt; using namespace std; Const int n = 10000001; Bitset & lt; N & gt; Number; Of vector & lt; Integer & gt; Prime minister; Inline zero sieve () {num.flip (); Number [0] = number [1] = 0; For (int i = 2; i & lt; n; i ++) if (num [i]) {prime.push_back (i); For (long-term unsigned J = i * i; j & lt; n; j + = i) Number [j] = 0; }} Int main () {Sieve (); Cout & lt; & Lt; PrimeSize () & lt; & Lt; Endl; Return 0; } i . The fact is that if you allot the results for long periods, the compiler does not promote the type before multiplication. If I declare a long for unsigned int then your program 664579 Outputs

javascript - Get height of the retina screen using Jquery -

As specified in The solution of Samsung Tab 8.4 is 1600 x 2560 pixels, 360 ppi, But I try to get the height with JQUERY using the $ (window). Heights () , it gives 1280. The resolution of the Samsung S3 I9300 is 720 × 1280, 306 PPI, but when I try to get the height with JQUERY using the $. Hi () , it returns the correct value of 1280. window.devicePixelRatio = 2 for both devices. Why does Samsung tab 8.4 return half of original value? How do I get it back to the right height? Is there any other factor that is considered as retina display?

c# - EventHandler doesn't fire after Thread re-creation -

With the UI thread, I create another thread using a background worker. In this thread I am using NetworkChanged eventhandler. After the connection is lost, i DoWorkEventArgs e. Cancel, close the thread Once the network is reconnected, I restart the thread using the same background. However, from this point, the event holder will no longer fire the network to disconnect or reconnect. EventHolder's code is in test class that is starting to use the initial backwork worker. Public Test () {NetworkChange.NetworkAvailabilityChanged + = New NetworkApplication Changed EventHandler (NetworkChange_NetworkAvailabilityChanged); } Protected Virtual Zero NetworkChange_Network Availability Change (Object Sender, Networks Avenue E.E.) {try (if available e) {iSnectionActive = true; //RemailThread} and {iSnectionActive = False; // close thread}} {} } I have read that some events are not threads, but I do not understand from other examples what I have to do to change it. (If that is also ...

scala - IO(Http) is cause the error "could not find implicit value for parameter system: akka.actor.ActorSystem" -

I am creating a spray application in Skala and I'm following the example found, but when I compile I am going to get this error. Error: (38, 7) The value contained for the parameter system could not be found: akka.actor.ActorSystem IO (HTTP)! Http.Bind (webserver, ^ and Google search, where I have no lead here is the code for my application package au.net.hivemedia .polydeploy Import akka.actor {Props, ActorRef, ActorSystem} Import akka.io.IO Import au.net.hivemedia.polydeploy.dono.http.WebServerActor Import Spray.can.Http / ** * PolyDeploy Dono - Braeburn * * Copyright (c) Hive Media Production, 2014 * All rights reserved is not redistributed * * / Object Application application extends {Final Val version = "1.0-snapshot" Last val codename = "Twilight brightness" Personal Example: Dono = _ Private on actorSystem: ActorSystem = _ Private Server: ActorRef = _ Override Def Main (args: array [string]) {println (+ version "PolyDeploy Dono V start...

javascript - Showing the selected value on the handler of range input as the value changes -

I have a range input that is a circle-shaped handler, I used CSS to look at Headler as a circle . Now that Im trying to find a way to show the value chosen within that circle, but I could not find a way to do that, even after a long time. That's why I'm here. Is there any way to do this? And one more thing I have to fill on the left and right edge of the handler, depending on the chosen price. Can you please suggest how do I do this? & lt; Input type = "range" min = "0" max = "10" /> Any help would be appreciated. Input [type = category] {-webkit-appearance: none; } Input [type = category] :: - WebKit-Slider-runable-track {width: 300px; Height: 5px; Background: #ddd; Border: None; Boundary-radius: 3px; } Input [type = category] :: - webkit-slider-thumbs {-webkit-appearance: none; Border: 1px solid # e95e57; Height: 32px; Width: 32px; Limit-Radius: 50%; Background: white; Margin-top: -14px; } Input [type = category]: Focus {framewor...

.net - How to create Secure WCF Service for intranet application? -

I have an intranet WCF application but my services are not secure if someone knows the URL of the services and the proper way. They can find out the data using the service. How can I apply security at the service level?

c# - mvc publish error with automigrations -

I am having trouble publishing my MVC project. The 'ApplicationDbContext' reference has changed after I became a "Error Model" database. Consider using Code First Migration to update the database (). ", Which was resolved with the help of Automagration I published my project on another machine via FTP, then added some changes to the structure of the model, ran it on my computer, he Successfully launched and republished on the same machine. When I tried to run it there, there was an error - "Since the creation of the database, the application supports the'Debiccontext 'context Odl has changed. Consider using Code First Migration to update the database. " I am using IIS7 on Windows 7. To update the database to another DB server, you can do this: To use the new server Configure the connection string Run the update-database command from the Package Manager console, in some cases you force flag but be careful, this can delete ...

Difference between the javascript String Type and String Object? -

मैं ECMA-262 मानक ( ECMAScript भाषा विशिष्टता, 3rd संस्करण , यदि यह इसके लिए मायने रखता है - मुझे स्ट्रिंग टाइप / स्ट्रिंग ऑब्जेक्ट पर 3 व 5 संस्करण के बीच कोई अंतर नहीं मिला है।) एक बात जो मुझे चकरा देती है: स्ट्रिंग टाइप और स्ट्रिंग के बीच अंतर वस्तु। हां, मुझे इस अर्थ में अंतर पता है कि स्ट्रिंग प्रकार 16-बिट UTF-16 इकाइयों का अनुक्रम है और स्ट्रिंग ऑब्जेक्ट एक अंतर्निहित ऑब्जेक्ट है जिसमें आंतरिक वर्ग संपत्ति को "स्ट्रिंग" और इसके आंतरिक मूल्य गुण स्ट्रिंग प्रकार के मान पर सेट किया गया है। लेकिन विनिर्देश पढ़ना, स्ट्रिंग प्रकार किसी भी तरीके को बेनकाब नहीं करता है; यह है, यह किसी भी अतिरिक्त गुणों के बिना एक मूल्य है इस कोड को लें, वस्तुतः अपेक्षित सभी चीजें: document.writeln (typeof "foo"); // 'स्ट्रिंग' document.writeln (प्रकार का नया स्ट्रिंग ("foo")); // 'ऑब्जेक्ट' पहला प्रकार वास्तविक स्ट्रिंग प्रकार है और दूसरी वस्तु प्रकार है (यह एक ऑब्जेक्ट है वर्ग स्ट्रिंग , लेकिन इसका डेटा प्रकार ऑब्जेक्ट है)। हा...

windows - Is it possible run Selenium test without active desktop and Jenkins slave? -

Windows Server 2012 Server and Selenium with Jenkins test the project on this server. I want to run my test on the server via the Junkkins incident reconstruction . Selenium test in the browser (Firefox, Chrome and IE) directly on this server, without a separate sled machine ? Is it possible that selenium test is possible in browsers (Firefox, Chrome and IE) on this server, without a separate sled machine? Of course. You have two options: You can set a grid, only in the form of a node with your computer Since it is Windows, it does is a desktop and you will only be able to run the test by setting the webdriver.chrome. Ie.driver and chrome | IEDriver ()

pdf generation - Unity3d sharpPDF plugin different color of rows and cells -

I am using the fast PDF plugin in Unity. I think that .roStyle and .alternateRowStyle there, but I want to make all the rows (or even cells) different colors For example, the first line should be red, the other should be blue, the third should be yellow, etc. Is this possible? Thank you.

javascript - Angular $interval without scope refresh -

I have an $ angle in an angular service that checks whether a array is empty and running a script on every data But the array is something very simple. My problem is that every time the $ interval is running, some guidelines "revolve" from my realm are refreshed if I use the interlabel function to set a javascript instead of $ interval The result i expected but I would like to use the $ interval because I do not know how to make a call to set up calls while running Karma test. Any ideas about using this $ interval for this requirement? is the code, but I believe that you can go to $ interval When calling, you can set 4 codes ( invokeApply ) to false . $ Range. Apply $ () , which I believe is happening here. See for more information. >

c# - how to change BorderColor of Image programmatically in asp.net -

I can not change the border color of the image as a program in asp.net Image Stamp = New Picture (); Postage stamp. Stamp Border Corral = White; Stamp.borderclosure = "white"; Postage stamp. Postage stamp. Color = color White; Postage stamp. Stamp.CssClass = "stamp"; All of these are not working Please help. CssClass is also not working. First set your properties to inset your boundaries or you can show it on your aspx code as follows Then use Image1. BorderColor = System.Drawing.Color.Blue; .aspx & lt; Html xmlns = "http://www.w3.org/1999/xhtml"> & Lt; Head runat = "server" & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Asp: Image ID = "Image1" runat = "server" ImageUrl = "~ / Penguins.jpg" border style = "inset" height = "59 9px" width = "457px" /> & Lt; / Body & gt;...

javascript - Make element appear after scrolling -

When a page goes to a certain y position, I try to reveal an element I am doing this, but it appears after reloading the page and then stays on the page and does not disappear. var showScroll = function () {var url = document.URL; Var urlToTest = 'http: // localhost: 55054 / why-napit / membership-scheme-profit'; Var divEl = document.getElementById ('Action'); If (url == urlToTest) {if (document.documentElement.scrollTop> = 800 || window.pageYoffset> = 800) {divEl.style.display = "block"; } And {divEl.style.display = "none"; }}} (); Window.addEventListener ('load', show scroll, wrong); I have tried scroll events but are not working, so I think I am nearby, but not enough close. You "

linux - Getting 'sudo: unknown user: hadoop' and 'sudo: unable to initialize policy plugin error' on Google Cloud Platform while running hadoop cluster -

मैं Google क्लाउड प्लेटफ़ॉर्म पर Google द्वारा प्रदत्त नमूना Hadoop ऐप को परिनियोजित करने का प्रयास कर रहा हूं। I वहां दिए गए सभी सेटअप निर्देशों का पालन करके चरण-दर-चरण मैं पर्यावरण स्थापित करने में सक्षम था और सफलतापूर्वक क्लस्टर शुरू लेकिन मैं MapReduce भाग को चलाने में सक्षम नहीं हूं। मैं अपने टर्मिनल पर यह आदेश निष्पादित कर रहा हूं: ./ compute_cluster_for_hadoop.py मैपरेड & lt; परियोजना आईडी & gt; & Lt; बाल्टी का नाम & gt; [- प्रीफिक्स & lt; उपसर्ग & gt;] - इनपुट जीएस: // Google Cloud Storage & gt; पर इनपुट निर्देशिका; Google Cloud Storage & gt; पर आउटपुट निर्देशिका \ - आउटपुट जीएस: // & lt; \ --mapper नमूना / shortest-to-longest-mapper.pl \ --reducer नमूना / shortest-to-longest-reducer.pl \ --mapper गिनती 5 \ --reducer गिनती 1 और मैं निम्न त्रुटि हो रही है: sudo: अज्ञात उपयोगकर्ता: Hadoop sudo: फ़ाइल "./compute_cluster_for_hadoop: नीति प्लगइन Traceback (सबसे हाल कॉल पिछले) प्रारंभ करने में असमर्थ। पीई ", लाइन 230, &...

php - Unable to execute insert statement -

अगर (सही) {// query $ insertAccount = mysqli_prepare ($ कनेक्शन, "खाते में प्रवेश करें (उपयोगकर्ता नाम, पासवर्ड, ईमेल), मूल्य (?,?,?) "); // बाइंड करें $ बाइंडः सफलता = mysqli_stmt_bind_param ($ डालें अकाउंट, 'एसएसएस', $ यूज़रनेम, $ पासवर्ड, $ ईमेल); अगर (mysqli_stmt_execute ($ insertAccount)) {हेडर ("स्थान: welcome.php"); } अन्य {हेडर ("स्थान: signup.php"); }} हैलो, मेरे पास PHP कोड से ऊपर कोड स्निपेट है, मुझे हमेशा signup.php पर निर्देशित किया जाता है, और कथन सम्मिलित नहीं है, मैं यहाँ क्या गलत कर रहा हूं? मैं PHP के लिए php और mysqli स्टेटमेंट्स के लिए बहुत नया हूँ। अगर (सच) मेरे लिए सिर्फ यह साबित करने के लिए है कि ब्लॉक को क्रियान्वित किया गया है। mysqli_stmt_execute त्रुटि के मामले में गलत मान लौटाएं। आपको यह पुष्टि करनी चाहिए कि आपकी क्वेरी में कोई त्रुटि नहीं है: यदि (सत्य) {// query $ insertAccount = mysqli_prepare ($ कनेक्शन, "खाते में प्रवेश करें (उपयोगकर्ता नाम, पासवर्ड, ईमेल), मूल्य ") (,,??); // बाइंड करें ...

ios - Swift [__NSCFString isEmpty]: unrecognized selector sent to instance -

I have not used any information about countless external SO pages already, I started a library built with the swig of Objesi There is a problem in doing this The first time here is the error 2014-11-04 14: 04: 02.966 iOSShell [557: 8032] - [__ NSCF string is Blank]: Unexpected selector sent to 0x7ffc9b104020 2014-11-04 14: 04: 02.966 iOSShell [557: 8032] Client: - [__ NSCF string is empty]: Unknown selection For example, 0x7ffc9b104020 sent to the same error var Customer: Client = Client (appName: myappName, counterName: startpage, andDictionary: config) The name of the app is a string and set The counter name is a string and is set The configuration key is a dictionary as a string set: Value added ObjC works fine in the related code but the strings are NSStrings and the dictionary is an NSDictionary

bash - awk multiple passes on each line -

I have to process some large files and run multiple tests on each line. I am currently using awk to run the test individually and I am using the "while-read-line-do" loop to pass each line in more than a dozen awk commands, To validate their content and to test the errors, the lines passing all the tests have been added to the .VALID file. The problem is that I am currently in the process that the process is very slow around the web and after reading many other posts on the stack overflow, what I collect is that the main culprit "when the read-line Is a "loop" which does not lend memory to files (about 100K lines each) in memory. I was hoping someone could help me understand a better way to implement things so that I could get an awk-like performance. Here's my simplified version of code: line while reading || [[-n "$ line"]]; Echo $ line Awk -F \; '{If (($ 3! = "P") & amp; amp; ($ 3! = "0")) {Print $ 0 ...

opencv - How to calculate "Arctan" and "Pow" of IplImage? -

I'm trying to calculate the orientation of a garyscale image using the gradient magnitude and OpenCvSharp. The problem is that the "Pow" function does not look right for IplImage. I also want to know how can I calculate the feature image of tan -1 (or Arktan) am I thank you (IplImage cvImage = new IplImage ( "grayImage.png", LoadMode .AnyDepth | using using using LoadMode.GrayScale)) (IplImage dstXImage = new IplImage (cvImage.Size, cvImage.Depth, cvImage.NChannels)) (IplImage dstYImage = new IplImage (cvImage.Size, cvImage. Depth, cvImage.NChannels)) {float [] data = {0, -1, -1, 2}; CvMat kernel = new CvMat (2, 2, matrix type. F32C1, data); CV Sobel (CViS, DSTXImage, 1, 0, Aperture Size Size 1); CV Sobel (cvImage, dstYImage, 0, 1, ApertureSize.Size1); Cv.Normalize (dstXImage, dstXImage, 1.0, 0, NormType.L1); Cv.Filter2D (cvImage, dstXImage, kernel, new CvPoint (0, 0)); Cv.Normalize (dstYImage, dstYImage, 1.0, 0, NormType.L1); Cv.Filter2D (cvImage, dstYIm...

javascript - How to select extended custom elements -

I have created a custom element after this and now extended items no longer works CSS However the selector. Before: & lt; Style & gt; Expanded items {...} & lt; / Style & gt; & Lt; & Lt; Expand / Expanded-item & gt; after: & lt; Style & gt; ??? {...} & lt; / Style & gt; & Lt; Div = "extended-item" & gt; & Lt; / Div & gt; I tried div: extended object but it does not work. Any ideas? [edit] My example is extended items > Note that by using Noscript and Extended , give me & lt; Extended-item & gt; syntax directly, but only other & lt; Div = "extended-item" & gt; Syntax which does not seem to work with selectors is equivalent to registering the element in such a manner, but will allow me to use syntax, thus the selector will be allowed to work: & lt; Link rel = "import" href = "../ libs / polymer / polymer.html" & gt; ...

Greasemonkey simple html text replacing not working -

I have to replace all the old links in the new web page with an HTML page so that I created the following script document.body.innerHTML.replace ('www.forumoldpage', 'www.forumnewpage'); Save it but when I open the web page, nothing happens. Is there anything wrong with the code or did I forget to do something? I was led to this question when my very first attempt was made to create Gresbianby script, So I thought it was for the benefit of everyone, if this is the answer to this question. Try it out: document.body.innerHTML = document.body.innerHTML.replace ('www.forumoldpage', 'www.forumnewpage'); replace gives you a new string with the replacement, but you still have to change the contents of the web page.

sql - Query XML in multiple records -

I am working with the Dynamics Business Portal. In an attempt to join the user's ad username with the GP Dynamix EmployIDID, I have found some tables that will help me with making this hash. The only table in the business portal tables can be found which will be tied to the GP from the business portal [MbfRoleUser] Enough banner, here is some sample data and how would I like to display it. Declared table table (User Iderative (50), Constitution varchar (200)) @ Valid values ​​('D8851830-EF23-44BE-BB17-0008D70F9F5B', '& lt; entityKey & gt; & lt; Microsoft.Dynamics.Common.Company.Company ID = "1" /><Microsoft.Dynamics.Hrm.Entity.Employee id = "002,001" / & gt; & lt; / entityKey & Gt; '), (' 78E42A10-D7CE-4B40-86F2-001549F5A3C2 ',' entityKey & gt; & lt; Microsoft.Dynamics.Common.Company.Company ID = "1" /> & lt; Microsoft.Dynamics.Hrm.Entity.Employee id = "001,079" /...

java - Request right after Response? -

I have lost a bit from the following scenario: Post requests with my WebSiteWeb data I have to answer with 200 OK or otherwise the senders believe that the request was unsuccessful. After immediately answering the 200, I want to call a remote host on another website, some of which I have just received. My webservice has rejected the post request with @GET annotation. It works, I can read all the form data. I used the Jersey Client API to call other webservice, it works fine too. I do not understand how to switch from switching from one call to the other. Everything is programmed with jersey 2 and is posted in the tomcrack, so there is no real application server, no full java EE stack is not available Do I miss some middleware? Do I need to apply a custom event-loop or some message broker? Surely any "standard" is the way to handle it , But one we can register with one Closing callback: A request processing callback that receives processing completi...

android - Canvas.drawTextOnPath(...) not working on Lollipop -

Image
canvas.DrawTextOnPath does not seem to work on a lollipop device. See the difference here (Nexus 10 image is correct but Lollipop does not display correctly) The code is a simple path draw. Path path = path to new path (); UnitPath.addArc (Unicent, 180.0F, 180.0F); // Insert canvas text and pathtextonepath ("inner circle", unit path, 0.0f, 0.0f, unitpent); Canvas.drawPath (unitPath, unitPaint); The Android Studio Test Project, which reflects this issue, can be seen here for any person to see it. Is there something "different" on this device? OK, it seems that DrawTextOnPath is a bit broken, now 1.0f Below is the font size, the solution is to measure everything, drag back the text, then delete it below. The method in the DrawTitle demo project will change with: Private zero-less title (canvas canvas) {Canvas Left Text Onpath (upper title, uppertitle path, 0.0F, 0.02 F, UnitPaint); Canvas.drawTextOnPath (loweratellite, lowertext path, 0.0f...

haskell - cabal repl is too slow -

Currently, cabal repl is useless for typing at the sign is unsure: some letters appear If you give it, then it seems to hang for 5-10 seconds, only to move forward again later. I suspect that it is related to the fact that it loads the ALX / Generate files (respectively 81K and 134 respectively) in RPL I really do not need those files for REPL support. I'm not sure that there really is a problem, but I do not know what I will try. I want to be able to get them out of REPL, while they still have to be involved in the manufacturing process. Even better: can I use any one of those files ( lex / parse ) in one way? EDIT: I see this behavior running GHC 7.8.3 / cable 1.20.0.3 on OS X 10.9 and with the mid -2012 RMBP (Sandy Bridge) with 16 GB RAM. GHC / KABAL was established through homebrew. Edit 2: In the question You can post your .cabal file Are you If I understand your situation correctly, then how can I proceed: Verify that Alex and Happy Generated Files Re...

java - Inheritance to Sub Sub Class -

I am working on an assignment, there is a question about subclass inheritance, in fact the subclass of a subclass There is an issue with I have three squares, fruits (main square), apple (sub-squared of fruit, too abstract), macintosh (apple subclasses). In the fruit there is a series of manufacturer methods, Apple is the essence element and there is a method, and Macintosh has a constructor call for superclass (fruit). fruit.java extends the object of the public intangible class {// the name of the name protected string mName; // number of calories protected int mCalories; // Colors color protected color mColor; // Weight of weight, double mowweight preserved in pound; Protected fruit (this ("apple"); // default fruit} protected fruit (name of string) {it (name, 0);} protected fruit (string name, int calorie) {it (name, calories, empty) );} Protected fruit (string name, int calorie, color color) {it (name, calorie, color, 0d);} protected fruit (string name, int calo...

java - Resources linking in Dropwizard / JAX-RS 1.x (JSR 311) -

There is a problem with the resources I add to the drawer: with JX-RS 2.0 we magically javax.ws. Rs.core.link category with which this creator can do almost all the work for you. Unfortunately, Dropwizard 0.7.1 is not dependent on the new 2.0 API, but in the old javax.ws.rs:jsr311-api API, which can not handle the linking. Or can it? I want to solve this problem with Dropwizard. Maybe I have two ways to do this and I do not know any of them is valid: Option 1 : I saw dependency on my project JX-RS 2.0! I have found the link but the problem is that it does not work well with the old implementation of the jersey - I got the abstractmethodException from the urlblower, which was apparently changed from version 1 to 2. So the answer is to supply new implementation Can I do this? If yes, how can I do this? Do new implementations work well with the dropwizard? Option 2 : I can simply add some other resources to the dropwizard linking. Is there any other linking standard ...

how to set use-expressions= true in java config file instead on xml file in spring security -

I am trying to use the spring protection "authorized" tag in my jsp below but it is not working is. According to my reading in some blogs, I need to set the use-expression = true in security- config.xml. But I am using a Java config file instead of an XML file. Then use the Java Config file in the right-how to set up the Apache attribute correctly?

node.js - PassportJS and Redirects -

When a user goes to my site, they can view some partial visits without the need to log in. ), Passportjs redirects them back to the main page. If I remove the redirect, the passport log-in is completely unsuccessful. Do anyone have code that they can share bypassing the necessary redirects or redirect the user to the current URL, on which they are (without redirecting '/')? Below is my code that makes a passport call, redirects "required": app post ('/ login', passport. Authentication ('local-login ', {SuccessRedirect:' / ', Failure Redirect:' / ', Failure Flash: True})); Hey - when you is not to redirect Authentication is done - for example check the code below: app Post ('/ login', passport authentication ('local'), work (request, ridge) {// If this function is called, then authentication was successful. // `req.user` contains certified users Res.redirect ('/ users /' + req.user.username);...

php - TCPDF displays only one HTML table from the loop -

I successfully display the HMTL table in PDF file using TCPDF. The only problem is that it should display several tables because I use the FOREACH loop but it only displays a table. Please check your code below and help me find my mistake: SetFontSubsetting (wrong); $ Obj_pdf- & gt; AddPage (); Ob_start (); Forex currency ($ result as $ line) {$ first = $ row-> first; $ Sec = $ line- & gt; second; $ Third = $ row-> Third; $ Tbl = & lt; & Lt; & Lt; EOD & lt; Table cells = "0" cellpadding = "1" border = "1" & gt; & Lt; TR & gt; & Lt; TD & gt; $ First & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> $ Sec & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; $ 3rd & lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; The end of the day; } Ob_end_clean (); $ Obj_pdf- & gt; Write html ($ tbl, true, false, tru...

javascript - window.open cause a SCRIPT16386: No such interface supported in ie 11 -

I have a user who has a strange error when my script window.open ("...") Tries to open a new page with; I have this exception: SCRIPT16386: No such interface supported It seems that only IE11 users have this error , So I was in my i.e. 11 settings so I closed the pop-up blocker, but there was an error still. Do you have any clue that can cause this error in IE 11? Thank you.

wso2esb - WSO2 ESB - JMS response from endpoint with XML payload shows up as Text -

Text after "div class =" itemprop = "text"> I am using WSO2 ESB to send a JMS message (XML payload) to the end point and then return a JMS To read the message (on another line) from the same closing point (which sends an XML payload), the problem I am facing is returning JMS messages from the last position, although this is an XML payload, one Comes in the form of text messaging. ? Here I have sent back the JMP message (with the XML payload) in WSO2 to the endpoint: & Amp; Lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Amp; Lt; Sys1Response xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: noNamespaceSchemaLocation = "Sys1-acknowledgment-nack.xsd" & amp; Gt; & Amp; Lt; Security & amp; Gt; & Amp; Lt; StatusInfo & amp; Gt; & Amp; Lt; ARMStatus & amp; Gt; ARM_ACK & amp; Lt; / ARMStatus & amp; Gt; & Amp; Lt; Sys1Status & amp; Gt; Sys1_ACK & ...

xml - Where to store schema in Apache Solr? -

Early Learning How To Use Apache Solr Using the "Indexing Data" section tutorial. I am unable to index Apache Solar as my "custom made XML files". However, there is no problem indexing example xml files that come with Apache solar distribution package. I'm new to XML and so I only know about the concept of XML schema. How to post my custom file? Where is Apache Solar Store Xml Schemas? Any help is appreciated. Uses to create Solar Documents You can not send only an XML document to Solar and it can expect to parse it. But you can use the disk to read XML files and map specific areas. For example, there is an example in solar distribution - DIH (RSS example). The RSS loads content from the example url. To load from the file, see from my book.

python - tkinter option menu doesn't display selection -

I have a python / typewriter program through the Options menus, which works fine, though in the second window (a window The main window that opens and has a separate vaccine execution) option option is not visible in the Options menu. I have tested and the option has been selected and I can use it, it just does not display. The following class is called from the main window: class Ftp_window: def __init __ (self): root = Tk () root.resizable (width = FALSE, height = FALSE) root.title ( "unity Acesso ao FTP") root.iconbitmap ( "icon.ico") note = Notebook (root) self.tab1 = Frame (Note) self.tab2 = Frame (Note) note.add (Self.tab1, text = "Acessar basases") add. (Self.tab2, text = "analysis") root.minsize (600,500) root.immetry ("600x500") self.ftp_apelido = StringVar () self.ftp_apelido .set ("select") self.varvoz = StringVar () self.tab_one () note.pack () root.mainloop () Def get_list_of_apelidos (auto): '' s...

c# - Wpf Data annotation validation required, when the textbox is first created then validation does not work until something is typed in -

I am using Verification with validation contact in my WPF xaml project, which then looks at data annotation. All this works very well, I get a red box around a texblock and gets a tooltip from a style. However, there are two things that I can not work in, when a user opens a view, which has an area that is necessary, then I want Texbox to be found immediately around a red box. Instead of receiving it, after typing by me and then removing some of the text in the taxbox, which is necessary, how do I validate when I started it? Here are some code: protected zero valid data (object value, [CallerMemberName] string propertyName = "") {var reference = new verification console (this, blank, empty) {username = propertyName} ; Recognizer Validity (value, reference); } [Required (error message = error message. Description required)] [string string (60, error message = error message Description description 60)] public string description {get {return description; } Set {descriptio...

android - One xml to many java file? -

I have two activities that are called Home and Options. There are 6 buttons in the Home: Doctor - Appointments ... etc Options include 3 buttons: Add - Edit / Delete - List. The option is a normal layout which means that I have doctors and appointments. But the problem is that I want to write on the button "add doctor - option / doctor - list doctor" options.xml if the buttons pressed in the home were doctors and "add appointment - edit / delete appointments list appointments" "In Options.xml if the button pressed in the home was appointment. The point is to reduce the number of activities, so instead of creating 6 activities with the same format, can I just write text on the button Previous Activity? Is this possible? You can send information with the intention of starting a new activity. Click DocClick on Public Zero (see V) {intent intention = new intention (this, next activity category); Intent.putExtra ("button_text_1", "Add ...

.net - Quit excel instance as class member on demand -

after "text" itemprop = "text"> I try to create a square where I want to work with an Excel instance and I demand that drop On the example excellence (want to be outlined in still want to be able to differentiate the following ways in the garbage colletion:. Import excel = Microsoft.Office.Interop.Excel Folk Class Form1 Personal sub Form1_Load (as the object, E EventArgs) handles MyBase.Load dim xlsInst New ExcelInst GC.C As ollect () GC.WaitForPendingFinalizers () End Sub ending class folk classroom ExcelInst sub new () Dim myxlApp New Excel.Application dim myxlWb Excel.Workbook as' ~~ & gt; a new workbook as myxlWb = myxlApp .Workbooks.Add '~~ & gt; Display Excel myxlApp.Visible = true myxlApp.Quit () End Sub Ending Class Excel Overview The task manager is loaded as a form I am not satisfied with the class. Ause I make the personal variable of myxlApp and myxlWB Want to But if I change my class to public class ExcelInst Personal...

ios - UIScrollView Frame Always CGRectZero -

Image
मेरे पास एक निब है जिसमें मानक UIView है और मैंने भी UIScrollView एक IBOutlet के रूप में (हाँ, इसे झुका हुआ है), मुख्य UIView के उपदृश्य के रूप में नहीं, बल्कि अपने स्वयं के बाहर ही है Autolayout बंद है स्क्रॉल व्यू में कई सबव्यूज़ हैं और मुख्य दृश्य से बड़ा है। viewWillAppear: में, मैं अपने मौजूदा फ्रेम आकार के UIScrollView के कंटेट साइज़ को सेट करता हूं, और उसके फ्रेम को मुख्य दृश्य के आकार में सेट कर देता हूं, और इसे एक के रूप में जोड़ें मुख्य दृश्य का सबव्यू। दुर्भाग्य से, कुछ भी नहीं दिख रहा है जब मैं NSLog मेरे UIScrollView के फ्रेम के रूप में {0, 0, 0, 0} ( CGRectZero )। मैंने सोचा था कि यह अजीब है, इसलिए मैं वापस आ गया और फ्रेम में प्रवेश करने की कोशिश की, इससे पहले कि मैंने इसमें कोई बदलाव किया। फिर भी शून्य मेरे किसी भी तत्व को देखने के लिए कुछ भी करने से पहले इसे viewDidLoad में लॉग आउट किया जाता है फिर भी शून्य (मेरे निब में एफडब्ल्यूआईड, फ्रेम है {0, 0, 320, 896} ) मुझे अपने कई नियंत्रकों के साथ यह मुद्दा मिला है, लेकिन ऐसा लगता है मारो या छ...

java - groovy ActionListener doesn't work under one condition -

I am writing simple calc in groovy with swing, I declare a button in a loop and at the same time, Add Listener. It seems that listeners work for each button except the "=" button, I do not know what's the problem here. Can you help me with that? import javax.swing. Import java.awt. Import java.awt.event. Frame = new jefram (size: [600, 300], layout: new flow layout ()) MsgLabel = new JLab ("") frame.contentPane.add msgLabel def character = "0123456789, / * - + = C" 0. Upto (characters.length () - 1) {df signal = characters.getit (this) button = new pocket (sign) frame. ContentPane.add button println this.getClass (). GetName () if {sign == "="} {button.addActionListener {{equals ()}} as ActionListener and if {sign = = "C"} {button.addActionListener (Action_istener) {{explicitly ()}} {Button. AddActionListener ({putText (sign)}}}}}}}}}}}}}}}}}}}}}}}}} equal to public zero equal to () {println "equals"} public zero cl...

java - using string methods to count characters -

I am trying to calculate the number of empty letters in the string. When there is no major space, works properly, but when I add 3 places, it doubles the number of non-blank characters. This is my code: import java.io. *; Import java.util. *; Public class counting {public static zero main (string [] args) exception {string string 1; integer number; Calculation = 0; BufferedReader Data In = New BufferedReader (New InputStreamReader (System.in)); System.out.print ("Enter a string:"); Str1 = dataIn.readLine (); While (str1.length ()> gt; {System.out.println ("The string" '+ 1 + 1' ''); System.out.println ("is" + str1.length () + "Characters with all spaces."); (Int i = 0; i & lt; str1.length (); ++ i) if (str1.charAt (i)! = '') Count ++; Str1 = str1.trim (); System.out.println ("and" + str1.length () + "characters filtering forward and trailing spaces."); System.out.println ("and...

$_SERVER['SERVER_ADDR'] is Undefined on php over plesk -

इस सवाल का पहले से ही एक उत्तर है: 22 उत्तर मैं एक PHP स्क्रिप्ट चला रहा हूँ fastcgi से php सुविधा के माध्यम से PHP कोड चलाता है PLESK पर। सब कुछ अच्छी तरह से काम करता है, लेकिन जब मैं इस कोड के माध्यम से यूजर आईपी पता प्राप्त करना चाहता हूं $ _ सर्वर ['SERVER_ADDR'] मुझे यह त्रुटि संदेश मिलता है: नोटिस: अपरिभाषित अनुक्रमणिका: SERVER_ADDR ऐसा लगता है कि सर्वर चर PHP में उपलब्ध नहीं है जो कि PLESK CGI पर चलता है कृपया मेरी मदद करें, अगर मैं PHP आईपी के माध्यम से PHP कोड प्राप्त करना चाहता हूं, तो मुझे क्या करना चाहिए? उपयोगकर्ता का आईपी $ _ SERVER ['REMOTE_ADDR'] में नहीं है SERVER_ADDR ।

php - loading an html page on a different domain into a javascript variable (without a proxy) -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मैं एक गोंद बना रहा हूँ स्क्रिप्ट के लिए पीएचपी में एक साथ दो टुकड़े सॉफ़्टवेयर (आईबीएम के टीएनपीएम और नेटवर्क वेयरमैप)। Weathermaps ओवरलैबग्राफ़ कार्यक्षमता काम करने के लिए मुझे TNPM के उत्पादन के लिए यूआरएल की आवश्यकता है (जो पीएनजी हैं)। अब टीएनपीएम ऐसा करने के लिए एक एपीआई नहीं है, न ही इन आलेखों के लिए यूआरएल उम्मीद के मुताबिक। मैं टीएनपीएम के बारे में बहुत कुछ नहीं जानता, इसलिए मैं यहां गलत हो सकता है। इसलिए इसे एक वेब अनुप्रयोग के रूप में इलाज कर रहा हूं और मैं एक ग्राफ़ से ग्राफ़ url को परिमार्जन करने की कोशिश करता हूं जिसमें यह आलेख होता है। हालांकि मेरी स्क्रिप्ट फ़ायरवॉल सर्वर पर है और आम तौर पर उसे डंप के माध्यम से इनपुट मिलता है। यह वास्तव में TNPM का उपयोग नहीं कर सकता (इसका मतलब यह है कि मैं प्रॉक्सी समाधान का उपयोग नहीं कर सकता)। मेरा मालिक मुझसे कहता है कि फ़ायरवॉल को खोलना मेरा गोंद स्क्रिप्ट TNPM सर्वर का उपयोग कर सकता है जैसे कि सामान्य उपयोगकर्ता लंबे समय तक ले जा रहा है। तो मैं जावास्क्रिप्ट का उपयोग ...

playframework 2.0 - Drop value from Play Json -

मेरे पास Play में एक केस क्लास है: केस वर्ग हवाई अड्डा (नाम: स्ट्रिंग, प्रारूप [स्ट्रिंग] और (जेएसपीथ \ "आईटा") प्रारूप [स्ट्रिंग] और (जेएसपीथ \ "देश")। प्रारूप [स्ट्रिंग]) (हवाईअड्डाअटो कॉम्पलेट.अप्ली, अनलिफ्ट (एयरपोर्टअटो कॉम्पलेट.अनुप्ली))} अब मैं एक हवाई अड्डे को ठीक से भेजना चाहता हूं (जेसन। टॉसन (..)) प्रतिक्रिया । लेकिन मैं देश को स्ट्रिंग भेजना नहीं चाहता। क्या मैं इसे किसी तरह छोड़ सकता हूं? संपादित करें: कार्य समाधान ठीक है (जेसन.टी.जसन (एयरपोर्टलिस्ट.मैप (जेसन। टोजसन (_)। [जेएसओबाइज] - "देश")) आपको - का उपयोग करना चाहिए x नाम का एक वैल, आप निम्न कोड का प्रयोग करेंगे: ठीक है (जेसन। टोजसन (एक्स) - "देश") JsObject Scaladoc से:

c# - Getting CS0246 when making ASP.NET-web application but MySql.Data is added -

Thank you first for trying to solve my problem. I am doing a webplication with ASP.net in the background with C # so when a user pushes the button on login.aspx, then Administratie.login () is registered with the login name and password. Is called together. The Administratie tells the database to execute its own login (cs) in which it creates a connection to the database. login.aspx: using the system; Using System.Collections.Generic; Using System.Linq; Using System.Web; Using System.Web.UI; Using System.Web.UI.WebControls; Using MySql.Data.MySqlClient; Namespace Admin_SiM.Forms {Public Partial Class Login: System. Web.UI.Page {Private Administrator Administrator; Protected Zero Page_load (object sender, event aRGS) {administratie = new Adminstratie (); } Secure zero btLogin_Click (object sender, EventArgs e) {string result = administratie.login (tbEmail.Text, tbWachtwoord.Text); Errorlabel.Text = Results; If (results == "right") {// go to next screen}}}} Admini...