Possible Duplicate:
What is your solution to the FizzBuzz problem?
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".
Here is what I have right...
My current script uses this simple command:
mail -s "$my_msg" username\@mycompany.com </dev/null
When changing it to use a mailing list rather than the hardcoded username:
mail -s "$my_msg" mailing_list_1\@groups.mycompany.com </dev/null
It produces:
550 Unrouteable address
I need to be able to authenticate to the server over...
Possible Duplicate:
how to disable javascript errors on twebbrowser ?
I'm using the TWebBrowser component with Delphi 6.0 to display a YouTube web page. Sometimes I get a Script error message box from Internet Explorer, which TWebBrowser embeds, complaining that an error has occurred in a script running on the page and prompt...
can someone help me with a dos script to move all files from one location to another location
...
Hi,
Does anyone know if there is a scripting library for the .Net Compact Framework 2.0 (WinCE 5) available?
Something like Iron Python, or LUA?
...
I write PSQL script and using variables (for psql --variable key=value commandline syntax).
This works perfectly for top level scope like select * from :key, but I create functions with the script and need variable value inside them.
So, the syntax like
create function foo() returns void as
$$
declare
begin
grant select on my_tabl...
I have a huge number of source files that are all lacking a newline at the end. How do I automatically add a newline to the end of each of them?
Some may already have a newline, so it should only be added if necessary.
I'm probably not looking for code, per se, but just something I can run in Terminal to add the necessary newlines (or ...
Is there a way I can modify a file in a jar using ant script. Like, I have a x.properties in a y.jar. I want to edit this x.properties and put it back into the y.jar using ant script. Is this possible?
...
I'm looking for a subscribe/unsubscribe mailing list to install on my website.
Requirements:
PHP/MySQL;
Cron job: uses scheduling to send email in batches;
Multiple languages: when user is subscribing, they need to select preferred language from a drop-down;
Send in both HTML/Text;
Bounce-email check;
Double opt-in: user must confirm ...
I have a database with a lot of users in it. Those users belong to different built-in roles in the DB (eg db_ddladmin).
I want to generate a script that creates those same users with the same role assignments to use in a different database. SQL Management Studio seems to only generate sp_addrolemember calls for user-defined roles, not ...
What exactly is shell scripting?
And what is Bash, Korn, and Expect? I use a few commands in a Linux terminal, is that shell scripting too? Again I am confused what exactly is shell scripting?
...
I have a ant property app.prod= production
During the an build, I want to replace all files in a particular directory with production in its name to same nma e without 'production' in it.
Example
File names are
abcproduction.xls
cdeproduction.xls
I want to remove change the file names to
abc.xls
cde.xls
<regexpmapper from="(.*)$...
Dear All,
I have written a task script using vb.net that have thread used in the code, the problem is how i can know when will be finished all the threads so i can return the success result.
Thanks alot.
...
Hello,
I'm looking for a line of code that identifies missing files in a series of files and exports that list to a txt file. For example: a directory called 1to100000 contains pdfs named 1,2...99999,100000 but is missing some from the series. I would like the script to report those missing files to a txt file. Ideally this would be an ...
Hi,
I would like to build an application framework that is mainly interpreted.
Say that the source code would be stored in the database that could be edited by the users and always the latest version would be executed.
Can anyone give me some ideas how does one implement sth like this !
cheers,
gabor
...
I'd like to write a new website from scratch. I'll be using PHP for server-side and Flash/HTML for client-side.
How can I achieve a website navigation something like this http://mariotestino.com/ [site auto-plays sound]
Notice when you click on Projects | Arts | Contacts...etc...you do not see .html page, instead it has a clean URL.
I...
In order to view changes or diffs between commits, i use the following from the command line:
svn diff -r 3000:3025 > daychanges.diff
I want to modify the command so that it generates diffs between successive commits, concatenates them and outputs to file, something like
svn diff -r 3000:3001 > daychanges.diff
svn diff -r 3001:3002 >...
Hi.
i am trying to create a build.xml script that cleans, builds and creates a apk file of a Junit android test project that i have created.
the steps i want to achieve in my build file is this:
clean
build
create apk file
Sign apk file
launch emulator
install apk file
run instrumentalTest
Save the tests into an HTML Junit Repo...
I read an article from the web on SL4A (which is also known as Android Scripting Environment).
The site from where i got an article is:
http://infoworld.com/d/developer-world/php-development-comes-google-android-652
But i got the theorical knowledge only for SL4A (ASE)....
Anybody having practical idea or practical example, pls sugge...
I have a desktop app written in C++. It does a variety of different things and interacts with a database. I have made most actions that need to be performed selectable from a list. Actions are performed serially on data sets and need to be saved and played back at a later time on a different result set.
The actions are typically perform...