Fixing Virtualbox network configuration issues due to Vagrant public/private networking changes

A few times I’ve switched from the default private networking (NAT with port forwarding) to public networking (bridged) in the Vagrantfile.  When switching *back* to private networking, I wasn’t able to SSH back into the machine (i.e, “vagrant up” will time out). Assuming you’re using a Linux Mint guest (or other Debian-based) OS, a fix for this is to open the /etc/network/interfaces file and remove anything in between the #VAGRANT BEGIN and #VAGRANT END section.  Next, run vagrant reload from the host OS to reload the guest with the updated network interface configuration. ...

Nov 6, 2016 · 1 min · Kristian Golding

A dynamic texture engine for Frex

This moment has been a long time coming.  The first step I’d taken on this journey, and shown in previous posts, was to create a fractal scene piece-by-piece and then simply paste all the pieces together to create a final image.  The image was zoom-able but did not allow the user to pan in any direction.  I thought a good way to enable panning was to create a tile-based engine.  That is, the scene would be divided up into equal-sized square tiles and if the user panned from the left to the right, tiles to the left of the screen boundary would appear while visible tiles near the boundary to the right would disappear.  That seemed ok, and followed what existing tile-based game engines do (think Metroid or Super Mario Bros).  However with engines like that the tiles used to create the final image already exist.  For fractals, and their infinite nature, that can’t be done. ...

Jan 23, 2012 · 3 min · Kristian Golding

Frex - with zoom

After a lot of refactoring, Frex now has a code base that I can understand the next day. I took the opportunity to install version control on my laptop to save me from any potential “oh f%*k” moments, or at least make them not as bad. I chose subversion for this, and as the repository is located in my dropbox folder, I’m not worried about having to back it up. ...

Jul 14, 2011 · 1 min · Kristian Golding

A little bit of Android coding

Back in high school, a friend gave me his book on fractals (thanks Damo!), and I spent hours and hours generating fractals using the bundled ‘fractint’ software. It didn’t matter that I was using a hand-me-down AT PC (everything was ok though, as this was the 8 MHz version!), watching the fractal generate line-by-line was fine by me. Today I found the time and ambition to create for the Android platform a program that generates the Mandelbrot fractal. That’s all this program does (for now). It does it very slowly, with absolutely no bells and whistles. Say hi to “Frex” (“FRactal EXplorer”). ...

Jul 3, 2011 · 1 min · Kristian Golding