Convert Mongo BSONDocument to an array in PHP

By Josh Sherman
1 min read
development
php
mongodb

Ran into a scenario this weekend where I needed to take a sub-document from Mongo but I needed it in an array in PHP. Reading the data from Mongo with PHP was simple and won’t be discussed. What I’d like to talk about is taking the BSONDocument that Mongo returns […]

Programming the same thing in multiple programming languages

By Josh Sherman
3 min read
open source
development
holiday api
nodejs
php
ruby
python

Recently I set out on an interesting journey. I wanted to build programming libraries for my API, HolidayAPI. Some of the languages I know like the back of my hand. Others, have never even touched them before. Before you start sending me hate comment, I am fully aware of Swagger. […]

Losing friends to the great beyond

By Josh Sherman
2 min read
introspection
retrospection

Found out I had lost another friend from the wayback machine not too long ago. We were great friends back in school and kept up online fairly regularly ever since then. I knew he was damaged goods, but I had no idea that he was considering checking out. I’m very […]

Sourcing external files from your .gitconfig

By Josh Sherman
1 min read
development
git
github
gitlab
dotfiles

If you’re like me, there’s a great chance that you have not only some public dotfiles but you also have some private stuff you don’t want the world to have open access to. I refer to these private dotfiles simple as dotprivate. I include my dotprivate files as a submodule […]

Set Vim tab spacing based on the type of file

By Josh Sherman
1 min read
development
vim
programming style

Now that my buddy Justin is back to using vim, he’s been flooding me with questions. Loljk, but he did ask about setting the tab spacing based on the type of file he was working with. Incidentally, this was something I had just improved in my dotfiles. Back before I […]