Monthly Archives: February 2012

Using your domain for OpenID

Logging in to Stack Overflow today my curiosity about using OpenID got the better of me. I wanted to use my domain name as my login identifier. I quickly found instructions on using my domain with Google as my OpenID provider but I wanted to use myopenid.com

Turns out the process is really easy. The process is covered here: https://www.myopenid.com/help#own_domain

You just add the following tags to your page’s head tag.

<link rel="openid.server" href="http://www.myopenid.com/server" />
<link rel="openid.delegate" href="http://youraccount.myopenid.com/" />
<link rel="openid2.local_id" href="http://youraccount.myopenid.com" />
<link rel="openid2.provider" href="http://www.myopenid.com/server" />
<meta http-equiv="X-XRDS-Location" 
    content="http://www.myopenid.com/xrds?username=youraccount.myopenid.com" />

Voila! You can now use your domain as your login for OpenID!

WinDBG !locks is broken

This is old news, but I just discovered it today.

Apparently WinDbg !locks command is broken in the last stand-alone release of Debugging Tools for Windows. To fix the issue you need to download the WDK or downgrade to the previous version (6.10).

Found via http://www.voyce.com/index.php/2009/06/03/windbg-locks-command-broken/ while trying to track down a deadlock. I forgot how fun crash analysis can be . I say that both seriously and sarcastically at the same time. When your tools are broken it can lead to hours of wasted time. 🙁

-Angel

Personal note for later lookup: MS Symbol server path (for easy pasting):
SRV*W:\Symbols*http://msdl.microsoft.com/download/symbols;c:\temp

Dump any spare symbols you need in temp (not a best practice!)

MongoDB Notes

Some notes I took as I went through trying to compile the C++ driver for mongodb under win32.

  • Hit up MongoDB C++ Page
    • http://www.mongodb.org/pages/viewpage.action?pageId=133409
  • Downloaded driver linked from Driver Download Page & some other prerequisites
    • http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-v2.0-latest.tgz
    • http://www.mongodb.org/download/attachments/12157032/boost_1_42_vs2010_partial_prebuilt.7z
  • Went to C++ Driver Compiling and Linking and scrolled down to Windows
    • http://www.mongodb.org/pages/viewpage.action?pageId=21266598
  • Hrm. I’d rather not have to mess with scons … so how do I build the lib?
  • WTF? I want to try including client/mongo_client_lib.cpp in my project but IT’S NOT IN THE FRAKING ARCHIVE!
  • OK. Fine. Let’s fire up git and clone the full git source.
  • Ahh…. ok, found mongo_client_lib.cpp. Why the hell even bother putting up the tar ball?
  • Loaded simple_client_demo into visual studio.
  • Boost missing. Ok .. Let’s set up project to point to proper includes and precompiled libraries
  • Holy shit that compiled.
  • Fired up MongoDB Shell and created a collection.
  • Ran through the debugger. Everything works, but how come code references test.foo but in the shell it shows name is just ‘foo?
  • Apparently didn’t need perl regex files? (referenced elsewhere)
  • bo and bob? really?! (in bson seralization class)

Angel Marquez

February 8, 2012

My activity this evening? Downloaded the C++ driver for MongoDB and got it compiling in Visual Studio 2010. The BSON utility class seems pretty cool.

MongoDB, Conferences, and a MongoDB Conference

Most excellent! If everything goes according to plan I’ll be attending both MongoDB Austin and the Lone Star Software Symposium conferences this year.

A recent post on the Trello technology stack got me in gear and researching a lot of things I’d had on my “to learn about” list but had been “too busy” to pursue. The “I’m too busy” excuse only works when you really are too busy and can’t find a way to make time. Unfortunately, the excuse allows inertia to build and sometimes that inertia doesn’t just get built but it also gets walls and a moat built around it too! There is so much incredible tech out there right now and I’m determined to stay on top of it.

Here’s my philosophy on new tech: It’s all just tools. But I need to know what tools are at my disposal to be able to make appropriate choices regarding tools and architecture. I can’t imagine  spending weeks or months working around a roadblock on a project only to later realize the roadblock you were facing was already a solved problem. It can happen if you don’t keep up.

Over the weekend I took a quick detour off my ActiveMQ and RabbitMQ research to read MongoDB: The Definitive Guide. It’s a great book and a quick read.  Unfortunately in the process of reading up on MongoDB I ended up with a few more NoSQL implementations I want to read up on: Redis, CouchDB, and Amazon’s SimpleDB and DynamoDB. Before this weekend I didn’t understand NoSQL at all — my only database experience was with SQL/MySQL. Even the name “NoSQL” confused me. Now that I grok it I’m actually aching for an opportunity to use MongoDB! And what I’ve already read on Redis makes it looks so cool that I imagine it won’t be long before I pick up a copy of Redis: The Definitive Guide.

A housekeeping note: I’d been previously kept a WordPress.com blog whose posts I’ll soon be migrating here. They posts are mainly about NSIS work I was doing at the time, but the posts contain valuable information I don’t want to lose.

 

Now to get back to queues …