Slaptijack Title

Magento Home Page Returns 404 Status Code

by Scott Hebert
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...

Read More →

Working Around EVE-KILL + Cloudflare Block

by Scott Hebert
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...

Read More →

UnicodeDecodeError: 'ascii' codec can't decode byte

by Scott Hebert
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...

Read More →

MacPorts: upgrade gnutls failed

by Scott Hebert
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 sqlit...

Read More →

Python: Empty String?

by Scott Hebert
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: That pretty much worked out just as we imagined. The empty string returned False and our code did what it was supposed to....

Read More →