WebKit overflow:hidden and clear:none clipping failure

Programming, Web and Web Standards No Comments

There is a failure in WebKit to honor overflow:hidden with clear:none on child elements.  This prevents several cheesy no-table space filling strategies which have worked portably since IE3 from working in WebKit derived browsers (safari, chrome, etc.)

Test case with screen shots and examples.

I have submitted this as Bug 23221.

Prototype: EEP18 Considered Harmful: The problems with Erlang to JSON term translation

ECMA / Javascript, ECMAScript, Erlang, General Interest, Programming, Rants, Tools and Libraries, Web and Web Standards 5 Comments

THIS IS ONLY HALF WRITTEN.  I have been sitting on this post, waiting for the mood to finish it, for months; because EEP18 is now being treated as a likely implement, I am immediately publishing the half-written version, because it exposes many (though not all) of the serious, irreconcilable problems with EEP18.

On the mailing list, people are actively trying to bring Erlang up to snuff with regards to web standards.  One of the more unfortunate choices being discussed is JSON as a data notation.  JSON, unfortunately, does not actually map to Erlang in a useful way.  Joe Armstrong has gone as far as to suggest BIFs, which are decidedly unrealistic as well as unnecessary.  My goal is to create a JSON handling library.  However, the mailing list is beginning to put momentum behind an alternative proposal which is currently presented in BIF form.

This post explains why my approach is different.  Many of the issues herein are discussed by the tabled EEP (EEP 18, “JSON BIFs” by Rickard O’Keefe), but some are not, and some of these issues are accepted when I believe they should not be.  It is my position that EEP 18 is unacceptably dangerous.  I will explain why.

Read the rest…

Gearing Up for Public SVN

C/C++, ECMA / Javascript, ECMAScript, Erlang, Game Algorithms, PHP, Programming, Tools and Libraries, Web and Web Standards No Comments

I’m going to be releasing a few new libraries in the next several days, both by archive and public subversion.  I’ve already bought the domains and built a forum for them.  I even wasted a couple hours subversion automating everything down to the line of having little library websites made automatically, with custom per-library color palettes.

I was a little bored.

So we’re going to have three libraries progressing in the immediate future, with quite a few more over time:

  1. HtStub – An embeddable, zero-config, zero-behavior secure Erlang webserver
  2. SC A-Star – An efficient, modular ECMAscript (flash/actionscript, javascript, jscript etc) A* implementation with support for custom grid geometries (includes algorithm tutorial)
  3. TestErl – unit, regression and stochastic testing for Erlang
  4. ScUtil – a fairly large list of gap filling functionality for Erlang

In the near future, I will add C++ and PHP libraries, as well as many some libraries for more obscure languages like FormulaONE, Mozart-Oz, Factor and maybe (sadly) Delphi.  I have more than 30 libraries ready for release.

All those repos are pretty empty at the moment.  That will change in coming days, and I’m sure I’ll post lots of boring little snippets here about whatever minor new thing my crap does.

Yay!

Bought a bunch of Erlang library related domains

Erlang, Programming, Tools and Libraries, Web and Web Standards No Comments

I’ve actually built a bunch of small Erlang libraries which I find tremendously useful.  Over the last weekend, I’ve set up public SVN for a lot of them, built a small forum and started a project manager.  I’m actually restarting each and every project in the light of better adherence to best practices, since the code’s going to be distributed now, such as test suites from ground zero, but the point is, I’m making my libraries available and easy to find now.

The first three I’m going to release are scutil, testerl and htstub.

  • scutil is my personal utility library.  It’s a hodgepodge of semi-random stuff.  there’s a whole lot of crap down there.
  • testerl is a unit/regression and stochastic testing library.  One of the main goals of testerl is to have low impact on the code it tests, which it achieves through a single module attribute and a list (syntax identical to export) of the non-exported functions that the test rig needs access to for testing.
  • htstub is a socket manager and HTTP protocol implementation.  It’s not a webserver – it has no filesystem access and doesn’t know how to respond to requests – it’s more of a transparent way to handle HTTP.  htstub is useful for adding a web front end to applications.

I actually intend to release some c++, actionscript, php, javascript and delphi stuff soon too, If I Get Around To It ™; that said, now that I have SVN largely automated, it’s quite likely.

What would make a good image plugin?

Blog Meta, Daily Image, ECMA / Javascript, General Interest, Miscellaneous, Picture Links, Programming, Tools and Libraries, Web and Web Standards, Word Press 4 Comments

I’ve been thinking about making an image plugin for WordPress.  I want to restart my image of the day process, but the import process has been dreadful, and there’s no programmatic access to the image list, meaning things like random images and images from subgroups aren’t particularly reasonable.  To that end I need to write my own, and since I’d love the rank that comes from having a high-usage plugin, I need a clear idea of what things go into an image plugin, what features are missing from existing plugins, et cetera.

