<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Robert Stone on Medium]]></title>
        <description><![CDATA[Stories by Robert Stone on Medium]]></description>
        <link>https://medium.com/@rjstoneus?source=rss-5cbcd4f5a107------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5eHCEGWmtcEl_tmFRps-UA.jpeg</url>
            <title>Stories by Robert Stone on Medium</title>
            <link>https://medium.com/@rjstoneus?source=rss-5cbcd4f5a107------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:16:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rjstoneus/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A GitHub Action for Discord Notifications]]></title>
            <link>https://medium.com/radix-cc/a-github-action-for-discord-notifications-100743c314bf?source=rss-5cbcd4f5a107------2</link>
            <guid isPermaLink="false">https://medium.com/p/100743c314bf</guid>
            <category><![CDATA[discord]]></category>
            <category><![CDATA[other]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[discordapp]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Robert Stone]]></dc:creator>
            <pubDate>Sun, 01 Dec 2019 20:35:59 GMT</pubDate>
            <atom:updated>2019-12-01T20:51:09.633Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I set up GitHub Workflows for CI purposes and I wanted <a href="https://discordapp.com/">Discord</a> notifications. People had already created actions for Discord notifications, but they are all based on Docker containers which only work in Linux build environments.</p><p>Well, my build was running in Windows so they wouldn’t work. JavaScript-based actions, on the other hand, run in not only Linux but also Windows and MacOS VMs, so I put together <a href="https://github.com/marketplace/actions/discord-webhook-notify"><strong>Discord Webhook Notify</strong></a> to solve this issue.</p><p>The documentation is pretty explicit with detailed examples, so I’ll just show you what you get with one example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2359f4193bbb213c41562cb4d8fa856e/href">https://medium.com/media/2359f4193bbb213c41562cb4d8fa856e/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/0*ktihjXXu7bvvRyGx.jpg" /><figcaption>Example Notification</figcaption></figure><p>Other than webhookUrl nothing is required, everything is optional and has decent defaults.</p><p>The action does no checking as to build or other event status, and makes no assumptions, so you can use it for anything and you can use the if: clause in your action to make it execute on success() or failure() or whatever other elaborate expression you want to use.</p><p>If you have any suggested improvements <a href="https://github.com/rjstone/discord-webhook-notify">please send me a pull request</a> and I will include them as long as they’re reasonably clean and sane.</p><p>One thing I considered adding is different default notifications for different event types but so far there doesn’t seem to be much interest in this action (no stars yet) so I haven’t felt the need to go out of the way to do anything new and different, but hopefully this will solve the lack of Discord notification functionality for those who are not using Linux for their build environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=100743c314bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/radix-cc/a-github-action-for-discord-notifications-100743c314bf">A GitHub Action for Discord Notifications</a> was originally published in <a href="https://medium.com/radix-cc">radix.cc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code Your Own Site (Tutorial)]]></title>
            <link>https://medium.com/radix-cc/code-your-own-site-tutorial-2a40fe4ce57a?source=rss-5cbcd4f5a107------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a40fe4ce57a</guid>
            <category><![CDATA[k12]]></category>
            <category><![CDATA[back-end-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Robert Stone]]></dc:creator>
            <pubDate>Sat, 09 Nov 2019 19:23:46 GMT</pubDate>
            <atom:updated>2019-11-09T19:23:46.128Z</atom:updated>
            <content:encoded><![CDATA[<p>I created this <a href="http://radix.cc/codeyourown-site/">Code Your Own Site</a> tutorial a while back for the students on <a href="https://www.khanacademy.org/profile/KnowMoreStuff/">Khan Academy</a> who kept asking how they could create their own web site. (I used to answer questions for studentsthere a few years ago.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wT_TaLzBfPQzZRPHalalEA.png" /><figcaption>Screenshot. Yea it’s not fancy but at least it looks clean.</figcaption></figure><p>I recently reworked it to use <a href="https://jekyllrb.com/">Jekyll</a> so it’s no longer one big page, hopefully making it easier to use.</p><p>I just thought I’d mention it here just in case it’s helpful to someone else. There’s actually more information there than just what middle and high school students want to know, and I’m thinking of adding a back-end tutorial at some point.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a40fe4ce57a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/radix-cc/code-your-own-site-tutorial-2a40fe4ce57a">Code Your Own Site (Tutorial)</a> was originally published in <a href="https://medium.com/radix-cc">radix.cc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Here is something about mass media and the press that everyone needs to see.]]></title>
            <link>https://medium.com/@rjstoneus/here-is-something-about-mass-media-and-the-press-that-everyone-needs-to-see-a70ad99125f6?source=rss-5cbcd4f5a107------2</link>
            <guid isPermaLink="false">https://medium.com/p/a70ad99125f6</guid>
            <category><![CDATA[press]]></category>
            <category><![CDATA[press-freedom]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[media-criticism]]></category>
            <dc:creator><![CDATA[Robert Stone]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 10:59:48 GMT</pubDate>
            <atom:updated>2018-02-14T11:00:28.478Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*blBZ8xJGdrTxL8aCKfelDg@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a70ad99125f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IPv6 6in4 Tunnel Configuration on DD-WRT]]></title>
            <link>https://medium.com/radix-cc/ipv6-6in4-tunnel-configuration-on-dd-wrt-4972f8f6181c?source=rss-5cbcd4f5a107------2</link>
            <guid isPermaLink="false">https://medium.com/p/4972f8f6181c</guid>
            <category><![CDATA[openwrt]]></category>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[ipv6]]></category>
            <dc:creator><![CDATA[Robert Stone]]></dc:creator>
            <pubDate>Sun, 16 Oct 2016 04:25:51 GMT</pubDate>
            <atom:updated>2016-10-17T15:52:28.385Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I decided to get IPv6 working on my home network. (Note: Updated)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*7i0PgJrie74jpJl7x6-MqA.png" /><figcaption>IPv6 Logo</figcaption></figure><p>Only problem is my router isn’t exactly the newest model. It’s an old <a href="http://www.dd-wrt.com/wiki/index.php/Linksys_WRT150N_%26_WRT160N">Linksys WRT160N v3 </a>with a rather poor 4MB of flash RAM. This isn’t even enough to run the standard sized <a href="http://www.dd-wrt.com/">DD-WRT</a> firmware. Would I be able to do it?</p><p>Well, as it turns out, the <em>DD-WRT v24-sp2 std-nokaid-small build 21061</em> image just barely manages to pack some extra stuff into 4MB including IPv6 support.</p><p>Here’s how I got everything working in case you have DD-WRT and want to join the world of IPv6.</p><p>(Note that newer versions of DD-WRT have a better configuration UI for IPv6 so this specific method of configuration using custom scripts may not be necessary if you’re not running an older version of DD-WRT.)</p><h3>IPv6 Service</h3><p>The first thing you have to do is obtain IPv6 service somehow. Few ISPs, at least in the US, support IPv6 directly on consumer provisioned links at this time. I guess they still haven’t quite run out of IPv4 address space yet and are holding off until it’s absolutely necessary to support v6.</p><p>The other reason for lack of support at the ISP level is that some vendors such as Microsoft have added <a href="https://technet.microsoft.com/en-us/library/bb457011.aspx">automatic Teredo IPv6 tunneling support</a> to their operating systems so that applications can easily set up IPv6 tunnels if needed.</p><p>So, while most people either do without IPv6 or rely on OS vendor workarounds, some including myself feel the need to obtain 6in4 tunnel service from somewhere so that IPv6 can be supported for an entire subnet. I decided to use the <a href="http://he.net/">Hurricane Electric Internet Services </a><a href="https://www.tunnelbroker.net/">IPv6 Tunnelbroker service</a>, which is free.</p><p>But wait…. My router connects to a DSL NAS using PPPoE and gets a wildly different public IPv4 address every single time it does so. Therefore the IPv6 tunnel endpoint on my side will change any time the router is rebooted or the DSL connection goes down for some reason (such as a power failure). I don’t want to have to be reconfiguring my tunnel all the time, and I want it to just keep working no matter what happens with the public IP address.</p><h3>Dynamic DNS</h3><p>The solution to this problem is to use a dynamic DNS updater which DD-WRT has good support for. Dynamic DNS is useful for more than just updating DNS records. It’s actually good for updating just about anything that needs to stay up to date on changing node/interface IP addresses. Fortunately, HE’s Tunnelbroker supports Dynamic DNS updates for tunnel endpoint configuration.</p><h4>DNS-o-Matic</h4><p>The only problem is that you might need to keep more than one service updated with your public IP address. This is where a service called <a href="https://www.dnsomatic.com/">DNS-o-Matic </a>comes in handy. Even if you only need to update one service now, this may change in the future, so I recommend doing dynamic DNS updates through DNS-o-Matic for anything that doesn’t have unusually sensitive security requirements.</p><h4>Tunnelbroker and DNS-o-Matic Setup</h4><p>Before doing anything else, configure DDNS on your router as linked above, and configure it to update DNS-o-Matic. After that, create a Tunnelbroker account and add Tunnelbroker as a DNS-o-Matic service to update. The approximate steps are:</p><ol><li>Create <a href="https://www.dnsomatic.com/">DNS-o-Matic</a> account.</li><li>Create <a href="https://www.tunnelbroker.net/">Tunnelbroker</a> account.</li><li>Create a new tunnel using <strong>Create Regular Tunnel</strong> under <strong>User Functions</strong> on Tunnelbroker. For now just enter the suggested IP address for the tunnel endpoint (it will get dynamically updated later) and most importantly pick a <strong>Tunnel Server </strong>as close to you as possible. You may actually want to use ping and traceroute (tracert in Windows) to see which tunnel server is closest in terms of hops and latency because this is not always exactly proportional to physical geographic distance.</li><li>On Tunnelbroker: Note the numeric <strong>Tunnel ID </strong>under <strong>Tunnel Details</strong>. Click the <strong>Advanced</strong> tab to get your <strong>Update Key</strong>.</li><li>On DNS-o-Matic: add the Tunnelbroker service. Enter your Tunnelbroker username, the <strong>Update Key</strong> (not your password!), and use the numeric <strong>Tunnel ID</strong> for <strong>Host/Identifier</strong>.</li><li><a href="http://www.dd-wrt.com/wiki/index.php/Dynamic_DNS#DNS-O-Matic">Configure DNS-o-Matic in DD-WRT</a> on your router.</li></ol><p>DNS-o-Matic configuration is only slightly more complicated than other DDNS services, and it really isn’t too difficult given the instructions. What is difficult is trying to get DD-WRT to update multiple DDNS services without DNS-o-Matic. So with that done, you can now keep Tunnelbroker and other services easily updated all in one place.</p><p>Reboot your router and otherwise make sure that DDNS updates are working before continuing. Make sure that the DDNS update is also making it from DNS-o-Matic to Tunnelbroker. You should see the IP address update on both DNS-o-Matic and under Tunnel Details as “Client IPv4 Address”.</p><h3>Configuring DD-WRT for 6in4 Tunneling</h3><p>While DD-WRT supports IPv6, the web-based administrative GUI doesn’t have much user friendly support for IPv6 configuration. About all it lets you do is turn it on, and specify a configuration file for <em>radvd </em>(which is sort of like, but not exactly like, a <em>dhcpd </em>for IPv6.)</p><p>Before getting started on this, make sure you have the tunnel configuration details handy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*GeA6QWhdwPKhUa8zfzAtIA.png" /><figcaption>Tunnelbroker Tunnel Details</figcaption></figure><h4>Enabling IPv6 and Configuring <em>radvd</em></h4><p>This is pretty simple. On your DD-WRT router go to the <strong>Administration&gt;Management</strong> tab and scroll down to the <strong>IPv6 Support</strong> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*FhIMMt6oQI6HTQvMXy_43A.png" /></figure><p>Paste this into the configuration textbox.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/17e043993f7d6990f6faf357bf4a8b19/href">https://medium.com/media/17e043993f7d6990f6faf357bf4a8b19/href</a></iframe><p>Replace the &lt;Insert Routed /64 Here&gt; with the IPv6 prefix labeled “Routed /64” shown in your Tunnelbroker tunnel details.</p><p>While others may suggest a more elaborate configuration, the defaults seem to work pretty well. Other suggestions can be found on the <a href="http://www.dd-wrt.com/wiki/index.php/IPV6#6to4_Setup">DD-WRT Wiki</a>. Whatever you do just make sure to use a <a href="https://en.wikipedia.org/wiki/6in4"><strong>6in4</strong></a><strong> </strong>and <strong>not</strong> a <a href="https://en.wikipedia.org/wiki/6to4">6to4</a> configuration! These are two different protocols.</p><p>Hit the <strong>Apply Settings </strong>button and that’s all there is to configuring <em>radvd</em>. If you want to confirm that announcements are being transmitted you can login to your router via ssh or telnet and run the radvdump command.</p><h3>Configuring the Tunnel</h3><p>For tunnel configuration there is no GUI at all except for the script editor in the <strong>Administration&gt;Commands</strong> tab. Here is where things start to get a little more interesting, and less obvious, because you’re going to need a custom update script and a startup shell script to set up the tunnel.</p><p>For better routers that actually have enough flash for a persistent filesystem there are other ways to do this, but I’m going to describe another method that will save the script in the router’s nvram (a simple key-value store).</p><p>Paste the following script into the <strong>Commands</strong> textbox.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5b123dfbb27d6e8c52f21982a379da64/href">https://medium.com/media/5b123dfbb27d6e8c52f21982a379da64/href</a></iframe><p>Before saving it, made some edits to those configuration variables depending on your setup:</p><ul><li><strong>TUNNEL_SERVER</strong>: This will be different depending on which location you picked when you created your tunnel on Tunnelbroker. But in any case it will be listed in your Tunnel Details as “Server IPv4 Address”.</li><li><strong>MY_TUNNEL_ADDR</strong>: Set this to the value given for “Client IPv6 Address” on your Tunnel Details page, but leave off the /64 part.</li><li><strong>MY_ROUTED_ADDR</strong>: Set this to the value of “Routed /64” but leave off the /64 as with the previous one.</li><li><strong>TUNNELIF</strong>: You can set this to almost anything you want, but if you’re using HE’s Tunnelbroker then the name included above is reasonable.</li><li><strong>WANIF</strong>: You shouldn’t really need to set this manually because the get_wanface command should figure it out, but if it fails or doesn’t exist in your version of DD-WRT then you may need to. Usually the WAN interface will be <strong>vlan2 </strong>if you are not using PPPoE. If you are using PPPoE then it should be <strong>ppp0</strong>. If you’re not sure which interface it is, run the ifconfig command on your router and look for the interface with the WAN (external) ip address. This address is shown under the <strong>Status&gt;WAN </strong>tab.</li></ul><p>Now, save this as your <strong>Custom Script </strong>(not Startup Script!) by clicking <strong>Save Custom Script</strong>.</p><p>Once you have that saved, copy and paste the following into the now empty Commands textbox:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/532b0b6a5c6d592e28dbb755763e9baa/href">https://medium.com/media/532b0b6a5c6d592e28dbb755763e9baa/href</a></iframe><p>Save that as your Startup Script by clicking <strong>Save Startup</strong>.</p><p>The reason that we’re doing things this way is that the custom script needs to be run every time the WAN IP address changes and this can happen at times other than startup. Specifically, the custom script needs to run any time the dynamic DNS daemon detects that the WAN IP address has changed. So we save the main script as the “custom script” then create a link to it in/tmp/etc/config/ipv6-tunnel.wanup (anything ending in .wanup in that directory will get run when the WAN interface comes up which is also what happens when the IP address changes). See <a href="http://www.dd-wrt.com/wiki/index.php/Script_Execution">Script Execution</a> on the DD-WRT Wiki for more information on executing scripts based on other events.</p><h3>Testing</h3><p>Now, reboot your router so the startup script will run. This should cause the custom script to run when the WAN interface comes up because of the symbolic link it creates.</p><p>Go to a page with a reboot button such as <strong>Administration&gt;Management</strong> and click the reboot button to reboot the router.</p><h4>Testing On The Router</h4><p>Make sure you have either ssh or telnet enabled in the configuration, then connect to the router using one of those methods to get a shell. Really you could do this testing from <strong>Administration&gt;Commands</strong> but using the shell from a terminal is much more responsive.</p><p>First you may want to check the log using cat /tmp/custom.log to see if there are any errors. If not you should just see some messages showing that the script ran. If you want more verbose output in the log, add -x to the first line of the custom script.</p><p>If the log is there and looks good, try pinging Hurricane Electric’s IPv6 nameserver using ping 2001:470:20::2 like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*Jn_CNaLEIt1jzl23XYEC3Q.png" /><figcaption>Using ping to test IPv6 connectivity on the router.</figcaption></figure><p>If that looks good then try it from another computer on your network that supports IPv6. Here’s an example from a Windows 10 machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*aWj1XG7e1KeWsbLCKyay2Q.png" /><figcaption>Using ping in Windows to test IPv6 connectivity</figcaption></figure><h4>Other Tests</h4><p>Go to <a href="http://test-ipv6.com/">test-ipv6.com</a> and run the tests there to see if you have any problems. This should conclusively tell you if everything is working.</p><h4>Test WAN Connection Failure and Re-Establishment</h4><p>Go yank the power on your modem or otherwise simulate a situation where the link to your ISP goes down for long enough that the link is reset and it gets a new IP address. Confirm that the link is down, plug it back in, and once you see that the link is back up in the DD-WRT GUI, check the custom.log again and try pinging the same addresses. Everything should work.</p><h3>Troubleshooting</h3><p>Hopefully everything is working even in the above conditions, but if not here are some tips on how to figure out what’s wrong.</p><h4>On the Router</h4><p>If you can’t ping the HE nameserver from the router itself. Run ifconfig on the router to make sure that your he-ipv6 (tunnel) interface exists and has a <strong>Global IPv6 </strong>address assigned to it. Also make sure the correct interface was detected as your WAN interface. (You can double check that your WAN interface is what you think it is by looking for the interface with your external IP address on it. Use the <strong>Status&gt;WAN</strong> tab in DD-WRT or confirm using something like <a href="http://test-ipv6.com/">test-ipv6.com</a> which will confirm your IPv4 address even if you don’t have IPv6 working yet. Running the command nvram get wan_ipaddr should also show your WAN IP address.)</p><p>If that looks OK then try pinging the global IPv6 address assigned to your tunnel interface, and try pinging the other side of the tunnel which is the “Server IPv6 Address” listed in Tunnel Details.</p><p>If you can ping the tunnel’s IPv6 address on the router side (client) but not the server then it’s possible that the DDNS update failed. Check the /tmp/ddns/ddns.log file for errors. Also check <a href="https://www.dnsomatic.com/">DNS-o-Matic </a>and the <a href="https://www.tunnelbroker.net/">Tunnelbroker Tunnel Details</a> page to see if they both have your WAN IPv4 address. You may have made a typo in the DNS-o-Matic configuration for Tunnelbroker.</p><p>Also run ip -6 route show on the router and make sure the routing table contains a default route that points to your tunnel interface.</p><p>You can also force the custom.sh script to run manually like this:</p><p>cd /tmp ; rm custom.last_wanip ; ./custom.sh ; cat custom.log</p><h4>On a Host</h4><p>The first thing you want to do is make sure the host that you’re using supports IPv6. Almost every OS that’s the least bit modern does, and has for years.</p><p>In Windows, launch a cmd.exe or powershell.exe console window and type ipconfig to see what the interface configuration looks like.</p><p>Note that Windows 10 (and some older versions) will actually set up its own <a href="https://en.wikipedia.org/wiki/Teredo_tunneling">IPv6 Teredo tunnel</a> if software installers ask for it. This could be caused by almost anything because even computer games may want IPv6 connectivity as a way of getting around NAT. If you have this issue, check out <a href="https://lonesysadmin.net/2011/04/25/how-to-disable-teredo-ipv6-tunneling-in-microsoft-windows/">How to Disable Teredo IPv6 Tunneling in Microsoft Windows</a>.</p><p>The first thing to check is that you have a global (not link local) IPv6 address assigned to whichever interface you are using to connect to your subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*tKlgqa4HfP3gjm9aKj0Ylw.png" /></figure><p>Anything starting with fe8 is a link local address, so you want to see addresses in the prefix that you got from your tunnel provider.</p><p>Try pinging the default gateway address using ping. I have noticed that if I reboot my router then Windows doesn’t always reset the IPv6 state on the interface properly. Disabling Wi-Fi and re-enabling it seems to fix this problem. After I do that I’m able to ping the default router.</p><p>Also in Windows try running route -6 print to confirm that you have a default route (with the prefix ::/0) pointing to the default gateway.</p><p>If none of this is working, go back to the router and run radvdump to see if updates are being generated. If not then run the ps command and make sure that radvd processes are running. If those aren’t running the check your radvd configuration in the web UI to look for typos. You can also examine the configuration using cat /tmp/radvd.conf but if you change it then change it in the web UI so that changes get saved to nvram.</p><h3>Conclusion</h3><p>Hopefully you found this useful. Here are some other resources that might prove helpful if you want to learn more or are working with different software.</p><ul><li><a href="https://en.wikipedia.org/wiki/IPv6">IPv6 Wikipedia Page</a></li><li><a href="https://en.wikipedia.org/wiki/Comparison_of_IPv6_support_in_operating_systems">Comparison of IPv6 Support in Operating Systems</a></li><li><a href="https://en.wikipedia.org/wiki/IPv6_address">IPv6 Addresses</a></li><li><a href="http://www.dd-wrt.com/wiki/index.php/IPV6">IPv6 in DD-WRT</a></li><li><a href="http://www.cisco.com/c/en/us/products/collateral/ios-nx-os-software/enterprise-ipv6-solution/white_paper_c11-678658.html">IPv6 Security Brief</a></li><li><a href="http://test-ipv6.com/">test-ipv6.com</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4972f8f6181c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/radix-cc/ipv6-6in4-tunnel-configuration-on-dd-wrt-4972f8f6181c">IPv6 6in4 Tunnel Configuration on DD-WRT</a> was originally published in <a href="https://medium.com/radix-cc">radix.cc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database Schema Design Tutorials]]></title>
            <link>https://medium.com/radix-cc/database-schema-design-tutorials-a1fa8128769d?source=rss-5cbcd4f5a107------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1fa8128769d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[back-end-development]]></category>
            <dc:creator><![CDATA[Robert Stone]]></dc:creator>
            <pubDate>Wed, 21 Sep 2016 03:27:29 GMT</pubDate>
            <atom:updated>2016-10-16T07:49:04.458Z</atom:updated>
            <content:encoded><![CDATA[<p>Don’t neglect database design.</p><p>I’ve noticed lately that plenty of sites like <a href="http://www.sololearn.com/Course/SQL/">SoloLearn</a> and <a href="https://www.khanacademy.org/computing/computer-programming/sql">Khan Academy</a> teach you SQL. That’s great for using a database, but you actually need to know more than SQL to design a database just like you need know more than JavaScript to design an application. And the SQL tutorials usually don’t teach you that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*mISmz8RnsVwFHP9clKF8Ew.png" /></figure><p>So lets say you know SQL including CREATE TABLE, SELECT, INSERT, UPDATE, and DELETE. You know about how tables work, how they reference other tables, and how joins work. You know how to create tables, specify data types, and maybe even primary and foreign keys. You might even know what an index is and why you need them.</p><p>So what do you do with all these building blocks? How do you avoid creating a horrible database that jumbles everything into one huge table, jumbles too much stuff into one (or too few) columns in a table, or results in lots of duplicated information?</p><p>Use a bad design and it may be a performance nightmare, a coding nightmare, and a nightmare to clean it up.</p><p>Start out well and learn some database design theory!</p><h4>Get an SQL Sandbox</h4><p>First <strong>use </strong><a href="http://sqlfiddle.com/"><strong>SQLFiddle</strong></a><strong> </strong>in case you have questions about something and need a sandbox to share with others. Login with Google. Use <strong>My Fiddles </strong>under User Options to get links to specific things you need to share.</p><h4>Download MySQL Community Server</h4><p><a href="http://www.mysql.com/products/community/">Install MySQL Community Server</a> on your local computer, whatever that is. The reason I’d recommend this is because of its <strong>MySQL Workbench </strong>client and its model editing tools. This makes it easier to experiment with designing schemas visually. Even though you might actually find it faster to just type out CREATE TABLE statements, the visual aspect can be helpful.</p><blockquote>For security reasons you may want to set up the MySQL connection using a named pipe and/or shared memory with an easy to remember name like “MYSQL”. That ensures that it isn’t listening on a network port and can’t be tampered with over the network. Just disable listening on the TCP port. You can enable that later if you need by rerunning the installer.</blockquote><p>Read <a href="http://dev.mysql.com/doc/workbench/en/wb-getting-started-tutorial-creating-a-model.html">this tutorial</a> or maybe <a href="http://code.tutsplus.com/articles/visual-database-creation-with-mysql-workbench--net-10975">this tutorial</a> on how to use the model editor and “Forward engineer…” (export) it to the database. It really isn’t obvious how to do this, but once you see where they’ve buried the options things will get less awkward.</p><h4>Get MySQL Reference Docs</h4><p><a href="https://zealdocs.org/">Zeal </a>and <a href="https://kapeli.com/dash">Dash</a> have MySQL docs. <a href="http://devdocs.io/">devdocs.io</a> doesn’t due to some sort of licensing issue. Using one of these will probably be easier than stuff like the Windows help file docs or browsing the docs over the net.</p><h4>Learn The Actual Database Stuff</h4><p>Now that you have a real database server to mess with, as opposed to sql.js or something, it’s time to learn about database schema design. Here are some suggestions based on different levels of time involvement and interest starting with the least involved.</p><ul><li><a href="http://www.codeproject.com/Articles/359654/important-database-designing-rules-which-I-fo">11 Important Database Design Rules</a> — Read this or something similar even if you read nothing else. This is a quick checklist on how to not be totally stupid.</li><li><a href="http://en.tekstenuitleg.net/articles/software/database-design-tutorial/">Database Design Tutorial</a> — This covers the important theoy in much more detail, but isn’t horribly long. You really want to at least read this.</li><li><a href="https://www.udemy.com/learn-database-design-with-mysql/">Learn Database Design with MySQL</a> (videos) — Section 4 on design is about 30 minutes of video. Not to mention that the lessons cover other stuff, some of which you may want to skip, but maybe not all of it. I’m not sure how they’re offering a 30 day money back guarantee on “free”, but I’m sure nobody will lose their money.</li><li><a href="https://lagunita.stanford.edu/courses/DB/2014/SelfPaced/about">Databases Self-Paced Mini Courses</a>] at Stanford — If you really want to spend more time, you can learn even more detail in these lecture videos which are free and on-demand. They also cover stuff like XML, XPath, and XSLT but you can skip that part or skip any part you want.</li></ul><p>Some Wikipedia articles on different things:</p><ul><li><a href="https://en.wikipedia.org/wiki/Database_normalization">Database Normalization</a></li><li><a href="https://en.wikipedia.org/wiki/Query_optimization">Query optimization</a></li><li><a href="https://en.wikipedia.org/wiki/ACID">ACID</a> (Atomicity, Consistency, Isolation, Durability)</li><li><a href="https://en.wikipedia.org/wiki/Relational_model">Relational Model</a></li><li><a href="https://en.wikipedia.org/wiki/Relational_algebra">Relational Algebra</a></li></ul><p>If you’re not planning to be a database professor then you don’t really need to know every single thing in extreme detail, but the more you know the more problems you can avoid.</p><h4>Conclusion</h4><p>I was never a huge database person (always seemed a bit boring to me, though it can get interesting for those who really get into it) and thus was never a major expert on databases. But it’s something that coders need to be at least somewhat more familiar with than they often are.</p><p>The main thing is, try to learn enough not to make a huge mess. Adding and removing indexes isn’t that difficult in my experience but changing a schema once it’s in use can be seriously painful. I once saw a table in a commercial product where several columns had been abandoned without being removed because the developers wanted to refactor the schema but for some reason couldn’t use ALTER TABLE to ditch the useless columns. That’s the kind of mess you want to avoid!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1fa8128769d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/radix-cc/database-schema-design-tutorials-a1fa8128769d">Database Schema Design Tutorials</a> was originally published in <a href="https://medium.com/radix-cc">radix.cc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using RawGit to Serve Files]]></title>
            <link>https://medium.com/radix-cc/using-rawgit-to-serve-files-a2e4acad7f2d?source=rss-5cbcd4f5a107------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2e4acad7f2d</guid>
            <category><![CDATA[hosting]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Robert Stone]]></dc:creator>
            <pubDate>Wed, 21 Sep 2016 01:29:58 GMT</pubDate>
            <atom:updated>2016-09-21T03:46:05.904Z</atom:updated>
            <content:encoded><![CDATA[<p>Free CDN for serving content from GitHub</p><h4>Intro</h4><p>Need to host a file like an image and want it hosted on a CDN (Content Delivery Network)? Check out <a href="http://rawgit.com/">RawGit</a>. It’s free.</p><p>All you need is a GitHub account. Just upload the file to a repository, go to <a href="http://rawgit.com/">RawGit</a>, enter the URL in the wide box at the top, and the page constructs two URLs for you.</p><h4>Use the “Production” Option for CDN</h4><p>I recommend using the Production option as much as possible since it doesn’t place a burden on the guy paying the bills. The Production version uses <a href="https://www.maxcdn.com/">MaxCDN</a> but has the drawback that it will <strong><em>never</em> </strong>update content once it is cached.</p><p>So to avoid problems with being able to make updates, you need to make sure your URL for your file is as version specific (commit specific) as possible. That’s why you need to use a URL with a <em>commit hash </em>that will change if you commit a new file. Here’s an example of how to get such a URL from GitHub:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*8NDCgZb9NKVQIUmqalal5g.gif" /><figcaption>Getting a commit hash URL from the web browser.</figcaption></figure><p>Once you have that URL just go to <a href="http://rawgit.com/">RawGit</a> to use the URL calculator or, even easier, just manually replace <strong>github.com </strong>with <strong>cdn.rawgit.com </strong>in the URL.</p><p>Here’s a shell script that will create the URLs. Probably easier than the above. Works in “gitbash” in Windows, and should work in all other bash shells:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bde767df0a9c15d1eae3bc8d741c337/href">https://medium.com/media/5bde767df0a9c15d1eae3bc8d741c337/href</a></iframe><p><strong>Make sure</strong> that your current working directory is the root of the repo and then run it like ‘rawgithashurl.sh **’ for example to recurse through all files (assuming your bash has the “globstar” feature).</p><h4>Development RawGit</h4><p>This uses a proxy with limited resources so don’t use it for anything that will be viewed by more than you or someone who is helping you. For this you replace <strong>github.com </strong>with <strong>rawgit.com </strong>(leave off the <strong>cdn. </strong>on the front) and you don’t need to worry about permanent caching of your files. So, you can skip including a commit hash.</p><p>But I would avoid this option as much as possible. Don’t use it unless you’re working on something, need the proxy to fix the content-type headers, and need to do lots of updates or something. And again, don’t publish any pages that use such URLs or the guy’s proxy will get hammered. He doesn’t want that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2e4acad7f2d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/radix-cc/using-rawgit-to-serve-files-a2e4acad7f2d">Using RawGit to Serve Files</a> was originally published in <a href="https://medium.com/radix-cc">radix.cc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>