scripting

Sample [English] Dictionary SQL Script to populate table?

Does anyone know of a link to a reference on the web that contains a sample English dictionary word script, that can be used to populate a dictionary table in SQL Server? I can handle a .txt or .csv file, or something similar. Alternatively, I'm adding custom spellchecking functionality to my web apps...but I don't want to integrate th...

How can I programatically analyze (and change) the configuration of IIS

I'm relatively new to the Windows Server world (coming from *nix land). I'm used to analyzing a web-server's configuration by grepping through an apache config file. Is there an equivalent file/group-of-files for IIS? Lacking that, is there an official scripting interface for IIS? ...

Best way to cancel a slow loading remote JS call

I have a remote JS that must appear in the head of the document. If the server is slow to respond or inaccessible, obviously this slows or prevents the page from loading. I have been searching for a simple way to set a limit of say 3 seconds (probably less) for it to give up and simply not load the functionality. Does anyone have a si...

Using scripts in a master page with ASP.NET MVC

I'm fairly new to ASP.NET MVC, and I'm having a little trouble with scripts... in particular, I want to use jQuery in most pages, so it makes sense to put it in the master page. However, if I do (from my ~/Views/Shared/Site.Master): <script src="../../Scripts/jquery-1.2.6.js" type="text/javascript"></script> Then that is literally wha...

Automatic file transfer from HTML

I'm building a web application that guides my users through the configuration and installation of an application. It builds a set of configuration files dynamically, then sends them in an archive (.ZIP file) along with an installer for the application. The web page is generated from a linux shell script (sorry), and for security reason...

Languages used for high profile games

In which languages are high-profile games like Half-Life 2, Crysis, Quake 4 and Red Alert 3 and so on written in? This includes game design tools, scripting tools, and so on. ...

Visualisation Scripts for Twisted Pixel

Twisted Pixel is easily the best visualisation plug-in I have come across for media players. It accepts scripts written in .milk and .vbs, among others. I can understand .vbs, but I have no clue how to code a proper, reactive visualisation. How do I do this? ...

Date arithmetic in dos scripting

I need to write a script to change a filename from aDate.txt to bDate.txt where: aDate is the current system date in yyyymmdd format and bDate is the current system date - 1 in yyyymmdd format. I currently have: set yy=%date:~6,2% set mm=%date:~3,2% set dd=%date:~0,2% if "%date:~6,1%"==" " set yy=0%yy:~1,1% if "%date:~3,1%"==" " se...

Which game scripting language is better to use: Lua or Python?

Hi, I have to program a game engine starting very soon for a 3rd year Games technology project. As a part of our project we have to integrate a scripting language for scripting our NPCs and other elements of the game. I know that Lua has been very popular in recent years and Python has horrible white space issues, however it is making a...

How to write a unix filter that outputs only a line every N lines

Suppose to feed the filter standard input with these line: line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 It would be nicer if someone tell me how to write a script that prints only every 4 lines, in the case of the example input above: line 1 line 5 line 9 ...

Minimal Python build for my application's scripting needs?

Hi all, what are your advices on building a very minimalistic version of Python(2.x) for my application's scripting needs. My main motive here is to keep the foot print (both memory and disk wise) as low as possible so that my native application won't suffer from any major performance hit. Even the Python DLL size is in consideration b...

Preferred library and/or method of converting CMYK to RGB

Each month I get new CMYK and RGB images that shall be used on the web. I had a script using a patched up ImageMagick doing this, but it got deleted. So I need to do it again, but it was hard last time. How do you easily and quickly convert CMYK image files to RGB? ...

Issue with nested calls with psexec (access denied)

Hello First of all, sorry for my poor english. I would try to explain my problem. I am using psexec within a script to restart a cluster as follows: script1 in node1: perform a lot of tasks (shutdown services, check status, etc..) in the node1 and after completing all task launch with psexec the script2 in node2 (psexec-d \ \ node2...

Is there a non-scripting language for Linux/Apache?

I'm familiar with a number of web based languages out there, and a number of them are scripting (ASP, JSP, ColdFusion, PHP, etc). On the Windows platform, the single biggest move with ASP.NET is the move away from a scripted language. Is there a non-scripted language for Linux (LAM+?). Anything anyone out there is using to do this? Is...

A script to get files from the net

Hi guys , I own a website and I wonder if there is a script that get files for me from other links on the net a load it to my server I will explain more I found a file with a size of 400 mb i want to host it on my server the normal way i used is to download the file to my pc then upload it to my server but is there a script or a way ...

Does a PHP Generator Framework or reference exist?

Back in the scripted ASP and ColdFusion days, I used to work on projects that would build code generators for ASP or Coldfusion, typically in C++, in order to be more object oriented in application design and not have developers writing scripted code, which often was called "spaghetti code" for it's size and complexity. Since I've been ...

How do I call a script when a table's data changes in Sybase 12.5?

OS is UNIX. I'd like to call a shell script to do external validation when the data in a table changes. Is it possible, and if so how. Many thanks. Updated: Ideally, I would like to call my external script once for any discrete operation: i.e. update... > call script once insert into... > call script once bcp into > call script onc...

Shell scripting: die on any error

Suppose a shell script (/bin/sh or /bin/bash) contained several commands. How can I cleanly make the script terminate if any of the commands has a failing exit status? Obviously, one can use if blocks and/or callbacks, but is there a cleaner, more concise way? Using && is not really an option either, because the commands can be long, ...

In SQL Server 2005, is there an easy way to "copy" permissions on an object from one user/role to another?

I asked another question about roles and permissions, which mostly served to reveal my ignorance. One of the other outcomes was the advice that one should generally stay away from mucking with permissions for the "public" role. OK, fine, but if I've already done so and want to re-assign the same permissions to a custom/"flexible" role,...

Avoid expansion of * in bash builtin function let

Hi all, I have a problem with a bash script. I have to use the operator * to multiplicate. Instead the script bugs me with expansion and using as operator the name of the script itself. I tried with single quotes but it doesn't work :( Here's the code #!/bin/bash -x # Bash script that calculates an arithmetic expression # NO PRECEDENCE...