Archive for 2015
Magento Home Page Returns 404 Status Code
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 of Googling indicated we were...
Categories: System Administration
Working Around EVE-KILL + Cloudflare Block
I've got some code that generates loss reports for EVE Online. It uses the EVE-KILL API and Python's urllib2 library. Near the end of October 2015, I noticed that my calls to the API were returning a 403: Forbidden error from the server. I didn't realize it at the time, but EVE-KILL uses Cloudfla...
Categories: Programming
UnicodeDecodeError: 'ascii' codec can't decode byte
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:
'{:,.2f}'.for...
Categories: Programming
Implementing 'git show' in Mercurial
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 line to get the...
Categories: Software
MacPorts: upgrade gnutls failed
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:
This appears to be a known bug with the MacPorts glib2 port. Commenters on that link suggest that re-installing sqlite3 ...
Categories: System Administration