Polyhistoric Man Of The Web

Category: Code

  • An alternative splitting algorithm for publishiza

    My friend John built plugin for writing tweet storms in WordPress. I’ve now used it to tweet storm about salary negotiations and WordPress committer stats in 2016. I like it, but I wasn’t super happy with how it split up the the post into individual tweets. It essentially just splits it up so that each tweet is […]

  • Stop macOS from asking for the ssh passcode every time

    Upon the most recent update for macOS ( version 10.12.2), I was being prompted for my SSH passcode every time I would ssh into a server.  As someone who moves between servers often, this got annoying. Thankfully, a new config option can fix this: UseKeychain yes Just add that to your .ssh/config and you don’t need to […]

  • WordPress in a next generation PHP world

    HHVM has now released it’s second long term support release and PHP 7 is in the final stages of implementing changes. It’s an exciting time for PHP and to be a PHP developer which means it is also an exciting time to be a WordPress developer since it creates an opportunity for WordPress to once […]

  • Aggregate Multiple Log Files From Multiple Servers

    The majority of the time I need to analyze logs across multiple servers, I use logstash.  Sometimes though I want to aggregate the actual files on the server and go through them myself with awk and grep.  For doing that, I use two tools. In my bash config, I have a function called access_concat that […]

  • Introducing Punchcard.py

    If you haven’t noticed, I like punchcard graphs.  I like them so much, I have a script that to generate them.  I’ve now released this script for everyone to use. Punchcard.py is simple to use and I hope you find it useful.  It accepts a stream of unix timestamps and creates a punchcard graph. It […]

  • The new AddThis.com homepage

    Yesterday my team relaunched AddThis.com, consolidated our brand, and launched a bunch of cool new features. One of my favorite parts is the map on the homepage which shows real-time shares as they are happening. The map was interesting to build. We wanted it to be fast, look good on all browsers (including mobile and […]

  • IRC Notifications from a remote machine to my mac

    For IRC, I like to use Irssi on a server that I can always keep running and log into no matter what machine I am on. One of the initial challenges with doing this was getting notifications on mentions. I solved this by following the tutorial on Irssi, screen, fnotify and Growl on OSX. The […]

  • Facebook shares some secrets on making MySQL scale — Cloud Computing News

    When you’re storing every transaction for 800 million users and handling more than 60 million queries per second, your database environment had better be something special. via Facebook shares some secrets on making MySQL scale — Cloud Computing News. Facebook uses and pushes MySQL like no other. This article gives a great insight into how […]

  • Thoughts on Post Meta Boxes in WordPress

    I’m generally of the opinion that the screen for adding content should be as simple as possible in a CMS.  It’s one of the reasons I really like the new Distraction Free Writing in WordPress 3.2 (sneak peek if case you haven’t seen it).  It’s why I was a huge fan of WordPress reducing the […]

  • Barcamp News Innovation Philly Hackathon Project

    Part of Barcamp News Innovation Philly is an open data hackathon.  I wanted to do a live visualization of something and I wanted to use canvas.  What I did is create a “Paint thrown against the wall” visualization of tweets tagged #bcniphilly.  The color of the tweet is specific for the user, the size of the circle is […]