<?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>Dreamwidth Development Training</title>
  <link>https://dw-dev-training.dreamwidth.org/</link>
  <description>Dreamwidth Development Training - Dreamwidth Studios</description>
  <lastBuildDate>Thu, 11 Jul 2013 16:24:43 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>dw_dev_training</lj:journal>
  <lj:journaltype>community</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/92798/30813</url>
    <title>Dreamwidth Development Training</title>
    <link>https://dw-dev-training.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://dw-dev-training.dreamwidth.org/53222.html</guid>
  <pubDate>Thu, 11 Jul 2013 16:24:43 GMT</pubDate>
  <title>Error handling - help please?</title>
  <link>https://dw-dev-training.dreamwidth.org/53222.html</link>
  <description>Posted by: &lt;span lj:user=&apos;swaldman&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&apos;&gt;&lt;a href=&apos;https://swaldman.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://swaldman.dreamwidth.org/&apos;&gt;&lt;b&gt;swaldman&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Does anybody have time to do a quick rundown on how error handling should be done in DW, going forward?&lt;br /&gt;&lt;br /&gt;There are a number of different ways of doing things within the codebase at present. I&apos;ve tended to adopt LJ::throw for new stuff because it seemed comprehensible(!), but Mark has recently said in a review &amp;quot;I... don&apos;t think we use LJ::Error anywhere useful anymore. It&apos;s pretty old.&amp;quot;. (given where the comment was made I assume that it referred to a LJ::throw statement, which&amp;nbsp;I imagine must be part of a LJ::Error package)&lt;br /&gt;&lt;br /&gt;So I&apos;m wondering what best practice is now, and thus what we should do in new code?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=53222&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://dw-dev-training.dreamwidth.org/53222.html</comments>
  <category>errors</category>
  <category>help requested</category>
  <lj:mood>curious</lj:mood>
  <lj:security>public</lj:security>
  <lj:poster>swaldman</lj:poster>
  <lj:reply-count>5</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://dw-dev-training.dreamwidth.org/16615.html</guid>
  <pubDate>Fri, 22 Jan 2010 18:38:04 GMT</pubDate>
  <title>Security and web programming</title>
  <link>https://dw-dev-training.dreamwidth.org/16615.html</link>
  <description>Posted by: &lt;span lj:user=&apos;pauamma&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&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;&lt;br /&gt;&lt;br /&gt;This is a good cover of common programming (or program design) mistakes that can cause security problems: &lt;a href=&quot;http://www.smashingmagazine.com/2010/01/14/web-security-primer-are-you-part-of-the-problem/&quot;&gt;http://www.smashingmagazine.com/2010/01/14/web-security-primer-are-you-part-of-the-problem/&lt;/a&gt; (it uses PHP in its examples, but you should be able to get the gist of it even if you&apos;re not familiar with the language)&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=16615&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://dw-dev-training.dreamwidth.org/16615.html</comments>
  <category>security</category>
  <category>sql</category>
  <category>errors</category>
  <category>design</category>
  <lj:security>public</lj:security>
  <lj:poster>pauamma</lj:poster>
  <lj:reply-count>3</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://dw-dev-training.dreamwidth.org/10952.html</guid>
  <pubDate>Fri, 25 Sep 2009 19:18:17 GMT</pubDate>
  <title>What&apos;s wrong with my Schwartz?</title>
  <link>https://dw-dev-training.dreamwidth.org/10952.html</link>
  <description>Posted by: &lt;span lj:user=&apos;zvi&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&apos;&gt;&lt;a href=&apos;https://zvi.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://zvi.dreamwidth.org/&apos;&gt;&lt;b&gt;zvi&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When I set up $LJHOME/etc/config-private.pl, I didn&apos;t set it up correctly in some ways I now know were wrong, but I didn&apos;t realize that &lt;em&gt;before&lt;/em&gt; I &lt;a href=&quot;http://wiki.dwscoalition.org/notes/Dreamhack_Getting_Started#Protect_your_configs_from_updates&quot;&gt;protected my config files from updates&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;My $LJHOME/cvs/local/etc/config-private.pl file now looks like&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://dw-dev-training.dreamwidth.org/10952.html#cutid1&quot;&gt;this&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;My $LJHOME/etc/config-private.pl looks similar to that, but with these differences. (When I tried to edit that file directly to make the changes, it through a 500 error at my dreamhack. Reverting made it work okay, again.)&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___2&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://dw-dev-training.dreamwidth.org/10952.html#cutid2&quot;&gt;$LJHOME/etc/config-private.pl changes&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___2&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;What changes do I need to make to what file to get the Schwartz to work?&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=10952&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://dw-dev-training.dreamwidth.org/10952.html</comments>
  <category>dreamhacks</category>
  <category>errors</category>
  <lj:security>public</lj:security>
  <lj:poster>zvi</lj:poster>
  <lj:reply-count>12</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://dw-dev-training.dreamwidth.org/1673.html</guid>
  <pubDate>Sat, 09 May 2009 07:47:48 GMT</pubDate>
  <title>hg qtip and dw-nonfree</title>
  <link>https://dw-dev-training.dreamwidth.org/1673.html</link>
  <description>Posted by: &lt;span lj:user=&apos;draigwen&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&apos;&gt;&lt;a href=&apos;https://draigwen.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://draigwen.dreamwidth.org/&apos;&gt;&lt;b&gt;draigwen&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sorry to be asking so many questions - I should really go on IRC but if I do that I&apos;ll never do the house cleaning I&apos;m due to do today!&lt;br /&gt;&lt;br /&gt;Anyway, on to the question. I&apos;ve been using mercurial queues for doing patches and stuff and this has been working on dw-free, and ages ago I&apos;m sure it worked on dw-nonfree. But today I tried to create a new patch in my dw-nonfree directory and it gave me the following complaint:&lt;br /&gt;&lt;br /&gt;&quot;abort: working directory revision is not qtip&quot;&lt;br /&gt;&lt;br /&gt;I ran the &apos;hg branch&apos; command and the response is &quot;default&quot; not &quot;production&quot; like with dw-free. But I tried &quot;hg update -C production&quot; and I get &quot;abort: unknown revision &apos;production&apos;!&quot;.&lt;br /&gt;&lt;br /&gt;Help! How do I fix this so I can use mercurial queues?&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=1673&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://dw-dev-training.dreamwidth.org/1673.html</comments>
  <category>errors</category>
  <category>mercurial</category>
  <lj:security>public</lj:security>
  <lj:poster>draigwen</lj:poster>
  <lj:reply-count>1</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://dw-dev-training.dreamwidth.org/912.html</guid>
  <pubDate>Sun, 19 Apr 2009 16:08:12 GMT</pubDate>
  <title>Nuclear option</title>
  <link>https://dw-dev-training.dreamwidth.org/912.html</link>
  <description>Posted by: &lt;span lj:user=&apos;brownbetty&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&apos;&gt;&lt;a href=&apos;https://brownbetty.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://brownbetty.dreamwidth.org/&apos;&gt;&lt;b&gt;brownbetty&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So, having finally figured out Mercurial, at least, enough to realize everything I was doing wrong, I would like to nuke my hack&apos;s disfigured copy of the code and start again clean.  (It&apos;s not really necessary to carefully swap out patches that I made by accident, and reapply them every update.  In fact, I&apos;d really rather not.)&lt;br /&gt;&lt;br /&gt;It seemed like the nice and simple way to do this was &lt;pre&gt;$hg update -C tip&lt;/pre&gt;, but when I tried that, I got &lt;pre&gt;abort: 00changelog.i: no node 949b5cec2d2896f33952d57abcc52696717c90c8!&lt;/pre&gt; which is MAGNIFICENTLY uninformative.&lt;br /&gt;&lt;br /&gt;Is there a way to fix that?  Alternately, am I doing completely the wrong thing?&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=912&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://dw-dev-training.dreamwidth.org/912.html</comments>
  <category>errors</category>
  <category>dreamhacks</category>
  <lj:security>public</lj:security>
  <lj:poster>brownbetty</lj:poster>
  <lj:reply-count>6</lj:reply-count>
</item>
</channel>
</rss>
