Categories

Tags

Page 12 of All Articles

Convert Mongo BSONDocument to an array in PHP

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

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

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

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

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 […]

You should totally blog about that

Hate to say it, but I am a broken record. If it’s not “OH, I actually wrote a blog post about that” then it’s “that would make a great blog post, you should write about it”. When I mention my own posts, I follow up with a link and maybe […]

Closed sourcing an open source project

Most of the time, folks are talking about making projects open source not closed. Companies use it as way to get some press and to position themselves as being altruistic by giving back to the community. I used to be that guy. Recently, I came to realize that one of […]

The soundtrack to your feelings

I’ve heard it many times before, “this album is the soundtrack to my life”. That’s not me, or at least the album that I feel that way about has yet to be produced (or I’ve yet to composure it myself? ;). That said, there are a few songs that just […]

Making a house a home

Last Tuesday I flew back to Austin, Texas from Chicago, Illinois. During the trip I came to realize that Austin simply isn’t home, not yet. It became unbearably apparent during the flight home. Quality of life is up, but we’ve yet to settle into our new house. We lack a […]

Get the day of the week from a date in PHP

Typical of PHP, it’s very easy to get the day of the week from a date, but they also provide the data in multiple format. Three in fact. The first, and arguably the most straight forward is to get the textual name of the day of the week. <?php echo […]

Calculate time left in day in PHP

Before PHP 5.3, finding the difference between two dates was a bit of a pain. Convert the date strings to UNIX timestamps (if they weren’t already), subtract them, and then divide the result until you had each of the components (seconds, minutes, et cetera). As of PHP 5.3+ you can […]

$10 Showdown: Linode vs. DigitalOcean (July 2016)

Been a minute since my last $10 Showdown. Since then, Linode has turned thirteen and doubled the RAM offered on all of their servers for new and existing customers. This means that Linode is offering twice the RAM as DigitalOcean at the ten dollar price point! Here’s the plan overview: […]

How to pull from git

Had a peculiar request on one of my posts asking for a tutorial on how to pull from git. To be honest, I’m not entirely sure if the comment was just trolling or what, but figured may as well do a post on it. Cloning a repository If you want […]

How to make sauerkraut

Sauerkraut is one of my favorite things to make. Incidentally, it’s one of the easiest things to prepare. It’s always an exercise in extreme patience. As they say, “it’s ready when it’s ready”. Before we talk about it being ready, let’s talk about how to start your journey. To begin […]

How to read more

I never completed a single assigned book while in school. Up until a few years ago, I averaged reading only two books per year. This year, I’m on track to read at least thirty-five. Double what I read the year prior. And I am fully intent on reading fifty plus […]

Leveraging the power of the right-command key in OS X

Not too long ago I was singing the praises of creating hotkeys to switch between apps, a method I consider to be far superior to using CMD+TAB and having to cycle through open apps. I mentioned taking things a step further by utilizing the right-command (and/or right-option) key to reduce […]

Jazz Sucks

I hate it, I just fucking hate it. But like most things, I’m always willing to give it another shot from time to time. June 2016 for me, will be Jazzy June. I plan to wholly emerse myself in jazz music. I’m going to listen to it, I’m even going […]

Grilling: Gas vs. Charcoal

I never thought that in the great state of Texas my preference to grilling with charcoal would be met with ridicule. But I guess it’s to be expected as the person handing out the shade was probably working for comission and was trying to push some more expensive grill. This […]

Why my site doesn’t have any navigation

Because I fucking said so, that’s why. loljk. It’s funny because this hasn’t really come up in the four or five months or so since I updated (reads: half-assed) a new layout for my site. I pined heavily over a new header. I paid somebody on Fiverr to make me […]

Honeymoon in Austin

Home is where the heart is and as of last Wednesday that is Austin, Texas. This isn’t our first time in the area, but after settling into our new digs, I can definitely say that we’re in love with the area. That being said, I’m fully aware that right now […]

Goodbye Forever

Today marks the end of my 35 year stint in Florida. Most of the time was spent in Tampa, which I consider to be a complete cesspool of vacationing degenerates. I could focus on that, but there’s no reason to. I want to leave remembering the good things. In Tampa, […]

Using S3 to host images on a budget

I love Amazon Web Services (AWS) but am always apprehensive about the pricing. To be fair, I probably over analyze my needs and I end up not pulling the trigger on using them. One thing I do rely on is Simple Storage Service (S3) for storing image uploads from my […]

Make open source contributions a priority

I get it, you got a metric shit ton of stuff going on at work and open source contributions aren’t necessarily one of them. Bet there’s a good chance you have at least one side project though. Also bet there’s a good chance that you don’t make open source contributions […]

Speed Comparison: GitHub vs. GitLab

There’s been quite a bit of movement in the code repository hosting space recently. Open letters have been written. Companies are attempting to capitalize on their competitor’s shortcomings. Those competitors have been improving their offerings. It’s a great time to be alive! That being said, this isn’t a post comparing […]

Fastest way to switch between apps

I am on an eternal quest to optimize the way I work with the computer. I do things like jacking my mouse/tracking speed all of the way up (thanks Noah). I am trying to use Zapier more because “you should never do something twice on a computer” (thanks Nat). I […]