1. [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 …
  2. [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 …

  3. Custom One-Line Log Output for Git and Mercurial

    Posted on in Programming

    The default history view in Git and Mercurial is optimized for completeness, not scanning. A compact one-line log is a better daily tool: short ID, subject, relative date, author, and branch or bookmark context. It does not replace a full graph; it makes the first pass fast enough that you …

  4. 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 …

  5. [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 …

  6. 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 …

  7. 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 …

  8. 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 …

  9. Getting Started With Pelican

    Posted on in Software

    I've been using WordPress on this site since 2007. After all this time, I've decided I want to try something new. So, I've decided to go in a completely different direction and start serving static content. There are three things driving my decision to change:

    • The existing site is really …
  10. El Capitan Leads to More DNS Woes

    Posted on in System Administration

    For whatever reason, Apple really likes messing with how I use DNS.

    I've written many, many, many times about having to modify OS X's DNS functionality to append search domains when a hostname includes a dot. Every single time I upgrade, this change is broken.

    Previously, the workaround had been …

  11. Agreeing to the Xcode/iOS license...

    Posted on in Programming

    Sometimes this pops up when you least expect it:

    Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
    

    This morning, I went to refresh one of my git repo's for work, and make spit that out. What the heck happened last night? Anyway, the …

  12. nginx: Blocking Access to /xmlrpc.php

    Posted on in System Administration

    I recently ran into an issue on a Wordpress site running behind an nginx web server. The site was frequently being attacked by a botnet hitting /xmlrpc.php so rapidly, it would eventually force the FastCGI processes behind nginx to consume all available CPU. Naturally, this would cause all legitimate …

  13. Goodbye, discoveryd. Hello again, mDNSResponder.

    Posted on in System Administration

    Great!

    Once again, Apple has made a change in how DNS is handled in Mac OS X. Originally, Yosemite (10.10) had replaced mDNSResponder with discoveryd. This meant that all of those who had made a change to force mDNSResponder to always append search domains to DNS lookups had to …

Slaptijack's Koding Kraken