<?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-04-10:30813</id>
  <title>Dreamwidth Development Training</title>
  <subtitle>Dreamwidth Development Training</subtitle>
  <author>
    <name>Dreamwidth Development Training</name>
  </author>
  <link rel="alternate" type="text/html" href="https://dw-dev-training.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://dw-dev-training.dreamwidth.org/data/atom"/>
  <updated>2013-07-11T16:24:43Z</updated>
  <dw:journal username="dw_dev_training" type="community"/>
  <entry>
    <id>tag:dreamwidth.org,2009-04-10:30813:53222</id>
    <author>
      <name>Simon</name>
    </author>
    <dw:poster user="swaldman"/>
    <link rel="alternate" type="text/html" href="https://dw-dev-training.dreamwidth.org/53222.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev-training.dreamwidth.org/data/atom/?itemid=53222"/>
    <title>Error handling - help please?</title>
    <published>2013-07-11T16:24:43Z</published>
    <updated>2013-07-11T16:24:43Z</updated>
    <category term="errors"/>
    <category term="help requested"/>
    <dw:mood>curious</dw:mood>
    <dw:security>public</dw:security>
    <dw:reply-count>5</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='swaldman' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://swaldman.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://swaldman.dreamwidth.org/'&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'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't think we use LJ::Error anywhere useful anymore. It'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'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="https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=53222" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-10:30813:16615</id>
    <author>
      <name>Res facta quae tamen fingi potuit</name>
    </author>
    <dw:poster user="pauamma"/>
    <link rel="alternate" type="text/html" href="https://dw-dev-training.dreamwidth.org/16615.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev-training.dreamwidth.org/data/atom/?itemid=16615"/>
    <title>Security and web programming</title>
    <published>2010-01-22T18:38:04Z</published>
    <updated>2010-01-22T18:38:04Z</updated>
    <category term="design"/>
    <category term="security"/>
    <category term="sql"/>
    <category term="errors"/>
    <dw:security>public</dw:security>
    <dw:reply-count>3</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='pauamma' style='white-space: nowrap;' class='ljuser'&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;&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="http://www.smashingmagazine.com/2010/01/14/web-security-primer-are-you-part-of-the-problem/"&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're not familiar with the language)&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=16615" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-10:30813:10952</id>
    <author>
      <name>still kind of a stealthy love ninja</name>
    </author>
    <dw:poster user="zvi"/>
    <link rel="alternate" type="text/html" href="https://dw-dev-training.dreamwidth.org/10952.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev-training.dreamwidth.org/data/atom/?itemid=10952"/>
    <title>What's wrong with my Schwartz?</title>
    <published>2009-09-25T19:18:17Z</published>
    <updated>2009-09-25T19:18:17Z</updated>
    <category term="errors"/>
    <category term="dreamhacks"/>
    <dw:security>public</dw:security>
    <dw:reply-count>12</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='zvi' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://zvi.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://zvi.dreamwidth.org/'&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't set it up correctly in some ways I now know were wrong, but I didn't realize that &lt;em&gt;before&lt;/em&gt; I &lt;a href="http://wiki.dwscoalition.org/notes/Dreamhack_Getting_Started#Protect_your_configs_from_updates"&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="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://dw-dev-training.dreamwidth.org/10952.html#cutid1"&gt;this&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;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="cut-wrapper"&gt;&lt;span style="display: none;" id="span-cuttag___2" 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://dw-dev-training.dreamwidth.org/10952.html#cutid2"&gt;$LJHOME/etc/config-private.pl changes&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___2" aria-live="assertive"&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="https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=10952" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-10:30813:1673</id>
    <author>
      <name>draigwen</name>
    </author>
    <dw:poster user="draigwen"/>
    <link rel="alternate" type="text/html" href="https://dw-dev-training.dreamwidth.org/1673.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev-training.dreamwidth.org/data/atom/?itemid=1673"/>
    <title>hg qtip and dw-nonfree</title>
    <published>2009-05-09T07:47:48Z</published>
    <updated>2009-05-09T07:47:48Z</updated>
    <category term="errors"/>
    <category term="mercurial"/>
    <dw:security>public</dw:security>
    <dw:reply-count>1</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='draigwen' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://draigwen.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://draigwen.dreamwidth.org/'&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'll never do the house cleaning I'm due to do today!&lt;br /&gt;&lt;br /&gt;Anyway, on to the question. I've been using mercurial queues for doing patches and stuff and this has been working on dw-free, and ages ago I'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;"abort: working directory revision is not qtip"&lt;br /&gt;&lt;br /&gt;I ran the 'hg branch' command and the response is "default" not "production" like with dw-free. But I tried "hg update -C production" and I get "abort: unknown revision 'production'!".&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="https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=1673" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-10:30813:912</id>
    <author>
      <name>brownbetty</name>
    </author>
    <dw:poster user="brownbetty"/>
    <link rel="alternate" type="text/html" href="https://dw-dev-training.dreamwidth.org/912.html"/>
    <link rel="self" type="text/xml" href="https://dw-dev-training.dreamwidth.org/data/atom/?itemid=912"/>
    <title>Nuclear option</title>
    <published>2009-04-19T16:08:12Z</published>
    <updated>2009-04-19T16:08:12Z</updated>
    <category term="dreamhacks"/>
    <category term="errors"/>
    <dw:security>public</dw:security>
    <dw:reply-count>6</dw:reply-count>
    <content type="html">Posted by: &lt;span lj:user='brownbetty' style='white-space: nowrap;' class='ljuser'&gt;&lt;a href='https://brownbetty.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://brownbetty.dreamwidth.org/'&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's disfigured copy of the code and start again clean.  (It's not really necessary to carefully swap out patches that I made by accident, and reapply them every update.  In fact, I'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="https://www.dreamwidth.org/tools/commentcount?user=dw_dev_training&amp;ditemid=912" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
