Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Aradon

    NullpointerException Error

    Man I hate threads. My question is, when is something ADDED to the queue? And when you do add something, are you sure you're not adding null? Basically we need to see the producer code as well. (all considering I counted line 21 right)
  2. Aradon

    String Split() function

    Doh! I had it backwards. Well. That's okay. We all make mistakes. :P
  3. Aradon

    String Split() function

    I Agree fully on the StringTokenizer idea. It was stated somewhere that the tokenizer is actually the prefered way to doing it. http://java.sun.com/j2se/1.5.0/docs/api/java/util/StringTokenizer.html An example: import java.util.StringTokenizer; public class test { public static voic main...
  4. Aradon

    StringTokenizer problem...

    String Tokenizer and split are just going to return to you everything that isn't a delimeter. so if you use ',' as a delimeter then yes, you will get Field1 Field2 and Field4. Without actually going through each character yourself I don't THINK there is a way to do this. It may be eaiser just...
  5. Aradon

    Append a node to a node that is created by different Document

    You're being super un-specific, could you please give us some code?
  6. Aradon

    Really simple program...strange error message

    I've copy and pasted your program and I've gotten no such error. (I get file not found..no surprise there). What version of Java are you running? How are you running the command? java ListMod is correct.
  7. Aradon

    Length of Script Error?

    What editor are you using? My scripts range from 1000 - 2000 lines. Also what version of perl and such are you using?
  8. Aradon

    ssh and perl

    If you don't use Net::SSH::Perl then why not just use a shell script instead? You could set up a public/private key system to bypass the tty password and then run the commands one at a time through the script. I found the Net::SSH::Perl to be useless in what I needed so I went for that route...
  9. Aradon

    Redirecting output into a variable

    I figured out this neat little trick while trying to do about the same thing. This works in *nix but I don't know about doze. [code] open(LSOUT, "ls |"); while(my $line = <LSOUT>) { print "OMG $line"; } close(SNMP); [code] think that works with ERR too. Cheers.
  10. Aradon

    Using Calander Class get Current Date and compare

    http://java.sun.com/j2se/1.5.0/docs/api/java/util/GregorianCalendar.html You might want to consider using this and then using the GET Function to compare past times with present times, ect. Might make it eaiser. :>
  11. Aradon

    Thousands...

    And if you don't like regular expressions you can also do this: sub commify { my $text = reverse $_[0]; my @digits = split('', $text); my $ct = 0; my $result = ""; foreach my $num (@digits) { if($ct == 3) { $result = "," . $result; $ct = 0; } $result =...
  12. Aradon

    compiling perl?

    I would use a program called perl2exe. It's free and it will create your perl files into an exe program that you can take to any windows machine. I was going to use it for a program of mine but switched to java instead (since it has the JVM). p2x-8.60-Win32 is the version I have.
  13. Aradon

    Undifined Value

    Well it was going so well until I actually tried to install the SSH modules. I now HAVE to have this utility that they are asking for and unfortiontly I get the same error over and over again. I could really use some help on this. Line 214 is the same as the thing at the top and I'm unsure of...
  14. Aradon

    as command?

    Eep, I just realized that it would be eaiser for me just to update my gcc instead of trying to seperatly put in avr.
  15. Aradon

    as command?

    I'm getting an error message as in install a perl module onto the system that states 'as: Command not found' From what I can tell this is an avr-gcc type command but so far I've found no where where I can actually download it. Can someone please point me in the right direction x.x;
  16. Aradon

    Undifined Value

    Well what I've done for a quick fix as of right now is changed the Module itself. It's only trying to reduce the number of references and since I'm not concerned about space presently I'm not worried about it. However it brings up another msg everytime that states "Useless use of hash element...
  17. Aradon

    Undifined Value

    I THINK this is the line. I found an install.pm in the inc/module (which is where it is listed and here is what it said under the #line 210 part: sub call { my $self = shift; my $method = shift; my $obj = $self->load($method) or return; unshift @_, $obj; goto...
  18. Aradon

    Undifined Value

    I'm presently trying to install Scalar::Util through CPAN as well as manually and I continue to get the same error Running [/usr/bin/perl Makefile.PL ]... Can't call method "load" on an undefined value at inc/Module/Install.pm - /Users/gbarr/Library/Perl/Module/Install.pm line 214. [ERROR]...

Part and Inventory Search

Back
Top