Skip to content

Commit

Permalink
Clean up URLs to remove Archive.org references
Browse files Browse the repository at this point in the history
~~~ bash
ARCHIVE_ORG_REGEX='https://web\.archive\.org/web/[^/]*/'
find . -type f -name "*.html" -exec perl -i -0pe "s|${ARCHIVE_ORG_REGEX}||g" {} \;
~~~
  • Loading branch information
booch committed Mar 6, 2024
1 parent 25692be commit 3e28b19
Show file tree
Hide file tree
Showing 123 changed files with 7,870 additions and 7,870 deletions.
78 changes: 39 additions & 39 deletions public/2010/01.html

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions public/2010/01/01/introduction.html

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions public/2011/08.html

Large diffs are not rendered by default.

148 changes: 74 additions & 74 deletions public/2011/08/26/bulk-rename-in-bash.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions public/2012/01.html

Large diffs are not rendered by default.

150 changes: 75 additions & 75 deletions public/2012/01/10/write-comments-for-yourself-2.html

Large diffs are not rendered by default.

148 changes: 74 additions & 74 deletions public/2012/01/11/grenade-debugging-pattern.html

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions public/2013/02.html

Large diffs are not rendered by default.

154 changes: 77 additions & 77 deletions public/2013/02/22/my-thoughts-on-python-vs-ruby.html

Large diffs are not rendered by default.

96 changes: 48 additions & 48 deletions public/2014/01.html

Large diffs are not rendered by default.

156 changes: 78 additions & 78 deletions public/2014/01/04/open-source-resolutions.html

Large diffs are not rendered by default.

162 changes: 81 additions & 81 deletions public/2014/01/19/introspective.html

Large diffs are not rendered by default.

154 changes: 77 additions & 77 deletions public/2014/01/26/testing-rails-validators.html

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions public/2014/02.html

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions public/2014/02/02/blogging-software.html

Large diffs are not rendered by default.

156 changes: 78 additions & 78 deletions public/2014/02/07/empathy.html

Large diffs are not rendered by default.

158 changes: 79 additions & 79 deletions public/2014/02/10/includable-activerecord.html

Large diffs are not rendered by default.

208 changes: 104 additions & 104 deletions public/2014/02/23/chording-keyers.html

Large diffs are not rendered by default.

124 changes: 62 additions & 62 deletions public/2014/03.html

Large diffs are not rendered by default.

162 changes: 81 additions & 81 deletions public/2014/03/03/yak-shaving-cursor-keys.html

Large diffs are not rendered by default.

154 changes: 77 additions & 77 deletions public/2014/03/11/readable-shell-scripts.html

Large diffs are not rendered by default.

154 changes: 77 additions & 77 deletions public/2014/03/16/slow-down.html

Large diffs are not rendered by default.

