This is a valid RSS feed.
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
line 22, column 0: (11 occurrences) [help]
<site xmlns="com-wordpress:feed-additions:1">4149836</site> <item>
line 116, column 0: (7 occurrences) [help]
<p><img decoding="async" loading="lazy" src="http://www.rassoc.com/gregr/web ...
line 116, column 0: (4 occurrences) [help]
<p><img decoding="async" loading="lazy" src="http://www.rassoc.com/gregr/web ...
line 116, column 0: (4 occurrences) [help]
<p><img decoding="async" loading="lazy" src="http://www.rassoc.com/gregr/web ...
<p>— Greg Reinacker (@gregr) <a href="https://twitter.com/gregr/status ...
<p><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></s ...
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
<channel>
<title>Greg Reinacker's Weblog</title>
<atom:link href="https://www.rassoc.com/gregr/weblog/feed/" rel="self" type="application/rss+xml" />
<link>https://www.rassoc.com/gregr/weblog</link>
<description>Musings on just about everything.</description>
<lastBuildDate>Sat, 24 Dec 2016 00:37:52 +0000</lastBuildDate>
<language>en-US</language>
<sy:updatePeriod>
hourly </sy:updatePeriod>
<sy:updateFrequency>
1 </sy:updateFrequency>
<generator>https://wordpress.org/?v=6.2.6</generator>
<site xmlns="com-wordpress:feed-additions:1">4149836</site> <item>
<title>Pythonista scripts for EC2</title>
<link>https://www.rassoc.com/gregr/weblog/2016/02/10/pythonista-scripts-for-ec2/</link>
<comments>https://www.rassoc.com/gregr/weblog/2016/02/10/pythonista-scripts-for-ec2/#comments</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Wed, 10 Feb 2016 16:50:14 +0000</pubDate>
<category><![CDATA[development]]></category>
<category><![CDATA[aws]]></category>
<category><![CDATA[ec2]]></category>
<category><![CDATA[ipad]]></category>
<category><![CDATA[ipad pro]]></category>
<category><![CDATA[pythonista]]></category>
<category><![CDATA[vps]]></category>
<category><![CDATA[workflow]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=1152</guid>
<description><![CDATA[My last post discussed doing web development with an iPad Pro and a VPS, and included Pythonista scripts for automating the creation/deletion of nodes on Linode. Today, I’ll show different versions of these scripts that can be used for starting and stopping EC2 instances. The scripts assume you have an EBS-backed EC2 instance, which we […]]]></description>
<content:encoded><![CDATA[<p>My <a href="http://www.rassoc.com/gregr/weblog/2016/01/25/web-development-with-ipad-pro/">last post</a> discussed doing web development with an <a href="http://www.macmall.com/p/Apple-iPad/product~dpno~13696669~pdp.jhffcdc">iPad Pro</a> and a VPS, and included <a href="https://appsto.re/us/P0xGF">Pythonista</a> scripts for automating the creation/deletion of nodes on Linode. Today, I’ll show different versions of these scripts that can be used for starting and stopping EC2 instances.</p>
<p>The scripts assume you have an EBS-backed EC2 instance, which we will start and stop. Unlike Linode and others, EC2 instances of this type do not incur charges when stopped (other than storage), so our scripts will simply start and stop the instance you’ve already created.</p>
<p>To get started, first install <a href="https://github.com/boto/boto">boto</a>, a Python library for accessing AWS. The easiest way I’ve found to install it is to run <a href="https://gist.github.com/greinacker/5a61309be34490a63aa6">this script</a>, which will install boto in Pythonista, in a folder called boto-module.</p>
<p>Then, in a different folder, save the ec2_start.py script:</p>
<p>View the code on <a href="https://gist.github.com/greinacker/3888373ee4a5cb54732c">Gist</a>.</p>
<p>Modify it to add EC2 instance ID you want it to start, and the AWS access key you want to use. You’ll be prompted on the first run to enter your secret key, which will be stored in the keychain.</p>
<p>The script will start the instance, and then poll every couple of seconds waiting for the public IP address to be available, which will be copied to the clipboard.</p>
<p>If you want to open another app when the script is completed, pass a URL as a parameter to the script such as workflow://, and that URL will be opened when the script completes. See the <a href="http://www.rassoc.com/gregr/weblog/2016/01/25/web-development-with-ipad-pro/">prior post</a> for an example of how to do this with the Workflow app.</p>
<p>To stop the instance, use ec2_stop.py:</p>
<p>View the code on <a href="https://gist.github.com/greinacker/3888373ee4a5cb54732c">Gist</a>.</p>
<p>That’s it – pretty simple, and super convenient for starting and stopping EBS-backed EC2 instances from iOS!</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2016/02/10/pythonista-scripts-for-ec2/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">1152</post-id> </item>
<item>
<title>Web development with iPad Pro</title>
<link>https://www.rassoc.com/gregr/weblog/2016/01/25/web-development-with-ipad-pro/</link>
<comments>https://www.rassoc.com/gregr/weblog/2016/01/25/web-development-with-ipad-pro/#comments</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Mon, 25 Jan 2016 22:20:26 +0000</pubDate>
<category><![CDATA[development]]></category>
<category><![CDATA[coda]]></category>
<category><![CDATA[ipad]]></category>
<category><![CDATA[ipad pro]]></category>
<category><![CDATA[linode]]></category>
<category><![CDATA[pythonista]]></category>
<category><![CDATA[vps]]></category>
<category><![CDATA[workflow]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=1113</guid>
<description><![CDATA[As I mentioned last week, I’ve recently been doing a bunch of development and other work with the iPad Pro. This has generally been going very well – the only thing I have to go back to my Mac for, at the moment, is QuickBooks. (And yes, I know there is an online version of […]]]></description>
<content:encoded><![CDATA[<p>As I mentioned <a href="http://www.rassoc.com/gregr/weblog/2016/01/15/using-working-copy-with-1writer-on-ipad-pro/">last week</a>, I’ve recently been doing a bunch of development and other work with the <a href="http://www.macmall.com/p/Apple-iPad/product~dpno~13696669~pdp.jhffcdc">iPad Pro</a>. This has generally been going very well – the only thing I <em>have</em> to go back to my Mac for, at the moment, is <a href="https://www.amazon.com/QuickBooks-Small-Business-Accounting-Software/dp/B013EXF9T6/">QuickBooks</a>. (And yes, I know there is an online version of QuickBooks – however, there is one thing in it that didn’t work well for me last time I tried it, so for now I’m still using the desktop version.)</p>
<p>Part of what I do on a day-to-day basis is web development, using Ruby and Rails. To do this on the Mac I use <a href="http://www.sublimetext.com/3">Sublime Text</a>, and a couple of terminal windows to accomplish what I need. If we break this down a bit, this is what’s needed for development:</p>
<ol>
<li>An editor for editing source files</li>
<li>A terminal window of some sort for running specs, deploying code, etc</li>
<li>A browser for testing changes</li>
</ol>
<p>There isn’t any requirement that that editor needs to be editing files on your local machine, nor that the terminal window needs to be a session on the local machine, nor that the browser needs to point to the local machine. Which forms the basis for a reasonable iPad-based workflow for development.</p>
<p>I’ve been doing this using a combination of a development VPS running Linux, and a few tools on the iPad Pro. The main tool I’ve been using is <a href="https://appsto.re/us/5KZ2D">Coda</a>, which combines an editor, SSH client, and FTP client together in one app. In my experience, Coda is sometimes a bit buggy (random crashes, sometimes freezes for a few seconds at a time, sometimes line numbers go haywire), but for the most part it’s quite polished, and definitely worth using.</p>
<p>And Coda has one feature that really ties everything together – it can edit remote files (on my development VPS) directly, without having to explicitly transfer them. Don’t worry – I’m not editing live files on a production server; rather, I’m editing files live on a development VPS, and connecting to that dev machine using Coda.</p>
<p>When I want to make some changes to the site, I simply:</p>
<ol>
<li>Start up a new VPS from an image I’ve created</li>
<li>Connect to that image from Coda</li>
<li>Make code changes with the Coda editor</li>
<li>Test changes with a browser pointing to the VPS</li>
<li>Run specs, commit changes, etc. using Coda’s SSH client</li>
</ol>
<p>All in all, this works just as well as making code changes from the desktop – the only real difference is using the Coda editor rather than Sublime Text.</p>
<h2>Optimizing the VPS workflow for Linode</h2>
<p>I could just create the development VPS and leave it running all the time, waiting for me to connect and use it. However, it’s almost as easy to start and stop the VPS as necessary, and we’ll save a few bucks doing it this way. Plus we can have some more fun, with <a href="https://appsto.re/us/P0xGF">Pythonista</a>, which was recently updated for the iPad Pro!</p>
<p>The steps and scripts below are for <a href="https://www.linode.com/?r=2c10ab7a0d87f3f27045363cfa6106859afb3d6b">Linode</a> (shameless referral link), but you can do this anywhere you like. <a href="http://www.rassoc.com/gregr/weblog/2016/02/10/pythonista-scripts-for-ec2/">Here are similar scripts for AWS/EC2</a>. But for Linode, this is what we need to do:</p>
<ol>
<li>Create a development server VPS. Install whatever software you need (e.g. Ruby, etc.), clone your source code into a folder, and basically get everything up and running.</li>
<li>Create a saved image of that VPS, using the <a href="https://www.linode.com/docs/platform/linode-images">Linode Manager tools</a>. </li>
<li>Assuming you have the image saved, you can now delete the original VPS.</li>
</ol>
<p>You now have a saved image, that you can create a new VPS from any time you like. But that will be a lot of tapping around on the Linode Manager to do so…so instead, we can use a script (which uses the Linode API) to automate this, and run this script in Pythonista.</p>
<p>It turns out this script has to do quite a few things; creating a new node from an image in the Linode Manager hides some of these steps from you (like setting up a configuration profile), but we must do them all manually when using the API.</p>
<p>To get set up, first copy the <a href="https://github.com/tjfontaine/linode-python/blob/master/linode/api.py">api.py</a> file from the <a href="https://github.com/tjfontaine/linode-python">linode-python</a> GitHub repository to Pythonista. You can copy down the entire repo if you want, but the api.py is the part we need. Then, you can use this script in Pythonista to create a new node:</p>
<p>View the code on <a href="https://gist.github.com/greinacker/0a4f2b0a64b7c5b13a48">Gist</a>.</p>
<p>This script assumes it’s in the same directory as api.py, and further assumes the following:</p>
<ol>
<li>You have an manually-created image saved, and that image is called “dev image”</li>
<li>You want the new node to be called “dev01”, and be saved in a group called “Dev”</li>
<li>You want your new node to be in the Dallas data center, and you want it to be on the Linode 1024 plan; it will be set up with a 22GB main volume, and a 256MB swap volume, with the latest 64-bit kernel.</li>
</ol>
<p>You can change any of the above assumptions by editing the code on lines 20-26.</p>
<p>The script will create a new VPS, and will copy the public IP of the new node to the clipboard. From there, you can open Coda, create or edit a site configuration there, and paste in the new IP. In my experience, by the time you open Coda and paste in the new IPs, the VPS will be booted and ready to connect.</p>
<p>To make things a bit more automated, I run the script from a workflow in the <a href="https://appsto.re/us/2IzJ2">Workflow</a> app; here is a screenshot of the workflow I use:</p>
<p><img decoding="async" loading="lazy" src="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/image.jpeg" alt="image" width="1645" height="1158" class="aligncenter size-full wp-image-1139" srcset="https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/image.jpeg 1645w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/image-150x106.jpeg 150w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/image-300x211.jpeg 300w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/image-768x541.jpeg 768w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/image-1024x721.jpeg 1024w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/image-624x439.jpeg 624w" sizes="(max-width: 1645px) 100vw, 1645px" /></p>
<p>It’s quite simple – it just runs the Pythonista script, sending “workflow://” as the return URL, and then opens Coda, with the new IP address on the clipboard ready to paste into your site configuration. I add a shortcut to the workflow to my home screen, and I can spin up a new node with literally one tap. But if you want to, you could do the equivalent without using Workflow at all in this case.</p>
<p>We can also delete the node when we’re done, using another script; <strong>be careful</strong> with this one, and make sure you completely understand what it’s doing before you run it – if it finds a node called dev01 in the Dev group, it will delete it without confirmation:</p>
<p>View the code on <a href="https://gist.github.com/greinacker/0a4f2b0a64b7c5b13a48">Gist</a>.</p>
<p>Using these scripts and the apps I’ve mentioned, I’ve found development on the iPad Pro (with a keyboard) can be quite similar to the equivalent on a desktop.</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2016/01/25/web-development-with-ipad-pro/feed/</wfw:commentRss>
<slash:comments>11</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">1113</post-id> </item>
<item>
<title>Using Working Copy with 1Writer on iPad Pro</title>
<link>https://www.rassoc.com/gregr/weblog/2016/01/15/using-working-copy-with-1writer-on-ipad-pro/</link>
<comments>https://www.rassoc.com/gregr/weblog/2016/01/15/using-working-copy-with-1writer-on-ipad-pro/#comments</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Fri, 15 Jan 2016 18:11:36 +0000</pubDate>
<category><![CDATA[development]]></category>
<category><![CDATA[1writer]]></category>
<category><![CDATA[iOS]]></category>
<category><![CDATA[ipad]]></category>
<category><![CDATA[ipad pro]]></category>
<category><![CDATA[working copy]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=1091</guid>
<description><![CDATA[Over the last month or so, I’ve been doing development and other work with a new iPad Pro, and the smart keyboard. I sometimes get incredulous looks from people when I tell them about this, so I thought I’d write about some of the things I’ve been doing. First up, editing markdown files in a […]]]></description>
<content:encoded><![CDATA[<p>Over the last month or so, I’ve been doing development and other work with a new <a href="http://www.apple.com/ipad-pro/">iPad Pro</a>, and the <a href="http://www.apple.com/smart-keyboard/">smart keyboard</a>. I sometimes get incredulous looks from people when I tell them about this, so I thought I’d write about some of the things I’ve been doing. First up, editing markdown files in a Github repository.</p>
<p><a href="http://workingcopyapp.com/">Working Copy</a> (<a target="_blank" href="https://appsto.re/us/xONC1">app store</a>) is one of those apps that seems to fly below the radar – but it’s by far the best git client I’ve found for iOS. It’s free to try, with a in-app purchase to unlock certain features like the ability to push changes to a remote repository. But my favorite part is the way it implements a document provider, allowing you to edit files in your repo with other applications. So here, I’ll show you how to edit markdown files in your repo using another great app, <a href="http://1writerapp.com/">1Writer</a> (<a target="_blank" href="https://appsto.re/us/GjYJO">app store</a>).</p>
<p>First, you need to clone your repository into Working Copy. Once you have it down, it will look something like this:</p>
<p><a href="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0021.png" rel="attachment wp-att-1085"><img decoding="async" loading="lazy" src="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0021-1024x768.png" alt="img_0021" width="625" height="469" class="aligncenter size-large wp-image-1085" srcset="https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0021-1024x768.png 1024w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0021-150x112.png 150w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0021-300x225.png 300w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0021-768x576.png 768w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0021-624x468.png 624w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<p>Here, this repository is a set of API documentation that I want to edit. Now, we could edit this right here within Working Copy, but instead we will use 1Writer. Open 1Writer, and click the “+” button in the lower right corner:</p>
<p><img decoding="async" src="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0022.png" alt="" class="aligncenter"></p>
<p>The first time you do this, you’ll notice Working Copy isn’t in the list. Click “More”, and you’ll be able to enable it:</p>
<p><img decoding="async" src="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0023.png" alt="" class="aligncenter"></p>
<p>After you get it enabled, you’ll see it in the list:</p>
<p><img decoding="async" src="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0024.png" alt="" class="aligncenter"></p>
<p>Now tap Working Copy, and you’ll see a list of documents you can open from the repository:</p>
<p><a href="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0025.png" rel="attachment wp-att-1089"><img decoding="async" loading="lazy" src="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0025-1024x768.png" alt="img_0025" width="625" height="469" class="aligncenter size-large wp-image-1089" srcset="https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0025-1024x768.png 1024w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0025-150x112.png 150w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0025-300x225.png 300w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0025-768x576.png 768w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0025-624x468.png 624w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<p>Pick the document you want (we’ll edit the README.md as an example), and make your edits.</p>
<p>When you’re done editing, go back to Working Copy:</p>
<p><a href="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0026.png" rel="attachment wp-att-1090"><img decoding="async" loading="lazy" src="http://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0026-1024x768.png" alt="img_0026" width="625" height="469" class="aligncenter size-large wp-image-1090" srcset="https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0026-1024x768.png 1024w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0026-150x112.png 150w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0026-300x225.png 300w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0026-768x576.png 768w, https://www.rassoc.com/gregr/weblog/wp-content/uploads/2016/01/img_0026-624x468.png 624w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<p>You’ll see on the left that README.md is modified, and if you tap on it, you can see the changes that were made. When you’re ready, you can click “Commit” to commit the changes you’ve made, and then push to remote repository if you need to.</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2016/01/15/using-working-copy-with-1writer-on-ipad-pro/feed/</wfw:commentRss>
<slash:comments>2</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">1091</post-id> </item>
<item>
<title>Zero to PostgreSQL streaming replication in 10 mins</title>
<link>https://www.rassoc.com/gregr/weblog/2013/02/16/zero-to-postgresql-streaming-replication-in-10-mins/</link>
<comments>https://www.rassoc.com/gregr/weblog/2013/02/16/zero-to-postgresql-streaming-replication-in-10-mins/#comments</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Sat, 16 Feb 2013 21:10:04 +0000</pubDate>
<category><![CDATA[development]]></category>
<category><![CDATA[postgres]]></category>
<category><![CDATA[postgresql]]></category>
<category><![CDATA[replication]]></category>
<category><![CDATA[streaming replication]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=991</guid>
<description><![CDATA[I’ve found a number of articles on the web for setting up streaming replication in PostgreSQL, but none of them seemed to actually put everything together that I needed, and none of them seemed to use the new pg_basebackup in PostgreSQL 9.1 and later. So with that in mind, here are a set of steps […]]]></description>
<content:encoded><![CDATA[<p>I’ve found a number of articles on the web for setting up streaming replication in PostgreSQL, but none of them seemed to actually put everything together that I needed, and none of them seemed to use the new <a href="http://www.postgresql.org/docs/9.2/static/app-pgbasebackup.html">pg_basebackup</a> in PostgreSQL 9.1 and later. So with that in mind, here are a set of steps you can use to set up streaming replication, over the internet if you wish, using an encrypted SSL connection. We’re not going to set up log archiving – we’re going to rely solely on the streaming replication for now.</p>
<p>I’m assuming you have a master server set up on Ubuntu 10.04 or 12.04, running PostgreSQL 9.2.x, and you have a new slave server set up on the same OS and pg version. The IP of the master is 1.2.3.4, and the IP of the slave is 5.6.7.8.</p>
<p>First, create the replication user on the master:</p>
<p>View the code on <a href="https://gist.github.com/greinacker/4968619">Gist</a>.</p>
<p>Note that we are using REPLICATION permissions, rather than creating a superuser.</p>
<p>Next, configure the master for streaming replication. Edit postgresql.conf (on Ubuntu, this is at /etc/postgresql/9.2/main/postgresql.conf):</p>
<p>View the code on <a href="https://gist.github.com/greinacker/4968619">Gist</a>.</p>
<p>We’re configuring 8 WAL segments here; each is 16MB. If you expect your database to have more than 128MB of changes in the time it will take to make a copy of it across the network to your slave, or in the time you expect your slave to be down for maintenance or something, then consider increasing those values.</p>
<p>Then edit the access control on the master to allow the connection from the slave; in pg_hba.conf (/etc/postgresql/9.2/main/pg_hba.conf on Ubuntu):</p>
<p>View the code on <a href="https://gist.github.com/greinacker/4968619">Gist</a>.</p>
<p>In this case, 5.6.7.8 is the IP address of the slave that will be connecting for replication, and hostssl means this host can only connect via SSL.</p>
<p>You’ll need to restart the master after making the above changes.</p>
<p>Now on to the slave. In the slave’s postgresql.conf, add the following:</p>
<p>View the code on <a href="https://gist.github.com/greinacker/4968619">Gist</a>.</p>
<p>Then restart the slave. No changes are required in the slave’s pg_hba.conf specifically to support replication. You’ll still need to make whatever entries you need in order to connect to it from your application and run queries, if you wish.</p>
<p>That’s all the initial setup we need to do. After you’ve done the above configuration, running the following script on the slave will copy the database over and begin replication (1.2.3.4 is the IP of the master):</p>
<p>View the code on <a href="https://gist.github.com/greinacker/4968619">Gist</a>.</p>
<p>That script will stop the slave, delete the old slave cluster directory, run pg_basebackup connecting to the master to copy over the databases (you’ll see the progress as it goes), create a new recovery.conf file, and start the slave. If you look at the logs after this script completes, you should hopefully see messages about it having reached a consistent recovery state.</p>
<p>Be careful – that script is going to delete the old database cluster on your slave, so make sure to read through it and understand what it’s doing.</p>
<p>At this point, you can try writing data to the master database, and you should see it mirrored over to the slave. To check the replication status, you can run the following on the master:</p>
<p>View the code on <a href="https://gist.github.com/greinacker/4968619">Gist</a>.</p>
<p>If you found this guide handy, you might also find the <a href="https://www.amazon.com/PostgreSQL-9-High-Availability-Cookbook/dp/1849516960/">PostgreSQL 9 High Availability Cookbook</a> useful as well!</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2013/02/16/zero-to-postgresql-streaming-replication-in-10-mins/feed/</wfw:commentRss>
<slash:comments>79</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">991</post-id> </item>
<item>
<title>No one is “forced” into piracy</title>
<link>https://www.rassoc.com/gregr/weblog/2012/11/29/no-one-is-forced-into-piracy/</link>
<comments>https://www.rassoc.com/gregr/weblog/2012/11/29/no-one-is-forced-into-piracy/#comments</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Thu, 29 Nov 2012 17:42:26 +0000</pubDate>
<category><![CDATA[internet]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=975</guid>
<description><![CDATA[No one is “forced” into piracy […] if piracy is actually wrong, it doesn’t get less wrong simply because you can’t have the product exactly when and where you want it at a price you wish to pay. This. Just because you can’t find the content you want in the form you’d like to have […]]]></description>
<content:encoded><![CDATA[<p><a href="http://www.thedailybeast.com/articles/2012/11/28/why-are-cable-companies-forcing-people-to-turn-to-piracy.html">No one is “forced” into piracy</a></p>
<blockquote><p>[…] if piracy is actually wrong, it doesn’t get less wrong simply because you can’t have the product exactly when and where you want it at a price you wish to pay.</p></blockquote>
<p>This. Just because you can’t find the content you want in the form you’d like to have it, doesn’t mean it’s ok to steal it. [via <a href="http://www.marco.org/2012/11/29/forcing-people-into-piracy">Marco</a>]</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2012/11/29/no-one-is-forced-into-piracy/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">975</post-id> </item>
<item>
<title>Letterpress</title>
<link>https://www.rassoc.com/gregr/weblog/2012/10/24/letterpress/</link>
<comments>https://www.rassoc.com/gregr/weblog/2012/10/24/letterpress/#respond</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Wed, 24 Oct 2012 22:25:45 +0000</pubDate>
<category><![CDATA[apps]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=962</guid>
<description><![CDATA[Letterpress A new word game from Loren Brichter (of Tweetie fame). If you love casual games, and you’re tired of Words with Friends, Letterpress is a lot of fun!]]></description>
<content:encoded><![CDATA[<p><a href="https://itunes.apple.com/us/app/letterpress-word-game/id526619424?mt=8">Letterpress</a></p>
<p>A new word game from Loren Brichter (of Tweetie fame). If you love casual games, and you’re tired of Words with Friends, Letterpress is a lot of fun!</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2012/10/24/letterpress/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">962</post-id> </item>
<item>
<title>Car fox at 90,000 feet</title>
<link>https://www.rassoc.com/gregr/weblog/2012/10/18/car-fox-at-90000-feet/</link>
<comments>https://www.rassoc.com/gregr/weblog/2012/10/18/car-fox-at-90000-feet/#respond</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Thu, 18 Oct 2012 21:41:49 +0000</pubDate>
<category><![CDATA[video]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=947</guid>
<description><![CDATA[Car fox at 90,000 feet I love stuff like this. Even more, I love that for under a few thousand dollars, anyone can take video that shows the curvature of the earth. [via Autoblog]]]></description>
<content:encoded><![CDATA[<p><a href="http://www.youtube.com/watch?v=Vj3MRLqDOVY&feature=youtu.be">Car fox at 90,000 feet</a></p>
<p>I love stuff like this. Even more, I love that for under a few thousand dollars, anyone can take video that shows the curvature of the earth.</p>
<p>[via <a href="http://www.autoblog.com/2012/10/17/carfax-sends-car-fox-into-orbit-no-vehicle-history-report-avail/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+weblogsinc%2Fautoblog+%28Autoblog%29">Autoblog</a>]</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2012/10/18/car-fox-at-90000-feet/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">947</post-id> </item>
<item>
<title>MacBook Pro retina pricing</title>
<link>https://www.rassoc.com/gregr/weblog/2012/07/12/macbook-pro-retina-pricing/</link>
<comments>https://www.rassoc.com/gregr/weblog/2012/07/12/macbook-pro-retina-pricing/#comments</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Thu, 12 Jul 2012 15:00:40 +0000</pubDate>
<category><![CDATA[apple]]></category>
<category><![CDATA[macbook pro]]></category>
<category><![CDATA[retina]]></category>
<category><![CDATA[retina display]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=868</guid>
<description><![CDATA[I usually like reading ReadWriteWeb, but I think this article this morning is just link bait (which obviously worked, because I’m linking to it): Buying a MacBook Pro with Retina means shelling out at least $2,199 for a notebook with a 15.4-inch, 2880×1800 display. Top-end models approach $3,500! By comparison, the cheapest 15-inch MacBook Pro […]]]></description>
<content:encoded><![CDATA[<p>I usually like reading ReadWriteWeb, but I think this <a href="http://www.readwriteweb.com/archives/apples-brilliant-boondoggle-macbook-pro-retina-display.php">article</a> this morning is just link bait (which obviously worked, because I’m linking to it):</p>
<blockquote><p>Buying a MacBook Pro with Retina means shelling out at least $2,199 for a notebook with a 15.4-inch, 2880×1800 display. Top-end models approach $3,500!</p>
<p>By comparison, the cheapest 15-inch MacBook Pro starts at $1,799, with half the resolution and a different but roughly comparable set of features and specifications. (The Retina version is smaller and lighter but lacks a DVD drive, and uses expensive Flash storage instead of a slower conventional hard drive.)</p></blockquote>
<p>Anyone who has used an SSD knows there’s nothing “roughly comparable” between the these two computers’ configurations. But we can help them with the math.</p>
<p>Let’s take the <a href="http://store.apple.com/us/configure/MD103LL/A?">cheapest 15-inch at $1799</a>. To get “roughly comparable”, we’ll need to upgrade the RAM to 8GB ($100), and upgrade to the same 256GB SSD ($500), for a total of $2399. You could add another $100 to upgrade to the 1680×1050 hi-res screen, but let’s assume you don’t want that.</p>
<p>To be fair, that machine will have a DVD drive and an ethernet port. So, let’s add those to the <a href="http://store.apple.com/us/configure/MC975LL/A?">base retina MacBook Pro</a>. Base model is $2199, add the USB SuperDrive ($79), and add the Thunderbolt ethernet adapter ($29), for a total of $2307.</p>
<p>So the retina MBP is actually cheaper – AND it comes with 1GB of video RAM, vs. 512MB in the classic MBP.</p>
<p>Is the retina MBP expensive for a laptop? Yes. But none of the 15-inch MacBook Pros are cheap. The new model with the retina display is actually quite aggressively priced, IMHO, as compared with the prior models.</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2012/07/12/macbook-pro-retina-pricing/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">868</post-id> </item>
<item>
<title>On the MacBook Pro with Retina display</title>
<link>https://www.rassoc.com/gregr/weblog/2012/07/09/on-the-macbook-pro-with-retina-display/</link>
<comments>https://www.rassoc.com/gregr/weblog/2012/07/09/on-the-macbook-pro-with-retina-display/#comments</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Mon, 09 Jul 2012 23:14:56 +0000</pubDate>
<category><![CDATA[apple]]></category>
<category><![CDATA[development]]></category>
<category><![CDATA[reviews]]></category>
<category><![CDATA[macbook]]></category>
<category><![CDATA[macbook pro]]></category>
<category><![CDATA[retina]]></category>
<category><![CDATA[retina display]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=861</guid>
<description><![CDATA[There has been much written about the new MacBook Pro with Retina display. I’ve had one for about a week; I’m not going to write a review, as I’m not sure how anyone could compete with this review…but rather I’ll just mention a few things I’ve noticed in using it for my work. First, the […]]]></description>
<content:encoded><![CDATA[<p>There has been much written about the new <a href="http://www.amazon.com/Apple-MacBook-MC975LL-15-4-Inch-Display/dp/B007471PZQ">MacBook Pro with Retina display</a>. I’ve had one for about a week; I’m not going to write a review, as I’m not sure how anyone could compete with <a href="http://www.anandtech.com/show/6023/the-nextgen-macbook-pro-with-retina-display-review/">this review</a>…but rather I’ll just mention a few things I’ve noticed in using it for my work.</p>
<p>First, the retina display is quite striking when you use it with applications that have been updated with retina graphics. Most websites that have not updated their graphics don’t look good at all, as I said earlier:</p>
<blockquote class="twitter-tweet" width="550">
<p>Your web site looks like shit on the MBP Retina display (for nearly all instances of “you”).</p>
<p>— Greg Reinacker (@gregr) <a href="https://twitter.com/gregr/status/215150923918491648" data-datetime="2012-06-19T18:35:52+00:00">June 19, 2012</a></p></blockquote>
<p><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></p>
<p>The “blurry” effect is actually more noticeable on the MacBook Pro than it is on the iPad. So for the many, many folks I’ve heard saying “my site looks ok on the iPad, so I’m not going to worry about it” – my recommendation is take a look at it on the MacBook Pro, and make sure you’re comfortable with how it looks. Hint: it probably looks worse than you think.</p>
<p>There are two things that I’ve found a little painful at the moment when using the new MacBook Pro, as <a href="http://designshack.net/articles/graphics/designing-on-a-retina-screen-my-thoughts-on-the-retina-macbook-pro/">Joshua Johnson</a> also noticed.</p>
<p>First, trying to edit 1x artwork on the retina screen is definitely a challenge. At the moment, you just can’t really tell how it’s going to look on a non-retina screen. Maybe a future update to Photoshop CS6 or Pixelmator or some other app will fix this; we’ll have to see.</p>
<p>And second, taking a screenshot on the retina MBP results in an image that’s twice the size you expect; for example, if you’re running at the “ideal” 1440×900 effective resolution, screen shots will be at 2880×1800. That’s great if you need a 2x screenshot to display on a retina display…but if you need a screenshot to display on a 1x display, you don’t have great options. You can downsize it in Photoshop or other editor, but you lose quality.</p>
<p>My solution to both of these problems has been to connect a regular non-retina screen for those tasks. This also has the advantage of letting me see quickly how things are looking on both retina and non-retina screens side by side, at the cost of being tethered to my desk…</p>
<p>All in all, the machine is beautiful, the screen is stunning when viewing high resolution content, and the machine is quite fast as compared to my other machines. I think the issues I mentioned above will probably (hopefully!) work themselves out as the software catches up with the display.</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2012/07/09/on-the-macbook-pro-with-retina-display/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">861</post-id> </item>
<item>
<title>Glassboard 2.0 and Glassbot</title>
<link>https://www.rassoc.com/gregr/weblog/2012/05/15/glassboard-2-0-and-glassbot/</link>
<comments>https://www.rassoc.com/gregr/weblog/2012/05/15/glassboard-2-0-and-glassbot/#comments</comments>
<dc:creator><![CDATA[gregr]]></dc:creator>
<pubDate>Tue, 15 May 2012 16:09:29 +0000</pubDate>
<category><![CDATA[development]]></category>
<category><![CDATA[internet]]></category>
<category><![CDATA[glassboard]]></category>
<category><![CDATA[glassbot]]></category>
<guid isPermaLink="false">http://www.rassoc.com/gregr/weblog/?p=850</guid>
<description><![CDATA[The folks at Sepia Labs have released Glassboard 2.0 this morning. Lots of new features in the iPhone and Android apps…but my favorite part is the new web client. When I first started using the web app a couple of weeks ago, it struck me as a game-changer for Glassboard. Where I would use the […]]]></description>
<content:encoded><![CDATA[<p>The folks at Sepia Labs have released <a href="http://glassboard.com/blog/2012/05/15/introducing-glassboard-2-0/">Glassboard 2.0</a> this morning. Lots of new features in the iPhone and Android apps…but my favorite part is the new <a href="https://app.glassboard.com/">web client</a>.</p>
<p>When I first started using the web app a couple of weeks ago, it struck me as a game-changer for Glassboard. Where I would use the mobile apps for casual messages, with the web app I could keep it up on my desktop screen, and send messages and updates much more quickly. I found I was using it for real work.</p>
<p>Which got me to thinking, I’d like a way to automatically post content into a board. For example, maybe I’d like commit notices from Github to be automatically added to a board. Or maybe new support tickets. Or maybe just a way to have some fun with my friends – who doesn’t like seeing a coworker with a huge mustache?</p>
<p>So I created glassbot – a bot for Glassboard…and glassbot_recv, which allows you to post external content into a board.</p>
<p>If you want to try it, you can either:</p>
<ul>
<li>Join the Glassbot Playground board with invitation code <strong>cfoli</strong> – once you’re in, post a message like “@glassbot help” (without the quotes) to see what he can do.</li>
<li>Invite the Glassbot to your own board! Just invite “glassyglassbot@gmail.com” to your board; he’ll accept within a few seconds, and then enter “@glassbot help” (again without the quotes) to see what he can do.</li>
</ul>
<p>After you invite the glassbot, you can add a post-receive webhook from Github if you want to see notifications – use the URL</p>
<pre>http://glassbot-recv.herokuapp.com/github/{BoardId}</pre>
<p>as the endpoint URL, replacing {BoardId} with the ID of your board (you can see this in the Glassboard web app).</p>
<p>If you have ideas of things Glassbot could do, or you want to run your own, the code is available at glassbot (in Ruby) and glassbot-recv (Node.js) – add some new actions and let’s have some fun!</p>
<p>Because every board needs a bot.</p>
<p>UPDATE 06/12/2012 – the source code links have been removed at the request of the Glassboard team, while they are making changes to their API. The glassbot is still running, though, and you can still invite it to your boards. I’ll put the code back up when I get the ok.</p>
]]></content:encoded>
<wfw:commentRss>https://www.rassoc.com/gregr/weblog/2012/05/15/glassboard-2-0-and-glassbot/feed/</wfw:commentRss>
<slash:comments>4</slash:comments>
<post-id xmlns="com-wordpress:feed-additions:1">850</post-id> </item>
</channel>
</rss>
<!-- Comet Cache is NOT caching this page, because `$_SERVER['REQUEST_URI']` indicates this is a `/feed`; and the configuration of this site says not to cache XML-based feeds. -->
If you would like to create a banner that links to this page (i.e. this validation result), do the following:
Download the "valid RSS" banner.
Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)
Add this HTML to your page (change the image src
attribute if necessary):
If you would like to create a text link instead, here is the URL you can use:
http://www.feedvalidator.org/check.cgi?url=http%3A//www.rassoc.com/gregr/weblog/rss.aspx