Warning: Use of undefined constant headerfavicons - assumed 'headerfavicons' (this will throw an Error in a future version of PHP) in /home/thetoryp/www/www/wp-content/plugins/easy-favicon/easy-favicon.php on line 6231

Warning: Use of undefined constant headerfavicons - assumed 'headerfavicons' (this will throw an Error in a future version of PHP) in /home/thetoryp/www/www/wp-content/plugins/easy-favicon/easy-favicon.php on line 6279

Warning: Use of undefined constant headerfavicons - assumed 'headerfavicons' (this will throw an Error in a future version of PHP) in /home/thetoryp/www/www/wp-content/plugins/easy-favicon/easy-favicon.php on line 6327

Warning: Cannot modify header information - headers already sent by (output started at /home/thetoryp/www/www/wp-content/plugins/easy-favicon/easy-favicon.php:6231) in /home/thetoryp/www/www/wp-includes/feed-rss2.php on line 8
Programming – The Tory Party http://www.toryhoke.com Comics, essays, art, and heckling Sun, 21 Jan 2018 07:16:13 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.9 75387560 Background Check Your Doctor: Try This Health Care Provider Review Aggregator http://www.toryhoke.com/2015/11/23/background-check-your-doctor/ Mon, 23 Nov 2015 14:10:40 +0000 http://www.toryhoke.com/?p=8811 I wrote a suite of scripts to help you background check your doctor. The Primary Care Provider Investigator imports a list of health care providers and then scrapes multiple review sites (e.g. Yelp, UCompareHealthCare) to aggregate their reviews: PCPInvestigator. This project was born of frustration with my health insurer’s “search for a doctor” function, which… Continue reading Background Check Your Doctor: Try This Health Care Provider Review Aggregator

(191 visits, 1 today)

The Tory Party

]]>
8811
Telnetlib not reading all output? Try asynchat http://www.toryhoke.com/2013/03/04/telnetlib-not-reading-all-output/ Mon, 04 Mar 2013 14:00:31 +0000 https://www.toryhoke.com/?p=4784 Telnetlib not reading all output? Not receiving all the output from your telnetlib session? read_until() not an option because you don’t know what output to look for? telnetlib not queueing your writes? Think you want a telnetlib alternative, but Google isn’t turning anything up? I’ve been there. There was head-banging, but it was not a… Continue reading Telnetlib not reading all output? Try asynchat

(1,144 visits, 1 today)

The Tory Party

]]>
4784
JDI on How to Ask a Good Programming Question http://www.toryhoke.com/2012/04/16/jdi-on-how-to-ask-a-good-programming-question/ Mon, 16 Apr 2012 16:47:27 +0000 https://www.toryhoke.com/?p=4002 The coworker featured in this comic has written a post about the problem with short questions posted to StackOverflow. It is haughty and good. For those that are immediately inclined to provide the complete code snippet to solve the problem, where do we draw the line? What if the question being asked would need 10… Continue reading JDI on How to Ask a Good Programming Question

(93 visits, 1 today)

The Tory Party

]]>
4002
AndEngine Installation: Lessons from Last Night’s Tweets http://www.toryhoke.com/2011/11/18/andengine-installation-lessons-from-last-nights-tweets/ Fri, 18 Nov 2011 18:05:46 +0000 https://www.toryhoke.com/?p=3748 Y’all may have noticed from my Twittersplosion that I had a frustrating time trying to install and run the AndEngine examples. This involved 7 hours, 3 different tutorials (including 2 ones on video!) and at least 10 distinct errors requiring a stop-and-Google. At four in the morning I got the emulator to launch the example… Continue reading AndEngine Installation: Lessons from Last Night’s Tweets

(69 visits, 1 today)

The Tory Party

]]>
3748
Your Cocoa Build of Qt and You http://www.toryhoke.com/2010/09/15/your-cocoa-build-of-qt-and-you/ http://www.toryhoke.com/2010/09/15/your-cocoa-build-of-qt-and-you/#comments Thu, 16 Sep 2010 01:06:34 +0000 https://www.toryhoke.com/wp/?p=2816 Interestingly, I had to start building my apps on OSX because the apps I built on my Snow Leopard machine stopped working (loader error and other good times). After much suffering my boss set up a working Qt/PyQt/PIL install on his OSX machine. I ditched my beloved Snow Leopard deployment script and cobbled together a… Continue reading Your Cocoa Build of Qt and You

