How Digg works – New Digg Technology Blog

We often get asked how Digg works from a technology perspective, so wanted to shed some insight on this with our first post from the newly-launched technology blog. We
’ll be posting regularly to give you a peek at what’s under the hood from the Digg development teams.

read more | digg story

Zero to Continuous Integration with Windmill | Adam Christian

Zero to Continuous Integration with Windmill | Adam Christian
Following ‘automation’ and ‘continuous integration’ in the micro blogging world I have seen a major influx in people being super interested in functionally automating their web apps. I have seen a slew of things about Grid, and Selenium, and people hacking on Watir so I decided to show you from the ground up how incredibly easy it is to get automated test running setup using Windmill and Hudson. I am not going to walk you through every detail, this is much more high level but I do plan to start a ‘continuous integration’ page on getwindmill.com in the near future for those kinds of details.

The first step is to get a couple machines that you want use as slaves and a machine to run Hudson, our setup looks like this:

Each of the machines with a different OS has Windmill installed. To make them slaves you simply bring up the Hudson web page on the machine, and run the launcher.. now it’s a slave — crazy easy right?

Now to setup test runs for the machines, in Hudson you click: “New Job” on the left hand side and do something like the following:

Mac Automation: Quickly add to-dos/events to iCal- The Unofficial Apple Weblog TUAW

Mac Automation: Quickly add to-dos/events to iCal- The Unofficial Apple Weblog TUAW
How many times have you been watching TV and wanted to quickly add a to-do or event maybe both to iCal? In this Mac Automation post, Im going to show you how to create both a to-do and an iCal event from within Automator. You will be able to add new items to iCal without ever having to open it. Lets begin.

Creating the Automator Workflow New iCal Event
First we need to create an Automator workflow that will add the to-do and event to iCal. To create the workflow, just add the “New iCal Events” action to the workflow area. Before you continue, be sure to click the “Options” button at the bottom of the action and select the “Show this action when the workflow runs” checkbox.

Saving the Automator Workflow
To give you quick and easy access to the creation of iCal events, you can choose the Save As method of your choice.

Running the Workflow
To run the workflow, click the “Run” button in the top-right corner of Automator or launch it as an application. When you run the workflow, you will be presented with a dialog that will ask you to specify a Name, Date, Time, and other information. When you press “Continue,” the workflow will create the event in iCal.

SSH and SCP: Howto, tips & tricks

A basic tutorial about the Linux commands ssh and scp. It features explanation about the syntax, the possibilities and the differences between the two. It also features some tips and tricks that’ll come in handy when working with these programs.

read more | digg story

ShellSQL – SQL for shell scripts

ShellSQL – SQL for shell scripts
ShellSQL is a suite of programs designed to enable LINUX/UNIX shell scripts to connect to SQL engines and execute SQL queries and commands in a simple way enabling intergration with the rest of the script. For example, it can do things like..

#/bin/shHANDLE=`shpostgres dbname=mydb`

shsql $HANDLE "begin"

for ARG in $

do

shsql $HANDLE "insert into mytable fld1, fld2" \

"values nextvalmyseq, $ARG"

done

shsql $HANDLE "commit"

if [ $# -gt 0 ]

then

ROWS=`shsql $HANDLE "select count from mytable"`

echo "No of rows now in table is" $ROWS

fi

shsqlend $HANDLE

For details on how it hangs together have a look at the overview.

Easy Automated Web Application Testing with Hudson and Selenium » Vitamin Features »

Vitamin Features » Easy Automated Web Application Testing with Hudson and Selenium
What will you get out of this article? Our set-up achieves the following:

  • It checks our Subversion repository every hour to see if anyone has committed any changes.
  • If they have, it updates the project from Subversion and builds it.
  • It then creates a clean version of our application database, loads in reference data and deploys the application on our app server.
  • A job is triggered that runs through a series of tests in a remotely-controlled web browser on the fresh application.
  • Anything that deviates from the accepted norm is logged and screenshots of the web browser are taken.
  • Screenshots of the browser are also taken for key pages of the site for later checking by a human.
  • If any of the tests fail, the developers responsible for the changes are notified by email of the problems.
  • Our issue tracker is updated with any issues that were fixed in the build.

Installing Apache Tomcat 6 on Mac OS X 10.5 Leopard

Installing Apache Tomcat 6 on Mac OS X 10.5 Leopard
Installing Apache Tomcat 6 on OS X 10.5 Leopard is primarily a matter of downloading the appropriate packages and then following the installation instructions. However, you will have to make a few modifications to some make scripts and source code to successfully compile JSVC on Leopard. To compile the MOD_JK connector or the JSVC daemon, you must have OS X development kit installed.

In this document, the environment variable $CATALINA_HOME refers to the directory where you installed the Tomcat binaries and $JAVA_HOME refers to the directory of the JAVA runtime environment. At the time of this writing, Tomcat 6.0.16 is the latest Tomcat 6.0.x release and requires Java 2 Standard Edition 5 J2SE 5.

Follow

Get every new post delivered to your Inbox.