“Geomicroblogging”? “Microgeoblogging”?

I don’t know what it should be called…but anyway, I put up a page where I can try to organize my allegedly spiffy idea . After my little “Proof of concept” experiment with audio geomicroblogging during the holidays, I’ve decided that the concept is indeed at least fun to play with. Since I’m still too poor to buy myself any really expensive toys or take a long luxury vacation, I figure I can amuse myself by trying to turn my experiment into a “real” system that someone might actually want to use. I’ve posted my current idea and plans for the first release at the link up there. I figure getting to the first basic implementation will take a few days to a few weeks, mainly depending on whether anyone but me likes the idea (if it seems interesting to anyone else, there’s a lot more reason to focus on getting it done than if it’s just a crazy idea that everyone else hates…)

Coming Soon to a Bigroom.org blog post near you!

I got a little money for Christmas, but I’m feeling quite guilty as I didn’t really have the time and money to reciprocate in advance. I also haven’t been able to figure out what to spend it on until now. Now, I have a solution for both problems.

Xanthomonas campestris growing in a petri dish and exuding slimeI intend to spend it all on fermentation-related food ingredients and do some experimentation with sweet-tasting foods. Initially, in addition to flavors (spices and whatnot), I need to track down bulk quantities of:

  • Erythritol, which is a virtually non-caloric sugar alcohol which unlike sorbitol and so forth is not normally prone to cause gastric distress, and unlike Xylitol is not hazardous for beloved household pets. Better still, it actually is very tasty unlike that nasty hippy “Stevia” crap (which isn’t produced by fermentation anyway, as far as I know).
  • Food-grade Glycerol (“Glycerine”), which I hypothesize is close enough to the structure of Erythritol to mix well with it and help the erythritol dissolve (and hopefully prevent crystallization, much the same way the “corn syrup” does with sucrose).
  • Xanthan Gum. MMmmmmm…edible bacteria-snot. (Okay, for all that this sounds disgusting, it’s really somewhat similar to pectin, which like xanthan gum is a polysaccharide. Pectin is just fruit-snot rather than bacteria snot. Dietarily, both count as “soluble fiber”.)

There are probably other ingredients I can come up with as well. For those of you out there who are owed gifts: Chewy candies, hard candies, baked goods, and/or beverages, what’s your preference for my initial experimentation? Assuming anyone’s interested, I will probably blog my results…

