For me, my favorite feature of Go is the static binary. I love compiling once and just dropping the binary into a container running the 2mb busybox image and having my app up and running. No pip, no dlls, no problem. However, this does come with a small price. If ...read more
I have noticed that many people have a hard time understanding what volumes are and how to use them effectively.
So what is a volume? A volume can be a directory that is located outside of the root filesystem of your container. This allows you to import this directory in ...read more
Here are a few go commands that I find helpful that are hidden in documentation.
List all installed packages
go list all
Build entire pkg directory
go build . ./...
Install entire pkg directory
go install . ./...
Test entire pkg
go test . ./...
Format and simplify code
go fmt -s -w <file>
Detect races ...read more
Dockerfiles provide a simple syntax for building images. The following are a few tips and tricks to help you get the most out of Dockerfiles.
1: Use the cache
Each instruction in a Dockerfile commits the change into a new image which will then be used as the base of ...read more
In the past I have not been a huge fan of "the cloud" for all of the work that I need to do. I still prefer native over web apps but I also like the convenience of having my data accessible everywhere. However, over the past few months I have ...read more
I am always working with different projects and technologies so here are some of my favorite projects and tools so far this year.
Vagrant and Puppet
If you are not using virtual machines for development and testing then you are a fool. There is no reason to run code on ...read more
Go's rpc package has an example for the default rpc implementation but nothing for the jsonrpc package. Here is how to get it work. The rpc example uses some helpers built into the rpc package, I just looked at that code in Go's stdlib to figure out the ...read more
If you don't know about Go it's a programming language for now. Most of the languages that we use everyday are old, 10+ years old. After so many years languages need to start to think about news ways to solve the same problems. Go is a new language ...read more
Working with the SecureString class in .NET is fairly easy. This class allows you to keep string data encrypted in memory. Maybe you load connection strings, passwords, or financial data into memory when your application starts or loads an object so the least you can do is use the SecureString ...read more
Every year I try to learn a new language. If you are a one trick pony you are not only limiting your self in opportunities but you are also limiting your thinking to the one paradigm that you know.
So this year I wanted to learn something very different from ...read more
Running your own infrastructure is awesome, if your a hacker like me. If your a square and you don't want to mess with your own hardware you have two choices if you are going to host your website or services online. If you don't feel like spending ...read more
Update: I will have updated graphs in a day or two. My time tracking app was only exporting the top 10 applications and I just found the setting to export the top 25.
I always have an app running on my computer that logs all the time I spend in ...read more
Having servers that automate much of your development process is cool. Entities living out on the web just waiting to process any task that you throw their way.
I currently have two servers in my cluster that run my network. Everything from my public web sites, to mongodb and Postgresql ...read more
Python is my favorite language to work with. It is so versatile. I can automate tasks, write quick scripts, process data, and even run a web application. It is very portable and I love the syntax. For a web framework I use web.py because it stays out of your ...read more
I have been working on two iOS applications over the past few days and have been longing for a LINQ like syntax in Objective-C. LINQ is an amazing way to work with collections and it really adds a productivity boost to your coding. Since Objective C does not have LINQ ...read more
Design patterns can help you solve complex coding problems with proven solutions. This will be a mini series about different design pattern implementations in Objective - C. I will be using a simple console app and updating the code on github with each new pattern.
This pattern provides a ...read more
My second application was published this week.
CodeAssistant is a simple tool to test code snippets in virtually any language on Windows. It has been in development for four months and has been a great learning experience for domain driven development and .NET's WPF.
The application is build on ...read more
I lost an entire day of coding trying to get his to work. We are all lucky that I am a developer and not a systems admin.
However around 9pm I finally have it running. I burned through a lot of screwed up VM's trying to get this to ...read more
From my point of view the reason why we create multithreaded applications is so the user experience does not suffer. We have operations that need completed but running these on the main thread will block the UI and piss off our users.
Most of the operations have some similarities. Atleast ...read more
I just puked up some old code for a little app that displays your iCal events in the terminal. I have it as one of my startup scripts so when I start a new bash session I see my events for the next 7 days. It's a very simple ...read more
If you use Terminal on your Mac like I do. It is the first application that is run at starup and the last to close. When you start Terminal in a new window or tab that is a great time to review your computer stats, iCal events, and disk sizes ...read more
I just added the newest MacVim compiled for python using the 10.7 Lion SDK. You can downloading it below.
If you want to use the Python auto complete in vim then you have to compile vim for python on your system. If you are running OSX I have ...read more
So like many people my life is stored in my gmail. I trust google to keep my data safe but since so many things, from contacts to many different online accounts, are all registered under your gmail address it is important to have that data whenever you need it. There ...read more
So this is much easier if you have a static site that is generated using pelican or jerkyll. Both of these apps are great for generating blogs out of markdown or other simple text markup language. I use pelican because it is built with python and that is what I ...read more
This is a little bug in the AVFoundation framework. When using the AVAudioPlayer in
you will get memory leaks when running in the iOS Simulator but not on devices.
It is a pain whenever you do most of your testing on the desktop during development and then start testing on ...read more
This post is still not formatting. I switched from worpress and this is a long post and have not had time to update it.
So here is the issue. You first started to use version control and because you were coding solo and the low learning curve, you started to ...read more
The thing about dvsc that makes me nervous is that all the code and revision history is on your local computer. This makes it very fast when committing, branching, and merging but what if you have a drive failure or worse? All your code is gone if you don't ...read more
I have built a few applications for Android using the Flex framework. It is a great framework and I can build, test, and publish apps very quickly. It takes productivity to the max.
However, I have noticed that some of my apps take a noticeable time to launch on my ...read more
Everyone needs a fast instance in a datacenter to work with. Amazon's EC2 or any other VPS provider will give you access. Sometimes you need to transfer files around fast or do some data processing. Having a fast instance will help you get your job done faster.
I have ...read more