Back to the 1.8 branch, part 2?

June 28th, 2006

I’m considering switching back to the 1.8 branch again. There’s a giant memory leak on trunk that it seems only I can see (yes, I’ve tried safe mode) that I’m having trouble narrowing down. Cairo is still incredibly slow on Linux. The tab scrolling thing that just landed is incredibly stupid, in my at least partly-qualified opinion, and interrupts my workflow a lot.

And to add to all that, ever since going to a music festival for 4 days and not using a computer at all, I’ve stopped really wanting to spend so much time on it in the first place, and I just want it to do what I want.

So yeah, I might switch back, to take some of the hassle away. That would also mean I’d file fewer bug reports…

Bad Behavior

June 26th, 2006

I’ve just enabled Bad Behavior here. If it gives you any problems, please contact me.

Extension reqest: animate one image

June 19th, 2006

I browse the web with image.animation_mode = once, because I, you know, value my sanity. However, there is the occasional image that I do want to see animate. Does anyone know of an extension that lets me temporarily animate one particular image? If not, I think a context menu item (only visible on animated images, of course) would be a good solution for anyone that feels like making one.

HTML is not an “Application Language”

June 13th, 2006

Part of the reason is of course that HTML was originally a document language and is slowly evolving in being both that and an application language.

I’ve said it before and I’ll say it again: It shouldn’t be. HTML is fundamentally a language for displaying information. Accepting input should not be a part of HTML because a) It’s out of scope, and b) it’s useful in places that HTML isn’t. Manipulating information is also out of scope (and thankfully has never been mushed in). An application requires bits from all three: Accepting, manipulating, and displaying (it also benefits from a fourth: styling).

Back to the 1.8 branch.

June 8th, 2006

I’m no longer running firefox trunk nightlies, having moved back to the 1.8 branch. It was nice having the new features, and I wish I could keep testing them, but the performance was just too bad. I was able to stand it for a long while, but then I had to test something on 1.8, and after that I just couldn’t go back. It’s amazing how a fast browser doesn’t seem all that much faster, but a slow one feels awful.

The perf bugs (mostly on Linux, from what I gather) have been sitting there untouched for a while, as people focused on the 1.8 branch, and went to XTech, and had vacations, and the like. Vlad says there will be work on them soon, though, within “the next few weeks” (on the 30th in mozilla.dev.tech.gfx). And indeed, one small fix went in yesterday, though not enough to make me switch back.

Hopefully “next few weeks” from the 30th turns out to mean starting at the end of this week and picking up next, so I don’t have to stay away too long.

Update: So it seems that that in fact, it wasn’t just psychological, there was a huge regression that happened on trunk while I was using branch. I’ve moved back to about half and half for now, because testing trunk is important and I know there aren’t enough people that do it, but I hope the cairo bugs get fixed soon.

Web2.0 / CSS 2.0

June 2nd, 2006

Ironically, Web2.0 is much like CSS 2.0. Although one was specced in advance and the other just happened, they both had/ve a lot of new things, some of which were/will be adopted, some of which were/will be unused, and some of which need/ed slight revision. Like CSS, when 2.1 comes out Web2.1 will be a more polished, mature technology. And like CSS, Web2.0 has major deficiencies that won’t be corrected until 3.0 ;)

Firefox Tip #1

May 25th, 2006

A cool thing in Firefox that I figured out not too long ago:

  • Ctrl-R refreshes
  • F5 refreshes
  • Ctrl-Shift-R clears the entire cache and refreshes
  • Ctrl-F5 clears only the cache of that page (and images, etc. on it) and refreshes.

Hope someone finds this useful.

A Truck Driver’s Gear Change at the All-State Music Festival

May 14th, 2006

Yesterday I went to the Vermont All-State Music Festival, which is where the best highschool musicians in the state all get together and play songs. I watched the Band, the Orchestra, and the Choir, which is everyone who was performing that day (Jazz Band was Friday).

The location wasn’t all that great. It was a high school gym that was rather small to begin with, and when you take out stage space, a lot of people had to fit into a very small area. The floor was filled with chairs, and the bleachers (one side, plus second floor, plus small on the other side) were full, and they weren’t even facing the right way. There was a very tight bottleneck to get in and out. There were only two bathrooms, both rather small, and both always full of performers changing (at least between performances) since the small stage meant only one group could be out at a time and the others couldn’t stay in their seats to listen.

Perhaps I’m just comparing that to last year, though, which is the only other one I’ve been to. My town hosted that one, and it was held in various nice places around the town with the band, orchestra, and choir held in a hockey rink that randomly happened, by the word of one of the conductors who had conducted there, to have as good acoustics as Carnagie Hall. (As well as, of course, a lot more room, which is good since we’re in the middle of the state and so drew a lot more people.)

I sat, as last year, in the very front center. This was good seating, except that the people next to me were being consistently loud enough to distract me. Turning program pages, digital cameras that go “click” (seriously, people! Turn it off at a concert!), even talking. Even more annoyingly, it was a friend’s parents who were doing that. I talked to them between band and orchestra, though, and they stopped.

