When a user selects a file, I want another file field to appear. It works for the first file, but if i choose a file in the second field, it doesn't get called again. Why not?
jquery script
$(document).ready(function() {
var i = 1;
$('input:file[name$=\'uploadedFile'+(i-1)+'\']').change(function() {
var f...
I have found the following links for executing script using java i.e. http://stackoverflow.com/questions/2071682/how-to-execute-sql-script-file-in-java . But it is specific to postgre and mysql.
I am looking for same solution for executing script in Sql server 2005. I am not acquinted with SQL Command Line. I have to make a batch conta...
I'm parsing a properties file to get a list of properties defiend. I want to check all the places these properties are used (target dir and subdirs), flagging up any that are defined in the properties file but not used anywhere in the targer dir. Thus far I have
FILE=$1
TARGETROOT=$2
for LINE in `grep '[A-Z]*=' $FILE | awk -F '=' '{pr...
I'm trying to write a Bash script that will SSH into a machine and create a directory. The long-term goal is a bit more complicated, but for now I'm starting simple. However, as simple as it is, I can't quite seem to get it. Here's my code:
#!/bin/bash
ssh -T [email protected] <<EOI
# Fix "TERM environment variable undefined" ...
I am using python, and run into some redefinition error, I know they are redefinition but logically its not possible to reach that since its an or. Is there a way to get around this? I appreciate for any help in advance
/python-2.5/lib/python2.5/re.py", line 233, in _compile
raise error, v # invalid expression
sre_constants.error: r...
I'm running a PHP script...
and with an indefinite range the script stops working
but the process continues running
poll([{fd=5, events=POLLIN|POLLERR|POLLHUP}], 1, 3000) = 0 (Timeout)
poll([{fd=5, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, 0) = 0 (Timeout)
poll([{fd=5, events=POLLIN|POLLERR|POLLHUP}], 1, 3000) = 0 (Timeout)
poll([{fd=...
Hi,
I have 2 pages p1 nd p2 . p2 is popup on p1 button's click. I want on close of p2 , p1 must be refresh. so i write script on button of submit of p2 as :
String lsScript = "";
lsScript = "<Script JavaScript>refreshParent();";
lsScript += "</Script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "ClosePage", lsScript);
s...
I have the following SQL in a file, user.sql:
CREATE TABLE user
(
user_id INTEGER PRIMARY KEY,
username varchar(255),
password varchar(255)
);
However, when the following command is executed:
sqlite3 my.db < user.sql
The following error is generated:
Error: near line 1: near ")": syntax error
I would prefer to keep the SQ...
Hey,
I want to write a very simple script , which takes a process name , and return the tail of the last file name which contains the process name.
I wrote something like that :
#!/bin/sh
tail $(ls -t *"$1"*| head -1) -f
My question:
Do I need the first line?
Why isn't ls -t *"$1"*| head -1 | tail -f working?
Is there a better wa...
Hey,
A really simple shell script question. I have a file with something like this:
var "aaaaa"
var "bbbbb"
...
Now, how can I assign the string in quotes to a variable?
This is what I have now (but I'm missing the assign part...):
while read line
do
echo $line | cut -d" " -f3
done
which prints what I want... how do I save it to...
Ok, so I've been toying with using Flash SWFs in Flex objects as icons and the like. I can embed it just fine, but I would like more control over certain flash Actionscript 3 properties WITHIN the embedded icon - for example, to change the size of the icon (icon used in two spots, one should be small, the other large).
Once I get that ...
I'm looking for a good menu's picture generator that based on photoshop script.
It should be have an .psd file as input. the .pas file will contain the form of the menu item in the following modes: hovered, unovered and selected. Each mode defined by hiding and showing a few layers. The text layer will contain a 'placeholder-text' that ...
how to stop evaluating script tags in jquery ajax and post responses?
Please find the corresponding code below.The function sendForm() is being evaluated even when i am using dataType : 'text'
<HTML>
<HEAD>
<TITLE>This is the title</TITLE>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javasc...
Hello, I have a "database solution" project in VS2008 - it generates SQL for more than one DB vendor from some sort of templates. In order to save time, I also have a tool in VS2008 configured (a Python script), which can compile an individual stored procedure. Now, with the Python script I have the freedom of processing the output and h...
I'm going to post a question that I've seen variants of elsewhere, but where I've not quite seen the answer I came up with. I'll subsequently post my answer.
In order to modularize my build script using macros, I would like to put both the updatetask and the task I want to execute if it is not up to date, in the same macro.
How do I do...
Is it possible to create an interactive cmd under Windows?
I am looking for a scripting solution to login to a server remotely which prompts password entering.
Take SSH as an example. A normal user will do the following at a command line window:
C:>ssh2 [email protected] "echo Hello"
user's password: ********
Hello
The second line, wh...
I'm looking at scripting parts of my workflow, which involves interacting with some web-services via SOAP and XML-RPC queries. I'm scripting using bash and python.
I need to authenticate against these web services, and I'd ideally like to do so
without having to type in my password for every request (typing it once per login would be...
I have the following problem:
<script type="text/javascript">
alert("1. ČĆŽŠĐčćžšđ");
</script>
<script type="text/javascript" src="Tst.js"></script>
<script type="text/javascript">
var pScript = document.createElement("script");
pScript.type = "text/javascript";
pScript.src = "Tst.js";
pScript.charset = "windows-1250";
$("body"...
I want to make a script that can be used to send messages to our friends on facebook.
How do I proceed? Which is the best module to use?
...
Hi,
Does anyone know of any good resources that cover programming / scripting against the Microsoft Deployment Toolkit (MDT) task engine?
It's an edge case kind of question but I'm trying to find more information and there seems to be a dearth out there.
Thanks.
...