{"id":17663,"date":"2019-02-22T06:20:25","date_gmt":"2019-02-22T22:20:25","guid":{"rendered":"https:\/\/www.podfeet.com\/blog\/?p=17663"},"modified":"2019-02-24T17:21:11","modified_gmt":"2019-02-25T01:21:11","slug":"tech-rabbit-hole","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2019\/02\/tech-rabbit-hole\/","title":{"rendered":"Down a Tech Rabbit Hole"},"content":{"rendered":"<p><img decoding=\"async\" class=\"box-shadow-right\" title=\"MarsEdit logo.png\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2019\/02\/MarsEdit-logo.png\" alt=\"MarsEdit logo\" width=\"400\" height=\"\" border=\"0\" \/>This week I&#8217;ve been working on a video tutorial for ScreenCasts Online on the tool MarsEdit from <a href=\"https:\/\/red-sweater.com\/marsedit\/\">red-sweater.com\/&#8230;<\/a>. MarsEdit is what I use for writing everything you see on podfeet.com. It&#8217;s a fabulous tool that makes blogging much easier. It&#8217;s beautifully designed and really capable.<\/p>\n<p>One of the great things about doing tutorials is how much you&#8217;re forced to learn, even if it&#8217;s about an app you&#8217;ve been using for years. I&#8217;ve been finding some delicious nuggets I&#8217;d never noticed until I went through every option on every single menu.<br \/>\n<!--more--><br \/>\nIt works with different blogging systems, but since WordPress is the dominant player and it&#8217;s what I use, I decided to demonstrate it with WordPress.<\/p>\n<h3>Setting up WordPress<\/h3>\n<p>When I embarked on this project, I had to figure out a way to demonstrate the tool without throwing up a bunch of glop blog posts on podfeet.com. I could have created another instance of WordPress on my site (I think), or I could have rented a server for $5-10 through a service like <a href=\"https:\/\/www.linode.com\/\">linode.com\/&#8230;<\/a>.<\/p>\n<p>I could have created a free account on <a href=\"https:\/\/wordpress.com\/\">wordpress.com\/&#8230;<\/a> which could have been fun.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"box-shadow-right\" title=\"MAMP logo.png\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2019\/02\/MAMP-logo.png\" alt=\"MAMP logo\" width=\"321\" height=\"125\" border=\"0\" \/>But there&#8217;s another easy and free method, and that&#8217;s to create an instance of WordPress right on my Mac. It would be free and would be independent of Internet access and speeds so it was a perfect solution.<\/p>\n<p>To do this, you first install an application called MAMP from <a href=\"https:\/\/www.mamp.info\/en\/\">www.mamp.info\/&#8230;<\/a>, which is also free. This gives you an Apache web server, a MySQL database, and the php programming language, all on the Mac. That&#8217;s why it&#8217;s called MAMP.<\/p>\n<p>That&#8217;s a quick step. Now it&#8217;s time to download and install WordPress inside this fancy new MAMP installation. If you start at <a href=\"https:\/\/wordpress.org\/download\/\">wordpress.org\/&#8230;<\/a> (which is totally different from wordpress.com), you can download WordPress and do their &#8220;famous 5-minute installation&#8221;. This is not an exaggeration, in 5 minutes you&#8217;ve got WordPress installed and ready to go.<\/p>\n<p>With MAMP, you have to &#8220;turn on&#8221; the servers, then it opens a web page with a link to your fancy new WordPress installation. You&#8217;ll notice that the url for your locally hosted website is called &#8220;localhost&#8221;. There&#8217;s no .com or .org or .co.uk, it&#8217;s just localhost. The full path to the WordPress installation is localhost:8888\/wordpress where 8888 is the port number, but the important thing to note is the localhost part, which will be important much later in the story.<\/p>\n<h3>Teaching MarsEdit<\/h3>\n<p>At this point I was able to connect my fancy new localhost blog to MarsEdit and I got to work on the tutorial. All was glorious.<\/p>\n<p>I did a lot of the tutorial while using HTML as the language to write the blog posts. So to put in a link I had glop like &lt;a href=&#8221;blah.com&#8221;&gt; and much much worse for the more complex things I was demonstrating. This is the language the web is built on. But for a lot of simple things, there&#8217;s a much cleaner and more human-readable language available to us. That language is called Markdown.<\/p>\n<figure><img decoding=\"async\" title=\"#title#\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2019\/02\/HTML-vs-Markdown-links.png\" alt=\"HTML vs Markdown links\" width=\"598 \" height=\"103\" \/><figcaption style=\"text-align: center;\">HTML vs Markdown links<\/figcaption><\/figure>\n<p>Instead of angle brackets and arcane commands like <code>a href<\/code> for a link, Markdown uses square brackets and round brackets that make the text readable and easier to see your mistakes. I think my favorite thing about Markdown is how much easier it is to make bulleted lists.<\/p>\n<h3>Enabling Markdown<\/h3>\n<p>In order to use Markdown in MarsEdit, you have to enable Markdown in WordPress. If you have a WordPress.com site (the free service where they build WordPress for you), there&#8217;s a simple switch to turn on Markdown. But if you build your own WordPress like I did, you need a plugin.<\/p>\n<p>The easiest (in theory) plugin to use is called Jetpack. Inside WordPress you can install plugins directly. I did a search for Jetpack and hit the install button. I was surprised to see it pop up a button that asked for my FTP username and password. I had no idea why it would need that and what the heck my username and password would be.<\/p>\n<h4>FTP Rabbit Hole<\/h4>\n<p>I entered the IP address of the machine I was on and then tried my local login but when that didn&#8217;t work, I was stuck. I went to the googles and found articles explaining that macOS in the old days had a built-in FTP server, but if you needed one on the modern version of macOS you&#8217;d need to install it yourself.<\/p>\n<p>I found instructions on how to download and install inetutils on <a href=\"http:\/\/osxdaily.com\/2018\/08\/07\/get-install-ftp-mac-os\/\">osxdaily.com\/&#8230;<\/a> via homebrew but it looked scary. I posted my question to our Slack group inside the Programming By Stealth channel where the loveliest nerds hang out.<\/p>\n<p>Allister Jenks sent me the same osxdaily article on inetutils so I figured I&#8217;d just girl-up and install it. I ran the command to install and it spit the usual volume of glop on screen. Ok&#8230;that was fun, but do I now have an FTP server running? And if so, what&#8217;s my login name and password?<\/p>\n<p>Back to Slack, and this time Troy Shimkus jumped into the conversation. I asked him if he had time for a screen share to help me and being the swell guy that he is, he agreed. We piddled about for a bit with what we saw on screen and during this I mentioned that I had no idea why I <em>needed<\/em> an FTP server running at all, just to install a darn plugin.<\/p>\n<p><img decoding=\"async\" style=\"float: right;\" title=\"cakebrew.png\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2019\/02\/cakebrew.png\" alt=\"Cakebrew\" width=\"400\" height=\"\" border=\"0\" \/>Troy explained that to install a plugin via the web interface of WordPress, the plugin had to be FTPd to my server, in this case, my local Mac. Only when he explained that did I realize that I don&#8217;t have to install the plugin this way. You see, you can go to the plugin&#8217;s web page at WordPress.org, and download the plugin directly (plugins are just a folder of text files), and then slide that bad boy into the plugins directory on my Mac. Boom, done!<\/p>\n<p>A quick trip to <a href=\"https:\/\/www.cakebrew.com\">Cakebrew (a GUI interface to homebrew)<\/a> to uninstall inetutils and I was ready to go. I thanked Troy and we signed off.<\/p>\n<h4>URL Rabbit Hole<\/h4>\n<p>Now I&#8217;ve got Jetpack installed into WordPress (after a half a day of faffing about), time to activate it. I hit the activate button and I get an error telling me that I can&#8217;t use most of the tools in Jetpack (including turning on Markdown) because I don&#8217;t have a dot in my URL! Well of course I don&#8217;t, because my URL is localhost.<\/p>\n<p>Now I have a whole <em>new<\/em> rabbit hole to go down. I found several sites offering the steps to fix this problem. The one at <a href=\"http:\/\/www.drupalden.co.uk\/setting-url-aliases-for-local-development-mamp\">drupalden.co.uk\/&#8230;<\/a> is probably the most well explained. But here&#8217;s all I would have to do:<\/p>\n<ul>\n<li>Open a file called httpd.conf inside my MAMP folder<\/li>\n<li>Set the document root folder<\/li>\n<li>Change the default port from 8888 to 80<\/li>\n<li>Add a VirtualHost entry to my httpd-vhosts.conf file to add a new URL, like www.mysite.com<\/li>\n<li>Edit my system level hosts file<\/li>\n<\/ul>\n<p>Easy peasy, right? I&#8217;m starting to not care so much about demonstrating Markdown. I thought, maybe there&#8217;s another plugin that isn&#8217;t so strict about this whole having a dot in your URL name.<\/p>\n<figure style=\"float: right; margin: 5px;\"><img decoding=\"async\" title=\"#title#\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2019\/02\/wp-markdown-working-in-WordPress.png\" alt=\"Wp markdown working in WordPress\" width=\"400 \" height=\"\" \/><figcaption style=\"text-align: center;\">Markdown options in WordPress from WP-Markdown Plugin<\/figcaption><\/figure>\n<p>I found <a href=\"https:\/\/wordpress.org\/plugins\/wp-markdown\/\">WP-Markdown<\/a> which hasn&#8217;t been updated for a year and hasn&#8217;t been tested on the latest version of WordPress (version 5) but since this isn&#8217;t a real website on the Internet subject to attack vectors, I took a chance. And I lucked out.<\/p>\n<p>Now in WordPress I can see under Settings, Writing, the option to enable Markdown for Posts, Pages and Comments. Whoopee!<\/p>\n<h3>Back to Teaching MarsEdit<\/h3>\n<p>Now it was time to get back to teaching MarsEdit and to demonstrate how efficient you can be using Markdown. And no, the irony wasn&#8217;t lost on me that I&#8217;d spent over 8 hours chasing down how to get Markdown to work on localhost blog just to show how efficient Markdown is.<\/p>\n<p>Normally I have a bottom line that gives a life lesson, or declares something good or bad, but this time it seems to just be a story about learning and tools and how helpful the NosillaCastaways are, especially in our Slack. You <em>are<\/em> a member of our Slack, right? It&#8217;s easy to join, just go to <a href=\"https:\/\/podfeet.com\/slack\">podfeet.com\/slack<\/a> and sign up.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week I&#8217;ve been working on a video tutorial for ScreenCasts Online on the tool MarsEdit from red-sweater.com\/&#8230;. MarsEdit is what I use for writing everything you see on podfeet.com. It&#8217;s a fabulous tool that makes blogging much easier. It&#8217;s beautifully designed and really capable. One of the great things about doing tutorials is how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[147],"tags":[3221,2094,185,256,3222,919],"class_list":["post-17663","post","type-post","status-publish","format-standard","hentry","category-blog-posts","tag-blogging","tag-cakebrew","tag-html","tag-markdown","tag-marsedit","tag-slack"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/17663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=17663"}],"version-history":[{"count":7,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/17663\/revisions"}],"predecessor-version":[{"id":17693,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/17663\/revisions\/17693"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=17663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=17663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=17663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}