automation

How to recreate this PHP code in Python?

I've found a PHP script that lets me do what I asked in this SO question. I can use this just fine, but out of curiosity I'd like to recreate the following code in Python. I can of course use urllib2 to get the page, but I'm at a loss on how to handle the cookies since mechanize (tested with Python 2.5 and 2.6 on Windows and Python 2...

Xcode 3.1: setting copyright statement on a per-project basis?

I'm an independent developer working primarily with iPhone applications, and I'm currently engaged in several different projects. Some are for myself, and others are for one of a number of clients. Because of this, I'd like to have a way to have Xcode set the copyright notice at the top of each source file on a per-project basis. I've s...

svn: How to automate commit transferring between branches

I want to automate this process: A number comes from an external system, let's say 35. Search and find svn commits which have #35 in their comments on branch A. Make list of all the changes of these commits to the commits before them. Apply this changes to branch B. For e.g. if rev 95 has #35 in its comments and introduced a new file...

Your most persuasive arguments in favor of automating a process

How do you convince people (i.e. non-programmers) that automating a process is a GOOD thing? The common argument against is something like "But you only have to do [X mindnumbing task]" and "it only takes [Y mindnumbing time], just do it and don't waste time trying to change things." Any other programmers working in non-dev jobs where ...

DTE.ExecuteCommand and wait

Hi, I would like use macros for publishing my webapplication project. The little problem is, DTE.ExecuteCommand run asynchronously, and I need to wait until the command is done. Example: DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate() DTE.ActiveWindow.Object.GetItem("04 - Products\04 - Products.WSS").Select...

Auto insert date and time in form input field?

Using javascript, how can we auto insert the current DATE and TIME into a form input field. I'm building a "Problems" form to keep track of user submitted complaints about a certain service. I'm collecting as much info as possible. I want to save the staff here from having to manually enter the date and time each time they open the form...

Adding Jobs to the 24x7 Scheduler

In the 24x7 Scheduler, a service that automates batch jobs, I always switch jobs from development to production on a one by one basis. Is there a method to perform this automatically, via XML or some other configuration utility? ...

Can a GNOME application be automated? How?

Can a GNOME application be automated? I.e., can I programatically interact with its user inteface? How? ...

ClearCase : list the content of a directory (ls) using CAL.

Hi; In ClearCase, you can list the content of a directory using "cleartool ls". My question is how can I do the same thing using CAL (ClearCase Automation Layer). The reason I prefer the COM API is because I won't have to parse the output of "ls". So far, I am able to get the VOB and the View successfully, but I didn't find any method...

How can I automate installation of a package to Linux and Windows Virtual Machines on VMware ESX4?

Hi, I would like to create an application that will traverse a Virtual Infrastructure using the vSphere Web Services API (this part I have handled) and perform and unattended install of some given package on Linux and Windows machines (this latter part I can't figure out. It looks like you can not use the VMware Update Manager to insta...

PivotalTable scripting problem on localized MS Excel

We have a problem, that client has Office 2007 with Latvian language pack. In that problem the same FOX PRO code that creates Excel report fails on creating PivotalTable. See failing code line below: oPivotTable = oPivotCache.CreatePivotTable("Sheet!R1C5", "PivotTableName", 1) Without installed language pack all works fine! ...

Supress or Ignore Non-Trusted Certificate With FTPS.exe (MoveIT Freely)?

One of the FTP accounts that I use recently began requiring secure FTP connections, which broke a script that I used to upload to it using a 'standard' FTP library. I've written a little batch file that will upload the 2 files via FTPS.exe (MoveIT Freely), but I get a dialog box that pops up and requires me to click yes. Normally this ...

Is it possible to automate postback from the client side?

One of my clients needs to pull customer data from a web service periodically. The data itself is provided as CSV files via javascript postbacks, as is most of the navigation within the service's website. Right now, the worst bottleneck in the entire system is the need for a human to log into the web page, navigate to the download page...

Automatic assignment of tickets with Trac

Hello, I'm using Trac (v0.11), and I'd like to: automatically assign a ticket to someone, as it's opened, basing on certain rules hide the "assign to" and "CC" fields from the "new ticket" screen How can I do that (scripting, workflows, etc.)? Thanks ...

why don't more programming languages have builtin interfaces to the window manager?

Programming is at the heart about automating tasks on a computer. Presumably those tasks would normally be done manually by a human. Humans use the computer through the keyboard, mouse, and interaction with the console or the window manager. But very few languages have built in functions that provide an interface to these basic computin...

Browser automation: Python + Firefox using PyXPCOM

I have tried Pamie a browser automation library for internet explorer. It interfaces IE using COM, pretty neat: import PAM30 ie = PAM30.PAMIE("http://user-agent-string.info/") ie.clickButton("Analyze my UA") Now I would like to do the same thing using PyXPCOM with similar flexibility on Firefox. How can I do this? Can you provide samp...

COM automation using tlb file

Hi, Consider me a novice to windows environment and COM programming. I have to automate an application (CANoe) access. CANoe exposes itself as a COM server and provides CANoe.h , CANoe_i.c and CANoe.tlb files. Can anyone specify how to write a C++ client, for accessing the object, functions of the application. Also, please specify ho...

Is a Windows Service application the right approach

I currently have a windows application which is automated and runs daily. the purpose is to access a webservice to download a dataset, inserting into sql 2005 database. Is a windows service application suitable in this situation, would it be more flexible, and would it perform better. ...

How to make Excel VBA Automation Execute for All End Users

Hello: I wrote the following code so that when an Excel spreadsheet is closed it will update its name with the current date and time: Private Sub Workbook_BeforeClose(Cancel As Boolean) If ThisWorkbook.Name = "Name_Last Opened-" & Format(Date, "MM-DD-YYYY") & _ "_" & Format(Time, "HH.MM") & ".xls" Then Else ThisW...

Source of data for "official" country/region list

Hi everyone, Lately we've started getting issues with outdated countries / regions list being presented to users of our web-application. We currently have a few DB tables to store localized country names along with their regions (states). However as the planet goes, that list is in constant evolution and it's proving to be a pain to...