WordPress and Twenty-Sided

By Shamus Posted Saturday Jun 3, 2006

Filed under: Random 3 comments

Several people have asked me to release the theme for this site so that others can use it. This sounded perfectly reasonable at first, but then I started taking a look through my code and realized that it is a mess. It was built a little at a time over the last nine months, adding on little gadgets and details as they came to mind without any thought for the long-term effects on the site itself.

As a coder, I should really, really, know better than this by now. But sometimes you just want to spend your time doing something, not making a tool for doing something.

When I write code for a living I’m always thinking about how I can re-use or extend it later. Barring that, I at least try to make it neat so I can make sense of it if I come back to make changes at some later point. I didn’t do any of that, and now the site has become a “code contraption”. It works, but you can’t change one thing without breaking three others. It’s sloppy and hard to read (the underlying code, not the site itslef) and now I’m getting nuts. Even when the hood is closed and I’m not reading the code, as I look at the site I know the bad code is there… hiding beneath the surface like so much duct tape, holding everything precariously together.

For example: Lots of stuff is hard coded. Even the title at the top. So, if you were to take this theme and put it on your site, the title at the top would be Twenty-Sided, no matter what you really named the site. The dice rollers are built into the theme, when they should be a plug-in. There are old, unused functions laying around, mixed in with in-use functions. No code comments. I edited the site in the wordpress admin interface and not in a proper editing program, which means the indenting is hosed.

So now I’m re-creating the theme from scratch. It’s far from done yet, but now that I’m doing it I’m curious what the strong points are. What is it about the theme for this site that works well? What would you change? What gets on your nerves?

I should add that I don’t plan to change the look of this site. My goal is to clean it up and maybe make minor adjustments based on feedback, but visually it isn’t going to change much.

 


 

ESRB, FUD, and XXX

By Shamus Posted Friday Jun 2, 2006

Filed under: Links 9 comments

Jay Barnson, in talking about the difficulty in rating open-ended videogames, has this to say:

But I think this points out the ultimate futility of games ratings systems for being anything other than a VERY rough guideline for parents. But force of law in the recent epidemic of FUD-fueled legislation? Silly and stupid.

After all, how WOULD the ESRB rate, say, the Star Trek holodeck?

Geeze. I bet Riker has a few password-protected holodeck programs that would make Larry Flynt blush.

He also has some great observations on Oblivion. Read the whole thing.

 


 

One Kilocomment

By Shamus Posted Friday Jun 2, 2006

Filed under: Pictures 4 comments

The very next comment on this blog will be the 1000th. Yes, it’s meaningless, but it’s still true.

That is all.

UPDATE:

 


 

Useless mutant powers

By Shamus Posted Friday Jun 2, 2006

Filed under: Nerd Culture 18 comments

I’ve always thought the powers of mutants in the X-Man universe were pretty off-the-wall. Aside from nitpicky issues like where all the energy comes from and how special DNA can manipulate the physical world, I’ve always wondered what other mutant powers there are in the world. The X-Men and the mutants serving under Magneto are obviously the best, and their powers lend themselves to warfare, whcih is why they are high-profile mutants. But even among these guys, their powers are really diverse. Controlling the weather. Teleportation. Laser eyes. Freezing stuff. Turning into metal form. It’s pretty clear that powers vary quite a bit, and there must be a lot of powers out there that aren’t nearly as cool.

So what about all the poor mutants who have stupid or pointless powers? Imagine all the wash-outs from Xavier’s school:

  1. Rash: Can cause foes to experience mild itching.
  2. Mood Ring: Her skin turns a different color depending on how she feels.
  3. Dry-Man: Immune to high humidity.
  4. Styles: Can control the movement and color of her individual strands of hair to create any hair style she wishes.
  5. Quackster: Can perfectly imitate the sound of any duck in the world with such fidelity that it can even fool the ducks themselves!

But these guys are the lucky ones. Imagine the poor guy who finds out he’s a mutant but doesn’t know what his powers are. How does he go about finding out? I imagine his journal would be fun to read.


Day 1

I’ve just been to the doctor and the blood test reveals that I’m a mutant! Tomorrow I’ll experiment to see if I can figure out what my powers are.

Day 2

I cannot control the flow of elecricity. That’s a shame. That would have been nice. My hands are not immune to electrical burns, either. I also don’t seem to have any special healing powers. Still, I’m just getting started. I’m sure I’ll have better luck tomorrow.

Day 3

It turns out I can’t see through the wall of my neighbor’s house and into her bedroom. I can’t leap over her chain-link fence in a single jump. I can’t outrun a dog. I can’t use telepathy to convince a rottweiler to stop biting me.

Maybe I’ll stick closer to home for my experiments tomorrow.

Day 4

I learned an awful lot about my powers today. It turns out I can’t put out fires with my mind. I also can’t repair burned carpeting and furniture. Finally, I also discovered that I can’t control the minds of firemen to get them to stop laughing at me.

I’ve got some good ideas of what to try next!

Day 5

It seems that I can’t fly. At least, not from the roof of my house. My right leg is also not unbreakable.

With the cast on, I’ll have to limit my experiments a bit. One thing is for sure: My mutant powers don’t protect me from the itching underneath this #%@ cast!

Day 6

