Intersection of programming, maths and art

### Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.

“Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.” First of all, this is accredited as the longest legitimate sentence in the English language that uses only one word. But what does it mean? Well, we’ll try some substitution. It uses three meanings of “buffalo”. In order of usage: Buffalo, a city in New York buffalo, […]

A minor annoyance for me has been when trying to extract multiple Garry’s mod addons, they have to be done one at a time. So, I wrote a wrapper called “gmads.exe” that allows multiple addons to be extracted at once. Simply select all gmas to extract and drag them on to the program. Because it […]

### Logic from NOT gates (and OR)

You may not know it, but all logic gates can be made from NOT and OR gates alone. So, I set out to make them! First of all, the AND gate: Because of the NOT gate at the end, the NAND gate is just this without it. Next, XOR. To start with, I took the […]

### Zombie chopper

I recently earned the Half-life 2 achievement “zombie chopper”. The description is “Play through Ravenholm using only the Gravity Gun”. So I decided to share my expertise! The following is a list of tips that should help you get it (I did… first try :P) Know the maps Make sure you understand where you need […]

### Freetronics DMD marquee scroller

This is code for Freetronic‘s Dot Matrix Display devices and their libraries. In the dmd_demo there is a sample of code that says long start=millis(); long timer=start; boolean ret=false; while(!ret){ if ((timer+30) < millis()) { ret=dmd.stepMarquee(-1,0); timer=millis(); } } However having to put that everywhere you want to advance a marquee probably isn’t fun. So […]

I have now had my third nerd cake in a row — a headcrab cake. A headcrab looks like and is from the beyond decent game Half-life. So, with some help from here and Garry’s Mod, some minor mishaps and a bunch of fondant, we had: and ate it and it was delicious. I put […]

### Needs more explode()s

It’s happened to all of us. (Vagueness intensifies) You’ve walked out of the cinema, and you can’t help but think “that needed more explosions”. Similarly, we’ve all written a PHP script and thought much the same thing. Right? …right? Now there’s a solution. This all-new PHP function, needsMoreExplosions(), will solve all your problems by exploding […]