Monday, May 23, 2011

C# library for accessing the REST APIs exposed by Redmine

I created a C# library for accessing the REST APIs exposed by Redmine, this is available at GitHub.

Here is some sample code to dump the first 100 issues of a project using this library.

RedmineClient rc = new RedmineClient("127.0.0.1", 80, "redmine", false, "api_key");
Projects projects = rc.getProjects(true);

// get all issues for project "test"
Issues issues = rc.getIssues(projects.getProjectByIdentifier("test"), 0);
issues.dump(project.name);

This library makes use of XmlSerializer to automatically translate C# objects to XML and XML to C# objects.

Friday, May 13, 2011

Charting the CPI-U since 1913 for USA

If you plot the chart for inflation data from 1913 to 2011 Apr, you would think that inflation is rampant and growing very fast as seen below.


Now take the same chart and make the Y axis logarithmic and you see that actually inflation is well under control since 1982.
ftp://ftp.bls.gov/pub/special.requests/cpi/cpiai.txt