20 February 2014

Java and more: 10 Eclipse projects that have made waves

Java and more: 10 Eclipse projects that have made waves

14 February 2014

MS Word numbering is wrong

Ran into this today while working on a Word 2010 document: After inserting a caption under a figure, I'd try to insert a reference to it (References > Cross-reference > Figure), only to have it missing from the list of figures. The same thing was happening to the Table of Figures at the start of the document. Hmm. What's going on here?

Research revealed an answer: When Track Changes is enabled (which it was), you'll run into weird behavior with reference numbers in Word. Solution is to accept the changes, do a print preview or Update Table on the figures, then Word will show the figures in its cross-reference list. Not the ideal solution, but at least it works.

13 August 2012

Solr date formats in C#

The Solr search engine requires dates to be in the UTC format. Using C# to create a Solr crawler, I came across a challenge as the engine would not accept the default dates. It kept throwing errors: "Error adding field". Some research revealed that Solr expects dates to always end with the "Z" character. This handy page showed the different String.Format() patterns to get just about any date string you need. This one worked for Solr:
var date = String.Format("{0:yyyy-MM-ddTHH:mm:ss.fffffffZ}", 
This produces a date in this format in Solr:
Check out this documentation on the Solr date formats.