I want to display script errors in a popup alert instead of showing them in the browser console.
window.onerror = function() {
var message = /* get error messages and put them here */;
alert(message);
return true;
};
Findbugs script in build.xml:
Findbugs checks Coding...
Findbugs checks Coding...
genetate a findbugs_result.xml.
Download Findbugs plugin for hudson.
Enter findbugs_result.xml path for hudson.
But hudson can not display on main interface. why?
I want to write a php script that I can use from the command line. I want it to prompt and accept input for a few items, and then spit out some results. I want to do this in php, because all my classes and libraries are in php, and I just want to make a simple command line interface to a few things.
The prompting and accepting repeated command line inputs is the part that's tripping me up. How do I do this?
Hi,
Any one help to to get the extract value from the java script date time utc format. I am using a C# web method which is returning a date and i have to set that date with Timezone.
Thanks
I had a script which sends sms alerts everyday. I want it to send automatically send sms by fetching message from database. Can I do it without cron. Is there any other solution. Plz help
I have created a mysql database using work brench. It has about 20 tables. I cannot figure out how to run scripts on the database.
Basically, I want to make a database creation script which will allow me to create my database on any other mysql server.
I am very new in bash and never coded in before but this task is stuck so need to get rid of it .
I need to make bash script to make a single compressed file with several dirs.
Like -
/home/code/bots/
/var/config/
.
.
.
/var/system/
and all will be compressed to single file /var/file/bkup.[zip][tar.gz]
Thanks in advance
i have a script in jquery (that grabs a value from a select field and transfers it to an input field) that i need to do in mootools...i love jquery... mootools i dont know...
not having much luck...
here is the code:
- Select an Article -Acetaia LeonardiEsperidiaFrescobaldi LaudemioPrimitiviziaPrincipato LucedioRustichella d'Abruzzo
--
I have stored a bulk of objects in an ArrayList and I have set that in the request. Now I want to retrive the values in the Arraylist from my java script. Please help me with the solution
I am looking for a free for commercial use classfields/ad portal script that would work either under apache + postgresql/mysql or under windows (asp.net + sql server express).
Could you recommend something?
Maybe I should use joomla with an extension like adsManager?
I have daemon script written in Perl that checks a database tables for rows, pulls them in one by one, sends the contents via HTTP post to another service, then logs the result and repeats (only a single child). When there are rows present, the first one is posted and logged immediately, but every subsequent one is delayed for around 20 seconds. There are no sleep()'s running, and I can't find any other obvious delays. Any ideas?
How do I format a date in a korn shell script to DD-MON-YYYY?
I have tried the following:
date '+%d-%h-%Y'
It returns 04-Nov-2009 I need for the Nov to be NOV (all caps). Can this be done with the date utility?
I want to run my ruby script x times a day (the number might change) on my linux box. What would be the best way to do so if I do not want it to happen at the same time? I want the time (hour and minute) to be random
I'm looking into using the ImageShack.us API for uploading images from my website. I found this tutorial for using it with the XML return http://elliottback.com/wp/using-the-imageshack-xml-api/, but I'm not sure about what to do with it. Where do I enter my API key for this script? Furthermore, he shows the use of two PHP files - should these be combined into one file?
Any help with this would be appreciated (examples would be even better).
Does anyone happen to have some sort of a nice command line script they use that could do something like:
Clean VS project (delete \bin folder contents, etc)
Backup SQL Server database
Zip all files up
I want to start up my Rails development server like this:
script/server OFFLINE_MODE=1
and have a method that checks for the presence of that constant:
helper_method :offline_mode?
def offline_mode?
defined?(OFFLINE_MODE) ? true : false
end
so I can hide stuff in my app when I'm coding without access to the internet. For some reason though, OFFLINE_MODE doesn't ever seem to be defined and the method always returns false.. thoughts?
I am trying to create a script to detect whether a directory exists, and if it does, to create it.
How can I do that?
I did some digging and found a clue:
test -d directory
...will return true or false depending on whether the directory exists or not.
But how do I tie this together with mkdir?
I launch script.sh and inside it i want to know what is his name
Is there a standard procedure to know the scripts name ? the idea is to be able to extract the name from teh full path + name contained in $0
Thanks
use sed to replace every occurrence of /dir with $dir (replace / with $) in every script in a directory.
sed "s#/dir#$dir#g"
The $ keeps being interpreted as a function or variable call.
Is there a way around this?
thanks