Posts

diff - difference between 2 commands in Unix AIX -

I need to find the difference between 2 CMD outputs. I got this CMD for Linux, but it is not working for Unix AIX server. diff & lt; (Cmd1) & lt; (Cmd2) Please let me know the same Unix command The instructions you are looking at are using process replacement , i.e. & lt; (...) part basically produces this cmd1 and presents it to such that the named file in the file system is defined by the diff . This is a feature of bash open, therefore, for a start you need to make sure that you do not use bash and sh are doing. If that does not resolve the problem, then you can try to download and install the latest bash for Ax. If that does not work, you need to use 2 temporary files, something like this (or using mktemp ): cmd1 & gt; Tmp1 _ $$ cmd2 & gt; Tmp2 _ $$ diff tmp1 _ $$ tmp2 _ $$ rm tmp? _ $$

python - Sending a signal from main function to a thread? -

I am using Pyqt4 to create a GUI in Python. To create a function, I want to send a signal to a thread from the main GUI. I know how to send a signal to the main GUI from thread, but I do not know the reverse thing. Besides, I want to pass a variable with the signal. Something like this: class main () def function value = 5 self (matte) (qtcore signal ("signal"), value) square thread ( QtCore.QThread def _init_ (self) Qtcore.QThread._init_ () self.connect (Qt.SIGNAL ("signal (int)"), self.run () def run (self, value): time.sleep ( Value) So every time the signal is transmitted to the main GUI, I want to integrate the function in parallel to the GUI without parallel. Any help would be appreciated, jet The object that will be transferred to the thread. You QtCore.QThread > Do not require more or less something like (Disclaimer: I'm more than C ++ Python): myThread = QtCore.QThread () testObject = YourClassWithSlots () # No paren...

ibm mobilefirst - Is there a bug with Worklight on IE 10? -

I am working with a business partner to work an insurance app on a Windows 8 tablet and some interesting practices Whom i can not understand I have been successful in re-using the problem by using a very simple case and it appears to be in the browser as well as being deployed as an app. Create a simple WL Hello World app with a JavaScript library Deploy it on the development server Launch the IE 10 browser and the WL console. Run this app using "Preview as a normal resource" and it should work fine (default is showing hello velocity) Click on F12 to launch To refresh the IE debugger and then browser, click the Show Console button to verify that there was no error a WL.Client.connect (.. .) add call wlCommonInit method ... in WL.Client.connect {{onSuccess: function (d) ) Eta) {console .log ("connection successful"); }, But failure: function (error) {console.log ("connection fails:" + JSON.stringify (err)); }}); Save the...

php - Can't update row in database -

I try to update a line in the database, but I can not do this Here's my SQL: $ sql = "UPDATE` voter_name_imount_tount` SET` volume` = quantity + 1 where` tender` = '$ nid' and nominee = '$ named'; " ; I suspect that the problem is here - and the nominee = '$ Named' ''; Because when I remove all functions and updates from the query correctly, please help. Try this: $ sql = "UPDATE voting_nomination_counter set quantity = Quantity + 1 Where Nadil = '$ Nid' and nominee = '$ Nominated' '' ';

pom.xml - Move a config file into etc folder(of Karaf) when a (Maven)bundle is deployed -

Whenever a bundle is deployed, then I want to transfer a CFG file to the Etc. folder of Carrefour. The Cfg file is done under src / main / resource. Tried the following in Pom, but it is not working. & lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-antrun-plugin & lt; / ArtifactId> & Lt; Version & gt; 1.1 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Step & gt; Posted & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; Run & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration & gt; & Lt; Functions & gt; & Lt; Echo & gt; Using env.test.properties & lt; / Echo & gt; & Lt; Copy file = "src / main / resources / test.cfg" tofile = "$ {env.KARAF_HOME} /etc/test.cfg" /> & Lt; / Functions & gt; & Lt; / Co...

saving file with download prompt with vbscript -

I am using VBscript to use IE to open a webpage - login - and some data is a file Saves in Why Use IE? - I can use VBScript to interact with the webpage - Webpage uses ajax to verify and sign in, so just using MSXML2.XMLHTTP Wont work After logging into the IE site, I have to direct it to the page I Want to save as a file, problem is returning this page JSON data (filename.json) - so open IE / save / SaveAs is the excitement instead of opening the page, so I can not save the page's data. The code is below. Any help is greatly appreciated set IE = WScript.CreateObject ("InternetExplorer.Application", "IE_") IE.Visible = true IE.Navigate "https: // Www.somesite.com "IE" with IE.Documentation .getElementByID "(Username"). Value = "myusername" .getElementByID ("password"). Value = "mysecret" .getElementsByName ("Login") (0). Wait till the end of the end. With 'IE' all OK, logged in...

javascript - when text focus (keyboard open) the fixed header hide(gone) -

In the text box of my phonegap application for Android (4.2.2) using jquery mobile (v 1.3.2) The focus is centered (the keyboard is open / show) that jquery mobile Fixed header is never visible again. Here is sample code. & lt ;! - Header start - & gt; & Lt; Div data-role = "header" id = "header" data-condition = "fixed" data-tap-toggle = "wrong" & gt; & Lt; H4 & gt; Stop card & lt; / H4 & gt; & Lt; Div class = "ui-btn-left" & gt; & Lt; A data-role = "button" data-icon = "check" id = "save" & gt; Lagre & lt; / A & gt; & Lt; / Div & gt; & Lt; Div class = "ui-btn-right" & gt; & Lt; A data-role = "button" data-icon = "delete" id = "stopcardcannel" & gt; Avbryt & lt; / A & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt ;! - End of header - & gt; You...