vakkotaur: (computer)
2007-01-21 12:15 pm

AnthroSite


A couple weeks ago I posted about a python program that I was making in order to make things a bit easier when I make up a photographic web site, like the ones for RCFM and MFF. Then, it needed quite a bit of work. I might be done (if any program is really ever done) now.

I've dubbed it AnthroSite as:
1. The name wasn't being used by some other program as far as Google knows.
2. The sites I've been making and wanted it for are full of anthropomorphic creatures.
3. I like the pun which I justify as at times it seemed like I was groping in the dark like my lamp went out in a coal mine.

What does it look like now? Well, if you peak behind the cut you'll see: BIG screen shot. )



I made it just for myself, but I could see others having use for it. It does not fully automate everything. It requires that the images be named a certain way, and expects them to be already be sized and oriented properly. I edit the image files anyway (some things are best cropped out of shot, after all), so I don't see that as an issue. Others might disagree, but then I suppose if everything is to be automatic there's always Flickr or such.

I suppose I could write up a page on how it works as while I know how it works, not everything is apt to obvious to someone else. That is, if anyone else will ever use it. As the program is written in python, I think (but don't know for sure) that it will run on any system that python (and the python image library) will install on - and python will install on Linux, *BSD, Windows, Mac, and I don't know what all else.

vakkotaur: (computer)
2007-01-08 08:08 pm
Entry tags:

The (J)oys of programming


After Midwest FurFest in 2005 I edited the photos and arranged them, and built up pages for them and the result was MFF 2005. After this past Midwest FurFest I did about the same, but with some help from python and the html, if nothing else, was generated faster. I still spent a chunk of time hand-editing the pages of MFF 2006.

A while ago I decided that I was doing too much work (still hand entering width and height attributes, for instance) and started looking around. I found the Python Image Library (python-images) and that took care of the width and height attribute issue nicely. A closer look and the thumbnail images were auto-generated.

And that was pretty good, but it was still command line stuff and I was still hand-editing the python file to adjust constants. Thus I started down the road of tkinter and things got GUI. I have now have something that can generate the index files.

So, is this 0.0.1? )


vakkotaur: (computer)
2005-02-22 12:42 pm
Entry tags:

Misdiagnosing the Problem


I've seen discussions, or rather arguments, about whether MixedCaseVariableNames are better or if underscore_linked_variable_names are better. I have dealt with both. From my Forth background, I rather prefer the MixedCaseVariableNames as one of the Forth tools I have results in printouts with underlines, which make underscores indistinguishable from spaces - this is a Bad Thing when trying to debug. Of course, in Forth I can use ~Variable-Names-With*Unusual-Characters-in-Them! if I am so inclined.

Now that my bias has been revealed, I'll address one of the notions of some of the underscore users. The idea is that say, this_is_a_test won't have the missing capital problem that ThisIsATest might if someone flubs and uses ThisIsaTest instead. This error could be found with a system that demands all variables be explicitly created. But not all systems are like that. Many are, or can be, quite lax and let the first instance of something substitute for an explicit declaration.

But the problem is not even that. The problem is that of case sensitivity. In an ideal system, case would be preserved, but not distinguished between. That is, if I make a variable named CustomerID the system editor won't go changing it on me to be customerid or CUSTOMERID but will leave it alone as CustomerID. But it will also accept CUSTOMERID and customerid and customerID and they will all point to the same information as CustomerID. Not that the programmer should go around not caring about case. Ideally each instance of the variable would look like all the other instances of the variable - but that's something the search-and-replace function of an editor can handle if need be.

"But that means you can't use each separately!" That's right. Which means I'd have to think up names that won't overlap in mental name-space and be confusing. It would require that I not obfuscate my code, at least not by abusing case.

Now, MiXedcAsevaARiabLeNAMe is something that does deserve to be editted out of any respectable program. Unlike MixedCaseVariableName, nothing is gained in readability by random capitalization. Rather, it just makes the programmer look like an idiot.

vakkotaur: (kick)
2004-08-27 05:27 pm
Entry tags:

What do I look like, a worker of miracles?


I like to believe I'm a fairly good programmer. I don't claim to be Wile E. Coyote, programming super-genius. But evidently some folks at work figure I can re-program external reality. (If I could, do you think I'd have left it in the condition it's now in?) This morning was "How is the ____ program coming along?" in regard to a problem that showed up yesterday afternoon during what should have been final testing.

After some digging and some more testing, I was able to demonstrate that the program actually did do exactly what was asked. Actually, two programs on two different pieces of hardware that had to talk to each other. Connected by cable, they worked just fine. Connected by a radio link, a necessity for this particular project, things got shaky. I have exactly zero control over the radios. But somehow I'm supposed to fix them in software on other hardware. I don't think so.

It turns out that not only were the radio-modems never properly configured, the guy who was setting them up didn't have the configuration tool for it. And that should have been a clue - we stopped using that brand of radio-modem a couple years ago. Gee, maybe there's a reason we switched brands? That was pointed this morning. Now, this afternoon, it finally dawns on the guy with radio-modems that maybe he should use the radio-modems that work.