Search:

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

Page 1 of 2 1 2

Search: Search took 0.21 seconds.

  1. Re: program works in netbeans but not as a standalone

    Yep, when I run java app's I use the following:

    /usr/bin/java -cp ~/projects MyApp &

    Note that the class path is to the directory containing the class file with main(). I.e., there's no '/'...
  2. Replies
    18
    Views
    1,255

    Re: Python software suggestion?

    Hello,

    What are your interests? Myself, because I like playing with data, I wrote a web scraper a few weeks ago (I'm also just learning Python) that grabed the web server info for several...
  3. Replies
    5
    Views
    1,910

    Re: JavaConsole question

    Have you tried the cli command 'jconsole'? Don't know if that's what you want or if it's in your distribution. Here's how I found it:

    $ locate java | grep console...
  4. Replies
    5
    Views
    1,910

    Re: JavaConsole question

    Hello,

    If you're using Gnome, go to 'System->Preferences->Sun Java 5.0 Plugin Control Panel' and click the 'Advanced' tab and the 'Java console' selector. There's a radio button to unhide it. ...
  5. Replies
    7
    Views
    972

    Re: Need help with a perl script

    Hello,

    If you don't mind my asking, I'm curious if you're just playing around at writing a script, or are you trying to do something specific with your script that useradd doesn't do? (I can't...
  6. Replies
    9
    Views
    452

    Re: Here's a riddle...

    Don't know if that's the right answer, but I like your thinking!

    :)
  7. Replies
    5
    Views
    1,111

    Re: PyCurses - String formatting

    Hello,

    If you caste the the integer to a string, it'll work.

    inta = 3
    print "integer a: " + str(inta)
    Another possiblity, if you want...

    Best regards,
    Dave
  8. Re: Formula for expressing the "beer goggle" effect devised

    Sounds right to me because without beer there should be NO beer-goggle effect, which doesn't rule out other things still effecting one's affection, so to speak. ;)

    Whadda think?
    Dave
  9. Replies
    47
    Views
    1,266

    Re: Logic/word fun

    I didn't google. And I can prove it...because I got it wrong! :)

    I was convinced that the visitor was the man's uncle, which goes to show how out of shape I've allowed my short-term memory to get...
  10. Replies
    13
    Views
    571

    Re: An interesting experiment (for me).

    And for a little perl:

    #!/usr/bin/perl
    while($i<100) { print ++$i." ".++$i." ".++$i." ".++$i." ".++$i."\n"; }


    Dave
  11. Replies
    13
    Views
    571

    Re: An interesting experiment (for me).

    #!/usr/bin/python
    for i in range(1,100,5): print str(i), str(i+1), str(i+2), str(i+3), str(i+4)

    How about someone more experienced in python shorten this even more?

    Dave
  12. Replies
    12
    Views
    63,428

    Re: Python - Remove empty lines from text file

    Nice! :)

    The file has to be read in anyway, so check for 'if I.strip()' on the fly.

    Now if the file is wanted in a list:
    mylist = l.split('\n')
    can anyone think of a way to merge that with...
  13. Replies
    12
    Views
    63,428

    Re: Python - Remove empty lines from text file

    This is essencially PoOf's method, but instead I treat the loaded file as one long string, which makes for a little briefer coding by getting the job done in three lines. Also, rather than reading in...
  14. Replies
    9
    Views
    551

    Re: Python assignment

    Means you forgot to jump. It's like standing at the water's edge waiting to plunge into the cold. Ya gotta just do. Surprisingly it's rather easy...once you simply begin moving your fingers over...
  15. Replies
    9
    Views
    551

    Re: Python assignment

    Hello,

    Have you tried jumping into the assignment with both feet and no hesitation? You have creativity, it just needs to be dusted off and exercised a little. Perhaps use

    strng =...
  16. Re: I Have a Router and Two Computers. What Geeky, Fun Things are Possible?

    Did you also see this on their site? Looks like a nice short but good intro.
    http://www.no-ip.com/support/guides/update_clients/setting_up_linux_update_client.html
  17. Re: I Have a Router and Two Computers. What Geeky, Fun Things are Possible?

    Hello,

    I just took a look at their site, but it was a quick peek. How will this allow someone with a DHCP-assigned IP to link it via DNS to a domain name? What happens when the IP changes?
    ...
  18. Replies
    4
    Views
    56,748

    Re: ASCII value for char in java

    My mistake. parseInt takes a string, not a char!

    There's also java.lang.getNumericValue(char ch), if you want to keep playing around, but I just looked it up and it seems to be unicode based...
  19. Re: I Have a Router and Two Computers. What Geeky, Fun Things are Possible?

    If you have static IP addresses and can get a spare one, setting one up as a web server (apache, mysql, jsp, php, cgi, etc.) will keep you playing for decades to come!

    Even if the IP's are...
  20. Replies
    4
    Views
    56,748

    Re: ASCII value for char in java

    char somechar = ((char)in.readLine());
    int i = Integer.parseInt(somechar);
    System.out.println(i);


    Hello,
    Above takes a keyboard char (ASCII, I believe) and the second line does what you...
  21. Replies
    14
    Views
    1,090

    Re: www.python-forum.org

    Hello Andrew,

    Try pinging the IP address (the one below I obtained by pinging 'www.python-forum.org'):

    $ ping -c1 64.157.176.245
    If this works, then it's definitely a DNS issue.

    Dave
  22. Re: Share your experiences with tech support

    CLI mpg321 or mpg123 are suprisingly flexible in what you can make them do. And the sound quality is good to my ears....

    Best regards,
    Dave
  23. Re: perl error with program using recursion

    I made two changes. I added the '&' to the function call so the argument $n is fed into it, and I changed $n to $i within the function itself ($i receives the argument $n) to limit the scope of $n...
  24. Replies
    2
    Views
    744

    Re: Python CGI problems

    Hello,

    It's been a couple years since I've done cgi, however it seems that your second page is not reading in the query string and parsing out the environmental variables passed by the first page....
  25. Poll: Re: Should Ubuntu have a mascot?

    Hey, now don't go bad mouthing Beastie! We FreeBSDers don't get the fame and press of Linux, but we love our mascot.

    Dave
    (Who never got over FreeBSD replacing Beastie.)
Results 1 to 25 of 36
Page 1 of 2 1 2