Check it out: ditaa
ditaa is a small command-line utility written in Java, that can convert diagrams drawn using ascii art ('drawings' that contain characters that resemble lines like | / - ), into proper bitmap graphics.
Through a series of events related to Google Analytics I have discovered a funny thing. It turns out that the domain name macrocule.net points to my server...
I've never heard of this domain before, let alone purchased it - I'm certainly not in control of it yet it resolves to my IP. Earlier today if you visited this domain you would have seen this blog.
After consultation with friends I've decided that the most probable cause is that someone has made a typo in their DNS records.
So I 'solved' the problem by altering my nginx conf to send requests for the domain in question to this lovely little page: http://macrocule.net
I hope the person gets the message.
YourWorldOfText is a novel site that is like a big, collaborative whiteboard. It uses JQuery AJAX to send what you type to the server. I have reverse engineered (ha ha, that's the type of pretentious wanker I am, I use the term 'reverse engineered') the co-ordinate system and created a Perl script that let's you do some tricks with the site.
#!/usr/bin/env perl
use strict;
use warnings;
use constant MAX_X => 15;
use constant MAX_Y => 7;
my @thing = (0);
my $bigx_start = $thing[int rand scalar @thing];
my $bigy_start = $thing[int rand scalar @thing];
my $x_start = 0;
my $y_start = 0;
my $bigx = $bigx_start;
my $bigy = $bigy_start;
my ($x, $y) = ($x_start, $y_start);
my $starttime = (time() - 20) . '000';
my $output;
$output .= "\narr = [";
my $count = 0;
while (my $line = <>) {
chomp($line);
my @chars = split '', $line;
$bigx = $bigx_start;
for my $char (@chars) {
$char = q(\\") if $char eq '"';
$char = q(\\\\) if $char eq '\\';
my $newtime = $starttime + ($count * 17);
$output .= qq|[$bigy, $bigx, $y, $x, $newtime, "$char"], |;
$x++;
if ($x > MAX_X) {
$x = 0;
$bigx++;
}
$count++;
}
$x = $x_start;
$y++;
if ($y > MAX_Y) {
$y = $y_start;
$bigy++;
}
}
$output .= "];\n";
$output .= "\n";
my ($prevbleep, $curbleep) = (0, 200);
while ($prevbleep < $count) {
$output .= "setTimeout(function() { jQuery.post(window.location.pathname, {edits: arr.slice($prevbleep, $curbleep)}, YourWorld.editsDone, 'json') }, 10*$prevbleep);\n";
$prevbleep = $curbleep;
$curbleep += 200;
}
print $output;
chmod +x this script, run it and paste in some ASCII art (or figlet output, or whatever.) It will then print the javsascript code you need to insert the ASCII art on the site. You will need firefox and firebug - paste the JS into the firebug console and hit run... then wait to see your art come up on the site.
Pro Tip: Start with a small image, or only a word or two with figlet. Larger stuff takes longer.
Things that I am into right now:
... things I am always into:
... things that I am fed up with (at least for the moment):
If your code syntax highlighting is too pretty, does it subconsciously make you think your code is better than it is?
Movember is well underway. I am sporting a 'stache and a tickler, as the rules permit.
Grill'd are offering a sweet deal for Movember participants:
We will again be giving out a free burger every day to all registered Mo Bros between 2-5pm and 8-10pm from the 11th-30th Movember at any Grill'd restaurant around Australia.
Let the mooching begin!
The Contiki Strip comments on complexity.
Olive Oil is made from olives
Fish Oil is made from fish
Baby Oil is made for babies
Motor Oil is made for motors
Django Python 960.gs Git Vim NetBSD Nginx
The author is a software engineer living in Australia. He sux at guitar, loves camping, doesn't like cake, does like coffee and is a lazy home brewer.
Help
Latest entries
*BSD Agile Apache Apple Athletics Beer Best-Practice Censorship Comedy Cool Crosswords Deployment Django English Exim Firefox Git Hardcore Health Interface irssi Javascript Jira Languages Linux Makefile Markdown Mathematics Mobile Broadband MySQL NetBSD nginx Nokia OSX Perl Photo Privacy Python Rant Requirements rsync Ruby Shell Slackware SQL SQLite SSH Standards Subversion Testing ThisBlog Vim VMWare (Fusion) VPN WDTEM X Yum zsh
Perldoc Output
Yum
Possum
Git's Index
Jira Project Keys
The Coffee Shop
Git GUI
It is more important...
Questioning Unix (and Other) File Times
The Frog King Photo
Rain Cloud Photo
rsync
Timezone
utf8 in your Perl
Theatre Ceiling Photo
Some problems are so complex...
Colours in your PAGER
zsh vared
zsh magic-equals and double-star
Funny Tweets
ChoppingBoard, Project365, RageQuit