All, Using the standard ac_quicktime.js as shown below - how does one get the video to auto play and then also keep looping: <script language="JavaScript" src="ac_quicktime.js" type="text/JavaScript"></script> <script> function jumpToTime(timeInSecs) { try { var vid = document.getElementById("iaatt_video"); if (vid && ('VIDEO' == vid.tagName) && vid.currentTime) { // video tag, use it vid.currentTime = timeInSecs; return; } // browser apparently doesn't support video, look for embed then for an object vid = document.getElementById("iaatt_embed"); if (!vid) vid = document.getElementById("iaatt_obj"); if (vid && vid.GetTimeScale) { // time in QuickTime is in timescale units per second, convert from param in seconds var timeScale = …

Member Avatar
Member Avatar
+0 forum 3

All, I'm looking for the best practice in regard to a CGI shopping cart - I am working on. What happens is that I have a checkout file that sends an email to our generic mail account and shows a thank you image once someone fills in their information. What happens is that even though the information page has checks that data is filled in - the checkout file if a search crawl hits the page it sends blank info to the generic e-mail box. Therefore to remedy what code can I put on the checkout page so that the …

Member Avatar
Member Avatar
+0 forum 2

###Simple Advice This is just a reminder. When setting environment variables through **.htaccess**, **CLI** or **dotenv** use `filter_var()` to evaluate a boolean. For example, start the built-in PHP server with these variables: DEBUG=FALSE LOG=TRUE SMS=1 SMTP=0 CONNECT=yes BACKUP=no php -d variables_order=EGPCS -S localhost:8000 And then test through `boolval()`: if you forget to use 1 and 0, then something can go wrong as the variable is evaluated like a string and will always return `TRUE`. By using `filter_var()`, with the appropriate filter to validate boolean, you get more flexibility as it: > returns TRUE for "1", "true", "on" and "yes". Returns …

Member Avatar
+0 forum 0

Hi all, I'm trying to replace text in a CSV. The CSV line looks something like this: "Field One","Field Two","Field Three","Field Four" So I tried something like: (Get-Content $csvfile) -replace "Field`n", "Field" | Set-Content $csvfile

Member Avatar
Member Avatar
+0 forum 2

Hello everybody. How can i get "ls" from shell scripting? I tried this but it doesn't work, i saved it in a file: #!/bin/bash $ls I know the second line is not correct, so what should i type? Getting "ls" is just an example, i infact want to import this line to the shell: sqlite3 test.db to create a database.

Member Avatar
Member Avatar
+0 forum 2

Hey guys, I have this script that does count one year of files, 2014, but when it comes to this year, everything messes up. How could I count properly for each year in the same script ? In the attached screenshot it's obvious that I would only need 2014 - all of the months and from 2015 only January, but .... how ? Thanks in advance! ls -la | awk -v year="$(date "+%Y")" 'BEGIN { split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec", month, " ") for (i=1; i<=12; i++){ mdigit[month[i]]=i } } !/^-/{next} $8 ~ …

Member Avatar
Member Avatar
+0 forum 4

I am trying to learn how to use jQuery and I stumbled upon this code and the requirements below: * disable all the cells from "Every Monday" till "Every Sunday" as the initial status; * make "Never" exclusive from all the rest of options in the same row; * make "Less often", "Monthly" and "Weekly" exclusive each other; * when "weekly" is selected, eable the cells from "Every Monday" till "Every Sunday", and you can select more than one answer; * when "weekly" is deselected, disable the cells from "Every Monday" till "Every Sunday", and deselect all these cells. Here …

Member Avatar
Member Avatar
+0 forum 3

Hi All, Is GitHub the "gold standard" for finding open source scripts online for people to use in their own development? Where else do people look? Thanks, Tubs

Member Avatar
Member Avatar
+0 forum 1

Hi, I need to monitor the ip addresses in a server. whenever there is a fluctuation, i need to do some clean up (like restart the server/ reboot the machine) I was able to get a sample cpp program & was able to enhance it to suit my needs. But i think it would be better if i am able to convert it into a shell script as it will give me more flexibility in parsing the output. any body has got any idea of the syntax to be used for netlink sockets in shell script, since I could not …

Member Avatar
+0 forum 0

Month CBS GFS HR HR Payroll INCV cbs1 gfs1 hr1 hr2 hrm incv1 Baseline <=97 <=125 >=11 >=19 <=25 10 (6mths) 2013-07 97 89 14 28 30 4 2013-08 58 103 18 6 24 18 2013-09 54 110 11 14 25 17 2013-10 108 129 17 8 23 18 2013-11 52 137 12 8 21 30 2013-12 18 84 6 0 13 13 2014-01 8 6 1 0 9 3 #How to create a standard deviation based on the baseline for the 6 months AND after calculating the standard deviation, it will do a flag and prompt/inform the user that …

Member Avatar
+0 forum 0

@echo off REM This batch file will play with shift command :loop echo %1 shift if %2 == GOTO end goto loop :end exit 0 When I inputted C:\Users\~\Desktop> Shift.bat 1 2 3 I got this 1 2 end was unexpected at this time. Why do I keep getting "end was unexpected at this time.

Member Avatar
Member Avatar
+0 forum 4

I'm having some error in my code but I can't understand what the problem is. #!/bin/bash ARG_COUNT=$# EXP_ARGS=2 if [ $ARG_COUNT -eq $EXP_ARGS ]; then echo "The correct number of parameters was passed: " $EXP_ARGS"." echo "My name is: "$1 $2"." else echo "Incorrect number of command line arguments. We have: " $ARG_COUNT " parameter(s), but we need: "$EXP_ARGS " parameter(s)." echo "Error#: " 60" fi ct=1 while [ $ct -le $ARG_COUNT ] do echo "Counting up to the parameter count limit: " $ct let "ct+=1" done The error I keep getting says: ./arg.sh: line 21: unexpected EOF while looking …

Member Avatar
Member Avatar
+0 forum 2

First, just to clear this up, I did not post this is the wrong place. I know the difference between "Java" and "Javascript" I'm working on a project where I want to allow a simple, no intense programming required, way for users to create custom functionality. This is a simplified view of my program, but works for this discussion: My program works by running self contained chunks of Java (not javascript), but I want users to be able to define their own chunks of code to run in Javascript. My user base tends to be techy, but they are not …

Member Avatar
Member Avatar
+0 forum 3

Hi Everyone, I have a technical question regarding how Perl scripts are run by Servers. In traditional programming a source file (containing human readable programming instructions) is first compiled (into binary data) before it can be run by a computer. Do Perl commands get compiled before being run, or does the "scripting engine" interpret the human readable commands directly? Any help here will be greatly appreciated. Kind Regards, Davo

Member Avatar
Member Avatar
+0 forum 2

i have 2 files, one file created on Windows and another was made on Ubuntu, i want to use this command: comm -12 file1 file2 how do i do that?

Member Avatar
Member Avatar
+0 forum 2

i got a string var=96.33% from 120 how do i get 96.33 from $var?

Member Avatar
Member Avatar
+0 forum 6

i am a beginner. i need online tutorial for shell scripting. there are many on the web.. which one to choose??

Member Avatar
Member Avatar
+0 forum 2

Hello I'm writing a script to get content of web pages on different machines and compare them using their md5 hash hear is my code #!/bin/bash # Cluster 1 CLUSTER1_SERVERS="srv01:7051 srv02:7052 srv03:7053 srv04:7054" CLUSTER1_APPLIS="test/version.html test2/version.html test3/version.jsp test4/version.html test5/version.jsp" # Cluster 2 CLUSTER2_SERVERS="srv01:7055 srv02:7056 srv03:7057 srv04:7058" CLUSTER2_APPLIS="test/version.html test2/version.html test3/version.jsp test4/version.html" # Cluster 4 CLUSTER4_SERVERS="srv01:7063 srv02:7064 srv03:7065 srv04:7066" CLUSTER4_APPLIS="test/version.html test2/version.html" # Liste des clusters �* tester CLUSTERS="CLUSTER1 CLUSTER2 CLUSTER4" # init vars CRITICAL=2 WARNING=1 OK=0 for cluster in $CLUSTERS do for server in $(eval echo \$${cluster}_SERVERS) do server_name=`echo $server | cut -d':' -f1,1` server_port=`echo $server | cut -d':' -f2,2` for applis in …

Member Avatar
Member Avatar
+0 forum 3

Hi, I watched some shell scripting codes and I saw that there is a command, which name is LISTEN. What is the logic of this command and how I can use it?

Member Avatar
Member Avatar
+0 forum 1

I saw that github commands in linux terminal always uses word "git" before all it's commands. How to use my own word for my shell script? for example, $ git commit or $ git status

Member Avatar
Member Avatar
+0 forum 1

Friends I want to show results on my website from the other website. It uses the URLS to shows the result as for Roll number 123123 the results page is www.remotesite.com/B/Res/123123.html like wise for the number 124124 the results page is www.remotesite.com/B/Res/123124.html I want to add such a javascript in my page that when user enter his roll number in the textbox. It should fetch it and return the result on my site with the requested page. For example If User search for 123124 Then http://www.remotesite.com/B/Res/123124.html page should be displayed in my webpage. Please help me Its URGENT.

Member Avatar
Member Avatar
+0 forum 1

I have a .sh script which is as follows. #/bin/bash ssh uname@111.XXX.111.XXX | mysqldump -u uname -p test_db>/home/dm/Downloads/test.sql # script ended I want to extract the script from the server "111.XXX.111.XXX" and keep it in a server directory but I do not want to log in to the server. So, the script test.sh should run on my local machine $./test.sh This is not running. It is asking for the password of the server and then stoped.

Member Avatar
+0 forum 0

I have a shell script like as follows #!/bin/bash # Downloading Dumps from the production server. Date=`date +'%d-%m-%y-%H-%M'` BACKDIR=/home/tmp/Backup #IP Address of the Server Host="localhost" #User Name USER="root" #Database Name DBS="test_db" echo "Backing up MySQL databases..." echo "Time: `date`" mysqldump -h $HOST -v --user=$USER --password=$PASS $DBS test_tbl1 test_tble2 ...... > $BACKDIR/$DBS_tables.sql if [ $? -eq 0 ] then echo "Database dumps downloaded successfully!" else echo "Error in downloading database dumps" exit 1; fi echo Your backup is complete! echo "Time: `date`" I have around 50 tables, from there I need to take dump of 15 only. So can I include …

Member Avatar
+0 forum 0

I have an batch script that needs to concatenate several hundred of lines (72 chars) in one long line for base64 to decode. He used line reading because of the windows XP line limit (8191 chars per line). The script currently has 2 issues at result: It exports with 2xquote character between my 72 char lines (like so: "addf4534@$") and base64 doesn't like that It creates several 2-3 lines extra. The last line being the correct one. Here is the script (install.zip its what is going to be encoded for later decoding): @echo off CALL D:\utilities\base64.exe -e install.zip install.txt set …

Member Avatar
+0 forum 0

#!/bin/csh echo -n "Enter a value> " set a = $< echo -n "Enter another value> " set b = $< echo "Doing mathematics> " @ r = $a + $b echo the sum a + b is $r tried runing this script and I keep getting this error report "Add: 5: Add: Syntax error: newline unexpected" can anyone help me out please

Member Avatar
+0 forum 0

Im a newbie in PHP and I want to create a simple webpage app for my website, I was able to produce this page base on a tutorial here. <?php $con = mysql_connect("localhost","*****","*****"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("*****", $con); $result = mysql_query("SELECT * FROM products"); echo "<table border='1'> <tr> <th>Name</th> <th>classification</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['name'] . "</td>"; echo "<td>" . $row['classification'] . "</td>"; echo "<td><input type='checkbox' name='{number[]}' value='{$row['prodID']}' /></td>"; echo "</tr>"; } echo "</table>"; mysql_close($con); ?> <?php ?> <html> <head> </head> <form name="form1" method="post" action="result_page.php"> <input type="submit" …

Member Avatar
Member Avatar
+0 forum 4

I am learning about networking and programming. I am trying to be a simple IM application. What i am trying to achieve having a server application route messages between computers over the internet creating a simple instant messenger. However i can't find any sort of tutorial for that. I want to use the client-server model. The way i think it works is that let say to computers are connected to a server through some sort of login. The server can then pass messages between thoes two connected computers. Anyone know any resources for me to beable to achieve this? Thanks

Member Avatar
Member Avatar
+1 forum 1

when trying to output the string of a variable to a text file, the string try's to run and therefore pops up like this, %localDrive% 2>>fileCompare.log 'C:' is not recognized as an internal or external command, operable program or batch file. Any ideas?

Member Avatar
Member Avatar
+0 forum 2

Hi, I've never used bash before, but am creating a file. Here's the skelton: while read line; do if [ -e "$line" ] then else cat > $name << EOF EOF cat > rails << EOF EOF fi command $name & done < projects.txt The error is: "line 55: syntax error: unexpected end of file", where naturally line 55 is that last line. Are the two last lines correct? I'm from a php, ruby background, and should while and do have to do ending 'tags' as such?? Thanks

Member Avatar
Member Avatar
+0 forum 2

Heeey guys!! Where's the forum for Batch Scripting!?!? Imma noob if it's Shell Scripting... ~~Zephyr

Member Avatar
Member Avatar
+0 forum 1

The End.