Search:

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

Page 1 of 7 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    8
    Views
    634

    [SOLVED] Re: CPP Boolean question

    You need to put the entire condition into parentheses:

    if ((user_choice == 1) && (comp_choice == 2))
  2. Re: Can't access my localhost from another computer on LAN

    Have you checked the firewall on the server? Check if the port 80 is open for incomming connections.
  3. Replies
    5
    Views
    1,306

    Re: Python - No such file or dictionary

    You told open() to look for a file called 'infile' (which doesn't exist).
    Try removing the quotes arround 'infile' and 'outfile' in the open() calls.
    You need to pass the actual contents of...
  4. Re: Can anyone suggest a good python IDE which can handle both the GUI and Code?

    You can use QtCreator (or Qt Designer) to draw the GUI, and then you can load that GUI in python with PyQt.
    For the code, I recommend PyCharm IDE.
    Have a look at the PyQt documentation and look for...
  5. Replies
    15
    Views
    1,602

    Re: Odd discovery - Source code and speed

    When you did the test, did you use the binaries from the repositories, or did you also compile the slower (commented) version yourself?

    If you just used the repository binaries, there is a more...
  6. Replies
    12
    Views
    4,669

    [SOLVED] Re: Code:Blocks syntax error

    What is the name of your source file, it should have a ".c" extension if it is a C language file.
  7. Replies
    12
    Views
    4,669

    [SOLVED] Re: Code:Blocks syntax error

    The executable is in PROJECT_FOLDER/bin/Debug.
    You're not supposed to run the source code itself.
    You can compile the source manually, without codeblocks


    cc Testicles.c -o Testicles ...
  8. Replies
    12
    Views
    4,669

    [SOLVED] Re: Maddening Problem with Code:Blocks syntax error

    Could you run it from the terminal like I wrote above (the first code). Replace "file.c" with the name of your file.
    If it goes wrong, post the entire contents of the terminal here.
  9. Replies
    12
    Views
    4,669

    [SOLVED] Re: Maddening Problem with Code:Blocks syntax error

    Could you post the exact steps you used to compile your program, you might be trying to run the wrong file.
    Usually you do it like this:


    gcc file.c -o executable
    ./executable

    Or why don't...
  10. [SOLVED] Re: seems like array of integers is cut in half after being passed to function

    You can't use sizeof for that.
    Sizeof is used to get the size of an object that is known at compile time (integers are fixed size so it knows their size). Your arrays are static (their contents are...
  11. Replies
    6
    Views
    620

    Re: Looking for suggestions

    Do you realy expect that you can randomly generate a valid function. The machine language is simple but it has it's rules.
    A random stream of bytes probably wouldn't be a valid function.
    It would...
  12. Re: QScreen::grabWindow() not working on Ubuntu Touch/Phone

    I haven't done much programming for Ubuntu Touch but i think that the problem is that Ubuntu Touch doesn't have an actual window manager like the one used on desktop.
    This is just a wild guess, I'm...
  13. Replies
    3
    Views
    458

    [SOLVED] Re: Pygame conditional help

    You could insert another for loop to replace if/elif blocks


    def check_mouse(self):
    for rect in self.text_pos_list:
    if rect.collidepoint(pygame.mouse.get_pos()):
    for...
  14. Replies
    1
    Views
    270

    Re: turtle graphing

    There is no need to define sz, it's defined in the parameter list of the drawmltsqr function.
  15. Replies
    1
    Views
    326

    Re: Threads and I/O

    Threads are bad when they all read or write to the same source. If all four threads were writing to the same file the written text would get mixed up and you would get a lot of gibberish in that...
  16. Replies
    10
    Views
    31,106

    Re: clrscr() and gotoxy() in gcc

    The gotoxy and clrscr are functions from Windows C library. They are not available on Linux.
  17. Thread: Open source

    by nidzo732
    Replies
    15
    Views
    747

    Re: Open source

    No, you can't do that. You would just get a lot of gibberish. The source code is not saved in the executable files. The compiler translates it to machine language. It's a language that a computer can...
  18. Replies
    1
    Views
    1,528

    Re: python, tkinter and pyinstaller build issue

    Please use the code tags. As you know, indentation in Python is very important so we can only guess what you are trying to do here.
    One more question, which version of Python are you using? If you...
  19. Replies
    1
    Views
    744

    Re: tkinter trying to get a window up

    Why are you putting "root = Tk()" and "root.title(`Note taker`)" on the same line?
    Put them on separate lines.
  20. Replies
    1
    Views
    1,647

    Shoul i keep a socket open for long time?

    I have two computers on a network and some python programs running on them. Occasionally the programs will send some data to each other. There may be a long silence between individual messages....
  21. Replies
    15
    Views
    959

    Re: which operating system is best for pc

    Why not ask the same question on Sevenforums, BSD forums and Apple forums? What answer would you expect on Ubuntuforums.org ?
  22. Thread: gcc vs g++

    by nidzo732
    Replies
    4
    Views
    637

    [SOLVED] Re: gcc vs g++

    g++ is a compiler for C++.
  23. [SOLVED] Re: A Screen Grabber to Catch a Drop-down Menu?

    There should be an option to capture a screen after a given time. You could open the menu during that time.
  24. Replies
    10
    Views
    5,127

    Re: is there an alternative to mono for c#?

    If you're used to Visual Studio (or Mono) and it's GUI editor, you should try Qt Creator. It's very easy to use.
  25. Replies
    10
    Views
    5,127

    Re: is there an alternative to mono for c#?

    Mono is currently the best c# implementation for Linux, there isn't anything better. If you are willing to learn you could try c++ and Qt, Qt is extremely powerful and capable of networking and web...
Results 1 to 25 of 166
Page 1 of 7 1 2 3 4