Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Richard Jensen

Ranch Hand
+ Follow
since May 14, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Richard Jensen

Are you trying to implement RC2 or just get a string encrypted by RC2?
I found a web page giving javadoc for someone's implementation here.
There was also another site with this question (related to JCE):
"How do I encrypt/decrypt using RC2?" (needs a membership to view the answer)
18 years ago
What sort of factors affect "simple" in your mind?
There are licensing products out there, are you looking for
an existing algorithm/framework that you can use in a simple manner,
or are you looking for a product that is easy to use for the
licensor (or licensee)?
What would happen if you used a symmetric encryption algorithm like ARC4 (see the CipherSaber home page) that encrypted your validation string with a key of their host name and operating system?
18 years ago

Originally posted by raymond yadao:
let say i generated key pairs(public.pgp and secret.pgp) in one pgp program. Can i use these keys as a key pairs in other pgp programs???


There are some version issues with respect to PGP keys.
GnuPG & PGP 2.x
If you are on newer versions, however, there shouldn't be any issues between programs compatible with the OpenPGP standard.
Have you checked out GnuPG,
OpenPGP, or Phil Zimmerman's site?
18 years ago

Originally posted by Nicholas Turner:
I have a system in which every work order is contained within an operation. I have set them up so that an estimate and work order is linked by an order detail.
...
multiple estimates can have details within one work order and vice versa
I have defined it where an estimate is contained inside an operation and a work order is also?
My question is this right or should the work order contain estimates.


