Feed-Data

 view release on metacpan or  search on metacpan

t/data/theory.rss  view on Meta::CPAN


      </rdf:Seq>
    </items>


    <image rdf:resource="http://meerkat.oreillynet.com/icons/meerkat-powered.jpg" />

  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rdf+xml" href="http://feeds.feedburner.com/justatheory/rssfull" /><feedburner:info uri="justatheory/rssfull" /><atom10:link xmlns:atom10="http://www.w3.org/2005/At...

  <image rdf:about="http://justatheory.com/logo.gif">
    <title>Just a Theory</title>
    <url>http://justatheory.com/logo.gif</url>
    <link>http://justatheory.com</link>
  </image>

  <item rdf:about="http://justatheory.com/computers/programming/perl/serious-dbix-connector-bug-fixed.html">
    <title>Serious Exception-Handling Bug Fixed in DBIx::Connector 0.42</title>
    <link>http://feedproxy.google.com/~r/justatheory/rssfull/~3/1OfnCa-MW0k/serious-dbix-connector-bug-fixed.html</link>
    <description />
    <dc:subject>/computers/programming/perl</dc:subject>
    <dc:creator>David E. Wheeler</dc:creator>
    <dc:date>2010-12-17T10:52-08:00</dc:date>
    
    <cc:license rdf:resource="http://creativecommons.org/licenses/by-nc/2.0" />
    <content:encoded><![CDATA[<p>I&rsquo;ve just released
<a href="http://search.cpan.org/dist/DBIx-Connector" title="DBIx::Connector
on CPAN">DBIx::Connector</a> 0.42 to CPAN. This release fixes a serious bug with <code>catch</code> blocks.
In short, if you threw an exception from inside a catch block, it would not be
detectable from outside. For example, given this code:</p>

<pre><code>eval {
    $conn-&gt;run(sub { die &#x2018;WTF&#x2019; }, catch =&gt; sub { die &#x2018;OMG!&#x2019; });
};
if (my $err = $@) {
    say "We got an error: $@\n";
}
</code></pre>

<p>With DBIx::Connector 0.41 and lower, the <code>if</code> block would never be called,
because even though the catch block threw an exception, <code>$@</code> was not set. In
other words, the exception would not be propagated to its caller. This could
be terribly annoying, as you can imagine. I was being a bit too clever about
localizing <code>$@</code>, with the scope much too broad. 0.42 uses a much tighter scope
to localize <code>$@</code>, so now it should propagate properly everywhere.</p>

<p>So if you&rsquo;re using DBIx::Connector <code>catch</code> blocks, please upgrade ASAP. Sorry
for the hassle.</p>
<img src="http://feeds.feedburner.com/~r/justatheory/rssfull/~4/1OfnCa-MW0k" height="1" width="1"/>]]></content:encoded>
  <feedburner:origLink>http://justatheory.com/computers/programming/perl/serious-dbix-connector-bug-fixed.html</feedburner:origLink></item>
  <item rdf:about="http://justatheory.com/computers/databases/postgresql/fk-locks-project.html">
    <title>Fixing Foreign Key Deadlocks in PostgreSQL</title>
    <link>http://feedproxy.google.com/~r/justatheory/rssfull/~3/1gH2UXNHffw/fk-locks-project.html</link>
    <description />
    <dc:subject>/computers/databases/postgresql</dc:subject>
    <dc:creator>David E. Wheeler</dc:creator>
    <dc:date>2010-11-24T22:30-08:00</dc:date>
    
    <cc:license rdf:resource="http://creativecommons.org/licenses/by-nc/2.0" />
    <content:encoded><![CDATA[<p><a href="http://pgexperts.com/">PGX</a> had <a href="http://gluefinance.com/">a client</a> come to us recently with a rather nasty deadlock issue. It took far longer than we would have liked to figure out the issue, a...

<p>Some might consider it a bug in PostgreSQL, but the truth is that PostgreSQL can obtain stronger than necessary locks. Such locks cause some operations to block unnecessarily and some other operations to deadlock, especially when foreign keys are ...

<p>Fortunately, Simon Riggs <a href="http://www.mail-archive.com/pgsql-hackers@postgresql.org/msg158205.html">proposed a solution</a>. And it&rsquo;s a good one. So good that <a href="http://pgexperts.com/">PGX</a> is partnering with <a href="http://...

<p>If you use foreign key constraints (and you should!) and you have a high transaction load on your database (or expect to soon!), this matters to you. In fact, if you use ActiveRecord with Rails, there might even be a special place in your heart fo...

<p>Yes, that&rsquo;s right, as with <a href="http://pgxn.org/">PGXN</a>, this is community project for which we&rsquo;re raising funds from the community to get it done. I think that more and more work could be done this way, as various interested pa...

<p>Help us help the community to make PostgreSQL better than ever!</p>
<img src="http://feeds.feedburner.com/~r/justatheory/rssfull/~4/1gH2UXNHffw" height="1" width="1"/>]]></content:encoded>
  <feedburner:origLink>http://justatheory.com/computers/databases/postgresql/fk-locks-project.html</feedburner:origLink></item>
  <item rdf:about="http://justatheory.com/computers/programming/cocoa/git-build-number-in-xcode.html">
    <title>Adding a Git SHA1 to your Xcode Project</title>
    <link>http://feedproxy.google.com/~r/justatheory/rssfull/~3/0Qyp_IwX3p4/git-build-number-in-xcode.html</link>
    <description />
    <dc:subject>/computers/programming/cocoa</dc:subject>
    <dc:creator>David E. Wheeler</dc:creator>
    <dc:date>2010-11-24T21:33-08:00</dc:date>
    
    <cc:license rdf:resource="http://creativecommons.org/licenses/by-nc/2.0" />
    <content:encoded><![CDATA[<p>I found a <a href="http://www.cimgf.com/2008/04/13/git-and-xcode-a-git-build-number-script/">decent Perl script</a> for adding a Git SHA1 to an Xcode project last week. However, since by day I&rsquo;m actually a <a hr...

<ol>
<li><p>Open your project settings (Project &ndash;> Edit Project Settings) and in the &ldquo;Build&rdquo; tab, make sure that &ldquo;Info.plist Output Encoding&rdquo; is set to &ldquo;xml&rdquo;. I lost about an hour of fiddling before I realized tha...
<li><p>Edit your app&rsquo;s Info.plist file. If you want the version to be the SHA1, set &ldquo;Bundle Version&rdquo; to &ldquo;0x000&rdquo;. I personally prefer to have a separate key for the SHA1, so I created the &ldquo;LTGitSHA1&rdquo; key and s...
<li><p>Right-click your target app and select Add &ndash;> New Build Phase &ndash;> New Run Script Build Phase. For the shell command, enter:</p>

<pre><code>/usr/bin/env perl -wpi -0777
</code></pre></li>
<li><p>Paste this into the &ldquo;Script&rdquo; field:</p>

<pre><code>#!/usr/bin/env perl -wpi -0777
# Xcode auto-versioning script for Subversion by Axel Andersson
# Updated for git by Marcus S. Zarra and Matt Long
# Refactored by David E. Wheeler.

BEGIN {
    @ARGV = ("$ENV{BUILT_PRODUCTS_DIR}/$ENV{INFOPLIST_PATH}");
    ($sha1 = `git rev-parse &#x2014;short HEAD`) =~ s/\s+$//;
}

s{0x000}{$sha1};
</code></pre></li>
<li><p>Fetch the value in your code from your bundle, something like this:</p>

<pre><code>NSLog(
    @"SHA1: %@",
    [[[NSBundle mainBundle]infoDictionary]objectForKey:@"LTGitSHA1"]
);
</code></pre></li>
</ol>


<p>That&rsquo;s it. If you want to use a placeholder other than &ldquo;0x0000&rdquo;, just change it on the last line of the script.</p>
<img src="http://feeds.feedburner.com/~r/justatheory/rssfull/~4/0Qyp_IwX3p4" height="1" width="1"/>]]></content:encoded>
  <feedburner:origLink>http://justatheory.com/computers/programming/cocoa/git-build-number-in-xcode.html</feedburner:origLink></item>
  <item rdf:about="http://justatheory.com/autobiographical/since-undergrad.html">
    <title>The 411 Since Graduating from College</title>
    <link>http://feedproxy.google.com/~r/justatheory/rssfull/~3/2-EnbDvYoT4/since-undergrad.html</link>
    <description />
    <dc:subject>/autobiographical</dc:subject>



( run in 0.529 second using v1.01-cache-2.11-cpan-39bf76dae61 )