Have you ever wondered how bash redirection works under the hood? Redirection itself is pretty straightforward. Using bash, you can redirect a file to a process’ stdin, or redirect a process’ stdout/stderr to a file or other file descriptor (including things like redirecting stderr to stdout, because both are file descriptors). Redirection looks like this: […]
Recently, I was updating my bash prompt and setting up some Zsh profiles when I found a great script called Z (https://github.com/rupa/z). Z keeps a history of your most used directories and allows you to quickly jump to them based on the most popular/frequently used directory that matches a partial string. I manage a lot […]
Strace is a debugging utility for *nix systems, used to monitor the system calls used by a program, as well as any signals received by the program. Strace is useful for seeing what an application is doing under the hood, which can be vital to find subtle bugs in your code obscured by built-in functionality. […]
So I was recently answering a question on StackOverflow, and learned something quite interesting about PHP. This particular aspect of PHP mostly affects long running scripts, such as PHP based servers or daemons. PHP does not re-use resource ids internally, so eventually your script could run into an error with the resource ID overflows and […]
I work with a lot of PHP applications, and part of my job is optimizing those applications to reduce server costs and maximize how many requests each server can handle. There are many ways to do this, but I’m going to talk about using a profiler, which is one of the better ways to start […]
Lately, I’ve been doing a lot of work on systems that require a high degree of scalability to handle large traffic spikes. This has led to a lot of questions from friends and colleagues on scaling, so I thought I’d do a blog series on the basics of scaling .
I’m an avid fan of the Sublime Text editor, and I also work with Varnish on a daily basis. Like Nginx and many non-standard languages, Sublime Text has no built-in support for Varnish VCL configuration files, and the only existing plugin was very poor. Not only does the existing plugin have awful syntax highlighting that […]
I’m an avid fan of the Sublime Text editor, and I also work with Nginx very frequently. Sadly, Sublime Text has no built-in support for Nginx configuration files, and the only existing plugin was very poor. Recently, I decided to investigate the process to make my own syntax highlighting plugin for Sublime, and it turned […]
Recently I’ve had the displeasure of building scripts that interact with the OpsView API, which is the only way to programmatically change settings in OpsView. The API itself seems to be quite well designed, however, it’s very poorly documented. Below are a few of the things I couldn’t figure out how to do via Google.
2013 was a good year for me. I got a job at REDspace, a web development company in my area that does a lot of cool an interesting work (Also, they build games and mobile apps). I’ve been working on a lot of cool projects there. My current project has taught me a great deal […]