Search:

Type: Posts; User: Zugzwang; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.14 seconds.

  1. Re: Performance of two multi-core processors running a serial process.

    To save energy, modern processors have the capabilities to reduce the speed of their processor cores when not in use. As you probably don't utilize your CPU by 100% when doing the measurement, they...
  2. Re: Why linux won't let my java program to use all cpus?

    Can you provide us with a minimal working example that shows the issue?

    Using more than one core at a time is supported by the JVM, so it should work. Did you split the computation-heavy task that...
  3. Re: Opening and closing a file to append to it?

    Yes and no. In principle it might make your data safer. However, you can achieve the same at runtime by calling the "flush()" method of your file object after writing to the file.

    There is also...
  4. Replies
    5
    Views
    538

    Re: a slice of javascript theory?

    Dear OP, you've got to admit that your question looks a bit like homework. Thus, I shall not give more than a hint: "types". There are many sources reading more about types in JavaScript.
  5. Re: Does changes in kernel mean recompiling entire kernel?

    Hi akshay.sulakhe,

    recompiling the Kernel is not as bad as it seems. Typically, you will only touch very few source files and only these will be recompiled by the make system. All in all, the...
  6. Replies
    5
    Views
    2,063

    Re: How do I install OpenAL for C++

    It would be helpful if you could elaborate. Can't you find the package, can't you download it, or does installation fail? In the latter case, I would suggest that you copy&paste the precise error...
  7. Replies
    2
    Views
    1,408

    Re: Java Drawing Multiple Images

    Hi Kodeine,

    I suggest that you look up what the "setLocation" location function does. It sets the location of a component *in a layout*, and not in pixels. If your layout contains only one...
  8. Thread: ./

    by Zugzwang
    Replies
    14
    Views
    910

    Re: ./

    @OP: The posts by "r-senior", "dwhitney67" and others are already excellent.

    What they are missing a bit is some additional explanation: in Windows programs, it is quite common to have the data...
  9. Replies
    7
    Views
    1,233

    Re: Java Loading Image to JFrame

    It's a sure thing that proper exception handling is the way to go in practice. Yet, the OP clearly demonstrated that he/she is unwilling of writing exception handling code in this case. Probably it's...
  10. Replies
    2
    Views
    2,304

    Re: ADB (android) not working

    Please copy&paste the precise error message here and the commands that you executed to obtain it.
  11. Replies
    7
    Views
    1,233

    Re: Java Loading Image to JFrame

    Well, what happens if image loading fails with your code? You are just gonna throw away the exception and call new ImageIcon(logo1) anyway although you are passing NULL. But what happens then?
    ...
  12. Re: Unsure where I'm going wrong? mini xml install and usage

    Absolutely. Location "0x00000014" is a good indication for the fact that you used a NULL pointer somewhere. Since you have Visual Studio, firing up its debugger should be easy for you. Then see if...
  13. Re: unable compiling hello.c gstreamer program..

    It is always helpful to post the *precise* error message, i.e., a copied&pasted one.

    So I have to guess what is actually wrong. My main guess is that you did not install the needed development...
  14. Replies
    4
    Views
    1,182

    Re: C++ Application Title and Icon

    The following link is the first one that comes up when searching for "GLUT Window Title" on google:

    http://www.opengl.org/resources/libraries/glut/spec3/node27.html

    It should already solve one...
  15. Replies
    9
    Views
    2,023

    Re: variable return type in C

    Well, if the set of possible return types is known beforehand, you can use a union.



    #include <stdio.h>
    #include <sys/types.h>
    #include <unistd.h>

    typedef enum { TEXT, NUMBER }...
  16. Replies
    1
    Views
    376

    Re: Template instantiation Issues in C++

    I am not sure if that is already the complete solution to your problem, but the copy constructor of your String class does not have the correct interface: a "const" is missing:

    So instead of

    ...
  17. Replies
    7
    Views
    758

    Re: Swing component (VLC)?

    You shouldn't, as the old AWT widgets and Swing widgets shall not be mixed.

    However, the only thing that you have to do is to override one method of the JPanel, just like you would do it a Canvas,...
  18. Thread: Learning c++

    by Zugzwang
    Replies
    5
    Views
    2,222

    Re: Learning c++

    Namespaces in C++ can contain all kinds of things, including functions and classes. In that tutorial, this is simply not done. Just try it out! You will see that it works. The word "method" that you...
  19. Replies
    7
    Views
    758

    Re: Swing component (VLC)?

    @OP: There are a couple of ways of "putting images into the UI" in Swing. If your image stays the same all the time or has only infrequent changes (like logos), then add it as an icon to a JLabel....
  20. Replies
    13
    Views
    999

    Re: So frustrating...

    ... let's also add that the OP would also need to pay for electricity (which is expensive in some countries), proabably more than his/her shared server costs right now, and has good fire insurance...
  21. Replies
    4
    Views
    527

    Re: Nemesis Installation is My Nemesis

    No, that doesn't matter. Please verify that the files "/usr/include/libnet.h" and "/usr/lib/libnet.a" are in place. For that, please copy&paste the output of the command "ls -la /usr/include/libnet.h...
  22. Thread: c++

    by Zugzwang
    Replies
    22
    Views
    1,757

    Re: need some c++ help

    You should probably forget about what TheFu wrote - that is more advanced stuff. He/she is right in what he/she writes, but it's just more advanced stuff.

    You are on the right track.

    It is part...
  23. Replies
    11
    Views
    718

    Re: An IDE that automaticly determines big O?

    There are decidable problems that have a doubly-exponential complexity, i.e., every algorithm for these problems needs Theta(2^2^poly(n)) time for some polynomial.
    ...
  24. Replies
    11
    Views
    718

    Re: An IDE that automaticly determines big O?

    It's an interesting discussion that you people have started here (if you allow me to actually call it a discussion). Let me add a perspective from a fellow computer scientist.

    What CptPicard wrote...
  25. Re: Authenticating to Gmail; Sending txt messages

    The documentation of the library, that I linked to above, contains the information that you are requesting. It says, "Each command returns a tuple: (type, [data, ...]) where type is usually 'OK' or...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4