• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Grok

#16
That's awesome.  You're Ozzy Osbourne!
#17
It's good enough for me.
#19
I'm 99% certain I'll be ditching WoW for D3/SC2.
Cannot comment on the coding until seeing the games and whatever interesting opportunities they provide.
#20
Bump!

Query the process?  You may be able to get the Command Line string directly or from the Process Information or environment block.  It seems the command line string is available to the process itself, in ungarbled form, so reading it should merely involve the proper API, or locating it in the target process memory.
#21
Unauthorized Advertising.

This topic has been moved to Trash Can.

http://forum.valhallalegends.com/index.php?topic=17980.0
#22
My oldest screenshot of any note is probably of channel "The Void", when Soulburner had the first binary bots in there with about 25 concurrent instances.  However, I cannot put my hands on the screenshot at the moment.
#23
Quote from: Camel on May 29, 2009, 02:25 AM
Overriding the classpath replaces the working directory, preventing MyTest.class from being seen. Just add . to your classpath; java -classpath .:mysql.jar MyTest

Additionally, I would strongly recommend that you do not put the driver in lib/ext. One reason is that the VM is not required to observe that directory. An even better reason is that, even if it does, you're asking for trouble if any other Java program on your system requires a different version of that library.

You nailed it.  +1

S:\Java\Projects>java -classpath .;S:\MySQL\Tools\connectorJ\mysql-connector-java-5.1.7-bin.jar MyTest
MyTest started.
MyTest completed.

#24
Like 50 million other people, I am having a problem starting out with MySQL Connector/J for JDBC.
I believe I have followed the installation instructions to the letter, as well as tried all the derivations of suggestions in many different forums.

First I will display the test source code, then the results.
Afterward I will describe the environment.

Test source:

import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.SQLException;

class MyTest {
    public static void main(String[] args) {
       
        System.out.println("MyTest started.");
        try {
            Class.forName("com.mysql.jdbc.Driver");
        } catch (Exception ex) {
            System.err.println("------------------------------------------------");
            System.err.println("Exception: " + ex.getMessage());
            System.err.println("------------------------------------------------");
        }
        try {
            String url = "jdbc:mysql:///user";
            String uid = "root";
            String upwd = "changed";
            Connection con = DriverManager.getConnection(url, uid, upwd);
        } catch (SQLException ex) {
            System.err.println("------------------------------------------------");
            System.err.println("SQLException: " + ex.getMessage());
            System.err.println("------------------------------------------------");
        }
        System.out.println("MyTest completed.");
    }
}


Runtime results:

S:\Java\Projects>java -classpath S:\Java\jdk1.6.0_13\jre\lib\ext\mysql-connector
-java-5.1.7-bin.jar MyTest
Exception in thread "main" java.lang.NoClassDefFoundError: MyTest
Caused by: java.lang.ClassNotFoundException: MyTest
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: MyTest.  Program will exit.

Environment:
S:\Java\jdk1.6.0_13\jre\lib\ext\ contains mysql-connector-java-5.1.7-bin.jar
PATH contains S:\Java\jdk1.6.0_13\bin

NOTE:  I have tested with and without setting CLASSPATH, as well as putting in on the command line when invoking the runtime.

Invoking it WITHOUT classpath set returns (in case you asked for this test):

S:\Java\Projects>java MyTest
MyTest started.
------------------------------------------------
Exception: com.mysql.jdbc.Driver
------------------------------------------------
------------------------------------------------
SQLException: No suitable driver found for jdbc:mysql:///user
------------------------------------------------
MyTest completed.


Like I said at the top, this reads to be a very common problem and after hours of reading the same answers on every page and reimplementing them repeatedly, I do not see what I am missing, or know how to properly test for missing assumption.
#25
MicroFocus COBOL is the one I could not remember.
#26
I don't think componentization became widely popular until Visual Basic introduced the VBX.  The other examples you gave are structured, but that is not componentized.  And you can hardly call modular and componentized the same thing.  I don't remember using any COBOL tools (prior to VB3 days) that allowed wrapping up units into reusable packages the way you could with Visual Basic and its VBX.  But then I didn't use very many packages.  I think Borland eventually released (bought or created) a COBOL based package that did, but it was years after VBXs.

Myndfyre you know the answer to your question.  The reason you are able to compare programming and legos are because of the OOP principle of inheritance.  Both types of projects are derived from the superclass of "constructing/building things".  No surprise there.

In the quote, I apparently said they were not equivalent.  Neither are Secretary and Manager but you can talk all day about their Employee features that are in common.

But Legos are cool, so that might trump all other arguments.
#27
General Discussion / Re: Printing Topics
May 05, 2009, 12:53 AM
My guess is the bots are asking for the print device stylesheet so they can get a formatted, non-embedded view of the pages which they can archive.
#28
General Discussion / Re: Help?
April 15, 2009, 08:02 PM
Quote from: MrRaza on April 15, 2009, 03:36 PM
Thanks for the advice, I'll give the manufacture a call, hopefully they can let me know the best way to get this resolved.

The pin on the hard drive itself is broken off, I'm assuming as I pulled the "teather" to place the drive into it's slot on the bottom of the laptop, pins got crushed.

I wouldn't mind paying for the data back as long as it's not a massive amount. It is somewhat valuable, having all of my college notes on there, CCNA/CCNP, and CISSP information. I'm going to take it to a local computer store that has some equipment that can modify hardware componets and see what they think of it.

Grok had some good advice that I didn't think of before. I'll look into some exact models online and see what the prices are.

Thanks!

The amount is irrelevant with a broken pin.  It'd be all just as easily retrievable.  What is the mfr name and model number of drive?  URL to the drive specifications (diagram) on the mfr website would be helpful too.  Does the drive support dual interfaces?  I really think your problem is very minor and you have probably no real expense in getting it fixed.
#29
On a recent project I had to troubleshoot a high-end product that had particularly buggy installation issues.  Doing all the work in Hyper-V really cut short the amount of work I had to do.  I made copies of the VM when it was stable, then took snapshots before each risky troubleshooting step.  It was a simple matter to revert back a couple snapshots and try things a different way.  Or if I wanted to try a new approach without trashing my current work, I started up a copy of the stable version and worked in another window.

One of the coolest things is virtual drives.  I had a lot of installs to do, about 40gb of CDs that I had as .iso in a virtual hdd.  Attached this as D: on a VM, worked with it there, then detached it for later use.  Huge time saver.
#30
General Discussion / Re: Help?
April 09, 2009, 05:55 PM
Quote from: Invert on April 09, 2009, 05:22 PM
I laughed when I read your post. Sorry MrRaza, I was just picturing the situation.

Was the pin broken on the HD or on the laptop slot? If it's on the laptop it would be easier to fix (soldering iron) than if it was on the HD itself.

If it's on the HD I would take it to a specialist HD data recovery person. Forget the soldering iron nonsense, if the data is worth something you will have to pay for it to get to the data.

:-\

Or do what the specialist will do.  Depending on what is broken, locate and buy the exact model part, either individually or buying the same model hard drive.  Then cannibalize the new hdd parts and replace/repair the broken component.  I have done this with IDE drives in the past.  Usually the processing card which is bolted onto the back of the drive is removable and replacable directly.