Posts

Showing posts from May, 2013

javascript - TrueMD API does not work in java servlet -

I was trying to apply the TrueMD API as: I have downloaded TrueMD.jar and added to the Java Web Subnet Application Library using Netbeans 8.0. I was able to get medication advice but not his details. I tried the following code: Secure zero process request (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {response.setContentType ("text / html; charset = UTF-8") ; PrintWriter out = response.getWriter (); String drugdetail = request.getParameter ("medicine"); TrueMDAPI.key = "3abb58c093fd817e9cddae75b3de2b"; Try {Medical Medicine = TruMDAP Metatcinidata (drugstore); Printmedicine (medicine); } Finally {out.close (); }} Static Wide Printmedicine (Medicine Medicine) {System.out.println ("Manufacturer:" + Medicine. Guest Manipaterator); System.out.println ("Brand:" + medicine.getBrand ()); System.out.println ("Category:" + medicine.getCategory ()); System.out.println ("d_cla...

php - Table referencing itself , MySQL, primary key and foreign key in same table , select statement -

कैसे मैं श्रेणियों के कॉलम का चयन करता हूं जो दो प्रकार SubCat & amp; mainCat से संदर्भित रूप से तालिका संदर्भ में cat : कहलाता है ( maincat_id ) संदर्भ ( cat_id ) जो प्राइमरीकी है तालिका में डेटाबेस: cat_id catname maincat_id cat_type 1 हैलो नल 1 2 एक 3 2 3 परीक्षा 1 2 4 ते 3 3 2 जैसा कि आप देख रहे हैं कि अगर cat_type = 1 है तो यह उपकैट है। मुझे सिर्फ तालिका की आवश्यकता है सबकैट मुख्य कैट जो इसे संबंधित है: catname Root_name एक टेस्ट टेस्ट हैलो है ते 3 परीक्षा अधिक जानकारी: हमारे पास श्रेणियों की एक मेज है जिसे 'बिल्ली कहते हैं ', इसमें (मुख्य श्रेणियाँ) और (उप श्रेणियां) हैं, जो छोटे पेड़ (सिर्फ एक स्तर की गहराई) बनाती हैं। आप बस उपयोग कर सकते हैं इसके लिए एक सरल आंतरिक सम्मिलन: SELECT t1.catname AS श्रेणी, t2.catname AS उपश्रेणी से cat t1 INNER जोड़ी बिल्ली t2 ON t1.cat_id = t2.maincat_id WHERE t1.cat_type = 1 आखिरकार, मुझे आशा है कि मैं आपके प्रश्न को सही समझता हूं, और यही आपकी जरूरत है। बेला:

mysql - Pentaho Kettle - How to produce update query based on result set? -

I came from Penthouse Spoon which writes in a text file as a set of SQL statement. / P> I wonder if there is a method that can be used like this but generate an update query based on the input. OK, if you want to update a table based on some key columns compared to your stream If you need it, then you use the step The downside is that it will not generate a statement in a file, it will execute updates or inclusions based on that comparison and all this. Can you give more information about this to your scenario? We can work together. Why do you need a file with the UPDATE statement? Can not we connect to the database and run the update immediately?

android - Require a progress bar in action bar -

I need a progress bar in my action bar, I am able to use the following code: - @Orride Creatives (bundle saved instainstate) on public zero {super.onCreate (savedInstanceState); RequestWindowFeature (Window.FEATURE_INDETERMINATE_PROGRESS); RequestWindowFeature (Window.FEATURE_PROGRESS); SetContentView (R.layout.main_screen); Progress = (LinearLayout) findViewById (RID progression); SetProgressBarIndeterminateVisibility (Boolean.FALSE); This.setprogressBarIndeterminate (true); } However, I also see a spinner along with the progress bar. I can tell anyone how to hide the spinner. Also I need to move the progress bar below the action bar. The progress bar is used when we should take action in the background. You can use it anywhere The following examples can be useful: Personal progress DIOLOG PDialog; Protected void onCreate (bundled saved instenstate) {super.onCreate (SavedInstanceState); SetContentView (R.layout.examplelayout); New example () carry about (); } Class e...

c# - How to call ArcGIS functionalities within a .net application? -

I want to do something like this. Let's say that I have a satellite imagery. I want to classify it in many vegetation indices but I want to program this without having to include any user or without opening RCGI I know we have some work in Archigli in Python Can write scripts. There is no way to call these ArcGIS functions within a normal .net application as intelligent. Please help me Arczas Runtime SDK for .NET (Windows desktop) enabled developers to create high-quality interactive mapping, queries, geocoding, routing, data editing and applications with advanced geographic analysis. makes. From here:

business objects sdk - How to obtain the report data from BO with the use of RESTful Web Services? -

I appreciate the sample code (URL string) that gives data. So far I am able to get information about the report but I am not able to get the data. From: Get the list of data providers: Get get & lt; WebiURL & gt; / Documents / {documentId} / dataproviders As a result, you will get a DP ID which looks like: Then get the number of "flow" in the DP: get & lt; WebiURL & gt; / Documents / {documentId} / dataproviders / dp / get flow data then flow: get & lt; WebiURL & gt; / Documents / {documentId} / dataprider / DP0 / flow code>

angularjs - how to display popup on the click of submit buttonof a form? -

I have a form and two text fields, on clicking on the form button submit, I want to generate pop ups And display the value put in the text field of the form. ??? You can use the NG-model. Here's an example: -HTML & lt; Div & gt; & Lt; Input type = "text" ng-model = "input1" /> & Lt; Input type = "text" ng-model = "input2" /> & Lt; Ng-click button = "submit text ()" & gt; Submit & lt; / Button & gt; & Lt; / Div & gt; - Controller: $ scope.submitText = function () {var text1 = $ scope.input1; Var text2 = $ scope.input2; Warning (text1 + "+ + 2 text)"; };

java - How to reuse existing data models when using rest.li -

We have some existing data model squares but none of these is the interface if we have the comfort of Linkin Is it possible to reuse the new Java class that does not reuse the existing model? Otherwise with nested associations, we can do a rest for every model. Specific Model Class It Pgass plugin or a link to possible optimization with this plugin, but it will also help, but I found this to not get no console and help you find out after several attempts to project skeleton generation. Any sign will be very helpful. Thanks, Padmanabhan Rest.li of your data layer Together tightly coupled. Rest.li. There is no trivial way to use an arbitrary data model with. However, it is possible to come up with some conversion logic between Rest.li data and your existing data model. Whether or not this conversion logic is harmful, complex, or not depends on the nature of your data model. For example, Rest.li data infrastructure Detamap and is Detalaist , which represents the JSON obj...

python - using list instead of number or string in the query -

I would like to use a list of the int used in a query in the following: db.define_table ('customer', region ('name'), area ('cusnumber', 'integer') def defytmr (): listOfNumbers = [22,12,76,98] qry = db (db . Customer.cusnumber == listOfNumbers). Selection (db.customer.name) Print Curie This is an issue that only the accepted data type in the query is int or str. Is there any way to avoid this problem (preferably not being used for loop) Regards It's really hard to know what you are trying to ask, but the syntax of db.define_table (...) From, I guess a wild guess trying to do a query on web2py and your listOfNumbers get int . You have the in the attribute as follows: # if all = true, cusnumber will need to include all the lists: Meaning any qry = db (db.customer.cusnumber.contains (listOfNumbers, all = false)) (db.customer.name) You can read more in the details In the OP responded that contains only for string...

java - how do I calculate the points in a 5-point polygon -

I have a demo with a button and when the user clicks on a button called polygon, the polygon starts with the point Hit, this code works fine in drawing but unfortunately it pulls the polygon in the wrong place. polygonal square square polygon shape {int x, y; Private polygon P; Public PolygonShape (int x, int y) {// X, Y sent to this constructor // The coordinates of the point where the user clicked this. X = x; this. Y = y; } Public Zero Draw (Graphics G) {p = New Polygon (); For (int i = 0; i & lt; 5; i ++) p.addPoint (int) (x + y * Math.cos (i * 2 * Math.PI / 5)), (int) ( X + y * Math.sin (i * 2 * monastery. Pi / 5))); G.drawpolygon (p); x and y are the center of polygon, you are using them wrong (you want to add x in coordinate and y y in coordinate) and Instead of multiplying one more important variable: r for radius, instead of multiplying by y , you should type in the r Should multiply by. In other words: square polygon shape {int x, y, r; P...

javascript - Instability when loading JQuery dynamically in Firefox -

No need to declare a function where the library Jyoki me depending on the situation and some other scripts, warning As a .js script which is a class of the same name, I tested that functionality in Google Chrome and Mozilla Firefox. Firstly the script is always loaded correctly before the implementation of class function / class warning (), even though the scripts in Firefox are loaded astatically. In other words, when the function warnings are executed, some time is not jQuery Are still ready, this page is needed to refresh. To further clarify, the value given by the Firefox Error Console is: ReferenceError: jQuery is not defined Below Code: if (typeof (warning) === 'undefined') {var scripts = [DIR_JS_LIB + 'lib / jQuery / jQuery. min.js ', DIR_JS_LIB +' lib / jQuery / jQuery-ui / jQuery-ui.min.js ', DIR_JS_LIB +' scripts / COMPONENTES / dialogues / AcaoJanela.js ', DIR_JS_LIB +' scripts / COMPONENTES / dialogues / Botao. JS ', DI...

Jhipster Release 1.6.0 - datepicker from create/edit modal is not working -

I've upgraded jhipster from 1.4.0 to 1.6.0 and I found out that datepicker is no longer working Has been doing. Probably not a big deal, but I do not know why Dotapeck has gone. Both are equally similar in release. Can anyone use this jippster ?? Thanks in advance: -)

How can I find the micro-ops which instructions on Intel's x86 CPUs decode to? -

Intel Optimization Reference, under section 3.5.1, recommends: "Single-Micro- Operation Instructions. "Avoid using complicated instructions (for example, enter, leave, or loop) which have more than 4 micro-ops and need several cycles to decode. Use simple instructions instead. " Although Intel tells the compiler authors to use those lists that explain some micro-ops, I do not have anything in their manual Which tells how many micro-ops are decoding each ASM instruction! Is this information somewhere else? (Of course, I hope the answer is different generations of CPUs PDF reference on X86 instructions on the fog (referring to the main page swan Giving) is the only reference that I have found on information and micro-ops. I've never seen an Intel document on micro-op breakdown.

windows 7 - Access a shared local folder with html -

On our network, I want to share a folder where I will store my data such as images and videos I I want to host our HTML in the cloud and in the context of property locally. I have shared a folder called test and the path is: Anyone on your iPad will simply navigate to the website and will look at the property as a normal webpage as long as they are on the local network. It was working on the above syntax and after a power failure it stopped. I'm using Windows 7. Our DNS name was not registered on our server. The simple answer was actually from Sejosz I could access the shared folder using a static IP and a webserver.

arrays - Having issues with Javascript dice game -

I am trying to set a button to fire the two functions. This is a basic dice-based game: The top players work fine, but computer costs do not get any value. function welcome () {warning (" welcome "+ document.getElementById (" Fname "). Value +"! "); } Function Older (Age) {If (age and lieutenant; 18) {Warning ("Leave it down now"); }} // Player Dice Roll // Function Rolls () {var die1 = document.getElementById ("die1"); Var die2 = document.getElementById ("die2"); Var position = document.getElementById ("status"); // Random number (whole number) between 1 and 6 // var d1 = Math.floor (Math.Randem) * 6) + 1; Var d2 = Math.floor (Math.Random) * 6) + 1; Var Distall = D1 + D2; // Random number value // die1.innerHTML = d1; Die2.innerHTML = D2; Status.innerHTML = "You Rold" + Dice Total + "."; If (D1 == D2) {status.inner HTML + "Doubles! Roll Again"; }} // computer die roll // funct...

javascript - Blank page on running AngularJS Application in iFrame in IE8 -

I am trying to run an AngularJS application in IE8 in an iframe. I get blank page Observed Behavior: 1. IE8 works fine in the normal browser window. 2. Chrome and Firefox works fine in IFrame 3. If I right click and refresh iframe then works fine. 4. The HTML is fully loaded (checked in view source). AngularJS controller has not triggered any alerts and consoles.log is not displayed. 5. No JS errors are thrown How can I enable the triggers of the Angular JS controller, can I manually trigger it on the window. Any insights and suggestions will help. Unfortunately I have to run an application inside an iframe in IE8? Choosing a browser or choosing a different browser is not an option. Thanks! SKR Finally reached a solution. As I mentioned in the description of this issue, if the page works fine on refresh, then refresh the page to load the solution. I have mentioned once the page refresh solution, which is given in a given solution specifically. There is no direct d...

php - Codeigniter radio buttons -

I have a codeigner project and my view file is in the radio button selection. If anyone has an idea that the controller knows that the latch button is selected? Thank you You must use it for all radio buttons named Like: & lt; Input type = "radio" name = "radio_sex" id = "radmale" class = "css-checkbox" value = "male" /> & Lt; Input type = "radio" name = "radio_sex" id = "radfemale" class = "css-checkbox" value = "female" /> Now with the controller, you can easily get the value of selected radio button using the following code: $ this-> input-> gt; ; Post 'radio_sex'); Everything.

ios - Segmented WebVTT not working with Chromecast -

I would WebVTT format'm trying to provide closed captions support with Chromecast to your iOS app files section (with .m3u8 extension) but the videos are hosted on a CDN and closed caption files that are hosted on a different server. The URLs for these WebTV files are not provided separately from the video master playlist. These subtitles are working with Chromecast rather than the original iOS player. I was divided into a general WebVTT (non stretches tried hosting) the same file server on which the segmented hosted WebVTT file and it works fine. So, the problem is with parts divided into WebVTT. Therefore, it is possible to get distributed WebVTT files based on Chromecast, depending on where they are hosted separately. Am I using a custom receiver? I especially made of this support is the need to add anything to the file receiver This is how I media track for the closed caption: GCKMediaTrack * Track = [[GCKMediaTrack alloc] initWithIdentifier: 1 contentIdentifier: @...

java - How to execute a jar file within a jar file -

I have a project that the structure can not be changed. What do I do? I have a main jar file that contains the director / classes / lib / main / manifest I have to call a test 1 class when I execute the main jar file. So in the manifest file I gave the path of the main-class: path.to.file. I have another jar file inside the main folder that contains the actual application. To execute the jar in the main folder, and your Test2 mentioned in the manifest file What can I do to execute the class. Please appreciate me any help to solve or work in any direction. You can not do this in the existing class loader, you need a new one. If the name of your jar is foobar.jar and you have main -method class test.abc.main The URL can be used to: url [] url = {new URL ("Classloader: / maine / fieobar.jager"}} classloader parent class loader = it.get class () GetClassLoader (); URL Class Loader Child Class Loader = New URL Class Loader (URL, Parent Class Loa...

java - Difference between <plugins> and <pluginManagement> tag in Maven `pom.xml` -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब मेरे Pom.xml , मुझे एक प्लगइन को कॉन्फ़िगर करना था मैंने जो पाया है, वह & lt; प्लगइन & gt; टैग या तो & lt; plugins & gt; या & lt; pluginManagement & gt; तत्वों के अंदर डाला जा सकता है मैं उलझन में हूँ! & lt; plugins & gt; और & lt; pluginManagement & gt; ? से: pluginManagement : एक तत्व है यह साइड प्लगइन्स के साथ देखा जाता है। प्लगइन प्रबंधन में प्लगिन तत्व शामिल हैं, इसके अलावा, इस विशेष प्रोजेक्ट बिल्ड के लिए प्लगइन जानकारी को कॉन्फ़िगर करने के बजाय, इसका उद्देश्य परियोजना के निर्माण को संरक्षित करना है जो इस एक से उत्तराधिकारी हैं। हालांकि, यह केवल उन प्लगइन्स को कॉन्फ़िगर करता है जो वास्तव में बच्चों में प्लगइन्स तत्व के भीतर संदर्भित होते हैं बच्चों को प्लगइन प्रबंधन ओवरराइड करने का पूरा अधिकार है। आप

ios - Adding a single swift file to an existing objective-c project -

I have a purpose-built project, I want to create a fast file in the project and use it to initialize visualization and To do the presentation is to give a sharp file. Note that I do not want to import the entire motion project just one quick file. I have added "Import" to "MySwift-SWIFT H" and I can get anything on the web but none of them work. To create a file, right-click on your project name and Click 'New File' . . Then make sure that you are in the iOS section , scroll through the categories at that point (I believe you can find it in 'source') and 'Swift file Click ' . . Name whatever you want and make sure it is a subdivision of UIViewController Then change the class to enroll in your storyboard, in the inspector . Hope it helps, Will

angularjs - Testing Angular controller with Require and Typescript -

Image
I am trying to create a basic test to verify that I can create an administrator or service My app is the following directory app / js / app.js My controllers are in the following directory ap / js / controller / Here's my karma. Config.js file files: ['scripts / jquery.2.1.1.min.js',' scripts / require.js', 'script / angular. JS ',' scripts / angular-mocks.js ', {pattern:' app / js / *. Js ', includes: wrong}, {pattern:' ap / js / ** / *. JS ', included: wrong}, {pattern:' app / js / ** / ** / *. JS ', included: Incorrect}, {Pattern:' AP / JS / ** / ** / ** / *. JS ', included: wrong}, {pattern:' test / specs / ** / *. JS ', included: Incorrect},' Exclude list of files to exclude / test-main.js',], // list: ['app / js / main.js'], test-main.js var testFiles = []; (.__ karma __ files in the var file) {console.log (file); If (/Spec\.js$/.test(file)) {testFiles.push (file...

android - Java cursor giving only 50 rows -

I am using this cursor, but it is facing a problem this Returning only 50 rows, while the database table is 500+ rows, when it comes out of the loop after the 49 V record cursor c = db.rawQuery (select "From mytable command with id" ", Blank); Toast. Make text (this, "line count ---" + c.getCount (), toast.LnnGHIHAR). Show (); // give 500 records int ik = 0; If (c! = Null) {while (c.moveToNext ()) {ik ++; Toast. Maketext (Try this, "increment --- + +, Toast LNGHIRAR). Show (); // only 49}} please help There is no error in capturing but after 49V record sends a request to connect to WiFi, while I am not using any WiFi. There is an alternative way of getting all the records. / P> Thanks in advance Just one thing, I guess Is: cursor c = db.rawQuery ("select from mytable order with id", blank); toast. Make text (this, "line count ---" c.getCount (), Toast.LnnGHIHAR) Show (); // give 500 records int ik = 0; if (c....

Error 404 - Not Found while transforming XML to HTML in java -

I have selected XML files in jsp page and then after the service file, I change these files and the HTML page Displaying data on But this does not work, when I select an XML file, and agree that I get an error below "Error 404 - not found" Down java code: @WebServlet (name = "validation", urlPatterns = {"/ validation"}) Public class recognition HTTPSVervlet {Private constant The final string extends CONTENT_TYPE = "text / html; charset = windows-1252"; Stable document document; Public Zero Init (Circlet Config Config) has servlet upption {super.init (config); } Public Zero doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance (); Try {string xmlfile = request.getParameter ("feature"); String xsltfile = "C: \\ Documents and Settings \\ Administrator \\ Bureau \\ test \\ EDI3 \ EDI"; File styleshee...

c# - Overriding Equals on IEquatable -

I have the following method that I use to prevent people from changing querystring in order Trying to see the details of other people: Public Static Bull. Person repository repo = new person repository (); Wessel Reptiles Ship Repos = New Ship Repository (); Person current nature = repo Getparsenbyuser (current user); Int qs = int.Parse (request.QueryString ["VesselId"]); Ship CurrentWell = Ship Reps Gateswest (QS); If (! String.IsNullOrEmpty (request.QueryString ["VesselId"])) {if (IsCurrentUserAdmin ()) {return true; // always return true to the administrator} and {if (current Person.Vessels.Contains (Current Vessel)) {return true; } And false return; True} true; } For example, I am currently debugging currentPerson.Vessels a Icollection & lt; Vasel & gt; Out of 3 ships produced; VesselId which is the Weissel ID of currentVessel but the match is failing and returning the method false . I have read some of the same questions and MSDN...

c# - Reverse orientation of points in a Multipoligon -

There is no specific criteria such as country state and city you find famous text defining a polygon or multiply Area. You can have an example. Now I am trying to insert this data into a SQL Server database using C # and EF 6.1. > code will be something like this: Take a polygon string from the service 1 and add it to a variable: var polygon = GetPolygonFromService (country, state, city ​​); and then use it to insert in DB: using (datacentext data = new dativientx ()) {var location = New location {country = country, state = state, town = city, geography = dbgoffograph Formtext (polygon)}; Data.Locations.Add (location); Data.SaveChanges (); } Now when I do this, I get an error: The forthcoming Data Data Stream (TDS) Remote Process Call (RPC) Protocol Stream That's wrong . Parameter 4 ("@ 3"): The supply value data type is not a valid example of geography Check the source data for invalid values ​​An example of an invalid value is the numerical t...

javascript - Call script function in html body tag -

Here I try to call a script in body tags but it does not work .. and when I see it here Click on the website, display the image as a popup without any here is the code When I debug, the image is not displayed as a pop up. So where's the fault? And how to solve it? Popups are upset, so browsers will open them in response to just one user action (such as on a button) Click) document loading (i.e. load event that you refer to with the onload attribute) is not user action, therefore block call on open is . When popups are allowed then specific rules are available. You also have a syntax error in your code (although it may be a transcription error when you made the question) you }; before & lt; / Script & gt; are missing from. It should be shown in the developer tool in your browser.

javascript - Tornado doesn't send Ajax response to client -

After submitting the form, the Tornado server does some tests and sends a response to the client, which should show in the current page. Warning . An empty HTML page is provided instead with a Jason response, but not a as a warning the current page where the form was submitted Was there. When submitting the form it is sent via post to / dh (DataHandler) this is Jquery: / P> $ Post ("/ dh", function (data, status) {warning ("data:" + data + "\ n status:" + status);}, "json"); Turtado code: Class database: Behinddaler: Deaf Post (self): # Checks are made with the form data received dupinfo = {'Tel': Duptel, 'name': dupname} self.write (json.dumps (dupInfo, default = json_util.default)) self.finish () How to Return After the "Warning" statement, add return false . This disables the default handling of the browser of the POST event. The default behavior of the browser is to navigate to ...

vb.net - Need to catch if a string has a number in it vb -

I want to add a catch statement, to see that a number in the target is inputted in it. console.light line ("enter the word that you want to guess:") targetWord = Console.ReadLine If you want to know that the given string contains digits that you can use: dim input = Console ReadLine () 'For example: abc123def Dim dimensions = input.Where (if you want to ask the user for a new string, unless that number enters without any: P> while digits.Any () input = Console.ReadLine () Ncon = input.Where (address ending four .IsDigit) while

sql server - Best practice for dynamically building variable length IN SQL clause in C# -

Recently I found myself in C #, some SQL is doing. It really is not my area of ​​expertise. Some code is written which looks very ugly, and failed to find a better solution. Here, many answers present SQL injection risks, and essentially I am doing one or the other in the same way. The situation is, I have a form that a user provides a list in a form of store ID. When they click on a button, CRV export will be generated using those stores which provide the exclusion criterion for the query. The way in which I have completed it is setting my SQL string as a constant, then using a string builder in @ x in the IN clause Dynamically attach. This code looks pretty bad, but uses a quick snippet to better explain. For example, the SQL query is that private readonly string _SELECT_UNEXPECTED_TOTES = "select table where the table is stored."; I do the following (store is an array of strings, SB string builder is): // Get enough space for all stores Var sqlParams = New...

java - Get all IP addresses from a given IP address and subnet mask -

In Java, I need to get a list of all IP addresses contained by an IP network. For example, having networking: 192.168.5.0/24 then the output will be (192.168.0.0 ... 192.168.5.255). I could think of the following method but it looks dirty, is any great way? There is no function in InetAddress category. Obtain Network IP from Input IP and Subnet Mask Mask = (tall) (0xffffffff) The function 'getLongfromIp' contains the code - hosted by subnet mask MaxRange = (long) 0x1 Get the address of Convert the IP from above step to octet string. Ps: I'm sure IP addresses will be in IPv4 only. To answer your question, resolve Apache commons.net library Import org.apache.commons.net.util is to use. ; SubnetUtils Utility = New Subnetuits ("192.168.1.0/24"); String [] allIps = utils.getInfo (). GetAllAddresses (); // appIps will have all IP addresses in the subnet Read more:

javascript - querySelectorAll not working in IE8? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब यह गैलरी मैं हूँ यानी 8 के साथ समस्याएं हैं: यह वह पंक्ति है जहां जेएस टूटता है: var x = this.grid.querySelectorAll ('li: नहीं (.grid- Sizer) '); लेकिन मुझे लगता है कि समस्या बहुत पहले शुरू होती है। जब मैं आईजी 8 के डेवलपर टूल्स का उपयोग करके इसे डिबग करने की कोशिश करता हूं, तो स्थानीय टैब में "यह" नहीं है। इंटरनेट एक्सप्लोरर 8 का समर्थन करता है, लेकिन नहीं। हमने इंटरनेट एक्सप्लोरर 9 में उत्तरार्द्ध के लिए जहाज का समर्थन किया था, लेकिन अगर आप इसे 8 में उपयोग करना चाहते हैं तो आप jQuery का उपयोग करना बेहतर होगा, जहां से संस्करण 1। IE 8 का समर्थन करने की आपकी इच्छा से , JQuery के 1.x संस्करण को डाउनलोड और उपयोग करने के लिए सुनिश्चित करें।

powerview in sharepoint 2013 app -

We need to embed PowaryWeb and PowerPivot table in SharePoint 2013 app. I'm new to sharepoint app development. Directed with reference articles. Thanks MM First make sure you have an enterprise version of SharePoint After that you need to configure the SharePoint BI features that need to set the configuration on active BI features to SQL / SharePoint, possibly Kerberos configuration etc. You will receive information about how to set up / configure bilateral facilities. You will receive step-by-step instructions.

ruby - Rails - How can I display one nested attributes (Solved) -

I have a new problem, I create a web where I have uploaded several indexes, using nested attributes and polymorphic tables By doing, I want to show only one image .html in my index, but I do not know how. But I am new to the rail photography RB class photography & lt; ActiveRecord :: Base Valid: Title ,: Description, Attendance: True_key: User has_many: as images, as: imageable, dependent: delete accepts_nested_attributes_for: images ,: reject_if = & gt; Lambda {| One | A [: img_str] .blank? } ,: Allow_destroy = & gt; True end image.rb class image & lt; ActiveRecord :: Base is_to: imageable, polymorphic: correct mount_uploader: img_str, AssetUploader end index.html.erb & lt;% of photos For @ photo% & gt; & Lt;% = link_to photo.title, photography_path (photo)% & gt; & Lt;% photo.images.each do | Picture | & Gt%; & Lt;% = images.img_str% & gt; & Lt;% end% & gt; & Lt;% end% & gt; For the method I show ...

c# - Create Dynamic Delegate WCF TransparentProxy -

I am trying to write the general method that all wcf proxy methods go through this method and through the cache return value Go. Generic method Public T service service & lt; T & gt; (Rep. Della, Object [] args) {// Caching Logic // // // If the price is cached, then return it. Otherwise call the app site. // end caching logic return (t) del.DynamicInvoke (args); } To achieve this, I would have to dynamically make a representation with the help of the following link In short, what do I want to channel The method is to create the representative for IFooService.Bar (String Ultimate). // wcf contract public interface iFooService {int bar (string absolute); } // sample proxy public class Foo {public int bar (string absolute) {IFooService channel = zero; Full result; {// We believe that the wcf channel made here is the Channel Factor & lt; IFooService & gt; ChannelFactory = New Channel Factor & lt; IFooService & gt; (Binding, remote address); IFooSer...

php - Close mysqli database connections after AJAX calls -

html> I am handling my AJAX calls in an ajax.php database using the mysqli_connect () function Connection establishes and right of connection by using the mysqli_close () function before resonance and exiting. Even so, connections seem to be open, after a certain number of AJAX calls, I am getting 'several connections' error. So now I am thinking, what is the best way to ensure that all my DB connections are closed after each call? Is there any way to check how many connections are currently open to troubleshoot this problem? ajax.php: $ con = mysqli_connect ("localhost", "my_user", "my_password", "my_db"); // .. some PHP code ... 'Result' echo; Mysqli_close ($ thief); Go out(); this can help you: $ Connection = new mysqli (.....) // stuff $ thread = $ connection- & gt; Thread_id; $ Connection & gt; ($ Thread) to kill; From: This function is used to ask the server to kill a MySQL thread speci...

android - Launch app in background, start it to run over Cellular and collect data -

I'm new to Android and I'm trying to launch an app in the background (such as SpeedTest) and click it Ask them to start it and move on to the background and return data results as output. I hope all this to be in the background. I have written that the code launches the app in the foreground private static final string TAG = "MyService"; @Ivarried Public Eye on On Bind (intro ARG0) {return tap; } @ Override Public Wide On Creativity (Toast) Make Text (this, "Congratulations! My service is made", Toast. LNNHHLOG). Show (); Log D. (Tag, "On Crate"); Intent = getPackageManager (). GetLaunchIntentForPackage ("org.zwanoo.android.speedtest"); If (intent! = Zero) {/ * We have found that activity starts activity now / intent.addFlags (Intent.FLAG_ACTIVITY_NEW_TASK); StartActivity; } And {/ *] bring the user to the market or let them choose the app? * / Intent = new intent (Intent.ACTION_VIEW); Intent.addFlags (Intent.FLAG_ACTIVITY_NEW_TASK...

Fortran OOP Operator (+) -

I am coding the operator (+) used in a vector module, and I am getting the following error inside I Calling the operator it raises another function in error. gfortran -o build / lib / vectors.o -c -ffree-form -g -J./build/lib lib / vectors.f lib /vectors.f: 804.7: vd = Ud + scald 1 error: Operation of binary numerical operator '+' (1) class (vector) / real (4) scone: *** [build / lib / vector. ] 1 scone error: ended due to building errors Here is the code. I am unsure if the problem is that how binding is due to declaration. Module vectors are not any type: Vector Real: X Real: y Real: z process is included: Vecp = & gt; Vector_add process :: vecpscal = & gt; Vector_plus_integer, & amp; Vector_plus_real process, pass (ub) :: integer_plus_vector process, pass (ud) :: real_plus_vector generic :: operator (+) = & gt; Vecp, Vecascal, & amp; Integer_plus_vector, & amp; Real_plus_vector end type vector function includes vector_add & amp; (...

java - How can I allow concurrent writes on different parts (with different keys) of a guava multimap -

I am using Google Guava Multimode and would like to know whether permission to write concurrently in different parts of the map is possible Or do I have to synchronize all access? When I say different parts, I mean that different key pairs are added to the value. Is the following sample code correct? class key {} class value {} private multimap & lt; Key, value & gt; Multimap = Hashmiltmap.Create (); Private Final Striped & lt; Key & gt; Locks = Stripped. Redroit Lock (100); Write public null (last key key, final collection & lt; value & gt; value) {lock lock lock = lock.get (key) .writeLock (); WriteLock.lock (); Try {for (value value: value) {multimap.put (key, value); }} Finally {writeLock.unlock (); }} Public collection & lt; Price & gt; Read (Last key) {lock readLock = locks.get (key) .readLock (); ReadLock.lock (); {// archive value} Finally try {readLock.unlock (); }}

statistics - Multiple boxplots in SAS -

Image
I have this data set and I want to show all the 9 plus plot plots on the same plot They are in different scales Can you please tell me what is an easy way to do this? I'm a novice SAS user, so I appreciate some advice. Raw data; Input id $ family distortion kandan maize sorg millet bull cattle dishes; Datalines; FARM1 12 80 1.5 1 3 0.25 2 0 1 FARM2 54 8 6 4 0 1 6 32 5 FARM3 11 13 0.5 1 0 0 0 FARM4 21 13 2 2.5 1 0 1 FARM5 61 30 3 5 0 4 21 FARM6 20 70 0 2 3 0 2 0 3 FARM7 29 35 1.5 2 0 0 0 0 FARM8 29 35 2 3 2 0 0 0 FARM 9 57 9 5 5 0 4 5 2 FARM10 23 33 2 2 1 0 2 1 7 FARM11 13 9 0.5 2 2 0 0 0 FARM12 15 9 2 2 2 0 0 FARM13 27 3 1.5 0 2 1 0 0 FARM14 28 5 2 0.5 2 2 5 5 FARM15 52 5 7 1 7 4 4 3 3 5 FARM16 12 10 2 2.5 3 0 0 0 FARM17 25 30 1 1 4 0 2 5 5 FARM18 5 3 1 0 1 0.5 0 3 FARM 1 9 45 30 4.5 1 1 6 13 20 FARM 20 6 7 1 1 1 1 2 0 5 FARM21 17 8 1.5 0.5 1.5 0.25 0 2 FARM22 22 6 3 2 3 1 3 2 2 FARM23 43 40 7 3 3 0.5 6 2 3 FARM24 66 36 0 0.5 5 5 0 0 FARM25 15 3 1 0 1.5 0.5 1 0 1 FARM26 26...

convert multi array into single array(java) -

Is it possible to copy data from multiple [] [] to single []?!? Dual multi [] [] = {{1.0, 2.0}, {2.11, 204.00, 11.00, 34.00}, {66.5,43.3,18 9.6}}; to double single [] = {1.0, 2.0, 2.11, 204.00, 11.0, 66.5,43.3189.6} double [] single = array . Stream (multi) // creates a stream & lt; Double [] & gt; .flatMapToDouble (Arrays :: stream) // merges the array into a double stream .toArray (); // collects everything in a double [] array

java - How to reuse the httpservlet request -

Hello there is a request continuously to do anyway? In my web application, I need to check how the user is checked in the check box, I get this value using Request.getPart ("Convert File"); After this I need to upload a user's file, but when I parse the request I get an empty value because the request has already been used. Is there any way around this issue? Like saving the request? Any help would be appreciated. Use httpSession You can use an API such as: html session session = httpServletRequest.getSession (wrong); Session.setAttribute ("key", "value"); And when the user revisits later, you can check the same attribute like: session.getAttribute ("key");

javascript - Accessing object data with forEach, without the use of forEach's thisArg? -

I am studying and trying to get a better understanding of "this". Although I have something that is confusing me: I may not have to use object data (in this case of "user" object) without the use of "this" argument of the unit I can get information like this: var user = {tournament: "owner", data: [{name: T. Woods ", age: 37}, {name:" p. Miklson ", Age: 43}], clickhandler: function () {this.data.forEach (function (person) {console.log};})}} User.clickHandler (); //" t. Woods "," p. However, "undefined" has been brought down: console.log (user.data .name); or this "this. User is undefined "brings: console.log (this.user.data.name); What am I missing? Is not possible for "backgrac" and, for each, use access object information without the use of this agri? Or perhaps, what is written as long as "person"? : If the thisArg parameter for / Code>...

html - Center UL but keep text left aligned -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब यहाँ मैं क्या हूं प्राप्त करने का प्रयास करते हुए, पाठ केंद्रित होता है, लेकिन एक ही बिंदु से शुरू होता है: मुझे क्या मिला: पाठ अच्छी तरह से केंद्रित है, लेकिन मैं कैप्शन एक बिंदु से कैसे शुरू कर सकता हूं? (जैसे 1 छवि) & lt; ul class = "_ unstyled_ _left _" & gt; & Lt; li & gt; & Lt; a href = "#" वर्ग = "- अवतार _ राउंड_ सामान्य" & gt; & Lt; आंकड़ा वर्ग = "- थंबनेल" & gt; & Lt; img src = "https://s3.amazonaws.com/uifaces/faces/twitter/krystalfister/128.jpg" alt = "क्रिस्टस्टिस्टर" & gt; & Lt; / आंकड़ा & gt; & Lt; / a & gt; & Lt; p वर्ग = "नाम" & gt; रैंडम गाए & lt; / p & gt; & Lt; p वर्ग = "अंक" & gt; 9 876/10 000 अंक & lt; / p & gt; & Lt; / li & gt; & Lt; li & gt; मुझे नफरत है & lt; / li & gt; & Lt; li & gt; धत् तेरे &...

mysql - SQL top records based on two tables relations -

There are three main items I am storing: articles, organizations, and keywords. This makes 5 tables: article {id} entity {ID, name} article_entity {id, article_id, entity_id} keyword {ID, name} article_keyword {id, article_id, keyword_id} I would include would like to receive all articles including top X keyword + institutions I top X keywords with a simple group entity_id / keyword_id or can get institutions SELECT [entity keyword | _ID, in relation to the number (*) as num_frame_nature_group by entity_id limit the number Diissi by ORDER 10 headers and keywords I will get to all articles? This was what I had imagined, but I know that it works by the organization because of the group, because this article has come back. SELECT * FROM where the article is present ([... where the article is mentioned in the top X entities ..]) and the current ([... where the article is mentioned in the top x keyword is ..]); If I believe that you keep the purpose of the q...

powershell - make Restore-DfsrPreservedFiles continue after long path error -

मैं 100GB की फ़ाइलों को पुनर्स्थापित करने के लिए पावरशेल्स पुनर्स्थापना- DfsrPreservedFiles प्राप्त करने की कोशिश कर रहा हूं DfsrPrivate \ PreExisting फ़ोल्डर मेरे पास कमान सभी काम हो गया है और यह तब तक काम करता है जब तक कि यह एक फ़ाइल को हिट नहीं करता जिससे पथ नाम बहुत लंबा त्रुटि हो। इस बिंदु पर 99.9 जीबी 1 फ़ाइल के साथ बहाल है जो मैं बैकअप से प्राप्त कर सकता हूं, बाद में कोई समस्या नहीं है। मुझे समझ नहीं आ रहा है (यदि संभव हो तो) इसे 1 या 2 फाइलें छोड़ दें साथ समस्याओं और चलते रहना।

Django-storages + django-pipeline + gzip -

I would like to chant my static assets with GSIP with DJEG and SA3 Mixes from the Digestow Storage, and gzip files Static / Compressed Template Tags Is It Possible? I do not see online in Docs or on Compredited versions service. Yes it is possible see the Gzip Compression and the documentation on the following section. Also see this question:

java - Is free memory consuming less power on android devices? -

For example, we have two identical Android devices that have 2GB of RAM each (energy-dependent memory). The device is busy by running 1: 1GB RAM applications and 1GB RAM is free. The device is busy with running 2: 2 GB RAM applications. Imagine running CPU apps or just using a little bit, the memory remains unchanged (do not write repeatedly). Will device 2 cause much damage to the power of the device (per 0% battery charge)? Please explain this problem to me, I'm really keen about java-android memory power usage. After The simple answer is: How it recurs at the options of Can afford less electricity. : The most realistic scenario is that more storage of disk / flash card caches hit more than available memory and there is less access to geo power devices. More memory means less incentive to run GC and it saves your CPU time (and if your system uses swap / zram, it may cost more, most phones do not swap). You probably save some power here. The second option is...

Xcode 5.1 iOS simulator 7.1 black screen issue ( dyld: Symbol not found: __dealloc ) -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब मैं अपना प्रारंभ नहीं कर सकता आईओएस सिम्युलेटर 7.1 के बाद मैं अपने एक्सकोड को नवीनतम संस्करण 5.1 में अपडेट कर रहा हूं, और ओएस एक्स से 10.9.5 तक अपडेट करता हूं। जब मैं बिल्ड और रन शुरू करता हूं, तो यह दिखाता है कि बिल्ड सफल है, कोई समस्या नहीं मिली है। लेकिन डिबग आउटपुट यह संदेश dyld:। प्रतीक नहीं मिला: __dealloc से संदर्भित: / Applications / Xcode: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation में अपेक्षित .app / सामग्री / डेवलपर / प्लेटफार्म / iPhoneSimulator.platform / डेवलपर / SDKs / iPhoneSimulator7.1.sdk / usr / lib / /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation में libobjc.A.dylib ( Lldb) dyld_dial_fatal_error: 0x8fe440b4: int3 0x8fe440b5: nop कोई भी इस मुद्दे के कारण पता है? मैं अपना सिम्युलेटर तैनाती करने के लिए आगे नहीं बढ़ सकता, और अब नहीं कहां पता है मेरे पर्यावरण का संदर्भ नीचे दिया गया है: मैक एलेन: ~ एलेन $ xcodebuild -showsdks ओएस एक्स एसडी...

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

Using a form submission on an embedded iframe , the customer downloads a compressed log file Requested. The request was sent to the server, which is the compressed log files, perform some database operations and returns a compressed file. After just 2 minutes, 504 gateway time-out server did not respond timely message on browser net panel How to fix this error? The log files were taking a long time to compress, and timeout was set to 2min The error was fixed by extending the file file: # # timeout: The number of seconds before getting the time out. # # # Timeout 120 timeout 600

maps - Yandex tiles wrong? -

Image
Is Yandex map tiles wrong or am I missing something? They take an offset compared to all other map providers (e.g., Google, Bing) Google: Bing: Use: Yandex: LE: I found out that Yandex is using another projection system ... but I still get stuck The yandex is using elliptic mercanture launches, unlike Google and OSM using spherical projection. Though they are using the elliptical coordinates (WGS84). Yandex Maps API v2 or higher allows you to work in any launcher or even combine layers in different estimates. See the first example.

linux - checking if a string is a palindrome -

I'm trying to check if a string is a pilot in a bull. Here is where I came with: #! / Bin / bash read -p "Enter a string:" string if [[$ string | Rev == $ string]]; Then echo "Pyrenothrome" Fi , now resonate $ string | Rev gives the following string, my argument was in condition for this if . He was not doing so well So, how can I store "return value" in a variable from rev ? Or use it directly in any condition? without another change inside and unnecessary Excerpt: : #! / Bin / bash read -p "Enter a string:" if the string [[$ (REV

vbscript - QTP or selenium or something else? -

I'm partly a QA Automation / partially web developer, mostly QTP / VBScript for automation I am moving forward in the form of automation architects on a new project soon. I have a holistic approach and idea for the automation framework, that I want to develop, ready in my mind, I need some help on deciding on automation equipment. I would like to use the QPP because I will be able to use the full library for my current project less level tasks. One thing where I feel restrained with QPP 'Cross Browser' Support, I think IE can be best targeted only with QTP, Firefox Support for Chrome / Chrome is still a little limited. Also, multiple browsers do not allow QPP testing at a time. (I'm probably mistaken, the latest QTP version is probably supporting it, and if so, I would appreciate it if you can share your experience) Our goal applications will be mostly web applications and web platform targets IE / Chrome / Firefox / Safari / Opera So, I'm thinking of...

unit testing - Running a test using Shims on a Visual Studio 2013 Test Agent -

I have found various iterative questions in many websites, though by now I have nothing I did not get the full answer which worked, I have just installed a lot of Visual Studio Test agents which they all conduct and test the unit tests which we are initially planning to run on them. . However, when I am checking a unit tests, it is failing on the line: using (ShimsContext.Create ()) , Stack With trace: Result Message: Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: COR_PROFILER_PATH and COR_PROFILER failed to resolve Profiler Path from environment variable. After reading some other posts I installed Visual Studio 2013 on the testing agent and confirmed that it will run the test locally. I then used COR_PROFILER_PATH on my machine, which was installed on it: "C: \ Program Files \ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ CommonExtensions \ Microsoft \ IntelliTrace \ 12.0.0 \ Microsoft.IntelliTrace. Profiler .12.0.0.dll ". ...

fopen - input from keyboard to a text file in c?? The Code compiles but *EOF* don't works? -

#include & lt; stdio.h & gt; Int main () {FILE * pFile; चार च; PFile = fopen ("जी: \\ IJLAL.txt", "w +"); जबकि ((ch = getchar ())! = EOF) putc (ch, pFile); fclose (pFile); वापसी 0; } क्या आप समस्या को निर्दिष्ट कर सकते हैं ??? मैं फ़ॉपन फ़ंक्शन के लिए पूरी तरह से नया हूँ और कृपया मुझे इस चीज़ के साथ मदद करें getchar () फ़ंक्शन एक देता है int मान, नहीं एक char । इसे एक char वेरिएबल में मजबूर करके, आप इसे EOF का पता लगाना असंभव बना रहे हैं। बस char ch से int ch और यह ठीक काम करेगा। * असल में, आपको शायद फाइल नाम के साथ समस्याएं होंगी। क्या आप सुनिश्चित हैं कि इसमें एक स्थान होना चाहिए? और क्या आप जानते हैं कि \\ को एक एकल बैकस्लैश वर्ण के रूप में एन्कोड किया गया है?

condition - Regex to apply two lookbehind criteria -

I have a list of lowercase words on different lines, I want to match those lines in which the letter 'R' Where 'E' (er) is not before 'FO' (for). Here is a sample list: These are the words that I want to match: rejected Forrest fourteen These are two regexes, each half of what I want to do: ^. (* ((? & Lt;! E) r). *) $ ^ (. * (R (? Lt ;; fo) r). *) $ 'Something First match of all words except '; All other words except 'fortnight', so I want the words to match. Although in those words which are 'for' and 'er', any other matches with 'r' also. Applying a regex after the second fails to eliminate false positives. How can I add two regexes with another condition, so that both are applied in an expression? You use a simple change ^ \ w * (? & Lt;! E | fo)? For example, http: What does this do? (? & Lt;! E | fo) claims that regex to e or fo not defined by match character...

groovy - How to set the build result when executing on the slave -

I have installed the Jenkins Groovey plugins either under Master or slave conditions, after all, I want to execute in context. However, since you can only access the API available in slave.jar, now I stuck with the way to set or change the result of the current build. Based on whether or not a created file is in zero size, it should have an effect whether the build is marked as unstable or not. So, walking on the slave, I have access to it through the file: New file ("/ path / to / built / file / on / the / slave") I can check its size and decide that the build should be marked as volatile. However, without API access without API.Model.Sure, how do you fulfill it? General GRI manager is not available through the API plugin which I am using either, so that you should use the original API. Alternatively, instead of destabilizing the build, is there a way to set up a shell script, unsuccessful? It is a shame that none of the shell script plugins provide exit code a...

c# - Entity Framework not using connection string in app.config -

मेरा त्रुटि संदेश बताता है अंतर्निहित प्रदाता ओपन में विफल और InnerException बताता है कि डेटाबेस अनुरोध किए गए लॉगिन से नहीं खोल सकता। अजीब बात यह है कि मेरी कनेक्शन स्ट्रिंग त्रुटि में उल्लेखित की तुलना में एक अलग लॉगिन दिखा रहा है। मेरे ऐप। कॉन्फिग में स्पष्ट रूप से परिभाषित किसी से गलत कनेक्शन स्ट्रिंग का उपयोग करने वाला एप्लिकेशन क्यों है? कुछ सामान्य कारणों का कारण: 1) आप उस प्रोजेक्ट को अपने स्टार्टअप प्रोजेक्ट के रूप में उपयोग नहीं कर रहे हैं 2) आप कॉन्फ़िग में नाम से मेल नहीं खा पाए हैं & lt; कनेक्शनश्रेष्ठ & gt; & Lt; नाम जोड़ें = "YourContext" ... & gt; & Lt; / ConnectionStrings & gt; 3) आप इसे YourContext.cs में कड़ी मेहनत कर रहे हैं

shell - show n lines after a grep search -

I am listing files for a pattern in the content of files, however, after trying to display 5 lines after searching . I'm running it on a MacOSX shell I tried to do this grep-A5 'pattern' *. * Here I get the following output file name line 1 file name line 2 file name line 3 file name line 4 file name line 5 I just want the lines to be output and the file name will not be my ideal output file name line1 line2 line3 line4 line5 I also tried the following, but they did not work. grep -l 'pattern' *. * | Head-5 Head-5 & Lt; Grep -l 'pattern' *. * Any ideas on how to do this on the shell? If you want to leave the file names from grep in your output When you get multiple input files, you should use the -h option ( Additionally, gives the option -A5 ( If you have a grep GNU taste) you can use the - no-filename instead.) Up to 5 lines of context around each match if you want the same as the good and the good Are but I...

python - Most efficient way to convert pandas series of integers to strings? -

.type (str) is the most efficient way of changing a series of ints for a series of stars? It seems very slow, so I wanted to ask I tried some things and numpy Using fast: setup = "" import panda, numpy s = pandas.Series (numpy.random.randint (1,10, (100)) "" "Gt; & Gt; & Gt; Timeit.timeit ('s.astype (str)', setup = setup, number = 10000) 3.33058500289917 & gt; & Gt; & Gt; Timeit.timeit ('s.apply (str)', setup = setup, number = 10000) 3.572000026702881 & gt; & Gt; & Gt; Timeit.timeit ('s.apply (lambda x: str (x)), setup = setup, number = 10000) 3.821247100830078 & gt; & Gt; & Gt; Timeit.timeit ('s.values.astype (numpy.str)', setup = setup, number = 10000) 0.08432412147521973 As you can see, with numpy Accesing the array and astype calls are faster than 40x faster in the next fastest way.

vba - How to create dummy values and replace the original data in EXCEL -

Image
मेरे पास एक डेटा जैसा ऊपर है मैं B2 से J11 तक की कोशिकाओं पर तर्क परीक्षण करने के लिए एक वीबीए कोड लिखना चाहता हूं। यदि किसी भी बी 2 से J11> 0 पॉजिटिव है, तो मूल मान 1 बन जाएगा, अन्यथा यह 0 हो । अगर आप बस एक्सेल में कर सकते हैं, तो मुझे यह भी बताएं मैंने फ़ंक्शन की कोशिश की, यह केवल एक कक्ष के लिए काम कर सकता है। आप एक ऐसा सूत्र नहीं लिख सकते हैं जो सेल को जगह में बदलता है यह VBA की आवश्यकता होगी। यह मेरी पहली VBA पोस्ट है, इसलिए मैं विशेषज्ञों के किसी भी संकेत के लिए खोल रहा हूँ: उप बदलें () चयन में प्रत्येक सी के लिए यदि सी। वैल्यू & gt; 0 फिर सी। वेल = 1 एएलएसआईफ़ सी। वेल्यू & एलटी; 0 तब सी। वैल्यू = 0 समाप्त होता है यदि अगला अंत उप आप खोज / प्रतिस्थापित करते हुए 0 और 1 में भी बदल सकते हैं। डेटा हाइलाइट करें, फिर: * * - * के लिए 0 । खोज / प्रतिस्थापित *। * 1 के लिए।

java - ColdFusion 10 - CFHTTP - Random peer not authenticated on SSL calls (cacerts file updated) -

We have 9 ColdFusion 10 server running version 10,0,13,287689 We used Java version by ColdFusion The correct certificate has been added to the cacerts file. Our CFHTTP SSL calls will work properly for a while, then suddenly they will not begin to certify the colleague. The agian will not work until the ColdFusion Freelance recycled until they fail again. There is no information in Coldfusion-out, coldfusion-error, http, or Cold Fusion Log exceptions in relation to the exception. Besides, just because CFHTTP HTTPS calls seem to fail at a coldfusion frequency, does not mean they will fail on the other. Our ColdFusion server has many websites that have separate websites. For example, for example, an instance can not certify co-worker, and the other will work correctly using the same Java version and cacerts file. Then, the recycling of the coldfusion frequency, which is not working, will solve the problem and the CFTTP call will not be authenticated by the co-worker. This problem ...