PageSourceSearch

https://adampresley.github.io/page2/

html adampresley.github.io collected 2026-10-03 08:32:36 UTC 16,655 bytes, 349 lines download raw bytes

1<!DOCTYPE html>
2<html>
3
4  <head>
5  <meta charset="utf-8">
6  <!-- (1) Optimize for mobile versions: http://goo.gl/EOpFl -->
7  <meta name="viewport" content="width=device-width, initial-scale=1.0">
8  <!-- (1) force latest IE rendering engine: bit.ly/1c8EiC9 -->
9  <meta http-equiv="X-UA-Compatible" content="IE=edge">
10
11  <title>Adam.Blog()</title>
12  <meta name="description" content="Adam Presley's blog" />
13
14  <meta name="HandheldFriendly" content="True" />
15  <meta name="MobileOptimized" content="320" />
16  <meta name="apple-mobile-web-app-capable" content="yes">
17  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
18  
19    <meta name="twitter:card" content="summary" />
20    <meta name="twitter:site" content="@adampresley" />
21    <meta name="twitter:title" content="Adam.Blog()" />
22    <meta name="twitter:image" content="/assets/adampresley/images/adam-bowtie.jpg" />
23    
24    <meta name="twitter:description" content="Adam Presley's blog" />
25    
26  
27
28  <meta property="og:site_name" content="Adam.Blog()" />
29  <meta property="og:title" content="Adam.Blog()"/>
30  
31  <meta property="og:description" content="Adam Presley's blog" />
32  
33  <meta property="og:image" content="/assets/adampresley/images/adam-bowtie.jpg" />
34  <meta property="og:url" content="/page2/" >
35  <meta property="og:type" content="blog" />
36  
37
38  <link rel="canonical" href="/page2/">
39
40  <link rel="shortcut icon" href="/assets/images/favicon.ico">
41  <link rel="stylesheet" href="//brick.a.ssl.fastly.net/Linux+Libertine:400,400i,700,700i/Open+Sans:400,400i,700,700i">
42  <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
43
44  <link rel="stylesheet" type="text/css" media="screen" href="/css/main.css" />
45  <link rel="stylesheet" type="text/css" media="print" href="/css/print.css" />
46</head>
47
48
49  <body>
50
51    <!-- header start -->
52
53<a href="" class="logo-readium"><span class="logo" style="background-image: url(/assets/adampresley/images/adam-bowtie.jpg)"></span></a>
54
55<!-- header end -->
56
57
58    <!-- content start -->
59
60    <div class="page-content">
61      <div class="wrapper">
62        <div class="teaserimage">
63    <div class="teaserimage-image" style="background-image: url(/assets/images/code-background-screenshot.png)">
64        Teaser Image
65    </div>
66</div>
67
68<header class="blog-header">
69    
70      <a class="blog-logo" href="" style="background-image: url('/assets/adampresley/images/adam-bowtie.jpg')">Adam.Blog()</a>
71    
72    <h1 class="blog-title">Adam.Blog()</h1>
73    <h2 class="blog-description">Adam Presley's blog</h2>
74    <div class="custom-links">
75      
76        
77            <a class="icon-twitter" href="https://twitter.com/adampresley"  title="Follow me on twitter"">
78              <i class="fa fa-twitter"></i>
79            </a>
80            &nbsp;&nbsp;·&nbsp;&nbsp;
81        
82      
83        
84            <a class="icon-github" href="https://github.com/adampresley"  title="Fork me on github"">
85              <i class="fa fa-github"></i>
86            </a>
87            &nbsp;&nbsp;·&nbsp;&nbsp;
88        
89      
90        
91            <a class="icon-google-plus" href="https://plus.google.com/+AdamPresley/posts"  title="Add me on google+"">
92              <i class="fa fa-google-plus"></i>
93            </a>
94            &nbsp;&nbsp;·&nbsp;&nbsp;
95        
96      
97      <a href="/about/">About</a>
98    </div>
99</header>
100
101
102<main class="content" role="main">
103
104    
105
106    <div class="cf frame">
107      
108        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
109          <div class="article-item">
110            <header class="post-header">
111              <h2 class="post-title" itemprop="name"><a href="/2015/02/16/waiting-for-goroutines-to-finish-running-before-exiting.html" itemprop="url">Waiting For Goroutines to Finish Running Before Exiting</a></h2>
112            </header>
113            <section class="post-excerpt" itemprop="description">
114              <p>Image copyright Faizal Sugi Goroutines are primitives in Google’s Go language that allow a developer to easily write concurrent applications to make use of modern multi-core CPUs. Because these are baked into the language and super easy to use it becomes simple to make quick use of them in your...</p>
115            </section>
116            <div class="post-meta">
117              <time datetime="16 February 2015">16 February 2015</time>
118<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
119            </div>
120          </div>
121        </article>
122      
123        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
124          <div class="article-item">
125            <header class="post-header">
126              <h2 class="post-title" itemprop="name"><a href="/2015/02/08/using-a-middleware-in-your-go-web-applications.html" itemprop="url">Using A Middleware in Your Go Web Applications</a></h2>
127            </header>
128            <section class="post-excerpt" itemprop="description">
129              <p>Image copyright Ryan McGuire Middleware in Go HTTP applications is a way to chain HTTP handlers in a sequence to alter the request and response chain prior to your primary handler getting it. This is useful for activities such as logging, input sanitization, handling authorization and security, and more. This...</p>
130            </section>
131            <div class="post-meta">
132              <time datetime="08 February 2015">08 February 2015</time>
133<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
134            </div>
135          </div>
136        </article>
137      
138        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
139          <div class="article-item">
140            <header class="post-header">
141              <h2 class="post-title" itemprop="name"><a href="/2015/01/30/my-first-svn-post-commit-hook-in-go-part-2.html" itemprop="url">My First SVN Post-Commit Hook in Go - Part 2</a></h2>
142            </header>
143            <section class="post-excerpt" itemprop="description">
144              <p>Image copyright Ryan McGuire This is part two of the two part series on how I created a Subversion post-commit hook using Go, and post a message in a HipChat room. This post follows part one by talking about how to post the message to HipChat. I did this for...</p>
145            </section>
146            <div class="post-meta">
147              <time datetime="30 January 2015">30 January 2015</time>
148<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
149            </div>
150          </div>
151        </article>
152      
153        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
154          <div class="article-item">
155            <header class="post-header">
156              <h2 class="post-title" itemprop="name"><a href="/2015/01/25/my-first-svn-post-commit-hook-in-go-part-1.html" itemprop="url">My First SVN Post-Commit Hook in Go - Part 1</a></h2>
157            </header>
158            <section class="post-excerpt" itemprop="description">
159              <p>Image copyright Ryan McGuire This is part one of a two part series on how I created a Subversion post-commit hook using Go, and post a message in a HipChat room. I did this for the teams at my day job. Please note that certain pieces of code have been...</p>
160            </section>
161            <div class="post-meta">
162              <time datetime="25 January 2015">25 January 2015</time>
163<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
164            </div>
165          </div>
166        </article>
167      
168        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
169          <div class="article-item">
170            <header class="post-header">
171              <h2 class="post-title" itemprop="name"><a href="/2015/01/21/javascript-multiselect-widget-with-no-jquery.html" itemprop="url">JavaScript Multiselect Widget, With No jQuery!</a></h2>
172            </header>
173            <section class="post-excerpt" itemprop="description">
174              <p>Last night I decided to write a multi-select JavaScript widget. I need such a widget to allow the users of a little app I am working on to select one or more items. I wanted it to look a little more pretty than the default &lt;select&gt; box and I also...</p>
175            </section>
176            <div class="post-meta">
177              <time datetime="21 January 2015">21 January 2015</time>
178<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
179            </div>
180          </div>
181        </article>
182      
183        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
184          <div class="article-item">
185            <header class="post-header">
186              <h2 class="post-title" itemprop="name"><a href="/2014/12/18/response-to-adam-cameron-code-review.html" itemprop="url">Response To Adam Cameron's Code Review</a></h2>
187            </header>
188            <section class="post-excerpt" itemprop="description">
189              <p>A few weeks ago I submitted a response to a code puzzle on Adam Cameron’s blog that I wrote using Go. He has (finally) submitted a review! First let me say that it is about time Mr. Cameron! I have waited with bated breath! That review can be read here....</p>
190            </section>
191            <div class="post-meta">
192              <time datetime="18 December 2014">18 December 2014</time>
193<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
194            </div>
195          </div>
196        </article>
197      
198        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
199          <div class="article-item">
200            <header class="post-header">
201              <h2 class="post-title" itemprop="name"><a href="/2014/12/15/handling-ctrl-c-in-go-command-line-applications.html" itemprop="url">Handling CTRL+C In Go Command Line Applications</a></h2>
202            </header>
203            <section class="post-excerpt" itemprop="description">
204              <p>Command line and server-style application often allow you to press a key combination, such as CTRL+C to gracefully exit. In Go this is a pretty easy task to accomplish, and in this entry I will show you how you can add this ability in your own applications.
205
206</p>
207            </section>
208            <div class="post-meta">
209              <time datetime="15 December 2014">15 December 2014</time>
210<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
211            </div>
212          </div>
213        </article>
214      
215        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
216          <div class="article-item">
217            <header class="post-header">
218              <h2 class="post-title" itemprop="name"><a href="/2014/12/14/deploying-my-first-go-application-to-heroku.html" itemprop="url">Deploying My First Go Application to Heroku</a></h2>
219            </header>
220            <section class="post-excerpt" itemprop="description">
221              <p>For the last week or so I’ve been converting a site I manage from WordPress to a simple Go application. There are three reasons I want to do this. WordPress has been extreme overkill for what I actually need Performance. WordPress on a shared host is just not fast enough...</p>
222            </section>
223            <div class="post-meta">
224              <time datetime="14 December 2014">14 December 2014</time>
225<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
226            </div>
227          </div>
228        </article>
229      
230        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
231          <div class="article-item">
232            <header class="post-header">
233              <h2 class="post-title" itemprop="name"><a href="/2014/11/18/returning-an-http-server-from-a-function-in-go.html" itemprop="url">Returning an HTTP Server From a Function in Go</a></h2>
234            </header>
235            <section class="post-excerpt" itemprop="description">
236              <p>When building web applications in Go the most common example is one that sets up a handler for a specific URL route (endpoint) then fires up the HTTP server to listen for requests. It looks like this. package main import ( &quot;net/http&quot; &quot;github.com/adampresley/myproject/controllers/versionController&quot; ) func main() { http.HandleFunc(&quot;/&quot;, versionController.GetVersion) http.ListenAndServe(&quot;0.0.0.0:8080&quot;,...</p>
237            </section>
238            <div class="post-meta">
239              <time datetime="18 November 2014">18 November 2014</time>
240<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
241            </div>
242          </div>
243        </article>
244      
245        <article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
246          <div class="article-item">
247            <header class="post-header">
248              <h2 class="post-title" itemprop="name"><a href="/2014/11/14/no-weapon-formed-debut-album-coming-soon.html" itemprop="url">No Weapon Formed Debut Album Coming Soon!</a></h2>
249            </header>
250            <section class="post-excerpt" itemprop="description">
251              <p>My brother and his band No Weapon Formed will be releasing their debut album soon. The title of the album undetermined still but you can find a preview track YouTube named Phoenix. Go check it out and give it a like. These guys certainly have a great rock sound!
252
253
254
255</p>
256            </section>
257            <div class="post-meta">
258              <time datetime="14 November 2014">14 November 2014</time>
259<!--            <span class="post-tags-set">on <span class="post-tag-">, <a href="/tag/"></a></span></span>-->
260            </div>
261          </div>
262        </article>
263      
264    </div>
265
266    <nav class="pagination" role="navigation">
267      
268        <a class="newer-posts" href="/page3">&larr; Older posts</a>
269      
270      <span class="page-number">Page 2 of 34</span>
271      
272        
273          <a class="older-posts" href="/">Newer posts &rarr;</a>
274        
275      
276    </nav>
277
278
279    <!-- 
280     -->
281
282</main>
283
284      </div>
285    </div>
286
287    <!-- content end -->
288
289    <!-- footer start -->
290
291<footer class="site-footer">
292  <a class="subscribe" href="/feed.xml"> <span class="tooltip"> <i class="fa fa-rss"></i> Subscribe!</span></a>
293    <div class="inner">
294         <section class="copyright">All content copyright <a href="mailto:[email protected]"></a> &copy; 2015 &bull; All rights reserved. The opinions expressed on this site are my own, and do not reflect the opinion of my employer.</section>
295         <section class="poweredby">Made with <a href="http://jekyllrb.com"> Jekyll</a></section>
296    </div>
297</footer>
298
299<!-- footer end -->
300
301    
301<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
vendor: 1 bytes, line 301
301
302<script type="text/javascript" src="/assets/js/jquery.fitvids.js"></script>
vendor: 1 bytes, line 302
302
303<script type="text/javascript" src="/assets/js/index.js"></script>
vendor: 1 bytes, line 303
303
304<script type="text/javascript" src="/assets/js/readingTime.min.js"></script>
vendor: 1 bytes, line 304
304
305<script type="text/javascript" src="/assets/adampresley/js/additionalSetup.js"></script>
305
306
307<script>
308(function ($) {
309  "use strict";
310  $(document).ready(function(){
311
312    var $window = $(window),
313    $image = $('.post-image-image, .teaserimage-image');
314
315      $window.on('scroll', function() {
316        var top = $window.scrollTop();
317
318        if (top < 0 || top > 1500) { return; }
319        $image
320          .css('transform', 'translate3d(0px, '+top/3+'px, 0px)')
321          .css('opacity', 1-Math.max(top/700, 0));
322      });
323      $window.trigger('scroll');
324
325      var height = $('.article-image').height();
326      $('.post-content').css('padding-top', height + 'px');
327
328      $('a[href*=#]:not([href=#])').click(function() {
329        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
330         && location.hostname == this.hostname) {
331          var target = $(this.hash);
332          target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
333          if (target.length) {
334            $('html,body').animate({ scrollTop: target.offset().top }, 500);
335            return false;
336          }
337        }
338      });
339
340  });
341}(jQuery));
342</script>
342
343
344
345
346    <gcse:search></gcse:search>
347  </body>
348
349</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.