Throughout the entirety of the orchestra, I had to pee. (Not my fault, see lack of bathrooms above.)

Band and orchestra were on one ticket, choir was on another (since some parents, apparently, only want to see the one their kid’s in…). I left my coat on the chair, and went out to go to the bathroom and talk to people. The doors were still closed when I came back, and the line was huge, so I managed to sneak my way into the middle (no moral problem for me, since I already have my seat, it’s not like I’m getting a better one by cutting). And I waited until they opened the doors, and went back to my seat… and it was taken. Apparently, it had suddenly become a reserved seat between band and choir. Way to not inform me ahead of time. And by that point there weren’t any good ones left, so I went up to the balcony to sit with some friends.

Now, music.

Last year, the band was very good, the orchestra was good and the choir was amazing. The choir was so good I had to restrain myself from giving a standing ovation after the third song out of six, and said to myself “The last song better be at least that good, or I’ll be mad”–and then the last one proceeded to be even better.

This year the band was excellent (my enjoyment of it was not, see talking people above, but I’m correcting for that), the orchestra was excellent (again, my enjoyment was not, see had to pee above), and then the choir.

The first two songs were very good. The acoustics of the room and where I was sitting made some of the notes in the first song rather interesting, and there was some snickering nearby that for the first third of the song the lyrics were only “Love” repeated over and over, but it was still good and those both went away in the second song. Then the third song, following last year, was again amazing. I didn’t quite have trouble not standing like last year, but if it had been the last song I certainly would have. The fourth song was a Vietnamese folk song. Unfortunately for me, although I’m not all that experienced with asian culture I have heard just enough music to hear where the words should have been tonal but weren’t (which was, of course, basically every word). Other than that, though, it was still well sung.

The fifth song was religious. I can’t stand songs with religious lyrics.

It’s not that I hate religion in general. I don’t, except when it specifically gets in my way and I think “my life would be so much easier if religion didn’t exist”*. For the most part, I go on letting it be other people’s problem, and even acknowledge that it can sometimes be beneficial to those people. But religious music really grates on my nerves. Not because I think it’s an attempt to “convert” me–it’s usually not, and when it is it’s usually not as good and easily laughed at. The reason it gets on my nerves so much is that I just can’t enjoy it the same way. With music whose words I agree with (e.g. “peace is good”) or that aren’t relevant to me (”I love” + girl_name) I can really get caught up in it. I can close out all my other thoughts and go along with it, let my feelings soar when the music does and fall back along with it. Just like when I’m reading, or dreaming, my mind can be totally in that world. With religious music, I just can’t do that, because I just can’t feel the same way it does. Or, more accurately, I won’t feel the same way it does.

This is not a problem with music whose lyrics I can’t understand, like if they’re in another language. For me they might as well be lyricless; the expression I get from them is purely musical. One of my favorite songs, in fact, is Baba Yetu from the Civilization 4 soundtrack. It happens to be “The Lord’s Prayer” in Swahili, but I don’t understand Swahili, so the lyrics can’t affect me and I just hear the amazing music. **

But this song, of course, was in English. And while it was sung very well, I couldn’t enjoy it. When the singers started clapping, I didn’t clap along with them. When it was over, I clapped, but as an acknowledgement that they’d sung well, not because I liked it.

And then the sixth song came. And it was also religious. And I was dismayed.

And it was amazing musically. Just like last year, they’d saved the best for last, and it was more than deserving of being called best and sung to match. And it wasn’t even religious all the way through! It was obviously not intended to be so, and just what the composer considered normal. But every time I started getting caught, something would be said and I would come crashing out. And so I sat there and moped, and wished it could have been better for me.

And then, at the end of the song, a song which had been musically amazing, there was a Truck Driver’s Gear Change.

And at that point, I found that to be the funniest thing ever. And as everyone else clapped along and listened, I laughed. And laughed, and laughed, and laughed. And luckily there was quite a lot of noise from the clapping, because even though I covered my mouth I wasn’t exactly quiet, and I drew a few stares from nearby. And then, as I laughed, I found that the lyrics were drowned out in my mind by the sheer hilarity of the situation, and I could finally hear just the music, and I could finally enjoy it.

* Technically it’s not religion getting in my way, it’s people getting in my way motivated by religion, or it’s a person’s adherence to religion getting in my way when I’m trying to get them to see something from a non-religious viewpoint.

** One of the worst things to happen to me is to have a song that I really enjoy, that I think could even be one of my favorites, and then to find out what the lyrics I hadn’t understood are and not like them. That’s happened at least once that’s sitting in my memory, with Avondale (traditional, performed by Lissa Schneckenburger).

Some questions about black holes

May 7th, 2006

