Hi, I've been trying to find a workaround to defining lists of sequential numbers extensively in tcsh, ie. instead of doing:
i = ( 1 2 3 4 5 6 8 9 10 )
I would like to do something like this (knowing it doesn't work)
i = ( 1..10 )
This would be specially usefull in foreach loops (I know I can use while, just trying to look for an a...
I'm writing a script to extract some useful data about a series of chemical simulations I've been running.
To get this data I need (1) a C-program that calculates the density from a file type called *.pdb. I already have (1). And (2) I need to use a program called vmd to get that pdb. In order to accomplish (2) from the command line,...
This is still related with my previous questions, VBA: How to display an error message just like the standard error message which has a “Debug” button?
Now, I successfully make the current cursor in VBE jump to a particular procedure in VBE. I used Application.Goto to achieve this. However, what actually I want is to make the current cu...
Hi all ,
I am using Net/TELNET to connect to remote host trying to run su command in order to get root privilage. This is how I am doing it
require 'net/telnet'
localhost = Net::Telnet::new("Host" => "192.147.217.27",
"Timeout" => 50,
"Prompt" => /[$%#>] \z/n)
localhost.login("...
My research group uses a Wordpress blog. Frequently I want post snippets or even entire short programs I've been working on to it, with most of my code being written in C/C++ or scripting languages (Bash, TCL, etc).
I figure that there have to be some good extensions to Wordpress to colorify code since so many people use it. I'm loo...
Want an applescript droplet that opens files in QuickTime and mutes them all. The script only mutes the front most opened file.
on open the_Droppings
tell application "QuickTime Player 7" to activate
tell application "QuickTime Player 7" to open the_Droppings
tell application "System Events" to tell process "QuickTime Player...
I have a products table in a mysql.sql file. I wish to extract that one table and place it in it's own file. How would you go about doing this?
...
Above string equals "3test line3"
When I enter above line into an editbox, and say;
StrVar := Edit1.text;
StrVar is "chr(33)+'test line'+chr(33)"
How can i get the result 3test line3 as a variant;
To achieve this, i use pascal scripting engine from rem-objects.
Might be a simpler way to do this..
Any ideas are welcomed...
...
Hello, I'm making a wxpython app that I will compile with the various freezing utility out there to create an executable for multiple platforms.
the program will be a map editer for a tile-based game engine
in this app I want to provide a scripting system so that advanced users can modify the behavior of the program such as modifying p...
Can you script SharePoint configuration (as in settings done in the "Configure your SharePoint farm" and "Reporting Services Configuration Manager") through .Net ?
Does anyone have any links that might help ?
...
I am trying to write a MEL script that will draw simple implicit surfaces in Maya. I have had a search online but could not find that much on the topic.
Does anyone know how to create a MEL script to draw a simple implicit surface in Maya?
Thanks in advance.
...
I think in this case I need to write a client side script that onpageload/onchange gets options from server & builds a list dynamically. & stores new options to server via some JavaScript script. I will prefer to save user input in a file on server. I will be very thankful for any help.
...
Hi all,
I am writing a very simple ruby script and has a few checks:
if true and true and true then
else
end
Why can I not format it this way
if true
and true
and true
then
else
end
Ruby blows up if I do it that way. I want do do it that way so my lines are crazy long. I simply made the criteria a function so that s...
I'm writing a script that will take a filename as an argument, find a word a specific word at the beginning of each line - the word ATOM, in this case - and print the values from specific columns.
$FILE=*.pdb *
if test $# -lt 1
then
echo "usage: $0 Enter a .PDB filename"
exit
fi
if test -r $FILE
then
grep ^ATOM $FILE | awk '{ print ...
I'm on a network with a couple of people that all listen to music using iTunes (Mac and PC). I want to build a web page that will publish the track, artist and the logged in user's name. A user will need to be able to easily toggle whether they want their music displayed or not. The idea is similar to IM clients where it says what you...
Hi all,
I was wondering if it would be possible to remove columns within a data file that contain any parenthesis that can be contained in ANY column. For example
...
John Doe (Tech Department) 09/12/2009 555-555-5555
Jane Smith 09/12/2009 555-555-5555 (Suspended)
Alfred doe 555-555-5555 (Vacation) 09/09/2011
...
So then I would like...
http://examples.oreilly.com/9780735615366/
I actually want to be able to have all these files in my disk.
as u can see there are many folders each with different type of files.
and u cannot download "the-folder" directly...only individual files
~
is there any way to automate process..?
I will need regular expressions on urls to arr...
How would you exit-gracefully-upon-entry when invoking a .sh script from anything other than bash?
Of course bash-isms like the following don't work in csh and the like so you get an error rather than the intended error message:
if [ ${BASH_VERSION-not_running_within_bash} = not_running_within_bash ]; then ...
I have a variable in my bash script whose value is something like this:
~/a/b/c
Note that it is unexpanded tilde. When I do ls -lt on this variable (call it $VAR), I get no such directory. I want to let bash interpret/expand this variable without executing it. In other words, I want bash to run eval but not run the evaluated command. ...
I'm currently looking into automating a software build process that includes a database schema defined in MySQL Workbench.
Using Workbench's scripting capabilities, I'd like to open a Workbench document and export its schema as an SQL CREATE script.
What I'd like to know is if there is a function that exports the entire schema in one s...