Archive for the ‘web’ Category

Pagerank for feeds

Thursday, July 7th, 2005

Someone should make a feedreader (plugin) that implements a pagerank equivelant in the little world made up of the feeds I read. So if someone links to a post on a blog I don’t have the feed for, or if someone whose blog I don’t read links to a post, those mean nothing, but if someone whose blog I do read links to a post by someone else whose blog I read, my reader recognizes that and tells me (non-intrusively, of course).

Just one of those pseudo-AI things that fits into “computers are supposed to make our lives easier”. I thought it might help this guy (via Anne).

Disclaimer: I don’t even use a feedreader, so perhaps I haven’t been talking. But I think it’s a valid idea, and I haven’t heard of it being implemented yet…

Bug 300002

Thursday, July 7th, 2005

Bah, I missed bug 300000 by a few seconds :-( I wish I’d had two real bugs to file instead of just one, then I could have gotten it. Anyway, I filed Bug 300002 on my Idea for UI allowing HTTP authentication logout.

Extraneous backslashes

Friday, July 1st, 2005

Okay, this putting-a-backslash-in-front-of-every-apostrophe in the comments has gone too far. It has now messed up someone’s <code>...</code> snippets, and so it is time to fix the problem once and for all.

Wish me (with my complete and utter lack of PHP knowledge) luck.

Closed World vs. Open World: the First Semantic Web Battle

Thursday, June 30th, 2005

Via Anne: a very good read. I feel like I kind of knew it all along, way down in my subconscious, but reading it is very good. And I have no idea which I prefer.

Clean Source vs. Clean DOM

Thursday, June 30th, 2005

You know what bugs me? When people talk about keeping the source clean and then go and do something like this. (No offense to the author, as it was just the first example I found and because obviously a clean source is important.)

The point is, it’s not about the source, it’s about the DOM. When I point my obscure-yet-relevant-standards-conformant tool at your page—be it lynx (bad example, so make that lynx-made-perfect), a screenreader, or even just my Firefox-with-a-userContent.css-file—it should work. And to do that you need a clean DOM the whole way through: start with a clean DOM (clean source), and then when you do your styling and your scripting, keep it clean.

Weblog UI and slugs

Wednesday, June 29th, 2005

In my Perfect Weblog System (which has a great resemblance to Anne’s), the slug would be automatically generated from the title using (client-side) javascript. If the slug was changed on its own, whatever handler was causing the updating would be removed. If the slug field was cleared completely, the handler would be replaced, and it would go back to being based on the title.

Why? Because I don’t like having to think about slugs. And normally the title or something auto-generated on it is good enough, it’s just for those posts with really long or punctuation-intensive titles that that breaks down. But that’s often enough that I have to think about it every time (or, sometimes, not). So this is one of those little gradual enhancements using javascript you keep hearing about.

Actually, perhaps this isn’t part of the Perfect Weblog System, but rather the Perfect Weblog System’s UI. Anyway.

Edit: Via choan in the comments, it exists! Thank you! But shouldn’t you be using UTF-8? ;)

Getting rid of img alt=”

Tuesday, June 28th, 2005

Interesting. So Firefox (1.0) displays <img src='...'>text</img> when sent as application/xhtml+xml as just an image, as you would expect. There’s no yellow screen of death, because it’s valid XML, if not valid XHTML. Unfortunately it doesn’t work quite perfectly, because if the image is not available nothing is displayed. It would be interesting to see how Opera and Safari/KHTML render this.

The validator, though, is a different story. It gives these error messages:

  1. Line 1, column 280: required attribute "alt" not specified

    ...google.com/images/firefox/google.gif'>text</img></div></body></html>

  2. Line 1, column 281: end tag for "img" omitted, but OMITTAG NO was specified

    ...oogle.com/images/firefox/google.gif'>text</img></div></body></html>

  3. Line 1, column 222: start tag was here

    ...'text/css'></style></head><body><div><img src='http://www.google.com/images/f

  4. Line 1, column 290: end tag for element "img" which is not open

    .../images/firefox/google.gif'>text</img></div></body></html>

Wouldn’t a simple “This element cannot contain content” suffice for three out of the four?

Yay Fitt’s Law!

Wednesday, June 15th, 2005

Yay Fitt’s Law!

