<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Code Kills - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-641736db" type="application/json"/><link>http://codekills.disqus.com/</link><description></description><atom:link href="http://codekills.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 10 Apr 2012 13:16:47 -0000</lastBuildDate><item><title>Re: http://blog.codekills.net/2012/04/08/adventures-in-x509-the-utterly-ignored-nameconstraints</title><link>http://blog.codekills.net/2012/04/08/adventures-in-x509-the-utterly-ignored-nameconstraints#comment-493422255</link><description>&lt;p&gt;Name constraints are supposed to limit the certificates which a CA trusted to sign. Ex: "I only trust this CA to sign certificates for ‘.acme.com’”.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Wolever</dc:creator><pubDate>Tue, 10 Apr 2012 13:16:47 -0000</pubDate></item><item><title>Re: http://blog.codekills.net/2012/04/08/adventures-in-x509-the-utterly-ignored-nameconstraints</title><link>http://blog.codekills.net/2012/04/08/adventures-in-x509-the-utterly-ignored-nameconstraints#comment-492136215</link><description>&lt;p&gt; What are name constraints supposed to do?&lt;/p&gt;

&lt;p&gt;Also: never trust X509-based anything :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">singpolyma</dc:creator><pubDate>Mon, 09 Apr 2012 09:49:18 -0000</pubDate></item><item><title>Re: Code Kills : Using git for Backup is Asking for Pain</title><link>http://blog.codekills.net/2009/12/08/using-git-for-backup-is-asking-for-pain#comment-456062726</link><description>&lt;p&gt;I… May or may not… have my nethack saves in a Mercurial repository…&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Wolever</dc:creator><pubDate>Sun, 04 Mar 2012 12:51:50 -0000</pubDate></item><item><title>Re: Code Kills : Using git for Backup is Asking for Pain</title><link>http://blog.codekills.net/2009/12/08/using-git-for-backup-is-asking-for-pain#comment-456061853</link><description>&lt;p&gt;Fair enough - if the files you're storing are "simple" blobs-of-bytes-on-disk (and occasionally symlinks), and it's acceptable to lose file metadata like ownership and permissions, then version control systems would be entirely adequate (and likely simpler to implement, too).&lt;br&gt;However, for a general purpose backup, those things &lt;em&gt;are&lt;/em&gt; important (for example, consider /etc/).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Wolever</dc:creator><pubDate>Sun, 04 Mar 2012 12:50:45 -0000</pubDate></item><item><title>Re: Code Kills : Using git for Backup is Asking for Pain</title><link>http://blog.codekills.net/2009/12/08/using-git-for-backup-is-asking-for-pain#comment-455776589</link><description>&lt;p&gt;+1 for GITting savegames :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Sun, 04 Mar 2012 02:17:47 -0000</pubDate></item><item><title>Re: Code Kills : Using git for Backup is Asking for Pain</title><link>http://blog.codekills.net/2009/12/08/using-git-for-backup-is-asking-for-pain#comment-455776273</link><description>&lt;p&gt;Actually, I'm using git for my (personal/company) backup for years. Git is one of the most intelligent  filesystems already done (content-based) and is simply perfect for the task. I will not throw away the dozens of advantages of git just for the sake of damn permissions. BTW: When the worst occurs, nobody would give a damn penny for file permissions. Everybody will just want their files.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DavidGuetta</dc:creator><pubDate>Sun, 04 Mar 2012 02:16:34 -0000</pubDate></item><item><title>Re: http://blog.codekills.net/2008/08/27/why-i-don't-like-git</title><link>http://blog.codekills.net/2008/08/27/why-i-don%27t-like-git#comment-455545053</link><description>&lt;p&gt; Yeah Felipe. "THE TUTORIAL". No way on earth is any tutorial ever gonna explain these things on a single page in a way that any sane person will get it... :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LukasEder</dc:creator><pubDate>Sat, 03 Mar 2012 16:31:48 -0000</pubDate></item><item><title>Re: http://blog.codekills.net/2008/08/27/why-i-don't-like-git</title><link>http://blog.codekills.net/2008/08/27/why-i-don%27t-like-git#comment-455544625</link><description>&lt;p&gt;I share your feelings so much!! Heck the first time I thought I might as well just edit a file in my git workspace and dcommit it and push it to GitHub... Well think again. That funny checkin will always be applied on top of every other checkin rebased from SVN thereafter. How to get rid of it? Hmm, revert it again on Git, check it in on SVN, rebase, push. Done. Whew. Screw U, Git!! &lt;/p&gt;

