<?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,2008-04-22:10</id>
  <title>Dreamwidth Development</title>
  <subtitle>Dreamwidth Open Source Development</subtitle>
  <author>
    <name>Dreamwidth Open Source Development</name>
  </author>
  <link rel="alternate" type="text/html" href="https://dw-dev.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://dw-dev.dreamwidth.org/data/atom"/>
  <updated>2019-05-25T20:42:48Z</updated>
  <dw:journal username="dw_dev" type="community"/>
  <entry>
    <id>tag:dreamwidth.org,2008-04-22:10:213572</id>
    <author>
      <email>mark@plogs.net</email>
      <name>Mark Smith</name>
    </author>
    <dw:poster user="mark"/>
    <link rel="alternate" type="text/html" href="https://dw-dev.dreamwidth.org/213572.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev.dreamwidth.org/data/atom/?itemid=213572"/>
    <title>perltidy now required!</title>
    <published>2019-05-25T20:42:48Z</published>
    <updated>2019-05-25T20:42:48Z</updated>
    <category term="perl"/>
    <category term="documentation"/>
    <dw:security>public</dw:security>
    <dw:reply-count>4</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='mark' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://mark.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/silk/identity/user_staff.png' alt='[staff profile] ' width='17' height='17' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://mark.dreamwidth.org/'&gt;&lt;b&gt;mark&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;I've gone ahead and run perltidy on our codebase and added a test that will run and tell you if things are tidy or not. This is now required for all PRs and code we're merging.&lt;/p&gt;

&lt;p&gt;To set up and run it locally, first make sure your modules are up to date:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
bin/checkconfig.pl
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will probably ask you to install some modules, do so! Then you can run &lt;code&gt;tidyall&lt;/code&gt; and it will automatically reformat all of your files as necessary:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
perl -I$LJHOME/extlib/lib/perl5 $LJHOME/extlib/bin/tidyall -a
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The first time you run this will take a while. It caches the results though so further runs will be much, much faster.&lt;/p&gt;

&lt;p&gt;That should be it -- let me know if this works for you or if you have any issues!&lt;/p&gt;
&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dw_dev&amp;ditemid=213572" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2008-04-22:10:195515</id>
    <author>
      <name>Sophie</name>
    </author>
    <dw:poster user="sophie"/>
    <link rel="alternate" type="text/html" href="https://dw-dev.dreamwidth.org/195515.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev.dreamwidth.org/data/atom/?itemid=195515"/>
    <title>Dreamhacks: Updated Locale::Country, and installed Log::Log4perl</title>
    <published>2017-02-11T19:52:30Z</published>
    <updated>2017-02-11T19:52:30Z</updated>
    <category term="dreamhacks"/>
    <category term="perl"/>
    <dw:security>public</dw:security>
    <dw:reply-count>1</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='sophie' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://sophie.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://sophie.dreamwidth.org/'&gt;&lt;b&gt;sophie&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hello! Your friendly neighbourhood Dreamhack admin here.&lt;br /&gt;&lt;br /&gt;I've updated the version of Locale::Country that the Dreamhack machine uses - we were on 3.25, and we're now on 3.42.&lt;br /&gt;&lt;br /&gt;I also installed the Log::Log4perl module, as it's now being used by the codebase. This should make update-db.pl work again!&lt;br /&gt;&lt;br /&gt;If there are any issues (related to these or otherwise), please comment and let me know!&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dw_dev&amp;ditemid=195515" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2008-04-22:10:165883</id>
    <author>
      <name>Sophie</name>
    </author>
    <dw:poster user="sophie"/>
    <link rel="alternate" type="text/html" href="https://dw-dev.dreamwidth.org/165883.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev.dreamwidth.org/data/atom/?itemid=165883"/>
    <title>Dreamhack machine updated to use Template Toolkit 2.26</title>
    <published>2014-11-27T16:07:01Z</published>
    <updated>2014-12-07T22:50:02Z</updated>
    <category term="perl"/>
    <category term="dreamhacks"/>
    <dw:security>public</dw:security>
    <dw:reply-count>1</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='sophie' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://sophie.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://sophie.dreamwidth.org/'&gt;&lt;b&gt;sophie&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I have just installed Template Toolkit 2.26 on the Dreamhack machine. We were previously using 2.20, which is still installed but in such a way that the later version &lt;em&gt;should&lt;/em&gt; take precedence.&lt;br /&gt;&lt;br /&gt;As this is a core module for Dreamwidth, it's recommended that you restart Apache when possible. Things won't break just yet if you don't (since the old files aren't gone just yet), but according to my sources, the Dreamwidth codebase will require this new version of Template Toolkit soon, so things may break in the future.&lt;br /&gt;&lt;br /&gt;As always, if anything breaks on the Dreamhack machine because of this change, please comment to let me know, or open a GitHub issue.&lt;br /&gt;&lt;br /&gt;[edit 2014-12-07: Fix a typo.]&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dw_dev&amp;ditemid=165883" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2008-04-22:10:145562</id>
    <author>
      <name>alierak</name>
    </author>
    <dw:poster user="alierak"/>
    <link rel="alternate" type="text/html" href="https://dw-dev.dreamwidth.org/145562.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev.dreamwidth.org/data/atom/?itemid=145562"/>
    <title>Memory leak heads up</title>
    <published>2013-07-07T00:58:26Z</published>
    <updated>2013-07-07T00:58:26Z</updated>
    <category term="ops"/>
    <category term="perl"/>
    <dw:mood>productive</dw:mood>
    <dw:security>public</dw:security>
    <dw:reply-count>7</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='alierak' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://alierak.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://alierak.dreamwidth.org/'&gt;&lt;b&gt;alierak&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Anyone remember when we deployed some servers with Perl 5.10.0 and saw all sorts of problems with memory usage due to a memory leak in map? I ended up drastically reducing the number of requests each Apache process would handle before it exits, &lt;span style='white-space: nowrap;'&gt;&lt;a href='https://mark.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/silk/identity/user_staff.png' alt='[staff profile] ' width='17' height='17' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://mark.dreamwidth.org/'&gt;&lt;b&gt;mark&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; and I set up various cron jobs that would unceremoniously kill off workers every so often, etc. As we upgraded and phased out older servers, I think it was no longer a problem (e.g., web08 had Perl 5.10.1).&lt;br /&gt;&lt;br /&gt;Well, it's looking like there's another Perl memory leak on the newest group of servers. They're running 5.14.2, and things like synsuck and resolve-extacct (really?) are using several gigs of RAM after a few days. I've set up an array of lovely new worker-restarting cron jobs, and I think this is the relevant Perl bug: &lt;a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702416"&gt;perl: memory leak in Encode::decode&lt;/a&gt;. It is likely that we'll be able to patch this in production.&lt;br /&gt;&lt;br /&gt;I guess if you have a choice, just skip to 5.14.4.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dw_dev&amp;ditemid=145562" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2008-04-22:10:120658</id>
    <author>
      <email>mark@plogs.net</email>
      <name>Mark Smith</name>
    </author>
    <dw:poster user="mark"/>
    <link rel="alternate" type="text/html" href="https://dw-dev.dreamwidth.org/120658.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev.dreamwidth.org/data/atom/?itemid=120658"/>
    <title>Important: Perl 5.10 now considered required for DW installs</title>
    <published>2012-07-18T05:15:43Z</published>
    <updated>2012-07-18T05:16:05Z</updated>
    <category term="policy"/>
    <category term="other dw sites"/>
    <category term="perl"/>
    <dw:security>public</dw:security>
    <dw:reply-count>4</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='mark' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://mark.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/silk/identity/user_staff.png' alt='[staff profile] ' width='17' height='17' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://mark.dreamwidth.org/'&gt;&lt;b&gt;mark&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;We're here at OSCON (O'Reilly's Open Source Conference in Portland) with a bunch of the volunteers who work on Dreamwidth. Related to this, we've finally decided to force an upgrade to our Perl base version required.&lt;/p&gt;

