<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>Daniel R.</title>
      <link>https://life.neophi.com/danielr/</link>
      <description></description>
      <language>en</language>
      <copyright>Copyright 2015</copyright>
      <lastBuildDate>Wed, 01 Apr 2015 11:30:22 -0500</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=3.3svn-20070408163858</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>Faking PhantomJS&apos;s userAgent in Nightwatch.js</title>
         <description>While working on some odd behavior with a PhantomJS driven Nightwatch.js test I had a need to change the userAgent that PhantomJS was reporting. Turns out there is a simple way to do this in the configuration file:&quot;desiredCapabilities&quot;: {
    &quot;browserName&quot;: &quot;phantomjs&quot;,
    &quot;javascriptEnabled&quot;: true,
    &quot;acceptSslCerts&quot;: true,
    &quot;phantomjs.page.settings.userAgent&quot;: &quot;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36&quot;
}

I suspect a similar technique can be used for many of the PhantomJS settings.
</description>
         <link>https://life.neophi.com/danielr/2015/04/faking_phantomjss_useragent_in.html</link>
         <guid>https://life.neophi.com/danielr/2015/04/faking_phantomjss_useragent_in.html</guid>
         <category>Programming</category>
         <pubDate>Wed, 01 Apr 2015 11:30:22 -0500</pubDate>
      </item>
            <item>
         <title>grep and buffering</title>
         <description>Recently while trying to troubleshoot a production issue I needed to tail a log and grep for some data. Problem was the data I was expecting to show up didn&apos;t. Well not exactly. It showed up about 10 minutes after I expected it to. Turns out using grep twice on a tail buffers like crazy.
tail -f /var/log/nginx/access.log | grep 1.2.3.4 | grep -i html


You can fix the delay in showing results by using the line buffered flag to the middle grep like so:
tail -f /var/log/nginx/access.log | grep --line-buffered 1.2.3.4 | grep -i html

</description>
         <link>https://life.neophi.com/danielr/2015/01/grep_and_buffering.html</link>
         <guid>https://life.neophi.com/danielr/2015/01/grep_and_buffering.html</guid>
         <category>Kitchen Sink</category>
         <pubDate>Sun, 11 Jan 2015 20:23:37 -0500</pubDate>
      </item>
            <item>
         <title>A Year Ago Today I Almost Died</title>
         <description>No this isn&apos;t hyperbole. On August 23rd 2013 I was commuting by bicycle into work when a car made an abrupt right turn in front of me without signaling. I slammed on my brakes. I woke up on the ground, on my back, gasping for breath. I hurt. I couldn&apos;t see a thing because my glasses were missing. I have no recollection of the intervening moments. I became aware of people around me telling me to stay still until the paramedics arrived.
<![CDATA[<p><a href="https://life.neophi.com/danielr/2014/08/a_year_ago_today_i_almost_died.html#more">Continue reading ...</a></p>]]></description>
         <link>https://life.neophi.com/danielr/2014/08/a_year_ago_today_i_almost_died.html</link>
         <guid>https://life.neophi.com/danielr/2014/08/a_year_ago_today_i_almost_died.html</guid>
         <category>Kitchen Sink</category>
         <pubDate>Sat, 23 Aug 2014 11:52:27 -0500</pubDate>
      </item>
            <item>
         <title>Jared Spool: Delightful Content Means Business</title>
         <description>On Thursday I attended a talk by Jared Spool, who is a leader in the study of usability. Below are a few notes from his talk that I thought might be good to share. Since I&apos;ve paraphrased and condensed what he mentioned I&apos;ve possibly misrepresented some nuance but hope I captured the essence.

Content is what users want right now. A key example was a commerce site where searching for &quot;return policy&quot; returned no results. The owners didn&apos;t think of the return policy as content but from a user&apos;s perspective that was what they wanted and it led to a lost sale.
<![CDATA[<p><a href="https://life.neophi.com/danielr/2014/01/jared_spool_delightful_content.html#more">Continue reading ...</a></p>]]></description>
         <link>https://life.neophi.com/danielr/2014/01/jared_spool_delightful_content.html</link>
         <guid>https://life.neophi.com/danielr/2014/01/jared_spool_delightful_content.html</guid>
         <category>Quotes</category>
         <pubDate>Sat, 18 Jan 2014 10:22:55 -0500</pubDate>
      </item>
            <item>
         <title>Quantified Self for Preventative Care</title>
         <description>Tonight I gave a short presentation at Boston Quantified Self! about my recent experiments in Quantified Self for Preventative Care. It is still a topic I&apos;m exploring. The talk was recorded and is available at http://vimeo.com/72048183. Great to see the continuing interest in self-tracking.
