Just found these 3D Futurama things. They definitely do it justice.
And now for something plausibly interesting… maybe.
Finally updated my random image thing which was long, long, long overdue. Pulls images out of an SQL index instead of cramming an array full of filenames and paths after scanning the disk. Every. Single. Time. The. Page. Was. Accessed.
It's improved load times significantly. Also put in the ubiquitous image access function while I was at it, so I can stop hard-linking to files in my random folder which break if I move things around.
Now I just need to find a way to safely import custom functions into Drupal, and I'll be set.
Moar random phpipam jargin. Stuff I had to do to make the ping scan, and alive host detection in phpipam work on OpenBSD after the 1.0 release:
functions/functions-common.php assumes your php executable will be 'php'. OpenBSD's 5.3 package binary is php-5.3. Yeah, I know - I need to update from 5.3. So sue me.
Quickest fix which will break next time I update base and the package tree
sudo ln -s /path/to/php-5.3 /same/path/php
Also, the ping binary included in base need the timeout switch and number to be tweaked.
Patch for OpenBSD base's 'ping' binary:
--- functions-network.php.orig Fri Sep 26 23:57:57 2014
+++ functions-network.php Sat Sep 27 00:05:41 2014
@@ -2906,8 +2906,8 @@
}
else {
//set ping command based on OS type
- if(PHP_OS == "FreeBSD" || PHP_OS == "NetBSD" || PHP_OS == "OpenBSD") { $cmd = "$pathPing -c $count -W ".($timeout*1000)." $ip 1>/dev/null 2>&1"; }
- elseif(PHP_OS == "Linux") { $cmd = "$pathPing -c $count -w $timeout
$ip 1>/dev/null 2>&1"; }
+ if(PHP_OS == "FreeBSD" || PHP_OS == "NetBSD") { $cmd = "$pathPing -c $count -W ".($timeout*1000)." $ip 1>/dev/null 2>&1"; }
+ elseif(PHP_OS == "Linux" || PHP_OS == "OpenBSD") { $cmd = "$pathPing -c $count -w $timeout $ip 1>/dev/null 2>&1"; }
elseif(PHP_OS == "WIN32" || PHP_OS == "Windows" || PHP_OS == "WINNT") { $cmd = "$pathPing -n $count -I ".($timeout*1000)." $ip 1>/dev/null 2>&1"; }
else { $cmd = "$pathPing -c $count -n $ip 1>/dev/null 2>&1"; }