Ah, legacy code. I understand now (only too well).
Type: Posts; User: Axos; Keyword(s):
Ah, legacy code. I understand now (only too well).
What's sauce for the goose is sauce for the gander. There are good instruction sets and bad instruction sets. All well-written compilers and interpreters will benefit from them equally.
Not that...
The queue is locked while a request is being processed? The traditional design is to lock the queue while an item is being added or removed. As soon as an item is removed, the lock is released and...
The quick 'n' dirty way is to fork and exec a program like /usr/bin/paplay to play the file for you.
If you prefer to do it the hard way (and have more control), take a look at:
...
The following page says that gfortran accepts all the gcc command line options. So if you found a command line option to enable large addresses in gcc, chances are it should also work for gfortran....
Personally, I just use the Python documentation web site (yeah, I know it's not a book):
http://docs.python.org/py3k/
But over on the left there is a link to a list of books which includes this...
My hunch is it's a problem with the computer, not Python or its IDE. If you can compile a C or C++ program (not C#), try calling this function to see if it crashes the computer:
...
Hmmmm. I hadn't played any music since installing 10.04 a couple days ago. Saw your post, gave it a try. I don't think my issues are as severe as yours but I'm getting occasional skips which I...
The most basic way to read and write files is introduced in the tutorial. Click the link corresponding to the version of Python you are using.
2.x: http://docs.python.org/tutorial/inputoutput.html...
I installed the vorbis-tools package and ran ogginfo on the original and first edit copies of the file. The results suggest to me that the audio was lossily reencoded when I changed the track name:
...
I changed the case of one letter ('N' to 'n') in a track name using Rhythmbox and the result is a file which is 7727 bytes smaller than the original (I saved a copy of the original file before...
In my humble, non-academic opinion, having an instance of a superclass decide whether or not it is equal to an instance of a subclass is disgusting beyond belief. If you are going to do that kind of...
Wow, the default mx for mine is 401m. I wonder why it was set so low for yours. Garbage collection thrash-o-rama!
To change this "permanently", you can edit etc/netbeans.conf in the NetBeans...
Works fine on my notebook (2 years old, 2 GB RAM). Be sure to close projects you are no longer working on (right click on them in the projects list and click close). Every project you have there is...
I need more detail to help you. What are you trying to do? Which JRE and JDK did you install, Sun or OpenJDK?
Still works. Someone with more experience than I have with Python will probably know what's wrong.
$ cat intest.py
import re
path = input("Enter the path to the file")
expr = input("Enter...
I cannot reproduce the problem. Here's what I tried:
$ python3.1 intest.py
Enter the path to the file:/var/log/daemon.log
/var/log/daemon.log
$ cat intest.py
path = input("Enter the path...
EDIT: I've deleted my original post because I realized I was too wrapped up with the meaning of combining the milliseconds and nanoseconds. In reality (which is not where I was), all that is needed...
What doesn't make sense is that that nanoseconds are greater than 999,999. That's what tipped me off that they weren't correlated with the milliseconds. If the nanoseconds were in the range of 0 to...
Definitely Python. The only question is version 2 or 3. Personally, I use 3 but I think I'm the only person who does. :D
How are you getting the nanoseconds? If you are getting them from System.nanoTime(), they are not in any way whatsoever correlated with System.currentTimeMillis(). Adding them together is completely...
You cannot do anything time-consuming (whether doing a large amount of computation, blocking on I/O, or simply sleeping) on the event dispatch thread. Each time Swing lets you know an event has...
This may be a stupid question but does the directory "Dump" exist?
OK, about setVar, please explain what's not working. Is the text on the window not being updated?
In a GUI program (whether it's Java Swing or any other GUI programming environment), your code...
One problem is with this line:
if( error.toString()!="" ){
That compares references, not the contents of the strings. To compare the contents of the strings, you need to change the line...