174 changes: 87 additions & 87 deletions public/2014/03/23/agile-estimation.html

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions public/2014/03/30/brilliant-my-own-programming-language.html

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions public/2014/04.html

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions public/2014/04/14/ruby-parameterized-module-inclusion.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,37 @@
<meta name="viewport" content="width=device-width"/>
<title>Ruby Pattern: Parameterized Module Inclusion | BoochTek, LLC</title>
<link rel="profile" href="http://gmpg.org/xfn/11"/>
<link rel="stylesheet" type="text/css" media="all" href="https://web.archive.org/web/20150824185026cs_/http://blog.boochtek.com/wp-content/themes/twentyeleven/style.css"/>
<link rel="stylesheet" type="text/css" media="all" href="http://blog.boochtek.com/wp-content/themes/twentyeleven/style.css"/>
<link rel="pingback" href="http://blog.boochtek.com/xmlrpc.php"/>
<!--[if lt IE 9]>
<script src="http://blog.boochtek.com/wp-content/themes/twentyeleven/js/html5.js" type="text/javascript"></script>
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Feed" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/feed"/>
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Comments Feed" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/comments/feed"/>
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Ruby Pattern: Parameterized Module Inclusion Comments Feed" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/feed"/>
<script type="text/javascript" src="https://web.archive.org/web/20150824185026js_/http://blog.boochtek.com/wp-includes/js/comment-reply.min.js?ver=3.8.1"></script>
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Feed" href="http://blog.boochtek.com/feed"/>
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Comments Feed" href="http://blog.boochtek.com/comments/feed"/>
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Ruby Pattern: Parameterized Module Inclusion Comments Feed" href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/feed"/>
<script type="text/javascript" src="http://blog.boochtek.com/wp-includes/js/comment-reply.min.js?ver=3.8.1"></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://blog.boochtek.com/xmlrpc.php?rsd"/>
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://blog.boochtek.com/wp-includes/wlwmanifest.xml"/>
<link rel="prev" title="Brilliant – My Very Own Programming Language" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/03/30/brilliant-my-own-programming-language"/>
<link rel="next" title="TDD Is Alive And Well" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/05/05/tdd-is-alive-and-well"/>
<link rel="prev" title="Brilliant – My Very Own Programming Language" href="http://blog.boochtek.com/2014/03/30/brilliant-my-own-programming-language"/>
<link rel="next" title="TDD Is Alive And Well" href="http://blog.boochtek.com/2014/05/05/tdd-is-alive-and-well"/>
<meta name="generator" content="WordPress 3.8.1"/>
<link rel="canonical" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comments"/>
<link rel="shortlink" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/?p=184"/>
<link rel="canonical" href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comments"/>
<link rel="shortlink" href="http://blog.boochtek.com/?p=184"/>
</head>

<body class="single single-post postid-184 single-format-standard single-author singular two-column right-sidebar">
<div id="page" class="hfeed">
<header id="branding" role="banner">
<hgroup>
<h1 id="site-title"><span><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/" rel="home">BoochTek, LLC</a></span></h1>
<h1 id="site-title"><span><a href="http://blog.boochtek.com/" rel="home">BoochTek, LLC</a></span></h1>
<h2 id="site-description">Web Development, Ruby on Rails, Open Source</h2>
</hgroup>

<a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/">
<img src="https://web.archive.org/web/20150824185026im_/http://blog.boochtek.com/wp-content/themes/twentyeleven/images/headers/wheel.jpg" width="1000" height="288" alt="BoochTek, LLC"/>
<a href="http://blog.boochtek.com/">
<img src="http://blog.boochtek.com/wp-content/themes/twentyeleven/images/headers/wheel.jpg" width="1000" height="288" alt="BoochTek, LLC"/>
</a>

<form method="get" id="searchform" action="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/">
<form method="get" id="searchform" action="http://blog.boochtek.com/">
<label for="s" class="assistive-text">Search</label>
<input type="text" class="field" name="s" id="s" placeholder="Search"/>
<input type="submit" class="submit" name="submit" id="searchsubmit" value="Search"/>
Expand All @@ -56,7 +56,7 @@ <h2 id="site-description">Web Development, Ruby on Rails, Open Source</h2>
<nav id="access" role="navigation">
<h3 class="assistive-text">Main menu</h3>
<div class="skip-link"><a class="assistive-text" href="#content">Skip to primary content</a></div>
<div class="menu"><ul><li><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/">Home</a></li><li class="page_item page-item-2"><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/about">About</a></li></ul></div>
<div class="menu"><ul><li><a href="http://blog.boochtek.com/">Home</a></li><li class="page_item page-item-2"><a href="http://blog.boochtek.com/about">About</a></li></ul></div>
</nav><!-- #access -->
</header><!-- #branding -->

Expand All @@ -69,8 +69,8 @@ <h3 class="assistive-text">Main menu</h3>

<nav id="nav-single">
<h3 class="assistive-text">Post navigation</h3>
<span class="nav-previous"><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/03/30/brilliant-my-own-programming-language" rel="prev"><span class="meta-nav">&larr;</span> Previous</a></span>
<span class="nav-next"><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/05/05/tdd-is-alive-and-well" rel="next">Next <span class="meta-nav">&rarr;</span></a></span>
<span class="nav-previous"><a href="http://blog.boochtek.com/2014/03/30/brilliant-my-own-programming-language" rel="prev"><span class="meta-nav">&larr;</span> Previous</a></span>
<span class="nav-next"><a href="http://blog.boochtek.com/2014/05/05/tdd-is-alive-and-well" rel="next">Next <span class="meta-nav">&rarr;</span></a></span>
</nav><!-- #nav-single -->


