scripting

what is the most efficent Python script to the below question?

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...

How to authenticate to the server over a secure connection to send mail from a script?

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...

How to suppress Script error warnings when using TWebBrowser in Delphi?

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...

script to move all files from one location to another location

can someone help me with a dos script to move all files from one location to another location ...

Scripting library for the Compact Framework

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? ...

Are there any escaping syntax for psql variable inside PostgreSQL functions?

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...

How to fix “No newline at end of file” compiler warning for lots of files

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 ...

Ant script to modify a jar

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? ...

Can you recommend: a mailing list script?

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 ...

Generating scripts for database role membership in SQL Server 2005

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 is shell scripting?

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? ...

Ant mapper: Changing file name using a property

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="(.*)$...

DTS SSIS- Task Script and Threading?

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. ...

Code that finds missing files in a series

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 ...

c# compile source code from database

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 need a simple website navigation in PHP.

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...

script to generate diffs between consecutive commits, and writing them to file

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 >...

ant scripts to build apk file and load it in a emulator?

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...

SL4A - Scripting Layer for Android

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...

C++ Implementing scripting (Repeatable Actions)

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...