Aug. 9th, 2009
this is kind of music related
Aug. 9th, 2009 07:55 pmPeople have wanted some sort of ON AIR sign for when I'm recording here at murknorth for a while, but I haven't wanted to drill holes in walls and run wires and all that kind of crap, because I'm done with that. So I ended up writing something in CSS/HTML and Perl. It's mostly automated, which was the goal (because really you shouldn't have a separate switch for ON AIR, it should come with the mixer), it knows whether system power is on, it knows what OS the computer is booted into, it knows (...distantly...) whether Audacity is running, and reflects that in a reasonably simple set of status displays, with ON AIR being HUGE FONT ON RED. The only thing it can't know is whether you're editing or actually recording, so there are commands for that part. (I'd like to make that less stupid later via some sort of web interface, but it's the best solution for right now.)
Oh, and the client side works as a pseudo-iPhone application - not a real one, I stress, but you can treat it like one and nobody will know the difference. Also, if you load the client side in Safari, you can convert it to a Dashboard app using the Safari dashboard converter tool. Not that there's any good reason to do any of this.
All in all it's two daemons running on two separate machines that talk to each other, a little set of client commands, and a set of web pages that get rotated in and out. I wrote about 200 lines combined in Perl, and about 100 lines in HTML, the latter being substantially taken from an example-code site. (There's actually 437 lines of HTML and CSS, but the rest is copy-and-paste-with-tiny-edits bullshittery in ways that make the Perl code shorter.) It's not good code, really - I mean, it's Perl - but apparently I can still churn out a bit of hax for a sufficientlydumb good reason.
Oh, and the client side works as a pseudo-iPhone application - not a real one, I stress, but you can treat it like one and nobody will know the difference. Also, if you load the client side in Safari, you can convert it to a Dashboard app using the Safari dashboard converter tool. Not that there's any good reason to do any of this.
All in all it's two daemons running on two separate machines that talk to each other, a little set of client commands, and a set of web pages that get rotated in and out. I wrote about 200 lines combined in Perl, and about 100 lines in HTML, the latter being substantially taken from an example-code site. (There's actually 437 lines of HTML and CSS, but the rest is copy-and-paste-with-tiny-edits bullshittery in ways that make the Perl code shorter.) It's not good code, really - I mean, it's Perl - but apparently I can still churn out a bit of hax for a sufficiently
This was going around last week, but: Mr. Bush apparently invaded Iraq on the basis of Biblical prophecy. I had been hoping desperately that it was actually about oil, as that was the only thing that made any sense, but it turns out, no, sanity had nothing to do with it. Gog and Magog, 1, Gog and Magog, 2, Gog and Magog, 3, Gog and Magog, 4. What's disturbing about this beyond Mr. Bush being out of his fucking mind is that the political class went along with this. In short, the American political class is so abstracted from reality as to be considered deranged. Please remember this when dealing with the American political class.
Maybe it was all just too much DEET. (Turns out Deet is neurotoxic in a bad way. Which for me is particularly bad - I'm one of those people mosquitoes just love love love, and the bites itch for a week after.)
Maybe it was all just too much DEET. (Turns out Deet is neurotoxic in a bad way. Which for me is particularly bad - I'm one of those people mosquitoes just love love love, and the bites itch for a week after.)