I’m already doing complex efficient randomization, API access, bulk posting, timed bulk posting, base autotagging, auto-categorization, a catalog widget, and I’m going to make sure that my stuff is compatible with the All In One SEO pack.  I’m going to provide integration points, and I’m going to provide an example integration with LightBox, or one of its relatives.  I’m going to provide voting, moderated tag suggestion and home-post permalinking.

I’ll also be writing strict, browser/version portable code without hacks.  Yay!

Please let me know what you’d want to see if there were a new image plugin coming out.

IANA / ICANN Gambling! Place your bets, be a psychic

Bunk News, Competitions, Gaming, General Interest, Humor, Miscellaneous, Nintendo DS, Polls, Programming, Web and Web Standards 11 Comments

It occurred to me that I have a great way to prove the mighty powers of Nostradumbass.

[SB digg, reddit]ICANN has announced their intent to allow the registration of new gTLDs in a repeated auction process, starting for the princely sum of $100,000 for a handful of letters.  In IRC in debate the question came up how many vanity 1st level domains (hereafter vanity 1ld) would be purchased.

[digg-reddit-me]For the purposes of competition – and there’s no money involved, I just said gambling to whore diggs and such – a vanity 1LD is defined as a gTLD which represents the name of a person, company or organization.  This means that .porn is not a vanity 1tld, even though it’ll certainly be owned by a pornographer, because it’s named for its content.  By contrast, .microsoft is a vanity 1LD, as is .billclinton (which probably won’t get bought; I’m just being thorough in definition and Bill has a good sense of humor.)  If a 1LD is assigned on basis of trademark, it’s pretty much in like Flynn.

So.  Where’s the psychicitudeness?

I predict that approximately 950 vanity 1LDs will be purchased in the first auction.  (This has the startling price tag of ninety five million dollars minimum.)

Anyone want to play The Price is Right with me?  Place your bet in comments (preferably as a trackback; this is a new domain and I could use some rank).  Whoever gives the nearest answer to the number that turns out to be correct wins.  (No price is right rules; going over isn’t different than going under.)

Incidentally, if you guys are worried I’ll edit my post after the fact, just check Internet Archive for the day before the auction.  I can’t cheat; I’m being watched by www.bigbroth.er .

Bring it.  950.

Mod_rewrite not working?

Miscellaneous, Web and Web Standards No Comments

Here’s what you forgot:

  1. AllowOverride All <– this probably says “none”; fix it
  2. AllowOverride All <– it’s in two different parts of httpd.conf, so fix it again
  3. LoadModule somepath/mod_rewrite.so <– uncomment this, and check if the file’s actually there

Holy ECMA Hacks, Batman: the Weirdest Path To Default Arguments Ever

ECMA / Javascript, Programming, Web and Web Standards 1 Comment

Yeah, so, I’m having a hard time adressing the weirdness that is ParentNode’s approach to default functions. Basically he sets a hook on the prototype for calling the function, and in that he makes a new function which checks for the presence of a particular member (we remember that functions are objects in ECMA, I trust.) If that member exists, he chops it up, and for each argument in the original function call, he tests for undefinedness, and if that’s present, he fills in the value. (This one is order-based default, but there’s also a by-name default.)

Now, I think it’s a little impractical, and it leads to a mind-bleedingly weird syntax, but it’s actually struck me that this is a very clean, very terse format for providing something akin to uniform construction behavior when you’re dealing with multiple manufacture paths to a given object. Granted, it’d be an even bigger, even uglier hack, but still, it’d work.

Witness syntax:

function exampleF(foo, bar, baz) { … }.defaults(1, 3, 7);

Hear that crashing sound? It’s your mind, breaking. But, as much as I hate to admit it, this is one genuinely lovable hack. Bravo.

Checklist for Embedded IE

AJAX, C/C++, DOM, ECMA / Javascript, Internet Explorer, Programming, Tools and Libraries, Tutorials, Web and Web Standards 2 Comments

MSHTML is an awesome user interface tool, but it has a whole lot of standard behaviors, many of which aren’t what one wants for an application (since it’s designed for the web.) This is a list of stuff you need to do to embed IE COM and have it behave like a normal application. There’s more than a person might expect.

Read the rest…

Usable Design and the RIAA

Miscellaneous, Rants, Web and Web Standards No Comments

Yeah, it’s dead short: the RIAA’s page sucks. Some douche came onto IRC looking for help building a music piracy site, so I went to try to report it at the RIAA. I couldn’t find a place to report it. (I reported it to the MPAA and lied and said there were movies in there too. Hopefully they’ll pass it on.)

« Previous Entries