Kramer Campbell

Posts

Rediscovering Old Music: C89.5 in 2010 and 2011

I used to listen to C89.5 quite a bit in 2010 and 2011. I even attended C89.5’s Listener Appreciation Party 5 back on August 14, 2010. I discovered a ton of music, to the point where it was difficult keeping track of all it. I remember trying to memorize names of songs that came on while I was driving so I could note them later, only to have trouble recalling it afterward. I found it easier to keep track of the time the song had played and then resort to the playlist on C89.5’s website. However, C89.5 only kept the past 5 or so songs that played. Eventually the entire current day was kept once they redid their website, however that wasn’t until near the end of 2011.1 That meant there was a short amount of time I could look it up before it was too late.

Read more…

Deploying to S3 upon Git Push

With a simple post-receive hook and using s3cmd, you can have Git deploy to S3 after a pushing to your remote repository. If you’re simply interested in the hook code, I have provided it at the bottom of this post.

Setting up s3cmd

To get started, you’ll want to configure s3cmd on the user account that is holding the bare repository with your either security credentials of your AWS account or security credentials of an IAM user. I highly recommend creating a dedicated IAM user for s3cmd with an user policy that grants it full control to S3 and use its security credentials rather than giving it unlimited permissions by using your AWS account security credentials.

Read more…

Minequery is Now a Bukkit Plugin

Since Bukkit is going to replace hMod as the creator has decided to stop updating hMod, a Bukkit version has been created for Minequery. It basically has the same functionally as the hMod version. The hMod version of the plugin is no longer supported.

Thanks to Blake Beaupain (blakeman8192) for creating the Bukkit version of Minequery and getting it started.

Version 1.1 of Minequery can be downloaded from here. The source code of Minequery can be found on GitHub.

Read more…

Introducing Minestatus and Minequery

I have created a new website called Minestatus and a hMod plugin called Minequery for Minecraft servers.

Minestatus

MinestatusMinestatus is a server list that keeps track of the overall uptime percentage of all Minecraft servers that are added to the list. The uptime is determined by making periodic connections to the server to test if it is online. Players can vote on each of the servers on the list for the ones they like to play on best. The score is then determined by the uptime percentage, how many votes a server has, and the age of the server being listed. The servers with the highest scores appear on the top of the list.

Read more…

Converting DateTime.Ticks into a Unix timestamp in PHP

I needed a way to convert the number of ticks from the DateTime.Ticks property in .NET into a Unix timestamp in PHP. So I wrote up this solution that makes this possible. The solution works by taking the number of ticks that I want to convert into a Unix timestamp and subtracting it with the number of ticks of the Unix epoch.

To figure out the number of ticks of the Unix epoch, I used C# (it is possible to do this in a different .NET language) using these two lines of code to find the number of ticks of the Unix epoch in a simple Console Application:

Read more…