<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel>
<title>James Thomas</title><link>https://wlan1.net/</link><description>Notes on things I build, break and fix.</description><language>en</language><atom:link href="https://wlan1.net/feed.xml" rel="self" type="application/rss+xml"/>
<item><title>NoBo 19. 8 Shower Upgrade</title><link>https://wlan1.net/nobo-19-8-shower-upgrade/</link><guid>https://wlan1.net/nobo-19-8-shower-upgrade/</guid><pubDate>Sun, 26 May 2024 12:00:00 GMT</pubDate><description>Over the spring, I decided it was time to address a few issues with our NoBo 19.8’s tiny bathroom, for a few reasons: As any NoBo owner knows, the shower stall floor is held up by…</description><content:encoded>&lt;p&gt;Over the spring, I decided it was time to address a few issues with our NoBo 19.8’s tiny bathroom, for a few reasons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;As any NoBo owner knows, the shower stall floor is held up by little more than hopes and dreams.&lt;/li&gt;
&lt;li&gt;The vanity sink is terrible.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I decided to replace the shower stall and redo the vanity. This added around ~80lbs total to the rear, so keep that in mind if you’re already near max. I happened to remove my microwave (and replaced with a sliding deck + Air Fryer) as the same time, which dumped 40 lbs from center. I saw no difference in towing control afterwards, but re-adjusted my hitch just to be safe.&lt;/p&gt;
&lt;p&gt;Here’s the final-ish product (I need to run outside and grab the 100% finished pictures, but this is what I’ve got on hand):&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-01-5a4339.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-02-fcba53.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Don’t be stupid&lt;/strong&gt;&lt;/em&gt;: Turn your water off before you do any of this, and depressurize by turning your shower faucet on with the showermiser &lt;em&gt;on&lt;/em&gt;. This will allow the water in your wand hose to drain down to the fresh water tank. Bonus points if you turn the vanity faucet on as well.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;Removing That Shower&lt;/h2&gt;
&lt;p&gt;First off, yank that terrible curtain off and burn it:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-03-ab1078.jpg&quot; alt=&quot;&quot; width=&quot;1084&quot; height=&quot;846&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;From there, you’ll remove the “frame” for the shower curtain via the screws on the walls, on the ceiling, and on the shower pan:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-04-e159ee.jpg&quot; alt=&quot;&quot; width=&quot;1066&quot; height=&quot;916&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Once that’s done, rip it out and burn it too. Or save it. There aren’t many alternatives that fit perfectly, but there are a couple of &lt;a href=&quot;https://www.amazon.com/Camper-Comfort-Retractable-Rolling-Shower/dp/B0BG93G21X/ref=asc_df_B0BG93G21X/?tag=hyprod-20&amp;amp;linkCode=df0&amp;amp;hvadid=693312935745&amp;amp;hvpos=&amp;amp;hvnetw=g&amp;amp;hvrand=13670504596850935881&amp;amp;hvpone=&amp;amp;hvptwo=&amp;amp;hvqmt=&amp;amp;hvdev=c&amp;amp;hvdvcmdl=&amp;amp;hvlocint=&amp;amp;hvlocphy=9009968&amp;amp;hvtargid=pla-1846648211419&amp;amp;psc=1&amp;amp;mcid=a424223131d236109a59c48a0ad84182&amp;amp;gad_source=1&quot;&gt;Amazon retractable shower stall doors&lt;/a&gt; you can attempt, but they are expensive and tricky to fit well.&lt;/p&gt;
&lt;p&gt;Next up, let’s yank that cheap shower surround out. You’ll need to remove these clips by pulling out the center bit, then pull the whole thing out with pliers. If you’re tiling your wall like me, be careful — you’ll need to reinstall these after. Otherwise, yank them out and burn them:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-05-d1c7dc.jpg&quot; alt=&quot;&quot; width=&quot;1080&quot; height=&quot;1010&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Make sure not to yank on this too hard until the center is out. This wasn’t very easy when I did it, I’m probably doing it wrong. You can just drill this out if you’re careful.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-06-09beb6.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Your shower faucet assembly comes out pretty easily — just unscrew the screws, remove the caps from the handles and unscrew those, and then use a knife to cut the sealant around this box.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-07-d725fa.jpg&quot; alt=&quot;&quot; width=&quot;924&quot; height=&quot;716&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;You’ll also need to obviously unscrew your hose connection here, and the showermiser connection. Once the box is loose, you’ll see in the back of the box a couple of plastic right angle PEX to NPT connectors. Unscrew those from the assembly and leave them be. We’ll reuse those later.&lt;/p&gt;
&lt;p&gt;Finally, rip out that shower surround! It’s held to the wall by the plugs you yanked out and a few stubborn strips of adhesive. It’s going to feel like you’re breaking things — you’re not. Just slowly and firmly peel the surround back. I was able to remove the whole surround without cutting it by folding the side walls in and peeling the back wall off, but you can also just cut the inside walls at the corner once you’ve got the sides off.&lt;/p&gt;
&lt;p&gt;Finally, unscrew the shower pan, unscrew and remove the “vent” under the shower, unscrew the metal drain grate in the shower, and reach under there to twist the shower drain free from the pan. I believe I treated it like a normal shower drain and used channel locks to twist the drain from the top. I got lucky, but I’m pretty sure that could easily break the plastic around the drain, or the drain itself. Trust me, you don’t want to break this $300 pan if you’re planning to reuse it.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-08-64af77.png&quot; alt=&quot;&quot; width=&quot;672&quot; height=&quot;420&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;This thing sucks.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Here’s what it looks like once you’ve done &lt;em&gt;all&lt;/em&gt; &lt;em&gt;that&lt;/em&gt;:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-09-389d5b.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1205&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Look at that sad excuse for a floor.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Next up, remove that little wall the pan was sitting on, it’s properly attached to the floor by way of a few pocket hole drilled screws and re-enforced L-brackets, using best carpentry practices and materials.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Just kidding&lt;/strong&gt;&lt;/em&gt;, some kid slammed it right in there during the speedrun assembly of your rig. You’ll find various random screws in various random places. Good luck!&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-10-fe734a.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1205&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;“Floor” and short wall removed&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Yeah, that’s what it looks like — there are four (one removed here) sad little 2x4 scraps holding up your pan, and my favorite part is how they clearly screwed one in &lt;em&gt;before&lt;/em&gt; the walls were attached. I found a screw on that back right one physically inaccessible, so I had to rip the sucker out and hope for the best.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-11-a6f632.jpg&quot; alt=&quot;&quot; width=&quot;1320&quot; height=&quot;876&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Why.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Let’s fix that pan. I went down to Lowes and bought a $20 3/4 inch piece of pine. It’s light and strong, you don’t need much. Grab a “project cut”, the 4'x2' kind they sell for cheap.&lt;/p&gt;
&lt;p&gt;Then, grab a 2x6x8 and get to work. Measure the existing sad 2x4s in your shower stall and make sure your 2x6 widths are within 1/4 inch of those. Mine were, so that make all of this much easier. If not, you could just use more 2x4s (many, many more).&lt;/p&gt;
&lt;p&gt;I pocket-screwed the blocking corners together and screwed all of these into the plywood from below, but you could attach from above no problem.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-12-b20faa.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1205&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;I ended up with something roughly like this. Not pretty, but damn sturdy.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The two near the drain are at an angle to allow for PEX lines to cross over from the vanity to the water tank. I ended up chaging these out to a single block with access to the drain to allow the PEX lines clearance, but did not get a good picture of it pre-installation. Here is it installed:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-13-c81c59.jpg&quot; alt=&quot;&quot; width=&quot;1062&quot; height=&quot;782&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Here’s the top view:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-14-d64ae3.jpg&quot; alt=&quot;&quot; width=&quot;1010&quot; height=&quot;1048&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Jigsaw or hole-saw the drain, make sure you give it a ~1&amp;quot; padding so you can screw in the drain from below!&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-15-0957e3.jpg&quot; alt=&quot;&quot; width=&quot;1036&quot; height=&quot;716&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Shower pan on top of my new base&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Make sure the plywood is at least the size of your foam base. At the time of installation, I wished I had gone past the edge of the foam about 2 inches - but once it was all in it didn’t make a difference, the corners are fully supported anyways.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-16-d81980.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1205&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;New base Installed!&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Finally, when I installed on the floor, I attached a few small metal L-brackets to the floor to keep this from shifting around:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-17-54ecb6.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1171&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Without these (or at least corner screws) it will shift around.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Next up, the shower stall. I started by cutting an access to the very top of the wall where the water lines feed in. My goal here was to add in a traditional shower head and wand setup. I ended up ditching the wand — no regrets.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-18-b3abec.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-19-88cb6f.jpg&quot; alt=&quot;&quot; width=&quot;1060&quot; height=&quot;1094&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;The ear for a shower head&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;I had to add some blocking to get this in place, thankfully the back wood was already there, but I pocket screwed into the top plate to be safe. Grab a shower head connection (preferably a crimp connection, not a Sharkbite, but that’s a debate for another forum), and install it. You’ll want it either flush with the plywood or slightly protruding, we’re going to install 1/2&amp;quot; of substrate for our “tile” after this, so having it as close as we can get to that tile makes sealing it off easier (in case it leaks).&lt;/p&gt;
&lt;p&gt;Time for a real shower mixing valve and trim set! I took a gamble and bought &lt;a href=&quot;https://www.amazon.com/gp/product/B0CLGPR2V9/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&quot;&gt;this no-name set&lt;/a&gt;, and it worked out great. It’s a thermostatic valve, meaning if someone runs cold or hot water elsewhere in the camper you won’t get blasted with extreme temperature swings in the shower. Also, it’s got support for two outputs: One for your shower head and one for the shower miser. If you don’t care to use your miser anymore, you can direct it to a wand.&lt;/p&gt;
&lt;p&gt;First though, we’ll need to get it roughed in. There are few options for real support here, so I used a router to cut this overlap, providing a little extra support. I also screwed this in from the other side. This is just a block of 1x6:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-20-a3bd61.jpg&quot; alt=&quot;&quot; width=&quot;1096&quot; height=&quot;1076&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Eyeballed the measurements here. It’ll make sense in a few minutes.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-21-134827.jpg&quot; alt=&quot;&quot; width=&quot;1096&quot; height=&quot;898&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Measure the wood that’s already on the wall, remove that much thickness from the bottom&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Now, install the mixing valve. You’re going to end up with 1/2&amp;quot; of Goboard plus the tile, so you’ll need the plastic plate to be roughly flush with all of that. I’ll leave it up to you to measure that out, or eyeball it. There’s plenty of wiggle room in here, but the most important part is that this is installed level with the wall it’s on, otherwise your trim plate will be crooked (ask me how I know)&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-22-a9cd76.jpg&quot; alt=&quot;&quot; width=&quot;1096&quot; height=&quot;1050&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;That top knob is the bidirectional selector. Right = miser, top = Shower Head&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Get some PEX &amp;gt; NPT adapters and go to town in here. I’m not going to detail what needs to be done, you need some basic plumbing competency for this — but it’s not hard. Also, again, I wouldn’t use sharkbites here. Be smarter than me.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-23-b72784.jpg&quot; alt=&quot;&quot; width=&quot;1080&quot; height=&quot;1180&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Up top. Use a pressure fitting to test your connection.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Once it’s all hooked up, turn it on! Make damn sure you don’t have leaks. Run the miser, make sure that’s not leaking either.&lt;/p&gt;
&lt;p&gt;Once you’re happy with it, install the shower pan again.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-24-155283.jpg&quot; alt=&quot;&quot; width=&quot;1088&quot; height=&quot;1046&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Installation is the reverse of removal.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Before we get into the tile, let’s fix that vanity. Our backer board will run behind it, so we need the top removed at this point. I removed the sink and crappy faucet, and then the whole vanity top here.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-25-b99a55.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1205&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-26-c7a02b.jpg&quot; alt=&quot;&quot; width=&quot;1078&quot; height=&quot;774&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;We’ll get to the pretty wood part later, but for now — it’s &lt;a href=&quot;https://www.lowes.com/pd/Johns-Manville-0-47-in-x-36-in-x-60-in-GOBOARD-Polyisocyanurate-Backer-Board/999931180&quot;&gt;GoBoard&lt;/a&gt; time. Clean your walls real good, clear that adhesive, and then start cutting &amp;amp; screwing up your goboard. I used regular screws, the kind you’d use with kerdi board — but no washers. I wouldn’t use cement backer screws here, they are expensive and probably wouldn’t hold well in the crappy plywood walls.&lt;/p&gt;
&lt;p&gt;Note that you’re not getting much for “studs” here. I could not find a stud on the rear wall, only the sides, and those were 24 OC. I think the side wall might have wood studs somewhere, but the rear wall had nothing substantial. If you find some, awesome. Screws seem to hold well enough directly into the plywood walls, just be careful not to use screws long enough to penetrate the exterior!&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-27-1ea5c3.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1205&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-28-09084c.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1205&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-29-da3569.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;881&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Leave a little gap for movement, just like any shower stall. We’ll caulk all this later.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Seal up all the screws and corners. Use the good GoBoard sealant for this, don’t skimp. It’s very strong, and very flexible — two things you need in a moving trailer like this. I used Palisade tile on top of this, which itself is waterproof if installed correctly, so this is like a second layer of defense. I guess you could RedGuard this too if you wanted, but that seemed like overkill.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-30-f703f5.jpg&quot; alt=&quot;&quot; width=&quot;1058&quot; height=&quot;1322&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I had to add some support near the valve since there was nothing for the GoBoard to hold onto, making to too flexible. Some wood strips and we were set:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-31-c667f3.jpg&quot; alt=&quot;&quot; width=&quot;1076&quot; height=&quot;1356&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;For tile, I used &lt;a href=&quot;https://www.lowes.com/pd/PALISADE-10-Pack-Carrara-Marble-PVC-Common-Actual-23-23-in-x-11-1-in/5000294307?cm_mmc=shp-_-c-_-prd-_-flr-_-ggl-_-CRP_SHP_LIA_FLR_Online_C-D-_-5000294307-_-local-_-0-_-0&amp;amp;gad_source=1&amp;amp;gclid=Cj0KCQjwu8uyBhC6ARIsAKwBGpRjxOyk3-BGJm4Gic1gn-TsZYpD--aukKwnCzrgVft_sYA2-gc9ToIaAv5zEALw_wcB&amp;amp;gclsrc=aw.ds&quot;&gt;Palisade&lt;/a&gt;. It worked great, strong and sturdy (and light!) — just expensive. If you go that route, grab the inside trim and install it now with the &lt;a href=&quot;https://www.lowes.com/pd/Johns-Manville-GoBoard-10-3-fl-oz-White-Oil-Based-Drywall-Sealant/1002867020?srsltid=AfmBOooSpzR6Xt0judKD6Rs7A-psnx2fYKH4_z5W0OdKjne988VESzlQuo4&quot;&gt;GoBoard sealant&lt;/a&gt; (or &lt;a href=&quot;https://www.lowes.com/pd/OSI-9-5-oz-White-Paintable-Specialty-Window-and-Door-Caulk/50390372?cm_mmc=shp-_-c-_-prd-_-pnt-_-ggl-_-CRP_SHP_LIA_PNT_Online_C-D-_-50390372-_-local-_-0-_-0&amp;amp;gad_source=1&amp;amp;gclid=Cj0KCQjwu8uyBhC6ARIsAKwBGpS2XPSg40FqiN_C7lW6FHvNbX7dXjaYsPkVjSmtCqvGEgyiP5RF1NEaAhbGEALw_wcB&amp;amp;gclsrc=aw.ds&quot;&gt;OSI Quad Max&lt;/a&gt;):&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-32-7591ef.jpg&quot; alt=&quot;&quot; width=&quot;1028&quot; height=&quot;1082&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-33-6692f7.jpg&quot; alt=&quot;&quot; width=&quot;1016&quot; height=&quot;1196&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;From here, install the tile as per the manufacturer instructions. Make sure it’s level on the first row, use &lt;a href=&quot;https://www.lowes.com/pd/GE-Silicone-1-Tub-and-Tile-Kitchen-and-Bath-10-1-oz-Clear-Silicone-Caulk/5005330289&quot;&gt;clear sealant&lt;/a&gt; between the seams, and use a good &lt;a href=&quot;https://www.lowes.com/pd/LOCTITE-Power-Grab-Heavy-Duty-White-Latex-Interior-Exterior-Construction-Adhesive-Actual-Net-Contents-9-fl-oz/1001059990&quot;&gt;construction adhesive&lt;/a&gt; for the back side.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-34-bdfc23.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1205&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-35-32ec22.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1205&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;On the left side here, I did mine flush with the wall, and slid in a trim piece after I was done, just make sure not to use adhesive all the way at the end so you can pry it back a slight bit:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-36-ceaea4.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;A little trim will hide this edge when you’re done&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Here’s the final mixing valve cutout. This could have been cleaner, but I caulked the trim to keep water out after anyways:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-37-04bb28.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-38-3ab7b2.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Shower head: Love it or hate it. Yes, I cleaned this up and did another round to seal it up after.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Once the tile was all in (get an electric caulk gun, trust me) — it looked pretty good.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-39-fdf25b.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I installed the shower trim to make sure it all worked out, and boy did it. Make sure to silicone seal up around the trim very well so water doesn’t make its way into the valve opening.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-40-fcba53.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;CAULK THE BOTTOM WELL! (CAULK EVERYTHING FOR THAT MATTER!)&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;I don’t have detailed instructions for the vanity, but I used &lt;a href=&quot;https://www.lowes.com/pd/allen-roth-4-ft-x-25-in-x-1-5-in-Natural-Chevron-Straight-Acacia-Butcher-Block-Countertop/5013817615?store_code=2638&amp;amp;cm_mmc=shp-_-c-_-prd-_-kit-_-ggl-_-CRP_SHP_LIA_KIT_Online_C-D-_-5013817615-_-local-_-0-_-0&amp;amp;gad_source=1&amp;amp;gclid=Cj0KCQjwu8uyBhC6ARIsAKwBGpRVpyK8F_9_77DEOZAevnU_Ayhd4erQ17vCO78Ili2RZi92lWfUI0saAim1EALw_wcB&amp;amp;gclsrc=aw.ds&quot;&gt;this butcher block&lt;/a&gt;, &lt;a href=&quot;https://www.amazon.com/gp/product/B07XKZM6KC/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&quot;&gt;this sink&lt;/a&gt; and &lt;a href=&quot;https://www.amazon.com/gp/product/B083GY7HHN/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;th=1&quot;&gt;this faucet&lt;/a&gt;, and it worked out great. You’ll need to fish the lines through the right side of the vanity and make a hole for them to go back into the left side with this setup, though. No big deal.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-41-aa8efc.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Finally, install a shower head (&lt;a href=&quot;https://www.amazon.com/gp/product/B0CQXPBXJN/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;amp;psc=1&quot;&gt;this one&lt;/a&gt; is much better than the Oxygenics fury and fairly low-flow, but install whatever you want) and throw up a shower curtain. You can re-install the old one if you want, I did not want that. That curtain sucks.&lt;/p&gt;
&lt;p&gt;I cleaned up the ceiling after taking this photo.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nobo-19-8-shower-upgrade/photo-42-5a4339.jpg&quot; alt=&quot;&quot; width=&quot;1106&quot; height=&quot;1470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I also caulked and used some cheap 1–2&amp;quot; PVC trim at the top to hide the gap, not shown here.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;
</content:encoded></item>
<item><title>Reality Testing</title><link>https://wlan1.net/reality-testing/</link><guid>https://wlan1.net/reality-testing/</guid><pubDate>Wed, 17 Apr 2024 12:00:00 GMT</pubDate><description>In the world of software development, a decades-long endless debate over the true nature of various testing patterns holds steady: What’s the difference between a Unit Test and an…</description><content:encoded>&lt;p&gt;In the world of software development, a decades-long endless debate over the true nature of various testing patterns holds steady: What’s the difference between a Unit Test and an Integration Test? What’s a System Test? Can these overlap? &lt;em&gt;Should they overlap?&lt;/em&gt; The answer to these lie in the nature of your code, how it will be utilized, the ecosystem it lives in, and the current phase of the moon.&lt;/p&gt;
&lt;h2&gt;A Brief History of Unit Testing&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;It’s 1966&lt;/strong&gt;, five years following John F. Kennedy’s declaration of an unwavering conviction to send men to the moon by 1970. Roscosmos just beat NASA to the moon by four months, and Alexei Leonov is preparing to take the &lt;em&gt;first small step for man.&lt;/em&gt; Allthewhile, Apollo engineers are struggling to simply get off the ground. Roscosmos is running laps around NASA, and Administrator James Webb is running out of rope.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;MIT Instrumentation Lab&lt;/strong&gt; team assigned to craft the Apollo Guidance Computer was far behind schedule, failing to meet requirements — so much that NASA sent over one of it’s own to oversee the operation. Enter &lt;a href=&quot;https://en.wikipedia.org/wiki/Bill_Tindall&quot;&gt;&lt;strong&gt;Bill Tindall&lt;/strong&gt;&lt;/a&gt; — in the words of Gene Kranz, Tindall &lt;em&gt;“was pretty much the architect for all of the techniques that we used to go down to the surface of the Moon.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Tindall began frequenting Massachusetts Avenue, routinely diving into the MIT software development process, returning frank, simplified translations of the work being done in the form of well-circulated memos for NASA staff. Over time, the folks back home in the Lone Star would affectionately reference these as &lt;em&gt;Tindalgrams,&lt;/em&gt; internally analogous to the morning newspaper.&lt;/p&gt;
&lt;p&gt;One particularly interesting Tindalgram, &lt;em&gt;66-FM1–75&lt;/em&gt;, detailed the bucket of worms known as the Apollo spacecraft computer programs:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/reality-testing/photo-01-db2f86.png&quot; alt=&quot;&quot; width=&quot;1466&quot; height=&quot;510&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;The OG backlog, AKA: “My weekly quota of new ulcers”&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/reality-testing/photo-02-9ea64b.png&quot; alt=&quot;&quot; width=&quot;1474&quot; height=&quot;562&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Yes, unsatisfactory indeed. We see the term unit test here, for perhaps the first time in archived history. Clearly the practice of unit testing was not new, not typically this type of testing was at the hardware level, so to see it applied to software modules as far back as the late 1960s — that’s pretty neat. If we reach back farther, we can see a reference to these test types used in Gemini, dating back to 1964:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The simulations followed &lt;strong&gt;individual unit tests&lt;/strong&gt; and &lt;strong&gt;integrated tests&lt;/strong&gt; of portions of the software. […] NASA exerted some pressure on MIT to be more consistent in testing, and it eventually adopted a four-level test structure based largely on the verification of the Gemini Mission Control Center developed by IBM in 1964. [1]&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Cool, so we’ve unlocked the unit test right? Nope. Unsurprisingly, nobody outside of NASA seems to care - and &lt;em&gt;Unit Testing&lt;/em&gt; remains widely unemployed in the realm of software engineering for another 40 years.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;It’s 1998,&lt;/strong&gt; The United States is flirting with impeachment, the MP3 player costs too damn much, and Kent Beck is &lt;em&gt;over&lt;/em&gt; software regression. In an assumed but completely unverified drunken programming binge, &lt;a href=&quot;https://www.eg.bucknell.edu/~cs475/F2000-S2001/hyde/JUnit/README.html&quot;&gt;JUnit 1.0&lt;/a&gt; is born — silently hitting the software development scene. It lays dormant for a few years while Java brews, waiting for the world to discover it’s irreversible impact.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/reality-testing/photo-03-848fa7.png&quot; alt=&quot;My goodness this makes me feel emotions I’ve never felt before&quot; width=&quot;406&quot; height=&quot;310&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Frankly, AWT and Swing piss me off&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;&lt;em&gt;God save the queen&lt;/em&gt; you know it’s 1998 when the primary docs come with a &lt;em&gt;cookbook.&lt;/em&gt; Here’s an example from the &lt;a href=&quot;https://www.eg.bucknell.edu/~cs475/F2000-S2001/hyde/JUnit/doc/cookbook.htm&quot;&gt;JUnit 1.0 Cookbook&lt;/a&gt;, still humming along on Bucknell’s finest Pentium II:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;public void testSimpleAdd() {
    Money m12CHF= new Money(12, &amp;quot;CHF&amp;quot;);
    Money m14CHF= new Money(14, &amp;quot;CHF&amp;quot;);
    Money expected= new Money(26, &amp;quot;CHF&amp;quot;);
    Money result= m12CHF.add(m14CHF);
    assert(expected.equals(result));
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Fast forward 25 years, the time it took the &lt;em&gt;Human Genome Project&lt;/em&gt; to pan out, and we’ve advanced the unit test to roughly this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@Test
void timeoutNotExceededWithResult() {
    String actualResult = assertTimeoutPreemptively(ofSeconds(1), () -&amp;gt; {
        return restService.request(request);
    });
    assertEquals(200, request.getStatus());
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Rad.&lt;/p&gt;
&lt;p&gt;The formal definition of a Unit Test is fairly straightforward:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;In &lt;a href=&quot;https://en.wikipedia.org/wiki/Computer_programming&quot;&gt;computer programming&lt;/a&gt;, &lt;strong&gt;unit testing&lt;/strong&gt; is a &lt;a href=&quot;https://en.wikipedia.org/wiki/Software_testing&quot;&gt;software testing&lt;/a&gt; method by which individual units of &lt;a href=&quot;https://en.wikipedia.org/wiki/Source_code&quot;&gt;source code&lt;/a&gt; — sets of one or more computer program &lt;a href=&quot;https://en.wikipedia.org/wiki/Modular_programming&quot;&gt;modules&lt;/a&gt; together with associated control data, usage &lt;a href=&quot;https://en.wikipedia.org/wiki/Procedure_(computer_science)&quot;&gt;procedures&lt;/a&gt;, and operating procedures — are tested to determine whether they are fit for use. &lt;a href=&quot;https://www.wiley.com/en-us/Automated+Defect+Prevention%3A+Best+Practices+in+Software+Management-p-9780470042120&quot;&gt;[2]&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;TL;DR — Testing the smallest logical grouping of code. Typically, this means the method or function level. In python a typical unit test might look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import pytest

def calculate_interest(principal, rate, time):
  interest = principal * rate * time / 100
  return interestp

def test_calculate_interest():
  principal = 1000
  rate = 5
  time = 1
  expected_interest = 50
  actual_interest = calculate_interest(principal, rate, time)
  assert expected_interest == actual_interest
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is universal, it is absolute. This can be translated to (almost) any modern language, with a nearly identical implementation:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;C++&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;cassert&amp;gt;

double calculate_interest(double principal, double rate, double time) {
    double interest = principal * rate * time / 100;
    return interest;
}

void test_calculate_interest() {
    double principal = 1000;
    double rate = 5;
    double time = 1;
    double expected_interest = 50;
    double actual_interest = calculate_interest(principal, rate, time);
    assert(expected_interest == actual_interest);
}

int main() {
    test_calculate_interest();
    return 0;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Javascript&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;function calculateInterest(principal, rate, time) {
    const interest = (principal * rate * time) / 100;
    return interest;
}

function testCalculateInterest() {
    const principal = 1000;
    const rate = 5;
    const time = 1;
    const expectedInterest = 50;
    const actualInterest = calculateInterest(principal, rate, time);
    if (expectedInterest === actualInterest) {
        console.log('Test passed.');
    } else {
        console.log('Test failed.');
    }
}

testCalculateInterest();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Python (Spanish)&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import pytest

def calcular_interes(principal, tasa, tiempo):
    interes = principal * tasa * tiempo / 100
    return interes

def test_calcular_interes():
    principal = 1000
    tasa = 5
    tiempo = 1
    interes_esperado = 50
    interes_actual = calcular_interes(principal, tasa, tiempo)
    assert interes_esperado == interes_actual
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The unit test holds fast, it has not changed much over it’s life. The nature of the unit test is to uphold the integrity of a small* block of code, so that generations to come can have confidence that the &lt;a href=&quot;https://www.explainxkcd.com/wiki/index.php/2347:_Dependency&quot;&gt;small library holding up modern infrastructure&lt;/a&gt; doesn’t suddenly change it’s output.&lt;/p&gt;
&lt;h2&gt;All Together Now: Integration Testing&lt;/h2&gt;
&lt;p&gt;Martin Fowler, another living artifact of our predecessors who has a &lt;a href=&quot;https://martinfowler.com/bliki/IntegrationTest.html&quot;&gt;lot&lt;/a&gt; to &lt;a href=&quot;https://martinfowler.com/bliki/TestDouble.html&quot;&gt;say&lt;/a&gt; on &lt;a href=&quot;https://martinfowler.com/books/refactoring.html&quot;&gt;testing&lt;/a&gt;, declares that integration tests validate the flow between modules:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;It was not unusual for one programmer to be responsible for a single module, but this would be big enough that it could take months to build it. … The point of integration testing, as the name suggests, is to test &lt;strong&gt;whether many separately developed modules work together as expected&lt;/strong&gt;. [4]&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Modules (in Fowler’s world) could be large portions of software taking a single developer months to write. These are not necessarily the validation of method-chaining; These integration tests ensure that massive portions of code play nice together — a fine-and-dandy notion barring the fact that a “module” is so loosely defined that I could argue an entire http microservice is a “module”.&lt;/p&gt;
&lt;p&gt;Ronald J. Leach, author of the undiscovered gem &lt;a href=&quot;https://www.amazon.com/Why-2K-Ronald-J-Leach/dp/148273107X&quot;&gt;&lt;em&gt;Why 2k&lt;/em&gt;&lt;/a&gt;? claims the same:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The process of ensuring that programs that are created from individual program modules that work together as a unit is called software integration [3]&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Back to our living ancestor: Fowler refers to integration testing as the flow of logic between modules — back in his day this was mostly local, but today this is a combination of local and remote. For remote code (APIs, RPCs, etc) we do not always have the ability to execute our remote service within the test suite. Shoot, most of the time we don’t even have access to the source code within — meaning we must either connect to it and validate the response, or make-up the response based on a known previous response schema. More often than not, we simply make-believe the response in what’s known as a &lt;em&gt;Mocked Response.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Before we get to the best test, let’s take a quick detour and brush up on Mocking.&lt;/p&gt;
&lt;h2&gt;Mocking&lt;/h2&gt;
&lt;p&gt;There’s a common thread across Unit and Integration testing: We test against what we &lt;em&gt;expect.&lt;/em&gt; Not what’s real, but what we think should be real. We create Mocks, TestDoubles, Fakes, Stubs, Dummy objects; We use files aptly named test.json , test-database.rdb , and user-data.csv. These give us a fixed point in space to work from, solid ground to stand on as we test our system against &lt;em&gt;expected&lt;/em&gt; inputs.&lt;/p&gt;
&lt;p&gt;This style of testing is known as &lt;em&gt;Blind Testing&lt;/em&gt;, in which we make assumptions about a response. In a database-driven application, we may seed a temporary database with fake data. For API calls, we might fetch a convincingly fake response from a local file. Why? Because we want the test suite to run quickly, or because we don’t want to touch a live service, or most often because lower lanes are years out of sync with production and our test suite can’t talk to prod.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Blind Testing&lt;/em&gt; works well for applications expecting static, fixed inputs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Managed SDK clients&lt;/li&gt;
&lt;li&gt;GUI Interfaces&lt;/li&gt;
&lt;li&gt;NASA Apollo Control Software&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But this thinking falls short with more abstract, non-contractual interfaces, such as the “Modern API”. No, not SOAP, but rather almost anything that defaults to &lt;em&gt;json&lt;/em&gt; as it’s return format and written post 2008. These are difficult to test against — without a strong contract in place, the inputs and outputs could change at any given time, without your consent or knowledge. Types are optional, and hell usually the whole request signature is optional. These services change all the time with little to no notice. The best one could hope for here is that a &lt;em&gt;Modern API’s&lt;/em&gt; author disappears in the wilderness with no replacement to be found, forever locking in that API’s schema.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/reality-testing/photo-04-81bd8b.jpg&quot; alt=&quot;&quot; width=&quot;782&quot; height=&quot;465&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Node is our Apple of Eden, and we’ve strayed too far from the light&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Of course that will never happen, as new features are introduced and vulnerabilities patched, and API is destined to change over time. Best practices denote the use of a /v&amp;lt;N&amp;gt;/ prefix, or similar method of locking in a set of backwards compatible endpoints you can trust will remain functional with your input for all time — but in reality one has to trust the API author to respect that, and even more difficult: hope &lt;em&gt;they&lt;/em&gt; test well enough to catch regression.&lt;/p&gt;
&lt;p&gt;So if we can’t trust that an API will remain static enough to emulate with mocked input, what should we do? Do we write mocked tests, updating them as we discover the regressions they did not reveal? Do we hit the live service? Yes to all of the above! For the latter, we’ll turn to a System Test.&lt;/p&gt;
&lt;h2&gt;System Testing&lt;/h2&gt;
&lt;p&gt;As though this space wasn’t vague enough, yet another ambiguous term exists to define your test suite: &lt;strong&gt;System Testing&lt;/strong&gt;. Here’s another semi-relevant Fowler quote, to fill space and appeal to academic types:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A software system is made up of a collection of simple, lower-level software modules and […] simpler modules should be put together to form a &lt;strong&gt;system&lt;/strong&gt; [4]&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;System Testing is a black box test: Pump inputs into your product, validate that outputs match what we expect. We don’t know or care what methods, classes, or even what language the damn thing was written in. We just care that this pile of trash we’re shoving into production passes the turing test for being a reasonably functional pile of trash.&lt;/p&gt;
&lt;p&gt;System Testing generally can cover all bases, at the expense of invoking the entire chain of logic many, many times. As product complexity increases, the number of follow-up responses to initial program or API input becomes an infinite set of combinations. Generally, we’d test the hell out of our individual methods, moderately test how they chain together, and very casually test the entire system end to end.&lt;/p&gt;
&lt;p&gt;System testing is great, it’s the best — an absolute &lt;em&gt;Chaddington&lt;/em&gt; test. Very few lines of code test entire codebases. The only downside to a system test is that one must invoke the entire system — they can’t mock it, that would defeat the purpose.&lt;/p&gt;
&lt;h2&gt;So What?&lt;/h2&gt;
&lt;p&gt;I don’t know why I wrote all of that, I just wanted to make this point: If you mock API call responses in your tests, make sure at some point your test suite validates your mock data is in-line with the true response data. Just hit the API — at least once. You’ll thank me later.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;[1] Tomayko, J. E. (1988, March 1). &lt;a href=&quot;https://ntrs.nasa.gov/citations/19880069935&quot;&gt;&lt;em&gt;Computers in Spaceflight: The NASA experience&lt;/em&gt;&lt;/a&gt;. NASA Technical Reports Server (NTRS).&lt;/p&gt;
&lt;p&gt;[2] Kolawa, Adam. &lt;a href=&quot;https://www.wiley.com/en-us/Automated+Defect+Prevention%3A+Best+Practices+in+Software+Management-p-9780470042120&quot;&gt;&lt;em&gt;Automated Defect Prevention: Best Practices in Software Management&lt;/em&gt;&lt;/a&gt;. Wiley, 2007&lt;/p&gt;
&lt;p&gt;[3] Leach, Ronald. &lt;a href=&quot;https://www.google.com/books/edition/Introduction_to_Software_Engineering/qkQPEAAAQBAJ?hl=en&amp;amp;gbpv=1&amp;amp;dq=software+module&amp;amp;pg=PA295&amp;amp;printsec=frontcover&quot;&gt;&lt;em&gt;Introduction to Software Engineering&lt;/em&gt;&lt;/a&gt;. CRC Press, 2000&lt;/p&gt;
&lt;p&gt;[4] Fowler, Martin. (16 January 2018). &lt;a href=&quot;https://martinfowler.com/bliki/IntegrationTest.html&quot;&gt;&lt;em&gt;IntegrationTest&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;
</content:encoded></item>
<item><title>Kernel Panic! A brief README for the OSCP</title><link>https://wlan1.net/kernel-panic-a-brief-readme-for-the-oscp/</link><guid>https://wlan1.net/kernel-panic-a-brief-readme-for-the-oscp/</guid><pubDate>Fri, 06 Jul 2018 12:00:00 GMT</pubDate><description>A Lil' BackstoryLike thousands before me, I've slowly fell into a deep state of madness over the past month in the OSCP labs, working towards total understanding of everything…</description><content:encoded>&lt;h2&gt;A Lil' Backstory&lt;/h2&gt;
&lt;p&gt;Like thousands before me, I've slowly fell into a deep state of madness over the past month in the OSCP labs, working towards total understanding of everything &lt;a href=&quot;https://www.offensive-security.com/&quot;&gt;Offsensive Security&lt;/a&gt; deems appropriate for an entry level pentester to master.&lt;/p&gt;
&lt;p&gt;Pentesting? Me? Not quite. I do security R&amp;amp;D during the day, but I figured I'd just continuously tackle something new and difficult for me, which this year was the OSCP.&lt;/p&gt;
&lt;h2&gt;The Course Material&lt;/h2&gt;
&lt;p&gt;Do yourself a massive favor - don't skip this. When you begin the oscp training, nobody tells you the &amp;quot;right&amp;quot; method. You get hints here and there but it's totally up to you to figure it out and make the best with what you're given. Some folks jump right into the lab, which isn't an issue if you've got previous pentesting (and really, previous enumeration) experience. That said, there are a few techniques used in the lab and on the exam covered by the course materials (the big pdf you get sent to you at the start). Some of these things are very specific to a particular software or technique - and skipping them could certainly cost you in both time and blood pressure.&lt;/p&gt;
&lt;h3&gt;The Excercises&lt;/h3&gt;
&lt;p&gt;As for moving through the material, it's not too hard. There are points where things won't work, where the material appears out of date, and where you swear &amp;quot;it's just the machine&amp;quot;. Rule one in not only pentesting but in being competent is to &lt;strong&gt;never blame anything but yourself&lt;/strong&gt;. Yes, there might be a configuration issue going on, but it's 100% up to you to understand how to debug everything, forever. There is no such thing as &amp;quot;well x is stupid and sucks therefore it's not up to me to figure this part out&amp;quot;. There is &lt;em&gt;only ever&lt;/em&gt; &amp;quot;how do I get more data out of this to figure out what's going on under the hood&amp;quot;. This applies not only in the OSCP labs, but in the real world, be it in development, infrastructure, networking, or hell even sewing. You have all the tools you need to &lt;em&gt;figure it out&lt;/em&gt;, and if you can't, then you'll lose your job, promotion, or respect to someone who can.&lt;/p&gt;
&lt;p&gt;At the &lt;em&gt;very least&lt;/em&gt;, skim through all of it and ensure you feel confident in each section. It's all game to be on the exam, and all of it is valuable.&lt;/p&gt;
&lt;h3&gt;Taking Notes&lt;/h3&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/kernel-panic-a-brief-readme-for-the-oscp/screen-shot-2018-02-17-at-1-42-36-pm-7c900b.png&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;641&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I'll cover lab-specific note techniques below, but for here there are a few ways to take notes that have become popular with many folks. I actually didn't use those at first, instead opting for &lt;a href=&quot;https://hackmd.io/&quot;&gt;Hack MD&lt;/a&gt;. Being a huge markdown supporter, I write all my notes in MD, and hackmd is a great way to store that in the cloud and be able to control-v images into your notes. Also, you're going to want to access your notes from your host, your kali vm, and probably another computer - sometimes all at once, so being stored remotely helps a ton. Also, I accidentally deleted my VM right before the exam, and having all of my notes stored here and my exploits stored in NextCloud, I totally mitigated &lt;em&gt;that&lt;/em&gt; disaster.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/kernel-panic-a-brief-readme-for-the-oscp/screen-shot-2018-02-17-at-1-44-30-pm-c4d511.png&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;818&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Aside from that, OneNote is great as well. I ended up using hackmd for the excercises, general notes, guides, script storage, etc - and OneNote online for the lab box documentaiton (such as steps to exploit a box or storing loot/data I found).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Note: I ran my own instance of hackmd&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;The Labs&lt;/h2&gt;
&lt;h3&gt;Alpha&lt;/h3&gt;
&lt;p&gt;There's a special box with a complete walkthrough in the forums. This isn't obvious unless you go digging for it. If you have the time and willpower, I'd advise you ignore the walkthrough as long as possible and try to go for it alone first. That said, there are many many boxes in this lab, so if you find yourself totally stuck on the first few with no idea how to even get started (in both getting a shell or privesc), then go through that guide - it's going to give you a solid test case for the lab boxes, and it's methodology generally applies to the entire lab.&lt;/p&gt;
&lt;h3&gt;The Bosses&lt;/h3&gt;
&lt;p&gt;There are a few &amp;quot;harder&amp;quot; boxes in the lab. Do everything you can to solve these on your own. They teach not only the techniques, but how to identify rabbit holes, how to pivot when needed, and how to take breaks appropriately. So so so many times I've walked away from a 8 hour session only to root a box 15 minutes into it after sleeping because I felt &amp;quot;alright&amp;quot; with re-trying previously failed exploits, or simply because I noticed a new attack vector that I skimmed past before.&lt;/p&gt;
&lt;h3&gt;Taking Notes&lt;/h3&gt;
&lt;p&gt;It's &lt;em&gt;super&lt;/em&gt; important to take notes when you learn a new technique - you'll find yourself wanting to copy and paste commands over and over and over. Hackmd was a massive help here, in fact I still have a huge &amp;quot;Techniques&amp;quot; page that I use for hacking these days that stemmed from the notes I took during the OSCP. Things like proxychains and socat shell stablization I tend to use scripts that I've saved there rather than googling the techniques every single time I need them.&lt;/p&gt;
&lt;h2&gt;The Exam&lt;/h2&gt;
&lt;p&gt;I'll write up a blog post dedicated to the exam in a few months here... until then, just note that the exam &lt;em&gt;isn't&lt;/em&gt; that big of a deal. It's mostly all in your head. You'll get 5 boxes with fairly obvious vulnerabilities, and the entire exam is just a test to see if you keep calm and chase down every single loose end possible without getting sucked into a 4 hour rabbit hole on a method that isn't working out.&lt;/p&gt;
</content:encoded></item>
<item><title>Weekend Process Automation App</title><link>https://wlan1.net/weekend-app/</link><guid>https://wlan1.net/weekend-app/</guid><pubDate>Fri, 16 Feb 2018 12:00:00 GMT</pubDate><description>&quot;hey man, sorry to bother you, but could you write a script that runs my employee id against the proxy logs API and spits out a csv of my active workstations?&quot; - Actual chat log…</description><content:encoded>&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;hey man, sorry to bother you, but could you write a script that runs my employee id against the proxy logs API and spits out a csv of my active workstations?&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;- &lt;em&gt;Actual chat log from Friday&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I get these requests about twice a week - and usually I'm pretty happy to lend my experience in the form of 15 minute intense scripting intervals. A large majority of requests are simple data transformations (json → csv; append/prepend filenames, etc), which often lead to 5 minutes in the chrome inspector rapidly building out a method that performs the job. I find two issues with this (and no, not the fact that I'm using the chrome inspector over a python script or something):&lt;/p&gt;
&lt;h2&gt;I never found a decent way to organize these scripts&lt;/h2&gt;
&lt;p&gt;I've got small .js files all over every machine I own (right along side the .py and .rb files that do the same jobs). I've tried to organize these in various ways, but what always happens is: I'll write a script, someone needs it &lt;em&gt;yesterday&lt;/em&gt;, and in the process of working with it I'll save it literally at the default save location just to get it out of the way. This is 100% my fault, but if I wasn't scripting locally, I'd never face this issue.&lt;/p&gt;
&lt;h2&gt;I don't have a great way for users to run them&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Alright cool, here's some .js file and if you're an engineer it might make sense, if not then I guess I'll just run the job for you now and hope you never need it ran again.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;That's essentially the hand off for all of these scripts. On top of that, even as a dev it's a pain to run them, and if I need access to them programmatically or just at all in the future, it's likely I'll have lost it or won't be able to integrate it into whatever stack my app uses right now.&lt;/p&gt;
&lt;h2&gt;So&lt;/h2&gt;
&lt;p&gt;How about a web app that just does little functions? You set it up in a jsfiddle format, where people can come make their little scripts that take x number of inputs and return y number of solutions. There are two key things that separate this from just giving out jsfiddle links:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;These little functions will all be accessible as GET/POST requests over HTTP (so hopefully I've opened up the door for like 90% of apps to access them)&lt;/li&gt;
&lt;li&gt;We can share and store them both on the user level and the group level. This lets users browse through popular public functions and &lt;em&gt;hopefully&lt;/em&gt; stop repeating common code tasks.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I'll need a few things, which I'll continue to add to this post and I create ideas and solutions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Who's the target user?&lt;/li&gt;
&lt;li&gt;How do I handle Auth?&lt;/li&gt;
&lt;li&gt;How would users prefer to access the functions?&lt;/li&gt;
&lt;li&gt;What do I name it? (So far I'm thinking &lt;code&gt;Mrs. Robot&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;What stack should I use?
&lt;ul&gt;
&lt;li&gt;I'm going to go with Express/React for the sake of saving time. This is a good chance to improve my boilerplate express project.&lt;/li&gt;
&lt;li&gt;I do want to play with a new design framework though. Maybe foundation 6, I read that it was great earlier today.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;[Saturday, 10:42PM EST]&lt;/strong&gt; Will this work? Will it be useful? Who knows, let me go write it first.&lt;/p&gt;
&lt;h3&gt;Edit: Back&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;[Saturday, 10:55PM EST]&lt;/strong&gt; Alright, Here we go folks.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;..furious planning...&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[Two Weekends Later, 10:55PM EST]&lt;/strong&gt; Two Weeks later, I'm actually starting. Here's some fun pics of wireframes:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/weekend-app/img-20170812-175719-2e0ea9.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1200&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/weekend-app/img-20170812-175849-e872e1.jpg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;1200&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h3&gt;MVP!&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Alright, I've finally got somethiung usable ready to go, check it out: &lt;a href=&quot;https://lambda.wlan1.net/&quot;&gt;https://lambda.wlan1.net/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I did change the name from Mrs Robot to Lambda, despite the obvious. I was going for the vibe that Jenkins gives off, but I don't think it's going to work out, or at least not without some solid artwork (anyone want to do that?).&lt;/p&gt;
&lt;p&gt;Currently, lambdas are executed in fresh docker containers spawned by the API, soon I'll expand that to 'runners', which will handle scaling better. The code is volume mounted into the fresh container on each api call, executed, and the stdout (or more like the stderr if you're me) is returned. Execution time is roughly 3 seconds, which isn't bad considering what we've got going on here. I've managed to do a few neat things like install npm modules and use them in lambdas, which of course increased response delay by about 2 seconds or so. I encourage anyone reading this to try and break out of the container and &lt;a href=&quot;mailto:james@wlan1.net&quot;&gt;tell me about it!&lt;/a&gt;. Take a look at the screenshots below for a quick idea of what the app looks like.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/weekend-app/app-165f82.png&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;759&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/weekend-app/chrome-2017-08-13-18-04-09-56249b.png&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;292&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/weekend-app/screenshot-20170813-152707-5f2109.png&quot; alt=&quot;&quot; width=&quot;1080&quot; height=&quot;1920&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/weekend-app/chrome-2017-08-13-17-30-17-9c0ac0.png&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;759&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
</content:encoded></item>
<item><title>How to Reverse Proxy Outside Rancher / Manage Non-Rancher Services With Rancher</title><link>https://wlan1.net/dockerized-nginx-reverse-proxy-for-non-containerized-services/</link><guid>https://wlan1.net/dockerized-nginx-reverse-proxy-for-non-containerized-services/</guid><pubDate>Tue, 11 Jul 2017 12:00:00 GMT</pubDate><description>The problem with ARM, HAProxy, and me as a person.So if you haven't noticed, I really like Rancher. In fact, everything I run is configured in my Rancher instance (see below).</description><content:encoded>&lt;h3&gt;The problem with ARM, HAProxy, and me as a person.&lt;/h3&gt;
&lt;p&gt;So if you haven't noticed, I &lt;em&gt;really&lt;/em&gt; like &lt;a href=&quot;http://rancher.com/&quot;&gt;Rancher&lt;/a&gt;. In fact, everything I run is configured in my Rancher instance (see below). One of the speedbumps I hit over the weekend was configuring my garage and camera (both run on pi-zeros) to work with this setup, since docker and ARM are still just &lt;em&gt;&amp;quot;good friends&amp;quot;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Luckily, &lt;a href=&quot;https://blog.hypriot.com/&quot;&gt;Hypriot&lt;/a&gt; &lt;em&gt;(Docker Pirates ARMed with explosive stuff)&lt;/em&gt; has some amazing guides, tutorials, and even &lt;a href=&quot;https://blog.hypriot.com/downloads/&quot;&gt;entire operating systems&lt;/a&gt; up for grabs that turn ARM based machines into docker champions. This solves 95% of the &amp;quot;how do I get Rancher to manage this sh*t&amp;quot; issue, but the most critical part is still left unsolved: the &lt;a href=&quot;https://github.com/rancher/rancher/tree/master/agent&quot;&gt;rancher agent&lt;/a&gt;. This sucker is the key to making the magic happen, but as of this post it's implementation is &lt;a href=&quot;https://github.com/rancher/rancher/issues/4703&quot;&gt;far from being ready&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Alright, no sweat. I'll still build the services to run in docker containers, but I'll have to manually deploy with compose, swarm, etc. Oh shi-...&lt;/p&gt;
&lt;h3&gt;Literally all of my certs, dns, etc are managed with Rancher!&lt;/h3&gt;
&lt;p&gt;So I figured the best I can do for now is reverse-proxy my pi-stuff into an nginx container which takes care of recieving ssl-terminated requests and can be routed to, since (as far as I know) HAProxy won't do that without a bunch of custom configs which still don't give me healthchecks, visibility into the service, etc). If I wanted to manage things with a large config file I'd do it all in nginx on the host, or even worse... with a &lt;a href=&quot;https://httpd.apache.org/docs/2.4/vhosts/&quot;&gt;VirtualHosts&lt;/a&gt; setup via Apache HTTPD ;)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Here's a quick view of my local rancher instance's &lt;em&gt;Public&lt;/em&gt; environment. I'd prefer to keep service management at this screen.&lt;/strong&gt;&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/dockerized-nginx-reverse-proxy-for-non-containerized-services/rancher-1-3191c3.png&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;804&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h2&gt;Enter Nginx Reverse Proxy&lt;/h2&gt;
&lt;p&gt;There are probably a ton of these out there, but whatever - that's not how we learn new stuff now is it? (actually, usually it is)&lt;/p&gt;
&lt;p&gt;Check out the &lt;a href=&quot;https://hub.docker.com/r/james9074/nginx-reverse-proxy/&quot;&gt;Dockerhub&lt;/a&gt; image and the &lt;a href=&quot;https://github.com/James9074/nginx-reverse-proxy&quot;&gt;Github&lt;/a&gt; repo, or just deploy it like so. This will reverse-proxy &lt;code&gt;http://192.168.0.100:3000&lt;/code&gt; on the container's port &lt;code&gt;8080&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;version: '2'
services:
  nginx:
    image: james9074/nginx-reverse-proxy
    environment:
      NGINX_PORT: '8080'
      NGINX_HOST: http://192.168.0.100:3000
    stdin_open: true
    tty: true
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;The config considerations:&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Env &lt;code&gt;NGINX_PORT&lt;/code&gt; - The host listening port&lt;/li&gt;
&lt;li&gt;Env &lt;code&gt;NGINX_HOST&lt;/code&gt; - The target service you want to reverse-proxy to&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;In Summary:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;I want a website on my Pi to live in a container, which is orchestrated in my main Rancher instance&lt;/li&gt;
&lt;li&gt;There's no working ARM build of the rancher-agent, so I can't even connect a Pi host to Rancher&lt;/li&gt;
&lt;li&gt;Whatever, I'll use &lt;a href=&quot;https://blog.hypriot.com/&quot;&gt;Hypriot's&lt;/a&gt; debian-fork with Docker support to run the sites on the ARM-based Pis&lt;/li&gt;
&lt;li&gt;To keep SSL and DNS working well, I'll use my shiny new &lt;a href=&quot;https://hub.docker.com/r/james9074/nginx-reverse-proxy/&quot;&gt;Reverse Nginx Proxy&lt;/a&gt; service to make it appear as though everything went my way&lt;/li&gt;
&lt;/ul&gt;
</content:encoded></item>
<item><title>Etcher.io - Hands Down The Best Bootable USB Creator Forever</title><link>https://wlan1.net/etcher-io/</link><guid>https://wlan1.net/etcher-io/</guid><pubDate>Wed, 05 Jul 2017 12:00:00 GMT</pubDate><description>https://etcher.io/ Oh wow. Just look at this: This is the future, this is the thing that saves us from ourselves.</description><content:encoded>&lt;p&gt;&lt;a href=&quot;https://etcher.io/&quot;&gt;https://etcher.io/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Oh wow. Just look at this:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/etcher-io/screenshot-1x-3f53f3.gif&quot; alt=&quot;&quot; width=&quot;800&quot; height=&quot;382&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;This is the future, this is the thing that saves us from ourselves.  I'm so sick of the tiresome process of creating bootable drives, and finally it's been solved with &lt;a href=&quot;https://etcher.io/&quot;&gt;Etcher&lt;/a&gt;.  There isn't much more to say other than:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It works flawless on Windows, MacOS, and Linux&lt;/li&gt;
&lt;li&gt;It's easy as hell&lt;/li&gt;
&lt;li&gt;It's very pretty&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That's all I have for this post.&lt;/p&gt;
</content:encoded></item>
<item><title>NextCloud Deployment</title><link>https://wlan1.net/nextcloud-deployment/</link><guid>https://wlan1.net/nextcloud-deployment/</guid><pubDate>Thu, 29 Jun 2017 12:00:00 GMT</pubDate><description>NextCloud is seriously my favorite FOSS pick of the year. The team that's been working on it (450+ contributors!) are super solid.</description><content:encoded>&lt;p&gt;&lt;a href=&quot;https://nextcloud.com/&quot;&gt;NextCloud&lt;/a&gt; is seriously my favorite FOSS pick of the year. The team that's been &lt;a href=&quot;https://github.com/nextcloud/server&quot;&gt;working on it&lt;/a&gt; (450+ contributors!) are super solid. Here's a quick look at the app (with a Panic Vault theme):&lt;/p&gt;
&lt;h2&gt;Why NextCloud Over OwnCloud?&lt;/h2&gt;
&lt;p&gt;I'll come back to this one later, but the big difference here is that NextCloud &lt;em&gt;is&lt;/em&gt; a true fork of OwnCloud, and is set on the idea that all features should be totally opensource and free. My fear is that OwnCloud will one day lock away the important features (see: security) behind a paywall.&lt;/p&gt;
&lt;h2&gt;Screenshots&lt;/h2&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nextcloud-deployment/files-1-e9c34b.png&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;576&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/nextcloud-deployment/files2-866c4d.png&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;577&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h2&gt;And of course our paste-ready &lt;code&gt;docker-compose.yml&lt;/code&gt;:&lt;/h2&gt;
&lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;version: '2'
services:
  nextcloud:
    image: wonderfall/nextcloud
    environment:
      APC_SHM_SIZE: 128M
      CRON_PERIOD: 15m
      DB_HOST: nextcloud-db
      DB_NAME: nextcloud
      DB_PASSWORD: SOME-PW
      DB_TYPE: mysql
      DB_USER: nextcloud
      DOMAIN: test.com
      GID: '1000'
      OPCACHE_MEM_SIZE: '128'
      TZ: America/New_York
      UID: '1000'
      UPLOAD_MAX_SIZE: 10G
    volumes:
    - /data/nextcloud/data:/data
    - /data/nextcloud/config:/config
    - /data/nextcloud/apps:/apps2
    - /data/nextcloud/themes:/nextcloud/themes
    links:
    - nextcloud-db:nextcloud-db
    - redis:redis
    labels:
      io.rancher.scheduler.affinity:host_label: home=true
  nextcloud-db:
    image: mariadb:10
    environment:
      MYSQL_DATABASE: nextcloud
      MYSQL_PASSWORD: SOME-PW
      MYSQL_ROOT_PASSWORD: SOME-PW
      MYSQL_USER: nextcloud
    volumes:
    - /data/nextcloud/db:/var/lib/mysql
    labels:
      io.rancher.scheduler.affinity:host_label: home=true
  redis:
    image: redis:alpine
    volumes:
    - /data/nextcloud/redis:/data
    labels:
      io.rancher.scheduler.affinity:host_label: home=true
&lt;/code&gt;&lt;/pre&gt;
</content:encoded></item>
<item><title>Polr: Deploying Your Own Open Source URL Shortener</title><link>https://wlan1.net/polr-simple-url-shortner/</link><guid>https://wlan1.net/polr-simple-url-shortner/</guid><pubDate>Sat, 10 Jun 2017 12:00:00 GMT</pubDate><description>Here's a quick guide for deploying your own opensource URL Shortener service (Polr) via docker.</description><content:encoded>&lt;p&gt;Here's a quick guide for deploying your own opensource URL Shortener service (&lt;a href=&quot;https://polrproject.org/&quot;&gt;Polr&lt;/a&gt;) via docker. The UI is bare bones but it gets the job done better than any other shortener project I've seen. I've got the docker-compose at the bottom of this page.&lt;/p&gt;
&lt;p&gt;Note that I'm using Rancher to deploy, with a Load Balancer (HAProxy) directing traffic into the &lt;code&gt;Polr&lt;/code&gt; container.&lt;/p&gt;
&lt;p&gt;Check out the &lt;a href=&quot;https://hub.docker.com/r/james9074/polr/&quot;&gt;Dockerhub&lt;/a&gt; image for more info, or just keep reading. Also, here's a screenshot of the app as I use it today:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/polr-simple-url-shortner/polr-1-6ebfc8.png&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;467&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;hr /&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/polr-simple-url-shortner/polrlogo-31aaa1.png&quot; alt=&quot;&quot; width=&quot;428&quot; height=&quot;129&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;A modern, minimalist, and lightweight URL shortener.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://docs.polrproject.org/en/latest/user-guide/installation/&quot;&gt;Getting Started&lt;/a&gt; - &lt;a href=&quot;http://docs.polrproject.org/en/latest/developer-guide/api/&quot;&gt;API Documentation&lt;/a&gt; - &lt;a href=&quot;https://github.com/cydrobolt/polr/blob/master/.github/CONTRIBUTING.md&quot;&gt;Contributing&lt;/a&gt; - &lt;a href=&quot;https://github.com/cydrobolt/polr/issues&quot;&gt;Bugs&lt;/a&gt; - &lt;a href=&quot;http://webchat.freenode.net/?channels=#polr&quot;&gt;IRC&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Polr is an intrepid, self-hostable open-source link shortening web application with a robust API. It allows you to host your own URL shortener, to brand your URLs, and to gain control over your data. Polr is especially easy to use, and provides a modern, themable feel.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Notice:&lt;/strong&gt; The containerization effort for Polr is in active development &lt;a href=&quot;https://github.com/cydrobolt/polr/pull/339&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This image is built from a fork of &lt;a href=&quot;https://github.com/cydrobolt/polr&quot;&gt;Polr&lt;/a&gt; very kindly provided by &lt;a href=&quot;https://github.com/programster/polr/tree/docker&quot;&gt;@programster&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Quick Start&lt;/h2&gt;
&lt;p&gt;You can launch Polr with the provided &lt;code&gt;docker-compose&lt;/code&gt; file, or by running the container by itself and using your own mysql server. Either way, once you start this container up and visit it's in your browser, you'll be presented with the following (I've changed the values to reflect this my template values):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(screenshot lost)&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;With docker-compose&lt;/h3&gt;
&lt;p&gt;Polr isn't configured to use env variables or secrets just yet. &lt;em&gt;I should really jump on that...&lt;/em&gt; Instead, the best we can do is spin up a MySQL instance next to Polr and manually configure it.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;version: '2'
services:
  polr:
    image: james9074/polr:latest
    volumes:
    - /data/polr/web:/data
    links:
    - db:db
    ports:
    - 80:80/tcp
  db:
    image: mysql
    environment:
      MYSQL_DATABASE: polr
      MYSQL_PASSWORD: polr-password
      MYSQL_ROOT_PASSWORD: super-secure-pw
      MYSQL_USER: polr
    volumes:
    - /data/polr/db:/var/lib/mysql
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Without docker-compose&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: Polr itself just needs a MySQL instance running &lt;em&gt;somewhere&lt;/em&gt; to work. The &lt;code&gt;docker-compose&lt;/code&gt; file above installs myself along side Polr, but if you don't use that, you'll need to have a mysql instance running &lt;em&gt;somewhere&lt;/em&gt; with the database pre-created.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#!/bin/bash
# Remove any existing polr container
docker kill polr-container
docker rm polr-container

# Deploy the polr container on port 80, mounted to a host volume at /data/polr
docker run -d \
-p 80:80 \
--name polr-container \
--volume /data/polr:/data \
james9074/polr:latest
&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;
&lt;h3&gt;FAQ&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;I get an error message directly after submitting the config info on the setup page, and the site is broken&lt;/strong&gt;&lt;br /&gt;
This is 90% likely an issue with your mysql user/pw. The official mysql image doesn't allow root to connect externally, so make sure you're configuring Polr to use your &lt;code&gt;MYSQL_USER&lt;/code&gt; and&lt;code&gt;MYSQL_PASSWORD&lt;/code&gt;. If it fails the connection, Polr won't gracefully tell you to correct your settings, yet. You'll need to wipe the Polr volume and start over, for now.&lt;/p&gt;
</content:encoded></item>
<item><title>A Summary of Vendor Calls</title><link>https://wlan1.net/vendor-calls/</link><guid>https://wlan1.net/vendor-calls/</guid><pubDate>Wed, 17 May 2017 12:00:00 GMT</pubDate><description>This is my default response to the &quot;So how do you feel about your current X or Y solution: Little do they know, their product will receive the same response when we're ready to…</description><content:encoded>&lt;p&gt;This is my default response to the &lt;em&gt;&amp;quot;So how do you feel about your current X or Y solution&lt;/em&gt;:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://wlan1.net/vendor-calls/bird-afae72.jpg&quot; alt=&quot;&quot; width=&quot;496&quot; height=&quot;651&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Little do they know, their product will receive the same response when we're ready to replace &lt;em&gt;it&lt;/em&gt;.&lt;/p&gt;
</content:encoded></item>
</channel></rss>