</description>
         <link>https://life.neophi.com/danielr/2013/07/quantified_self_for_preventati.html</link>
         <guid>https://life.neophi.com/danielr/2013/07/quantified_self_for_preventati.html</guid>
         <category>Visual</category>
         <pubDate>Tue, 23 Jul 2013 21:42:22 -0500</pubDate>
      </item>
            <item>
         <title>Jelly no Puzzle Clone</title>
         <description>After it was announced that the last company I was working at (Connected Sports Ventures) was winding down, I used some of my free time to clone an amazing puzzle game called Jelly no Puzzle. The original game was Windows only which I didn&apos;t have access to. With the help of level walk-thrus on Youtube I was able to see how the game was played. Since starting at Tivli, I&apos;d mostly forgotten about the game. There is lots of polish and code cleanup I could do, but I figured it was best to just release it. If you can play the original please do as it has a lot more polish. To try my clone head to jelly.neophi.com.
</description>
         <link>https://life.neophi.com/danielr/2013/06/jelly_no_puzzle_clone.html</link>
         <guid>https://life.neophi.com/danielr/2013/06/jelly_no_puzzle_clone.html</guid>
         <category>Programming</category>
         <pubDate>Wed, 05 Jun 2013 22:33:47 -0500</pubDate>
      </item>
            <item>
         <title>Debugging Node.js Applications</title>
         <description>Tonight I gave a talk at the Node.js in the wild meetup about Debugging Node.js Applications.

The slides are available at: https://life.neophi.com/danielr/files/DebuggingNodejsApplications.pdf

The sample code used is available at: https://github.com/NeoPhi/debugging

A video of the talk was made and is available at: http://www.youtube.com/watch?v=JNSy1roM82k

Thank you to all that came and the discussion we had.
</description>
         <link>https://life.neophi.com/danielr/2013/04/debugging_nodejs_applications.html</link>
         <guid>https://life.neophi.com/danielr/2013/04/debugging_nodejs_applications.html</guid>
         <category>Programming</category>
         <pubDate>Wed, 17 Apr 2013 21:59:38 -0500</pubDate>
      </item>
            <item>
         <title>SMS Issue</title>
         <description>While recently trying to signup for a new banking service that allowed me to tie authentication to my mobile phone, whenever I had the service send an SMS authorization code to my phone I never got it. I had a friend send me an SMS and that arrived fine. I then remembered for a long time I&apos;d not been getting Zipcar SMS messages about extending my reservation. Even though my Zipcar account said I had two-way messaging activated when I disabled and tried to reenable the service I ran into the same problem. Turns out there are two different types of SMS. Regular phone to phone SMS messages and another type known as short codes. A quick call to T-Mobile&apos;s awesome support and I found out, unbeknownst to me, a content block had gotten put on my account for SMS short codes. Once removed everything started working again. Yay!
</description>
         <link>https://life.neophi.com/danielr/2013/03/sms_issue.html</link>
         <guid>https://life.neophi.com/danielr/2013/03/sms_issue.html</guid>
         <category>Kitchen Sink</category>
         <pubDate>Sat, 23 Mar 2013 09:47:06 -0500</pubDate>
      </item>
            <item>
         <title>Antarctic Pictures</title>
         <description>With the Superbowl two weeks away and this past weekend a resounding success for RumbleTV Playoffs, I was able to take a little breather today and finishing sorting, culling, and posting my pictures from my recent Antarctic trip. Enjoy.
</description>
         <link>https://life.neophi.com/danielr/2013/01/antarctic_pictures.html</link>
         <guid>https://life.neophi.com/danielr/2013/01/antarctic_pictures.html</guid>
         <category>Visual</category>
         <pubDate>Mon, 21 Jan 2013 22:02:58 -0500</pubDate>
      </item>
            <item>
         <title>Books</title>
         <description>For a long time now I&apos;ve been posting the books that I&apos;ve read with my reviews on this site. My original intent with posting books on this blog was to capture the notes I took while reading. Turns out I&apos;ve very rarely or ever gone back to those notes. I suspect it is a case that the act of writing down the note provides more meaning than the note itself. For a long time now I&apos;ve been a member of Goodreads and track my books and reviews there since they give me neat statistics and recommendations. Instead of cross posting you can just follow my Goodreads feed or friend me on Goodreads.
