CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Magus

Page 1 of 8 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    0
    Views
    750

    Trouble encrypting correctly with AES with a static key

    Hi. I'm trying to get JCE to work with the following example using AES in ECB mode (yes, ECB shouldn't be used, but it's what I'm supposed to use): given a clear text String represented by the bytes...
  2. Replies
    3
    Views
    10,792

    Re: Converting double to binary string and back

    :D
    Hmmmm... Yeah, that'd be cheating, but at least it does seem like a solution. :)
    If you come up with a different one, I'm interested.


    Thanks a lot!
  3. Replies
    3
    Views
    10,792

    Converting double to binary string and back

    Hi. I'm having trouble with bidirectional double decimal-binary conversion. I tried the following:



    // doubleValue to binaryString
    double doubleValue = 3.0d;
    String binaryString =...
  4. Re: ActionListener... Im loosing my mind.. Please help ;)

    Hmmm... Doesn't he still need to say the inner class (PushButtonActionListener) is static (a top-level nested class) in order to instantiate it without an instance of testi?

    Update: Oh, what...
  5. Re: C++ equivalent of Java HashMap: sample code for porting

    Hmmm... If there's a different way of having near-random access time on a map without using hashing, it doesn't have to be a hash map. What I don't want is having to iterate through the data...
  6. C++ equivalent of Java HashMap: sample code for porting

    Hi. I'm an experienced Java programmer with some knowledge of C and very, very little knowledge of C++. However, I need to be able to port Java code that uses the Java Collection API, especially the...
  7. Replies
    1
    Views
    11,834

    Re: [JAXB 2.0] JAR files in classpath

    Hmmm... It seems including jaxb1-impl.jar, jaxb-api.jar, jaxb-impl.jar, jaxb-xjc.jar, jsr173_api.jar, sjsxp.jar, resolver.jar and activation.jar did the trick. :)
  8. Replies
    1
    Views
    11,834

    [JAXB 2.0] JAR files in classpath

    Hi. So far I've found some tutorials that use versions of JWSDP (thus of JAXB) older than 2.0, and they tell me to include either jaxb-libs.jar, jaxb-api.jar and jaxb-ri.jar or jax-qname.jar,...
  9. Re: [WebServices] wscompile classpath issue I simply can't solve!

    Hmmm. Hi. Using -verbose didn't provide me with anything interesting. Anyway, the issue was that the interface (JBoss Eclipse IDE generated it) was implementing javax.ejb.EJBObject instead of...
  10. [WebServices] wscompile classpath issue I simply can't solve!

    Hi. I'm trying to generate a mapping.xml and a WSDL file for my version of HelloService. However, for some reason wscompile doesn't accept multiple classpath entries (which should be separated by ; )...
  11. Replies
    14
    Views
    3,402

    Re: java ide recommendation

    Huh!? Better than Eclipse? Hmmm.... I'm curious...
  12. TCP SYN Flood Detection with RAW Socket in Linux

    Hi. Next Tuesday I'm supposed to deliver a program for Linux written in C that detects likely occurrences of TCP SYN Floods, using RAW Socket. I've never, ever done any programming related to...
  13. Replies
    2
    Views
    478

    Thread predictability question

    Hi. Can someone convince me the following program has to always behave the same?



    public class Reader extends Thread {
    Calculator c;
    public Reader(Calculator calc) {
    c = calc;
    }...
  14. Re: To all SCJP 1.4 (sun sertified java programmers)

    Yesterday I came across an interesting program named Whizlabs SCJP 1.4 Exam Simulator. You should get it...
    I'm considering taking the SCJP 1.4.
  15. Replies
    20
    Views
    4,197

    Re: How to prevent from being decompiled?

    Nothing a quick search on Google couldn't solve... :)

    http://java.sun.com/j2se/1.4.2/docs/guide/rmi/getstart.doc.html

    http://www.javacoffeebreak.com/articles/javarmi/javarmi.html
    ...
  16. Thread: Gui?

    by Magus
    Replies
    5
    Views
    1,055

    Re: Gui?

    Some Java IDEs have a visual GUI builder...
  17. Replies
    13
    Views
    1,801

    Re: Convert object class to actual class

    Are you referring to the Class.forName method? The parameter is a String (the class name) and the return type is a Class...

    PS: there's no conversion involved.
  18. Replies
    6
    Views
    580

    Re: Point in the right direction any one?

    - Rather than none, the constructor method must have two parameters: the name and the mother.

    - Your "re-declaring mother" inside the constructor is pointless. You're declaring an additional...
  19. Replies
    6
    Views
    580

    Re: Point in the right direction any one?

    You should keep in mind in Java the keyword this refers to the object itself.



    Object thisObj = this; // makes thisObj point to this object - this is pretty redundant though
  20. Replies
    6
    Views
    580

    Re: Point in the right direction any one?

    - mother should be of type Amoeba, not String.

    - There must be a field of type Amoeba which will reference the current instance (this).

    - The constructor must take the name (String) and the...
  21. Replies
    18
    Views
    3,189

    Re: "Generic" Nightmare, JTable,Vector,jdk 1.5.0

    I believe a general concept involving Generics is that a data structure is supposed to store elements of one type (at least polymorphism applies ;)). If your one Vector is supposed to store Integer,...
  22. Replies
    7
    Views
    828

    Re: Overwriting a file that's in use?

    Hmmm... Process Explorer allows you to close file handles of processes on Win2k/XP. http://www.sysinternals.com .
    No relation to Java programming though. ;)
  23. Replies
    2
    Views
    563

    Re: low level Java question

    If you mean you wanna know how to express the logical OR operator, it's ||.


    if (x > y || x > z) {
    // ...
    }

    Logical AND is &&.

    PS: you can use the Math.max method to get the greater...
  24. Thread: Data conversion

    by Magus
    Replies
    2
    Views
    598

    Re: Data conversion

    Elaborate.

    If your String contains hexadecimal characters (as part of the String itself), it's already "readable". You should print it and read the characters. :wave:

    If you have an array of...
  25. Replies
    16
    Views
    1,565

    Re: A question about creating new objects...

    Oh, about the ArrayList and cast thing:

    http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf

    Just so you don't ignore what has come up to grab your necks in J2SE 1.5. ;)

    Ex:

    ...
Results 1 to 25 of 181
Page 1 of 8 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)