I need a script that can read input from a textbox on a webpage and output yes or no (or other words) if the input was found in a .txt file
For example, if I have the file of colors located on my website, each separated by ", " and the user puts in "red" and clicks submit, I'd like the next page to say "Yes red is a color". If they in...
Hello,
Let me start off by stating that I am a novice developer, so please excuse the elementary nature of my question(s).
I am currently working on a Flex Application, and am getting more and more confused about when to use server side scripting, and when to develop web services. For most of the functionality I am working on, I am ...
I have a page setup that uses jQuery + AJAX to load content into an accordion frame. It works fine for loading straight text/HTML but I now need to load Javascript along with the HTML.
To elaborate, I'm using GalleryView to display images in a photo gallery section of the accordion. When I load the HTML file, however, the scripts aren't...
I like to write bash shell scripts on my iPhone, put them in an app folder with an icon, plist, etc., so they execute like apps by tapping their icon on SpringBoard. This is not interactive like MobileTerminal since there is no way to get output, but it has its uses.
It works great for simple scripts, but long scripts get timed out with...
Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better.
Here is what I have so far
svn update /var/www/k12/
#svn log --revision "HEAD" /var/www/code/ | head -2 | tail -1 | awk '{print $1}' > /var/www/path/version.txt
# upload the files
rsync ...
Hi
Is there some command/script to know “EACH & EVERY” command executed on a solaris machine (with timestamp if possible) when multiple users are logged in with “SAME USERID & PASSWORD”?
history command is not accurate. It just shows the history of commands executed by that user or sometimes few more but it is not accurate when the s...
I'm attempting to write a Korn Shell function that uses printf to pad a string to a certain width.
Examples:
Call
padSpaces Hello 10
Output
'Hello '
I currently have:
padSpaces(){
WIDTH=$2
FORMAT="%-${WIDTH}.${WIDTH}s"
printf $FORMAT $1
}
Edit: This seems to be working, in and of itself, but when I ...
I'm trying to iterate over each file in a directory. Here's my code so far.
while read inputline
do
input="$inputline"
echo "you entered $input";
if [ -d "${input}" ]
then
echo "Good Job, it's a directory!"
for d in $input
do
echo "This is $d in directory."
done
exit
my output is always just one...
Alright, so here's the dealio: I'm working on a Ruby app that'll take data from a website, and aggregate that data into an XML file.
The website I need to take data from does not have any APIs I can make use of, so the only thing I can think of is to login to the website, sequentially load the pages that have the data I need (in this ca...
Hello everybody!!!
I am sorry if my question is silly and not at the right place.
I know it's possible to write a script (in any programming language) that would check some webpage every 20 minutes, record its HTML code (source) and store it in some file. I also it's also possible to run it from my computer.
But what if I can't keep m...
Hello everybody,
I just asked a question about whether it was possible to write a web-page-checking code and run it from free web server, and one supporter answered and said that it was possible only if I run "a web service" as simple script won't do that. He also suggested that I used Google App Engine service. I wonder what does it me...
from style that looks like this:
ul#menu
{
padding: 0 0 2px;
position: relative;
margin: 0;
text-align: right;
}
to:
ul#menu { padding: 0 0 2px; position: relative; margin: 0; text-align: right; }
Is there auto plugin, or script?
...
I started playing around with Pascal Script today and I cannot find any good documentation. I found these (one, two) articles. The are helpful but they are just examples.
edit: Separated this into two questions. New question is here.
...
I am having a problem with the example from this article. The article explains how to import your own classes so they can be called from a Pascal Script. I am importing my custom class but cannot get Pascal Script to recognize the 'Create' and 'Free' functions.
My plugin:
TMyPsPlugin = class
public
procedure PrintMessage(cons...
We use Perforce at work, and routinely keep software projects in the repository. In general creators follow the normal Perforce flow, BUT we also have a class of users, who doesn't have any need to edit the files but only read them. Currently we use P4Web but that requires the user so download each file individually to reassemble the p...
I have two frames loaded from local filesystem with file:// URL. How can I access the document in the left frame from the right frame?
parent.leftFrame.document gives:
"Error: Permission denied to get property Window.document"
I went through several articles explaining Same origin policy for JavaScript but those didn't help with files ...
I have a Perl script that does a fork/exec to start another tool in the background and monitor some file system changes while this other tool is running. This seems to work like expected.
When I start this Perl script from a shell (e.g. Bash), of course the shell prompt should be gone for as long as my Perl script is running. And it wil...
Hi, I've been programming for many years now, and I have just one question.
What programming language allows you to create programs which can automatically navigate websites and perform various actions? For example, logging in, browse to a specific page, fill out forms, extract certain text and so on.
This is different to a macro as a ...
Do any have easy tools for parsing Shopzilla Publisher feed or API?
...
I'm using XmlFormView control to host InfoPath forms in a web page.
When I post back or submit an InfoPath form , on some computers I'm getting "To enable editing the form on this page you will need to enable scripting on your computer" error.
I've checked the internet security options and active scripting is enabled (and besides if it...