I don’t know why I didn’t do this before, but I just moved the new terminal window button (easily my most used little launcher thingy) into the very corner of the screen. It’s so much nicer to hit now, even if Gnome is stupid and doesn’t count clicks on the edge 1px (though it does on the bottom 1px). For some reason, I’m even finding the Applications menu (which was in the corner, and I rarely ever use) easier to hit, too (I’ve had to click it a few times to get the screenshot, launch gFTP, etc.).

Coolness.

Not accidentally filed in markup.

Javascript Things

Saturday, June 11th, 2005

I now have a new part of my site devoted to the things I make with Javascript. At the moment, this includes one thing—the thing I needed help on in my last javascript post. (Thanks again, Anne!). Hopefully, as I learn more and get ideas for new things to do, it will grow.

The easiest way to get to it is from my homepage, it should be two clicks away.

Learning JavaScript

Monday, June 6th, 2005

Right now, I have a very limited knowledge of JavaScript. More to the point, I know a lot about what you shouldn’t do, but I don’t know enough about what you should do to actually get anything done. So today when I had an idea for something to do, my approach was “try stuff and see if it works”.

It didn’t. In fact, it nearly did, but I kept getting the one same error message over and over again. After a few hours I (think I) figured out the problem, but not how to fix it, and at that point I decided I should actually learn starting from the beginning, and maybe then I’d have a solid enough foundation to figure out my error.

So here is what I’m getting to: Why are there no good javascript tutorials anywhere on the web? I looked around and I can find nothing that seems to have been written by someone knowledgeable about Web Standards and the Right Way to do Things. My criteria? If a tutorial tells me to put the script element in the body, it gets closed immediately. If it starts me off with a “Hello World” using document.write, I get very skeptical, and close it in a few pages if it doesn’t redeem itself.

And no tutorial so far has passed even those two tests. There are a few sites out there that I can tell are good—like the unobtrusive javascript page I linked to before, but those aren’t basic enough for me. I’ve tried taking things off those sites and adapting them to my needs, but failed. They’re just a bit to advanced for me.

So where are the good tutorials, that explain for a beginner the right way to do things?

P.S.: If you’re interested in helping me do this one thing, all it is is that I have a div with an original background-color of black, and I want to make it transparent when it’s hovered over with the mouse—and do it in a way that separates content, style, and behavior. And no, I can’t use :hover, because I want to do other things to it later.

Making generic XML work

Tuesday, May 31st, 2005

So I just read Anne’s Why generic XML on the web is a bad idea, and got an idea. Suppose there were a way, probably using RDF or something, map certain elements in it to well-accepted elements in another namespace?

It would work as follows

  1. I have a document, which, for whatever reason, can’t be appropriately expressed in any well-accepted XML language (XHTML, MathML, ChemML, OpenDocument, whatever).
  2. I give this document appropriate semantics and create a namespace for those semantics, and a description of them at that namespace.
  3. Somewhere in the namespace’s URI I include a bit of information (again, probably using RDF or something else I don’t understand) that says, for example, <angry> is a subset of <xhtml:em> where xhtml is in the standard XHTML namespace.
  4. A search engine comes along and sees your document. While it can’t fully understand your document, and there may even be parts of it it can’t understand at all, it can still understand bits and pieces of it, and can do whatever it does appropriately.

Whadya think?

Need help on a markup problem

Tuesday, May 31st, 2005

On one of my pages there is an image. I need help deciding how it should be marked up—or rather, where it should be in the source. <img> isn’t valid in the body directly, so I have a few choices:

  • Contain it in the previous paragraph (how it is currently)
  • Leave it outside the paragraph, which is invalid, but more semantically correct (I think?)
  • Put a <div>, which would be valid and semantically correct but redundant (or would it be? does having the div there mean the existance of something that shouldn’t be there?)
  • Use <object> instead, which would be semantically correct and valid, but I’d have to look up the syntax for

So which should I chose?

Edit: Eep, forgot to close my <a> tag… actually, forgot to even give it content. Fixed now.

Why I love the web developer toolbar

Tuesday, May 31st, 2005

