Search:

Type: Posts; User: ChristopherLowe

Page 1 of 13 1 2 3 4

Search: Search took 0.24 seconds.

  1. [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;

    ...
  2. 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...
  3. Replies
    24
    Views
    329

    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...
  4. Replies
    2
    Views
    165

    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...
  5. Replies
    3
    Views
    123

    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...
  6. Replies
    16
    Views
    260

    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...
  7. Replies
    4
    Views
    102

    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...
  8. 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...
  9. 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()
  10. 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...
  11. Replies
    2
    Views
    124

    Re: Java Android Front End help!

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



    startActivity(intent);


    See Building your first app -> Starting another activity for more details.
  12. Replies
    13
    Views
    209

    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...
  13. Re: Distinguish additive + and "connecting +" in system.out.println

    The String documentation explains how the + operator applies to Strings:
  14. [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...
  15. [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...
  16. [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...
  17. 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...
  18. [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...
  19. 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...
  20. Replies
    13
    Views
    209

    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...
  21. [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...
  22. [SOLVED] Re: Incremental change to a java program

    I've used Java web start in the past with great success. The user clicks an icon on the desktop and it checks a website for the latest version and automatically updates when required.
  23. Re: Article: Image Processing Tutorial

    It's possible but in the same order of complexity as facial recognition. You or I can look at an image and read the text. A computer has to be instructed on how to interpret the raw data. It will...
  24. Replies
    6
    Views
    220

    Re: Concurrent Mod Exception

    Fast enumerations like this:


    for (Speler sp1: inschrijving.getSpelers()){

    }

    Create an iterator. Iterators are designed to fail fast when you directly modify a collection while iterating...
  25. Replies
    7
    Views
    237

    Re: importing java librarys

    Just a parting word of advice; use the Android toolset for Android problems where possible. The MediaPlayer may seem complex at first glance but it was designed for Android from the ground up and...
Results 1 to 25 of 314
Page 1 of 13 1 2 3 4