Expand All @@ -79,7 +79,7 @@ <h3 class="assistive-text">Post navigation</h3>
<h1 class="entry-title">Ruby Pattern: Parameterized Module Inclusion</h1>

<div class="entry-meta">
<span class="sep">Posted on </span><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion" title="11:57 PM" rel="bookmark"><time class="entry-date" datetime="2014-04-14T23:57:29+00:00">April 14, 2014</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/author/booch" title="View all posts by Craig Buchek" rel="author">Craig Buchek</a></span></span> </div><!-- .entry-meta -->
<span class="sep">Posted on </span><a href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion" title="11:57 PM" rel="bookmark"><time class="entry-date" datetime="2014-04-14T23:57:29+00:00">April 14, 2014</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://blog.boochtek.com/author/booch" title="View all posts by Craig Buchek" rel="author">Craig Buchek</a></span></span> </div><!-- .entry-meta -->
</header><!-- .entry-header -->

<div class="entry-content">
Expand All @@ -94,7 +94,7 @@ <h1 class="entry-title">Ruby Pattern: Parameterized Module Inclusion</h1>
include MyORM::Model, table: 'people'
end</pre>
<p>But that&#8217;s not valid Ruby; <code>include</code> doesn&#8217;t let you pass anything other than a module.</p>
<p>So when I was learning about <a href="https://web.archive.org/web/20150824185026/https://github.com/solnic/virtus">Virtus</a>, I noticed that its example of how to include it is a bit different than the standard Ruby idiomatic <code>include</code>:</p>
<p>So when I was learning about <a href="https://github.com/solnic/virtus">Virtus</a>, I noticed that its example of how to include it is a bit different than the standard Ruby idiomatic <code>include</code>:</p>
<pre>class User
include Virtus.model
end</pre>
Expand All @@ -117,13 +117,13 @@ <h1 class="entry-title">Ruby Pattern: Parameterized Module Inclusion</h1>
<p>We could even pass a block. But how do we process those options? There are a few different ways. However we do it, we have to be sure to return a module. And we can create modules in a few different ways.</p>
<p>Virtus uses the builder pattern. It takes the parameters passed in and builds a module dynamically. By that, I mean that it calls <code>Module.new</code> and then adds methods to that module. It does this by mixing in other modules, but it could do it by dynamically defining methods as well.</p>
<p>I&#8217;ve never seen this pattern in any other language. It&#8217;s obviously only possible because we can dynamically create modules.</p>
<p>The use of this idiom seems to be catching on a bit in the Ruby community. I&#8217;ve started using it myself, and will be adding it to my <a href="https://web.archive.org/web/20150824185026/https://github.com/boochtek/includable-activerecord">Includable::ActiveRecord</a> gem soon.</p>
<p>The use of this idiom seems to be catching on a bit in the Ruby community. I&#8217;ve started using it myself, and will be adding it to my <a href="https://github.com/boochtek/includable-activerecord">Includable::ActiveRecord</a> gem soon.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div><!-- .entry-content -->

<footer class="entry-meta">
This entry was posted in <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/category/programming/programming-languages/ruby" title="View all posts in Ruby" rel="category tag">Ruby</a> by <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/author/booch">Craig Buchek</a>. Bookmark the <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion" title="Permalink to Ruby Pattern: Parameterized Module Inclusion" rel="bookmark">permalink</a>.
This entry was posted in <a href="http://blog.boochtek.com/category/programming/programming-languages/ruby" title="View all posts in Ruby" rel="category tag">Ruby</a> by <a href="http://blog.boochtek.com/author/booch">Craig Buchek</a>. Bookmark the <a href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion" title="Permalink to Ruby Pattern: Parameterized Module Inclusion" rel="bookmark">permalink</a>.
</footer><!-- .entry-meta -->
</article><!-- #post-184 -->

