JSP syntactical error in scripting
I don't understand why the first program in JSP is working, but the second program is giving an error: <% for(int i=0;i<10;i++){ out.print("hello"); } %> <% for(int i=0;i<10;i++){ <%= "hello" %> } %> ...
I don't understand why the first program in JSP is working, but the second program is giving an error: <% for(int i=0;i<10;i++){ out.print("hello"); } %> <% for(int i=0;i<10;i++){ <%= "hello" %> } %> ...
Right now I'm using a few scripts to generate files that I'm including as resources in XCode. The thing is I'm running the script, then deleting from the project, then adding back into the project. There must be a way to automate this last step, so that the script can generate the files and automatically add them into the xcode project...
i'm writing a bash script to automate the build process. there are two major build blocks, one is an ant task and one is a plain old "mvn clean install". i want to do something when there are build error coming from either of this two build processes. and the problem is, these builds will contain test failures or errors from time to ti...
I am maintaining several Perl scripts that all have similar code blocks for different functions. Each time a code block is updated, I have to go through each script and manually make the change. Is there a way to encapsulate the common functions into their own scripts and call them? ...
Hi, We Adobe Audition at work. We use to cut various sound bytes. An example might be talk a long audio of a voice actor reciting the alphabet and digits 1 - 100. Every alpabet character and digit must be cut to a new audio file. Now Audtion does have a scripting side to it, but I am not too familiar with the scripting aspect of ...
Using javascript, I am trying to change the selection of the listbox item like this: function selectFirstActiveListItem(oListBox) { for (var i = 0; i < oListBox.options.length; i++) { oListBox.selectedIndex = i; var szStatus = GetDomboBoxItemAttribute("Status", m_pdocConnec...
I'm storing the arguments to a command in a variable. The final command I want is: mock -r myconfig --define "debug_package %{nil}" --resultdir results --rebuild mypackage.src.rpm Here's my attempt: set -x # for debugging RESULTDIR=results MOCK_CONFIG="myconfig" MOCK_ARGS="-r $MOCK_CONFIG --define \"debug_package %{nil}\" --resul...
I am using javascript and ajax the most in my project source. All functions are working well in firefox. But some of them are not working in ie 6 and 7 browsers. Mainly Delete is not working for any page in my project. I dont know how to resolve those bugs. And dont know how to see errors in ie browsers.. So Plz help me to resolve this i...
I'm writing a script in Bash to test some code. However, it seems silly to run the tests if compiling the code fails in the first place, in which case I'll just abort the tests. Is there a way I can do this without wrapping the entire script inside of a while loop and using breaks? Something like a dun dun dun goto? ...
I have a bash script activated by crontab and running in background. I would like to add to it the ability to send notifications during the execution. My KDE 4 desktop has a fancy notification system which pops out non-modal messages from the tray bar, and this would be perfect for my needs. So I was searching for a way to generate these...
Up until now I've been a lone wolf on my client projects. Anytime I would make changes to SQL Server: tables updates, stored procs, etc. I would generate the change script and plop it into a directory. When the application was ready for release, I would run the scripts on the live server and be done. Soon I will have another develope...
Do you know any good methodologies/tools/scripts/approaches for automated web form submission? The form I want to operate on is NOT in my possession. That is, on any given website that's the action I'd like to perform. Example: On http://autos.yahoo.com/ the script would choose certain value in "Make" combo box, then in "Model" combo bo...
My embedded project contains a Qt application for the PC which is mainly a simulator for debugging and testing. In the application I can create several widgets which represent either my embedded software or simulate the hardware controlled by the application or can generate external inputs for testing. I plan to improve the application ...
Hello all, I am currently running a PHP script that queries the database and then sends text messages (via carrier's email-to-sms gateway). In other words, I have the phone numbers stored in the DB as: [email protected] [email protected] // etc... My method for sending these is using the Swift Mailer PHP Library. I am send...
Hi all We got a project where we're supposed to let 3rd party developers create their own GUI / CodeBehind drivers. Our GUI is running on WPF. Now, we got a number of possibilities for doing so, but one of the things we're considering is to create some sort of sub-Xaml XSD to let the create their GUI using markup (dunno if it'll be XAM...
I've got a MATLAB script that is called every half hour to build a chart that is placed on my webpage: load ~/emailAnalysis/results.txt temp = results(:,3)-1238370000; h=plot(temp,results(:,1)) xlim([0,max(temp)-1]) ylim([0 max(results(:,1))]) set(gca,'XTick',[1:86400*7:(86400*max(temp))+1]) set(gca,'XTickLabel',[1:1:100]) set(gca,'XGri...
I have some python scripts that run on a daily basis in cron. How can I have cron send me an email ONLY WHEN THERE IS STDERR OUTPUT from my script? I want to be able to mail multiple recipients, and set the subject line individually for each cron entry. I tried this: ./prog > /dev/null | mail . . . but it didn't work -- I still rec...
Hi All, is it possible to compile and package IE7PRO scripts as IE plug-in ? I've already developed a script on GreaseMonkey that's working fine under Firefox, and I wanted to port that js script under IE. is there any tools or libraries that allows this kind of compilation (.js (IE7PRO) -> IE Plugin) ? is there any other solutions li...
I'm in the process of switching my forms to use a View Script as their decorators. The examples I've seen so far do the following in the View Script: <td><label for='textEmail'>Email:</label></td> <td><?php echo $this->element->textEmail; ?></td> I would like to find a way to have the text to be displayed in the label from the Form Ob...
What is the best way to make sure that all the environment variables I need for my script have been set? Currently, I have multiple if-statements which is not very neat: if [ -z "$VAR1" ] then echo VAR1 not set exit fi if [ -z "$VAR2" ] then echo VAR2 not set exit fi if [ -z "$VAR3" ] then echo VAR3 not set exi...