<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-01-31:32</id>
  <title>development corrupts</title>
  <subtitle>absolute development corrupts absolutely</subtitle>
  <author>
    <name>afuna</name>
  </author>
  <link rel="alternate" type="text/html" href="https://afuna.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://afuna.dreamwidth.org/data/atom"/>
  <updated>2009-12-04T04:05:34Z</updated>
  <dw:journal username="afuna" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-01-31:32:60226</id>
    <link rel="alternate" type="text/html" href="https://afuna.dreamwidth.org/60226.html"/>
    <link rel="self" type="text/xml" href="https://afuna.dreamwidth.org/data/atom/?itemid=60226"/>
    <title>Creating and customizing a theme layer</title>
    <published>2009-12-02T08:57:07Z</published>
    <updated>2009-12-03T11:12:40Z</updated>
    <category term="styles"/>
    <category term="s2"/>
    <category term="dreamwidth"/>
    <dw:security>public</dw:security>
    <dw:reply-count>7</dw:reply-count>
    <content type="html">Edited slightly, and posted to &lt;a href="http://dw-styles.dreamwidth.org/13219.html"&gt;http://dw-styles.dreamwidth.org/13219.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The basic settings to customize your theme can be accessed and modified via &lt;a href="http://www.dreamwidth.org/customize/options"&gt;the Customize Journal Style&lt;/a&gt; page. However, if you're doing something more complicated, you may need to modify code snippets or manually set some variables. For these, you will need to know how to create a theme layer and attach it to your style.&lt;br /&gt;&lt;br /&gt;First of all, a quick rundown of terms:&lt;br /&gt;&lt;br /&gt;A &lt;strong&gt;style&lt;/strong&gt; is what is applied to your journal, and it is made up of several layers. A &lt;strong&gt;layout layer&lt;/strong&gt; is the basic structure or framework of the style. Customizations via the Customize Journal Style page will be saved as auto-generated customizations in a &lt;strong&gt;user layer&lt;/strong&gt;. Any other modifications you make, you should do in a theme layer. A &lt;strong&gt;theme layer&lt;/strong&gt; can contain system-provided default color settings; it can also contain any additional advanced customizations you wish to apply to your journal.&lt;br /&gt;&lt;br /&gt;Technically, you can just modify a user layer, and it seems easier to do that, because it's already been created for you and you can skip the few steps required to create and attach a  new theme layer to your style. However, this is a bad idea, because hand-edited changes to a user layer may be erased the next time you use the wizard. To be safe, always create a separate theme layer if you need to edit something manually. &lt;br /&gt;&lt;br /&gt;(!! the links will work from single entry-view; they'll also work from read page, etc, when I post the final entry)&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="#style"&gt;Find your current style information&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="#theme"&gt;Create a new theme layer&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="#copy"&gt;Copy existing theme layer settings to your new theme layer&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="#apply"&gt;Apply the new theme layer to your style&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="#tips"&gt;Tips&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="cut-wrapper"&gt;&lt;span style="display: none;" id="span-cuttag___1" class="cuttag"&gt;&lt;/span&gt;&lt;b class="cut-open"&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class="cut-text"&gt;&lt;a href="https://afuna.dreamwidth.org/60226.html#cutid1"&gt;on with the tutorial&lt;/a&gt;&lt;/b&gt;&lt;b class="cut-close"&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style="display: none;" id="div-cuttag___1" aria-live="assertive"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For the record, I now hate the advanced customization area and want it to die die die :-) Setting things up is way more complicated than it should be&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=afuna&amp;ditemid=60226" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-01-31:32:60126</id>
    <link rel="alternate" type="text/html" href="https://afuna.dreamwidth.org/60126.html"/>
    <link rel="self" type="text/xml" href="https://afuna.dreamwidth.org/data/atom/?itemid=60126"/>
    <title>Custom reading list colors</title>
    <published>2009-12-02T06:56:16Z</published>
    <updated>2009-12-04T04:05:34Z</updated>
    <category term="dreamwidth"/>
    <category term="styles"/>
    <category term="s2"/>
    <dw:security>public</dw:security>
    <dw:reply-count>21</dw:reply-count>
    <content type="html">ETA: Posted! &lt;a href="http://dw-nifty.dreamwidth.org/4374.html"&gt;http://dw-nifty.dreamwidth.org/4374.html&lt;/a&gt; (with minor edits, including removing exclamation points *g*)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So many people do not know that Dreamwidth has had custom reading list colors for a long time now!&lt;br /&gt;&lt;br /&gt;Putting up a draft entry, shall polish and post to &lt;span style='white-space: nowrap;'&gt;&lt;a href='https://dw-nifty.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/comm_staff.png' alt='[site community profile] ' width='16' height='16' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://dw-nifty.dreamwidth.org/'&gt;&lt;b&gt;dw_nifty&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; or &lt;span style='white-space: nowrap;'&gt;&lt;a href='https://dw-styles.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/comm_staff.png' alt='[site community profile] ' width='16' height='16' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://dw-styles.dreamwidth.org/'&gt;&lt;b&gt;dw_styles&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; (but I think I may need to do a "here's how to create and start editing your theme layer" first, which I keep putting off) &lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Enable the custom reading list colors defined by your style&lt;/h3&gt;&lt;br /&gt;&lt;br /&gt;Custom reading list colors are disabled by default, so you'll need to enable it, but it is available for all styles (with the exception of Zesty).&lt;br /&gt;&lt;br /&gt;Go to &lt;a href="http://www.dreamwidth.org/customize/options"&gt;Customize Journal Style&lt;/a&gt;, under "Additional Options" select "Use my custom reading list colors"&lt;br /&gt;&lt;br /&gt;Most styles implement it as a border around the userpic. However, some styles, such as Negatives, have implemented it as part of the entry border. If you don't like where your style puts the custom colors, you can also customize them by setting some variables in the advanced customization area.&lt;br /&gt;&lt;br /&gt;&lt;span class="cut-wrapper"&gt;&lt;span style="display: none;" id="span-cuttag___1" class="cuttag"&gt;&lt;/span&gt;&lt;b class="cut-open"&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class="cut-text"&gt;&lt;a href="https://afuna.dreamwidth.org/60126.html#cutid1"&gt;Read on&lt;/a&gt;&lt;/b&gt;&lt;b class="cut-close"&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style="display: none;" id="div-cuttag___1" aria-live="assertive"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=afuna&amp;ditemid=60126" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-01-31:32:9109</id>
    <link rel="alternate" type="text/html" href="https://afuna.dreamwidth.org/9109.html"/>
    <link rel="self" type="text/xml" href="https://afuna.dreamwidth.org/data/atom/?itemid=9109"/>
    <title>Coding, coding, etc</title>
    <published>2009-04-19T17:12:06Z</published>
    <updated>2009-04-19T17:12:06Z</updated>
    <category term="the good"/>
    <category term="plans"/>
    <category term="code"/>
    <category term="s2"/>
    <dw:security>public</dw:security>
    <dw:reply-count>5</dw:reply-count>
    <content type="html">I find myself utterly in love with the creativity of people who can use CSS. Because, hey, I'm happy with black on white and everything in outline form and utterly utilitarian myself, but that doesn't make for gorgeous. (My heart flutters every time I see someone take a Core 2 style, and make it really pretty, because that's what they're there for.&lt;br /&gt;&lt;br /&gt;My heart also bounces with &lt;em&gt;glee&lt;/em&gt; whenever someone mentions that it's easier to customize styles here than they are used to, because that's what all we did was for. Seriously, ba-dump-thump.)&lt;br /&gt;&lt;br /&gt;Styles still not done, though. On my list, once I'm no longer focused on open-beta-blockers and the styles usability bugs being reported to us, is, in no particular order:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;sticky entry module&lt;/li&gt;&lt;br /&gt;&lt;li&gt;custom text module&lt;/li&gt;&lt;br /&gt;&lt;li&gt;hooks to let layout authors easily insert custom modules&lt;/li&gt;&lt;br /&gt;&lt;li&gt;segment and arrange the wizard properly (subheaders, etc)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;pulling in information that's already available to us in other places, to be accessible using S2 (la la la la)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;The one thing that I'm finding out is how easy it is to manipulate the S2 backend. Perhaps &lt;em&gt;too&lt;/em&gt; easy. I find myself wondering whether my methods are hackish/messy and will cause problems down the line later on.&lt;br /&gt;&lt;br /&gt;(I'm already trying to stop myself from trying to redo the grouping stuff as hashes with lots of automagic rather than arrays. Imagine being able to do &lt;code&gt;property string{} module_customtext_group { grouptype= "module" };&lt;/code&gt;  and have it pick up the title/name/opts automatically instead of having to do a &lt;code&gt;set module_customtext_group&lt;/code&gt;... Feel like I missed my chance on that one, now I have to do the grouping manually all the time. Bleeeeeh. (but it works, I'm happy with it))&lt;br /&gt;&lt;br /&gt;But before that, business statistics, which I am working with, with &lt;span style='white-space: nowrap;'&gt;&lt;a href='https://pauamma.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/silk/identity/user.png' alt='[personal profile] ' width='17' height='17' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://pauamma.dreamwidth.org/'&gt;&lt;b&gt;pauamma&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;. We've got some kind of framework hashed out, now just need to figure out how to do the selects for data collection (I say "just", but since that's the entire &lt;em&gt;point&lt;/em&gt; of what we're doing... hah!). &lt;br /&gt;&lt;br /&gt;The biggest problem with the SQL is that we're basically going to go through all the user accounts for data, e.g, account types. How to do this without bringing the DB to its knees? Suspect I shall need to talk to friendly neighborhood database administrator soon-ish.&lt;br /&gt;&lt;br /&gt;Stuff like -- group by looks the easiest syntax-wise, but has to load everything in the database in one go, and that probably won't be pretty.  bin/maint/stats.pl splits users into blocks, and iterates over each of the rows a block at a time. Or could you combine the two, split into blocks, and groupby within that block? Ponder, ponder, beard-stroke, etc. (Thinking out loud, will wander over to IRC and try to find a good time to talk at some point).&lt;br /&gt;&lt;br /&gt;It's April 20. I'm so &lt;em&gt;excited&lt;/em&gt;. Also, feeling the lack of time. (I do wish it was faster to get into the zone, though. I usually sleep Saturdays away, which leaves only part of Sunday to do code, and there's so much to do. Grr)&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=afuna&amp;ditemid=9109" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-01-31:32:6673</id>
    <link rel="alternate" type="text/html" href="https://afuna.dreamwidth.org/6673.html"/>
    <link rel="self" type="text/xml" href="https://afuna.dreamwidth.org/data/atom/?itemid=6673"/>
    <title>I love me my little hacks</title>
    <published>2009-04-11T01:19:08Z</published>
    <updated>2009-04-11T01:19:08Z</updated>
    <category term="code"/>
    <category term="s2"/>
    <dw:mood>geeky</dw:mood>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">For instance:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
    foreach var string module ( $*modules_available ) {
        # FIXME: get the values in less hacky manner
        var string section = get_plural_phrase( 0, "module_${module}_section" );
        var int order = int(get_plural_phrase( 0, "module_${module}_order" ));

        $*module_sections{$section}[$order]=[$module];
    }
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;(but I should probably not let something like that creep into core. Long list of if-statements, it is.)&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=afuna&amp;ditemid=6673" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
