Wednesday, November 29, 2006
Tuesday, September 05, 2006
Stuff I find useful
Visual Studio 2005
Cygwin - Free unix style utilities such as grep, xwindows client etc.
SQL Developer - Free ide from Oracle. Extensible plug-in architecture.
Firefox - Much better browser than Internet Explorer. Configurable.
CruiseControl.Net Continuous integration tool
Enterprise Architect - UML tool
Textpad/UltraEdit32 - Text editors, UltraEdit has more features but textpad is more lightweight.
Refactor! - Refactoring addin for Visual Studio
FXCop Code analysis tool
NUnit - Unit testing tool for .Net
Quest Code Tester for Oracle(previously known as QUTE)
SharpDevelop 2.0 - Open Source IDE for .Net (C#,VB and Boo). It includes a tool for converting VB to C# and vice versa.
Oracle Developer Tools - Addin for Visual Studio
Tuesday, April 18, 2006
Troubleshooting automated builds with CruiseControl.Net, PVCS and MSBuild
The tool is fairly well documented using a wiki. As with many wikis though, some parts of the documentation receive more attention than others. This caused me a few problems as we are using an old version of PVCS for source control and the PVCS docs are a bit thin. I got it working after a bit of trial and error and subsequent browsing of other areas of the site for different source control providers gave some tips that appear to be common to all source providers, so a common section would have been useful.
Installation was fairly simple and I proceeded to set up a simple test project:
<sourcecontrol type="pvcs">
<!--client executable-->
<executable>X:\VM\Win32\Bin\pcli.exe</executable>
<!--PVCS Database-->
<project>S:\PVCS Databases</project>
<subproject>/LIBRARY/.Net/NullableDateTimePicker</subproject>
<workingDirectory >C:\development\LIBRARY\.Net\NullableDateTimePicker</workingDirectory>
<!--<recursive >true</recursive>-->
<autoGetSource >True</autoGetSource>
<labelOrPromotionName >shared_DEV</labelOrPromotionName>
</sourcecontrol>
This configuration did not work and I had to investigate a bit more how it works. What seems to happen is that CruiseControl issues a succession of pcli commands and use the output from each to build further batch files for use by the next command. On my system, these batch files were saved to my temp directory:
C:\Documents and Settings\myname\Local Settings\Temp
When the next command attempted to use the file as input, the directory name was not escaped so the embedded spaces caused it to fail. I worked around this by setting my TEMP and TMP environment variables to point to C:\agtemp\temp this allowed me to proceed to the next step.
Now that the pcli commands were succesfully running, I had to change a source file in order to trigger the build. When I did this, I noticed that the pcli command produced by CruiseControl only got changed files when I had assumed that it would get all files in the project. This does make sense as the structure in PVCS does not neccesarily map directly to the .Net project structure. You are supposed to already have all the source code available in your working directory before starting CruiseControl which then just gets subsequent modifications before performing the build. If you need to get all of it then you can do a get for a specific label or promotion group by adding a </labelorpromotionname> element whose value corresponds to your label or promotion group.
Finally, I wasn't getting any executables even though the build was reported as succesful. This was another mistaken assumption on my part as I thought that it would automatically call MSBuild for the project. I added an MSBuild task to the project and configured it to call my solution file which then resulted in a shiny new dll in the release folder.
Thursday, April 13, 2006
Automating builds with PVCS and MSBuild
REM -aworkpath Path to place workfiles in. Overrides default workspace for project
REM -bpprojpath path to base project to use when resolving references, required when -a or -o specified
REM -prDBpath to PVCS database
REM -z recursive flag, operate on specified project and all sub-projects
REM -gPromotionGroup get files with specified promotion group or higher
REM entity project to operate on
x:\vm\win32\bin\pcli get -bp"/Billing/Source" -gGBDEV -pr"X:\VM\vmdevint" -aH:\gettest -z "/Billing/Source"
REM cd to workpath
cd H:\gettest
REM
REM C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild /logger:EmailLogger,"C:\EmailLogger\bin\Release\EmailLogger.dll";To=buildmanager@tempuri.org;From=buildmanager@tempuri.org;Subject=BuildLog:%DATE%;Host=mail.tempuri.org Billing.sln
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild Billing.sln
Friday, March 31, 2006
Photos
Most of the UK print shops (Jessops, SupaSnaps etc.) have some online ordering and photo-sharing facilities, however they often have limits on the amount of time that photos will be kept for and/or storage limits. Also, the bulk upload facilities often rely on ActiveX controls which is a pain if you use Firefox as your browser or a non-Windows OS such as Linux.
I have finally settled on photobox.co.uk. The browser based bulk upload tool is a java applet so it works on linux and they also allow you to upload files by FTP. There is an initial storage limit of 200 Mb but this increases by 50Mb for each order placed.
Friday, March 24, 2006
Finally resurrecting this blog
del.icio.us is a much better alternative.