Expand All @@ -139,7 +139,7 @@ <h2 id="comments-title">
<article id="comment-2718" class="comment">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt="" src="https://web.archive.org/web/20150824185026im_/http://1.gravatar.com/avatar/f04aeb28129f653b207e8b5d92706096?s=68&amp;d=blank&amp;r=G" class="avatar avatar-68 photo" height="68" width="68"/><span class="fn"><a href="https://web.archive.org/web/20150824185026/http://dirtyinformation.com/" rel="external nofollow" class="url">Amos King</a></span> on <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comment-2718"><time datetime="2014-05-27T22:48:51+00:00">May 27, 2014 at 10:48 PM</time></a> <span class="says">said:</span>
<img alt="" src="http://1.gravatar.com/avatar/f04aeb28129f653b207e8b5d92706096?s=68&amp;d=blank&amp;r=G" class="avatar avatar-68 photo" height="68" width="68"/><span class="fn"><a href="http://dirtyinformation.com/" rel="external nofollow" class="url">Amos King</a></span> on <a href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comment-2718"><time datetime="2014-05-27T22:48:51+00:00">May 27, 2014 at 10:48 PM</time></a> <span class="says">said:</span>
</div><!-- .comment-author .vcard -->


Expand All @@ -164,7 +164,7 @@ <h2 id="comments-title">
<article id="comment-2730" class="comment">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt="" src="https://web.archive.org/web/20150824185026im_/http://1.gravatar.com/avatar/52bfd7cb9ac37808464919f9685ca62f?s=68&amp;d=blank&amp;r=G" class="avatar avatar-68 photo" height="68" width="68"/><span class="fn">Craig Buchek</span> on <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comment-2730"><time datetime="2014-05-31T10:49:14+00:00">May 31, 2014 at 10:49 AM</time></a> <span class="says">said:</span>
<img alt="" src="http://1.gravatar.com/avatar/52bfd7cb9ac37808464919f9685ca62f?s=68&amp;d=blank&amp;r=G" class="avatar avatar-68 photo" height="68" width="68"/><span class="fn">Craig Buchek</span> on <a href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comment-2730"><time datetime="2014-05-31T10:49:14+00:00">May 31, 2014 at 10:49 AM</time></a> <span class="says">said:</span>
</div><!-- .comment-author .vcard -->


Expand Down Expand Up @@ -200,7 +200,7 @@ <h2 id="comments-title">

<div id="respond" class="comment-respond">
<h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#respond" style="display:none;">Cancel reply</a></small></h3>
<form action="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/wp-comments-post.php" method="post" id="commentform" class="comment-form">
<form action="http://blog.boochtek.com/wp-comments-post.php" method="post" id="commentform" class="comment-form">
<p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p> <p class="comment-form-author"><label for="author">Name <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" aria-required="true"/></p>
<p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="text" value="" size="30" aria-required="true"/></p>
<p class="comment-form-url"><label for="url">Website</label> <input id="url" name="url" type="text" value="" size="30"/></p>
Expand All @@ -226,12 +226,12 @@ <h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="no


<div id="site-generator">
<a href="https://web.archive.org/web/20150824185026/http://wordpress.org/" title="Semantic Personal Publishing Platform">Proudly powered by WordPress</a>
<a href="http://wordpress.org/" title="Semantic Personal Publishing Platform">Proudly powered by WordPress</a>
</div>
</footer><!-- #colophon -->
</div><!-- #page -->

<script type="text/javascript" src="https://web.archive.org/web/20150824185026js_/http://blog.boochtek.com/wp-content/plugins/akismet/_inc/form.js?ver=3.0.4"></script>
<script type="text/javascript" src="http://blog.boochtek.com/wp-content/plugins/akismet/_inc/form.js?ver=3.0.4"></script>

</body>
</html><!--
Expand Down
Loading

0 comments on commit 3e28b19

Please sign in to comment.