Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
652 lines (415 sloc) 44.8 KB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Out Of Scope</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description">
<meta property="og:type" content="website">
<meta property="og:title" content="Out Of Scope">
<meta property="og:url" content="http://cgack.github.io/index.html">
<meta property="og:site_name" content="Out Of Scope">
<meta property="og:description">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Out Of Scope">
<meta name="twitter:description">
<link rel="alternative" href="/atom.xml" title="Out Of Scope" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/style.css" type="text/css">
<!-- Google Analytics -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-24968915-3', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
</head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">Out Of Scope</a>
</h1>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="Search"></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://cgack.github.io"></form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-elevenfifty" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2015/11/16/elevenfifty/" class="article-date">
<time datetime="2015-11-16T20:09:45.000Z" itemprop="datePublished">2015-11-16</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2015/11/16/elevenfifty/">Eleven Fifty Academy</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Last week I was fortunate enough to join with the two Daves from <a href="http://www.getfretless.com/" target="_blank" rel="external">getfretless</a> and help them to teach a group of developers the core concepts of <a href="https://angularjs.org/" target="_blank" rel="external">angular.js</a> and <a href="https://nodejs.org" target="_blank" rel="external">node.js</a>. </p>
<p>This was a full five-day course where most students stayed and learned for more than 8 hours per day at the campus of the <a href="http://elevenfiftyacademy.org/" target="_blank" rel="external">Eleven Fifty Academy</a>.</p>
<p>I had a wonderful time helping students create a real application with a Node.js REST API, and well constructed angular front-end. I will be continuing to teach courses like this in the future at Eleven Fifty and hope to have many more classes that were as receptive and eager to learn JavaScript as this one. Thanks to the class for a great week.</p>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2015/11/16/elevenfifty/" data-id="cih2eb2v30004wklgovvreall" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/angular/">angular</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/code/">code</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/node/">node</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/teaching/">teaching</a></li></ul>
</footer>
</div>
</article>
<article id="post-Introduction To React - Officially Published!" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2015/09/16/Introduction To React - Officially Published!/" class="article-date">
<time datetime="2015-09-16T13:02:00.000Z" itemprop="datePublished">2015-09-16</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2015/09/16/Introduction To React - Officially Published!/">Introduction To React - Officially Published!</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>It has been a while since I posted that I was writing a second book, <a href="http://www.amazon.com/Introduction-React-Cory-Gackenheimer/dp/1484212460/ref=sr_1_1?ie=UTF8&amp;qid=1442342177&amp;sr=8-1" target="_blank" rel="external">Introduction to React</a>. Today it is officially available in both ebook and paperback formats. I hope you enjoy reading the book and the introduction to React as much as I enjoyed writing it. </p>
<div class="separator" style="clear: both; text-align: center;"><a href="http://www.amazon.com/Introduction-React-Cory-Gackenheimer-ebook/dp/B00ZHM53D0/ref=mt_kindle?_encoding=UTF8&amp;me=" target="_blank" rel="external"><img src="http://3.bp.blogspot.com/-kYR8CGzuJkY/Vflnxo7nqnI/AAAAAAAASak/n37BY3dmMYM/s320/9781484212462.tif" alt=""></a></div>
<p>_<a href="http://www.amazon.com/Introduction-React-Cory-Gackenheimer-ebook/dp/B00ZHM53D0/ref=mt_kindle?_encoding=UTF8&amp;me=" target="_blank" rel="external">Introduction to React</a>_ teaches you React, the JavaScript framework created by developers at Facebook, to solve the problem of building complex user interfaces in a consistent and maintainable way. React.js shrugs away common front-end conventions in an effort to make things more efficient – use Introduction to React to learn about this framework and more today. </p>
<p>You will learn what React is, and why it was created to solve the problems it does. You will get to know the React API, and be introduced to React’s specific JavaScript extension, JSX, which makes authoring React components easier and maintainable. You will also learn how you can test your React applications and the tools you can use while building. Once you understand these core concepts, you can build applications with React. This will help you cement the ideas and fundamentals of React and prepare you to utilize React in your own use case. </p>
<h3 id="What_you’ll_learn">What you’ll learn</h3><p>How to use React to maintain complex user interfaces in an efficient way<br>How to integrate existing user interfaces and move forward with React<br>How to manage application architecture using Flux<br>How to easily utilize JSX, React’s JavaScript extension </p>
<h3 id="Who_this_book_is_for">Who this book is for</h3><p>Introduction to React is for a web developer who is comfortable writing JavaScript and CSS. You will apply JavaScript to build web pages that utilize the paradigm shifting React framework. Introduction to React will provide you with the tools to create maintainable complex user interfaces.</p>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2015/09/16/Introduction To React - Officially Published!/" data-id="cih2eb2vv000jwklgcfasw1hy" class="article-share-link">Share</a>
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Book/">Book</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/React/">React</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ReactJS/">ReactJS</a></li></ul>
</footer>
</div>
</article>
<article id="post-Trying to Run React Native Android on Windows" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2015/09/15/Trying to Run React Native Android on Windows/" class="article-date">
<time datetime="2015-09-15T18:20:00.000Z" itemprop="datePublished">2015-09-15</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2015/09/15/Trying to Run React Native Android on Windows/">Trying to Run React Native Android on Windows</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>React Native for Android was released yesterday. As soon as I spotted the release I wanted to give it a whirl on my work PC. I did the npm install and got started right away, only to find that the init command was failing. I expected this because officially React Native isn’t supported on windows but there is this master tracking issue for this in Github =&gt; <a href="https://github.com/facebook/react-native/issues/2693" target="_blank" rel="external">https://github.com/facebook/react-native/issues/2693</a> … anyway.. so I got an error: </p>
<pre><code>events.js:<span class="number">141</span> throw er; // Unhandled 'error' event ^Error: spawn npm ENOENT at exports._errnoException (util.js:<span class="number">837</span>:<span class="number">11</span>) at Process.ChildProcess._handle.onexit (internal/child_process.js:<span class="number">178</span>:<span class="number">32</span>) at onErrorNT (internal/child_process.js:<span class="number">344</span>:<span class="number">16</span>) at doNTCallback2 (<span class="keyword">node</span>.<span class="identifier">js:</span><span class="title">429</span>:<span class="number">9</span>) at process._tickCallback (<span class="keyword">node</span>.<span class="identifier">js:</span><span class="title">343</span>:<span class="number">17</span>) at Function.Module.runMain (module.js:<span class="number">477</span>:<span class="number">11</span>) at startup (<span class="keyword">node</span>.<span class="identifier">js:</span><span class="title">117</span>:<span class="number">18</span>) at <span class="keyword">node</span>.<span class="identifier">js:</span><span class="title">951</span>:<span class="number">3</span>
</code></pre><p>Not being one to give up right away I wanted to fix it. I noticed from the error message that the spawn of npm using (‘child_process’).spawn was causing the error. Luckily, npm contains several modules that can be a drop-in replacement for this and I just grabbed the module <a href="https://www.npmjs.com/package/cross-spawn" target="_blank" rel="external">cross-spawn</a>. I needed to fix this inside the react-native-cli/index.js file. </p>
<p>This fixed this first error. Next, I encountered an error where the script could not find my Android SDK. This is pretty much expected because on my machine I’m running Android Studio so it is the only place that knows about the SDK. The quick fix here is to find the path to the Android SDK and add that to a new environment variable ANDROID_HOME. I also needed to make sure that my JAVA_HOME environment variable was correct so that the build process would be able to find it. </p>
<p>Awesome, now I’m nearly there. I started my JS Server to watch for changes, I’m using Console 2 and Git Bash here </p>
<pre><code>$ react-<span class="keyword">native</span> start
</code></pre><p>Then in another console tab I run: </p>
<pre><code>$ react-<span class="keyword">native</span> run-android
</code></pre><p>Result:<br>It works, but not really. </p>
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-DVqOO3REEQY/Vfhf8E5nZxI/AAAAAAAASZc/EdEpHiH3OXs/s1600/Screenshot_20150915-140937.png" target="_blank" rel="external"><img src="http://3.bp.blogspot.com/-DVqOO3REEQY/Vfhf8E5nZxI/AAAAAAAASZc/EdEpHiH3OXs/s320/Screenshot_20150915-140937.png" alt=""></a></div>
<div><br>First it seems to think that I’m not running my JS server, but then it kicks in to fetch the file changes. </div>
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-0Kk23HNkt3A/VfhgAcdfCuI/AAAAAAAASZk/ctaW5qagi00/s1600/Screenshot_20150915-140945.png" target="_blank" rel="external"><img src="http://3.bp.blogspot.com/-0Kk23HNkt3A/VfhgAcdfCuI/AAAAAAAASZk/ctaW5qagi00/s320/Screenshot_20150915-140945.png" alt=""></a></div>
<div>This gets my hopes up. but then goes back to the red screen of fail. Why did it do this?!!? Well it seems that there may be an underlying issue with the way that the packager works on Windows based on the error that the packager spits out. I’m guessing that there is a simple thing to get this to work, but for now I’m moving back to OSX to do React Native.<br><br></div>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2015/09/15/Trying to Run React Native Android on Windows/" data-id="cih2eb2vg000ewklg41sj7ypd" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-Introduction to React" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2015/07/09/Introduction to React/" class="article-date">
<time datetime="2015-07-09T18:48:00.000Z" itemprop="datePublished">2015-07-09</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2015/07/09/Introduction to React/">Introduction to React</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>A few months ago I was approached by my editor from <a href="http://www.amazon.com/Node-js-Recipes-Problem-Solution-Approach-Development/dp/1430260580/ref=la_B00J3AF2VA_1_1?s=books&amp;ie=UTF8&amp;qid=1436188426&amp;sr=1-1" target="_blank" rel="external">Node.js Recipes</a> to discuss the possiblity of writing another book. This coincided with a time where I had been spending time working with React for side projects, and it just so happened that the title which I would be writing is <a href="http://www.apress.com/9781484212462" target="_blank" rel="external">Introduction To React</a>. </p>
<p><a href="http://cgack.files.wordpress.com/2015/07/intro_to_react.jpg" target="_blank" rel="external"><img src="http://cgack.files.wordpress.com/2015/07/intro_to_react.jpg?w=776" alt="intro_to_react"></a> </p>
<p> So I decided to write the book and spent the next 11 weeks writing it. I am currently finishing up the edits and the book is due to be published in September. I’ll be sure to update as the publication date approaches.</p>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2015/07/09/Introduction to React/" data-id="cih2eb2vq000iwklgb4gf5hu5" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-dev.Objective()" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2015/02/25/dev.Objective()/" class="article-date">
<time datetime="2015-02-25T15:42:00.000Z" itemprop="datePublished">2015-02-25</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2015/02/25/dev.Objective()/">dev.Objective()</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Every time I attend a conference or get bogged down following all the new tools and frameworks that are coming out in the front-end development world (which seems to happen daily) - I decide that I want to write a talk about how we as developers can optimize our front-ends without rewriting everything from scratch. I finally was able to get an abstract for a talk that will address such things written a month or so ago. I then decided to submit this talk to DevObjective, a conference happening in Minnesota in May. I feel that this talk might hit well with the audience as one of the things that stood out for me from the conference site was the following sentence: </p>
<blockquote>
<p><span style="background-color: white; color: #77746e; font-family: myriad-pro, sans-serif; font-size: 14px; line-height: 18px;">Cutting edge stuff is awesome, but most people are more concerned about getting their jobs done now</span></p>
</blockquote>
<p>I feel that this hits home with me, as I love to just be able to get my job done now. I’m not saying that we can’t enjoy the advances made by new and modern frameworks, even if we are working on a years/or decades old project, but we can make smart choices to modernize our applications. Luckily my talk was accepted and I’ll be speaking about “Front-end Modernization for Mortals” in May at Dev Objective. </p>
<p>I’m excited to be joining a <a href="http://www.devobjective.com/speakers/" target="_blank" rel="external">group of speakers</a> who will be discussing a <a href="http://www.devobjective.com/sessions/" target="_blank" rel="external">wide variety of topics</a> from which any developer should be able to gain some valuable knowledge for their daily jobs. If these sound like something you would be interested in, you should join me at the conference in May! </p>
<p>At the time of this writing, there is still time for the early bird pricing if you click the banner below: </p>
<p><a href="http://devobjective.com/" target="_blank" rel="external"><img src="http://devobjective.com/2015/assets/Image/badges/devobjective-468x62.png" alt=""></a></p>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2015/02/25/dev.Objective()/" data-id="cih2eb2vd000dwklgdta28oed" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-Firefox Developer Edition" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2014/11/04/Firefox Developer Edition/" class="article-date">
<time datetime="2014-11-04T21:24:00.000Z" itemprop="datePublished">2014-11-04</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2014/11/04/Firefox Developer Edition/">Firefox Developer Edition</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p><span style="font-family: inherit;">In my most recent talk at jQuery Chicago, I spoke about the promising future of debugging that involved the <a href="https://developer.mozilla.org/en-US/docs/Tools/Firefox_Tools_Adapter" target="_blank" rel="external">Firefox Tools Adapter</a> which is a brilliant step forward in the world of remote debugging.</span><br><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="line-height: 22px;"></span></span></p>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; margin-bottom: 15px; margin-top: 15px; padding: 0px;"><span style="font-family: inherit;"></span></div>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; margin-bottom: 15px; margin-top: 15px; padding: 0px;"><span style="font-family: inherit;">This was under the radar until the day before my talk when it was <a href="https://hacks.mozilla.org/2014/09/firefox-tools-adapter/" target="_blank" rel="external">announced</a> on the Mozilla Hacks blog. So it suddenly became a bit more mainstream. </span><br><span style="font-family: inherit;"><br></span><span style="font-family: inherit;">Yesterday Mozilla has <a href="https://blog.mozilla.org/blog/2014/11/03/the-first-browser-dedicated-to-developers-is-coming-2/" target="_blank" rel="external">teased</a> a developer focused version of Firefox they have codenamed #fx10 in a theatrical-like trailer. I for one am excited to see what sort of product arrives with this new browser.</span><br><span style="font-family: inherit;"><br></span></div>
<p> </p>
<div class="separator" style="clear: both; text-align: center;"><object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://ytimg.googleusercontent.com/vi/Ehv5u-5rE8c/0.jpg" height="266" width="320"><param name="movie" value="https://youtube.googleapis.com/v/Ehv5u-5rE8c&amp;source=uds"><param name="bgcolor" value="#FFFFFF"><param name="allowFullScreen" value="true"><embed width="320" height="266" src="https://youtube.googleapis.com/v/Ehv5u-5rE8c&amp;source=uds" type="application/x-shockwave-flash" allowfullscreen="true"></object></div>
<div class="separator" style="clear: both; text-align: left;">So it turns out that this <a href="https://developer.mozilla.org/en-US/Firefox/Developer_Edition" target="_blank" rel="external">Firefox Developer Edition</a> will be a replacement for the current Aurora Channel. What it will bring is a separate profile so it can run alongside the stable version of Firefox without having to mess with custom profiles. It will have easy access to developer tools, and looks as though the Firefox Tools Adapter will be built in to the product directly. This is a great advancement for those looking to use the cutting edge developer tools from Firefox on the web</div>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2014/11/04/Firefox Developer Edition/" data-id="cih2eb2wa000swklg21vv1q87" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-jQuery-Mobile" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2014/10/07/jQuery-Mobile/" class="article-date">
<time datetime="2014-10-07T18:26:56.000Z" itemprop="datePublished">2014-10-07</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2014/10/07/jQuery-Mobile/">jQuery Mobile</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>I have been fortunate enough to have the opportunity to speak at several jQuery Conferences in the past two years.<br>The focus of most of my talks, and most of my day-to-day work actually, is based around building mobile web applications<br>with jQuery Mobile and Cordova, two wonderful open source projects. During these conferences I was able to meet<br>and get to know many new friends and fellow developers, including many of the folks on the jQuery team. Eventually,<br>while in Vienna at jQuery Europe I was talking with Alex, the lead of jQuery Mobile and he suggested that I start<br>contributing to the project.</p>
<p>I have been fortunate enough to have an employer who is generous enough to allow my some time to donate to the project<br>and I have been contributing through bug-triage, pull requests, and generally just trying not to get in the way since<br>March of this year. I have already learned a ton and am always encouraged by the support of the jQuery team and the<br>advice they give. </p>
<p>Yesterday - 6 October 2014 - I was officially made a member of the jQuery Team. I am honored to have this opportunity<br>and am excited to join the team of people whom I have come to know over the past two years. I am also pretty excited about the opportunity to continue to do what I have been doing all this year, just now I have access to the GitHub repositories.</p>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2014/10/07/jQuery-Mobile/" data-id="cih2eb2uu0002wklg55xej00y" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-Nodejs-Recipes-Screencast-Edition" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2014/07/09/Nodejs-Recipes-Screencast-Edition/" class="article-date">
<time datetime="2014-07-09T04:00:00.000Z" itemprop="datePublished">2014-07-09</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2014/07/09/Nodejs-Recipes-Screencast-Edition/">Node.js Recipes Screencast Edition</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Last year, I wrote <a href="http://www.amazon.com/Node-js-Recipes-Problem-Solution-Approach-Development/dp/1430260580" target="_blank" rel="external">Node.js Recipes</a> in a relatively short time span. It was accomplished in something like 120 days, or about 10 days per chapter. This was exhausting and I vowed to my wife that I would not write another book at that pace again.</p>
<p>Then I was tempted. My publisher asked me if I had interest in several titles, and man did I, but after a couple days of deliberating over each one - I could not commit to the time frame.</p>
<p>Then came an introduction from someone within the publisher’s organization that proposed I create a screencast series based upon the book which I had already written. This was something I could get on board with because the material was already written (right?).</p>
<p>So I created a sample video for evaluation and we decided to move forward with another aggressive schedule to record ~6 hours of screencast based upon material in my book.</p>
<p>It turns out this was a pretty agressive and time consuming undertaking as well. Sure the material was already written, but it needed to be reworked into a standard Powerpoint format and of course I would need to be coding most of the stuff I’d already written again. All of this (with the exception of creating some of the powerpoints) was a great time and I enjoyed being able to revisit my book from an angle of a user or reader, rather than an author.</p>
<p>In the end I recorded nearly 12 hours of raw footage for the video which is being post-processed currently and should see release in the near future (no official date that I know of yet - stay tuned for that). The team at Apress has done a fantastic job with the final editing and composition, from what I have seen and I look forward to everyone getting the opportunity to check out the finished product when it is available.</p>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2014/07/09/Nodejs-Recipes-Screencast-Edition/" data-id="cih2eb2vo000hwklg4cpu73xi" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-jQuery-Conference-Talks" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2014/05/04/jQuery-Conference-Talks/" class="article-date">
<time datetime="2014-05-04T16:26:00.000Z" itemprop="datePublished">2014-05-04</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2014/05/04/jQuery-Conference-Talks/">jQuery Conference Talks</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>This winter I was fortunate enough to be able to speak at two jQuery events - First in jQuery Conference in San Diego, then in Vienna for jQuery Europe. &nbsp;The traveling is always great, and these events were top notch as far as organization, content, and attendees. I have finally added links to the slides and the video here on my blog.</p>
<p>While I always enjoy attending conferences, these two seemed to be extra engaging in that the attendees I talked with all brought a great deal of encouragement and excitement to continue to share what they know and learn.</p>
<p>I was also able to spend more time with a few of the folks I have met from the jQuery team and really see the vision of where some of the projects are headed. From this, I have even started to spend some time trying to triage and/or fix issues on the jQuery Mobile project.</p>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2014/05/04/jQuery-Conference-Talks/" data-id="cih2eb2uy0003wklg0x8hc8og" class="article-share-link">Share</a>
</footer>
</div>
</article>
<article id="post-Getting-Started-With-Hapi" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2014/05/04/Getting-Started-With-Hapi/" class="article-date">
<time datetime="2014-05-04T04:00:00.000Z" itemprop="datePublished">2014-05-04</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2014/05/04/Getting-Started-With-Hapi/">Getting Started With Hapi</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>If I were to alter the content of my book <em><a href="www.amazon.com/Node-js-Recipes-A-Problem-Solution-Approach/dp/1430260580">Node.js Recipes</a></em> I would add more great examples of web frameworks. I’ve recently targeted several which I would love to use in upcoming projects. The first one I want to talk about is Hapi.</p>
<p>Hapi is a Node.js web framework that was developed by WalmartLabs/Spumko.</p>
<p>First you need to create a package.json file - <code>npm init</code> can help with this if you do not wish to configure your own.</p>
<pre><code>$&gt; <span class="built_in">npm</span> init
</code></pre><p>you will then be walked through the process to generate your package.json file.</p>
<pre><code> {
<span class="string">"name"</span>: <span class="string">"myHapiApp"</span>,
<span class="string">"version"</span>: <span class="string">"0.0.0"</span>,
<span class="string">"description"</span>: <span class="string">"Hapi"</span>,
<span class="string">"main"</span>: <span class="string">"index.js"</span>,
<span class="string">"scripts"</span>: {
<span class="string">"test"</span>: <span class="string">""</span>
},
<span class="string">"author"</span>: <span class="string">"Cory Gackenheimer &lt;c@cgack.com&gt;"</span>,
<span class="string">"license"</span>: <span class="string">"MIT"</span>
}
Is <span class="keyword">this</span> ok? (<span class="literal">yes</span>)
</code></pre><p>next you’ll need it get Hapi this is done with the command:</p>
<pre><code>npm <span class="operator"><span class="keyword">install</span> hapi <span class="comment">--save</span></span>
</code></pre><p>Now you have <code>hapi</code> in your <code>node_modules</code> directory. You now need to create your server. </p>
<pre><code><span class="keyword">var</span> Hapi = <span class="built_in">require</span>(<span class="string">'hapi'</span>);
<span class="keyword">var</span> server = Hapi.createServer(<span class="string">'localhost'</span>, <span class="number">8080</span>);
server.start();
</code></pre><p>If you are to start this server <code>node .</code> or <code>node index.js</code> and navigate to <code>http://localhost:8080</code> at this point you would get <code>{&quot;statusCode&quot;:404,&quot;error&quot;:&quot;Not Found&quot;}</code> because you have not set up any routing in your server. To add routes you need to use the <code>server.route</code> method. Here I’ll add a route we could use to simulate an API GET request, and the we’ll also see serving files from a static directory.</p>
<pre><code><span class="keyword">var</span> <span class="type">Hapi</span> = require('hapi');
<span class="keyword">var</span> server = <span class="type">Hapi</span>.createServer('localhost', <span class="number">8080</span>);
server.route({
<span class="keyword">method</span>: '<span class="type">GET</span>',
path: '/api/{path*}',
handler: function(request, reply) {
reply('<span class="type">API</span> request ' + request.url.path);
}
});
server.route({
<span class="keyword">method</span>: '<span class="type">GET</span>',
path: '/{path*}',
handler: {
directory: {
path: './<span class="keyword">static</span>',
index: <span class="literal">true</span>
}
}
});
server.start();
</code></pre><p>Now if you navigate to <code>http://localhost:8080/api/foo</code> you will get a response with that path. If you instead try to hit a static page, i.e. <code>http://localhsot:8080/</code> -&gt; <code>./static/index.html</code> you have set up in your local <code>./static</code> directory you will get that file returned to your web browser .</p>
<p>That is the quick getting started for Hapi if you want to use it to build a web server. I have enjoyed using it and the freedom it allows me to build my applications. I look forward to utilizing it more in future projects.</p>
</div>
<footer class="article-footer">
<a data-url="http://cgack.github.io/2014/05/04/Getting-Started-With-Hapi/" data-id="cih2eb2w0000qwklg7iihjp8r" class="article-share-link">Share</a>
</footer>
</div>
</article>
<nav id="page-nav">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><span class="space">&hellip;</span><a class="page-number" href="/page/6/">6</a><a class="extend next" rel="next" href="/page/2/">Next &raquo;</a>
</nav>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">Tags</h3>
<div class="widget">
<ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/3G/">3G</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Book/">Book</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/IDE/">IDE</a><span class="tag-list-count">5</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/JavaScript/">JavaScript</a><span class="tag-list-count">7</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/React/">React</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ReactJS/">ReactJS</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/angular/">angular</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/aviary/">aviary</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/chrome-os/">chrome os</a><span class="tag-list-count">11</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/cloud/">cloud</a><span class="tag-list-count">7</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/code/">code</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/coding/">coding</a><span class="tag-list-count">6</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/cr-48/">cr-48</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/css/">css</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/dev-tools/">dev tools</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/google/">google</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/html5/">html5</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/node/">node</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/teaching/">teaching</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/verizon/">verizon</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wi-fi/">wi-fi</a><span class="tag-list-count">1</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Tag Cloud</h3>
<div class="widget tagcloud">
<a href="/tags/3G/" style="font-size: 10px;">3G</a> <a href="/tags/Book/" style="font-size: 10px;">Book</a> <a href="/tags/IDE/" style="font-size: 15px;">IDE</a> <a href="/tags/JavaScript/" style="font-size: 18.33px;">JavaScript</a> <a href="/tags/React/" style="font-size: 10px;">React</a> <a href="/tags/ReactJS/" style="font-size: 10px;">ReactJS</a> <a href="/tags/angular/" style="font-size: 10px;">angular</a> <a href="/tags/aviary/" style="font-size: 10px;">aviary</a> <a href="/tags/chrome-os/" style="font-size: 20px;">chrome os</a> <a href="/tags/cloud/" style="font-size: 18.33px;">cloud</a> <a href="/tags/code/" style="font-size: 10px;">code</a> <a href="/tags/coding/" style="font-size: 16.67px;">coding</a> <a href="/tags/cr-48/" style="font-size: 13.33px;">cr-48</a> <a href="/tags/css/" style="font-size: 10px;">css</a> <a href="/tags/dev-tools/" style="font-size: 11.67px;">dev tools</a> <a href="/tags/google/" style="font-size: 10px;">google</a> <a href="/tags/html5/" style="font-size: 11.67px;">html5</a> <a href="/tags/node/" style="font-size: 10px;">node</a> <a href="/tags/teaching/" style="font-size: 10px;">teaching</a> <a href="/tags/verizon/" style="font-size: 10px;">verizon</a> <a href="/tags/wi-fi/" style="font-size: 10px;">wi-fi</a>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Archives</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/11/">November 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/09/">September 2015</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/07/">July 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/02/">February 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/11/">November 2014</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/10/">October 2014</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/07/">July 2014</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/05/">May 2014</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/02/">February 2014</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/11/">November 2013</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/09/">September 2013</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/08/">August 2013</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/03/">March 2013</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/01/">January 2013</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/12/">December 2012</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/11/">November 2012</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/10/">October 2012</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/08/">August 2012</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/07/">July 2012</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/05/">May 2012</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/01/">January 2012</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/12/">December 2011</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/11/">November 2011</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/10/">October 2011</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/09/">September 2011</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/08/">August 2011</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/07/">July 2011</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/06/">June 2011</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/05/">May 2011</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/04/">April 2011</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/03/">March 2011</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2011/02/">February 2011</a><span class="archive-list-count">6</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">Recents</h3>
<div class="widget">
<ul>
<li>
<a href="/2015/11/16/elevenfifty/">Eleven Fifty Academy</a>
</li>
<li>
<a href="/2015/09/16/Introduction To React - Officially Published!/">Introduction To React - Officially Published!</a>
</li>
<li>
<a href="/2015/09/15/Trying to Run React Native Android on Windows/">Trying to Run React Native Android on Windows</a>
</li>
<li>
<a href="/2015/07/09/Introduction to React/">Introduction to React</a>
</li>
<li>
<a href="/2015/02/25/dev.Objective()/">dev.Objective()</a>
</li>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
&copy; 2015 Cory Gackenheimer<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
</nav>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js" type="text/javascript"></script>
<script src="/js/script.js" type="text/javascript"></script>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.