Meanwhile, I’ve also been thinking about geolocation, geotagging of audio and video media, and Asterisk again. I want to take the lessons learned from my playing with the “Where Was I?” prototype and turn it into a real geolocation system, integrating with Asterisk and Laconica (which turned out to be easier to set up than I’d feared – I’ve now got my own Laconica server at http://omniblab.dogphilosophy.net/laconica, though I need to sit down and activate the IM integration (Twitter may have abandoned IM, but it reportedly works fine in Laconica).

It also turns out that you can use Asterisk with cellphones(!), at least if they have bluetooth. That’s handy to know…

Argh – too much to do, not enough time!…

Exhaustipated, but I’m home

I had to forgo the pleasures of lounging in the hotsprings, due to the excess of time it took to load up Flagella for the trip back and finish running errands. I had to get out of Idaho while the getting was good, as another storm was on the way. Still, the return trip wasn’t a total loss:

FloppyCow gazes from inside Flagella (my car) at the beer I just picked up at New Belgium Brewing Company - La Folie and Frambozen
I managed to score a couple of bottles of La Folie and a six-pack of Frambozen. FloppyCow is jealous. These brews may make a decent relaxative with which to treat my exhaustipation.

I learned a few things playing with my prototype “Where Was I? application for Asterisk. For one thing, I need a longer greeting message, so that my asterisk box will still be listening when my cellphone finally obeys me mashing on its keypad and sends the tones. For another, Suddenlink may be screwing me over on my outgoing data (I’m supposed to be getting 384k outgoing, which ought to be plenty of bandwidth, but strangely enough from outside my VOIP packets are getting completely screwed up. I need to research this to see if it’s really them.) In any case, I had fun playing with it, and now have a better idea of how to (re-)design it for regular use.

Meanwhile, though, now that the car is finally unloaded again it’s time to rest and try to remember everything else I needed/wanted to get done during the holiday break.

Oh boy. This is “bad”.

(Note the “scare quotes” around “bad” up there…)I woke up kind of late this morning, which is probably just as well as I think I really needed the sleep before I load up the car with stuff from the old house and make the ~1600 mile (about 2575km or 83.45 picoparsecs) return journey. As a bribe to myself for making this trip, there are two places I had been considering stopping for a bit on the way back. One of those two is New Belgium Brewing Company in Fort Collins, Colorado. In order to do this, though, I obviously need to arrange to be going through Fort Collins (around 8-9 hours from here) while they’re open. The thing is, there’s really not much point in stopping from my perspective unless they happen to have what I’m really interested in – their not-always-available limited-release “La Folie” (link from the image goes to the page describing it) and possibly their seasonal “Frambozen“. Last time I went by it appeared they always had some La Folie on tap at the tasting counter but not in bottles for take-out.

It turns out New Belgium is open on Saturday until 6pm. And they have both La Folie and Frambozen in bottles there right now.

The other possible stop is Lava Hot Springs, Idaho, where I find it very enjoyable to lounge in the hot springs amid all the snow. However, they open at 9am, so even if I get up really early to make it to Fort Collins before New Belgium closes, I can’t spend any time in the hot springs until 9am anyway, so I’d never make it from the Hot Springs to Fort Collins on the same day. I could, of course, lounge at the hot spring today and then hit Fort Collins tomorrow morning, stopping somewhere between Central Wyoming and Fort Collins tonight, but that could mean the return journey spanning three days rather than two.

However, the weather on this side of Idaho and Wyoming looks most passable today especially later in the afternoon when the roads have been cleared off well, and it looks like getting across the bad wind and snow on the Eastern side of the Wyoming may be safer and better tomorrow morning rather than today.

So, basically, the entire Universe (or at least that portion of it in charge of weather for this region of the country) is obviously telling me that I should take my time loading up and getting out of town, and then go ahead and stop at Lava Hot Springs for a little while to relax before continuing on to somewhere around Rawlins or so, and then resume in the morning which should just coincidentally put me going through Fort Collins in the Late-Morning to Early Afternoon time frame, when New Belgium Brewing is open.

I mean, I don’t want to stop and enjoy myself. Really, I want to be a good boy and drive back in the quickest, most efficient way possible, but who am I to thwart what is the Obvious Will of the Universe? (Supernaturalism makes some of the best excuses…)

In other news, I did manage to fix the Stupid Mistake™ in my little “Where Was I?” application for Asterisk, so now not only do the location updates happen but also the conversion of the associated voice update to MP3 for listening now happens automagically as well. I also fixed the hard time-limit, so updates shouldn’t cut off at 30 seconds like the one from Fort Collins did on the 24th. If you keep an eye on the page and everything goes well for me, you may catch an update from Lava Hot Springs later in the day. If you are especially bored (or are being paid by a Secret Government Agency or Vast International Conspiracy or Santa Claus to spy on me) I will try to do an update from there while sitting on the steps in view of the East Webcam. If so, I’ll be the tiny figure waving at the camera from the steps. If you happen to be watching at the right time, you might catch me there to gaze upon my magnificent pixellated spiffitude. Just don’t look directly at it or you may go blind…

Naturally, a live update from New Belgium Brewing Company is planned for tomorrow as well. After I return I can work on making my little application more interesting (embedded audio player, nicer presentation, maybe an embedded map, ability to come back later and attach related pictures…) and masssaged into a condition that wouldn’t be too embarassing to let others use. This “live neogeographical netcasting” thing is too much fun to keep just to myself. (I wonder how hard it would be to interface this with the Laconica microblogging system?…)

Further bulletins as events warrant…

Phone-in Geolocation: almost working…

It’s a hasty and rather brittle thing, but I seem to have the asterisk side of the equation functioning at a minimal level, including recording audio to go with the latitude and longitude that I dial in when I call. Aside from the beautification and cleanup to make it more intuitive, all I need to do is test the “convert the recording to mp3” call and whip up a quick frontend to display the data. Then all of you loyal fans (and/or secret conspirators) can follow along on my long but hasty journey complete with audio. Aren’t you lucky? (Don’t answer that…) If my schedule works out well enough, I may even be able to do a travelogue update from New Belgium Brewing Company along the way.

The basic process is that I whip out my trusty cellphone, call home, and dial the appropriate extension. I then key in my latitude and longitude, and then record up to a five minute bit of audio to go with it. The script then sticks the latitude, longitude, and timestamp (local to the server) at the end of a comma-separated text file and will then invoke a background process of LAME to convert the file to mp3 for online listening. I’m probably only going to have time for a really simple web interface for the moment since I’ve got to hit the road by lunchtime tomorrow after some work in the morning, but once I’m back from this trip I’ll hopefully have a chance to spiff it up.

UPDATE 20081223:If you’re bored, and you watch http://omniblab.dogphilosophy.net/where you MIGHT see an update or to show up during the day, assuming everything works. Unfortunately I won’t actually know if it worked until tonight when I stop for the evening and get online to check it out…

ANOTHER UPDATE 20081223 (late): Now that I’ve stopped for the evening, I’ve fixed the stupid last-minute typo that was keeping the page from working. The audio isn’t automatically being converted to mp3, so until I get time to figure that out the audio parts of the updates won’t show up until I have time to log in and start the conversion by hand. Hopefully be able to fix that (and spiff up the display page) in a day or two.

Any questions, comments, or suggestions (or requests)?

Geotagging through Asterisk?

Between telemarketers annoying me into getting my upgrade to Asterisk 1.6 finished and the hasty long-overdue road-trip back to and from Idaho again, I’m reminded of an idea that has been fluttering around in the back of my head, not unlike a small bat in the top of a bell tower.

My vast hordes of cult-like fans always seem to want to know where I am. This is obviously an issue in a case where I’m going to be driving 1600 miles, then turning around and driving back, over the span of 4-6 days. It would be pretty easy to set up something on a web page somewhere with some kind of map. The real problem is – how do I update the map?

In some places, I could stop for a while, haul out Igor, boot up, find a public wireless network connection to the internet, and do the update that way. However, that’s time-consuming and awkward, and I want to get this trip successfully completed as quickly as I can. Plus, it’s not always easy to find public network access points, especially through the barren, windy, snowdrift-covered wastelands of Southern Wyoming where a chunk of my route will take me. I have a hypothetical solution, however…

Continue reading Geotagging through Asterisk?

Asterisk® is our Friend

I suppose this is slightly off the usual topics for this blog, but what the heck.

Asterisk logo Asterisk® software is an open-source system for computer telephone stuff. Yes, I did just say “telephone stuff” instead of “PBX, VoIP, and Telephony”. Cope. Anyway, it’s an entirely legally-free (aside from the cost of a computer and any desired additional equipment) replacement for the kinds of many-thousands-of-dollars proprietary software systems that your cable TV and telephone companies use to prevent you from talking to human beings on the phone (so they can fire most of them, and outsource the rest to India or the Philipines or Florida or China or whatever other “developing” area has cheap low-grade labor). In other words, they seem to use their telephony system mainly for telephony prevention. The fact that “The Man™” uses the power of a PBX for evil in this way shouldn’t trick you into thinking that having your own is a bad thing, though. For example, my Minister of Domestic Affairs was recently in Australia for work. Since calls back to the US on the cellphone cost $1.50/minute, I set up a voice-over-IP client on her computer before she left. She could then use her computer’s internet connection to connect to the Asterisk box at no extra cost. The Asterisk box could then forward her Voice-Over-IP call out our residential phone line to my cellphone – a local call for the Asterisk box. No $1.50/minute for “The Man™”! Take that, The Man!

(Oh, “PBX”? That’s Private Branch eXchange. It’s a fancy way of saying it’s your own personal robotic Ernestine the Operator for your house or office.)

I discovered Asterisk a few years ago and have been puttering with it off and on. I figured if I wanted to learn how to use it, it’d be a good, simple start to replace my answering machine with it. It was a little trickier than I thought. I got my hands on a working “X100P“-type card, which is really just a specific variety of cheap voice-modem that was used originally for early development of Asterisk prior to the fancier hardware being developed. This connects my Asterisk box to the phone line. Like my old answering machine, it shares the line with an ordinary telephone that it doesn’t control.

Googling turned up all kinds of information on getting Asterisk to answer the phone and do all kinds of amazing tricks, but not a lot about controlling the answering in the first place. I wanted it to act like my old answering machine. It wasn’t answering the phone and taking messages that was hard to figure out, it was getting it to not answer the phone if someone in the house beat Asterisk to it.

I couldn’t find any references to this anywhere online at the time (and still can’t, actually, though they may be out there). Asterisk doesn’t seem to have any way – at least not with the X100P – to explicitly detect when another device picks up the shared line, but I came up with a workaround.

Now, when the lines starts ringing, I have Asterisk wait 11 seconds (which works out to about 3 rings) before doing anything. Then, I have it explicitly check for one more second to see if the line is still ringing. If not, the assumption is that someone picked up the phone and Asterisk leaves it alone. If it DOES detect one more ring, it picks and and carries on with whatever incoming-call magic I feel like programming into it – like detecting and saving incoming faxes. A copy of the relevant portion of my dialplan for any other Asterisk users out there who care may be found at the end of the post.

Once the house-hunting frenzy I’m in the middle of dies down, I’d like to start adding some nerdier features. For example, we’re moving to Southeast Texas, where there are occasional tornado warnings. Apparently, the National Weather Service’s warnings online contain embedded geographic information defining the boundaries of the warning area. I could have Asterisk watch the warnings page, and call my cellphone to tell me if I have to worry about tornadoes or not. (Kind of silly, I know…). It’d also be nice to finally test the fax reception that hypothetically is set up to work on my Asterisk box, too. (Dang crippled Motorola cellphones won’t let me fax despite supposedly supporting Class 1 fax mode, among other missing features…But that’s another post for another time.)

And now, the dialplan (or fragment thereof) (Update 20080523, fixed missing “]” after “[incoming”):

[incoming]
;give time to allow for someone to pick up 'regular' phone before asterisk does
exten => s,1,Wait(11)
;pause to check for one last ring, just in case someone picks up at the last second
exten => s,n,WaitForRing(1)
;So, you get 11 seconds - about 3 rings - to answer the phone.
;after that, Asterisk waits one more second for another ring.
;obviously if someone has picked up the phone before then,
;that last ring will never come and Asterisk will leave the call alone.
;otherwise, answer the phone:
exten => s,n,Answer()
;supposedly this will correctly jump to the fax extension if it's an incoming fax

;give announcement that ain't nobody here..
;(after waiting 3 seconds in case of fax tone detection)
exten => s,n,Wait(3)
exten => s,n,Background(nobody-but-chickens)
;...then go to 'leave a message' like a normal (if extremely powerful) answering machine
exten => s,n,Voicemail(9000)
exten => s,99,Hangup()
;end of line for now

Any questions?…

I Hate You, Carl Zimmer!

Carl Zimmer wrote a book. Of course, that’s no reason to hate him, and I don’t hate him for that.

His book is all about Escherichia coli (“E.coli”). The friggin’ “Microsoft” of the biotech world. Accursed E. coli, hogging up all the print space and protocol development and sucking up electricity for -80°F freezers. I mean, come on people! You could be doing transformation of B. subtilis and related organisms instead, which form nice, sturdy endospores which you can dry out and keep in an any cool, dry place, no -80°F freezer needed! Or you could use something like Agrobacterium tumefaciens, and as a bonus be able to then transfer your nice transformed genes into plants, too! But NOOOOOooo….it’s always “E.coli, E.coli, E.coli.” DAMN YOU, E.COLI!

Of course, none of that is Carl Zimmer’s fault, either, so this is also no reason to hate him.

Now, if his book was lousy, that MIGHT be a reason to hate him, but as far as I can tell there’s no reason to think the book is lousy, so this is no reason to hate him either. In fact, that’s kind of the problem.

No, the reason I Hate Carl Zimmer is that he’s written a book about friggin’, stage-hogging E.coli…and I want it. (Well, a copy of it anyway.) It sounds like a very interesting book. I feel like a Republican who wants a copy of “The Audacity of Hope”. Or a Democrat who wants to plan a vacation to visit the George W. Bush Presidential Library. The cognitive dissonance torments me, and it’s all Carl Zimmer’s fault! CURSE YOU CARL ZIMMER!

Okay, got that out of my system. A review might follow eventually if I manage to get a copy of the book. Meanwhile, for a change of pace, anybody want to hear about my Asterisk setup? Or should I just get back to the fermentation stuff?

P.S. Here’s a bit of trivia for you: “Frig” is apparently an old-English word meaning “to wiggle”…