Articles by Scott Hebert

  1. Geeky Goals for 2016

    Posted on in uncategorized

    The new year is finally upon us. Traditionally, I have not been one to make New Year's Resolutions. This year, I decided that rather than a list of resolutions, I would create a list of goals. These are things I would like to achieve over the next year. In other …

  2. Magento Home Page Returns 404 Status Code

    Posted on in System Administration

    Naturally, I ran into this problem in the middle of the night when the client was asleep and I had no access to the Magento administrative interface. The short story is that after running a re-index of the site, the home page began returning a 404 error status. A bit …

  3. UnicodeDecodeError: 'ascii' codec can't decode byte

    Posted on in Programming

    Although I was getting this output in relation to one of my Jinja2 templates, it really isn't a Jinja2 problem.

    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 69: ordinal not in range(128)
    

    The bit of code here should be doing nothing more than printing a float …

  4. Implementing 'git show' in Mercurial

    Posted on in Software

    One of my frequently used git commands is 'git show <rev>'. As in, "show me what the heck this guy did here." Unfortunately, Mercurial doesn't have the same command, but it's easy enough to implement it using an alias in your .hgrc.

    The command you would run from the command …

  5. [MacPorts] upgrade gnutls failed

    Posted on in System Administration

    MacPorts logo

    I ran into this issue while trying to install wine-devel on my Mid 2012 MacBook Pro running El Capitan and MacPorts 2.3.4. As the install progressed, here is the error I got:

    Error: org.macports.build for port glib2 returned: command execution failed
    Please see the log file …
  6. [Python] Empty String?

    Posted on in Programming

    I've mentioned before that empty strings in Python are false. This leads to a common if not string paradigm. Unfortunately, this can be problematic. Check out this snippet:

    >>> string = ""
    >>> if not string:
    ...  print("empty")
    ... 
    empty
    

    That pretty much worked out just as we imagined. The empty string returned False and …

  7. {git, hg} Custom Log Output

    Posted on in Software

    The standard log output for both Git and Mercurial is a bit verbose for my liking. I keep my terminal at ~50 lines, which results in only getting about 8 to 10 log entries depending on how verbose the commit was. This isn't a big deal if you are just …

  8. Factory Reset Broken OnePlus One

    Posted on in voice

    This is a sad story. A few weeks ago, I set my OnePlus One down on a table outside so that it would not be in my pocket while I worked on the pool. I have done enough work on the pool to know that at any moment, I might …

  9. [OS X] Disable IPv6 Address Privacy

    Posted on in Networking

    For those that are really into privacy, the Privacy Extensions defined in RFC 4941 are a really good thing. This extension circumvents SLAAC and has the result of randomizing your IPv6 address. Like I said, if privacy is a big deal for you, this is definitely something you want enabled …

  10. What's Next? Using Chrome OS and Crouton For Work

    Posted on in System Administration

    It is well-documented that I am a heavy Google user. I use Gmail and Google Docs for just about everything. Additionally, I have used an Android phone since I got the HTC Dream (AKA T-Mobile G1) when it first came out.

    However, I have been using OS X full-time since …

  11. Redis: Better Session Storage for Magento

    Posted on in System Administration

    Out of the box, Magento has four methods available for storing session data: filesystem, database, memcached, and tmpfs. The default method is to store session information in the filesystem. I believe that storing sessions in Redis is actually superior to all of the aforementioned methods. Each of the four default …

  12. Using Pelican's article.summary

    Posted on in Programming

    I'm using Jinja2 templates with my new Pelican-based articles. If you have Django experience, you'll feel right at home using Jinja2 templates. I decided early on that I wanted to create my own theme from scratch and keep it as basic as possible. (In fact, 'basic' is the name …

Slaptijack's Koding Kraken