The Genetic Algorithm is in control of coming up with the syntax tree of each candidate, however any number will be replaced with a scalar variable to be determined by the Cartesian position of a corresponding particle. The particle swarm with a particle that crossed the highest/lowest point will be deemed the most fit.This leads […]
MediaAnimating a Virtual Idol (Part 1: The Drawings)
Making the character assets: Each layer of the character is simply a transparent png with a fixed center of rotation (which we can mark later on)All of these layers will be joined to one another and moved in whichever ways we command. -Body The Body will be placed right at the back of the character, […]
PythonPython Packing Streams of Arbitrary Length
When starting out with IO and learning to efficiently read and write binary structures to and from Python most people will confront the problem of packing a string or list into a structure. Variations of this question plague Stack Overflow, here are two quick examples:https://stackoverflow.com/questions/3753589/packing-and-unpacking-variable-length-array-string-using-the-struct-module-in-py, https://stackoverflow.com/questions/34117620/how-to-unpack-variable-length-data-in-python-struct I have a rather simple solution I decided to […]
Site NewsTro reads __ series
Introduction: I’m hoping to start a new content series where I slowly read math-heavy non-fiction books and try to port them into programming languages as I go along. Usually I’d say it will be in Python, though if the situation calls for it I will use whichever language I believe is ideal for the task. […]
Philosophy of Mathematics
PhysicsIs Science Mind-Independent?
I recently engaged in an argument on social media. This isn’t anything rare or profound, most of my arguments happen on social media. What was rare and profound was the fact that this conversation offered a natural segue in the ontology of numbers; for once I didn’t have to force it. Someone made the seemingly […]
PythonJulia Blend (Animated Julia Sets)
Draw Julia set animations by simply defining a 2d line though the complex plane. A Julia set is simply a recursive function or iterative process that takes the form z=z^2+cwhere the initial value of z is a complex number representing a point in 2d space, and c is any complex.The z argument is updated until […]
Site NewsWorks in progress
I realise it’s been sometime since my last post. Don’t fear, the site’s still well and truly active. I am going through some personal stuff and accommodation issues following the death of a very close friend and housemate.Although my being is inseparable-from/interwoven-with mathematics and programming, I must take some time to focus on being the […]
Web DevelopmentHow this site is run?
Hosting I rent a VPS from digital ocean, it’s running Ubuntu 18.04 and resources can be scaled as required, billed per second. They don’t pay me anything to advertise them and still I wholeheartedly recommend it. The VPS is configured for providing hosting to me and my clients, as well as a few cronjobs and […]
Philosophy of MathematicsOn the undecidability of mortality.
If you have a background in predicate logic or computer programming you’ve probably heard the phrase “All men are mortal, Socrates is a man. Therefore Socrates is mortal”. We’ll come back to this phrase because I take offense with every single claim it makes. It 1936 it was proven by Alan Turing that there is […]
Old ProjectsDrawing Plants in C#
Today I’d like to share another old project of mine.I’ve been looking through my old YouTube uploads and trying to see which scripts I can still track down. Most scripts I wrote as a beginner programmer I’ve shared at some point on my Facebook (A practice I stopped about 8 years ago). If I look […]