&lt;p&gt;&lt;span style='white-space: nowrap;'&gt;&lt;a href='https://kareila.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://kareila.dreamwidth.org/'&gt;&lt;b&gt;kareila&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; says it well:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Hello all! A few facts have recently come to our attention:&lt;/p&gt;
  
  &lt;p&gt;1) Perl 5.10 has a significant number of new, desirable features over Perl 5.8.&lt;/p&gt;
  
  &lt;p&gt;2) Perl 5.10 was released 5 years ago, so it's reasonable to assume most people are using Perl 5.10 or newer in production.&lt;/p&gt;
  
  &lt;p&gt;3) We are, in fact, using Perl 5.10 in production.&lt;/p&gt;
  
  &lt;p&gt;Therefore, we are planning to start requiring Perl 5.10 as we fix bugs and add new features in the future. If you are running a Dreamwidth installation on a version of Perl older than 5.10, now would be an excellent time to consider upgrading.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We are also considering moving to 5.12 or 5.14 soon. We need to do some more investigation and also validate the system on those versions. But for now, consider 5.10 as required.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;
&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dw_dev&amp;ditemid=120658" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2008-04-22:10:118290</id>
    <author>
      <name>foxfirefey</name>
    </author>
    <dw:poster user="foxfirefey"/>
    <link rel="alternate" type="text/html" href="https://dw-dev.dreamwidth.org/118290.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev.dreamwidth.org/data/atom/?itemid=118290"/>
    <title>Introductory Perl Book temporarily free online</title>
    <published>2012-06-15T01:10:40Z</published>
    <updated>2012-06-15T03:19:21Z</updated>
    <category term="further reading"/>
    <category term="perl"/>
    <dw:security>public</dw:security>
    <dw:reply-count>2</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='foxfirefey' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://foxfirefey.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://foxfirefey.dreamwidth.org/'&gt;&lt;b&gt;foxfirefey&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I've heard some people lately saying they'd like to learn Perl recently, and &lt;span style='white-space: nowrap;'&gt;&lt;a href='https://rb.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://rb.dreamwidth.org/'&gt;&lt;b&gt;rb&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; mentioned in IRC that this work-in-progress book is temporarily available for free online:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ofps.oreilly.com/titles/9781118013847"&gt;Beginning Perl (Wrox)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There might be a few errors still to be fixed, but overall it could be a good resource.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dw_dev&amp;ditemid=118290" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
