-
Replied To a Post in Starting Python
Always timely ... ''' datetime_days_diff.py show number of days between two given dates ''' import datetime as dt # dt.date(year, month, day) date1 = dt.date(2013, 1, 1) date2 = dt.date(2013, … -
Replied To a Post in Play Wave Sound Files with PySide/PyQT
Mac OS X All sound file formats that NSSound supports, including QuickTime formats. -
Replied To a Post in Memorable Quotations
"I invented the term 'Object-Oriented', and I can tell you I did not have C++ in mind." ... Alan Kay (creator of Smalltalk) -
Replied To a Post in Memorable Quotations
"Most people's C programs should be indented six feet downward and covered with dirt." ... Blair P. Houghton. -
Replied To a Post in Memorable Quotations
"If it wasn't for C, we'd be writing programs in BASI, PASAL, and OBOL." -
Created Play sound files with pySFML
Shows you how to play sound files with the pySFML module and Python. -
Replied To a Post in c++ to find area n circumference with entering radius
One way to do this that looks a lot more like C++ code ... // circle_calc101.cpp // ask for radius of a circle and show area and circumference #include <iostream> … -
Edited View a web page with PySide/PyQt
PySide's QWebView can load a given url and display the web page associated with it with just a few lines of code. -
Created View a web page with PySide/PyQt
PySide's QWebView can load a given url and display the web page associated with it with just a few lines of code. -
Replied To a Post in Christmas is coming
My solution ... people = sum(range(8, 13)) print(people) -
Replied To a Post in Memorable Quotations
"Always keep in mind that debugging consumes more time than programming." ... B. Liskov -
Replied To a Post in Christmas is coming
"Heap on the wood! The wind is chill; But let it whistle as it will, We'll keep our Christmas merry still." ... Sir Walter Scott -
Replied To a Post in There is an elephant on the loo!
Santa has 31 hours of Christmas to work with, thanks to the different time zones and the rotation of the earth, assuming he travels east to west(which seems logical). This … -
Replied To a Post in What's the story behind your username?
I took vegaseat because everything else was already taken. Las Vegas, great place to eat top notch fine food. -
Marked Solved Status for NCIS Programming
# Can You Program like McGee in NCIS # I was watching a NCIS rerun and started to wonder about McGee's superhuman programming skills. He sat down in front of … -
Marked Solved Status for Strange News
Just in the news: A Miami police officer fatally shot a naked man who refused to stop chewing on the face of another naked man — even after being shot … -
Marked Solved Status for Where do you go for "best" websites?
I've been burrowing through a stack of old magazines, and I had a copy of Yahoo! magazine, now defunct, which I'd picked up because the cover story was "100 Best … -
Marked Solved Status for Internships
I've secured a year long internship that I will be doing this year before coming back to complete the final year of my Computer Science degree. The company I've got … -
Marked Solved Status for Computer Language for Children
Just wondered which computer language is best suited for preteen students. Any ideas or experiences? -
Marked Solved Status for Petrol Prices
Just a quick look at current US Dollar prices per US gallon of petrol in different parts of the globe: **US 3.85 UK 5.80 Norway 6.30 France 5.55 Japan 4.25 … -
Replied To a Post in Christmas is coming
"eating the mince pies and slurping the sherry" in the US that would be "eating the cookies and slurping the Southern Comfort" Hopefully someone comes up with something better! -
Marked Solved Status for Getting argument no matter position
All, I have a personal script that I'm trying to write, and I've run into a small problem. The problem is that I want to be able to support a … -
Marked Solved Status for Python 3.3: Attribute Error
Hello, I'm trying to get my program running but I ran into an error. When I want to type a block of text on a new line, I get this … -
Marked Solved Status for Python: How to store user text input?
Hi, I'm trying to prompt the user to enter a block of text until he/she types EOF on a separate line by itself. After that, the program should present him/her … -
Marked Solved Status for Python 2.x Timer Clock
Hey there! I'm currently trying to get my first text-adventure-game in python started,and I wanted to import some features that are totally unnecessary. just for the lulz. So,I want to … -
Marked Solved Status for pyhon
[Click Here](http://www.)(Account Inheritance Hierarchy) Create an inheritance hierarchy that a bank might use to represent customers' bank accounts. All customers at this bank can deposit (i.e., credit) money into their … -
Marked Solved Status for Ideas? Improvements?
So I wrote a cool little python script for terminal commands that I get sick of entering. Most of the script is explained in docstrings and comments. Looking for useful … -
Marked Solved Status for Can Python be used to make iOS apps?
This is probably a very commonly asked question but is it possible to make an app with python? -
Marked Solved Status for Calling matlab from python subprocess
Hello ! I'm trying to do a similar thing as http://www.daniweb.com/software-development/python/threads/392697/calling-matlab.m-file-from-python. I managed to have Matlab launch, and run my Matlab file as the GUI of my matlab function is … -
Marked Solved Status for Browse...(Pythoncard)
How do you get this:  with pythoncard? -
Marked Solved Status for how to call a function for evry 10 secs in python
Hi All, I need to call a function for evry 10 secs how can i achieve this in python -
Marked Solved Status for Why doesn't this turtle code work?
import turtle def f(): turtle.forward(10) def l(): turtle.left(1) def r(): turtle.right(1) def b(): turtle.back(5) turtle.onkey(f,"Up") turtle.onkey(l,"Left") turtle.onkey(r,"Right") turtle.onkey(b,"Down") turtle.showturtle() turtle.listen() while True: print, EDIT: add `turtle.showturtle()` but STILL doesn't work -
Marked Solved Status for TypeError: Error when calling the metaclass bases function() argument 1
Traceback (most recent call last): File "C:/Users/James/Desktop/hugevar.py", line 2, in <module> class var(tempfile.TemporaryFile): TypeError: Error when calling the metaclass bases function() argument 1 must be code, not str Why does … -
Marked Solved Status for Tkinter Windows Taskbar Menu Help
So, I'm coding a IDE in Python and I'm using Tkinter for the GUI. What I'm looking for is a way to add a "recent files" menu to the menu … -
Marked Solved Status for To match and check the condition for first recent occurance
for example: consider the contents of file1.txt: 1 0 9227 1152 34 2 2 111 7622 1120 34 2 3 68486 710 1024 14 2 6 265065 3389 800 22 … -
Marked Solved Status for Trying to find attributes in html tag thru python
Ok, so I am trying to write a code that will find the attributes in a html tag using lists and splitting them up. Unfortunately its giving me a hard … -
Marked Solved Status for sd
Draw an inheritance hierarchy for classes Quadrilateral, TRapezoid, Parallelogram, Rectangle and Square. Use Quadrilateral as the base class of the hierarchy. Make the hierarchy as deep as possible. -
Marked Solved Status for Extract values from a list in py
I was wondering if there was a way to use the values in a list one would create. Such as secrete_door = [1,2,3,4] print "Choose the right door and you … -
Marked Solved Status for password special character $ is not taking taking by argparser
I am trying to enter user name and password from command line. user name is 'example@gmail.com' and password is 'Example$319'.....When I am printing this values I can see the password … -
Replied To a Post in convert python to c#
This might help ... http://pytools.codeplex.com/wikipage?title=NumPy%20and%20SciPy%20for%20.Net -
Replied To a Post in Memorable Quotations
"Santa is very jolly because he knows where all the bad girls live." ... George Carlin -
Replied To a Post in Would you like to live for 1000 years?
The more I think about it, the more I dislike the idea. The folks I know that could afford to buy the magic pill are just about all jerks. -
Marked Solved Status for Would you like to live for 1000 years?
Suppose there exists a magic medical pill, that increases life expectancy by a tenfold. So ages of 800 and more are easily attainable. Would you like the idea? Say you … -
Replied To a Post in Christmas is coming
I heard in Germany an angel brings the presents on Christmas eve. A little more believable for little kids than a fat guy sliding down the non existent chimney. -
Replied To a Post in So, you think you need a college degree to get into IT field
Even a blind chicked will find a piece of corn every now and then. -
Replied To a Post in Increase date by start time after midnight
This might help ... ''' datetime_add_time101.py add 1 second to a time near midnight some time format specifiers ... %a Locale's abbreviated weekday name %A Locale's full weekday name %b … -
Marked Solved Status for Any love for Windows users?
All I want to do is install Python on a Windows 8.1 box. The "EXTREMELY HELPFUL" note in the reademe says goto "PCbuild". Where is this wonderous file? Bueller? I … -
Replied To a Post in Graphics in Python
Any reason why you have to use such old version? I think old Python 2.4 comes with the Tkinter GUI toolkit that has plenty of nice graphics mothods. -
Revoked Solved Status for Any love for Windows users?
All I want to do is install Python on a Windows 8.1 box. The "EXTREMELY HELPFUL" note in the reademe says goto "PCbuild". Where is this wonderous file? Bueller? I … -
Replied To a Post in Starting Python
Turn an even integer into the next odd integer ... # x|1 turns an even integer x into the next odd integer # | is the bitwise or operator x …
The End.