Posts

- Where Developers Learn, Share, & Build Careers

I am trying to use msys.bat in ProcessBuilder in java. When I run a .bat file with my program, the following error occurred: "rxvt.exe or sh.exe binary - can not be canceled." Press any key to continue ... " Here is the code, processbilder MSIS = new processbilder ("C: / MMSIS / 1 / MMS.Bit", "/ c", "find" c: / user / dan g / Desktop / hello \ ""); Process p = Msys.start (); String line; BufferedReader r = new BufferedReader (new InputStreamReader (p.getInputStream ())); While ((line = r. radline ()) = null {}. System.out.println (line); } R. Close (); The goal is to compile some of my projects. The command is just a test for a result, not what I want to do. Thanks for the help! .bat files are their own and those called Windows Command Processors, cmd before your bat file Do not forget to load the Windows Command Processor also .exe processbilder MSIS = new process builder ("CMD.exe", "c: / mmsi...

com - PowerPoint hanging on Application.Quit call -

यहाँ मैं चल रहा हूँ कोड है: MsoTriState readOnly = MsoTriState.msoTrue; MsoTriState बिना शीर्षक = MsoTriState.msoFalse; MsoTriState विद WOW = MsoTriState.msoFalse; स्ट्रिंग filePath; // कुछ फ़ाइल पथ pptx ppt.Application एप = नल; पीपीटी। प्रस्तुतीकरण = नल; पीपीटी। प्रस्तुति प्रस्तुति = नल; ऐप = नया पीपीटी। एप्लिकेशन (); प्रस्तुतियों = ऐप। प्रस्तुतियों; प्रस्तुति = प्रस्तुतियाँ। ओपन (फ़ाइलपाठ, केवल, बिना शीर्षक वाले, वाडोव के साथ); System.Runtime.InteropServices.Marshal.ReleaseComObject (प्रस्तुति); प्रस्तुति = नल; System.Runtime.InteropServices.Marshal.ReleaseComObject (प्रस्तुतियों); प्रस्तुतीकरण = नल; app.Quit (); // हंगिंग सिस्टम यहाँ.रेंटाइम। इंटरप सर्विसेज। मिर्शल। रीलीज कॉम ऑब्जेक्ट (ऐप); एप = नल; यह एक बहुत ही बुनियादी कोड है जो एक PowerPoint अनुप्रयोग को खोलता है और फिर उसे बंद कर देता है। हालांकि, किसी कारण से, यह ऐप.क्विट () कॉल पर लटका हुआ है। इसके अलावा, मुझे पता नहीं क्यों है, लेकिन अगर मैं उस रेखा की टिप्पणी करता हूं जहां मैं कॉमरेज़ प्रस्तुति देता हूं, यह लटका...

python - Django Tastypie not Updating Resource with ManyToManyField -

Why not PUT my resource with a ManyToManyField update? curl - "frame", "favorites": ["/ API / API" - "V1 / organization / 1 /"]} 'http: // localhost: 8000 / api / v1 / Devices / 2 / I get this response: HTTP / 1.0400 Requesting Bad Date: Wed, 11 July 2012 22:21:15 GMT Server: WSGISR / 0.1 Python / 2.7.2 Content-Type: App / Jason; Charset = utf-8 {"Favorite": ["\" / api / v1 / Organizations / 1 / \ "is not a valid value for primary key."]} Resources are: class organization resources (ModelResource): parent_org = fields.ForeignKey ('self', 'parent_org', null = true, absolute = true, empty = true) class meta: permissions_mole = ['Go',] Authentication = APIAuthentication () field = ['name', 'org_type', 'parent_org'] filtering = {'name': ALL, 'org_type': ALL, 'parent_org': ALL_WITH_RELATIONS,} command = '' Name ',] q...

javascript - jqplot horizontal bars issue -

I am trying to set a horizontal bar graph using jqplot: Var plot1 = $ .jqplot ('graph', [gData], {seriesDefaults: {renderer: $ .jqplot.BarRenderer, renderer options: {bar direction: 'horizontal'}}, axis: {yaxis: {renderer: $ .jqplot rangex randerer, tick: gtixt}}}); This code works well with vertical bars, such as: var plot1 = $ .jqplot ('graph', [gData], { SeriesDefaults: {Renderer: $ .jqplot.BarRenderer}, axes: {xaxis: {renderer: $ .jqplot.CategoryAxisRenderer, ticks: gTicks}}}); But when I go to make it horizontal, then suddenly the lines do not make lines with ticks anymore. For example, for some ticks, there may be two or more overlapping bars and for some, nobody can be. Finally, there is an additional 'undefined' tick, which often overlaps repeatedly. Both jData and GTI are javascript arrays. Any thoughts? Edit: The undefined category is actually my own creation, but the problem remains unchanged. The reason for this doe...

scroll - Javascript scrolling and moving positions -

Window object in JS is a scrollable () method, which takes two arguments, what does those arguments represent? In this book where I am learning, "I want to score the number of pixels, but what does it mean to mean it means that when I pull the scroll bar on the right side, then the content will move beyond 10 pixels or If I have 10 pixels of material that I have specified or taken by the scroll down button or by whom? In addition, I can not try to understand () method and To understand the difference between the way of the trick as if they do the same thing, but if this is the case then what should be done to do two working points? The parameters in the pixels are the top and left coordinates. Scroll down and scroll-B exceptions are with the exception. Works in, snakes compared to the current working period Acting applies. The same rule applies to the implementation of the rule.

ofstream - overwrite a text in a file using c++ -

मुझे निम्न कोड में एक समस्या है: fstream s ("tst.txt ", Fstream :: बाइनरी); S.seekp (5, एफस्ट्रीम :: बेख); S.write ("परीक्षण", 7); इसे फ़ाइल में पहले पांच वर्ण रखना चाहिए, जैसा कि यह है, लेकिन ऐसा नहीं है! यह पूरे पुराने डेटा को त्यागने के लिए, मुझे पुराने डेटा को रखना होगा और फ़ाइल डेटा का सिर्फ एक ब्लॉक अधिलेखित करना होगा, और यह किसी भी एक बाइनरी मोड में होना चाहिए? अग्रिम में धन्यवाद। इसे आज़माएं: fstream s (" Tst.txt ", fstream :: binary | fstream :: in | fstream :: out); S.seekp (5, std :: fstream :: beg); S.write ("परीक्षण", 7); एक ओपनमोडा ध्वज निर्दिष्ट करके, आप अपने एफस्ट्र्रीम कन्स्ट्रक्टर कॉल में डिफ़ॉल्ट ओपनमोलोड को ओवरराइड कर रहे हैं।

r - Output of quantile to a data frame -

This is a fairly basic question, but has not seen good answers on different forums. Say I have a simple vector x = runif (10,1,4)> X [1] 3.292108 1.388526 2.774949 3.005725 3.904919 1.322561 2.660862 1.400743 [9] 2.252095 3.567267 & gt; Next I calculate some quantities, & gt; Z = Quantity (X, C (0.1.0.8)) gt; Z 10% 80% 1.381929 3.347140 & gt; I need this output as the data output, so I tried the following & gt; Y = data.frame (id = name (z), value = z) & gt; Y ID value 10% 10% 1.381929 80% 80% 3.347140 I think the "%" column has been repeated. Also when I try & gt; Y $ id [1] [1] 10% level: 10% 80% While I expect it to be just "10%" or 0.1. Any help appreciated. The names are only possibilities y will work so wrapping it in a function that is data .frame quantile_df