</description>
         <link>https://life.neophi.com/danielr/2013/01/books_1.html</link>
         <guid>https://life.neophi.com/danielr/2013/01/books_1.html</guid>
         <category>Books</category>
         <pubDate>Thu, 10 Jan 2013 23:18:05 -0500</pubDate>
      </item>
            <item>
         <title>AWS EC2 EBS Partition Resize</title>
         <description>I recently noticed I was getting low on space on one of my EBS volumes I mount on my EC2 server. After doing some research (aka Googling) it seemed like a simple procedure: umount, snapshot, create volume, resize, and mount. I even found a concise page that detailed resizing an EBS volume with sample commands. However when I got to the resize step I ran into an error along the lines of &quot;The filesystem is already XXX blocks long.  Nothing to do!&quot;. Turns out I didn&apos;t mount the complete EBS volume as a drive but instead partitioned it. The snapshot and create volume steps had increased the size of the EBS volume but not my partition. Without a graphical interface the prevailing recommendation to use gparted didn&apos;t help. Thankfully I stumbled upon another blog posting about resizing partitions using fdisk without losing data. While that post dealt with another virtual server service the same basic principles applied. After carefully deleting and recreating the partition on my EBS volume keeping the starting sector and file type the same resize2fs finally worked and I was off to the races. In retrospect the partition table hacking makes sense that it would work but isn&apos;t something I would have thought to try. 
</description>
         <link>https://life.neophi.com/danielr/2013/01/aws_ec2_ebs_partition_resize.html</link>
         <guid>https://life.neophi.com/danielr/2013/01/aws_ec2_ebs_partition_resize.html</guid>
         <category>Helpful</category>
         <pubDate>Wed, 09 Jan 2013 22:43:49 -0500</pubDate>
      </item>
            <item>
         <title>Annotated JSHint Configuration File</title>
         <description>I&apos;ve put together an annotated JSHint configuration file. This is mostly just a text formatted cut and paste of the documentation on the website (DRY shudder) in a format suitable for use with node-jshint. I find it handy to have it all in one place when setting up new node projects. You can grab the config from:

https://github.com/NeoPhi/jshint-config/
</description>
         <link>https://life.neophi.com/danielr/2013/01/annotated_jshint_configuration.html</link>
         <guid>https://life.neophi.com/danielr/2013/01/annotated_jshint_configuration.html</guid>
         <category>Programming</category>
         <pubDate>Wed, 09 Jan 2013 15:32:02 -0500</pubDate>
      </item>
            <item>
         <title>Pragmatic Thinking and Learning</title>
         <description>Pragmatic Thinking and Learning: Refactor Your Wetware by Andy Hunt
My rating: 5 of 5 stars
A wide ranging introduction to how we think and learn with many practical actionable next steps to get better at thinking and learning. The book gently takes you through how the brain works to practices for learning better, maintaing focus, and approaching tasks deliberately to gain the most out of them. With copious references to other material and clear next actions for each topic there is always something you can be working on. Besides a few references to outdated technology this is a fantastic read.

View all my reviews

</description>
         <link>https://life.neophi.com/danielr/2012/12/pragmatic_thinking_and_learnin.html</link>
         <guid>https://life.neophi.com/danielr/2012/12/pragmatic_thinking_and_learnin.html</guid>
         <category>Books</category>
         <pubDate>Tue, 04 Dec 2012 22:08:30 -0500</pubDate>
      </item>
            <item>
         <title>Innumeracy</title>
         <description>Innumeracy: Mathematical Illiteracy and Its Consequences by John Allen Paulos
My rating: 4 of 5 stars
While many of the examples in the book feel dated the overall message that being uninformed about math is as bad as being illiterate still rings true. The book provides an easy introduction to probability and statistics which he uses illustrate common issues with coincidences, polls, and pseudoscience. Other sections that covered dealing with large numbers and logic I didn&apos;t find as compelling. Overall the book is an easy and frequently amusing read that helps reiterate why math matters and how to not be fooled by it.

View all my reviews

</description>
         <link>https://life.neophi.com/danielr/2012/11/innumeracy.html</link>
         <guid>https://life.neophi.com/danielr/2012/11/innumeracy.html</guid>
         <category>Books</category>
         <pubDate>Sat, 24 Nov 2012 10:06:18 -0500</pubDate>
      </item>
            <item>
         <title>In the Garden of Beasts</title>
         <description>In the Garden of Beasts: Love, Terror, and an American Family in Hitler&apos;s Berlin by Erik Larson
My rating: 2 of 5 stars
Compared to other books I&apos;ve read by Larson I found this one to be lacking a story that drew me in. I think it was a combination of the events leading up the war having been covered better in other books and movies and the fact that there was nothing engaging about the way the Dodd&apos;s were portrayed that captured my attention. It felt more like a synopsis of their journals instead of an intriguing story that was enhanced by the participants own words. The frequent foretelling I particularly disliked as it removed any element of surprise about future events. Overall, I&apos;d give this book a pass.

View all my reviews

</description>
         <link>https://life.neophi.com/danielr/2012/11/in_the_garden_of_beasts.html</link>
         <guid>https://life.neophi.com/danielr/2012/11/in_the_garden_of_beasts.html</guid>
         <category>Books</category>
         <pubDate>Sat, 17 Nov 2012 14:45:47 -0500</pubDate>
      </item>
      
   </channel>
</rss>
