Search:

Type: Posts; User: Sean4u

Page 1 of 20 1 2 3 4

Search: Search took 0.22 seconds.

  1. Replies
    1
    Views
    1,645

    Re: Code for Plotting 2D graphs

    You can connect Java via USB / serial, but you might need to give up any hope of "Write Once Run Anywhere". I wrote a little helper in Java for a bad oscilloscope I bought once here:
    gds2062 -...
  2. Re: Wondering if there's a way to make this more efficient.

    Remember if your function argument is int or smaller and your function return value is int or smaller, that there's *by definition* a static alternative on reasonably common hardware. Your "boolean...
  3. Re: How to update the status of a java application from outside mail

    You mean a link like a "Please click here to confirm your registration"? That would usually be a http URL, so "m/c A" (no weird abbreviations next time, please) would have to run an HTTP server on a...
  4. Replies
    14
    Views
    2,997

    Re: edit .conf file in /etc linux (java SE)

    You may need to read the response for the request to be sent. I'm fairly sure it's a 'lazy' process. Read the API docs for HttpUrlConnection - I think reading a response header or the response body...
  5. Re: Main method/ class problem. I can't run any script!

    Your Test.java source file contains a class called "Hello" - that's wrong, it should be a class called "Test". If you want its full class name to be test.Test, you should have a package declaration...
  6. Re: Question about obtaining information from a pulse oximeter for program

    Oh! That was a useful post - I just happen to be working on something a bit like cosm and wasn't aware of the site :-L

    I'd hesitate to recommend going down the Arduino route, unless you're...
  7. Re: Question about obtaining information from a pulse oximeter for program

    I've used USB-plugged devices from Java in the distant past - it does work. The problem you'll face is how well documented the USB interface is for whatever device you use - reverse engineering an...
  8. Replies
    1
    Views
    1,148

    Re: Unable to read '#' value using getParameter

    That '#' is the Fragment Identifier:

    Fragment identifier - Wikipedia, the free encyclopedia

    You won't see it at the server because most user agents (browsers) don't send it to the originating...
  9. Thread: String question

    by Sean4u
    Replies
    11
    Views
    1,304

    Re: String question

    Norm has done a better job than I have of reading your code :D
  10. Thread: String question

    by Sean4u
    Replies
    11
    Views
    1,304

    Re: String question

    I've never used Scanner, but a quick glance at the API doc for the class makes me think that 'hasNext' and 'nextLine' is not a good combination. 'hasNext' and 'next' seem better matched but not...
  11. Replies
    1
    Views
    997

    Re: Newbie all round

    Welcome to the forum

    With Java? I think Java's great, but it wouldn't be my first choice for "building a website" if I was "new to programming in any language". Are you sure you're not thinking of...
  12. Replies
    1
    Views
    2,044

    Re: java.lang.outOfMemory heap space

    How about providing some more information? What exactly are you doing? A copy-pasted stack trace is always more useful than "i got the error like". You could let us know what platform you're using...
  13. Re: how to make a java code of a shaded answer sheet..?

    :D I just happened to be wondering the same thing as 'wap' when I saw the question!
  14. Re: how to make a java code of a shaded answer sheet..?

    What you're trying to do is Optical Mark Recognition:

    Optical mark recognition - Wikipedia, the free encyclopedia

    A quick search for "java omr" got me this page, which contains a link to an...
  15. Thread: Year help

    by Sean4u
    Replies
    2
    Views
    1,003

    Re: Year help

    Is there a reason why you're not using GregorianCalendar?

    GregorianCalendar (Java 2 Platform SE 5.0)
  16. Replies
    2
    Views
    1,199

    [SOLVED] Re: Help with password generation

    You just need to re-read the API documentation for Random. The constructor you're using doesn't do what you think it does. Nor does Random.nextInt(). The fix is to select the correct constructor and...
  17. Replies
    17
    Views
    2,211

    Re: Java socket corruption

    The way the data starts out 'bad' but ends up ok makes me think your problem is at source - and probably something to do with some bit-serial code somewhere. If you're using a Java Socket as your...
  18. Replies
    17
    Views
    2,211

    Re: Java socket corruption

    Like I've already said more than once: I don't think there's anything wrong (that would cause the problems you report) with your Java code.

    When you test your code to get the outputs you've...
  19. Replies
    17
    Views
    2,211

    Re: Java socket corruption

    You're wasting your time trying to get your Java code working when you say you've seen scrambled data at the network level. I think your problem is between the device and your PC. Where is the...
  20. Replies
    17
    Views
    2,211

    Re: Java socket corruption

    That's not what I meant - what I mean is "what is offering port 7000" on your PC? I see in one of your programs that you open a ServerSocket on port 7000, but I don't understand why you'd read...
  21. Re: JAVA program help : 1+1!+1/2!+1/3!+ .... 1/N!?

    It'll work because Math.pow is pow(double a, double b):
    Math (Java Platform SE 6)
    'n + 2' is an expression whose value is int if n is an int and double if n is a double (the '2' is an int and would...
  22. Replies
    1
    Views
    1,347

    Re: Is this possible?

    Don't duplicate your posts. You've already posted this question here, with context (your assignment):...
  23. Re: JAVA program help : 1+1!+1/2!+1/3!+ .... 1/N!?

    Specific examples we can help with!
    You can of course do what you just posted, but it won't help you (I think) compute (1-to-N)! What you really need to do is to write a method with a signature like...
  24. Re: JAVA program help : 1+1!+1/2!+1/3!+ .... 1/N!?

    Sure, here you go:
    http://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Doffice-products&field-keywords=week+to+view&x=0&y=0
    and also:
    Go to sleep. Even if someone haz teh codez, no tutor...
  25. Re: HttpURLConnection with POST data URLEncoder.encode not working i think

    You used OutputStream.write() with a String in your original code.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4