&lt;p&gt;Funny guy too, this Felipe Contreras. "Read the tutorial". My ass. What IS the right way after all? It doesn't say in any tutorial that the right way is to be doomed no matter what you do&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LukasEder</dc:creator><pubDate>Sat, 03 Mar 2012 16:30:50 -0000</pubDate></item><item><title>Re: Code Kills : Vim functions to change tab treatment</title><link>http://blog.codekills.net/2012/01/22/vim-functions-to-change-tab-treatment#comment-453966250</link><description>&lt;p&gt;Ohhh so this is what happened to all the the .php files I started... :P  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ysim</dc:creator><pubDate>Thu, 01 Mar 2012 19:55:38 -0000</pubDate></item><item><title>Re: Code Kills : Vim functions to change tab treatment</title><link>http://blog.codekills.net/2012/01/22/vim-functions-to-change-tab-treatment#comment-418483325</link><description>&lt;p&gt;Sure, there are plenty of ways this &lt;em&gt;could&lt;/em&gt; be taken care of on a stable code base. But I edit one-off files often enough that these functions are useful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Wolever</dc:creator><pubDate>Mon, 23 Jan 2012 00:50:20 -0000</pubDate></item><item><title>Re: Code Kills : Vim functions to change tab treatment</title><link>http://blog.codekills.net/2012/01/22/vim-functions-to-change-tab-treatment#comment-418444632</link><description>&lt;p&gt;That would require modifying the entire codebase if the people contributing to it don't use vim.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Sun, 22 Jan 2012 23:27:03 -0000</pubDate></item><item><title>Re: Code Kills : Vim functions to change tab treatment</title><link>http://blog.codekills.net/2012/01/22/vim-functions-to-change-tab-treatment#comment-418420133</link><description>&lt;p&gt;wouldn't it be easier to just use modelines in a comment?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Sun, 22 Jan 2012 22:22:28 -0000</pubDate></item><item><title>Re: http://blog.codekills.net/2012/01/18/in-case-of-wikimergency</title><link>http://blog.codekills.net/2012/01/18/in-case-of-wikimergency#comment-414528435</link><description>&lt;p&gt;Good stuff!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eva Wong</dc:creator><pubDate>Wed, 18 Jan 2012 12:50:51 -0000</pubDate></item><item><title>Re: Code Kills : Which SSD You Should Buy</title><link>http://blog.codekills.net/2011/11/22/which-ssd-you-should-buy#comment-370781991</link><description>&lt;p&gt;This is just anecdotal evidence, but I'm on my 3rd RMA'd Intel 600gb SSD in less than a year.  They are good about replacing them though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrew Westberg</dc:creator><pubDate>Wed, 23 Nov 2011 08:58:09 -0000</pubDate></item><item><title>Re: Code Kills : On Startups and Identity</title><link>http://blog.codekills.net/2011/10/18/on-startups-and-identity#comment-339486280</link><description>&lt;p&gt;Thanks for the mention.  Agreed that nowadays it's weird not to say.&lt;/p&gt;

&lt;p&gt;20 years ago it was weird TO say.  You were supposed to be lifeless and formal.  Otherwise you're not to be trusted.  In software we'd say "shareware."&lt;/p&gt;

&lt;p&gt;Maybe people are still behind the times -- both founders and consumers.  But the future is clear.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason Cohen</dc:creator><pubDate>Wed, 19 Oct 2011 18:47:40 -0000</pubDate></item><item><title>Re: Code Kills : On Startups and Identity</title><link>http://blog.codekills.net/2011/10/18/on-startups-and-identity#comment-338485886</link><description>&lt;p&gt;I wouldn't go &lt;em&gt;quite&lt;/em&gt; that far… But, yes, I can't help but getting a little bit of that feeling.&lt;/p&gt;

&lt;p&gt;Well, that, or the startup is only intended to be a stepping-stone to bigger things (like getting acquired), at which point it will be shut down.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Wolever</dc:creator><pubDate>Tue, 18 Oct 2011 16:38:20 -0000</pubDate></item><item><title>Re: Code Kills : On Startups and Identity</title><link>http://blog.codekills.net/2011/10/18/on-startups-and-identity#comment-338474954</link><description>&lt;p&gt;I would automatically categorize any start-up without this information as a get-rich-quick scheme - typically the reason that people are not listed is because they don't want you to research their previous endeavours... :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Harald Koch</dc:creator><pubDate>Tue, 18 Oct 2011 16:26:03 -0000</pubDate></item><item><title>Re: Code Kills : The evils of `except:`</title><link>http://blog.codekills.net/2011/09/29/the-evils-of--except--#comment-323234239</link><description>&lt;p&gt;Eehh… There are still some cases where I've found the naked except makes the code cleaner… But, ya — with &lt;code&gt;with&lt;/code&gt; + &lt;code&gt;finally&lt;/code&gt;, there aren't many of them.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Wolever</dc:creator><pubDate>Thu, 29 Sep 2011 17:08:10 -0000</pubDate></item><item><title>Re: Code Kills : The evils of `except:`</title><link>http://blog.codekills.net/2011/09/29/the-evils-of--except--#comment-323231379</link><description>&lt;p&gt;Hey David,&lt;/p&gt;

