<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>development corrupts</title>
  <link>https://afuna.dreamwidth.org/</link>
  <description>development corrupts - Dreamwidth Studios</description>
  <lastBuildDate>Wed, 02 Dec 2009 08:57:07 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>afuna</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/13/32</url>
    <title>development corrupts</title>
    <link>https://afuna.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://afuna.dreamwidth.org/60226.html</guid>
  <pubDate>Wed, 02 Dec 2009 08:57:07 GMT</pubDate>
  <title>Creating and customizing a theme layer</title>
  <link>https://afuna.dreamwidth.org/60226.html</link>
  <description>Edited slightly, and posted to &lt;a href=&quot;http://dw-styles.dreamwidth.org/13219.html&quot;&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=&quot;http://www.dreamwidth.org/customize/options&quot;&gt;the Customize Journal Style&lt;/a&gt; page. However, if you&apos;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&apos;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&apos;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=&quot;#style&quot;&gt;Find your current style information&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;#theme&quot;&gt;Create a new theme layer&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;#copy&quot;&gt;Copy existing theme layer settings to your new theme layer&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;#apply&quot;&gt;Apply the new theme layer to your style&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;#tips&quot;&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=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://afuna.dreamwidth.org/60226.html#cutid1&quot;&gt;on with the tutorial&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&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=&quot;https://www.dreamwidth.org/tools/commentcount?user=afuna&amp;ditemid=60226&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://afuna.dreamwidth.org/60226.html</comments>
  <category>styles</category>
  <category>s2</category>
  <category>dreamwidth</category>
  <lj:security>public</lj:security>
  <lj:reply-count>7</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://afuna.dreamwidth.org/60126.html</guid>
  <pubDate>Wed, 02 Dec 2009 06:56:16 GMT</pubDate>
  <title>Custom reading list colors</title>
  <link>https://afuna.dreamwidth.org/60126.html</link>
  <description>ETA: Posted! &lt;a href=&quot;http://dw-nifty.dreamwidth.org/4374.html&quot;&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=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://dw-nifty.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/comm_staff.png&apos; alt=&apos;[site community profile] &apos; width=&apos;16&apos; height=&apos;16&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://dw-nifty.dreamwidth.org/&apos;&gt;&lt;b&gt;dw_nifty&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; or &lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://dw-styles.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/comm_staff.png&apos; alt=&apos;[site community profile] &apos; width=&apos;16&apos; height=&apos;16&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://dw-styles.dreamwidth.org/&apos;&gt;&lt;b&gt;dw_styles&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; (but I think I may need to do a &quot;here&apos;s how to create and start editing your theme layer&quot; 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&apos;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=&quot;http://www.dreamwidth.org/customize/options&quot;&gt;Customize Journal Style&lt;/a&gt;, under &quot;Additional Options&quot; select &quot;Use my custom reading list colors&quot;&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&apos;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=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://afuna.dreamwidth.org/60126.html#cutid1&quot;&gt;Read on&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=afuna&amp;ditemid=60126&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://afuna.dreamwidth.org/60126.html</comments>
  <category>styles</category>
  <category>dreamwidth</category>
  <category>s2</category>
  <lj:security>public</lj:security>
  <lj:reply-count>21</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://afuna.dreamwidth.org/9109.html</guid>
  <pubDate>Sun, 19 Apr 2009 17:12:06 GMT</pubDate>
  <title>Coding, coding, etc</title>
  <link>https://afuna.dreamwidth.org/9109.html</link>
  <description>I find myself utterly in love with the creativity of people who can use CSS. Because, hey, I&apos;m happy with black on white and everything in outline form and utterly utilitarian myself, but that doesn&apos;t make for gorgeous. (My heart flutters every time I see someone take a Core 2 style, and make it really pretty, because that&apos;s what they&apos;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&apos;s easier to customize styles here than they are used to, because that&apos;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&apos;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&apos;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&apos;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&apos;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= &quot;module&quot; };&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&apos;m happy with it))&lt;br /&gt;&lt;br /&gt;But before that, business statistics, which I am working with, with &lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://pauamma.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[personal profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://pauamma.dreamwidth.org/&apos;&gt;&lt;b&gt;pauamma&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;. We&apos;ve got some kind of framework hashed out, now just need to figure out how to do the selects for data collection (I say &quot;just&quot;, but since that&apos;s the entire &lt;em&gt;point&lt;/em&gt; of what we&apos;re doing... hah!). &lt;br /&gt;&lt;br /&gt;The biggest problem with the SQL is that we&apos;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&apos;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&apos;s April 20. I&apos;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&apos;s so much to do. Grr)&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=afuna&amp;ditemid=9109&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://afuna.dreamwidth.org/9109.html</comments>
  <category>plans</category>
  <category>the good</category>
  <category>code</category>
  <category>s2</category>
  <lj:security>public</lj:security>
  <lj:reply-count>5</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://afuna.dreamwidth.org/6673.html</guid>
  <pubDate>Sat, 11 Apr 2009 01:19:08 GMT</pubDate>
  <title>I love me my little hacks</title>
  <link>https://afuna.dreamwidth.org/6673.html</link>
  <description>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, &quot;module_${module}_section&quot; );
        var int order = int(get_plural_phrase( 0, &quot;module_${module}_order&quot; ));

        $*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=&quot;https://www.dreamwidth.org/tools/commentcount?user=afuna&amp;ditemid=6673&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://afuna.dreamwidth.org/6673.html</comments>
  <category>s2</category>
  <category>code</category>
  <lj:mood>geeky</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
