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 '/'...
Type: Posts; User: DaveBorealis; Keyword(s):
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 '/'...
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...
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...
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. ...
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...
Don't know if that's the right answer, but I like your thinking!
:)
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
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
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...
And for a little perl:
#!/usr/bin/perl
while($i<100) { print ++$i." ".++$i." ".++$i." ".++$i." ".++$i."\n"; }
Dave
#!/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
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...
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...
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...
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 =...
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
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?
...
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...
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...
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...
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
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
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...
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....
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.)