&lt;p&gt;I would even go so far as to say that a naked except for closing/freeing resources is no longer necessary, thanks to Python 2.5's "with/as" stuff.  RIIA is golden when it's done right.  :)&lt;/p&gt;

&lt;p&gt;-Mike&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike Conley</dc:creator><pubDate>Thu, 29 Sep 2011 17:03:51 -0000</pubDate></item><item><title>Re: http://blog.codekills.net/2011/09/26/checking-types-in-python</title><link>http://blog.codekills.net/2011/09/26/checking-types-in-python#comment-321479296</link><description>&lt;p&gt;The way NumPy usually handles this is by calling `asarray()` or `asanyarray()` on its input. This allows you to pass nested lists, etc. in lieu of arrays, and simply coerce to the right type. Further diligence is required if you're expecting a floating point type and want to handle the case where someone gives you a boolean or integer array, but coercion seems to be the sanest response there too.&lt;/p&gt;

&lt;p&gt;In general, I've found certain kinds of "generic code" strategies to be a boon rather than a hindrance to my numerical computing needs, i.e. writing code that works on arrays of *any* rank. I often find myself switching between representations of data as e.g. (1000, 27, 4) or (1000, 108) depending on which is convenient, but much of my code only cares about manipulations on the first axis (incidentally representing time).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Warde-Farley</dc:creator><pubDate>Tue, 27 Sep 2011 23:00:50 -0000</pubDate></item><item><title>Re: http://blog.codekills.net/2011/09/26/checking-types-in-python</title><link>http://blog.codekills.net/2011/09/26/checking-types-in-python#comment-320678073</link><description>&lt;p&gt;You make a very good point. Thanks nfomon.&lt;/p&gt;

&lt;p&gt;I come from an application programming background where the kind of error you suggest — input that seems to work actually causes horrible problems — is less common, so I didn't consider it.&lt;/p&gt;

&lt;p&gt;Can you give an example of such a situation? The only one I can think of is accidentally using an `int` as part of a division on Py2.X without `from __future__ import division`…&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Wolever</dc:creator><pubDate>Tue, 27 Sep 2011 00:50:48 -0000</pubDate></item><item><title>Re: http://blog.codekills.net/2011/09/26/checking-types-in-python</title><link>http://blog.codekills.net/2011/09/26/checking-types-in-python#comment-320664239</link><description>&lt;p&gt;Coming from a numerical-computing background, I reeeally dislike duck-typing. I want the author of a routine to be responsible for what happens when it is called. Generic code is nice where it's relevant but focusing on it can be a type of "premature optimization".&lt;/p&gt;

&lt;p&gt;"let the caller use your documentation and Python's helpful&lt;br&gt;stack traces and debugging facilities to figure out what they did wrong." -- This ignores the very horrible case, where the code accepts inappropriate input, performs a computation, and returns a result that is garbage, without any warning.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nfomon</dc:creator><pubDate>Tue, 27 Sep 2011 00:16:15 -0000</pubDate></item><item><title>Re: Code Kills : Lies, More Lies and Python Packaging Documentation on `package_data`</title><link>http://blog.codekills.net/2011/07/15/lies,-more-lies-and-python-packaging-documentation-on--package_data-#comment-276782104</link><description>&lt;p&gt;I think it's worse than this. From what I can tell &lt;a href="http://MANIFEST.in" rel="nofollow"&gt;MANIFEST.in&lt;/a&gt; is used by sdist and package_data is used by bdist and install. So if you want coverages for sdist, bdist and install you have to specify your files in both places.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Von Welch</dc:creator><pubDate>Thu, 04 Aug 2011 00:34:57 -0000</pubDate></item><item><title>Re: Code Kills : Using git for Backup is Asking for Pain</title><link>http://blog.codekills.net/2009/12/08/using-git-for-backup-is-asking-for-pain#comment-269069556</link><description>&lt;p&gt;For backups of an entire system, yes.  Personally, I *love* using Git for backups and synchronization of data across multiple computers, even for such things as save game data!  Being able to "git clone" my Terraria worlds onto a new computer is really nifty.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Howie</dc:creator><pubDate>Fri, 29 Jul 2011 20:27:51 -0000</pubDate></item><item><title>Re: Code Kills : Lies, More Lies and Python Packaging Documentation on `package_data`</title><link>http://blog.codekills.net/2011/07/15/lies,-more-lies-and-python-packaging-documentation-on--package_data-#comment-262725073</link><description>&lt;p&gt;Thanks for  your post. It saves me some time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vincent Bernat</dc:creator><pubDate>Sun, 24 Jul 2011 07:29:26 -0000</pubDate></item></channel></rss>
