Search:

Type: Posts; User: rodo->dave; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    4
    Views
    789

    [ubuntu] Re: DVD playback

    I had this problem so I ran this command and it fixed it:
  2. Thread: Virtualbox

    by rodo->dave
    Replies
    4
    Views
    387

    [ubuntu] Re: Virtualbox

    You might try running
  3. Re: C server client program "Cannot bind socket" after being run 10 times

    Ok. I was thinking there must be some data still lingering in the queue so I added a recv() and it appears to be working ok now...

    In Server.c -


    int main(int argc, char** argv) {
    char...
  4. Re: C server client program "Cannot bind socket" after being run 10 times

    Hi!
    I've been goofing around with it a bit, but have not solved the problem....

    I get "Cannot bind socket: [98]:[Address already in use]" for the error.



    // Bind listen socket to listen...
  5. Re: curious why this X (GDK) code is not working

    Window (from XCreateSimpleWindow) is a long.

    The GdkWindow is a structure and the info has not been filled in yet.

    look in /usr/include/gtk-2.0/gdk/gdkwindow.h at the _GdkWindowObject struct.
    ...
  6. Replies
    3
    Views
    2,673

    Re: Gradebook Software

    Hi. I searched for grade book at sourceforge and there seems to be a few listed.

    http://sourceforge.net/search/?type_of_search=soft&type_of_search=soft&words=grade+book

    good luck.
  7. Thread: Is it me...

    by rodo->dave
    Replies
    40
    Views
    1,301

    Re: Is it me...

    I said "Jesus is our only hope" and then got doinked as a religious spammer.... but, hey no hard feelings.
  8. Thread: Is it me...

    by rodo->dave
    Replies
    40
    Views
    1,301

    Re: Is it me...

    if you're addressing me.. I didn't bring up the subject of hell ;)
  9. Re: What do I need to start GTK programming?

    If I run
    $> pkg-config --cflags --libs gtk+-2.0
    I get:
    -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0...
  10. Re: What do I need to start GTK programming?

    to compile:

    $ gcc `pkg-config --cflags --libs gtk+-2.0` hbox.c -o hbox
  11. Replies
    3
    Views
    450

    Re: Virtualbox error dialogue - what now?

    USB on Ubuntu/Gutsy: Ubuntu removed support for /proc/bus/usb/*. We will address this issue in the future.

    Until this, edit the script `/etc/init.d/mountdevsubfs.sh and activate the four lines...
  12. Re: C Question. Keeping output in straight column

    Let me boot up my 7.04 in a vm here at work and see if I can find the package you need to install from synaptic...


    maybe manpages-dev????
    sorry, can't find the exact package
  13. Re: C Question. Keeping output in straight column

    TreeFinger, forgive me if you already know this, but are you familiar with the "man" command. man is the "online manual" pages... you should be able to "man printf" and see the format options......
  14. Re: C Question. Keeping output in straight column

    I seem to recall some compat problems across unices many years ago when formatting the int in printf... but either way, it works on my cygwin too! good job.
  15. Re: C Question. Keeping output in straight column

    Well, one way is to copy the int into a char * using sprintf and then printf with the format you want.
    I hope you don't mind that I modified your prog a little:



    /* Programming exercises....
  16. Replies
    8
    Views
    7,011

    Re: C Question. Average n Numbers

    One way you could do it is to set the while loop to run then test the input with an if statement and do a break



    #include <stdio.h>

    int main(int argc, char **argv)
    {
    float x = 0.0;
  17. Replies
    3
    Views
    360

    Re: Two new open source apps / demos

    I also updated the "wig" tar file to include a compiled exe in the src/distrib directory.

    :)
  18. Replies
    3
    Views
    360

    Re: Two new open source apps / demos

    Ok. You can run the app in the bin/Release folder now using mono.
  19. Replies
    11
    Views
    2,470

    Re: a newbie question with GTK

    I tried your code and it compiled and the program ran for me.

    You must be missing some package but I don't know for sure.

    Just FYI: my output from $ pkg-config --modversion gtk+-2.0 glib-2.0...
  20. Re: Strange command line argument behaviour

    What is the size of "options"?
    What happens if you use sprintf(options, "%s", argv[1]); instead of strcpy(options, argv[1])?

    Could you post a bit more of the code?
  21. Replies
    11
    Views
    2,470

    Re: a newbie question with GTK

    Just a thought:

    When you installed did you get the -dev libs?
    (ie. libgtk2.0-dev)
  22. Replies
    3
    Views
    360

    Two new open source apps / demos

    Hi. I released two applications as open source yesterday and thought I would post the info here.

    ImageHtmlBuilder is written using Mono and builds an HTML file based upon the files you drag and...
  23. Replies
    9
    Views
    5,450

    Re: List Perfect Numbers(C++)

    cool. Good job!
  24. Replies
    9
    Views
    5,450

    Re: List Perfect Numbers(C++)

    Well, it appears that my fifth 'perfect number' is not perfect afterall :(
    should be 33550336

    solution: check if "(pow(2, n) - 1)" is prime :)

    output is now:
    $ perfect_num 18
    6
    28
    496
  25. Replies
    9
    Views
    5,450

    Re: List Perfect Numbers(C++)

    Yes, you are correct; in the time between posts I looked at the wiki article more closely and I changed my code only do the calc if the number was prime.. .which I believe is correct now:

    $...
Results 1 to 25 of 33
Page 1 of 2 1 2