- Strength to Increase Rep
- +17
- Strength to Decrease Rep
- -4
- Upvotes Received
- 3K
- Posts with Upvotes
- 2K
- Upvoting Members
- 476
- Downvotes Received
- 104
- Posts with Downvotes
- 79
- Downvoting Members
- 75
Scientist
- Interests
- Astrophysics Sailing Hiking
- PC Specs
- Dell Inspiron 15 Windows81, Raspberry Pi Linux, MacOSX
Re: Are you trying to store your data in the file path? Please read the Windows manual on file path limitations. | |
Re: [QUOTE=Freaky_Chris;609478]Its probably including the path in that case then, since the whole path C:\\..............\\whatever including the file is 305 characters long. Chris[/QUOTE]You could use os.chdir(path) to establish the working directory and then use the filename only. | |
Re: You know the hero/star can't get killed because he/she has to appear in next weeks show. | |
Re: Just finished a grilled salmon steak with a fresh garden salad and buttermilk dressing. Right now I am working on dessert, vanilla ice cream with a Kahlua chaser. | |
Re: If you been out of school for a while, it tends to be work or church! | |
Using PySide's QAbstractTableModel allows you to easily customize a widget like QTableView and make it more generic in its application. Here we use it to present solvent data in tabular form and sort each column content by simply clicking on the header. You can feed it any data as long … | |
Things don't have to be black and white all the time. Use a Windows API call to add some color to your text output. | |
| |
The Tkinter module comes with the normal Python installation. It allows you to create Python GUI programs for Windows, Linux or Unix on the Mac. In this snippet we put a GIF image (.gif) onto a form's canvas with just a few lines of code. Most of the lines are … | |
Re: Yes, there is a devlopment of a full featured GUI Operating System written in Python under the name Unununium (wouldn't be my choice), nicknamed after the 111th chemical element 'Roentgenium', whose temporary IUPAC name until November 2004 was 'Unununium'. See: [url]http://en.wikipedia.org/wiki/Unununium_(operating_system[/url]) | |
| Re: Two movies I saw in the theater, and thought they were worth seeing again. So I bought the DVDs: "Crazy Stupid Love" with Steve Carell and Lulianne Moore. "Friends With Benefits" with Mila Kunis and Justin Timberlake. |
Re: Seems to be too simple to be homework. You were almost there, you should only multply the overtime pay by 1.5. [code=python]""" output should be: Pay rate $10.00 Regular Hours 40 Overtime hours 20 Regular pay $400.00 Overtime pay $300.00 Total Pay $700.00 """ def hours(): hours = input("How many … | |
Re: If you want to concatenate (join) every two lines in your file, then you can use something simple like this ... [code=python]names = """\ Valerie Vanessa Velvet Venice Venus Verena """ # create a test file filename = "mynames.txt" fout = open(filename, "w") fout.write(names) fout.close() mod_list = [] count = … | |
For those who are afraid of lycanthropes and full moons, here is a way to figure out the phase of the moon. | |
Re: Just a little quirk in Tkinter. Since the canvas has a default border of 2 pixels simply give it a [B]bd=-2[/B] to cancel it. | |
What "Hello World" is to the console, the "Bouncing Ball" is to the Graphical User Interface. Nothing fancy, the ball is created via a call to the API function ellipse() and then bounced within the confines of the windows form. For the DEV C++ crowd: Let me know if you … | |
The printer seems to be a much ignored computer peripheral when it comes to programming. This little code snippet explores one way to send text to the default printer. It actually draws the text into an imaginary box on the paper. You can specify the upper left and lower right … | |
Re: If you have pip installed, check with ... ''' modules_pip101.py list all the installed modules ''' import pip for item in pip.get_installed_distributions(): print(item) | |
| Re: Something like Lardmeister's code would be a good start of an Equation Solver as set forth in: [url]http://www.daniweb.com/forums/post159522-7.html[/url] Just make sure you keep your units of measurement correct. |
Re: You might want to check: https://www.varycode.com/converter.html | |
Re: That particular software is very early alpha at best. At this point it is very clumsy and will frustrate you thoroughly! | |
Re: From the Python manual that ships with every installation: str.strip([chars]) Return a copy of the string with the leading and trailing characters removed. The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to removing whitespace. ... Python … | |
Re: I assume you are using Windows. With your knowledge in basic you should look into BCX. It programs in a modern basic and then translates to compile with a number of C or C++ compilers. I look at C is just a subset of C++, well let's say 99% of … | |
Re: Rule of thumb is that it takes about ten good C++ programmers to do what 1 good Python program can accomplish in a given time span. So, yeah there are a lot more C++ jobs out there! On could imagine that with the help of AI future computers could do … | |
Re: You might want to check PIL/pillow at: http://pillow.readthedocs.org/en/latest/ | |
Re: A true Klingon Warrior uses only machine code, keyed in on the front panel switches in raw binary. | |
Re: Judging from what he does to the inside of my mouth, that could have been my own dentist. After all, a dentist lives from the pain of others. | |
| |
Just trying to find out which of these five isprime functions is the fastest. | |
Re: Take a look at ... http://www.daniweb.com/software-development/python/threads/466346/word-jumble#post2031135 |