How to selectively statically compile and link *nix binaries

Recently I needed to compile a binary to place on an embedded system. The catch is the binary depended on a newer version of a library than existed on the target system. In order to make the fewest changes possible on my target system, I needed a way to statically link the newer library without the bloat of statically compiling the entire binary.

The following explores a simple example of statically linking specific libraries, it was tested on FreeBSD but should apply to Linux, BSD, or any other system using gcc.
Continue reading

Posted in BSD, gcc, Linux | Leave a comment

Adding the sidebar to a Twentyeleven child theme

Twentyeleven offers a lot of cool features, one of my favorites is the Showcase template. However one of the downsides in my opinion (and probably yours, if you’ve found this article) is lack of a sidebar on your single posts and pages.

Others have pointed out viable solutions, however I wanted to stick to best practices and keep my parent theme unmodified.

Here I will explore how to add the sidebar to a twentyeleven child theme in only half a dozen lines of code.
Continue reading

Posted in Wordpress | 5 Comments

Add Google +1 to your WordPress blog

Google’s +1 buttons have been popping up left and right, and according to Google

… +1’s from friends and contacts can be a useful signal to Google when determining the relevance of your page to a user’s query. This is just one of many signals Google may use to determine a page’s relevance and ranking …

and if that isn’t enough, consider the limited Field Trial of Google+ already reaching an estimated user base between 10 and 20 million, adding a +1 button to your content becomes even more important.

While there are plugins that exist to add +1 buttons to your WordPress blog, I will explain how to modify your theme and add the +1 button without using plugins.
Continue reading

Posted in Google, Wordpress | Leave a comment