Contained/have/linked are subject to ambiguity.
To me "Containment" or "Aggregation" means that the lifetime of the CONTAINER controls the lifetime of the item in the container. When the container dies, the contained items also go away. Is the association you are descibing that strong?
Linked/linking (to me) is weaker. Two things are able to "find" each other.
Think about what you want to have happen when an object of one type is destroyed:
  • Related object is also destroyed
  • The link or association between the objects is removed but the other object still exists
  • When you say:

    every work order is contained within an operation


    do you really mean that the work order is created in the operation (like a local variable) and does not exist/persist after the operation completes?
    As I said, I think that some code and the actual compile lines/error messages will help. This first example is what I think you are describing:

    And I think your problem is your classpath when compiling ExtBook.

    This compiled with no errors.
    I had to tell javac where the class file from compiling Book.java went. Try that and see if it helps.
    [ August 11, 2003: Message edited by: Richard Jensen ]
    18 years ago
    If I understand correctly you are getting an error while compiling.
    Is that the case?
    Is the first package in your classpath when you compile the second class?
    It might help to show the javac command for the second compile and the specific error message.
    18 years ago
    SimpleDateFormat (1.3)
    "yyyy-MM-dd'T'hh:mm:ss"
    [ August 11, 2003: Message edited by: Richard Jensen ]
    [ August 11, 2003: Message edited by: Richard Jensen ]
    18 years ago
    So, I'm not sure I completely understand your situation. Do you run the two programs separately? Or are both classes loaded into the same JVM together (like from the same .jar)?
    Your usage of 'program' may be throwing me off and you may be meaning you have two classes that are in the same program.
    18 years ago
    I'm not familiar with CVS and the restrictions that it might place on you. We use ClearCase and our directory structure does not match our package structures. The way I deal with this is to create source folders in eclipse and then create the a package of the appropriate name (com.foo.pack...) in that source folder and then import from the file-system into the package (since ClearCase gives me a file-system view).
    I check files in and out via clearcase, outside of eclipse. When I'm ready to do a full system build, I export the files I modified back to the clearcase view's filesystem.
    It's a bit kludgy, but it works.
    Well, for instance, Collection, Set, List and Map are all interfaces. You might want to work with the methods promised by one of those interfaces, and not care about the exact class that is providing those behaviors. This allows you to write programs depending on the important abstractions rather than the concrete details.
    18 years ago

    Originally posted by Kevin Knowles:
    Ok, well I've partly solved the problem.


    That's great, which part is still giving you problems?

    I have been following the junit and ant installation instrutctions. However, I am using WindowsXP (as I thought I stated previously), so I suppose that is part of the problem. For example, instead of entering set classpath= etc
    (which is what I tried to do) I needed to enter (in my environment variable settings) variable classpath and under Value ".;%classpath%;c:\junit3\junit.jar;." (I read after doing some searches that I need the ".;" first in the classpath definition) and then at the prompt I need to type in set classpath and it sets the classpath for me.


    OK, I booted up my WinXP (home edition) laptop and installed JUnit and set my JUNIT_HOME environment variable via the Control Panel->System->[Advanced] stuff. I put JUNIT_HOME in the System variables part and CLASSPATH in the User variables part. Now when I start a command prompt the variables are set. If I run:

    from the install directory I get some errors, but for the most part it works.

    on XP I'm using 1.4.1_01 (build b01) and I think there are some known problems with Java/XP. I haven't really looked into it.
    I don't think you need to put '.' first in your CLASSPATH (I didn't). And "set CLASSPATH" doesn't set the environment variable, it shows the current value. You can even do things like "set PA" to find the values of all of the environment variables starting with PA.
    Let me know if you have other problems getting JUnit going.
    18 years ago

    Originally posted by Burk Hufnagel:
    Are you using a particular IDE? Mine is/will be JBuilder. with a hefty dose of ant.
    What sort of apps are you interested in writing?
    Don't mean to be nosy, but it seems that Palm developers are few and far between


    I use eclipse currently for work when I'm dealing with Java (I primarily code in C++). I'm debating using my existing Palm (IIIc) and J2ME vs. getting a PocketPC with compact .net (and C#) for writing a password safe type of program.
    (here) I actually got it originally from counterpane.com (after reading Cryptonomicon and going to the counterpane site to learn more about the Solitaire algorithm, etc.).
    Anyway, I would like to be able to generate and store password information on both my PC and my Palm or PocketPC (if I end up having to get one of those). So, I want the synchronization between systems, similar user interfaces (don't know yet if I can do that with J2ME), and it would be great if I could 'inject' password information from my Palm to a web form without having to type it in...
    18 years ago

    Originally posted by Kevin Knowles:


    OK, we're part of the way there. As you note, your environment doesn't have the correct CLASSPATH, so junit.jar isn't appearing in it and since the main of junit.test.AllTests depends on classes in that jar it won't execute.
    So, which version of Windows are you on and how are you setting CLASSPATH? I'm on Windows 2000 and I have the following environment variable set up in the "System variables" section rather than the "User variables for rjensen" section:
  • ANT_HOME C:\ant-1.5
  • JUNIT_HOME C:\junit3.8
  • CLASSPATH %JUNIT_HOME%\junit.jar;%ANT_HOME%\lib\optional.jar;.
  • So, whenever I open a command prompt window this classpath is already set for me.
    18 years ago

    Originally posted by Pauline McNamara:
    And on a related note, I've recently considered buying "Design Patterns Explained". Opinions?


    I have DPE. (I got it after hearing Alan Shalloway give a talk). I remember him saying that he struggled with the GOF advice of "find what varies and encapsulate it". In a lot of ways GOF is pretty dense and I've struggled with it. I wish I had the time to go through a patterns study grop experience, but at least DPE gives me a different way to approach patterns.
    18 years ago
    Somehow some detail got left out of my previous post. The first code section is the content of the directory where JUnit is installed, and I said to make sure that JWhich.class was copied to that directory (and confirm by the output from dir which is what I showed). I'll fix that up.
    As to your CLASSPATH settings, if you do 'set CLASSPATH<return>', you should get back a fully substituted value (that is, there should not be any %var% entries). Like so:

    So, with JWhich.class in the directory in which you installed JUnit, (and with that being your working directory) what are your results for:
  • java JWhich JWhich
  • java JWhich junit.tests.AllTests
  • 18 years ago