Brandon M. West

21Mar/105

Using a Vodacom/Vodafone 3G Card on Mac OS X

I'm in South Africa at the moment and my CDMA phone is useless here. I got a Huawei wireless USB modem from Vodacom to use, but for the first few days I had it I could only get it to work on my virtualized Windows machine. I finally managed to get it working by allowing OS X to do the configuration and dialing rather than the Vodafone Mobile Connect software.

6Feb/101

Posting a Lead to SugarCRM from Drupal via Webform

I was helping a friend solve the issue of capturing a lead to Sugar 5.2 from a form in Drupal 6 and my searching was not turning up a clear answer. This article was a good start but was a bit out of date and missing a couple steps. On the issues page for the SugarCRM Drupal module, I found a couple other useful hints. This guide should work for Drupal 6 and SugarCRM 5.1+.

21Dec/091

Indexing Legacy Data with NHibernate.Search

While configuring NHibernate.Search, I ran into an issue while attempting to batch process a million or so legacy records. When I created the index directly from Lucene.Net, things were speedy and working as expected. When I created the index via NHibernate.Search, the indexer was generating way too many index files, numbering into the hundreds of thousands. As a result, the number of file operations was increasing drastically with each iteration of the indexer, such that the FullTextSession.Index call would never finish.

I spent a long time messing about with different merge factors and max file parameters for Lucene.Net, but I was never able to make it work as I expected. The solution ended up being to force an optimize on the index after a certain number of records. Optimizing a Lucene index is analogous to defragging a harddrive; it orders and compacts the thousands of splintered .cfs files into one big file, thereby solving the problem of having to scan a growing number of files before each write.