Saturday, September 25, 2010
Zucchini Bread
Wednesday, July 07, 2010
latest developments
Books read:
- Forest of Hands and Teeth -- Like someone mashed up The Village with Zombies. Pretty good, except for the teenage angsty bits.
- Ariel -- Post-apocolyptic, technology-fails, SCA members finally feel superier, boy-meets-unicorn story. You know, that old chestnut. Enjoyed it more than S.M. Stirlin's Dies the Fire.
- Boneshaker -- Zeppelins, Zombies, Zteampunk. Fun and exciting.
Movies:
- Valkrie -- Interesting story I'd heard bits of before. Unrealistic-sounding, preachy dialog about their motives kind of took you out of the story. Not that the end result of what they were trying for was bad... just that at least the politician's motives seemed more realistic, while the military guys were more pie-in-the-sky. But, maybe that's how it actually went down.
- Undead or Alive -- Chris Kattan and James Denton as cowboys during a zombie outbreak. Suprisingly good and funny in a shut-off-your-brain kind of way. The zombies were too unkillable, but still fun. Navi Rawat was as annoying as ever.
Tuesday, March 16, 2010
roomba: better than jesus?
about shoddy parts and difficulty with returns on the 5XX series. Decided to get it at
Costco since their return policy is ludicrously good.
So far, so good. It deals w/ electrical cords and rug tassles without any issues. It also
doesn't appear to have any problems transitioning between rug and hardwood floor. Only
have one extra-fluffy bathroom rug that it has trouble with.
The scheduling feature is great. I can schedule it to clean up automatically while we're
at work. I come home and it's waiting for me on the charger, ready to have its bin
dumped. Typically, I'll clean it out, then set it loose in the basement while we're
spending the evening upstairs. And when I go to bed I clean it out again and put it back
on the charger for its automated run the next day.
On the whole, really really like it. We'd typically only vacuum once a week, and with the
dog and cat that meant big dusty hairballs at the end of the week. Roomba's taken care of
those.
Definitely still need our other vacuum, since roomba's just bouncing around
semi-randomly. But, I don't have to worry about neighbors popping over and getting
swallowed by a dust bunny.
Friday, March 12, 2010
UnitTest++ == teh awesome
- set up
- add new tests
- explain to the other developers
- ?
- profit
Our unit tests are part of our project's Visual Studio solution file. Each unit test's project is setup to run the unit test as a post-build step. So far, it's caught a number of 'simple' fixes that broke some.
I've also setup a Hudson server to automatically build our project... But, I didn't want it to fail the build if the tests failed. And, I wanted to collect the XML reports when it's built from the continuous integration server.
So, rather than always just blindly calling UnitTest::RunAllTests() in the unit tests's main() function, I made a utility library that'll look at an environment variable to determine how it should run the tests.
In the unit tests's main() :
int main(int, char const *[])
{
return myUnitTest_runAllTests("my_test");
}
The utility function:
#include "cstdlib"
#include "fstream"
#include "iostream"
#include "boost/filesystem.hpp"
#include "UnitTest++/UnitTest++.h"
#include "UnitTest++/XmlTestReporter.h"
namespace bfs = boost::filesystem;
struct True
{
bool operator()(const UnitTest::Test* const) const
{
return true;
}
};
DLLExport int myUnitTest_runAllTests(const char* const testName)
{
char* xmlDir = 0;
size_t len;
errno_t err = _dupenv_s(&xmlDir,&len,"UNITTEST_XML_DIR");
if (err || len == 0)
{
// env var not set, just run the test w/ standard mechanism
return UnitTest::RunAllTests();
}
else
{
bfs::path p = bfs::path(xmlDir);
// free memory from _dupenv_s
free(xmlDir);
// if necessary, create output directory
if (! bfs::exists(p) || ! bfs::is_directory(p))
{
if (!bfs::create_directories(p))
{
std::cerr << "Problem creating directory " << p << std::endl;
return -1;
}
}
std::string fname(testName);
fname += ".xml";
// use / operator to append filename onto path
bfs::path fpath = p / fname;
std::ofstream f(fpath.file_string().c_str());
UnitTest::XmlTestReporter reporter(f);
UnitTest::TestRunner runner(reporter);
// if we're outputting to XML, don't return failure as return code
// this way tests can fail without it making the automated build think the build failed.
int ret = runner.RunTestsIf(UnitTest::Test::GetTestList(),NULL,True(),0);
return 0;
}
}
And then you just point Hudson's xUnit plugin at the generated reports. Came together suprisingly easy
Tuesday, March 09, 2010
movies
- Balls Out: Gary the Tennis Coach. Bizarre. Funny. If you enjoy Sean William Scott acting goofy, you might like this movie.
- Boondock Saints. Meh. Not sure if I can say I watched this since really I fast-forwarded through most of it... especially parts with Willem Dafoe chewing up the scenery.
- No Country For Old Men. Tense. Exciting. Good
- The Reader. Good thing I saved this feel-good hit for last... OMG. Downer. But very good.
won't you please help... provide a MILF-related punchline
Subject: Mountain Lion Warning
The following warning has been issued for the Research Park area:
Building management has recently noticed unusual wildlife activities around the Williams Building property. Specifically several mountain lions have been sighted in and around the parking deck. Building management is working with the Utah Division of Wildlife Resources with regard to this activity however we want to make you aware of the following guidelines from Wildlife Resources should you encounter a mountain lion when entering or leaving the facility:
- Do not panic. Most lions will try to avoid confrontation.
- Raise your arms to make yourself appear as large as possible. Lions prefer smaller prey.
- Slowly back away. Never run and never turn your back toward the cougar. Yell at the lion and wave your arms as you back away.
- Do not make direct eye contact. Lions perceive eye contact as aggressive behavior.
- If you are attacked, fight back. Try to prevent the lion from getting behind you.
Please let us know if you notice any unusual wildlife activity in & around our parking lot.
Tuesday, January 19, 2010
dust of dreams
Tuesday, December 01, 2009
doxygen weirdness
- doxygen doesn't report an error if you've got \msc in your docs, just silently puts a invalid image reference into the HTML. Doesn't seem to actually try to do anything with the \msc command unless you set MSCGEN_PATH
- I've got doxygen/dot/mscgen checked-in to subversion relative to my project's source code. Running doxygen from a Visual Studio post-build step, and decided to wrap it with a batch script. At least on windows, doxygen seems to have trouble reading an environment variable to set DOT_PATH / MSCGEN_PATH. Seems like it expands the env variable just fine, but it reports an error saying it can't find dot. Ended up just putting the relative path into the config file. Annoying since now I can't share the config file w/ multiple projects at different levels of the tree... but hey, free-ish UML sequence diagrams via mscgen.
- If I enable HAVE_DOT, lots of unhelpful error messages whenever it tries to run dot. A little googling turned up the problem -- doxygen tries to avoid re-doing some work if it thinks it doesn't have to regenerate some files. Not sure why it isn't working, but you can work-around the problem by creating a pre-build step that deletes the document-output directory.
Monday, November 30, 2009
mingw vs. cygwin -- mingw fail
Wednesday, November 18, 2009
quit stealing my bits
Monday, November 02, 2009
dependency repository for visual studio / nant / msbuild / whatever
For Java builds, you've got both Ivy and Maven as mechanisms to publish / discover inter-project dependencies.
Are there similar tools for C# or C++? Particularly within Visual Studio?
Googling has turned up vague hints about running Ivy from within a NAnt script. And a Visual Studio Dependency Manager on Codeplex that sounds like it might fit the bill, but doesn't have much documentation to judge.
We've got a bunch of thirdparty dependencies, as well as inhouse dependencies -- individual projects might change multiple times a day, or only every year. It'd be nice to have a Ivy-like repository that we can publish new releases into.
Ideally I'd like something integrated with Visual Studio to make our developers happy, as well as something easily scriptable/controllable to make our CM people happy.
Monday, October 26, 2009
argh
Thursday, October 22, 2009
gentlemen broncos
Tuesday, October 06, 2009
fall 2009 status
- dog still good. Other than chomping on the neighbor's cat.
- new job still good. Fixed a long-outstanding bug in the code. Waiting to get more bugs to work on, and in the meantime working on a new tool to help ease our transition from ClearCase to Subversion. Getting to play in python most of the day, good times.
- Best book I've read lately: Soon I Will Be Invincible, by Austin Grossman.
- Best audiobook I've listened to lately: How to Succeed in Evil, by Patrick McLean
Sunday, September 20, 2009
Tuesday, September 08, 2009
things learned on my first day at the new job
- eclipse is positively snappy on a 8-core workstation
- lotus notes still exists
- there is such thing as too big a monitor. So far, not liking the ginormous widescreen. Would much rather have 2 or more 19"-20" monitors.
Monday, September 07, 2009
Sunday, September 06, 2009
Saturday, July 25, 2009
losing my geek cred
The very new IronPython integration in pydev is surprisingly functional.