(158 visits, 1 today)

The Tory Party

]]>
http://www.toryhoke.com/2010/09/15/your-cocoa-build-of-qt-and-you/feed/ 1 2816
PIL on Snow Leopard: _jpeg_resync_to_restart error http://www.toryhoke.com/2010/08/31/pil-on-snow-leopard-_jpeg_resync_to_restart-error/ http://www.toryhoke.com/2010/08/31/pil-on-snow-leopard-_jpeg_resync_to_restart-error/#comments Tue, 31 Aug 2010 19:42:13 +0000 https://www.toryhoke.com/wp/?p=2794 Oh man I just got this working so I’m gonna write it all down in case I have to do this again later. CONTEXT: Using: – jpeg-7 – PyQt 4.6 – PIL (aka Imaging) 1.1.6 – reportlab 2.3 – Snow Leopard (Mac OS X 10.6.4) I use PIL and reportlab so my PyQt applications can… Continue reading PIL on Snow Leopard: _jpeg_resync_to_restart error

(930 visits, 2 today)

The Tory Party

]]>
http://www.toryhoke.com/2010/08/31/pil-on-snow-leopard-_jpeg_resync_to_restart-error/feed/ 7 2794
Make “make” faster http://www.toryhoke.com/2010/04/22/make-make-faster/ Thu, 22 Apr 2010 19:31:30 +0000 https://www.toryhoke.com/wp/?p=2616 I dread installing Qt because it’s an all-day project. With this pro-tip it’s a matter of minutes — and it applies to any make you make. From teammate Justin: I was complaining about building Qt to my genius head programmer friend at Sony, and he told me a little trick that was freaking awesome. When… Continue reading Make “make” faster

(53 visits, 1 today)

The Tory Party

]]>
2616
Generous Genius Programmer Shares Secrets of PyQt Multiple Autocomplete http://www.toryhoke.com/2009/09/18/generous-genius-programmer-shares-secrets-of-pyqt-multiple-autocomplete/ http://www.toryhoke.com/2009/09/18/generous-genius-programmer-shares-secrets-of-pyqt-multiple-autocomplete/#comments Fri, 18 Sep 2009 23:03:27 +0000 https://www.toryhoke.com/wp/?p=2218 It so happens I was looking for a way to do multiple autocompletes in a QComboBox. In other words, I had an editable combo box containing the list: – cupcake – muffin – pie I wanted the user to be able to type “p” and have it autocomplete to “pie.” This is no problem. Qt… Continue reading Generous Genius Programmer Shares Secrets of PyQt Multiple Autocomplete

(361 visits, 1 today)

The Tory Party

]]>
http://www.toryhoke.com/2009/09/18/generous-genius-programmer-shares-secrets-of-pyqt-multiple-autocomplete/feed/ 1 2218
Empty rows in a QTableWidget with lots of images http://www.toryhoke.com/2009/09/16/empty-rows-in-a-qtablewidget-with-lots-of-images/ http://www.toryhoke.com/2009/09/16/empty-rows-in-a-qtablewidget-with-lots-of-images/#comments Thu, 17 Sep 2009 03:05:40 +0000 https://www.toryhoke.com/wp/?p=2213 To be fair, I don’t know if it’s so many images or so many rows that cause a QTableWidget to show empty rows (or cellwidgets and TableWidgetItems not to appear, however you want to think about it). I think it has something to do with images (I use Pixmaps in labels), because it seems like… Continue reading Empty rows in a QTableWidget with lots of images

(262 visits, 1 today)

The Tory Party

]]>
http://www.toryhoke.com/2009/09/16/empty-rows-in-a-qtablewidget-with-lots-of-images/feed/ 3 2213
PyQt and py2app: Seriously I don’t know what to do with you when you’re like this http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/ http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/#comments Thu, 27 Aug 2009 19:34:10 +0000 https://www.toryhoke.com/wp/?p=2174 OK. For some crazy reason I needed to display jpegs in my python application. I know! I am a wild woman! Somebody get me chamomile and sweatpants! I’m going to spend a while telling you how you CAN’T get jpegs to show up. If you want you can skip this part and go down to… Continue reading PyQt and py2app: Seriously I don’t know what to do with you when you’re like this

(2,497 visits, 3 today)

The Tory Party

]]>
http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/feed/ 9 2174