Profile cover photo
Profile photo
Kevin Rice
33 followers
33 followers
About
Posts

Post has attachment

Post has attachment
Custom Python Decorators Considered Harmful
In line with the classic post about GOTO being harmful, I must extend this to include the 'Decorators' language feature of Python. "Just because you can do a thing doesn't mean you should do a thing." Decorators, IMHO, as a general rule, are Evil in the cla...
Add a comment...

Post has attachment
Pylint Broken on install: "control_pragmas = {'disable', 'enable'}"
So, wanting better Python code and having used pychecker for years and years, I was recently pointed to pylint again as a tool-of-choice. Installing it was simple: $ sudo pip install pylint Downloading/unpacking pylint Downloading pylint-1.4.0-py2.py3-none-...
Add a comment...

Post has attachment
Python Coding Best Practice Guide - Practical Goodness (prevent over-smart show-offs from killing your project)
Over the last 8? 9? years of coding in Python, I've had to deal with code written by a variety of people: Some of these people were very good at coding so I could quickly understand what they were doing and modify it as needed. Some of these people were ver...
Add a comment...

Post has attachment
SOLVED: MongoDB - Pymongo ConnectionFailure: function takes at most 4 arguments (5 given)
I was getting this odd message, leading to pymongo fail the Connection() and MongoClient() instantiation.  No connection?  Really?  Getting this message: [user@boxnamehere:logs]$ python Python 2.6.6 (r266:84292, Jul 20 2011, 10:22:43) [GCC 4.4.5 20110214 (R...
Add a comment...

Post has attachment
SOLVED: Skype crashes upon startup on Ubuntu 14.04
Just had a problem with Skype crashing immediately upon startup on my Ubuntu 14.04 box (as of Sept. 2, 2014).  This was an unexpected, sudden, and seemingly a random failure. Skype would startup with the blue skype starting screen, open the contacts window ...
Add a comment...

Post has attachment
SOLVED: diff 2 files, get results without markup
So, I want do a logrotate and remove files that are old, keeping only the latest 3 files.  So, script starts with: $ fullLoglist="/tmp/full_loglist" $ keepLoglist="/tmp/keep_loglist" $ rmLoglist="/tmp/rm_loglist" $ ls -lrt ${d}/rs*log* > ${fullLoglist}   Fi...
Add a comment...

Post has attachment
Real, Live Python Bug!
I've run into my very first bug in Python.  It's a known, existing bug, but it's still the first time I've actually encountered one spontaneously.  I should caveat that I occassionally forget things, and I've been using Python 8 years, so it could be this h...
Real, Live Python Bug!
Real, Live Python Bug!
justanyone.blogspot.com
Add a comment...

Post has attachment
trying to find a complete list of all whitehouse.gov petitions
Add a comment...

Post has attachment
some notes on how I got a stupid install to work.
Add a comment...
Wait while more posts are being loaded