Space Cat, Prince Among Thieves

Blog

Go's New Iterators Smell (A Little) Funny, but It's Probably OK

Go's new Iterators were released on August 13th with Go 1.23.

They've had just a minute to marinate. In some parts of the community they're unpopular. I don't particularly mind them. The old alternatives seem a little more "Go" to me, but the new iterators are largely fine.

I am mildly disappoin…


Read More / Comment »

Use a GIF as a Zoom Virtual Background

It's not ideal, but until the whole SharedArrayBuffer debacle settles down, it's probably the best I can do right now.

Stuck in boring Zoom meetings? Have the perfect gif you want to use as your "Zoom Virtual Background", but Zoom won't let you use animated gifs?

Here's a tool to convert GIFs to M…


Read More / Comment »

All Glory to __invoke

Lost in the shiny new features (see: namespaces and closures) PHP 5.3 also added the __invoke method. While not plainly apparent, it is secretly an amazingly useful 'magic method' .

If you're not taking advantage of __invoke, you should be. Why? It provides a uniform execution points for objects t…


Read More / Comment »

The Joys of UNIX Keyboards

I fell in love with a dead keyboard layout.

A decade or so ago while helping a friends father clean out an old building, we came across an ancient Sun Microsystems server. We found it curious. Everything about it was different from what we were used to. The command line was black text on a white ba…


Read More / Comment »

Static::? More like Lies::

In my professional work, we have a system that utilizes __call and __callStatic for caching of certain method calls. We have been running into a problem where calling an undefined method via :: within the class itself will trigger __call rather than the expected __callStatic.

The Problem

The follo…


Read More / Comment »

Donat Studios Officially Launches

After much ado, Donat Studios is finally live!

There are a few things left to complete. Eventually setting up the documentation and public git repository for CorpusPHP will certainly take up a fair amount of time. I'm still not quite sure what to put in my portfolio, I was thinking of for the time…


Read More / Comment »

JSONP: Take It With a Grain of Salt

I don’t want anyone take this the wrong way. I love JSON. It is so much simpler to parse than XML, and is an all around exceptional way to represent data. I have one caveat though, and that is “JSON with Padding” or “JSONP” as it goes by.

Building this site I wanted to bring in images from my Flick…


Read More / Comment »