Search:

Type: Posts; User: ChristopherLowe

Page 1 of 15 1 2 3 4

Search: Search took 0.49 seconds.

  1. Replies
    8
    Views
    148

    Re: NTP server problem

    This defeats the purpose of an asychtask and causes your UI thread to hang. It's a bad idea that the server illustrates to you by rejecting the second query causing your app to ANR. The UI should...
  2. Re: Advice needed about java database systems

    I highly recommend you look into Database normalization. The idea is to eliminate redundancies in SQL databases by establishing relationships between tables. 30 columns for the database you are...
  3. Re: Java books for intermediate level?

    In my opinion, neither. Between StackOverflow and the java docs you have free access to all the info you need. I'd suggest a more language agnostic reading list; Clean code, Clean Coder and Head...
  4. Re: Advices on obfuscation and keep the related systems working.

    If you build and obfuscate them together you won't have an issues because at it's simplest level it's just a find and replace. Public API's are a little different, you will need to build exclusion...
  5. Re: Can anyone do this assignment for me?

    You have posted five questions on this site. Each one is a copy and paste of your assignment question and I have yet to see any attempt to solve your own problems.

    Understand that we will assist...
  6. Re: efficient way to gather data from site

    The short answer is you can't. Get in touch with the administrators of the site and see if there is a some sort of API for this feed of data. Website scraping is horrifically complex and prone to...
  7. Replies
    6
    Views
    101

    Re: Java classes static?

    This question lies at the heart of Object Orientated programming. A Class defines a type. An Object is an instance of a Class.

    For example, the noun 'Book' is a class but if you grab the nearest...
  8. Replies
    8
    Views
    148

    Re: NTP server problem

    But the simulator takes a ridiculously long time to boot even when configured properly. Accidentally close the window and you have to go through that again. A device charges while connected to USB...
  9. Replies
    8
    Views
    148

    Re: NTP server problem

    You must have a beefy computer. The emulator is notoriously slow. Handy in a pinch but you are the first person I've met who would take it over a real device.



    Genymotion is an android...
  10. Replies
    8
    Views
    148

    Re: NTP server problem

    I think the answer to this behaviour is buried in Using the Emulator. The android emulator sits behind it's own virtual network space and doesn't support certain things. It looks like inbound UDP...
  11. Re: Advices on obfuscation and keep the related systems working.

    You can never fully protect yourself from reverse engineers, only make their job so hard it isn't worthwhile. I use Proguard to obfuscate commercial products. It's fast and also minifies the jar....
  12. Replies
    6
    Views
    110

    Re: resizing an array

    You cannot change the size of an array after it has been created. Use an ArrayList for a variable length arrays or create a new array and copy the values over as Greg suggests.
  13. Re: Need Searching Algorithm Recommendation for my Chatbot AI

    Chatbot algorithms are a massive and open ended area of study. You won't find a good answer here or anywhere else. I suggest reading up on literature and studying existing chatbots. ELIZA is a...
  14. Re: Help with a Http 1.0 Request Handler

    Once again, it depends on the purpose of the server. If it's a public web service like facebook or google the exact request format will be documented and must be adhered to. If it's your own server...
  15. Re: Help with a Http 1.0 Request Handler

    Yeah there a number of Chrome addons that can be used to inject headers, bodys and parameters into HTTP calls and view the response. They are good for one off requests but I've yet to find one that...
  16. Replies
    6
    Views
    145

    Re: JPF Reputation and how it works.

    Let's test it and find out

    For my next trick I'm going to rep up every post of yours I come across and see if I can buy you a coffee or two.

    *update*



    8-}
  17. Re: Help with a Http 1.0 Request Handler

    That will entirely depend on the purpose of your server. A common task for web services is to query a database and return the result (JSON or XML) for GET and update the database for POST.


    ...
  18. Replies
    6
    Views
    145

    Re: JPF Reputation and how it works.

    IIRC JavaPF elevated me to VIP a couple of years ago when I asked how to make blog posts (link). Speaking of which I'd like to nominate Cornix for VIP. Dude is knowledgeable and a valuable...
  19. Re: Help with a Http 1.0 Request Handler

    The server accepts parameters from a http URI and returns a response. For POST this will be a list of NameValuePair's that are attached to the HttpPost entity by the client. For GET these are...
  20. Re: Basic Syntax Question from a PHP Dev

    PHP is dynamically typed. When you declare a variable it's type is inferred and can be changed.

    Java is statically typed. You need to specify the type of the variable before it can be...
  21. Replies
    1
    Views
    74

    Re: Stack Overflow

    Try: -Xss4096m to increase the stack size. Xmx is for the maximum heap size (OutOfMemory)

    It should be noted though that this isn't the correct answer, just the one you are looking for. It's...
  22. Re: Need to read .class files and search for access to blacklisted classes

    No it's not.



    Yes, it really is!

    Computer security is a process, not a product. Short of taking your system offline, locking it in a safe and burying it in the middle of a desert you will...
  23. Re: Need to read .class files and search for access to blacklisted classes

    I don't think you need a custom ClassLoader, only a custom SecurityManager. The idea is to extend SecurityManager and override checkPermission(Permission perm).

    (this is pseudo-ish)



    ...
  24. Re: Need to read .class files and search for access to blacklisted classes

    I did something similar to what you are suggesting with Classloaders and the reflection api a few years ago. I had it in my mind to do a code analysis tool that listed all the classes used in a...
  25. Replies
    6
    Views
    97

    Re: iHas a Sad ;(

    public int assembly(int wheels, int trucks, int bearings, int gripTape)


    This method declaration returns an int



    sb1.assembly(4, 2, 8, 1);
Results 1 to 25 of 353
Page 1 of 15 1 2 3 4