I absolutely love the Web Developer Toolbar. One reason, that I ran into today, is that if I need to find out if a particular piece of (x)html is valid I only need to type data:text/html,<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title></title></head><body><p>sometext</p><img src='http://www.google.com/intl/en/images/logo.gif'/><p>moretext</p></body></html> and with two clicks of the mouse I can send it to the w3c validator. (The validator doesn’t have a form upload, so otherwise I’d have to write it, save it, and go through the upload steps on the site.) And since I have said data: url template bookmarked, it’s a total of 3 clicks and writing a minimal testcase for what I want to know–much easier than reading through the specs.

Note that the w3c validator does have bugs, so this shouldn’t be used for anything complicated or esoteric. Just the basics.

XTech (I wasn’t there)

Sunday, May 29th, 2005

I keep reading about XTech on people’s blogs. I really wish I could have gone (being 17 has its problems). Maybe next year, when I’m not busy… anyone know how much it cost including travel from US?

Wine bug 3000

Thursday, May 26th, 2005

Hey, cool, I just submitted Wine bug 3000.

(And it has nothing to do with Wine itself, it’s a bug in the stylesheets they use on the web site. How appropriate for me!)

Extension request

Sunday, May 22nd, 2005

I’d like an extension that can uncompress various types of compressed files (zip, gz, tgz, etc.) and let me view the contents (assuming they’re viewable) in the browser. I ran into this today when I wanted to look at a wallpaper that someone had (stupidly) put in a zip file, butI’ve also realized it would be useful in bugzilla, for when people attach a log zipped.

I’d like it to work so it looks to me like the zip file is a folder, and it just showes me the file listing, from where I can choose what file to view. It would be nice if it could interpret relative uris inside itself, so, for example, webpage.zip/webpage.html could include webpage.zip/webpage.css transparently to me. Also, and quite importantly, it should have a big, easy-to-click button to let me save it if that’s what I really wanted, and it should not have to re-download it.

Popup blocking

Saturday, April 30th, 2005

I’ve been browsing with popup blocking turned off for the past I’m-not-sure-how-long, and I didn’t even notice it.

Of course, I got popups. I got them, but they were few and far between, and I assumed they were from that stupid flash advertiser workaround thing from a while ago. There weren’t enough of them to make me stop and notice and do anything except just hit X. If there had been more, I probably would have thought about it and remembered that had been fixed. If there had been more, I probably would have checked my preferences. Instead, it wasn’t until I was on bugzilla triaging a bug about popup blocking, and went to a popup test site, that I noticed it was off.

So what does this mean for the web? Are there now few enough sites using popups that it’s actually livable? Have they all moved on to other forms of advertising? Is this why my spam filter suddenly dropped to 50% success today? Should I continue browsing with the popup blocker off, secure in the knowledge that they have weakened to a very minor annoyance? All provocative questions that perhaps should be researched.

Of course, it probably helps that I normally browse with javascript off. :-P

I broke wordpress!

Tuesday, April 26th, 2005

Apparently WordPress breaks (outputs invalid (X)HTML) on <pre>x(newline)(newline)x</pre>, which I can’t show properly because then it would break (darn catch-22s…). And I can’t find the option to turn off auto-formatting and let me just type what I mean. So my last post is slightly semantically incorrect: instead of putting it all in one <pre> like I should have, it’s in several separate ones.

HTTP authentication logout/stop phishing

Friday, April 22nd, 2005

Here’s an idea. When someone finally gets around to implementing logout/etc. functionality in HTTP authentication, why not put the username in a little box at the right of the address bar, like where the lock is for secure sites. Not only would this be nice and usable, but it would also help stop phishing attacks of the form http://www.examplebank.com@evilsite.net/, since the username part, www.examplebank.com, would be moved away from the normal address and be visually distinct.

Edit: posted this on my website, with a nice, pretty mock-up.

PageRank part 2

Friday, April 22nd, 2005

After a long stint at 0, my PageRank is suddenly 5. And yet Google shows no more pages linking to me than it did before. What’s up with that?

My site’s top level home page (http://dolphinling.net/) also has a pagerank of 5, and it only links here, so that might explain it… but how did it get that high? It’s only got 6 things linking to it (other than my weblog): 1 post on Daniel Glazman’s weblog, and 5 on Slashdot. Surely that’s not enough to get it a pagerank of 5? What am I missing?

Edit: Oh, now I see where I got linked too from. Somehow, even though I’m usually a dedicated reader of Anne’s hrefs, I missed two. Thanks Anne!

Thanks to this person too, whoever they are :-)