<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adam Cooke on Medium]]></title>
        <description><![CDATA[Stories by Adam Cooke on Medium]]></description>
        <link>https://medium.com/@adamcooke?source=rss-b71007f511fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*XYm-_tTKB5dzPGUo.png</url>
            <title>Stories by Adam Cooke on Medium</title>
            <link>https://medium.com/@adamcooke?source=rss-b71007f511fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:06:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adamcooke/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Running Ruby apps in production]]></title>
            <link>https://medium.com/adam-cooke/running-ruby-apps-in-production-b7e8e5b516eb?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7e8e5b516eb</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[heroku]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Sun, 16 Oct 2016 19:18:04 GMT</pubDate>
            <atom:updated>2016-10-16T19:29:48.691Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the last few months, I’ve been working on a number of Ruby applications which have a requirement to run a few different types of process — web servers, workers, crons — in order for the app to function fully. Not only this, but they are being deployed to plain-old Linux servers — Ubuntu 16.04 machines generally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cyjRZBqNqUMbd0PKEogluA.png" /></figure><p>During development, I’ve just been using <a href="https://github.com/ddollar/foreman">Foreman</a> to read a Procfile and run everything in the foreground. It works very nicely but everything falls down though when you think about being able to run this in the background on a server. Foreman does allow you to export to things like upstart and systemd but using these can require root access to the server (undesirable) or they have no easy way to handle seamless restarts.</p><p>I wrote down a quick list of the things that my ideal process manager would do:</p><ul><li>The solution must be able to read and start processes from a Procfile as defined by Heroku &amp; Foreman. This is a single file which has a process name followed by the command to execute.</li><li>The solution must be able to run multiple instances of each process.</li><li>The solution must be able to orchestrate the restarting of each process it starts using a number of different techniques.</li><li>The solution must be able to return the status of all processes that it manages.</li><li>The solution must be able to capture the output from any command log it into a single consolidated file or put it into a log file for each individual process.</li><li>The solution must restart any processes that stop running unexpectedly.</li><li>The solution must be able to run in the foreground for development purposes and behave in a similar manner to Foreman when used this way.</li><li>The solution must be able to dynamically manage the quantity of each process without restarting all the processes. If an additional worker is needed, one must be able to be started without affecting the others. If less are needed, some should be stopped while leaving the necessary ones behind.</li><li>The solution must run on Linux &amp; Mac OS machines interchangeably.</li><li>The solution must be compatible with deployment tools like Capistrano and should be able to be bundled with an application using Bundler.</li><li>The solution must not require the user running the application to have root level access to the server.</li><li>Finally, the solution must have an awesome name.</li></ul><p>I had a quick look around and couldn’t find anything that really grabbed me so, like always, I cracked open Sublime and got to work.</p><h4>Introducing Procodile</h4><p><a href="https://github.com/adamcooke/procodile">Procodile</a> is my new process manager which meets all of the requirements I listed. Even the last one! I wanted to call it <strong>croc</strong> but someone already had registered a gem called that so I went the other way and ended up where we are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UWvOXmUtY6wkubMiTMqniA.png" /></figure><p>Procodile is an easy to use and understand solution for Ruby developers who just want to define a process list and type <strong>start</strong> to get it up and running without any fuss. Try it, just grab an app that uses a Procfile and run:</p><pre>procodile start --dev</pre><p>This will launch all your processes. Things get more fun though when you start running it in the background and hitting up the status method to see what’s happening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4YiK9oOYS2ZBMJjMBrrLHA.png" /></figure><p>Procodile is well documented and bristling with features. If you’re a Ruby dev, deploying code to Linux servers, take a look. <strong>Procodile 1.0 is available on RubyGems right now so add it to your Gemfile and get playing.</strong></p><p>If you’ve got any questions, suggestions etc… I’d love to hear from you. Just add an issue on <a href="https://github.com/adamcooke/procodile">GitHub</a> or get in touch on <a href="https://twitter.com/adamcooke">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7e8e5b516eb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/running-ruby-apps-in-production-b7e8e5b516eb">Running Ruby apps in production</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating an IPv6 network with an EdgeRouter]]></title>
            <link>https://medium.com/adam-cooke/creating-an-ipv6-network-with-an-edgerouter-f59cc0c1ce87?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/f59cc0c1ce87</guid>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Fri, 18 Dec 2015 13:44:23 GMT</pubDate>
            <atom:updated>2015-12-18T13:44:23.261Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*JsPPNs79bOGcRs5JT1XLsg.jpeg" /></figure><p>We’ve been using IPv6 for quite a while now on the <a href="http://atechmedia.com/">aTech</a> and <a href="http://viaduct.io/">Viaduct</a> networks however my home ISP doesn’t support IPv6 natively. As you can imagine, this is quite a pain but there is a solution using <a href="http://tunnelbroker.net]/">TunnelBroker.net</a>.</p><p>So… I want to ensure that all computers on my home network are able to access anything which uses IPv6. This guide explains how to go about setting up a full IPv6-enabled network using an EdgeRouter with an ISP which does not support native IPv6 and provides dynamic IP addresses.</p><h3>Get an IPv6 tunnel</h3><p>The first thing you need to do is head over to the <a href="http://tunnelbroker.net/">TunnelBroker.net</a> site and signup for an account and request a new tunnel.</p><ol><li>Goto the site</li><li>Create an account or login with one if you already have one</li><li>Select <strong>Create Regular Tunnel</strong></li><li>Enter your current IPv4 IP address in the <strong>IPv4 Endpoint</strong> field and select the location closest to your physical address.</li><li>Once you have created the tunnel, you’ll be given a number of IP addresses and network addresses.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*KnQu336Hrr_PcmxRZtwWbg.png" /></figure><h3>Creating the tunnel</h3><p>Now you need to add this tunnel to your EdgeRouter. Login to your EdgeRouter using SSH and execute the following commands.Login to your EdgeRouter using SSH.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe4f6e661d55314606ed97d9f8d437b5/href">https://medium.com/media/fe4f6e661d55314606ed97d9f8d437b5/href</a></iframe><p>Next, you need to configure a default route which will send all IPv6 traffic down over the new tunnel.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1dbc061bc8576140749a20b8d5eab6f5/href">https://medium.com/media/1dbc061bc8576140749a20b8d5eab6f5/href</a></iframe><p>You can now commit and save this configuration and give it a quick test.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b964e17c53249186da7109dc800f8b9/href">https://medium.com/media/1b964e17c53249186da7109dc800f8b9/href</a></iframe><p>Although this is all working great, HE is sending your traffic to the IP address you entered when you created the tunnel. If this changes (i.e. you disconnect and reconnect to your ISP), your IPv6 tunnel will cease working. To resolve this, HE provides a Dynamic DNS endpoint which will receive your IP each time you connect and updates your tunnel configuration as appropriate.</p><p>Let’s set that up. To start, you’ll need to get some information from the tunnel broker site.</p><ul><li>Your <strong>Update key</strong> — this can be found on the advanced tab of your tunnel settings page.</li><li>Your <strong>tunnel hostname</strong> — you can find this on the main page in the list of all the tunnels you have configured. It’ll look something like thisusername-1.tunnel.tserv1.lon2.ipv6.he.net.</li></ul><p>Run the following commands and replace <em>pppoe0</em> with the name of your external interface.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9cd7f5d26aa9be261907c8fbf27e5a74/href">https://medium.com/media/9cd7f5d26aa9be261907c8fbf27e5a74/href</a></iframe><p>You can check on the status of this at anytime using:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/41191318f4f46bfe0e36b19b62de32ed/href">https://medium.com/media/41191318f4f46bfe0e36b19b62de32ed/href</a></iframe><p>Although the EdgeRouter can now connect to IPv6 hosts, none of the other computers on your network are able to do this yet.</p><h3>Configuring a firewall</h3><p>Unless you want all your clients to be available publically (you probably don’t), you’ll need to configure an IPv6 firewall.</p><p>Firstly, you need to create the firewall itself. In this example, we’ll drop everything except existing connections.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99294df3a44b38790398dc4073a61a82/href">https://medium.com/media/99294df3a44b38790398dc4073a61a82/href</a></iframe><p>Next, we need to associate this new firewall with our interfaces. I’m assuming thateth0 is the interface which connects to your local network.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e94ca5b88aca554da5fdefa5aaa02033/href">https://medium.com/media/e94ca5b88aca554da5fdefa5aaa02033/href</a></iframe><p>You’re now protected. If you need to allow certain hosts, you can do this by adding new rules to the home-ipv6 firewall.</p><h3>Connecting clients</h3><p>When we created our tunnel, we were allocated a /64 subnet (the “Routed /64”). This is the subnet which clients on your network will have IP addresses in. For example, my home network is 2001:470:1f1d:5::/64.</p><p>To begin, we need to allocate an address from this range to our router. Run the command below to add the address. Note that I have added 1 just before the/64.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ce1efcc6778c0001b2d3963689c37b6/href">https://medium.com/media/8ce1efcc6778c0001b2d3963689c37b6/href</a></iframe><p>In order for your clients to connect they need to have their own IPv6 address. Unlike IPv4, the most common way to connect client machines to an IPv6 network is to allow them to choose their own address based on their MAC address. In order for them to do this, we need to tell them things like the router address and what DNS servers to use. This is known as a router advertisement.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/021121e72df356b0c7ff881edbf096e3/href">https://medium.com/media/021121e72df356b0c7ff881edbf096e3/href</a></iframe><h3>Testing</h3><p>Everything should now be working and the clients on your network should start having IPv6 addresses as well as IPv4 ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*-2Cd_KHDAvtAE4fuKoe4uA.png" /></figure><p>You can do some testing to ensure things are working for you. Here’s a few commands which I use to test different aspects of the IPv6 connection.</p><h3>Testing connectivity with ping</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad003b4d0f42cbeb85e1702245e139fa/href">https://medium.com/media/ad003b4d0f42cbeb85e1702245e139fa/href</a></iframe><h3>Testing DNS</h3><p>This command will return information about google.com. The -6 flag means that it will only use IPv6 to perform the lookups.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/48a87cebc4fde0e526186bbdea987a51/href">https://medium.com/media/48a87cebc4fde0e526186bbdea987a51/href</a></iframe><p>Another fun command to try is this…. this will lookup a DNS name and output the full trace of how it was located. You should be able to see that each step of the trace is resolved by an IPv6-enabled nameserver.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5105b2a617476210282c8019e40a5bdb/href">https://medium.com/media/5105b2a617476210282c8019e40a5bdb/href</a></iframe><h3>Next steps</h3><ul><li>Ensure that any websites you run have are enabled for IPv6.</li><li>Take the <a href="https://ipv6.he.net/certification">HE.net IPv6 certification</a> to help improve your knowledge of IPv6.</li><li>Install a plugin in your browser so you can see whether a site is using IPv6 or not.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f59cc0c1ce87" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/creating-an-ipv6-network-with-an-edgerouter-f59cc0c1ce87">Creating an IPv6 network with an EdgeRouter</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Paying invoices on time is not optional]]></title>
            <link>https://medium.com/adam-cooke/paying-invoices-on-time-is-not-optional-9e3fb05569e7?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e3fb05569e7</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[small-business]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Tue, 08 Dec 2015 17:53:41 GMT</pubDate>
            <atom:updated>2015-12-08T17:54:24.382Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tSyKxFzaEXGvWKrZ8Oc-vA.jpeg" /></figure><p>Whenever <a href="http://atechmedia.com/">we work</a> on projects for clients, we often complete the work, raise an invoice and then give them 14 days to pay. Pretty standard. However, the attitude of some companies to ensuring that invoices are paid on time is utterly baffling to me.</p><p>Under the <a href="https://www.gov.uk/late-commercial-payments-interest-debt-recovery/when-a-payment-becomes-late">Late Payment of Commercial Debts Act</a>, companies are entitled to charge a late payment fee plus interest on any invoice which is not paid within the agreed terms. While we don’t usually do this, we will charge a late payment fee for people who persistently pay late. What follows is a series of e-mails between myself and much larger company (a plc, in fact) to whom we had charged a late payment fee (£70) on an invoice which was 17 days overdue and required constant reminders to get it paid.</p><p>It began with a simple email from us (via. Xero) reminding them that although they had paid the invoice, the late payment fee was still unpaid.</p><blockquote>We paid the last September invoice on 19 October so we shouldn’t be charged for late payment. And in general, we do not normally accept late payment charges. Please issue a credit for this invoice.</blockquote><p>Now, the “September Invoice” they mention was raised on the 2nd September and due on the 2nd October. As this client was a large company and didn’t seem able to meet our normal 14 days, we previously had agreed to extend the terms to 30 days to try to help them stick to them.</p><p>I’m not sure why they thought they thought the Late Payment of Commercial Debts Act didn’t apply to them and paying late payment charges were optional.</p><p>While in many cases we would waive this, as this company had repeatedly paid late and seemed totally unapologetic about it, I was unwilling to be bullied into allowing the practice to continue.</p><p>I replied:</p><blockquote>You are correct that the invoice in question was paid on the 19th October but it was due on 2nd October. The terms agreed with you allow you 30 days to pay invoices however you failed to meet this requirement. In light of this we are exercising our right under the Late Payment of Commercial Debts Act to charge a fee for the late payment. This act allows us to charge (and recover through the courts, if necessary) late payment fees for any invoice which is not paid by the appropriate due date.</blockquote><blockquote>Unfortunately, you have consistently been unable to pay invoices within our terms. You asked us to extend your terms from our standard 14 to 30 which we agreed however it made no difference to your ability to pay on time. In light of this, we are now charging late payment fees on all late invoices to ensure that future payments are made on time.</blockquote><blockquote>There will be no credit note for the late payment fee and it remains due. Please ensure payment is made promptly.</blockquote><p>I thought that might be the end of the matter and the payment would be forthcoming. What followed shocked me. I received an email from said company’s Managing Director:</p><blockquote>I am very surprised at your approach on this matter.</blockquote><blockquote>We have had a very good working relationship with aTech Media. To put that relationship at risk for such a small amount of money is most odd when you have a customer who has continually paid their debts.</blockquote><blockquote>I look forward to credit for this invoice.</blockquote><p>I’m sorry, what? You’re surprised that we want to be paid on time? It seems as though this good relationship you speak of is rather one way, we do what you want and you don’t pay us on time — hardly fair. Xero tells me this customer’s average time to pay is 50 days! Plus, yet another assumption that we’ll just roll over.</p><p>I had to take a couple of minutes to calm myself before replying.</p><blockquote>I too am surprised at your approach. Why would you wish to treat a supplier who has worked well with you for the last year with such contempt and continue to pay their invoices late and break the terms which you agreed to? Without checking, I think everyinvoice which we have raised has been paid late despite frequent reminders. We have not charged late payment fees for many of these however enough is enough.</blockquote><blockquote>I’m afraid that we will not be bullied by large companies like yourselves who refuse to stick to the agreed terms — we’re a small company who rely on reliable cashflow from our customers.</blockquote><p>I didn’t get a reply, however the payment was made about 3 days later.</p><p>I heard a statistic that 1 in 5 small businesses fail because of cash flow issues when customers don’t pay their invoices. How many small businesses are being treated like this by larger companies? This isn’t the first time I’ve heard of attitudes like this — <strong>we’re so big, we can do whatever we want because you need our business</strong>. Actually, unless you’re going to pay me, I don’t need your business, I will happily spend my time working on a few smaller projects for people who will pay promptly without treating me so badly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e3fb05569e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/paying-invoices-on-time-is-not-optional-9e3fb05569e7">Paying invoices on time is not optional</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Memoization in Ruby]]></title>
            <link>https://medium.com/adam-cooke/memoization-in-ruby-a28c0c916b96?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/a28c0c916b96</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Wed, 22 Jul 2015 13:16:19 GMT</pubDate>
            <atom:updated>2015-12-08T18:07:30.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LBaUsLEVYDwLHR5vxmAovQ.jpeg" /></figure><p>Memoization is a technique employed in many languages which allows you to cache the results of slow or expensive operations and return the cached result whenever the method is subsequently called. I don’t think there’s a single application I’ve written which doesn’t make use of memoization in one way or another. The most basic (and most familiar) technique in Ruby is like this:</p><pre>class User<br>  def latest_tweet<br>    @latest_tweet ||= TwitterAPI.latest_tweet_for(self.twitter_username)<br>  end<br>end</pre><p>Calling the latest_tweet method for a user will now either return the value stored in the <strong><em>@latest_tweet</em></strong>. The first call will possibly take a few seconds while it downloads from the Twitter API but any subsequent calls for the same instance of User will return the value returned the first time.</p><p>You may also find this used when making database calls. For example, you may have a <strong><em>current_user</em></strong> method in a controller which returns the currently logged in user from the database. It’s highly likely you’ll want to call current_user many times during your request and making a database query for each one is needlessly wasteful.</p><p>However, there are a couple of downsides to this technique. Firstly, it’s not always very clear how to clear the cache. Taking our Twitter example from above, let’s say we’ve got a user’s latest tweet but then we change their twitter_username attribute. The value returns by latest_tweet will still relate to the old username which may not be desirable.</p><p>Secondly, using <strong><em>||=</em></strong> will not cache any falsey values (specifically nil and false). It’s perfectly valid for our latest_tweet to return nothing if the user has no tweets but if we use <strong>||=</strong> it’ll never cache.</p><p>Finally, without manually creating multiple methods, there’s no simple way to call the <strong><em>latest_tweet</em></strong> method but with ignoring the cache.</p><h3>Introducing Memist</h3><p>There are a number of Ruby libraries which handle memoization but I couldn’t find any that handled cache invalidation in the way I desired. So, as I often do, <a href="https://github.com/adamcooke/memist">I made my own</a>. Let’s take a look at how we can re-work our Twitter example using Memist:</p><pre>class User<br>  def latest_tweet<br>    TwitterAPI.latest_tweet_for(self.twitter_username)<br>  end<br>  memoize :latest_tweet, :uses =&gt; [:twitter_username<br>end</pre><p>You’ll immediately notice that we no longer have any caching logic within our method and all that is provided underneath. The first argument to memoize is the method name which we want to cache. Next, we define an array of attributes which are used in the method and should cause the cache to be invalidated if they change.</p><p>A whole wealth of options are now available to you:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9520c42f162f4cac76b867df03bc4118/href">https://medium.com/media/9520c42f162f4cac76b867df03bc4118/href</a></iframe><p>More details about the library (including install instructions) are <a href="https://github.com/adamcooke/memist">on the GitHub repository</a>. Do let me know how you get on with using it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a28c0c916b96" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/memoization-in-ruby-a28c0c916b96">Memoization in Ruby</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Local gems for local apps]]></title>
            <link>https://medium.com/adam-cooke/local-gems-for-local-apps-e0617f3e967?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0617f3e967</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Mon, 20 Jul 2015 09:17:49 GMT</pubDate>
            <atom:updated>2015-12-09T10:44:50.870Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iPXahsqPFzxnhVG16x7qdg.jpeg" /></figure><p>If you’re a <a href="https://github.com/adamcooke?tab=repositories">keen gem developer</a> like myself and you regularly use them in your other applications, you may find it useful to know of this quick tip. It allows you to use local copies of your gems in your apps while still allowing other devs on the project to work without needing to clone the gems for themselves.</p><p>I’m currently working on my <a href="https://github.com/adamcooke/seeka">Seeka</a> gem and I know I’ll be making a number of changes throughout the course of the development of another project. I don’t want to keep pushing new versions to RubyGems and I don’t want to keep pushing code up to GitHub. You might say, that’s easy… just do this:</p><pre>gem &quot;seeka&quot;, :path =&gt; &quot;~/Development/gems/seeka&quot;</pre><p>This is fine if it’s just you working on the project, but a total pain if anyone else works on it with you. It enforces other developers to both clone other repositories and use your chosen directory structure. Not ideal but bundler has a feature just for this purpose.</p><p>In your Gemfile, add your gem and specify your remote repository using the git or github option. It doesn’t have to be on GitHub, it may be on <a href="http://www.codebasehq.com/">the awesome Codebase</a> but you do need to specify the branch name.</p><pre>gem &quot;seeka&quot;, :github =&gt; &quot;adamcooke/seeka&quot;, :branch =&gt; &quot;master&quot;</pre><p>Finally, you need to tell bundler that it should always use a local version of the repository on your computer. Just run the following:</p><pre>$ bundle config local.seeka ~/Development/gems/seeka</pre><p>You can now continue to work on your gem and remote users can still use and work on the application.</p><p>More information can be found in <a href="http://bundler.io/v1.3/git.html">Bundler’s documentation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0617f3e967" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/local-gems-for-local-apps-e0617f3e967">Local gems for local apps</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Auto Permitted Attributes in Rails Forms]]></title>
            <link>https://medium.com/adam-cooke/auto-permitted-attributes-in-rails-forms-6df8bc00a528?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/6df8bc00a528</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Sat, 18 Jul 2015 11:13:09 GMT</pubDate>
            <atom:updated>2015-12-18T13:38:09.341Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ka4r9qUqrQ7guodQuduQPA.jpeg" /></figure><p>I’m sitting here at <a href="http://2015.phpsouthcoast.co.uk/">PHP South Coast</a>, surrounded by PHP developers and I’m writing some Ruby. I’ve come up with a nice little gem to avoid the extra work involved in listing permitted attributes when creating new objects from a Rails form. You know what I’m talking about…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7107e65cf1865a22c20a8e9e921dd6ac/href">https://medium.com/media/7107e65cf1865a22c20a8e9e921dd6ac/href</a></iframe><p>This is great but we just wrote that list of attributes in the form which submitted to this action so why do it call again? Isn’t this easier?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dababea5aaa9c184dc04cebbfa8c1f13/href">https://medium.com/media/dababea5aaa9c184dc04cebbfa8c1f13/href</a></iframe><p>Why yes! Yes it is. auto_permit will automatically permit all the fields which had been included in the form which was submitted to the action.</p><p>I call this gem <a href="https://github.com/adamcooke/param-auto-permit">param-auto-permit</a> and it’s <a href="https://github.com/adamcooke/param-auto-permit">on GitHub</a>. Do check it out and have a read of the README file for install instructions.</p><h3>So, how does it work?</h3><p>Whenever you build a form using the Rails form builder options (e.g using form_for), the gem maintains a list of included fields based on their labels. For example, when you insert a label tag, the gem adds the attribute name to a list.</p><p>When the form is finished, we take the list of attributes generated while building your form and turn them into a signed &amp; encrypted string. This is secured using the same technique as used to store sessions in cookies in Rails. This string is when included as a hidden field and submitted with the form.</p><p>When this arrives back at the server, the string is decoded and turned back into an array of attributes which should be permitted.</p><p><a href="https://github.com/adamcooke/param-auto-permit"><strong>Check out the repo on GitHub</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6df8bc00a528" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/auto-permitted-attributes-in-rails-forms-6df8bc00a528">Auto Permitted Attributes in Rails Forms</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Staytus — an open source status site]]></title>
            <link>https://medium.com/adam-cooke/staytus-an-open-source-status-site-a6ba50e0b6f0?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6ba50e0b6f0</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[rails]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Tue, 14 Jul 2015 10:26:44 GMT</pubDate>
            <atom:updated>2015-12-09T10:41:07.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ABV4oGAz8Fzn6OXLHevfGw.jpeg" /></figure><p><a href="http://staytus.co/">Staytus</a> is another open source project I got off the ground a few months ago. It provides a content management system for managing service statuses for your network or web application. We use it ourselves for the <a href="https://status.viaduct.io/">Viaduct</a> and <a href="http://status.dial9.co.uk/">Dial 9</a> status sites.</p><p>I haven’t really had much opportunity to work on it since it went live and never really announced it anywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D4qM_a_dQVxkFcJH.png" /></figure><p>Here’s what’s good about it:</p><ul><li>It’s a Rails 4 application and written in a pretty standard way so anyone should be able to help contribute.</li><li>It has a fully responsive default theme which works really nicely on desktops, tablets &amp; mobiles.</li><li>You can add your own theme if you want.</li><li>It has a bit of an API which can be used to update statuses from other services.</li></ul><p>I’m hoping to have some time to work on it quite soon but if anyone has any ideas please do <a href="http://github.com/adamcooke/staytus">submit them on GitHub</a>.</p><p>In the meantime, here’s a few screenshots:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*PvWu2dW8uq8JvZRL.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*eVf0pTjCj7Yws8l_.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*ur2_7bNk9IYKllbo.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6ba50e0b6f0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/staytus-an-open-source-status-site-a6ba50e0b6f0">Staytus — an open source status site</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Budgets]]></title>
            <link>https://medium.com/adam-cooke/budgets-38e3a3712f88?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/38e3a3712f88</guid>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[budgeting]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Sat, 04 Jul 2015 11:12:38 GMT</pubDate>
            <atom:updated>2015-12-09T10:43:34.093Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-S7vsYfkqd0WvuGqcuNYZA.jpeg" /></figure><p>A couple of weekends ago, I found myself needing some sort of application to manage the annual budget for <a href="http://atechmedia.com/">aTech</a> but manage my personal monthly budget. I tried to create an Excel spreadsheet but found it wasn’t quite powerful enough so I made a little Rails app to handle it for me.</p><p>So… here’s <a href="http://budgets.io/">Budgets</a>. It’s quite a simple app which allows you to easily forecast your spending over a period between 3 and 12 months. You can split your anticipated incomings &amp; outgoings into months by adding entries into accounts which you can configure. These can either be recurring or just one-off items.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pR7B6dREVjc8Xi4N.png" /></figure><p>We’re using this now to manage all the forecasting for <a href="http://atechmedia.com/">aTech</a>, <a href="http://viaduct.io/">Viaduct</a> and <a href="http://www.dial9.co.uk/">Dial 9</a>. I’m also using it personally to manage our monthly budgets. Without wanting to blow my own trumpet, I’m finding it really useful.</p><p>I’ve designed a little one-page website too which <a href="http://twitter.com/rglyall">Rob</a> kindly HTML-ized for me in less than an hour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XlkLnqKKQGc3ZQM8.png" /></figure><p>It’s completely free to use at <a href="http://budgets.io/">budgets.io</a> and I’ll likely release the source code for this in the near future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38e3a3712f88" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/budgets-38e3a3712f88">Budgets</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[String Interpolation in Rails]]></title>
            <link>https://medium.com/adam-cooke/string-interpolation-in-rails-56940bfc19ba?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/56940bfc19ba</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[rubygems]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Sat, 04 Jul 2015 10:47:20 GMT</pubDate>
            <atom:updated>2015-12-09T10:47:51.306Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RjT5XD6umckchZiLL5WWFA.jpeg" /></figure><p>A while ago I wrote <a href="https://github.com/adamcooke/florrick">a small library to handle string interpolation</a> in a Rails application. The library allows you to safely allow users to insert variables into strings they provide to you. For example, if you allow your users to write outgoing e-mails, you may want to allow them to insert appropriately formatted data into these.</p><pre>Hello {{user.first_name}}, Thanks for buying {{product.name}} from our store. If you have any questions or issues with it, please don&#39;t hesitate to contact us at {{store.email_address}}. Many thanks, {{store.name}}</pre><p>My <a href="https://github.com/adamcooke/florrick">Florrick</a> gem allows you to easily expose data in your models to your users. Continuing with the example above, you may configure your Person model as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6ff5403d74b5e6e0383e88e9b50f2fa/href">https://medium.com/media/f6ff5403d74b5e6e0383e88e9b50f2fa/href</a></iframe><p>Once you’ve configured which attributes/methods you’d like to expose, you can then pass a string through it.</p><pre>string = &quot;Hello {{person.first_name}}&quot;<br>final_string = Florrick.convert(string, :person =&gt; person)</pre><p>We find this technique to be really good as it provides a central point to expose variables across any number of models. What’s more, you can expose relationships through Florrick too. For example, if one person has a parent relationship, you can access that too if you list the relationship as shown above.</p><pre>{{person.parent.full_name}}</pre><h3>Formatters</h3><p>As well as being able to insert strings straight from your model, you can also pass them through various formatters which allow them to be adjusted. This might be useful if you want to format dates and times.</p><pre>{{person.date_of_birth.long_date}} #=&gt; &quot;Sunday 23rd October 1960&quot; {{person.date_of_birth.ddmmyyyy}} #=&gt; &quot;23/10/1960&quot;</pre><p>There a number of <a href="https://github.com/adamcooke/florrick#formatters">built-in formatters</a> but you can also register your own formatters. Full details can be found in the <a href="https://github.com/adamcooke/florrick#registering-your-own-formatters">docs</a>.</p><p>This post is just a quick intro the library and there is <a href="https://github.com/adamcooke/florrick">more information on GitHub</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56940bfc19ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/string-interpolation-in-rails-56940bfc19ba">String Interpolation in Rails</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preparing a new Mac]]></title>
            <link>https://medium.com/adam-cooke/preparing-a-new-mac-b42b0fc74d7e?source=rss-b71007f511fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/b42b0fc74d7e</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[os-x]]></category>
            <dc:creator><![CDATA[Adam Cooke]]></dc:creator>
            <pubDate>Thu, 09 Apr 2015 11:01:13 GMT</pubDate>
            <atom:updated>2015-12-09T10:54:03.444Z</atom:updated>
            <content:encoded><![CDATA[<p>I decided to bite the bullet and upgrade my trusty Macbook Pro from Mavericks to Yosemite and taken the opportunity to give the machine a bit of a cleanup. I thought a quick post about how I configure everything I need to <a href="https://adamcooke.io/me">do my work</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*ftiRiVM9HtLLvnTR6aIctw.jpeg" /></figure><h4>Choosing an account name</h4><p>There’s not much to do during the initial OS X setup wizard however I do make sure I set my account name to something simple like adam rather than my full name. It makes it easier when you need to open your home directory at /Users/adam or when you want to login using SSH.</p><h4>System Configuration</h4><p>Once OS X is booted, there are a few things I like to configure within OS X itself before I install anything. All of these are carried out in System Preferences.</p><h4>Input Device Configuration</h4><ul><li>Disable natural scrolling on the trackpad and/or mouse.</li><li>Whack the <em>key repeat rate</em> and <em>delay until repeat</em> values to fastest and slowest respectively.</li><li>Disable the Spotlight search keyboard shortcut. I will be installing <a href="http://www.alfredapp.com/">Alfred</a> later on which I want to map to the same keyboard shortcut.</li><li>Enable tab to move between <strong>All Controls</strong> rather than just text boxes.</li><li>Change the default screenshot shorts from Shift+Cmd+F4 to Shift+Cmd+F5. I will be using a different screenshot tool and would like to use this shortcut within that app.</li></ul><h4>Sharing, Access &amp; Security</h4><ul><li>Disable the Guest user under User &amp; Groups.</li><li>Enable Remote Login (SSH). You never know when you’ll need to get back into your machine from elsewhere.</li><li>Change your hostname to something less crazy. There’s nothing cool about Adams-Macbook-Pro.local, I much prefer something short like adam-mbp.local.</li><li>Require a password immediately after after starting a screensaver or sleeping.</li><li>Turn on FileVault to encrypt your hard disk. If your laptop gets stolen, you don’t really want someone reading all your data so easily.</li></ul><p>There may be some other settings you want to do (like auto hiding the Dock or adjusting the spacing of icons on the desktop).</p><h4>Homebrew</h4><p>Homebrew is a package manager for OS X. It’s bloody brilliant and will save you a huge amount of time. Begin by installing Homebrew and Homebrew Cask.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c3fb9a7b14251f6a15473c1f0c4c4019/href">https://medium.com/media/c3fb9a7b14251f6a15473c1f0c4c4019/href</a></iframe><h3>Installing Apps with Cask</h3><p><a href="http://caskroom.io/">Cask</a> makes it really easy to install OS X applications without going to every vendor’s website and downloading the files yourself.</p><ul><li><a href="https://www.google.com/chrome/">Google Chrome</a> — I enjoy the syncing of data between different Chrome instances.</li><li><a href="https://agilebits.com/onepassword">1Password</a> — an excellent password manager. I use (and you should too) use a different password for every service which asks for one and 1password keeps them safe for me</li><li><a href="https://www.dropbox.com/">Dropbox</a> — everyone’s favourite file sharing service. We use this at <a href="http://atech.io/">aTech</a> to store our active project files — things like PSDs and documents which don’t really belong in a Git repository.</li><li><a href="http://iterm2.com/">iTerm2</a> — a replacement for the built-in Terminal application.</li><li><a href="https://www.spotify.com/">Spotify</a> — music.</li><li><a href="https://getdropsha.re/">DropShare</a> — a great tool for uploading files &amp; screenshots to an SFTP service. I use this for sharing screenshots all over the internet.</li><li><a href="http://www.adobe.com/uk/creativecloud.html">Adobe Creative Cloud</a> — I love Photoshop, Illustrator, InDesign and other things.</li><li><a href="https://www.hipchat.com/">Hipchat</a> — we use this at aTech for chatting during the day and generally sharing banter.</li><li><a href="http://www.postbox-inc.com/">Postbox</a> — having tried hundreds of mail clients I have settled on this for a while.</li><li><a href="http://www.alfredapp.com/">Alfred</a> — my Spotlight replacement.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/006c70a7ceb677c601f990eccec87cd2/href">https://medium.com/media/006c70a7ceb677c601f990eccec87cd2/href</a></iframe><h4>Installing Apps from the App Store</h4><p>In addition to these apps, there are a number of apps that I usually download from the Apple App Store.</p><ul><li><a href="http://www.navicat.com/">Navicat</a> — a great little tool for managing MySQL &amp; PostgreSQL databases.</li><li><a href="http://daisydiskapp.com/">DaisyDisk</a> — when you run out of disk space, DaisyDisk makes it simple to find out how you’re using the space.</li><li><a href="http://twitter.com/">Twitter</a> — call me old school but I still use the official Twitter client for OS X.</li><li><a href="https://developer.apple.com/xcode/">XCode</a> — essential for developing OS X applications.</li><li><a href="https://www.wunderlist.com/">Wunderlist</a> — I use this for keeping track of little tasks I need to do on a daily basis.</li></ul><p>I’m primarily a Ruby developer working with numerous versions of Ruby plus all the things which come with that (MySQL, PostgreSQL etc…)</p><h4>Installing Ruby</h4><p>I use <a href="https://github.com/sstephenson/rbenv">rbenv</a> to manage running multiple versions of Ruby at the same time. I install rbenv by just cloning the repository into ~/.rbenv. Follow the instructions on the site to get that up and running.</p><p>Once installed, you’ll also want to go ahead and install <a href="https://github.com/sstephenson/ruby-build">ruby-build</a>. This is an rbenv plugin which will automatically download &amp; compile any version of Ruby for you.</p><pre>git clone <a href="https://github.com/sstephenson/ruby-build.git">https://github.com/sstephenson/ruby-build.git</a> ~/.rbenv/plugins/ruby-build</pre><p>You can then install the versions of Ruby that you want to use on your system as well as setting your default.</p><pre>rbenv install 2.2.1<br>rbenv global 2.2.1<br>gem install bundler</pre><h4>Install MySQL Server</h4><p>If you use MySQL, you’ll need a local MySQL Server. Homebrew makes this easy. I install MySQL Server and then use launchctl to ensure that it always starts on boot.</p><pre>brew install mysql ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist</pre><p>I rarely worry about setting a root password on my development environments so I just leave it blank which makes it easy to configure apps. You can test this is working by connecting to the MySQL console.</p><pre>mysql -u root</pre><h4>Installing PostgreSQL</h4><p>As with MySQL, this is really easy with Homebrew.</p><pre>brew install postgresql<br>ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist</pre><p>You can test this is working by connecting to the Postgres console.</p><pre>psql -d postgres</pre><h4>Installing Mongo, Redis &amp; RabbitMQ</h4><p>These are other services which are useful and are installed in exactly the same way as MySQL &amp; PostgreSQL above.</p><pre>brew install mongodb<br>ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist</pre><pre>brew install redis<br>ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents<br>launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist</pre><pre>brew install rabbitmq<br>ln -sfv /usr/local/opt/rabbitmq/*.plist ~/Library/LaunchAgents<br>launchctl load ~/Library/LaunchAgents/homebrew.mxcl.rabbitmq.plist</pre><h4>Dotfiles</h4><p>I’ve been working on a .bash_profile for years and here’s a few highlights of things things that I include to make using Bash a little easier.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/34fe12f8ff45e7ce87f9d1d0f28b3023/href">https://medium.com/media/34fe12f8ff45e7ce87f9d1d0f28b3023/href</a></iframe><p>In addition to this, I also have a global configuration file for Git. This is stored in ~/.gitconfig.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b014789e36a71345bd58b0ed0b76e0ca/href">https://medium.com/media/b014789e36a71345bd58b0ed0b76e0ca/href</a></iframe><p>This file also references a global .gitignore file which contains a number of files which I never want checked into a Git repository.</p><pre>._*<br>.rvmrc*<br>.DS_Store<br>.powrc<br>.powenv<br>.powder<br>*.gem</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b42b0fc74d7e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adam-cooke/preparing-a-new-mac-b42b0fc74d7e">Preparing a new Mac</a> was originally published in <a href="https://medium.com/adam-cooke">Musings by Adam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>