I'm trying to figure out how I could write an autocompletion algorithm for Lua, but since as with many scripting languages it lacks a static type system I think I need background compilation, but during background compilation it's easy to hit the halting problem so I was wondering if anyone has solved this sort of thing before, and what ...
I have an MSI-packaged application that is being deployed via Group Policy Objects (GPO) from a Windows 2003 Domain Server to all the XP client machines in the network.
This application reads two environment variables for its configuration (which server IPs to talk to) and it seems like we'd also want to push this configuration via a GP...
I need to set my classpath using all of the jars in a particular directory. Bash does it as follows:
CP_DELIMITER=;
for j in "$MY_HOME/javalib/*.jar"; do
if [ "$CP" ]; then
CP="$CP$CP_DELIMITER$j"
else
CP="$j"
fi
done
But "for" works differently in DOS, and essentially sends the command to the shell, but ...
I'm writing an install script in bash for an application on Linux.
This script copies some files into /usr/bin and /usr/share, so it needs to be executed by a root user, furthermore it makes an hidden directory in the $HOME dir for configuration files.
Here is the problem: if a normal user wants to install the program, he needs to be r...
Hi,
I'm playing WoW for about 2 years and I was quite curious about Lua which is used to write addons. Since what I've read so far about Lua was "fast", "light" and "this is great", I was wondering how and when to use it.
What is the typical situation where you will need to embed a script language like Lua in a system ?
...
I'm writing a ksh script and I have to run a executable at a separate Command Prompt window.
...
Hey all.
I want to ask about manipulating IE via Powershell.
My goal is to write script that will automatically perform some actions in the browser (on the client side – navigate to page, perform actions, measure time between responses, etc.)
I have this little thing:
$ie = new-object -com "InternetExplorer.Application"
$ie.visible =...
My page has an outside script that contains some jQuery. Most of it runs fine except this bit:
$(document).ready(function(){
alert('x');
});
That bit of code works fine when i run it inside the HTML page but not in the .js file.
I have no other library in the HTML, i do have a window.onload inside the HTML but if i remov...
As part of an intricate BASH script, I'd like to execute a command on a remote system from within the script itself.
Right now, I run the script which tailors files for the remote system and uploads them, then through a ssh login I execute a single command.
So for full marks:
How do I log into the remote system from the bash script (...
I'm a game's developer and am currently in the processing of writing a cross-platform, multi-threaded engine for our company. Arguably, one of the most powerful tools in a game engine is its scripting system, hence I'm on the hunt for a new scripting language to integrate into our engine (currently using a relatively basic in-house engin...
If I have a VBScript like...
inputControl1 = InputBox("Hello World")
WScript.Quit
How can a check box be created in there rather then the InputBox?
I know VBScript itself does not have a checkbox control like the InputBox, but is there some library I can use to do something like the following?
inputControl1 = CreateObject("library.c...
Where does Scripting ends and Programming begins? ActionScript 3 and JavaScript/JScript are so different...
...
I need a cmd script that deletes the first line in my text file.
the scenario is the following: I take a txt file from FTP everyday, the problem is that it comes with blank line at the top then the headers of the file.. Since I'm importing that file automatically into an access table, that blank line is causing me problems..
So I urgent...
I have a list of all email ids which I have copied from the 'To' field, from an email I received in MS Outlook. These values (email ids) are separated by a semicolon. I have copied this big list of email ids into Excel. Now I want to find the number of email ids in this list; basically by counting the number of semi colons.
One way I ca...
There's a requirement in my project to execute interactive shell scripts remotely through a web GUI. This means that stuff printed to the standard output of the script has to be made available on the GUI, and the user input has to be taken from the GUI and written to the standard input of the script.
My questions are
(a) Is this is a go...
So I've been running into a debate at work about what the proper role of a scripting language is in game development. As far as I can tell there are two schools of thought on this:
1) The scripting language is powerful and full featured. Large portions of game code are written in the language and code is only moved into C++ when perfo...
In the bad old days of interactive console applications, Don Libes created a tool called Expect, which enabled you to write Tcl scripts that interacted with these applications, much as a user would. Expect had two tremendous benefits:
It was possible to script interactions that otherwise would have had to be repeated by hand, tediousl...
I have a comma delimited file "myfile.csv" where the 5th column is a date/time stamp. (mm/dd/yyyy hh:mm). I need to list all the rows that contain duplicate dates (there are lots)
I'm using a bash shell via cygwin for WinXP
$ cut -d, -f 5 myfile.csv | sort | uniq -d
correctly returns a list of the duplicate dates
01/01/2005 00:22
01...
Exact Duplicates:
How to write a batch file to delete the files which are 5 days or older from a folder?
write a batch file to delete 6 days older files from a folder
write a batch file to delete 5 daya older files from a folder
How do I write a batch file to delete folders and files on a time basis?
How do I create a batch script that...
Exact Duplicates:
How to write a batch file to delete the files which are 5 days or older from a folder?
write a batch file to delete 6 days older files from a folder
write a batch file to delete 5 daya older files from a folder
How do I write a batch file to delete folders and files on a time basis?
write a batch file to remove the fo...