requests.exceptions.ConnectionError inherits from requests.exceptions.RequestException, which in turn inherits from IOError which in turn inherits from EnvironmentError. EnvironmentError is described as containing a 2-tuple value: on element 0, errno and on element 1, strerror (presumably a string description of the error). For example:
try: f = open("/foo") except IOError as e: print("errno: %s" % e.errno) print("strerror: %s" % e.strerror) However, requests seems to take this concept of the 2-tuple errno/strerror pair to the extreme.
Read more...
This is how to run a single-node OpenStack cluster using the RDO project’s packstack installation utility. I packed everything into a Vagrantfile so it can easily be redeployed. Huge credit goes to codingpackets.com for providing the answers.cfg and network requirements. I don’t honestly know yet why the network requirements are such; I just know this works.
In a new directory, create a Vagrantfile containing:
# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.
Read more...
When writing a job description, don’t make these common mistakes or fall prey to bad trends.
Don’t Sell Your Company We’re a data-driven marketing channel big-data warehousing engagement analytics real-time data set enterprise-ready cross-functional target and engage consumers uniquely managing multiple access results of data science.
I have no idea what you do. Instead, describe the job in words engineers understand.
We make a Django application and host it on AWS.
Read more...
Fedora 23 Server installs with only a couple minor tweaks onto a System76 Meerkat (meer1). I chose to install from the closest mirror, and installed the latest updates to get the 4.3.x kernel. I’m not sure this was necessary, but I wanted to make sure I had the latest kernel packages available. Install as normal, but before rebooting, switch to a TTY (ctrl + alt + f2).
# chroot /mnt/sysimage # dnf update # dnf install iwl7260-firmware NetworkManager-wifi wpa_supplicant Then reboot.
Read more...
As described on christianmoser.me, in order to use the Apple Superdrive on Linux, you need to add a custom udev rule (/etc/udev/rules.d/99-superdrive.rules).
# Initialise Apple SuperDrive ACTION=="add", ATTRS{idProduct}=="1500", ATTRS{idVendor}=="05ac", DRIVERS=="usb", RUN+="/usr/bin/sg_raw /dev/$kernel EA 00 00 00 00 00 01" However, by default Fedora doesn’t ship with sg3_utils installed by default, so you’ll need to install it.
From time to time, I’ve been known to create my own album covers for things. I’ve done a MST3K variant, and this time I wanted to streamline my collection of Star Wars soundtracks. Inspired by The Force Awakens.
Download (includes covers for all 7 movies)
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Running Hugo on Openshift I moved my blog/site from Ghost to hugo. Since Ghost is a Nodejs app, it was easy to deploy in Openshift. But hugo, a static site generator was not. I looked at hacking up the Jekyll cartridge, but in the end decided to build my own. Maybe I’ll convert this into a cartridge at some point. This isn’t really mean to be a script. Mostly a recipe for you to follow along.
Read more...
I’m not going to go into the philosophical argument about free software. If you want better font rendering, this is what I do.
Enable rpmfusion and install freetype-freeworld Copy /usr/share/fontconfig/conf.avail/10-autohint.conf to /etc/fonts/conf.d/ Edit /etc/fonts/conf.d/10-autohint.conf and replace “append” with “assign” In GNOME Tweak Tool -> Fonts, set Hinting to ‘Slight’ and Antialiasing to ‘Rgba’
I recently bought a System76 Oryx Pro, and have been getting myself familiar with it. Not satisfied with Ubuntu and Unity, I set out to install Fedora 23.
Pre-installation In order to boot using the NVIDIA proprietary driver and still have access to a VGA console (rather than a blank screen), I found I needed to disable UEFI in the BIOS setup and install Fedora in BIOS mode. I don’t really see what I gain from booting with UEFI here, so I found this to be a pretty easy thing to leave off.
Read more...
I forget where I found this, but I’m documenting here for posterity. In order to get a Doxie scanner running under Linux, install the sane-backends-drivers-scanners package is installed. Then put the following into a local udev rule:
$ cat /etc/udev/rules.d/10-doxie-scanner.rules # udevadm info -a -p $(udevadm info -q path -n /dev/bus/usb/001/009) SUBSYSTEMS=="usb", ATTRS{manufacturer}=="Document Capture Technologies Inc.", ATTRS{idProduct}=="4812", GROUP="scanner" Create a scanner group and add your user to it.
sudo groupadd -r scanner sudo usermod -G scanner -a link Reboot for the group change to take effect.
Read more...