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 Chriss Miller 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: *

  • Users: cpjust
  • Content: Threads
  • Order by date
  1. cpjust

    Sometimes a hard drive disappears when I boot up

    I'm running Vista x64 SP2 with 8GB RAM, 4 hard drives & an SSD (non-RAID). Vista is on the SSD. About once or twice a week, when I boot up it sits at a black screen for a few minutes and the HDD light on my case stays on instead of flashing; then it finally gets to the login screen. After I...
  2. cpjust

    Can't get JDBC to work with DB2 using jdbc:db2:<database>

    Hi, I have a Java application that works fine when using a JDBC URL like this: jdbc:db2://host:port/database but when I change it to use this format: jdbc:db2:database I get the following error: WARNING: Failed to execute: select distinct tabschema from syscat.tables because: Execution failed...
  3. cpjust

    How do I check if an Index was system-generated?

    Hi, I've noticed that when I create a Unique Constraint, MySQL will automatically create an Index with the same name. When I query for a list of Indexes, what I need to do is find out which ones were system-generated and which were actually defined by me. I took a look at...
  4. cpjust

    How do I see how much space a folder is using?

    In previous versions of Windows, if I right-click a folder in Windows Explorer and click Properties, it would calculate how much space is being used by all the files & sub-directories in a folder. In Vista, it doesn't. Why? And how can I see how much space is being used by a folder now?
  5. cpjust

    Can I force Garbage Collection to run on a java process?

    Hi, I'm wondering if there's a way to force the garbage collector to run on a running java process (like Eclipse)? I know how to run System.gc() in my own code, but I want to run it on a process that's already running, because programs like Eclipse start eating up a lot of memory if you leave...
  6. cpjust

    Ant <delete> task not working

    Hi, I can't figure out why this target isn't working. <target name="clear.oldcorefiles.nightly"> <!-- Determine the earliest timestamp for removal as an offset from the current date and time --> <property name="clear.timestamp.pattern" value="MM/dd/yyyy" /> <tstamp> <format...
  7. cpjust

    passwd: Module is unknown

    If I add a user or try to change a password with passwd I get this error: passwd: Module is unknown passwd: password unchanged I don't understand. I see this: # which passwd /usr/bin/passwd The user gets added to /etc/passwd, but they can't login since their password was never set. Are there...
  8. cpjust

    Can I disable regex in grep?

    Hi, I'm wondering if there is any kind of switch to disable regex in grep? I couldn't see anything obvious in the man page. I'm writing a script that greps for a certain string in a file and if it's not there, it adds it; but the string contains asterisks which grep considers wild cards. So...
  9. cpjust

    ` marks in script are messing things up

    OK, I've got the following script: #!/bin/bash EXEC_NAME=$1 echo "$EXEC_NAME" | grep "/" > /dev/null 2>&1 if [ "$?" -eq "0" ]; then EXEC=`echo "$EXEC_NAME" | sed "s:\(.\)\(.*\):\2:"` echo "EXEC = $EXEC" PID=`pgrep -f $EXEC` else PID=`pgrep -x $EXEC_NAME` fi echo...
  10. cpjust

    What does the -f option of pgrep do?

    The man page for the -f option of pgrep says: But I'm not sure what that means. What I thought it means is that the pattern you pass has to match the entire line in the CMD column of the ps command (including arguments), but that's not what I'm seeing. When I run: 'ps -ef' here's part of...
  11. cpjust

    Perl doesn't wait when remote debugging XML-RPC

    Hi, I have some perl code that calls functions on a Java server over XML-RPC. I enabled remote debugging in Eclipse and set a breakpoint in the function I'm debugging, and when I run my Perl script, Eclipse hits the breakpoint and lets me step through, but the Perl script doesn't wait until I...
  12. cpjust

    Is it possible to disable &quot;Info&quot; logging in Event Log?

    Hi, I noticed that my disk is always being accessed, even when I'm not running anything and I have no Page File enabled. I'm guessing it's because of all those "Info" Events that are being logged all the time. I'm wondering if there's a way to make the Event Log only write Errors & Warnings? I...
  13. cpjust

    How do I find/fix a failing HD in a RAID array?

    Hi, I'm not sure if this is the best place for this question, but the RAID forums hardly have any activity... I'm running Vista x64 on an ASUS P5K3 Deluxe motherboard and I have 3 Seagate Barracuda SATA drives in a RAID 5 array. It's been running fine for the last 1.5 years I've had it (except...
  14. cpjust

    Single-line Javadoc comments?

    I was wondering if there's such a thing as a single line Javadoc comment, similar to this which works in Doxygen? class Shape { int m_Length; /**< The length of the shape. */ int m_Width; /**< The width of the shape. */ ... which would use the comment to the right of the variable in the...
  15. cpjust

    Why isn't my hash empty?

    Hi, I have another problem now. I have a Perl function that calls a Java function over XMLRPC which returns a Map, but in this test, it should return an empty Map (and does in the Java version of this test); but in Perl Dumper reports it's returning the following: $VAR1 = { '' => undef...
  16. cpjust

    What does XMLRPC change an undef type to when it reaches Java?

    Another problem I'm seeing is when passing a null value to a Java function over XMLRPC from Perl. I tried this: $api->setExternalData( $ticketID, $key, undef ); and if I pass a null in Java to that same function, an exception is thrown, but in Perl it's not throwing an exception. Is undef...
  17. cpjust

    How do I get this array element?

    Hi, I've got a perl script that uses XMLRPC to talk to a Java app and it calls a Java function which returns an array of strings as Object[] but when I print out the first element I just see something like: ARRAY(0x8b4d78) I'm doing this: my @keys; my $key; eval { @keys =...
  18. cpjust

    Why does Eclipse stop highlighting errors?

    I'm using Eclipse 3.4.1 on Linux and every once in a while it stops highlighting errors. I guess that means the "Build Automatically" option isn't working anymore, even though it's still checked. Why does it do that, and how can I fix it?
  19. cpjust

    2 simultaneous exceptions?

    Hi, I just thought of something kind of scary, so I was wondering if anyone knows the answer. I know in C++, if you're in a destructor because an exception was thrown and then you throw another exception, the program immediately calls the std::terminate() function and ends. I'm wondering if the...
  20. cpjust

    Can't get DBCP Connection Pooling to work with H2 database

    Hi, I've got a servlet on Tomcat on Solaris and I'm using the H2 database (http://www.h2database.com). It currently works without using DBCP, but to improve performance, I need to use connection pooling. I tried following the instructions I found here...

Part and Inventory Search

Back
Top