Categories
C++ MongoDB

Building MongoDB C++ driver with Mingw64

This post is a summary of the steps needed to build the MongoDB C++ driver with Mingw64.

Categories
Server Admin

Dropped TCP packets on EC2 and Xen

After months of debugging, testing, testing, and testing we’ve found the cause for TCP packets going missing from our EC2 instances: it is a Xen issue apparently.

Categories
Code MongoDB

Dropping a collection without losing the indexes

Long story short, you can’t drop a MongoDB collection without losing the indexes. However, in this post I offer a shell helper that will save the indexes and build them again, so you won’t have to worry about it.

Categories
Code Git

Dropbox for Git Repositories

We’ve all had that horrid experience where you’ve changed some files, saved, closed, and realized that you’ve made a mistake. This is where version control comes in and in this post I will show how you can use two free resources to make your own cloud-backed sharable code repository.

Categories
C++ Code Qt

Why I’ve moved to Qt

It is cute (some pronounce Qt like so), portable, efficient, incredibly powerful and it is written in standards compliant C++. That is why I’m using Qt, in a nutshell.

Categories
C++ Code

A lightweight alternative to stringstream

I’ve recently been tasked with writing a web application and http server for an embedded (ARM) environment.  My main constraint was keeping the code space small.

Categories
C++ MongoDB

MongoDB Connection Pool in C++

I’ve found that there are only a few examples showing how to use MongoDB’s C++ client driver with a connection pool. Now for most applications a pool won’t be necessary, but in my case I needed to have multiple concurrent connections to a MongoDB server.

Categories
C++ Code

Simple C++ Logger

I have had the need for a simple logger for my C++ programs for a long time. About a year ago I decided to write my own.