<?xml version="1.0" encoding="UTF-8"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Steven Rosenberg</title>
        <link>https://stevenrosenberg.nfshost.com/blog/hardware/computers/hp_envy_15_as133cl/</link>
        <description>frugal technology, simple living and guerrilla large-appliance repair</description>
        <language>en</language>
        <docs>http://blogs.law.harvard.edu/tech/rss</docs>
        <generator><!-- name="generator" content="ode/1.2.1" --></generator>
        <managingEditor>steven@stevenrosenberg.net (Steven Rosenberg)</managingEditor>
        <webMaster>steven@stevenrosenberg.net (Steven Rosenberg)</webMaster>
        <atom:link href="https://stevenrosenberg.nfshost.com/blog/index.rss2" rel="self" type="application/rss+xml" />


        <item>
            <title>React-Redux links by Mark Erikson </title>
            <link>https://stevenrosenberg.nfshost.com/blog/programming/javascript/2017_0330_react_redux_links</link>
            <description><![CDATA[ <p>React-Redux links by Mark Erikson <a href="https://github.com/markerikson/react-redux-links">https://github.com/markerikson/react-redux-links</a> -- an excellent list that also covers learning JavaScript</p>
 ]]></description>
            <pubDate>Thu, 30 Mar 2017 14:14:17 UTC</pubDate>
            <guid>https://stevenrosenberg.nfshost.com/blog/2017/03/30/14/14/17/</guid>
       </item>


        <item>
            <title>Using highlight.js for code syntax highlighting on your web site</title>
            <link>https://stevenrosenberg.nfshost.com/blog/ode/2017_0329_highlight_js</link>
            <description><![CDATA[ <p><a href="http://stevenrosenberg.net/hugo/post/2017_0214_hugo_syntax_highlighting_with_highlight_js/">I first learned</a> about <a href="https://highlightjs.org/">highlight.js</a> while trying out the Go-based <a href="https://gohugo.io/">Hugo blogging system</a>, where it is a popular choice for adding syntax highlighting to blocks of code displayed on web pages.</p>

<p>Another solution is <a href="http://pygments.org/">Pygments</a>, but I didn't want to wade into Python, and a pure JavaScript solution like highlight.js seemed easier all around.</p>

<p>I had already used highlight.js successfully in a couple of Hugo themes, one in which I did the installation myself and another that had it built-in.</p>

<p>So it was only a small leap to do the same on this Ode site.</p>

<p>The instructions are clear (and easy), and the highlight.js developers allow you to <a href="https://highlightjs.org/download/">create a custom download</a> via check-boxes to include only the languages and markup you want to use on your site. That same page has info on using two separate CDNs (content delivery networks) to deploy highlight.js on your web site, but I opted to create my custom bundle and host it on this site as part of my main Ode theme.</p>

<p>Once you have the Javascript and CSS on your site and are calling it into your web pages, everything between <code>&lt;pre&gt;&lt;code&gt;</code> and <code>&lt;/code&gt;&lt;/pre&gt;</code> will benefit from highlight.js' syntax highlighting.</p>

<p>And <a href="http://stevenrosenberg.net/blog/programming/javascript/eloquent_javascript/2017_0328_eloquent_javascript_chapter_2_exercises_fizzbuzz">as you can see</a>, it works.</p>

<p>The only time this kind of syntax highlighting gets problematic is when displaying HTML, where you need to replace <code>&lt;</code> with <code>&amp;lt;</code>, <code>&gt;</code> with <code>&amp;gt;</code> and so on.</p>

<p>Here's a small bit of Ruby so you can see what the syntax highlighting looks like without leaving this post:</p>

<pre><code>Dir.glob("X16*") do |file|
 File.delete(file)
end</code></pre>
 ]]></description>
            <pubDate>Wed, 29 Mar 2017 09:24:32 UTC</pubDate>
            <guid>https://stevenrosenberg.nfshost.com/blog/2017/03/29/09/24/32/</guid>
       </item>


        <item>
            <title>Eloquent JavaScript - Chapter 2 exercises - Fizz Buzz</title>
            <link>https://stevenrosenberg.nfshost.com/blog/programming/javascript/eloquent_javascript/2017_0328_eloquent_javascript_chapter_2_exercises_fizzbuzz</link>
            <description><![CDATA[ <p>I'm not saying I will make it through all 22 chapters of <a href="http://eloquentjavascript.net">"Eloquent JavaScript,"</a> by Marijn Haverbeke, but enough people I respect have recommended the book that I'm doing my best to absorb what I can from it.</p>

<p>To that end, I am doing the exercises in the back of each chapter, and I plan on presenting my solutions here.</p>

<p>This entry also serves as a test of the <a href="https://highlightjs.org/">Highlight.js</a> JavaScript library, which I just added to this Ode site for syntax highlighting of code. I'm using the <code>zenburn</code> CSS.</p>

<p>Back to "Eloquent JavaScript." If you don't want any hints, don't go past the blog index. I will only start showing my code after the "read more" portion of each entry.</p>

<p>Before maybe a year ago, I'd never heard of Fizz Buzz, where you write a program that outputs the words Fizz, Buzz or Fizz Buzz depending on whether a number is divisible by 3, by 5 (and not 3) or by 5 and 3.</p>

<p>Fizz Buzz is supposedly used as a programming test in hiring. I was surprised when it was given as the second exercise in <a href="http://eloquentjavascript.net/02_program_structure.html">Chapter 2</a>
<p><a href="https://stevenrosenberg.nfshost.com/blog/programming/javascript/eloquent_javascript/2017_0328_eloquent_javascript_chapter_2_exercises_fizzbuzz?include_jump_separator=y#2017_0328_eloquent_javascript_chapter_2_exercises_fizzbuzz">Read the rest of this post</a></p> ]]></description>
            <pubDate>Wed, 29 Mar 2017 08:43:39 UTC</pubDate>
            <guid>https://stevenrosenberg.nfshost.com/blog/2017/03/29/08/43/39/</guid>
       </item>


        <item>
            <title>Coming over to the dark side</title>
            <link>https://stevenrosenberg.nfshost.com/blog/hardware/computers/hp_envy_15_as133cl/2017_0322_new_laptop</link>
            <description><![CDATA[ <p>I recently received a too-expensive birthday present: a new laptop.</p>

<p>For the women in my life, seeing all those keys pop off was too much I guess.</p>

<p>The HP Pavilion g6-2210us is still kicking as it nears the 4-year mark. That's a modern record for me. My previous laptop, the Lenovo G555, died just after its second year of service. I still have a second replacement keyboard still on the way from China for the HP Pavilion.</p>

<p>Once I get this new laptop fully set up, at some point I'll pop a new hard drive into the old HP. The current drive has a lot of bad sectors. A lot. Then I'll run it as a full Linux system with no Windows partition.</p>

<p>So what about the new laptop?</p>

<p>It's an HP Envy 15-as133cl 15t with Intel Core i7, 1080p resolution, 16GB of RAM and a 1TB spinning hard drive.</p>

<p>The case is all metal, which is quite an upgrade from my previous all-plastic laptops.</p>

<p>It has Windows 10. The first thing I did was install the Windows Subsystem for Linux so I could have Bash in the terminal and access to thousands of console-based applications from the Ubuntu archive.
<p><a href="https://stevenrosenberg.nfshost.com/blog/hardware/computers/hp_envy_15_as133cl/2017_0322_new_laptop?include_jump_separator=y#2017_0322_new_laptop">Read the rest of this post</a></p> ]]></description>
            <pubDate>Thu, 23 Mar 2017 14:50:16 UTC</pubDate>
            <guid>https://stevenrosenberg.nfshost.com/blog/2017/03/23/14/50/16/</guid>
       </item>


    </channel>
</rss>
