<metaname="twitter:description"content="Just a place to make stuff">
<metaname="twitter:image"content="http://blog.thebestjohn.com/images/default.jpg"><linkrel="icon"href="/images/icon.png"><linkrel="alternate"href="/atom.xml"type="application/atom+xml"title="TheBestJohn"></head><bodyitemscopeitemtype="https://schema.org/WebPage"><navclass="menu"id="menu"><divclass="menu-inner"><divclass="menu__left-area"><divclass="menu__item"><aclass="menu__item__link menu__item__link--brand"href="/"title="Home"rel="home"><imgclass="menu__item__link--brand__image"src="/images/icon.png"alt="TheBestJohn"><spanclass="menu__item__link--brand__label">TheBestJohn</span></a></div></div><divclass="menu__right-area"><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/">Home</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/about">About</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/archives">Archives</a></div></div></div></nav><divclass="page-background"></div><divclass="content-container"><divclass="content-outer"><divclass="content-inner"itemscopeitemtype="https://schema.org/Blog"><sectionclass="post-list"><header><h2>Archives: 8/2012</h2></header><hr><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/table-based-design/"><divclass="post-list__item__link__background"style="background-image:url('/images/default.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Web-Dev/">Web Dev</a></div><h3class="post-list__item__title"><ahref="/posts/table-based-design/"title="Table based design: Why I loathe it, and you should too!">Table based design: Why I loathe it, and you should too!</a></h3><pclass="post-list__item__description">If there is one thing that grinds my gears it’s table based design and the “web development” companies that continue to use it.
<metaname="twitter:description"content="Just a place to make stuff">
<metaname="twitter:image"content="http://blog.thebestjohn.com/images/default.jpg"><linkrel="icon"href="/images/icon.png"><linkrel="alternate"href="/atom.xml"type="application/atom+xml"title="TheBestJohn"></head><bodyitemscopeitemtype="https://schema.org/WebPage"><navclass="menu"id="menu"><divclass="menu-inner"><divclass="menu__left-area"><divclass="menu__item"><aclass="menu__item__link menu__item__link--brand"href="/"title="Home"rel="home"><imgclass="menu__item__link--brand__image"src="/images/icon.png"alt="TheBestJohn"><spanclass="menu__item__link--brand__label">TheBestJohn</span></a></div></div><divclass="menu__right-area"><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/">Home</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/about">About</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/archives">Archives</a></div></div></div></nav><divclass="page-background"></div><divclass="content-container"><divclass="content-outer"><divclass="content-inner"itemscopeitemtype="https://schema.org/Blog"><sectionclass="post-list"><header><h2>Archives: 2012</h2></header><hr><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/table-based-design/"><divclass="post-list__item__link__background"style="background-image:url('/images/default.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Web-Dev/">Web Dev</a></div><h3class="post-list__item__title"><ahref="/posts/table-based-design/"title="Table based design: Why I loathe it, and you should too!">Table based design: Why I loathe it, and you should too!</a></h3><pclass="post-list__item__description">If there is one thing that grinds my gears it’s table based design and the “web development” companies that continue to use it.
<metaname="twitter:description"content="Just a place to make stuff">
<metaname="twitter:image"content="http://blog.thebestjohn.com/images/default.jpg"><linkrel="icon"href="/images/icon.png"><linkrel="alternate"href="/atom.xml"type="application/atom+xml"title="TheBestJohn"></head><bodyitemscopeitemtype="https://schema.org/WebPage"><navclass="menu"id="menu"><divclass="menu-inner"><divclass="menu__left-area"><divclass="menu__item"><aclass="menu__item__link menu__item__link--brand"href="/"title="Home"rel="home"><imgclass="menu__item__link--brand__image"src="/images/icon.png"alt="TheBestJohn"><spanclass="menu__item__link--brand__label">TheBestJohn</span></a></div></div><divclass="menu__right-area"><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/">Home</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/about">About</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/archives">Archives</a></div></div></div></nav><divclass="page-background"></div><divclass="content-container"><divclass="content-outer"><divclass="content-inner"itemscopeitemtype="https://schema.org/Blog"><sectionclass="post-list"><header><h2>Archives</h2></header><hr><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/static-site-what/"><divclass="post-list__item__link__background"style="background-image:url('/images/default.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Web-Dev/">Web Dev</a></div><h3class="post-list__item__title"><ahref="/posts/static-site-what/"title="Static Site what?!">Static Site what?!</a></h3><pclass="post-list__item__description">Recently I’ve become disillusioned with most CMS options. They’re a pain to keep updated, plugins are constantly being abandoned, and they’re so...</p></div></article><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/table-based-design/"><divclass="post-list__item__link__background"style="background-image:url('/images/default.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Web-Dev/">Web Dev</a></div><h3class="post-list__item__title"><ahref="/posts/table-based-design/"title="Table based design: Why I loathe it, and you should too!">Table based design: Why I loathe it, and you should too!</a></h3><pclass="post-list__item__description">If there is one thing that grinds my gears it’s table based design and the “web development” companies that continue to use it.
Web development is...</p></div></article><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/the-plasma-speaker-saga-pt-iii/"><divclass="post-list__item__link__background"style="background-image:url('/images/plasmaHead.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Other-electronics/">Other electronics</a></div><h3class="post-list__item__title"><ahref="/posts/the-plasma-speaker-saga-pt-iii/"title="The Plasma Speaker Saga pt.III">The Plasma Speaker Saga pt.III</a></h3><pclass="post-list__item__description">
<metaname="twitter:description"content="Just a place to make stuff">
<metaname="twitter:image"content="http://blog.thebestjohn.com/images/default.jpg"><linkrel="icon"href="/images/icon.png"><linkrel="alternate"href="/atom.xml"type="application/atom+xml"title="TheBestJohn"></head><bodyitemscopeitemtype="https://schema.org/WebPage"><navclass="menu"id="menu"><divclass="menu-inner"><divclass="menu__left-area"><divclass="menu__item"><aclass="menu__item__link menu__item__link--brand"href="/"title="Home"rel="home"><imgclass="menu__item__link--brand__image"src="/images/icon.png"alt="TheBestJohn"><spanclass="menu__item__link--brand__label">TheBestJohn</span></a></div></div><divclass="menu__right-area"><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/">Home</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/about">About</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/archives">Archives</a></div></div></div></nav><divclass="page-background"></div><divclass="content-container"><divclass="content-outer"><divclass="content-inner"itemscopeitemtype="https://schema.org/Blog"><sectionclass="post-list"><header><h2>Category: Web Dev</h2></header><hr><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/static-site-what/"><divclass="post-list__item__link__background"style="background-image:url('/images/default.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Web-Dev/">Web Dev</a></div><h3class="post-list__item__title"><ahref="/posts/static-site-what/"title="Static Site what?!">Static Site what?!</a></h3><pclass="post-list__item__description">Recently I’ve become disillusioned with most CMS options. They’re a pain to keep updated, plugins are constantly being abandoned, and they’re so...</p></div></article><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/table-based-design/"><divclass="post-list__item__link__background"style="background-image:url('/images/default.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Web-Dev/">Web Dev</a></div><h3class="post-list__item__title"><ahref="/posts/table-based-design/"title="Table based design: Why I loathe it, and you should too!">Table based design: Why I loathe it, and you should too!</a></h3><pclass="post-list__item__description">If there is one thing that grinds my gears it’s table based design and the “web development” companies that continue to use it.
<metaname="twitter:description"content="Just a place to make stuff">
<metaname="twitter:image"content="http://blog.thebestjohn.com/images/default.jpg"><linkrel="icon"href="/images/icon.png"><linkrel="alternate"href="/atom.xml"type="application/atom+xml"title="TheBestJohn"></head><bodyitemscopeitemtype="https://schema.org/WebPage"><navclass="menu"id="menu"><divclass="menu-inner"><divclass="menu__left-area"><divclass="menu__item"><aclass="menu__item__link menu__item__link--brand"href="/"title="Home"rel="home"><imgclass="menu__item__link--brand__image"src="/images/icon.png"alt="TheBestJohn"><spanclass="menu__item__link--brand__label">TheBestJohn</span></a></div></div><divclass="menu__right-area"><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/">Home</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/about">About</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/archives">Archives</a></div></div></div></nav><divclass="page-background"></div><divclass="content-container"><divclass="content-outer"><divclass="content-inner"itemscopeitemtype="https://schema.org/Blog"><sectionclass="post-list"><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/static-site-what/"><divclass="post-list__item__link__background"style="background-image:url('/images/default.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Web-Dev/">Web Dev</a></div><h3class="post-list__item__title"><ahref="/posts/static-site-what/"title="Static Site what?!">Static Site what?!</a></h3><pclass="post-list__item__description">Recently I’ve become disillusioned with most CMS options. They’re a pain to keep updated, plugins are constantly being abandoned, and they’re so...</p></div></article><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/table-based-design/"><divclass="post-list__item__link__background"style="background-image:url('/images/default.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Web-Dev/">Web Dev</a></div><h3class="post-list__item__title"><ahref="/posts/table-based-design/"title="Table based design: Why I loathe it, and you should too!">Table based design: Why I loathe it, and you should too!</a></h3><pclass="post-list__item__description">If there is one thing that grinds my gears it’s table based design and the “web development” companies that continue to use it.
Web development is...</p></div></article><articleclass="post-list__item"><divclass="post-list__item__col-1"><aclass="post-list__item__link"href="/posts/the-plasma-speaker-saga-pt-iii/"><divclass="post-list__item__link__background"style="background-image:url('/images/plasmaHead.jpg');"></div></a></div><divclass="post-list__item__col-2"><divclass="post-list__item__meta"><aclass="post-list__item__meta__link"href="/categories/Other-electronics/">Other electronics</a></div><h3class="post-list__item__title"><ahref="/posts/the-plasma-speaker-saga-pt-iii/"title="The Plasma Speaker Saga pt.III">The Plasma Speaker Saga pt.III</a></h3><pclass="post-list__item__description">
<metaproperty="og:description"content="So you want to create your own membrane keypad? Why? well making your own keypad can be useful for many reasons. It’s cheap and easy to…">
<metaname="twitter:title"content="Create Own Membrane Matrix Keypad (and Hooking It Up to the Arduino)">
<metaname="twitter:description"content="So you want to create your own membrane keypad? Why? well making your own keypad can be useful for many reasons. It’s cheap and easy to…">
<metaname="twitter:image"content="http://blog.thebestjohn.com/images/matrix/finished.jpg"><metaproperty="article:author"content="John Warren"><metaproperty="twitter:label1"content="Published at"><metaproperty="twitter:data1"content="February 16th 2010 00:00:00"><metaproperty="twitter:label2"content="Written by"><metaproperty="twitter:data2"content="John Warren"><linkrel="icon"href="/images/icon.png"><linkrel="alternate"href="/atom.xml"type="application/atom+xml"title="TheBestJohn"></head><bodyitemscopeitemtype="https://schema.org/WebPage"><navclass="menu"id="menu"><divclass="menu-inner"><divclass="menu__left-area"><divclass="menu__item"><aclass="menu__item__link menu__item__link--brand"href="/"title="Home"rel="home"><imgclass="menu__item__link--brand__image"src="/images/icon.png"alt="TheBestJohn"><spanclass="menu__item__link--brand__label">TheBestJohn</span></a></div></div><divclass="menu__right-area"><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/">Home</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/about">About</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/archives">Archives</a></div></div></div></nav><divclass="page-background"></div><divclass="content-container"><divclass="content-outer"><divclass="content-inner"itemscopeitemtype="https://schema.org/Blog"><articleclass="article"id="article"itemscopeitemtype="https://schema.org/BlogPosting"><h1class="article__title"itemprop="headline">Create Own Membrane Matrix Keypad (and Hooking It Up to the Arduino)</h1><divclass="article__meta"><timeclass="article__meta__time"datetime="2010-02-16T05:00:00.000Z"itemprop="datePublished">February 16th 2010</time><divclass="article__meta__categories"><aclass="article__meta__categories__item"href="/categories/Other-electronics/">Other electronics</a></div></div><divclass="article__contents"><imgsrc="/images/matrix/finished.jpg"/><p>So you want to create your own membrane keypad? Why? well making your own keypad can be useful for many reasons. It’s cheap and easy to do, it can be placed in situations where it may be vandalized or stolen without much frustration, It can be fully customized to display whatever you like, and you can make as large a keypad as you like with as many inputs as you can handle. I created my keypad to go on the exterior of my door in residence to act as a keypad entry in much the same way as colin353 did <ahref="www.instructables.com/id/An-Electronic-Door-Opener/">here</a>. I however have some more tricks up my sleeve for this coming up in a later Instructable.</p>
<metaname="twitter:image"content="http://blog.thebestjohn.com/images/matrix/finished.jpg"><metaproperty="article:author"content="John Warren"><metaproperty="twitter:label1"content="Published at"><metaproperty="twitter:data1"content="February 16th 2010 00:00:00"><metaproperty="twitter:label2"content="Written by"><metaproperty="twitter:data2"content="John Warren"><linkrel="icon"href="/images/icon.png"><linkrel="alternate"href="/atom.xml"type="application/atom+xml"title="TheBestJohn"></head><bodyitemscopeitemtype="https://schema.org/WebPage"><navclass="menu"id="menu"><divclass="menu-inner"><divclass="menu__left-area"><divclass="menu__item"><aclass="menu__item__link menu__item__link--brand"href="/"title="Home"rel="home"><imgclass="menu__item__link--brand__image"src="/images/icon.png"alt="TheBestJohn"><spanclass="menu__item__link--brand__label">TheBestJohn</span></a></div></div><divclass="menu__right-area"><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/">Home</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/about">About</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/archives">Archives</a></div></div></div></nav><divclass="page-background"></div><divclass="content-container"><divclass="content-outer"><divclass="content-inner"itemscopeitemtype="https://schema.org/Blog"><articleclass="article"id="article"itemscopeitemtype="https://schema.org/BlogPosting"><h1class="article__title"itemprop="headline">Create Own Membrane Matrix Keypad (and Hooking It Up to the Arduino)</h1><divclass="article__meta"><timeclass="article__meta__time"datetime="2010-02-16T05:00:00.000Z"itemprop="datePublished">February 16th 2010</time><divclass="article__meta__categories"><aclass="article__meta__categories__item"href="/categories/Other-Electronics/">Other Electronics</a></div></div><divclass="article__contents"><imgsrc="/images/matrix/finished.jpg"/><p>So you want to create your own membrane keypad? Why? well making your own keypad can be useful for many reasons. It’s cheap and easy to do, it can be placed in situations where it may be vandalized or stolen without much frustration, It can be fully customized to display whatever you like, and you can make as large a keypad as you like with as many inputs as you can handle. I created my keypad to go on the exterior of my door in residence to act as a keypad entry in much the same way as colin353 did <ahref="www.instructables.com/id/An-Electronic-Door-Opener/">here</a>. I however have some more tricks up my sleeve for this coming up in a later Instructable.</p>
<p><strong>NOTE:</strong> This is not a complete tutorial for the time being. It goes through the construction of a keypad fully, however it does not yet fully demonstrate the means to make it useful.</p>
<h1id="Step-1-Understanding-the-Keypad"><ahref="#Step-1-Understanding-the-Keypad"class="headerlink"title="Step 1: Understanding the Keypad"></a>Step 1: Understanding the Keypad</h1><p>The first thing I want you to understand is how this keypad works. I know what you’re thinking… Matrix keypad?… “I’m not going to have to take any blue pills to get this to work am I?”. No its not that matrix.. The best way to think about a matrix style keypad is to think about battleship.</p>
<p>A matrix is pretty much a grid like in battleship consisting of rows and columns. each button corresponds to a certain row and column. See the first picture to help illustrate this better. On a 9 button keypad you would use 3 rows and 3 columns. The first button would make a link between Row 1 and Column 1 (R1C1) just like in battleship. 2 would be R1C2, 3 R1C3, and lets say 8 would be R3C2… the rest are illustrated on the image.</p>
<metaproperty="og:description"content="Recently I’ve become disillusioned with most CMS options. They’re a pain to keep updated, plugins are constantly being abandoned, and…">
<metaname="twitter:title"content="Static Site what?!">
<metaname="twitter:description"content="Recently I’ve become disillusioned with most CMS options. They’re a pain to keep updated, plugins are constantly being abandoned, and…">
<metaname="twitter:image"content="http://blog.thebestjohn.com/images/default.jpg"><metaproperty="article:author"content="John Warren"><metaproperty="twitter:label1"content="Published at"><metaproperty="twitter:data1"content="April 27th 2018 17:40:00"><metaproperty="twitter:label2"content="Written by"><metaproperty="twitter:data2"content="John Warren"><linkrel="icon"href="/images/icon.png"><linkrel="alternate"href="/atom.xml"type="application/atom+xml"title="TheBestJohn"></head><bodyitemscopeitemtype="https://schema.org/WebPage"><navclass="menu"id="menu"><divclass="menu-inner"><divclass="menu__left-area"><divclass="menu__item"><aclass="menu__item__link menu__item__link--brand"href="/"title="Home"rel="home"><imgclass="menu__item__link--brand__image"src="/images/icon.png"alt="TheBestJohn"><spanclass="menu__item__link--brand__label">TheBestJohn</span></a></div></div><divclass="menu__right-area"><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/">Home</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/about">About</a></div><divclass="menu__item"><aclass="menu__item__link"href="http://blog.thebestjohn.com/archives">Archives</a></div></div></div></nav><divclass="page-background"></div><divclass="content-container"><divclass="content-outer"><divclass="content-inner"itemscopeitemtype="https://schema.org/Blog"><articleclass="article"id="article"itemscopeitemtype="https://schema.org/BlogPosting"><h1class="article__title"itemprop="headline">Static Site what?!</h1><divclass="article__meta"><timeclass="article__meta__time"datetime="2018-04-27T21:40:00.000Z"itemprop="datePublished">April 27th 2018</time><divclass="article__meta__categories"><aclass="article__meta__categories__item"href="/categories/Web-Dev/">Web Dev</a></div></div><hr><divclass="article__contents"><p>Recently I’ve become disillusioned with most CMS options. They’re a pain to keep updated, plugins are constantly being abandoned, and they’re so prevalent in sites that they make a very attractive target for exploitation. In fact the first time I lost control of my server it was because of a bug in a themes use of timthumb.php. Basically, the attacker sent it an “image” file from a hosting website that had a php eval script hidden in it’s data. When accessed normally it showed an image but if they accessed the cached file that timthumb made, then the server treated it as a php file. From there they were able to install a remote shell, and own my server.</p>
<h3id="Static-site-generators"><ahref="#Static-site-generators"class="headerlink"title="Static site generators"></a>Static site generators</h3><p>While the timthumb exploit was a pain in the ass, it was very interesting to me and made me seriously consider how I secure my systems. To that end I started reading into static site generators. Static site generators take your posts, usually formatted in some sort of markup, put them through a templating engine that outputs <code>.html</code> files, which you can then serve via the usual methods.</p>
<h1id="Static-site-generators"><ahref="#Static-site-generators"class="headerlink"title="Static site generators"></a>Static site generators</h1><p>While the timthumb exploit was a pain in the ass, it was very interesting to me and made me seriously consider how I secure my systems. To that end I started reading into static site generators. Static site generators take your posts, usually formatted in some sort of markup, put them through a templating engine that outputs <code>.html</code> files, which you can then serve via the usual methods.</p>
<h3id="Why-tho"><ahref="#Why-tho"class="headerlink"title="Why tho?"></a>Why tho?</h3><p>The idea is that <em>most</em> sites don’t actually need to use dynamic code. Their content is, for the most, part static. Users aren’t interacting with the content (other than the comments sections and forms but we’ll talk about that later). They are, instead, just reading it. The only person who seems to be interacting with it is the person that owns the site. Even then, the owner isn’t actively interacting. They are writing a post, or updating a page. After that, everything stays the same.</p>
<p>All this is a “face-value” reason to move over to a static site. I have an even deeper reason for wanting to use a static site, portability. Static sites allow you to use a generic format for your posts. I write all my posts in markdown, a very common and widely used format. With this I can move from generator to generator without much change. If I were to make my blog in something like Wordpress, my post information would be locked into a <em>very</em> specific database format. If I, for some reason or another, decided I no longer wanted to use Wordpress it would be a lot of work modifying all my posts to be compatible with the new platform.</p>
<h3id="Options"><ahref="#Options"class="headerlink"title="Options"></a>Options</h3><p>When it comes to static site generators, there are a plethora of options. </p>
<h3id="Enter-Hexo"><ahref="#Enter-Hexo"class="headerlink"title="Enter, Hexo"></a>Enter, <ahref="https://hexo.io/"target="_blank"rel="noopener">Hexo</a></h3><p>Hexo is a neat little package. </p>
<h1id="Options"><ahref="#Options"class="headerlink"title="Options"></a>Options</h1><p>When it comes to static site generators, there are a plethora of options.</p>
<h1id="Enter-Hexo"><ahref="#Enter-Hexo"class="headerlink"title="Enter, Hexo"></a>Enter, <ahref="https://hexo.io/"target="_blank"rel="noopener">Hexo</a></h1><p>Hexo is a neat little package. </p>
<p>Originally I thought I would install it, set up an apache virtual reverse proxy via an <code>.htaccess</code> file and let node serve static files. Some people do this. It’s a valid way to serve a site. The problem that I have with this, is that it’s just another vulnerable layer of code that I don’t have the inclination to audit. It could potentially have glaring security holes and I wouldn’t know. Again, I want to clarify that I don’t know much of anything about security. I’m not a cryptographer, nor an expert on cyber security. However, I can easily read the html that comes out the other end of the site generator and verify that there are no well-known issues with the javascript or html.</p>
<p>If this is the way you wanted to do it, you would need, at the very least, this sort of <code>.htaccess</code> configuration in your root<br><figureclass="highlight plain"><table><tr><tdclass="gutter"><pre><spanclass="line">1</span><br><spanclass="line">2</span><br><spanclass="line">3</span><br><spanclass="line">4</span><br><spanclass="line">5</span><br><spanclass="line">6</span><br></pre></td><tdclass="code"><pre><spanclass="line">RewriteEngine On</span><br><spanclass="line">DirectoryIndex index.html </span><br><spanclass="line">RewriteRule ^$ http://127.0.0.1:4000 [P,L]</span><br><spanclass="line">RewriteCond %{REQUEST_FILENAME} !-f</span><br><spanclass="line">RewriteCond %{REQUEST_FILENAME} !-d</span><br><spanclass="line">RewriteRule ^(.*)$ http://127.0.0.1:4000/$1 [P,L]</span><br></pre></td></tr></table></figure></p>
<p>So what to do? Well, the output is a fully static html/css/js site. No need for node, no need for a reverse proxy. This will just work when popped into a public directory of a webserver.</p>
})();</script><noscript>Enable JavaScript to see comments.</noscript><!-- Meta Tags for Structured Data--><metaitemprop="dateModified"content="2018-04-30T00:58:48.015Z"><metaitemprop="articleBody"content="If there is one thing that grinds my gears it’s table based design and the “web development” companies that continue to use it.
<metaproperty="og:description"content="Well today’s the day! On the eve of Canada day I have made a giant step towards a good version of the plasma speaker! After letting the…">
<metaname="twitter:description"content="Well today’s the day! On the eve of Canada day I have made a giant step towards a good version of the plasma speaker! After letting the…">
<p>Well today’s the day! On the eve of Canada day I have made a giant step towards a good version of the plasma speaker! After letting the magic smoke out of countless ICs and Diodes I have finally put together a working model of the plasma speaker. The first thing I did to guide me on my path was to find a TL494 IC in a dip format. I figured that it was going to be another month until I could make this post as I would have had to special order a TL494 chip online which would cost me shipping and a whole crap more money than the chip was worth. When out of the blue two days ago my father asked me what chip I needed for the Plasma speaker. Having studied the schematic for hours I could quote almost every component off by heart at this point, so I told him “TL494″ he looked at me, let out a little chuckle and a smirk, and pointed over to the other side of the kitchen. I walked over and saw several power tools and construction materials (we’re in the middle of a kitchen reno) and an old pc power supply. I picked it up and said “is this it?”. “Yes” he answered “I pulled it out of the pc that that my work threw out. The power supply was the only thing that was bad in it.”. So earlier on today (yesterday?) I open her up and lo and behold there is a TL494 DIP IC staring me in the face (Nestled right beside a LM339N I might add) as well as several other things I may need in the future of this speaker (toroids, heatsinks, etc…).</p>
<p>After about 20 minutes of trying to get this chip out with a solder sucker and solder braid, I finally succeed. I pop it into my breadboard (which had the starting of my time fountain, but who cares PLASMA SPEAKER!) and begin wiring up the schematic. Everything looks wired up properly and I have a speaker in place of the flyback transformer (another steal from the discarded television that I got the flyback from). I attach a 9V battery and…. nothing happens…. shit ok well time to pull out the big guns… the 12V motorcycle battery. I attach the battery and…. it kinda works… except the speaker is just puffed out all the way…. it’s not making any noise at all! What should be happening is the speaker should be oscillating at some high frequency but it’s not, it’s just sitting there all puffed out…. At around this time my father gets home from work. I have a question for him. The TL494 chip has a black dot on it (which usually denotes where pin 1 is) as well as a notch in it (Another common way to denote pin 1) on the opposite side. Theres your problem. the chip is in backwards! I reverse the chip and TA-DA a squealing speaker!</p>
...
...
@@ -22,5 +22,5 @@
s.src='//thebestjohn.disqus.com/embed.js';
s.setAttribute('data-timestamp',+newDate());
(d.head||d.body).appendChild(s);
})();</script><noscript>Enable JavaScript to see comments.</noscript><!-- Meta Tags for Structured Data--><metaitemprop="dateModified"content="2018-04-30T01:05:42.007Z"><metaitemprop="articleBody"content="
})();</script><noscript>Enable JavaScript to see comments.</noscript><!-- Meta Tags for Structured Data--><metaitemprop="dateModified"content="2018-04-30T14:22:14.543Z"><metaitemprop="articleBody"content="