Hi,
I want to call a wrapped C++ function from a python script which is not returning immediately (in detail: it is a function which starts a QApplication window and the last line in that function is QApplication->exec()). So after that function call I want to move on to my next line in the python script but on executing this script and...
I'm using a bash script to automate a set of tests for some other code. The script looks like this:
for i in $(seq 1 10)
do
cd ~/BuildBot
rm -rf program # Remove the directory each time to test installation
git clone /localrepo/
cd ~/into/program
python2.6 setup.py build_ext -i
cd tests
python runtest.py >& ~/into...
I've been building a site. At some stage I noticed that IE display was a little broken and Chrome had all but rendered nothing but the body tag (empty), and FF all looked good.
After throwing my keyboard around the room and bashing my head against my mouse, I discovered the problem. I had left (don't ask how or why, must have been som...
Does anyone know what is := for?
I tried googling but it seems google filters all symbol?
I know the below is something like checking if the variable HOME is a directory and then something is not equal to empty string.
if [ "${HOME:=}" != "" ] && [ -d ${HOME} ]
...
I am writing a script that will look in a custom reports directory, copy it to a working folder, along with the data files that it will look at, runs the report, zips the newly created files, and uploads them to another server.
The problem that I'm running into is that I don't know what the newly created files will be called at all (n...
Really basic question I'm sure for some of you Java heads out there.
I have a list of java files and jars that are required.
On windows to build I have this batch file
javac -cp .;opencsv-1.8.jar;mysql-connector.jar -source 1.4 -target 1.4 *.java
jar cvf cup.jar *.class
del *.class
If I want to do the same thing on mac how would a ...
For jobs that must be done repeatedly and consist of things like moving files around and appending text is bash scripting still the way to go? If I currently have only a small amount of bash skill should I invest time in learning to do it well, or should I use something else like Perl or Python?
...
I want to enhance an application with scripting support like many other applications have, e.g. MS Office using VBA or UltraEdit using JavaScript.
Which libraries exist for C# / .Net (and which language(s) are they supporting)?
...
Hi,
I would like to script a build of a virtual machine from a base image, with a number of files and folders being copied across to the target machine, and some software also installed on it. Is this possible? Which technology is best suited to this - VMWare, Virtual PC/Server or Virtual Box? The solution has to run on WS2003 or WS2...
I've a text file with 2 million lines. Each line has some transaction information.
e.g.
23848923748, sample text, feild2 , 12/12/2008
etc
What I want to do is create a new file from a certain unique transaction number onwards. So I want to split the file at the line where this number exists.
How can I do this form the comma...
Dear Friends,
I want to build some functionality using VBA / .NET or Java API in Business Objects (WEBI) to submit 500+ WEBI reports to refresh from the command line and the same time I want to return a completion status code. And I need to export them in Excel and PDF format at a particular server using FTP or something related to tha...
So this is the scenario.
I have
<target name="test">
<property file="blah"></property>
<exec dir="" executable="trast.exe" resolveexecutable="true" spawn="true">
</exec>
</target>
<!-- So now I have the second target that uses Return value from first target -->
<target name="test2">
<property file="blah"></property>
<ex...
When I forward an email in Pine it goes through an outgoing filter script that I can specify. But not when I bounce an email. I don't care about literally filtering my bounced messages but I want something programmatic to happen when I bounce a message. (This is for a hack to implement an email snooze feature where you can say "make th...
Screen is amazing, of course, but I don't want to have to think about it. I often ssh to a machine, start doing a bunch of stuff, and then think "gosh, I wish I had thought to start a screen session before doing all that so I could reconnect to this from home later".
I'd like to have screen automatically started whenever I log in to a ...
f:\i>move foo bar dir
The syntax of the command is incorrect
help move says:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
This seems to imply multiple arguments. So how can I give multiple arguments to move?
...
In a Java program I'm invoking a user-defined JavaScript program:
File userJSFile=...;
javax.script.ScriptEngineManager mgr=new ScriptEngineManager();
javax.script.ScriptEngine scripEngine= mgr.getEngineByExtension("js");
Object result=scripEngine.eval(new java.io.FileReader(userJSFile));
Now I would like to use 'result': how can I h...
I have a nightly executable that will run on a windows or linux server that will be downloading information from various web sources and one of those sources contains a JSON response. This executable will download the information and connect to a SQL server database to update the appropriate records.
I come from a C#, windows programmi...
Is it possible to INCLUDE other mysql scripts in a composite script? Ideally I do not want to create a stored procedure for the included scripts... For larger projects I would like to maintain several smaller scripts hierarchically and then compose them as required... But for now, I'd be happy to just learn how to include other scripts.....
Hi,
The bus company I use runs an awful website (Hebrew,English) which making a simple "From A to B timetable today" query a nightmare. I suspect they are trying to encourage the usage of the costly SMS query system.
I'm trying to harvest the entire timetable from the site, by submitting the query for every possible point to every poss...
Hello,
I have a method that looks like this on Java:
public void myMethod(Object... parms);
But I can't call this method as expected from the scripts.
If, in ruby, I do:
$myObject.myMethod(42);
It gives me org.jruby.exceptions.RaiseException: could not coerce Fixnum to class [Ljava.lang.Object
If I try the following in Javascrip...