melannen: Commander Valentine of Alpha Squad Seven, a red-haired female Nick Fury in space, smoking contemplatively (Default)
melannen ([personal profile] melannen) wrote2009-04-19 01:38 pm

more on styles!

I had forgotten how I react to coding. This is how I react to coding: I went from knowing nothing about anything but basic html to dreaming about Core2 last night. In about six hours. (Of course, for some reason I also dreamed that [personal profile] treewishes was secretly Terry Brooks, so that may not be diagnostic.) I am not *good* at coding, because what I enjoy is crashing through reinventing the wheel and doing things the wrong way by trial-and-error and example without actually reading the directions or re-using old solutions; but I do find it hard to *stop*.

Anyway, after hours of pounding away, I now have a DW style that is a vague approximation of the ugly, crufty, half-broken S1 style I use in various hacked-together forms on LJ and JF. Only on LJ and JF it is high-contrast black, and my DW version is very, very pink, mostly to thumb my nose all all the anti-Tropo Red people. :P (The One Pig With Horns is just a placeholder image, though, promise, [personal profile] stellar_dust.)

The important thing, though, is that it has custom friendlist colors!!! I am just synesthetic enough that seeing my flist people without their proper color screws with my head. So, style with custom colors! (If anyone wants to use this style, which is a variant on LJ's Punquin Elegant, or the Generator port I made, I can give you the core2-compileable source, and if you'd like me to port another basic LJ style over instead, let me know and I'll try it; the code is really, really ugly though (I mean, even in the original S2 version before I mucked with them it was ugly, and I could tell this without even previously knowing anything about S2. Here's how ugly: I had to look at the Core2 test style in order to figure out how to add comments.)

What I'd actually like to do is take one of the actual Core2 styles - Transmogrify is pretty - and make it work with custom colors. But there is NO DOCUMENTATION for how to do custom colors ANYWHERE. For S2 or Core2. In S1 there's a convenient list of predefined properties, and it is very simple to just insert them in your code. In S2 and Core2, NOT SO MUCH.

It *appears* that the friend color values can be gotten from fgcolor and bgcolor. In order to use them in an S2 style, you seem to have to call them as parameters in the print_entry function, like so: function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text) , and then you can use them in that function.

A proper Core2 style does not have a print_entry function. The equivalent functions in Core2 do not accept parameters. Similar values (like entry text and date) that are used in the Core2 style seem to come off a list that are gotten from some sort of external library, since they show up in the list of properties / functions without actually being defined in the code, and nothing that looks like it applies to fgcolor and bgcolor is in those lists. So it looks like Core2 just doesn't implement that yet. Or there's some sort of non-discoverable-by-grep way of accessing predefined stuff that I need to use, that is way beyond me. (I should probably figure out where to ask a) is it implemented, and b) if it's not implemented, should I wait, or would it be faster to just figure out perl and css and Core2 and Dreamhack and write the patch myself?)

Anyway, more important question (And test of polls!)

Poll #94 Ethics Poll #DW1
Open to: Registered Users, detailed results viewable to: All, participants: 13

Is it cheating to validate all the OpenID accounts I've got (which is probably around ten) just to get invite codes?

View Answers

Yes. It is cheating. Don't.
1 (7.7%)

Of course not! Do it!
1 (7.7%)

Only if you're going to use the accounts for something else later (like flists or claiming imported comments)
4 (30.8%)

Ooh, why didn't I think of that?
3 (23.1%)

Radio button!
4 (30.8%)

cathexys: dark sphinx (default icon) (Default)

[personal profile] cathexys 2009-04-19 07:11 pm (UTC)(link)
I did create my cathexys OpenID last night so I'd have an icon on all my own comments (yes, I think they'll fix that but not yet).

And then I realized oh, that should get me an invite. And then I thought that was kind of unethical...but maybe not?

Waits for your survey :)
cathexys: dark sphinx (default icon) (jack harkness (by liviapenn))

[personal profile] cathexys 2009-04-19 07:30 pm (UTC)(link)

I'm just gonna wait it out. I'm liking my style and the small bad things I'll deal with until there's more offered or easier explanations :)

But I'm impressed with anyone who "opens hostilities"!!!!
damned_colonial: Convicts in Sydney, being spoken to by a guard/soldier (Default)

[personal profile] damned_colonial 2009-04-19 07:41 pm (UTC)(link)
It also occurs to me that if one owns one's own domain(s) one can create a nigh-infinite number of openid accounts.
morineko: Hikaru Amano from Nadesico (Default)

[personal profile] morineko 2009-04-19 08:42 pm (UTC)(link)
Yeah, that's just opening the door to the Giant Spam Problem that LJ has.
damned_colonial: Convicts in Sydney, being spoken to by a guard/soldier (Default)

[personal profile] damned_colonial 2009-04-19 09:15 pm (UTC)(link)
Ya reckon? ;)
treewishes: Blue and green summer tree (Default)

[personal profile] treewishes 2009-04-19 09:28 pm (UTC)(link)
And how do you know I'm *not* Terry Brooks, hmm?

stellar_dust: Stylized comic-book drawing of Scully at her laptop in the pilot. (Default)

[personal profile] stellar_dust 2009-04-20 02:35 am (UTC)(link)
I already validated all my OpenID accounts. Just because I like validating things, not with any nefarious intention!

I do enough mucking around with code other place that I'm waiting for styles to be properly ready before I edit mine. Although I would like a "previous" link at the bottom of the new .. theme ... whose name I have already forgotten, argh.
hatman: HatMan, my alter ego and face on the 'net (Default)

[personal profile] hatman 2009-04-21 12:32 am (UTC)(link)
Was on IRC today. [staff profile] denise mentioned that the OpenID = invite code thing is only meant for people who don't have active DW accounts already. She'll be doing her best to screen out the ones who do, and considers attempts to get extra codes via extra OIDs to be working the system. Just FYI. (Even if I did vote that it's probably okay as long as you actually make use of those accounts.)