Monthly Archives: August 2009

Melting Icebergs, Devil Ducks and Epics – Agile 2009, Day 2

Was yesterday really only the second day of Agile 2009? Then I have to hurry to write down my impressions, before the next day will have been started.

(read more…)

Andreas Ebbert-Karroum

 

Masti, Co-Creator, Pair vs. Review, Agile Games – Agile 2009, Day 1

Wow, the weekend and also the first day in Chicago are gone. Even before the conference started, I had the opportunity to meet many people whom I only knew from books and blogs. On Saturday night, shortly after arriving at the hotel, I met Scott Duncan (@softqual) and Bernd Schiffer (@berndschiffer) for a drink. We managed to arrange that over Twitter, very unique experience for me. We met in the BIG bar of Hyatt, with a splendid view over Chicago by night, and slowly warmed up for the conference.

Pizza, Chicago Style

Pizza, Chicago Style (pic by George Dinwiddie)

(read more…)

Andreas Ebbert-Karroum

 

FitNesse vs. Robot Framework – Agile Testing Tools

Selecting the “Opponents”

From the rather huge amount of – commercially and freely available – tools supporting agile testing I would like to have a closer look at FitNesse and the Robot Framework. Both tools are available for free and by looking at the corresponding project pages it can be seen that both frameworks are constantly enhanced. Another positive aspect is that there are mailing-lists available that can be used to get support. This is definitly helpful when using one of those tools in some real-life projects. Of course selecting these tools for a review might feel a bit random, especially because there are lot of other tools in this area. For example Concordion as a freely available alternative or Liquid as a commercial one to name only two. But as time is – unfortunetly – a limited resource I had to do some preselection here. Hopefully there will be the possibility to have a look at some of the alternatives in some later article still.

(read more…)

Thomas Jaspers

 

Eclipse: Resource is out of Sync (no more)

Probably everyone working with Eclipse knows the following message that shows up when a file that belongs to the Eclipse workspace is changed outside of Eclipse:

Resource is out of sync with the file system: '<Path>'

Press 'F5' or select File > Refresh to refresh the file.

(read more…)

Thomas Jaspers

 

Analyse code metrics with Sonar

Code metrics are one means of quality assurance for software projects. Most likely everyone has already worked with tools like Cobertura, FindBugs or Checkstyle.

Sonar combines the functionalities of these (and additional) tools for static code analysis and offers a comfortable web frontend to analyze the collected data.

(read more…)

Thomas Jaspers

 

International iCalendar File Processing, It’s Groovy

Tonight, I wanted to plan my schedule for the forthcoming Agile 2009 conference in Chicago. I very much look forward to the conference and can hardly make up my mind, which sessions I want to see – because there will be so many I will miss. Planning requires some form of organization, and the conference webpage offers to download iCalendar files to import the sessions into your calendar. This is a great idea, but doesn’t work if you either live in a different timezone that Chicago, or use Outlook as your calendar. My assumption is that one of the two criteria will match most conference participants, which really makes me wonder how well tested the calendar file feature on the webpage is. Anyway, I took a dive into the specs of iCalendar and wrote a little Groovy script to convert the available calendar files.

>> All sessions are converted and available for download, ready to be imported into your calendar.

There were two problems with the original files. Here’s one example:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:Agile2009
METHOD:PUBLISH
CALSCALE:GREGORIAN
X-WR-CALNAME:Agile2009
X-WR-CALDESC:Agile2009
BEGIN:VEVENT
UID:1220
DTSTART:20090825T140000
DTEND:20090825T173000
SUMMARY:User Stories for Agile Requirements
LOCATION:Columbus IJ
URL;VALUE=URI:http://agile2009.agilealliance.org/node/1220
DTSTAMP:20090209T022940Z
LAST-UPDATED:20090723T173948Z
END:VEVENT
END:VCALENDAR

Timezone

The start and end time contains no timezone information. The iCalendar specifies that if you postfix that time with a “Z”, it means that the time is UTC. So the transformation is simple: add five hours to convert Chicago time to UTC, and append a “Z”.

Outlook

The second problem becomes apparent as soon as you import your second session. On the first import, Outlook outmatically creates a new Calendar “Agile2009″. Nice. When you import your second session, it goes again into a new calendar “Agile2009 (1)”. You get the pattern. To fix it, you have to remove the X-WR-CALNAME and X-WR-CALDESC properties. This seems to be a common problem with Outlook. But luckily, this is also easy to fix.

Groovy

To automate the conversion (and scrape all calendar files from the Agile 2009 conference webpage), I wrote this script. I’m sure it still can be optimized. What I really love is the String handling with negative indexes and easiness of regex handling, it makes these kind of tasks so much easier :)

public class ConvertCalendar{
 
private static final String VCAL_TIME_FMT = "yyyyMMdd'T'HHmmss";
 
public static void main(def args){
// use the smartphone page to get all valid session numbers
// http://agile2009.pairwith.us/sessions
InputStream sessionStream = new URL("http://agile2009.pairwith.us/sessions").openConnection().inputStream
 
String sessions = org.apache.commons.io.IOUtils.toString(sessionStream);
 
List calList = new ArrayList();
 
// href="/sessions/5107"
sessions.eachMatch(/href="\/sessions\/\d{1,4}"/) {
	InputStream calendarStream = new URL("http://agile2009.agilealliance.org/session_ical/" + it[16 .. -2]).openConnection().inputStream
	String calendar = org.apache.commons.io.IOUtils.toString(calendarStream);
 
	File calendarFile = new File("./cals/temp - calendar.ics");
	def calendarFileWriter = new FileWriter(calendarFile)
	def calendarFileName = "";
	calendar.eachLine {
		def vCalLine = it;
		if (vCalLine ==~ /^X-WR-CALNAME:.*/ || vCalLine ==~ /^X-WR-CALDESC:.*/) {
			// ignore that line
		} else if (vCalLine ==~ /^DTSTART:.*/ ) {
			def origDate = Date.parse(VCAL_TIME_FMT, vCalLine[-15..-1])
			vCalLine = vCalLine[0..-16] + DateUtils.addHours(origDate,5).format(VCAL_TIME_FMT) + "Z";
			calendarFileWriter.write("${vCalLine}\n")
			calendarFileName = origDate.format("yyyy-MM-dd'T'HHmm");
		} else if (vCalLine ==~ /^DTEND:.*/) {
			def origDate = Date.parse(VCAL_TIME_FMT, vCalLine[-15..-1])
			vCalLine = vCalLine[0..-16] + DateUtils.addHours(origDate,5).format(VCAL_TIME_FMT) + "Z";
			calendarFileWriter.write("${vCalLine}\n")
		} else if (vCalLine ==~ /^SUMMARY:.*/) {
			calendarFileName = calendarFileName + " " + vCalLine[8..-1].replaceAll("[^\\w\\s]", "")
			println "Processing " + calendarFileName
			calendarFileWriter.write("${vCalLine}\n")
		} else {
			calendarFileWriter.write("${vCalLine}\n")
		}
	}
	calendarFileWriter.close();
	calendarFile.renameTo(new File("./cals/"+calendarFileName+".ics"))
 
	calList.add(calendarFileName+".ics")
	calendarStream.close();
}
 
println "Text to paste into Wordpress after uploading: "
println "<ul>"
Collections.sort(calList)
calList.each {
	println "<li><a href="\">${it}</a></li>"
}
println "</ul>"
 
}}
Andreas Ebbert-Karroum

 

© 2010 codecentric