Search:

Type: Posts; User: Time

Page 1 of 2 1 2

Search: Search took 0.18 seconds.

  1. Re: How to merge an int array then put it in ascending order without any Java APIs

    Hmm, I was just about to ask that question

    Well you could just generate the effect yourself you need to check for the lowest, and keep looping till your new array is the size of the original:

    ...
  2. Re: How to Send emails from Google Mail using JavaMail API

    Just showing some love for this post I've always messed around with the mail api, but never could figure out the connect method

    Thanks

    EDIT:

    For people using the newer version of Mail api...
  3. Thread: class extending

    by Time
    Replies
    4
    Views
    915

    Re: class extending

    A class cannot extent two classes, however if the ApplicationFrame is a Interface implement the AplicationFrame after Exending the JFrame:



    public class Main extends JFrame implements...
  4. Replies
    3
    Views
    2,079

    Re: creating a ceaser cipher

    I put it together as:


    public static String encrypt(String s) {
    for(char letter : s.toCharArray()) {
    s += (char) ((letter - 32 + 3) % 96 + 32);
    }
    return...
  5. Replies
    4
    Views
    1,360

    Re: Text output in GUI

    Hello aspiring programming,this is a good example of the power of StringBuilder



    public StringBuilder consoleText = new StringBuilder();

    public void println(String s) {
    ...
  6. Thread: Theory/Question,

    by Time
    Replies
    7
    Views
    688

    Re: Theory/Question,

    Oh wow, now I understand what you mean. Thanks for clearing that up :cool: =D>
  7. Thread: Theory/Question,

    by Time
    Replies
    7
    Views
    688

    Re: Theory/Question,

    I know it's 4mb, I can send it within a minute or less, Im trying to get it sent within a fraction of a second (%)



    Aren't 2+ socket's on different ports possessive of their own input-stream?,...
  8. Thread: Theory/Question,

    by Time
    Replies
    7
    Views
    688

    Re: Theory/Question,

    Ill have the port method benched soon, (Wrapping up some loose ends).

    As for compression, I've attempted various methods including that of the Deflater, and Inflater class but the time the...
  9. Thread: Theory/Question,

    by Time
    Replies
    7
    Views
    688

    Re: Theory/Question,

    Well since no one is posting my idea is hosting multiple sockets on different ports similar to a torrent client, sending the blocks then mashing them together.

    Any other ideas?
  10. Replies
    4
    Views
    2,396

    Re: Remote Desktop Support Application

    Hey Ive been working on a system for awhile now, I recommend before any of the hardware control you start of with the image sending (The actual viewing), I personally used a robot peer to take make...
  11. Sticky: Re: Looking to employ a Java programmer? Try - JavaProgrammingCareers.com

    Joined it, very structured site. Loving it
  12. Thread: Theory/Question,

    by Time
    Replies
    7
    Views
    688

    Theory/Question,

    This isn't really a help topic, Im just looking for opinions

    If you needed to send 4,000,000 bytes (4 million), as quick as possible, assuming the client was not on your localhost.

    Would you...
  13. Replies
    3
    Views
    5,797

    Re: call win32 api from java

    I recomend using JNA, Website Here

    It's much more simplistic,

    Then use this sample code:


    import com.sun.jna.Native;
    import com.sun.jna.win32.StdCallLibrary;
  14. Thread: I/O question..

    by Time
    Replies
    4
    Views
    518

    Re: I/O question..

    Hmm, Im thinking has somthing to do with network, rather then inputStream itself, let me do some tests.
  15. Thread: I/O question..

    by Time
    Replies
    4
    Views
    518

    Re: I/O question..

    First is the server, but either way it shouldnt matter right?, InputStream is still an InputStream,

    and me writing the id, and the length, shouldn't matter, it's not incorporated to the initial...
  16. Thread: I/O question..

    by Time
    Replies
    4
    Views
    518

    Re: I/O question..

    Is there a limit to the amount of byte's the InputStream of a socket, can be filled up to at a current moment?

    I assumed the max was Integer.MAX_AMOUNT,

    Hmmm
  17. Thread: I/O question..

    by Time
    Replies
    4
    Views
    518

    I/O question..

    hello folks.

    Small question, pain in my ass.

    Anyway, the reason i've asked this question is due to this sample code,

    Client sided:


    output.write(packet.getId());
  18. Replies
    4
    Views
    585

    Re: Hmm, Is this possible?

    I thought the actual Socket object it self would provide a way to overcome that.
  19. Replies
    5
    Views
    3,597

    Re: Method to count objects

    Well for one, make the method static otherwise the feild "numMyClass" is a new value every instance, and in terms of removing, you need to override the "finalize" method, called by the garbage...
  20. Replies
    4
    Views
    585

    Hmm, Is this possible?

    Alright before you comment, Im thinking in perspective to sockets.

    Before I go to my question, Ill show an example of what I mean.

    A simple socket to connect to a server can be created like:
    ...
  21. Replies
    15
    Views
    3,159

    Sticky: Re: New Syntax Highlighting Feature!

    Cheers, happy the class is named Time.
  22. Thread: Another Method,

    by Time
    Replies
    4
    Views
    906

    [SOLVED] Re: Another Method,

    Uber bump?

    I solved this issue so long ago.
  23. Thread: Should be simple.

    by Time
    Replies
    4
    Views
    513

    [SOLVED] Re: Should be simple.

    Haha fixed didn't relize there was a field "written" within the datainputstream.

    Thanks JSon for your attempt anyway.
  24. Thread: Should be simple.

    by Time
    Replies
    4
    Views
    513

    [SOLVED] Re: Should be simple.

    Yes the off is offset from within the actual byte array you begin off, the len is the actual length you base off of that,

    The method within the actual DatainputStream would look simular to this:
    ...
  25. Thread: Should be simple.

    by Time
    Replies
    4
    Views
    513

    [SOLVED] [SOLVED] Should be simple.

    Im trying to make genuine use of the "seek" method in RandomFileAccess,

    Would the getPosistion within this class be a valid marker for the current posistion? (As you may as already geuss Im here...
Results 1 to 25 of 39
Page 1 of 2 1 2