<!DOCTYPE html><html><head><title>jga.me</title><!--[if lt IE 9]>
<script src="/ui/scripts/external/html5.js"></script>
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://feeds.feedburner.com/jgame"><link rel='stylesheet' href='/ui/stylesheets/reset.css'/><link rel='stylesheet' href='/ui/stylesheets/grid.css'/><link rel='stylesheet' href='/ui/stylesheets/syntax/github.css'/><link rel='stylesheet' href='/ui/stylesheets/common.css'/><link rel='stylesheet' href='/ui/stylesheets/homepage.css'/><script>var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24017782-1']);
_gaq.push(['_trackPageview']);

(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script><script>var showGitHubRibbon = function(url) {}

</script></head><body><div id="TopBar"></div><div id="Wrapper" class="container12 clearfix"><header class="container12 clearfix"><h1 class="logo grid3"><a href="/"><span class="b">&lt;</span><span class="t">jga.me</span><span class="b">/&gt;</span></a></h1><nav class="grid4 push6"><a href="/apps/">Apps</a><a href="/blog/">Blog</a><!--a(href=urls.projects()) Projects--></nav><!--<li class="grid1"><a href="http://www.github.com/jgallen23" target="_blank">Github</a></li><li class="grid1"><a href="http://www.twitter.com/jgaui" target="_blank">Twitter</a></li><li class="grid1"><a href="http://feeds.feedburner.com/jgame" target="_blank">RSS</a></li>--></header><div class="Body"><ul id="FeaturedApps" class="container12"><li class="grid4"><a href="/apps/mac/visits"><div class="grid2 alpha"><img src="/app_media/mac/visits/icon-large.png"></div><p class="info grid2 omega"><span class="t">Visits</span><span>1.1</span><span>mac</span></p></a></li><li class="grid4"><a href="/apps/ios/stockglance"><div class="grid2 alpha"><img src="/app_media/ios/stockglance/icon-large.png"></div><p class="info grid2 omega"><span class="t">StockGlance</span><span>1.0</span><span>ios</span></p></a></li><li class="grid4"><a href="/apps/ios/recurring"><div class="grid2 alpha"><img src="/app_media/ios/recurring/icon-large.png"></div><p class="info grid2 omega"><span class="t">Recurring</span><span>1.0</span><span>ios</span></p></a></li></ul><div class="container12"><section class="grid9"><h1 class="Headline"><a href="/blog/">Recent Posts</a></h1><div class="Content"><div class="Post"><div class="head"><h2 class="title"><a href="/blog/2012/02/06/logr">Logr</a></h2><div class="details clearfix"><ul class="tags grid8 alpha"><li><a href="/blog/tags/node.js">node.js</a></li></ul><span class="grid1 omega date">2/6/2012</span></div></div><div class="body"><p>I've released a lightweight, but extensible, logging and debugging library for node.js called <a href="http://jgallen23.github.com/logr/">Logr</a>.</p>

<p>Check out logr <a href="http://jgallen23.github.com/logr/">here</a></p></div><a href="/blog/2012/02/06/logr#Comments" class="leaveComment">Leave a comment</a></div><div class="Post"><div class="head"><h2 class="title"><a href="/blog/2012/01/30/markx">Markx</a></h2><div class="details clearfix"><ul class="tags grid8 alpha"><li><a href="/blog/tags/node.js">node.js</a></li></ul><span class="grid1 omega date">1/30/2012</span></div></div><div class="body"><p>I've released a command line utility for node.js called markx.  Markx takes markdown files with code snippets and turns them into html.  This is handy for github readme files, github pages and creating flat file blog posts.</p>

<p>Check out markx <a href="http://jgallen23.github.com/markx/">here</a></p></div><a href="/blog/2012/01/30/markx#Comments" class="leaveComment">Leave a comment</a></div><div class="Post"><div class="head"><h2 class="title"><a href="/blog/2012/01/12/visits-1.3">Visits 1.3 Released</a></h2><div class="details clearfix"><ul class="tags grid8 alpha"><li><a href="/blog/tags/visits">visits</a></li></ul><span class="grid1 omega date">1/12/2012</span></div></div><div class="body"><p><a href="/apps/mac/visits">Visits</a> 1.3 is now in the app store.  You can grab it <a href="http://bit.ly/o2N8r8">here</a></p>

<h2>Changelog:</h2>

<p>New:</p>

<ul>
<li>Added Bounce Rates and Time on Page for Top Content</li>
<li>Added Browser Stats</li>
<li>Added Location Stats</li>
<li>Added option to start on login</li>
</ul>

<p>Fixed:</p>

<ul>
<li>Fixed sorting of Visits and Pageviews</li>
<li>Various other bug fixes</li>
</ul></div><a href="/blog/2012/01/12/visits-1.3#Comments" class="leaveComment">Leave a comment</a></div><div class="Post"><div class="head"><h2 class="title"><a href="/blog/2011/11/07/aug">Aug - a library to augment or extend your javascript objects</a></h2><div class="details clearfix"><ul class="tags grid8 alpha"><li><a href="/blog/tags/javascript">javascript</a></li><li><a href="/blog/tags/aug">aug</a></li><li><a href="/blog/tags/node.js">node.js</a></li></ul><span class="grid1 omega date">11/7/2011</span></div></div><div class="body"><p>If you've used jQuery before, you are probably familiar with the extend function.  If you need to be reminded... the gist of it is that you can extend an object with another object.  For example, if you had a plugin that had some defaults (delay: 3000, auto: true) and you wanted to allow for developers to override them (delay: 5000), you could take in an options object and combine the two objects (delay: 5000, auto: true).  Aug is a tiny (354 bytes) library that will let you do that without jQuery.  I've modeled the syntax to be identical to jQuery.  I've also added the ability to augment javascript classes (adding to the prototype).  Here are some examples:</p>

<h2>Examples</h2>

<pre><code><span class="comment">//Great for overriding defaults</span>
<span class="keyword">var</span> a = { a: <span class="number">1</span> };
<span class="keyword">var</span> b = { a: <span class="number">2</span>, b: <span class="number">3</span> };
aug(a, b); <span class="comment">//a = { a: 2, b: 3};</span>

<span class="comment">//Combining two objects without overriding</span>
<span class="keyword">var</span> a = { a: <span class="number">1</span> };
<span class="keyword">var</span> b = { b: <span class="number">3</span> };
<span class="keyword">var</span> c = aug({}, a, b); <span class="comment">//c = { a: 1, b: 3};</span>

<span class="comment">//Extending a prototype</span>
<span class="keyword">var</span> Class1 = <span class="function"><span class="keyword">function</span><span class="params">()</span> {</span> };
Class1.prototype.test = <span class="function"><span class="keyword">function</span><span class="params">()</span> {</span>
        <span class="keyword">return</span> <span class="number">0</span>;
};

aug(Class1, {
        test2: <span class="function"><span class="keyword">function</span><span class="params">()</span> {</span>
                <span class="keyword">return</span> <span class="number">5</span>;
        }
});
<span class="keyword">var</span> c = <span class="keyword">new</span> Class1();
c.test(); <span class="comment">//returns 0;</span>
c.test2(); <span class="comment">//returns 5</span>
</code></pre>

<h2>Playgroud</h2>

<p>If you want to try out aug.  Check out this <a href="http://jsfiddle.net/uuVsB/">jsfiddle</a>.</p>

<h2>Downloads</h2>

<p>You can grab the library <a href="https://raw.github.com/jgallen23/aug/master/dist/aug.js">here</a> or check out the <a href="https://github.com/jgallen23/aug">source in github</a>.</p>

<p>For you nerds, the library has AMD and node.js support.</p>

<h2>Node</h2>

<pre><code>npm <span class="keyword">install</span> aug
</code></pre></div><a href="/blog/2011/11/07/aug#Comments" class="leaveComment">Leave a comment</a></div><div class="Post"><div class="head"><h2 class="title"><a href="/blog/2011/10/28/visits-1.2">Visits 1.2 Released</a></h2><div class="details clearfix"><ul class="tags grid8 alpha"><li><a href="/blog/tags/visits">visits</a></li></ul><span class="grid1 omega date">10/28/2011</span></div></div><div class="body"><p><a href="/apps/mac/visits">Visits</a> 1.2 is now in the app store.  You can grab it <a href="http://bit.ly/o2N8r8">here</a></p>

<p>Changelog:</p>

<ul>
<li>Week and Month View</li>
<li>UI Tweaks</li>
<li>Bugfixes</li>
</ul>

<p>Here's a screenshot of the new month view:</p>

<p><img src="/blog_media/visits12.jpg" alt="Visits 1.2" title="" /></p></div><a href="/blog/2011/10/28/visits-1.2#Comments" class="leaveComment">Leave a comment</a></div></div></section><section class="grid3"><section class="ListModule"><h3 class="SubHeadline">Categories</h3><ul><li><a href="/blog/tags/node.js">node.js</a></li><li><a href="/blog/tags/visits">visits</a></li><li><a href="/blog/tags/javascript">javascript</a></li><li><a href="/blog/tags/aug">aug</a></li><li><a href="/blog/tags/applescript">applescript</a></li><li><a href="/blog/tags/ios">ios</a></li><li><a href="/blog/tags/stockglance">stockglance</a></li><li><a href="/blog/tags/misc">misc</a></li><li><a href="/blog/tags/scribblepad">scribblepad</a></li><li><a href="/blog/tags/rdio">rdio</a></li><li><a href="/blog/tags/resistance">resistance</a></li><li><a href="/blog/tags/fidel">fidel</a></li><li><a href="/blog/tags/loggly-dashboard">loggly-dashboard</a></li></ul></section><section id="Twitter"><h3 class="SubHeadline">Twitter</h3><script src="http://widgets.twimg.com/j/2/widget.js"></script><script>new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 6000,
  width: 220,
  height: 300,
  theme: {
    shell: {
      background: '#adadad',
      color: '#ffffff'
    },
    tweets: {
      background: '#ffffff',
      color: '#000000',
      links: '#666666'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('jgaui').start();
</script></section></section></div></div></div><footer id="Footer"><div class="Frame"><ul><li><a href="http://www.github.com/jgallen23" target="_blank">Github</a></li><li><a href="http://www.twitter.com/jgaui" target="_blank">Twitter</a></li><li><a href="http://pinboard.in/u:jga23" target="_blank">Pinboard</a></li><li><a href="http://feeds.feedburner.com/jgame" target="_blank">RSS</a></li></ul></div></footer><script src='/ui/scripts/external/jquery-1.5.1.min.js'></script><script>$(".Post .body a, a#GithubRibbon, a.appStore").attr("target", "_blank").click(function() {
  _gaq.push(['_trackEvent', 'Outbound', this.getAttribute('href')]);
});
</script></body></html>