Type: Posts; User: ChristopherLowe

Page 1 of 13 1 2 3 4

Search: Search took 0.94 seconds.

  1. Replies

    Re: Help with Iterators

    Expand this code out:

    file = new Scanner(new File(fileName));

    and stick in a println to check it really is looking in the right place for the file
  2. Replies

    Re: Help with Iterators

    public KenkenIterator iterator()
    KenkenIterator temp;
    return temp;

    As it says, temp is never initialized. You could return self (since KenkenIterator implements Iterator)
  3. [SOLVED] Re: Algorithym to remove unnecessary points

    I can't imagine anyone would find this interesting but myself, however something came across my desk the other day that was sort of relevant to this. We needed to simplify closed, non-linear...
  4. Replies

    Re: Some help with looper

    What lead to this realisation? Why do you need a looper?

    This sounds like a job for an asynchtask. They are frequently used for background processes that don't block the UI thread. Looper...
  5. [SOLVED] Re: Simple 2d optics simulation program

    I've two suggestions.

    This is a very bad idea. You are clashing with java.lang.Object. Rename this to something like IReflectable.

    Next, this line you believe to be the problem;

  6. Re: Converting primitive data types to read integers with decimal

    Welcome to the forums. Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    The first step in debugging to look at the stack trace...
  7. Replies

    Re: Nerd Alert- New Member

    I have mixes feelings on this. 6 months in a course called 'Operating Systems' without ever opening a linux console or task manager? 1 year of database design without actually creating a database...
  8. Replies

    Re: Free Android App Host

    I've used an Amazon EC2 instance for a year (just started paying for it). They are complex to configure and I wouldn't recommend them unless scalability is an issue but they are free for the first...
  9. Replies

    Re: Ever tried Swift via xcode?

    I've played with it for about 8 hours. It has some modern concepts like closures and generics but it maintains a lot of the difficult to grasp Objective-c concepts like delegates and blocks just...
  10. Replies

    Re: Help with a client server program

    If I may, I'd like to take a step back from the code and talk about server theory. There are a lot of acronyms and paradigms surrounding servers but ultimately they all fall into one of two broad...
  11. Replies

    Re: Hello developers

    Hi! I'm Chris from Australia. I love to code and am employed to work on GIS Android and iOS apps. jMonkey has been a massive inspiration for me over the years and it's a real pleasure to meet...
  12. Re: Question about good coding practice

    If I understand your problem correctly it looks like a good candidate for a Visitor design pattern.

    public interface IElementVisitor {
    public void visit(Root root);
    public void...
  13. Re: Android: How to deal with App being closed in the background?

    You re-create the Views with a Bundle but your model sounds complex enough to warrant it's own serialization. Kevin's answer is the way to go; serialize in onPause() and deserialize in onResume()
  14. Re: Android: How to deal with App being closed in the background?

    Chances are your app is being destroyed by the OS either because it is in the background for too long or another process needs the resources. The correct way of dealing with this is to re-create...
  15. Replies

    Re: Java Android Front End help!

    Creating the intent isn't enough. You need to start it.


    See Building your first app -> Starting another activity for more details.
  16. Replies

    Re: Getting list of Apps in java

    You are going to have a hard time with that. The operating systems task manager only care about processes. A process can have zero, one or many windowed applications associated with it and in odd...
  17. Re: Distinguish additive + and "connecting +" in system.out.println

    The String documentation explains how the + operator applies to Strings:
  18. [SOLVED] Re: Algorithym to remove unnecessary points

    @Vinvar - Some of your assumptions are incorrect. The first and last points should *never* be culled. They are critical in defining the geometry and removing Point 6 in your example turns it from...
  19. [SOLVED] Re: Algorithym to remove unnecessary points

    My data set was entirely linear point geometry like OP's. The threshold I used was originally hard coded but after field testing we used the rendering time and number of culled points to adjust the...
  20. [SOLVED] Re: Algorithym to remove unnecessary points

    Ah terrific question! One of the best I've seen for a long time. This happens to be very close to me because I've recently be trying to optimise shape files for use on a tablet.

    My solution was...
  21. Re: How split a text looking for values with regular expression

    Do you need to use regular expressions as part of an assignment or learning exercise? If so I'd recommend using an online tool like this to test your regular expression syntax. If not, well there...
  22. [SOLVED] Re: Difference between Interpreter and Compiler

    Not quiet correct. A compiled language turns the source code into native machine code which can be directly executed by the hardware. An interpreted language compiles the source code into something...
  23. Re: How split a text looking for values with regular expression

    You could get away doing this with basic String methods. Use int indexOf(char c) to find the location of the '(' and ')' characters then concatenate two substrings with the bits that come before...
  24. Replies

    Re: Getting list of Apps in java

    Are you trying to get a list of processes running on the machine? It's not a very Java'ery thing to do because the solution depends on the platform (windows, mac, linux, etc). There is no platform...
  25. [SOLVED] Re: Difference between Interpreter and Compiler

    Welcome to the forums!

    A big part of learning how to program is research and self learning. The good news that the largest library ever created is a google search away. Why don't you do a bit of...
Results 1 to 25 of 318
Page 1 of 13 1 2 3 4