scripting

Adobe Photoshop CS3 objects library and scripting

Primary question: I want to make a library of small re-usable objects (eg. passport stamp, specific kind of text etc.) in Adobe Photoshop CS3. What would be best approach to do it? Secondary question: Is it possible to change these objects via scripts or c#? If yes, how can I do that? Thanks. ...

Database entry update where caps are used

I want to know if it's possible to change this: ENTRY IN DATABASE WHERE CAPSLOCK IS USED. I WANT TO REMOVE THIS CAPS HERE. To: Entry in database where capslock is used. I want to remove this caps here. With a script or anything withing sql. I have copied a database into another database, but alot of records contain fields with ever...

php/java/c# script to build email marketing service

Anyone, which know of a script/system which could be used as a starting point for building a email marketing/newsletter sending resell service? (like http://www.campaignmonitor.com/ or mailchimp.com ) We are looking for something professional, which are able to handle bounces etc etc ...

Mailto Script in php

Hi I am new to Php.. i want to know how mailto script works in php .. and can any one pls provide a script for that.. ...

shell script execution error in uclinux

Hi, I have a simple shell script as follows: myfunc() { #print hello world echo "Hello World"; } myfunc The script works fine when I execute in linux pc but when I run the same in uclinux, I get the error as "syntax error". What could be reason for the problem? ...

R Script: Determine whether the script is run in the GUI or from command line

Is it possible to determine - from within the script - whether the script is running in the R-GUI (specifically R.app on OS X) or whether it has been called from Terminal/command line (i.e. R --vanilla -f script.R)? If so, how is this possible? I'm asking because I have a script that can run parallelized (using the doMC library), which ...

awk without printing newline

I want the variable sum/NR to be printed side-by-side in each iteration. How do we avoid awk from printing newline in each iteration ? In my code a newline is printed by default in each iteration for file in cg_c ep_c is_c tau xhpl printf "\n $file" >> to-plot.xls for f in 2.54 1.60 800 awk '{sum+=$3}; END {print sum/NR}'...

Need help from a Phplogin (from roscripts) user

Hello, I've bought a year ago a license of PHPLogin v2.0.6 from roscripts.com. The guys from roscripts have sold their business, and now there's no support what so ever from them. So i'm hoping someone here could help me with this : I've created a specific users groups, but i don't know how to tell the script that i want all the peop...

understanding a ksh script part of

Hi Could someone help me understand the following piece of code which is deciding on the start and end dates to pick data out of a db. # Get the current time as the stop time. # stoptime=`date +"%Y-%m-%d %H:00"` if test $? -ne 0 then echo "Failed to get the date" rm -f $1/.optpamo.pid exit 4 fi # # Read the lasttime file to ...

relative link failure in ie8

Private Sub RenameHyperLinks(d As Document) ' ' RenameHyperLinks Macro ' ' Dim oFld As Field Dim oldString As String Dim newString As String Dim dp As Object Dim link As Hyperlink Set dp = d.BuiltInDocumentProperties 'Set Base Hyperlink for document to relative path dp("Hyperlink base") = "..\" For ...

Scripting engine with static typing

Hi, I am looking for a scripting engine that can be integrated in .NET but NOT with dynamic typing! For example, JavaScript is not suitable, because it is a dynamically typed language. Do you know any? ...

How to trigger script.onerror in Internet Explorer?

The onerror page on MSDN states that the onerror handler can be attached to a script element and that it "Fires when an error occurs during object loading.". For the purpose of unit tests, I am trying to get this onerror handler to fire, but could not find a suitable example. The following code triggers an error in Firefox, but no aler...

unix shell script to get date 30 minutes ago in GMT

Hi, I have a shell script that I want to get the date and time 30 minutes ago in GMT. I have this working great for full hours, but partial hours don't seem to work: 1 hour ago TZ=GMT+1 date +%Y-%m-%d" "%H:%M:%S 2010-01-08 17:43:57 2 hours ago TZ=GMT+2 date +%Y-%m-%d" "%H:%M:%S 2010-01-08 16:44:07 1/2 hour ago TZ=GMT+.5 date +%Y-%...

How can I add programmability to my application

I'm writing an applicaton that is, at its core, a rules engine. The users want to be able to define custom rules. Some of these will be fairly simple algebraic expressions, many will involve some if-then branching logic, and some will be even more complex. What are my options for doing this? My users are pretty smart, proficient at T-S...

How to run a PowerShell script?

Guys and Gals, a really stupid question: How do I run a PowerShell script? I have a script named myscript.ps1 I have all the necessary frameworks installed I set that execution policy thing I have followed the instructions on this MSDN help page and am trying to run it like so: powershell.exe 'C:\my_path\yada_yada\run_import_script.ps...

Getting output from server side python script

Hey, I'm doing this project where we are supposed to connect a javascript client side application/web page on server A with a python server side script on server B. I need to get the output from the python script and store it into a variable but am running into some problems. I was trying to use XMLHttpRequest for this, and even though ...

.NET Xsl script transform results in 'System.Object' is not defined or imported

Hi XSL noobie but uttery stuck! I have a transform that formats a date using c# scripting function , this works fine when I am in VS 2008 and run "show xml output", the output is exactly what I want. However , when i try to run this using code I get the error Predefined type 'System.Object' is not defined or imported To funct...

Scripting HTTP more effeciently

Often times I want to automate http queries. I currently use Java(and commons http client), but would probably prefer a scripting based approach. Something really quick and simple. Where I can set a header, go to a page and not worry about setting up the entire OO lifecycle, setting each header, calling up an html parser... I am looking ...

Is there a common term for GUI applications that wrap a command-line program?

It happens everywhere with desktop programs and scripts: a GUI application wraps some command-line program to provide a visual experience to its functionality. Is there a common term that describes this kind of GUI application? I'm looking for a technical one or two-word term, not just "command-line wrapper application," etc. ...

Why my bash can't execute R script ?

My script use an access to mysql to get command arguments to launch Rscript. Its use is as follows : Rscript $RFILE $ARGUMENTS (RFILE corresponding to path to Rscript, and ARGUMENTS corresponding to path file used and agr). I try, different way, but I still have errors, here a copy of my bash script : #!/usr/bin/env bash # Execute R pr...