Best way to abstract season/show/episode data * Cinema Guy 07:05 Add Comment Edit Question Basically, I've written an API to www.thetvdb.com in Python. The current code can be found here . It grabs data from the A... Read More
Get size of a file before downloading in Python * Cinema Guy 06:35 Add Comment Edit Question I'm downloading an entire directory from a web server. It works OK, but I can't figure how to get the file size before down... Read More
Python, Unicode, and the Windows console * Cinema Guy 15:26 Add Comment Edit Question When I try to print a Unicode string in a Windows console, I get a UnicodeEncodeError: 'charmap' codec can't encode cha... Read More
Convert Bytes to Floating Point Numbers in Python * Cinema Guy 15:24 Add Comment Edit Question I have a binary file that I have to parse and I'm using Python. Is there a way to take 4 bytes and convert it to a single preci... Read More
Does anyone have experience creating a shared library in MATLAB? * Cinema Guy 11:47 Add Comment Edit Question A researcher has created a small simulation in MATLAB, and we want to make it accessible to others. My plan is to take the simulati... Read More
How to sell Python to a client/boss/person with lots of cash * Cinema Guy 09:43 Add Comment Edit Question When asked to create system XYZ and you ask to do it in Python over PHP or Ruby, what are the main features you can mention when th... Read More
Calling a function from a string with the function's name in Python * Cinema Guy 20:36 Add Comment Edit Question What is the best way to go about calling a function given a string with the function's name in a Python program. For example, ... Read More
An executable Python app * Cinema Guy 15:26 Add Comment Edit Question Python works on multiple platforms and can be used for desktop and web applications, thus I conclude that there is some way to comp... Read More
File size differences after copying a file to a server vÃa FTP * Cinema Guy 06:40 Add Comment Edit Question I have created a PHP-script to update a webserver that is live inside a local directory. I'm migrating the script into Python. ... Read More
Python: what is the difference between (1,2,3) and [1,2,3], and when should I use each? * Cinema Guy 00:18 Add Comment Edit Question In many places,(1,2,3) and [1,2,3] can be used interchangably. When should I use one or the other, and why? Answer From the P... Read More
What is the best way to avoid SQL injection attacks? * Cinema Guy 23:48 Add Comment Edit Question I've provided a solution for Python... please flesh this out with examples for other languages. Answer Oracle has got an exte... Read More
Python: What OS am I running on? * Cinema Guy 20:23 Add Comment Edit Question What do I need to look at to see if I'm on Windows, Unix, etc? Answer >>> import os >>> print os.name posix... Read More
How do I make a menu that does not require the user to press [enter] to make a selection? * Cinema Guy 19:39 Add Comment Edit Question I've got a menu in Python. That part was easy. I'm using raw_input() to get the selection from the user. The problem is... Read More
Any experiences with Protocol Buffers? * Cinema Guy 17:12 Add Comment Edit Question I was just looking through some information about Google's protocol buffers data interchange format. Has anyone played around... Read More
How do you express binary literals in Python? * Cinema Guy 11:20 Add Comment Edit Question How do you express an integer as a binary number with Python literals? I was easily able to find the answer for hex: >... Read More
What is the most efficient graph data structure in Python? * Cinema Guy 05:00 Add Comment Edit Question I need to be able to manipulate a large (10^7 nodes) graph in python. The data corresponding to each node/edge is minimal, say, a s... Read More
Adding a Method to an Existing Object * Cinema Guy 19:17 Add Comment Edit Question I've read that it is possible to add a method to an existing object (e.g. not in the class definition) in python , I think this... Read More
How to learn Python: Good Example Code? * Cinema Guy 17:33 Add Comment Edit Question I have been dabbling in Python for a couple months now, read the online docs/tutorial and started playing with Django a bit as we... Read More
How do I use Python's itertools.groupby()? * Cinema Guy 11:27 Add Comment Edit Question I haven't been able to find an understandable explanation of how to actually use Python's itertools.groupby() function. W... Read More
Python and MySQL * Cinema Guy 10:44 Add Comment Edit Question I can get Python to work with Postgresql but I cannot get it to work with MySQL. The main problem is that on the shared hosting acc... Read More