Nespresso

So for Christmas I ended up getting Kari a Nespresso machine that I knew she had her eye on since our trip to Europe. I bought the frother together with the machine as a combo since I noticed that she also seemed to be a fan of this additional magical contraption.

Normally I don’t wrap gifts, I just toss them in a nice looking bag with some tissue paper. For Christmas though I try to put forth the extra effort, so when it came time to wrap the two boxes I decided to start with the frother since it was way smaller. Half an hour later I had a neatly wrapped frother and enough insight into the wrapping process that I was able to come to the conclusion that there was no way I’d be able to wrap the actual machine since it was so much larger. I decided to hide it away in a closet and present her with just the frother and the book I got her that would hopefully convince her to stop smoking and gauge her reaction and hopefully get a few giggles.

When I presented these two small gifts to Kari I immediately saw the look of sadness in her face. I could actually see the thought “Is there a Nespresso model that small?” pass through her head. She opened the book first and did her best to contain her impending greater sadness. As she started to peel away the wrapping for the frother I immediately darted into the bedroom to get the machine and came back and exclaimed “It’s ok! It’s ok! I got the actual machine too!” so she wouldn’t get the idea that I only got her the frother and still be disappointed. Happiness and relief came over her face and I knew right then and there that I done good :) .

MongoDB / PHP problem

While at work I was looking into something that we could replace MySQL with since the two trends these days are to not do any JOINS between tables and to work with large datasets. I came across a database called MongoDB which was apparently very good at both of these things and used guides on the internet to get it going on a local Linux box.

I got to a point where it was almost working 100% but for some reason my simple test script couldn’t connect when run by Apache but could when run via command line. I would get the error:

PHP Fatal error: Uncaught exception 'MongoConnectionException' with message 'Permission denied'

I scoured the internet and found only a single reference to my problem but couldn’t find a solution. After direct emails with Kristina Chodorow the primary maintainer for the MongoDB Perl and PHP drivers I found that the solution to my problem was to run the command:

$ /usr/sbin/setsebool -P httpd_can_network_connect 1

Hopefully this helps someone else. Thanks again Kristina :D .