scripting

iPhone configuration file

I try to create iPhone configuration file via c# script as proposed in "Enterprise deployment Guide" of Apple and faced the following problem : iPCU.exe TestScript.cs // This command should create the profile but he not . He just run iPhone configuration //utility. TestScrip.cs consist example from Apple's pdf. Maybe somebody know...

Hosting .fsx scripts inside larger applications

I want to expose my F# libraries as a scriptable tool for data manipulation. Optimally, I want this scripting facility to not require a full F# install with fsi and so on. Is there a way to link into the FSI libraries to execute scripts from F# code? My google-fu is failing me on this one, and the F# sources for fsi are a bit tangled. ...

Are there any performance issues in having a large number of script tags in your html?

Are there any issues in having a large number (say 50) of script tags in an html file. Does it cause any performance issues in page rendering times? I have a section on my page that's pulling a geolocation point and putting this into an array for use on a google map. I could create a separate query for just the geolocation points but ...

How to mount a network directory using python?

I need to mount a directory "dir" on a network machine "data" using python on a linux machine I know that I can send the command via command line: mkdir ~/mnt/data_dir mount -t data:/dir/ /mnt/data_dir but how would I send that command from a python script? ...

Error Message When Web Browser Don't Have Support Of Scripting

I'm developing a site that I know because of the site theme that it will be accessed on mobile devices and Internet Explorer For Windows CE 1, 1,1 and 2 don't have support for the <script> tag(as you can see on this table). Then I want to build a way that when the user have a browser that don't have a browser with scripting support it wi...

Scripting Datastage

Is there any way to script Datastage from python or the shell or something else? Something as simple as dropping a project from a server and rebuilding it in a script. Is there an object model? Anything? ...

Script output to file when using SQL-Developer

I have a select query producing a big output and I want to execute it in sqldeveloper, and get all the results into a file. Sql-developer does not allow a result bigger than 5000 lines, and I have 100 000 lines to fetch... I know i could use SQL+, but let's assume I want to do this in sqldeveloper. ...

Getting the full URL of the current page (PHP)

I'm working on this page: http://localhost/projectname/custom.php Both <?php echo $_SERVER['REQUEST_URI']; ?> and <?php echo $PHP_SELF; ?> don't give full location. What should I use to grab the full url location? Thanks ...

how can i compare strings in bash script?

I need to compare a variable to some string (and do something if they match). How can i do the comparison? ...

Command paths as variables in shell scripts

What is the best practice when running external utilities in shell scripts. For example if I want to run 'gzip' in multiple scripts ensuring that a specific gzip binary is used should I make the full path to the binary a variable and just use the variable thoughout the script? GZIP=/home/me/bin/gzip $GZIP somefile $GZIP anotherfile Or...

Is that possible to embbed Scheme(lisp) interpreter into iPhone app?

Hi. I'm finding embeddable Scheme interpreter(or JIT compiler or anything) into Cocoa Touch. I think just a C compatible Scheme engine may be fine. Please recommend some. I wish it's MIT/BSD style free license, but commercials are fine too. And.. does Apple AppStore allow embedded scripting like Scheme? ...

Technique to compute next day's date from a date supplied via an arg?

Hi All, I'm having some trouble figuring this out. I have a script that checks a log file that is generated the day after the date specified by the script call. This is because the files fetched for the specified day's data won't be fetched until the day after. And when that cron runs in the morning, the log file will have a timestamp...

Qt, Python and Memory Management

Hello , Thanking everybody before starting. I have a serious issue with a GUI implemented in Qt,say,QGui. Through Python APIs,say,qpread etc. I accesses the hardware resources. What i does is through Python script I calls these APIs according to my requirement. This QGui mostly crashes while running the script whether it is for long...

Halting and continuing embebbed ruby code

I call Ruby functions from my C++ code through the embedding commands (rb_eval and the like). Is there any way to stop the execution of the code partway, save the local variables, and restart it from the same spot later? ...

Elementary Linux scripting question

I'm trying to figure out how to work git filter-branch and I need help with some basic Linux scripting commands. 'git ls-files -s | sed "s-\t-&newsubdir/-" | GIT_INDEX_FILE=$GIT_INDEX_FILE.new \ git update-index --index-info && mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE' HEAD Can anyone bre...

Resources to learn sh scripting 'just like a normal programming language'

Hi, what is the best resource (book would be nice) to learn sh scripting (the "standard" shell on Unix systems) just like when i would learn a "normal" programming/scripting language ? There are lots of tutorials on certain aspects of shell scripting, they mostly deal with shells in general and unix commands and so on, but i would rat...

How would I triple-click in Sikuli?

I am trying to select an entire line of text on a web page (in a table) using Sikuli. The easiest way to select the text is to "triple-click" on it. Is there a way to triple-click in Sikuli? Thanks! ...

Why does my Perl program warn about an uninitialized value?

I've written a Perl script, below which generates a warning and I can't work out why. #!/usr/local/bin/perl -w $status = $ENV{ 'STATUS' }; if ( $status eq "" ) { $status = 0; } else { $status = 1; } It says "Use of uninitialized value in string eq at ./x.pl line 4." Line 4 is the "if ( $status eq "" )" line but the variable...

Why does a task in VBA get executed before an earlier one has finished?

As VBA-novice I'm having trouble understanding some VBA behaviour. I got the following code, which reads rows from a db into an activex control, and thereafter tries to put these values into an array. the vxdata1 activex is proprietary, no insight there - but basicly it cares for the ADO connection, executing of an SQL command and putti...

How to run command line python script in django view?

I have a .py file that a php file runs like this: $link = exec(dirname(__FILE__) . /xxx.py ' .excapeshellarg($url) . '2>&1', $output, $exit_code); I want to run the xxx.py in my django view and asign the output to a variable. The xxx.py file has a def main(url) function and if __name__ == '__main__': at the bottom. Is there a way I c...