I enjoy physics, but I don’t actually know much, so I have a couple of questions:

  • As with any other two bodies, you can have two black holes orbiting around each other. The farther they are from each other, the slower they move, and the closer they are, the faster they move (right?). Would it be possible to have them so close their schwarzschild radii intersect (but their centers are not inside the other’s schwarzschild radius), or would they have to be moving too fast for that?
  • If I’m interpreting what I’m reading correctly, a black hole doesn’t have to be infinitely dense, but can instead just be a very large collection of normally-dense matter. Is this right? And if so,
    • Inside this object, some of the gravitational force would be pulling the other way, and thereby lessening the effect. At the very center, the total force would be zero, and choice in movement would be possible! Does this mean there’s a sort of “inner schwarzschild radius” as well, inside which nothing can escape beyond?
      • Could that possibly model our universe?
    • Is it possible to have non-spherical black holes? If you, say, had a very large toroidal collection of matter, could it be large enough that it formed a black hole in the shape of a torus that nothing could escape from inside, but things could pass through the hole?

Getting rid of unused option cruft in search queries

April 21st, 2006

So I have a form with a lot of options. It’s a search form, so it’s a GET, meaning it goes into a URL and is reusable, as it should be. However, at any one time most of those options are unused. This means I get lots of &option1=&option2= cruft in the url.

So, what’s the best method of getting rid of that? Client-side removal of the extras on submission? HTTP 302 Found? HTTP 303 See Other?

Need help with Apache, MultiViews, PHP, and the Content-Type header

April 16th, 2006

I’m finally getting into PHP, and have it set up on my computer, but I’m having a problem with Content-Type. Without PHP, if I do, say,

AddType application/xhtml+xml pxhtml
AddType text/html phtml

I’ll get .phtml files served as html and .pxhtml files served as xml. But when I tell it to route them through PHP (with AddHandler php5-script phtml pxhtml), PHP undoes that and rewrites it with its own, always as text/html.

I found the default_mimetype setting in php.ini, but it’s not helping. If I set it to something, all files are served that way, so I can’t distinguish between html and xhtml. If I don’t set it at all, it falls back to the default of text/html. And if I set it to the empty string, it still sets everything to text/html, probably meaning it’s just falling back on the default.

So how can I make it respect MultiViews’ setting?

Trust paths through OpenID

April 13th, 2006

Okay. So you know how OpenID is an actually viable identification system? And you know how PGP/GnuPG have a concept of signing other people’s keys to establish trust paths?

Well, I was just thinking about blog comments, and a) how now that I have them re-enabled, I’m getting spam, and b) I’d like to enable OpenID, and I got an idea (which, if you read the first paragraph, you’ve probably already figured out). Why not extend OpenID to also allow trust paths? Basically, if I trust Anne to be a real person and not a spammer, and he trusts Ian, I can be pretty sure that Ian’s not a spammer. And if Ian’s server is compromised and a spammer starts sending stuff as him, or if he’s paid off by the Evil Spam Operators to “trust” them, then I can either blacklist Anne, blacklist Ian, nofollow Anne (so I trust him but don’t trust his contacts), or even just wait for Anne to take care of it.

Obviously it could be fleshed out a bit more (max depth for trust paths?) and in implementations too (temporary blacklist: blacklist Anne for 24 hours and renew automatically if I got any comments through his trust path that looked like spam, else re-trust), but it looks like a start.

Thoughts?

Making Apache work

April 13th, 2006

Note to future self:the reason your Apache configuration isn’t working is that Gentoo has stupid defaults and puts up extra walls in the name of “security”. You need to edit /etc/apache2/vhosts.d/00_default_vhost.conf and switch the AllowOverride None to All.

Blog upgraded, comments now work

April 12th, 2006

I needed to fix comments here, so I had a few choices. a) Figure out what was wrong, or b) just upgrade and let that fix it.

I upgraded. That fixed it.

As a downside, I no longer have the comment validation plugin. Someone should write a plugin that parses all input as HTML 5 and re-serializes it as valid whatever-language-you’re-using.

Edit: And let the blogspam begin! I’m holding all comments for moderation now. I think you can get around that by registering an account here or something (?) but I basically don’t care yet. Maybe I’ll look into it once I actually understand enough PHP to make changes.

If Content-Type is dead… now what?

April 11th, 2006

Okay, so Content-Type is dead. But in a perfect universe, what would there be? Should we try to revive it? Should we let filenames matter? Should we rely on content type sniffing? Should we try to standardize a metadata wrapper for files? Nothing looks appetizing here, but Content-Type is the least bad.

April 11th, 2006

Oh. I guess the reason no one’s left a comment on my blog in ages is that there isn’t a comments form.

I should fix that… today, probably. Right now I’m tired.

Yay! Cairo on Linux!

April 5th, 2006

Yay! Cairo on Linux!

link, link, link

Per-application sound volume?

April 2nd, 2006

Does anyone know if/how I can (in Linux, of course) control sound volume per application? So I can, e.g., turn down the sound coming from a flash game in Firefox, but let Rhythmbox play my music at normal volume?

Ad-blocking DNS

March 27th, 2006

So I was thinking about ad-blocking hosts files today, and it occured to me: how come ISPs don’t have ad-blocking DNS? It’d be a big selling point…

Content-Type/namespace mismatch

March 23rd, 2006

What happens if you serve an SVG document (SVG namespace, only SVG elements) as application/xhtml+xml? What should happen?

(”Happen” of course meaning semantically.)


Bad Behavior has blocked 424 access attempts in the last 7 days.