Not immune to rat poison.

Day 7

Oh geeze, I am REALLY not immune to rat poison. I think I’ll take it easy today.

Day 8

My skin is not immune to kitchen knives, thumbtacks, or hammers. My hair is not fire proof. I can’t regrow lost teeth. My eyes are not immune to tabasco or tear gas. I can’t leap over cars in oncoming traffic. I cannot command swarms of angry bees, hornets or wasps.

This is hard. I don’t know what to try next.

How upset is he going to be when at last he learns his mutant power is “can see into the minds of goldfish”?

 


 

More website graphs

By Shamus Posted Friday Jun 2, 2006

Filed under: Pictures 4 comments

Fledgling %Otaku has several more website graphs like the one I put up a couple of days ago. Then there is an interesting exchange in the comments of that post about the appearances of different sites when viewed as graphs. Some sites are just a few tightly packed nodes. Some are sparse and sprawling. Some, like this site, are a bunch of different patterns all hanging together.

So I started thinking about what other pages I might feed into this thing and what they would look like.

First, if you remember from a few days ago, this is the site you are reading right now:

Now let’s look at Google:

Talk about minimalisim! Just under 60 total tags. This explains why the site loads so quickly. There are two purple tags – two images. One would have to be the Google logo itself, but I wonder what the other one is?

Now let’s look at the other end of the spectrum:

This is the printer-friendly version of my book, which has the entire novel on one page. (If you’re curious, you can see it here. It may take a bit to load for some of you, as it is well over 400k of HTML.) This represents about 330 pages of text. The orange dots are paragraphs, and the grey tendrils are areas in bold or italics. I’m rather surprised at the number of tables (red dots) spread around. Now compare that to this:

This is In the Beginning was the Command Line by Neal Stephenson, which is a very large essay (highly recommended, by the way) with no formatting or images. So now we can see that large blocks of prose tend to look like huge orange dandelions.

This is fun. Go on. Try it for yourself.

 


 

Gay and Gothic

By Shamus Posted Thursday Jun 1, 2006

Filed under: Nerd Culture 24 comments

Unexpected news:

DC comics announces that Gotham has a gay hero.

Even more unexpected:

It isn’t Batman.

It’s Batwoman.

This is a brilliant move. They brought back a hero they killed off decades ago and just re-remade her as a lesbian. They can leverage the “bat” name recognition and claim that they are making a move towards more diversity, while also pandering to the young male facination with lesbians. Let’s face it, if they had simply announced Batman was gay (which everyone jokes about anyway) it would have been a fatal move. Call it homophobic if you want, but heterosexual teenage boys don’t want to read comic books about the lives of gay men.


Left: Old and busted. Right: New and busted.

(If they really wanted to have a lesbian character, she would be mannish, with a butch haircut and a male costume. That would be a real nod towards the lesbian community, but it wouldn’t entice fanboys. Since they chose the spandex, heels, and makeup route, we can discern what their real goals are, and it has nothing to do with diversity.)

But I’ve never liked these “me too” female characters. Spider-Girl. Super Girl. Hawk Girl. Batwoman. She-Hulk. Ms. Marvel. They are never going to move out of the shadow of their male counterpart. The sad thing is that the me-too ladies outnumber original female characters who have their own book. Wonder Woman is the only one I can think of that isn’t a sad pantomime of a more interesting hero, or a supporting character from some other comic that was given her own spinoff series. She stands on her own, which is all too rare for female heroines.

I actually like the concept of comic books. I love the visual storytelling. It’s a unique medium and I think after all these years their full potential is still untapped. As they have reached out to adults, they have added boobies, swearing, and gore. That isn’t what is keeping the adults away. Comic books are still saddled with the story-telling skills of Saturday morning cartoons. Evil twins. Amnesia. Nobody ever stays dead. Dialog is clumsy and ham-fisted. Villians monologue while the hero is tied up. Women fight in six-inch heels. This lesbian character is just another clumsy attempt at growing up. It proves that while comic books are decades old, their mindset is still 15.

For the record, I do read comics from time to time, but I’m always struck by how much better they could be if the writers would just aim a little higher.

Later on the DC shill has this to say:

This is not just about having a gay character,” DiDio said. “We’re trying for overall diversity in the DC universe. We have strong African-American, Hispanic and Asian characters. We’re trying to get a better cross-section of our readership and the world.

Lame. If you create a character who’s hispanic because you want a hispanic character, then you are going about things the wrong way. You already tried that. Remeber El Dorado?

Make someone who’s interesting, and who’s different from the heroes we already have. If you do this, you’ll end up with a diverse cast in the end, and they won’t be a bunch of obvious plastic stereotypes. Get rid of that Affirmative Action mentality and just write us a good story about people. (With super powers.)

 


 

Who’s your DM?

By Shamus Posted Wednesday May 31, 2006

Filed under: Tabletop Games 2 comments

Cineris has just discovered that this site is the #1 search result for “Cleric of Pelor”. That’s cool, although I’m going to take a wild guess and say that this is probably not one of those hot search queries.

It’s always funny when this happens. Once in a while my searches will take me to USSClueless or Lileks. If you don’t look at the address before you click, this can be disorienting. As in: Wait. Did I accidently switch to another window. No? Wow. Funny ending up here.