scripting

How to create a huge Informix database?

Can anyone provide me with a script for creating a huge database (for example, 2 GB of data) in IBM Informix Dynamic Server (IDS) version 11.50.FC4 on a Linux RHEL 64-bit machine? ...

How do I hook into a game and write a script to manipulate it?

Hey SO, I know this is a pretty open question but I was wondering how people go about writing scripts that will "play" a game, or manipulate it in some way. I had been thinking that I'd try to get a working AI to play a game for fun, but don't even really know where to start. Are there any good resources to learn this? What are good ...

Run Python CGI Script on Windows XP

I have a Windows XP machine that has Apache installed via a VisualSVNServer installation. I am . trying to get a simple python cgi script to run in my browser e.g. http://build.procepts.com.au:8080/hg/cgi-bin/test.cgi. However despite trying all the recommended approaches the browser only ever displays the plain text from the cgi scrip...

How do you use scripting language (PHP, Python, etc) to improve your productivity?

Hi, I'm a Delphi developer on the Windows platform, recently read the PHP tutorial at W3CSchools, it looks interesting. We all know scripting languages are very good at web site development, but I also want to utilize it to improve my productivity or get some tedious tasks done quickly, maybe some quick-and-dirty string/file processin...

script validation error

Hi, there is a script in my html tag <script type="text/javascript"> function setTaxDisplay(display) { window.location.href += (window.location.href.indexOf('?') > -1 ? '&' : '?') + 'taxInclude=' + display; } </script> When passed to validation It returns that the ampersand there isn't valid, but it's absolutely vital to the func...

insert a BLOB via a sql script ?

Hi, I have an H2 database (http://www.h2database.com) and I'd like to insert a file into a BLOB field via a plain simple sql script (to populate a test database for instance). I know how to do that via the code but I cannot find how to do the sql script itself. I tried to pass the path , i.e. INSERT INTO mytable (id,name,file) VALUE...

Visual Studio Script Documents macro for javascript

Hi I think it would be quite useful to have a macro where, I fire it on a javascript file in Visual Studio (the file being embedded into the dll) and it takes me to the corresponding file in Visual Studio Script Documents. I doubt anyone has written one (nice if you have :-)) but I bet theres something similar out there. So the que...

compile a single ASP.NET (.aspx) page from the command line

I have a Perl script that calls aspnet_compiler.exe to compile a large ASP.NET website. The problem is that it takes very long to run. Is there any way to compile just a single .aspx file from the command line? (I think that would suit the needs of my script) It seems that all aspnet_compiler.exe can do is compile at a directory level...

Is there a way to make python become interactive in the middle of a script?

I'd like to do something like: do lots of stuff to prepare a good environement become_interactive #wait for Ctrl-D automatically clean up Is it possible with python?If not, do you see another way of doing the same thing? ...

Running a python script on all the files in a directory.

I have a Python script that reads through a text csv file and creates a playlist file. However I can only do one at a time, like: python playlist.py foo.csv foolist.txt However, I have a directory of files that need to be made into a playlist, with different names, and sometimes a different number of files. So far I have looked at cr...

Pros/cons of embedded scripting environments?

There are several scripting environments available for .NET applications (e.g.this post). My question is, what are the pros/cons of using each of them? Examples include (but not limited to) PowerShell IronPython Lua JavaScript I am trying to decide which scripting tool to use in scientific applications to allow expert users to inte...

How to run a powershell script within a DOS batch file

How do I have a powershell script embedded within the same file as a DOS batch script? I know this kind of thing is possible in other scenarios: Embedding SQL in a DOS batch script using sqlcmd and a clever arrangements of goto's and comments at the beginning of the file In a *nix environment having a the name of the program you wish ...

Python Script to check website for a tag

Hello all. I'm trying to figure out how to go about writing a website monitoring script (cron job in the end) to open up a given URL, check to see if a tag exists, and if the tag does not exist, or doesn't contain the expected data, then to write some to a log file, or to send an e-mail. The tag would be something like or something re...

disable javascript on ie browsers

is there a way to disable a certain script for all ie browsers? ...

How to design a command line program reusable for a future development of a GUI?

What are some best practices to keep in mind when developing a script program that could be integrated with a GUI, probably by somebody else, in the future? Possible scenario: i develop a fancy python CLI program that scrapes every unicorn images from the web i decide to publish it on github a unicorn fan programmer decides to take t...

Visual studio use like VBA Editor

I want implement in my software solution an VBA editor but in c# 3.0. VBA edtior (vb 6.5) is obsolete. Microsoft have a solution for create macros and scripts editor for .net? if not how to implement a like solution? ...

send key code to command line program os x bash script

I want to make a script that starts a program and then sends it key input. In psuedo-script: #!/bin/bash ./program << (PRESS CONTROL-Z) The program is running so if there were additional commands in the script they will not be reached unless say control-z terminates the program. Is this possible? From what I've found I thought it mig...

Making web server in C with native scripting support

I'm an intermediate C developer, trying to get better. I want to make a very basic and lightweight HTTP server with its own scripting language. Could I use something like Lua for scripting? If not, what? I don't want to use CGI/FastCGI like Apache does for PHP in most cases, I want my server to natively support my scripting language. ...

How can I tell what script a website uses or is built with? Could it be an 'off the shelf solution' perhaps?

Hi. There is an excellent website that I would like to emulate some of the characteristics of in a website that I hope to develop. (I do not intend my site being in competition with them - mine would be more of a social networking site). Can anyone tell me if it is possible to detect which script and platform is being used on www.shoutl...

Script to copy files on CD and not on hard disk to a new directory

I need to copy files from a set of CDs that have a lot of duplicate content, with each other, and with what's already on my hard disk. The file names of identical files are not the same, and are in sub-directories of different names. I want to copy non-duplicate files from the CD into a new directory on the hard disk. I don't care abo...