Git Notes on Combining Repositories

Just some notes. Recently, I had to merge and organize 3 repositories as one, so here are the things I ended up doing. Merging 2 repositories in to one with full history In my case, the local repository (source) was project-a, and the public repository (destination) was project-b. When I was finished merging, instead of git push -u I had to push it like so: (where master was the branch I was targeting)...

I am retiring from Indie Game Dev

It’s true. After 10 years, I’ll be wrapping up my games business. Later this year, I’ll be moving on to other things. I am still going to be around. I’d still like to attend GDC in San Francisco every year. Ludum Dare is a thing I’ll continue to work on and run (and if I’m lucky, I might be able to enter again some day). I’m also going to continue doing little projects that amuse me, things like my Commodore 64 game from New Years....

Boost without Bullshit (boost-wobs)

After some friends were ranting about Boost on twitter, I decided to do something about the single Boost dependency in my game code… but not the usual thing (rewriting it). I’ve been using Boost’s operators.hpp for nearly a decade, because it actually makes writing operator code cleaner. Alas, my trimmed down subset of Boost was bringing nearly 60 source files with it, just for one file. That’s dumb. Thus, Boost without Bullshit was born:...

When and why use UTF-8 and UTF-16? Stringy thoughts.

This was a bit of a shower thought, but until this I didn’t have a good reason to choose UTF-16 for anything. UTF-8 makes a lot of sense. It has all the benefits of ASCII text formatting, and the ability to support additional characters above and beyond the ASCII 127 or 254. It’s very similar to ASCII, you just have to be careful with your null and extended codes. No arguments here....

cJSON-LAX (Relaxed) on GitHub

Today I made some modifications to cJSON, a JSON parsing C library. And like a good boy, I’ve made them available on GitHub. https://github.com/povrazor/cjson-lax The changes are against the strict JSON spec, but instead are usability improvements: Add C style /* Block Comments */ and C++ style // Line Comments. Added support for Tail Commas on the LAST LINES of Arrays and Objects The benefits of comments in JSON should be obvious, but Tail Commas are quite the nicety....

Linux (Ubuntu) 2015 Setup Notes

Hello 2015. The laptop I’ve been using the past few years actually fell apart, so I bought a new one. I started using Linux (Ubuntu) almost exactly 1 year ago, and as much as I like it, it’s not always the most logical and obvious OS to use, so I take notes. Here are notes. The machine is a Lenovo X230 Tablet. It’s actually an older laptop, a 2013 model, but to put things mildly 2014 was NOT a good year for Lenovo Thinkpads....

PHP Mad Notebook

This isn’t a blog. It’s a notebook. APCu Functions Arguments in []’s are optional. Cross reference with APC docs. PECL Page. Github. Iterator functions are omitted, but also available. The above is a cleaned up version of what’s output by "php --re apcu". Perl-like ?: Operator From Tips. Data Format: Raw PHP variables (var_export) To serialize something to disk in the fastest way PHP can read it, you make it source code by calling var_export....

Shutting Down ludumdare.com/planet!! (Just the planet)

Most people don’t know we have a blog syndication sub-site on Ludum Dare called the Ludum Dare Planet. It’s an extra WordPress blog and site that eats very few resources, but still needs to be regularly updated. For the sake of security, I’ll be taking the down the planet website. I’m going to wait a few days first, but if nobody responds, I’ll just take it down. If you need time to grab your favorite RSS feeds, come to my blog (http://toonormal....

Phat JS Demo

Here’s something different. Been working on the HTML5 side of my library code, and I kinda made this little demo for fun. Music is Garth Knight’s track Activate the Cage. Ludum Dare 30 is this weekend. Hoo boy! Running that crazyfest is keeping me sooo busy. 🙂...

Dialogs as Functions

This is just an idea I’ve had. I wanted to write it down in some meaningful way so that I can rediscover it later. This is less a C++'ism, and more a JavaScript/Squirrel’ism. * * * In any situation where your user interface presents a popup dialog, that process of presenting the dialog should be a function call. Here is pseudocode: The general idea here is that there should be 2 ways to use the function: 1....