The Zen of [Programming]

January 29th, 2016, by Ryan H.

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.

-Tim Peters

Originally written for Python, I think it encapsulates good programming technique and methodology for any language.

Programming is a form of writing, and the better you express yourself in clear, concise terms, the better code you can write.

Deleting Build in Unity Cloud Build

January 20th, 2016, by Ryan H.

For some odd reason, you can’t currently delete a project from within the Unity Cloud Build interface.  Using a helpful post by a forum user, you can just use the API to do it for you:


From your Terminal, just replace YOUR_API_KEY, ORG_ID, and PROJ_ID with values from your project.

curl -X DELETE -H "Authorization: Basic {YOUR_API_KEY}"{ORG_ID}/projects/{PROJ_ID}

The Microsoft Empire Strikes…Out

January 13th, 2016, by Ryan H.

As you may recall, Microsoft has delivered KB3035583 as a ‘recommended update’ to users of Windows 7 and 8.1. What this update does is install GWX (“Get Windows 10”), a program which diagnoses the system to see if it is eligible for a free upgrade to Windows 10, and if so, asks the user if they would like to upgrade (though recently, the option to decline has been removed). Some users have gotten around this by editing Windows Registry values for “AllowOSUpgrade”, “DisableOSUpgrade”, “DisableGWX”, and “ReservationsAllowed” in order to disable the prompt altogether. This advice was endorsed by Microsoft on their support forums.

According to a report by Woody Leonhard at InfoWorld, the newest version of the KB3035583 update includes a background process which scans the system’s Windows Registry twice a day to see if the values for the four aforementioned registry inputs were manually edited to disable the upgrade prompt. If they were, the process will alter the values, silently re-download the Windows 10 installation files (about 6 GB in total), and prompt the user to upgrade.

This just seems like such a Steve Ballmer move.  I am not sure the strategy behind it, given the last few years of change in the heart of the Redmond giant.

via SlashDot


December 22nd, 2015, by Ryan H.

Hypocrisy is … the practice of engaging in the same behavior or activity for which one criticizes another. In moral psychology, it is the failure to follow one’s own expressed moral rules and principles.

Am I the only one who finds this really hilarious:


Why are the only non-cached assets that degrade my Google PageSpeed Insights score hosted by Google?