{"generator":"Jekyll","link":[{"@attributes":{"href":"https:\/\/dannydwarren.github.io\/feed.xml","rel":"self","type":"application\/atom+xml"}},{"@attributes":{"href":"https:\/\/dannydwarren.github.io\/","rel":"alternate","type":"text\/html"}}],"updated":"2020-09-30T02:35:09+00:00","id":"https:\/\/dannydwarren.github.io\/feed.xml","title":"Software Blocks and Rocks","subtitle":"Software developement is like playing with digital building blocks all day. My goal is to teach you about some of those individual blocks so you can develop amazing things. Maybe I'll throw in a post about rock climbing or mountain biking every once in a while too...\n","author":{"name":"Danny Warren","email":"dannydwarren@gmail.com"},"entry":[{"title":"Mac Book Pro","link":{"@attributes":{"href":"https:\/\/dannydwarren.github.io\/software\/2017\/07\/15\/mac-book-pro\/","rel":"alternate","type":"text\/html","title":"Mac Book Pro"}},"published":"2017-07-15T00:00:00+00:00","updated":"2017-07-15T00:00:00+00:00","id":"https:\/\/dannydwarren.github.io\/software\/2017\/07\/15\/mac-book-pro","content":"<h2 id=\"my-first-mac\">My First Mac<\/h2>\n<p>I recently started at Pluralsight and as my daily machine I now have a MacBook Pro (15-inch, 2016). I really like it, except for all the things I don\u2019t like\u2026 See I\u2019m a Microsoft fan boy. So I\u2019m used to having a lot of the OS provided up front, but on Mac I find myself craving functionality that is not available by default. Luckily all the Mac folks before me have realized these short comings already and have made add-on products that I can use to fill in those gaps. So without further ado here is my list (updated over time) of products, utilities, tools, and other learnings that I wish I was told before I joined all the iSheeple.<\/p>\n\n<h2 id=\"touch-bar\">Touch Bar<\/h2>\n<p>I don\u2019t hate the touch bar, but I certainly do not like it. It lacks feedback and it absorbed the much needed <code class=\"language-plaintext highlighter-rouge\">ESC<\/code> key that I use heavily as a developer.<\/p>\n\n<h3 id=\"how-to-make-the-function-keys-the-default-keys-for-the-touch-bar\">How to make the Function Keys the Default Keys for the Touch Bar<\/h3>\n<p>The touch bar also abstracts away the critical function keys needed for debugging. Luckily there is a way to <a href=\"https:\/\/www.igeeksblog.com\/how-to-use-function-keys-on-macbook-pro-with-touch-bar\/\">make function keys the default for individual apps<\/a> which is actually a really great way to do it.<\/p>\n\n<h2 id=\"trackpad-update-2017-12-21\">Trackpad (UPDATE: 2017-12-21)<\/h2>\n<p>I LOVE THE TRACKPAD!!! Haptic feedback is amazing! Not having a physical rotation point for clicking is a game changer. I can use the entire trackpad without worrying about losing my click or needing to click harder.<\/p>\n\n<h3 id=\"single-touch-to-look-up-thumbs-down\">Single Touch to Look-up: Thumbs Down!<\/h3>\n<p>The only bad part about the trackpad in MacOS so far is the single touch to look-up, but there is a fix for that! Go to (CNet\u2019s post)[http:\/\/ccm.net\/faq\/40112-mac-os-x-yosemite-turn-off-the-trackpad-look-up-feature] to learn how to turn it off. No more annoying dictionary look-ups while clicing around in websites etc.<\/p>\n\n<h2 id=\"terminal-woes\">Terminal Woes<\/h2>\n<p>Okay, \u2018woes\u2019 may be too strong a word. Let\u2019s face it, terminal and cmd both suck as is. PowerShell is awesome and is now cross-platform, but if you want to understand all the help docs and tutorials for Mac out there you need to understand bash. So I\u2019ve been introduced to <a href=\"http:\/\/ohmyz.sh\/\">zsh<\/a> which makes the terminal x1000 better! Actually, I really like it. Strange coming from this GUI lover.<\/p>\n\n<h3 id=\"a-better-terminal\">A Better Terminal<\/h3>\n<p>There is even another option on Mac to take the terminal to the next level and that is <a href=\"https:\/\/iterm2.com\/\">iTerm2<\/a>. It\u2019s pretty awesome, but you\u2019ll have to do your own research to see what all it\u2019s capable of as I\u2019m still just getting into it.<\/p>\n\n<h3 id=\"window-management\">Window Management<\/h3>\n<p>In Windows we can do <code class=\"language-plaintext highlighter-rouge\">WIN + SHIFT + ARROW<\/code> to dock a window to a certain location. This feature is one of my favorites and does not exist in MacOS and has been my #1 complaint. Recently I was introduced to <a href=\"http:\/\/mizage.com\/divvy\/\">Divvy<\/a> and it is awesome! It is a paid product, but at ~$15 it\u2019s worth every penny! They also provide a Windows version which I have not tried yet, but I intend to try it because it is that awesome!<\/p>\n\n<h2 id=\"back-to-windows\">Back to Windows<\/h2>\n<p>You knew this was coming! I love Windows, it\u2019s my native land. I use a <a href=\"https:\/\/support.apple.com\/boot-camp\">Boot Camp<\/a> partition to boot Windows native. Then I use <a href=\"https:\/\/www.parallels.com\/\">Parallels<\/a> to load that native partition as a VM from within MacOS. Most of my use cases haven\u2019t needed native Windows as yet so I\u2019ve been primarily in MacOS and using Parallels for Windows.<\/p>\n\n<h3 id=\"lesson-learned-running-windows-in-parallels\">Lesson Learned Running Windows in Parallels:<\/h3>\n\n<h4 id=\"back-button-in-chrome\">Back Button in Chrome<\/h4>\n<p>Left-click back in Chrome with multiple pages to go back though. While holding left-click then right-click multiple times. The interrupt causes left-click to be detected again and goes back. This is annoying when a second finger touches the trackpad while clicking the back button. So keep those fingers up mates!<\/p>\n\n<h3 id=\"lessons-learned-running-windows-native-via-boot-camp\">Lessons Learned Running Windows Native via Boot Camp:<\/h3>\n\n<h4 id=\"trackpad\">Trackpad<\/h4>\n<p>Even I have to admit that trackpad in Mac is the best in class. I\u2019m totally blown away that I almost never have erroneous clicks when typing in MacOS even with my sweaty palms all over this trackpad. It\u2019s a breath of fresh air! However, the awesome trackpad is only awesome by combining Apple hardware with MacOS. Once inside Windows native on Apple hardware the trackpad is no better and sometimes worse, because of size, than other hardware. The solution for this poor experience is <a href=\"http:\/\/trackpad.forbootcamp.org\/\">Trackpad++<\/a> which helps replicate some awesome MacOS gestures in Windows and also allows you to turn the trackpad off all together! If you don\u2019t purchase it, you are required to update to the latest version. Not a bad deal if you always want the latest for free!<\/p>\n\n<h5 id=\"trackpad-configuration-update-2017-12-21\">Trackpad++ Configuration (UPDATE: 2017-12-21)<\/h5>\n<ul>\n  <li>2-Finger Gestures\n    <ul>\n      <li>Disable: Pinch-to-Zoom, Accelerate Scroll, Edge Gestures (use the settings icon by it)<\/li>\n      <li>Enable: Invert Swipe Dir., Invert Scroll Dir.<\/li>\n    <\/ul>\n  <\/li>\n  <li>Trackpad as Mouse\n    <ul>\n      <li>Disable: Tap-to-Click<\/li>\n    <\/ul>\n  <\/li>\n  <li>Elimination of Accidental Input\n    <ul>\n      <li>Enable: On Lifting Fingers Release 3-Finger Drag Immediately (No Delay), When Typing, Ignore All \u2018Trackpad Input\u2019, Lower Pinch-to-Zoom Sensitivity<\/li>\n    <\/ul>\n  <\/li>\n  <li>3-Finger Gestures\n    <ul>\n      <li>Swipe Left: Next Desktop<\/li>\n      <li>Swipe Right: Previous Desktop<\/li>\n    <\/ul>\n  <\/li>\n  <li>4-Finger Gestures\n    <ul>\n      <li>Swipe Left: Forward<\/li>\n      <li>Swipe Right: Back<\/li>\n    <\/ul>\n  <\/li>\n  <li>Update Windows Settings for Mouse\n    <ul>\n      <li>Open: Change your mouse settings\n        <ul>\n          <li>Choose how many lines to scroll each time: Lower to 1 (min). NOTE: This will make the mouse scroll feel slow, but you can use mouse wheel specific settings to overcome this if you have a Logitech mouse or potentially other brands with dedicated mouse software.<\/li>\n        <\/ul>\n      <\/li>\n    <\/ul>\n  <\/li>\n<\/ul>\n\n<h2 id=\"other-thoughts\">Other Thoughts<\/h2>\n<p>If you have any awesome tools to make MacOS or Windows on Apple hardware better leave a comment! I\u2019m all about making our OS as comfortable as possible and would love to have a similar experience on both Windows and MacOS. That may be blasphemous to some, but really a computer is a computer and an OS is just that an OS, not a religion!<\/p>","author":{"name":"Danny Warren","email":"dannydwarren@gmail.com"},"category":[{"@attributes":{"term":"software"}},{"@attributes":{"term":"apple"}},{"@attributes":{"term":"productivity"}}],"summary":"My First Mac I recently started at Pluralsight and as my daily machine I now have a MacBook Pro (15-inch, 2016). I really like it, except for all the things I don\u2019t like\u2026 See I\u2019m a Microsoft fan boy. So I\u2019m used to having a lot of the OS provided up front, but on Mac I find myself craving functionality that is not available by default. Luckily all the Mac folks before me have realized these short comings already and have made add-on products that I can use to fill in those gaps. So without further ado here is my list (updated over time) of products, utilities, tools, and other learnings that I wish I was told before I joined all the iSheeple."},{"title":"Setting up Jekyll for GitHub Pages","link":{"@attributes":{"href":"https:\/\/dannydwarren.github.io\/software\/2017\/05\/23\/setting-up-jekyll-for-github-pages\/","rel":"alternate","type":"text\/html","title":"Setting up Jekyll for GitHub Pages"}},"published":"2017-05-23T00:00:00+00:00","updated":"2017-05-23T00:00:00+00:00","id":"https:\/\/dannydwarren.github.io\/software\/2017\/05\/23\/setting-up-jekyll-for-github-pages","content":"<h2 id=\"using-bash-for-windows\">Using Bash for Windows<\/h2>\n<p><a href=\"https:\/\/msdn.microsoft.com\/en-us\/commandline\/wsl\/install_guide\">Install Bash<\/a><\/p>\n\n<h3 id=\"notes-for-noobs\">Notes for noobs:<\/h3>\n<p><a href=\"https:\/\/msdn.microsoft.com\/en-us\/commandline\/wsl\/user_support#permissions\">Admin access in Linux aka Root Access<\/a><\/p>\n<ul>\n  <li>Open Bash from Admin CMD\/PowerShell to have Root Access rights in Bash<\/li>\n<\/ul>\n\n<p><a href=\"https:\/\/askubuntu.com\/questions\/831361\/windows-ubuntu-bash-change-directory\">How to navigate folders in bash<\/a>.<\/p>\n\n<p>Encountering Errno::EACCES<\/p>\n<ul>\n  <li>Make sure you ran Bash from an Admin CMD\/PowerShell prompt<\/li>\n  <li>IF that still does not help then try using <code class=\"language-plaintext highlighter-rouge\">sudo<\/code> in front of the command which is failing. <a href=\"https:\/\/stackoverflow.com\/questions\/11496591\/ruby-gem-permission-denied-var-lib-gems-using-ubuntu\">More info\u2026<\/a><\/li>\n<\/ul>\n\n<h2 id=\"install-jekyll\">Install Jekyll<\/h2>\n<p><a href=\"https:\/\/jekyllrb.com\/docs\/windows\/\">Using Windows 10 Anniversary+<\/a><br \/>\n<a href=\"https:\/\/jekyllrb.com\/docs\/installation\/\">Jekyll Installation Instructions<\/a><\/p>\n\n<p>Install missing GCC and Make<\/p>\n<ul>\n  <li><code class=\"language-plaintext highlighter-rouge\">sudo apt-get install gcc<\/code><\/li>\n  <li><code class=\"language-plaintext highlighter-rouge\">sudo apt-get install make<\/code><\/li>\n<\/ul>\n\n<h3 id=\"installing-ruby\">Installing Ruby<\/h3>\n\n<p><a href=\"https:\/\/stackoverflow.com\/a\/18541768\/1558446\">Install Ruby<\/a><\/p>\n<ul>\n  <li>apt-get seems to not install Ruby 2.0 so you\u2019ll need to use rvm instead<\/li>\n  <li>After installing Ruby via rvm you will need to run <code class=\"language-plaintext highlighter-rouge\">source \/home\/[username]\/.rvm\/scripts\/rvm<\/code> each time you start bash. This is because the environment needs to load Ruby and Gems into CLI memory. To fix this you need to add the rvm scripts directory to the \u201cbashrc\u201d file.\n    <ul>\n      <li>Modify bashrc via nano <code class=\"language-plaintext highlighter-rouge\">nano ~\/.bashrc<\/code> (<a href=\"https:\/\/ubuntuforums.org\/showthread.php?t=2158436\">info<\/a>)<\/li>\n      <li>Add the following to the end of the file: <code class=\"language-plaintext highlighter-rouge\">[[ -s \"$HOME\/.rvm\/scripts\/rvm\" ]] &amp;&amp; . \"$HOME\/.rvm\/scripts\/rvm\"<\/code> (<a href=\"https:\/\/stackoverflow.com\/a\/4842674\/1558446\">info<\/a>)<\/li>\n      <li>Exit with <em>CTRL+X<\/em> and enter <em>y<\/em> when prompted to save<\/li>\n      <li>Reload \u201cbashrc\u201d with the command <code class=\"language-plaintext highlighter-rouge\">source ~\/.bashrc<\/code> (<a href=\"https:\/\/stackoverflow.com\/a\/2518150\/1558446\">info<\/a>)<\/li>\n      <li>Commands for gem are now available when bash is started!<\/li>\n    <\/ul>\n  <\/li>\n<\/ul>\n\n<p><em>NOTE:<\/em> You may see the error message <em>\u201cUnknown ruby interpreter version (do not know how to handle): RUBY_VERSION.\u201d<\/em> Based on <a href=\"https:\/\/stackoverflow.com\/questions\/38765138\/how-to-fix-unknown-ruby-interpreter-version-do-not-know-how-to-handle-ruby-v\">this<\/a> you can ignore this error.<\/p>\n\n<h3 id=\"starting-jekyll\">Starting Jekyll<\/h3>\n\n<p><a href=\"https:\/\/jekyllrb.com\/docs\/templates\/#code-snippet-highlighting\">Helpful info about using Jekyll<\/a><\/p>\n\n<p>I found that in Windows 10 Anniversary Update the file watcher fails so the command <code class=\"language-plaintext highlighter-rouge\">jekyll serve<\/code> does not work. Instead I used <code class=\"language-plaintext highlighter-rouge\">jekyll serve --no-watch<\/code>, but that comes at the cost of needing to stop the server, build, then start the server again each time I made a file change I wanted to see. Based on research this is a known issue that should be solved in Windows 10 Creators Update.<\/p>\n\n<p>I also found that the default port 4000 was also occupied so I use the command <code class=\"language-plaintext highlighter-rouge\">jekyll serve --no-watch --port 9876<\/code> to force another unused port.<\/p>\n\n<p><strong>FIXED:<\/strong> Bash in Windows 10 Creators Update now correctly supports file watching so you can use the command <code class=\"language-plaintext highlighter-rouge\">jekyll serve --port 9876<\/code> without any issues!<\/p>\n\n<h3 id=\"installing-gem-github-pages\">Installing Gem \u201cgithub-pages\u201d<\/h3>\n<p><em>NOTE:<\/em> I tried to get themes working first, but after adding this package the \u201cminima\u201d theme now works for posts locally so I suggest installing \u201cgithub-pages\u201d first, then worrying about themes.<\/p>\n\n<p>Still not entirely sure why github-pages is required, needed, wanted, suggested\u2026 but I\u2019m going ahead and installing it since that\u2019s where I\u2019m hosting my jekyll site.<\/p>\n\n<ul>\n  <li>Modify Gemfile\n    <ul>\n      <li>Remove\/Comment: <code class=\"language-plaintext highlighter-rouge\">gem \"jekyll\", \"3.4.3\"<\/code><\/li>\n      <li>Add\/Uncomment: <code class=\"language-plaintext highlighter-rouge\">gem \"github-pages\", group: :jekyll_plugins<\/code><\/li>\n    <\/ul>\n  <\/li>\n  <li>Run <code class=\"language-plaintext highlighter-rouge\">gem install github-pages<\/code>\n    <ul>\n      <li>This took a while, like more than 15 min\u2026<\/li>\n      <li>NOTE: You can ignore the warning: \u201cwarning: insecure world writable dir in \/home\/username\/.rvm\/rubies\/ruby-2.4.0\/bin path, mode 04077 bash windows\u201d. <a href=\"https:\/\/stackoverflow.com\/questions\/5380671\/getting-the-warning-insecure-world-writable-dir-home-chance-in-path-mode-04\">For more info<\/a>.<\/li>\n    <\/ul>\n  <\/li>\n  <li>Run <code class=\"language-plaintext highlighter-rouge\">bundle update<\/code><\/li>\n  <li>Run <code class=\"language-plaintext highlighter-rouge\">bundle install<\/code>\n    <ul>\n      <li>Not sure if this is necessary after a <code class=\"language-plaintext highlighter-rouge\">bundle update<\/code><\/li>\n    <\/ul>\n  <\/li>\n<\/ul>\n\n<p><em>ISSUE:<\/em> I got the following error: \u201cjekyll 3.4.3 | Error:  Could not find a JavaScript runtime. Seettps:\/\/github.com\/rails\/execjs for a list of available runtimes.\u201d<br \/>\n<em>SOLUTION:<\/em> To fix this I followed the suggestion <a href=\"https:\/\/stackoverflow.com\/questions\/7092107\/rails-could-not-find-a-javascript-runtime\">here<\/a> to install nodejs, which I thought was already installed.<\/p>\n\n<p><em>ISSUE:<\/em> Next I got the following error: \u201cError: No repo name found. Specify using PAGES_REPO_NWO environment variables, \u2018repository\u2019 in your configuration, or set up an \u2018origin\u2019 git remote pointing to your github.com repository\u2026\u201d<br \/>\n<em>SOLUTION:<\/em> I found my solution in part <a href=\"https:\/\/www.hieule.info\/programming\/fix-errors-github-metadata-ssl-certificate-running-jekyll-serve\/\">here<\/a>. I learned I needed a personal token from GitHub to access metadata. When I created my token I only applied <em>read<\/em> access to <em>user info<\/em> and <em>user email<\/em>. Then I used the token like suggested <a href=\"https:\/\/github.com\/jekyll\/github-metadata\">here<\/a> like this: `JEKYLL_GITHUB_TOKEN=123abc [bundle exec] jekyll serve \u2013port 9876\u2019<\/p>\n\n<p><em>ISSUE:<\/em> Then I got the error: \u201cRegenerating: 1 file(s) changed at 2017-06-03 16:08:06 \u2026error: Error: No such file or directory - git\u201d. From just a little reading <a href=\"https:\/\/github.com\/jekyll\/github-metadata\/issues\/57\">here<\/a> this apparently indicates git is not in the PATH or maybe not even installed at all.<br \/>\n<em>SOLUTION:<\/em> So I followed the \u201cInstallation\u201d and \u201cConfiguration\u201d steps in <a href=\"https:\/\/help.ubuntu.com\/lts\/serverguide\/git.html\">this article<\/a>.<\/p>\n\n<p>WOOT! NO MORE ERRORS!!!<\/p>\n\n<h2 id=\"themes\">Themes<\/h2>\n<p>In order to use a Jekyll theme on GitHub pages follow these <a href=\"https:\/\/jekyllrb.com\/docs\/themes\/#installing-a-theme\">instructions<\/a>.<br \/>\n<em>NOTE:<\/em> I found that <code class=\"language-plaintext highlighter-rouge\">gem \"theme-name\"<\/code> did not work for me, but <code class=\"language-plaintext highlighter-rouge\">gem install \"theme-name\"<\/code> did work.<\/p>\n\n<h3 id=\"themes-dont-work-for-me\">Themes don\u2019t work for me\u2026<\/h3>\n<p>I think I\u2019m going to bail on themes for now. I cannot figure out how to get a theme to work. I tried to apply \u201cjekyll-theme-minimal\u201d and \u201cjekyll-theme-midnight\u201d but both epically failed. The index page content would not render at all after applying one of those themes. I\u2019d like themes to work because \u201cminima\u201d is a bit boring, but there are more important things in life right now than styling my blog posts.<\/p>\n\n<h3 id=\"themes-attempt-2\">Themes Attempt 2<\/h3>\n<p>So I learned why my index.md file was not being rendered at all thanks to these two Stack Overflow questions: <a href=\"https:\/\/stackoverflow.com\/questions\/44325985\/github-pages-are-suddenly-blank\">first<\/a>, <a href=\"https:\/\/stackoverflow.com\/questions\/42966262\/change-theme-of-my-github-pages-and-pages-are-empty\/42967184#42967184\">second<\/a>. In the YAML the layout was set to <code class=\"language-plaintext highlighter-rouge\">home<\/code>, but the themes I\u2019ve been trying don\u2019t have a <code class=\"language-plaintext highlighter-rouge\">home<\/code> layout, only a <code class=\"language-plaintext highlighter-rouge\">default<\/code> layout. Once I changed index.md to specify <code class=\"language-plaintext highlighter-rouge\">default<\/code> it rendered! BUT, and it\u2019s a HUGE BUT, the list of blog posts is no longer rendering. <em>le sigh\u2026<\/em><\/p>\n\n<h3 id=\"themes-attempt-3-spoiler-success\">Themes Attempt 3+ (SPOILER: SUCCESS)<\/h3>\n<p>I visited <a href=\"https:\/\/github.com\/jekyll\/jekyll\/wiki\/Themes\">Jekyll\u2019s Themes Wiki<\/a> on GitHub. After a lot of browsing I tried to get <a href=\"http:\/\/bitwiser.in\/bitwiser\/demo.html\">Bitwiser<\/a> working. This is where the first glimpse of hope arrived. I added it manually which means editing the <code class=\"language-plaintext highlighter-rouge\">_config.yaml<\/code> to <em>not<\/em> specify any theme (ex: <code class=\"language-plaintext highlighter-rouge\">#theme: comment-out-all-theme-declarations<\/code>). This provided an implementation of <code class=\"language-plaintext highlighter-rouge\">index.html<\/code> which I thought was interesting. Namely it looked like a template file. This is the key we\u2019ll learn about later.<\/p>\n\n<p>The Bitwiser theme was too buggy for me and did not format the list of posts on the home page well, so I decided to try the <a href=\"https:\/\/github.com\/qwtel\/hydejack\">Hydejack<\/a> theme. This theme encouraged an empty <code class=\"language-plaintext highlighter-rouge\">index.html<\/code>. I thought that strange, but it started working right away. The home page, when set to <code class=\"language-plaintext highlighter-rouge\">layout: blog<\/code> shows all posts as we see it today, and each post when set to <code class=\"language-plaintext highlighter-rouge\">layout: post<\/code> is nicely formatted. I really like this theme. I had to add it manually as well even though there is a gem for it. The theme is not supported by GitHub pages via a gem. The <code class=\"language-plaintext highlighter-rouge\">Hydejack<\/code> <a href=\"https:\/\/qwtel.com\/hydejack\/docs\/6.4.1\/installation\/#running-locally\">installation instructions<\/a> have been very helpful in getting started and getting things configured.<\/p>\n\n<h4 id=\"the-indexhtmlmd-secret\">The index.(html|md) Secret<\/h4>\n<p>Adapted from an email response from GitHub Support: The theme\u2019s default layout, which you specified for index.md doesn\u2019t have any code to show a list of posts, just the chosen page.<\/p>\n\n<p>https:\/\/github.com\/pages-themes\/dinky\/blob\/master\/_layouts\/default.html<\/p>\n\n<p>You might want to create a special layout for the home page which instead of the <code class=\"language-plaintext highlighter-rouge\">{{ content }}<\/code> tag has something like this instead:<\/p>\n\n<div class=\"language-xml highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code><span class=\"nt\">&lt;ul&gt;<\/span>\n  {% for post in site.posts %}\n    <span class=\"nt\">&lt;li&gt;<\/span>\n      <span class=\"nt\">&lt;a<\/span> <span class=\"na\">href=<\/span><span class=\"s\">\"\"<\/span><span class=\"nt\">&gt;&lt;\/a&gt;<\/span>\n    <span class=\"nt\">&lt;\/li&gt;<\/span>\n  {% endfor %}\n<span class=\"nt\">&lt;\/ul&gt;<\/span>\n<\/code><\/pre><\/div><\/div>\n\n<p>Which is described on Jekyll\u2019s Wiki Page for <a href=\"https:\/\/jekyllrb.com\/docs\/posts\/#displaying-an-index-of-posts\">Displaying an Index of Posts<\/a>.<\/p>\n\n<p><em><strong>THANKS GITHUB SUPPORT!!!<\/strong><\/em><\/p>\n\n<h4 id=\"updating-hydejack-manual-process\">Updating Hydejack (Manual Process)<\/h4>\n<p>I use the <a href=\"https:\/\/github.com\/qwtel\/hydejack\/wiki\/Migration\">migration documentation<\/a> to help with upgrades.<\/p>\n\n<h2 id=\"interesting-reading\">Interesting Reading<\/h2>\n<p>This <a href=\"https:\/\/www.smashingmagazine.com\/2015\/11\/static-website-generators-jekyll-middleman-roots-hugo-review\/\">article<\/a> discusses 4 different static site generators. Not sure if I made the right choice, but in the end everything I have is in markdown which works with any of these options and more!<\/p>\n\n<h2 id=\"site-up-and-running\">Site Up and Running<\/h2>\n<p>Finally, after weeks of struggling to get Jekyll up and running with GitHub Pages everything is up and running! I hope this post has helped you to navigate the insanity of getting Jekyll setup for your GitHub Pages site. If you have another awesome tutorial for the topic at hand please tweet it to me <code class=\"language-plaintext highlighter-rouge\">@dannydwarren<\/code>! I\u2019m always trying to learn and this was a fun, frustrating, and successful learning process.<\/p>","author":{"name":"Danny Warren","email":"dannydwarren@gmail.com"},"category":[{"@attributes":{"term":"software"}},{"@attributes":{"term":"jekyll"}},{"@attributes":{"term":"intro"}}],"summary":"Using Bash for Windows Install Bash"},{"title":"Timers and Alarms in Windows Phone 7.5 (Mango)","link":{"@attributes":{"href":"https:\/\/dannydwarren.github.io\/software\/2011\/10\/12\/timers-and-alarms-in-windows-phone-7.5-mango\/","rel":"alternate","type":"text\/html","title":"Timers and Alarms in Windows Phone 7.5 (Mango)"}},"published":"2011-10-12T00:00:00+00:00","updated":"2011-10-12T00:00:00+00:00","id":"https:\/\/dannydwarren.github.io\/software\/2011\/10\/12\/timers-and-alarms-in-windows-phone-7.5-mango","content":"<p>Originally posted on <a href=\"http:\/\/blogs.interknowlogy.com\/2011\/10\/12\/timers-and-alarms-in-windows-phone-7-5-mango\/\">blogs.interknowlogy.com<\/a><\/p>\n\n<p>One thing I really wish Microsoft had built into the Windows Phone 7 from the beginning was a simple timer. The iPhone has one. The Android has one. Windows Phone 7.5 still has yet to add this simple functionality. So I took the task upon my self to develop one. The first thing I didn\u2019t understand was which Scheduler was the correct Scheduler to use. There were a lot introduced with Wp7.5 found here. Before I even looked at that page I opened up Visual Studio and found the \u201cWindows Phone Scheduled Task Agent\u201d project template and started to play with that. My immediate thought was \u201cPeriodicTask is for scheduling when a timer should run.\u201d This is definitely not the case since PeriodicTasks only run once every 30 minutes or so. Once I discovered Alarm notifications it was very simple to sort all of that out.<\/p>\n\n<p>The Wp7.5 SDK provides a lot of great controls. However, I found it lacking a way to specify hours, minutes, and seconds through a picker. Luckily Coding4Fun took care of that for me with the TimeSpanPicker. Armed with an Alarm and the TimeSpanPicker I was able to create a super simple timer application.<\/p>\n\n<p>A few notes about the outcome of the application:<\/p>\n\n<ol>\n  <li>It is not possible to reuse sounds built into the Phone for your custom timer. I still don\u2019t understand why Microsoft will not allow this. Why can\u2019t I have my alarm play one of the built in sounds let alone why can\u2019t I have it play my favorite song when the alarm finishes?<\/li>\n  <li>I\u2019ve found that the alarm is accurate up to 30 seconds. Meaning, I found that the alarm notification would not actually notify me right away. The longest delay I\u2019ve found is 30 seconds, but usually it\u2019s within 10 seconds. This is acceptable, but again disappointing.<\/li>\n  <li>Sometimes the alarm notification will not display if the application that created it is running. Perhaps this is by design? One could assume that if the application is setting an alarm that it doesn\u2019t intend on running when it completes, and if it is running then it should be tracking the time on its own.<\/li>\n<\/ol>","author":{"name":"Danny Warren","email":"dannydwarren@gmail.com"},"category":[{"@attributes":{"term":"software"}},{"@attributes":{"term":"cross-post-interknowlogy"}}],"summary":"Originally posted on blogs.interknowlogy.com"},{"title":"Remote Debugging","link":{"@attributes":{"href":"https:\/\/dannydwarren.github.io\/software\/2011\/08\/17\/remote-debugging\/","rel":"alternate","type":"text\/html","title":"Remote Debugging"}},"published":"2011-08-17T00:00:00+00:00","updated":"2011-08-17T00:00:00+00:00","id":"https:\/\/dannydwarren.github.io\/software\/2011\/08\/17\/remote-debugging","content":"<p>Originally posted on <a href=\"http:\/\/blogs.interknowlogy.com\/2011\/08\/17\/remote-debugging\/\">blogs.interknowlogy.com<\/a><\/p>\n\n<p>Recently we\u2019ve been developing an application that runs on a Win7 PC and has a slimmed down version that runs on Win7 Tablets. In our case we\u2019re using the HP Slate. Our development machines are running Win7 and VS2010. The development machines are on our domain while the HP Slates are not. The project has been going for some months now and we\u2019ve been relying heavily on logging using Enterprise Library to know what errors we\u2019re up against. However, we all know that as the complexity of an application increases so does the likelihood that we may log incorrect, useless, or unrelated data. Enter the need for remote debugging. I thought this would be straightforward and easy but I was very much mistaken.<\/p>\n\n<h2 id=\"getting-ready-to-remote-debug\">Getting Ready to Remote Debug<\/h2>\n<p>I started on the (MSDN http:\/\/msdn.microsoft.com\/en-us\/library\/y7f5zaaa.aspx) in the section (How to: Set Up Remote Debugging http:\/\/msdn.microsoft.com\/en-us\/library\/bt727f1t.aspx). Here I learned that firewalls and permissions are the first huge hurdle called out by Microsoft. I must say when it comes to limited time firewalls are out. So instead of fighting my way through setting up firewalls to work correctly I just disabled them for all machines involved for this remote debugging session. Later in this same article it tells how to install the software required for the remote machine in order to debug remotely. There is broken link to the download center for the software required, but the optional location is on the VS2010 installation media in the folder (VS Media)\\Remote Debugger. Be sure to install the correct version on the remote machine. Instructions for this are in the article.<\/p>\n\n<h2 id=\"running-the-remote-debugging-monitor\">Running the Remote Debugging Monitor<\/h2>\n<p>STOP! Why? Because you really should figure out which users you\u2019re going to use on both the VS2010 host machine and the remote machine before trying to run the Debugging Monitor.\nSelecting the Appropriate User Accounts for Remote Debugging\nI tried to remote debug at this point and found there is one more piece of information that I was missing. Going back to the list of articles on the (MSDN http:\/\/msdn.microsoft.com\/en-us\/library\/y7f5zaaa.aspx) the next important section is (Remote Debugging Across Domains http:\/\/msdn.microsoft.com\/en-us\/library\/9y5b4b4f.aspx). This section lists the restrictions relating to user accounts right away. I will copy the first section here for review:\nTo connect to msvsmon, you must run Visual Studio under the same user account as msvsmon or under an administrator account. (You can also configure msvsmon to accept connections from other users.)\nVisual Studio accepts connections from msvsmon if msvsmon is running as a user who can be authenticated on the Visual Studio computer. (The user must have a local account on the Visual Studio computer.)\nWith these restrictions, remote debugging works in various scenarios, including the following:<\/p>\n\n<ul>\n  <li>Two domains without two-way trust.<\/li>\n  <li>Two computers on a workgroup.<\/li>\n  <li>One computer on a workgroup, and the other on a domain.<\/li>\n  <li>Running the Remote debugging monitor (msvsmon) or Visual Studio as a local account.<\/li>\n<\/ul>\n\n<p>Therefore, you must have a local user account on each computer, and both accounts must have the same user name and password. If you want to run msvsmon and Visual Studio under different user accounts, you must have two user accounts on each computer.<\/p>\n\n<p>You can run Visual Studio under a domain account if the domain account has the same name and password as a local account. You must still have local accounts that have the same user name and password on each computer.<\/p>\n\n<p>End Quote.<\/p>\n\n<p>We will cover the last part in detail since that is the scenario I was faced with. In simple terms if your domain is named us and the user account is danny (us\\danny) then the VS2010 hosting machine must have a local user account named danny with admin privileges with the same password as the us\\danny account. Also, the remote machine, in my case the HP Slate, must have a local user account named danny with the same password as the other two danny accounts and must also be an admin on the machine. After all accounts are created and have been accessed for the first time restart all machines and boot the VS2010 hosting machine into the domain account (us\\danny) and the remote machine into the local account with the same name as the domain account (machine name\\danny).<\/p>\n\n<p>This essentially means that three(3) accounts named danny must exist: us\\danny, vs2010 machine name\\danny, and remote machine name\\danny and all of them must be admins on their respective boxes and all must use the same password.<\/p>\n\n<h2 id=\"running-the-remote-debugger-for-real\">Running the Remote Debugger (For Real)<\/h2>\n<p>Again returning to the list of articles on the (MSDN http:\/\/msdn.microsoft.com\/en-us\/library\/y7f5zaaa.aspx) the next article is (How to: Run the Remote Debugging Monitor http:\/\/msdn.microsoft.com\/en-us\/library\/xf8k2h6a.aspx). You have two choices at this point. Run the monitor as needed or run the monitor as a service. Because we will be constantly debugging using the HP Slate I decided to run the monitor as a service which requires a little extra work. You will need to run Local Security Policy. Then under Local Policies\\User Rights Assignment there is a policy named Log on as a service that must be granted for the user that will be running the debugging monitor.\nPerforming a Remote Debug\nI\u2019m still struggling with this a little. I cannot figure out how to have VS2010 compile and launch the application I want to debug on the remote machine. Instead copy the compiled project files from the bin\\debug folder of your project to the remote machine (I suggest a location easy to access and replace files in). Run the executable on the remote machine then in VS2010 of the hosting machine open the Attach to Process dialog (ctrl + alt + p). There is a drop down name Qualifier that when opened will detect the machine you\u2019re trying to remote debug. Select the remote machine then attach to the process on the remote machine like you would as if the process were on the VS2010 hosting machine.<\/p>\n\n<h2 id=\"thoughts\">Thoughts<\/h2>\n<p>It only took a few hours to figure this all out. The part that kept killing me was the fact that even after you create a user account if you don\u2019t log on as that user then it will not be available for use. Remote debugging is definitely cool! It helped us figure out quite a few issues in our remote code very quickly. Now that I know how to set up a remote debugging environment I will be using it more often.<\/p>","author":{"name":"Danny Warren","email":"dannydwarren@gmail.com"},"category":[{"@attributes":{"term":"software"}},{"@attributes":{"term":"cross-post-interknowlogy"}}],"summary":"Originally posted on blogs.interknowlogy.com"},{"title":"No more IIS7 WCF REST 404 Error!","link":{"@attributes":{"href":"https:\/\/dannydwarren.github.io\/software\/2011\/03\/09\/no-more-iis7-wcf-rest-404-error\/","rel":"alternate","type":"text\/html","title":"No more IIS7 WCF REST 404 Error!"}},"published":"2011-03-09T00:00:00+00:00","updated":"2011-03-09T00:00:00+00:00","id":"https:\/\/dannydwarren.github.io\/software\/2011\/03\/09\/no-more-iis7-wcf-rest-404-error","content":"<p>Originally posted on <a href=\"http:\/\/blogs.interknowlogy.com\/2011\/03\/09\/no-more-iis7-wcf-rest-404-error\/\">blogs.interknowlogy.com<\/a><\/p>\n\n<p>Recently I\u2019ve been trying to host a WCF REST .NET 4.0 service in IIS7. I downloaded the template for VS2010 used for creating REST services as explained <a href=\"http:\/\/christopherdeweese.com\/blog2\/post\/drop-the-soap-wcf-rest-and-pretty-uris-in-net-4\">here<\/a>. Running the sample application found on that <a href=\"http:\/\/christopherdeweese.com\/blog2\/post\/drop-the-soap-wcf-rest-and-pretty-uris-in-net-4\">website<\/a> worked fine from VS2010. I then switched to hosting the service in IIS7. The result however was a 404 error, not exactly what I was hoping for. My coworker Dan Hanan tried the same thing on his machine with complete success. We looked at the service configuration, IIS7 settings, among other obscure settings without success. Google wasn\u2019t especially helpful since most of the results kept saying things like \u201cadd an *.svc file\u201d (which is not required\/used in .NET 4.0 REST services), others mentioned changing an IIS7 handler mapping so that the *.svc file would not be required, but none of these solutions helped. Tracing didn\u2019t help me get any closer either.<\/p>\n\n<p>Still the problem felt like a server issue, so I tried to narrow the search. I eventually came across this <a href=\"http:\/\/jdscolam.blogspot.com\/2011\/01\/wcf-rest-404-issue.html\">blog<\/a>. There was a <a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/is\/wcf\/thread\/5dc66deb-5f01-44ca-9e79-49f2a1d91f2e\">link to a question<\/a> on the MSDN forums that mentions a handler mapping named \u201csvc-Integrated-4.0\u2033. When I looked at my handler mappings in IIS7 it did not contain that mapping. The last post on that question contained a link to the MSDN post <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms751527.aspx\">One-Time Setup Procedure for the Windows Communication Foundation Samples<\/a> explaining some steps that need to be taken in order to use the .NET 4.0 WCF services in IIS7. When I tried to run the aspnet_regiss and ServiceModelReg.exe commands explained in the post I only ran into more errors.<\/p>\n\n<p>Frustrated I talked to my coworker Travis Schilling to see if he had any ideas and to see if his IIS7 contained the mapping. His IIS7 did contain the mapping and he was pretty sure it was installed by VS2010. After a little discussion we decided it would be best to do a repair install of VS2010. After the repair installation the mapping showed up in IIS7 and the REST service ran as expected. I\u2019m not sure why the handler mapping wasn\u2019t installed before, I can only assume it\u2019s because I installed VS2010 before I installed IIS7.<\/p>","author":{"name":"Danny Warren","email":"dannydwarren@gmail.com"},"category":[{"@attributes":{"term":"software"}},{"@attributes":{"term":"cross-post-interknowlogy"}}],"summary":"Originally posted on blogs.interknowlogy.com"}]}