March 18th, 2006

  • evan

a free idea for you

So pretty much everyone I know (and here by "everyone" I mean "everyone but the designers and of course Kenneth 'cause he works for Adobe") hates flash, but has it installed for two reasons:
  1. Sometimes websites require flash to navigate them.
  2. Sometimes you actually do want to see what's behind the flash (Google Video. Homestar Runner).

#2, of course, can't be helped. But #1 "should be" easily fixable: When asked to render a Flash object, have the browser instead stick in an iframe (or scrolling div, whatevs) that contains all of the links that the flash would (eventually, ugh, after waiting for all the text to scroll in) show. You could even have a "replace this with the real flash" link, making this a superset of the awesome flashblock's functionality.

I looked into this: I think most of the SWF parsing could be handled by gnash or swfdec, but it's unclear to me whether these support the most recent flash versions. But if they do, then most of the hard work is doing the browser integration. You could do it with Greasemonkey but then you still get the annoying double-load of the page 'cause Greasemonkey gets at it too late, so it'd probably be better(?) to register yourself as a mime handler for flash, and then reregister the actual flash player under a new mime type.

Me, I've got plenty of other projects. Mozilla hackers! I invoke the lazyweb! (I'm looking at nikolasco as my best bet. Or maybe mart.)
  • evan

kanji database

kanji.db.bz2: 279kb SQLite3 dump of Jim Breen's KANJIDIC2 (a Japanese kanji dictionary). This includes not only their readings and meanings, but also which grade level the kanji are learned, as well as their frequency rank found by counting frequencies in newspapers. Perfect for studying!

(Man, parsing XML is like pulling teeth.)

sqlite> select count(*) from kanji where grade < 10;

So I'll basically never be more literate than a middle schooler.

Anyway, here's a peek:
sqlite> select * from kanji where grade is not null order by grade asc, freq asc limit 10;
Collapse )