• Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in How to design the website in Java

    You need to create a "Dynamic Web Project". This is assuming you have downloaded Eclipse for Java EE.
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Fall 2013 Anime Preview

    > IS2 is...abysmal. IS2 was a disaster, I really didn't see that coming. Given that this season is pretty much done, here are my thoughts: 1. Magi S2 -- The …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Edited Winter 2014 Anime Preview

    Howdy-ho folks! It's that time of the year again; Winter 2014 anime starts airing in a few days. The latest chart can be found at [ATX Pieces site](http://atxpieces.files.wordpress.com/2013/12/winterv6.jpg). Fall 2013 …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Created Winter 2014 Anime Preview

    Howdy-ho folks! It's that time of the year again; Winter 2014 anime starts airing in a few days. The latest chart can be found at [ATX Pieces site](http://atxpieces.files.wordpress.com/2013/12/winterv6.jpg). Fall 2013 …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Winter 2014 Anime Preview

    Howdy-ho folks! It's that time of the year again; Winter 2014 anime starts airing in a few days. The latest chart can be found at [ATX Pieces site](http://atxpieces.files.wordpress.com/2013/12/winterv6.jpg). Fall 2013 …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching MineSweeper

    I made this minesweeper game earlier this summer. It shows many things, including: array use, 1D array to 2D array, gridlayout, changing the way a JButton works depending on mouse …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in MineSweeper

    > @sciwizeh, i don't know if it is me, but i think "a" is trying to make a game like tetris? Did you see the screenshot? It specifically says "mines"...
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Revise Distance Formula

    > Any corrections and how to make decimal point show only 2 digits after? I believe there are a few [replies made to your previous thread](http://www.daniweb.com/software-development/java/threads/469471/how-to-cut-off-decimal#post2046174) which should provide you …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Revise Distance Formula

    No, you need to change your inputs, line 3-4...
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Gave Reputation to peter_budo in How to receive and send json with the com.google.gson.* library?

    Just for benefits of community here is sample {name: "peter_budo", userGroup: ["user", "moderator"]} For this you would require class something like this public class User { @SerializedName("name") private String name; …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Revise Distance Formula

    Okay, so for another assignment I have to find the distance of two points. I understand how that works but for some odd reason, when the program the professor set …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Revise Distance Formula

    > the proper answer the program is expecting is 514.03. What did i miss? You missed gathering the correct co-ordinates. sqrt(2^2 + 2^2) is indeed sqrt(8) => 2.828427 ...
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching How to cut off decimal

    I am trying to cut the decimal off the output of this small code: import java.util.Scanner; public class Distance { public static void main(String[] args) { java.util.Scanner in = new …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in How to cut off decimal

    Use the `printf` method of the `PrintStream` class. For e.g. something like: double yourNum = 5192.237545685454687; System.out.printf("%.2f", yourNum); // 5192.24 Notice that it has automatically done the rounding for you …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Gave Reputation to Doug_1 in Assembler for Little Computer 3 (LC-3) in Python

    Very useful... I used your assembler as a starting point, added an interpreter, and created a complete language, with stepping debugger, tracing, break points, memory view, and more. See http://calicoproject.org/Calico_LC3 …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Mark All Threads Read

    Is there currently a way to mark all threads in a forum as read? Every one of the forums I see in the Home Page shows NEW (I assume that …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Mark All Threads Read

    At the bottom of every forum/sub-forum page there is a button which says "Mark Forum Read" (right next to Start New Discussion). That should do the trick.
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Outputting text with Formatting

    Ok so I'm writing a program that outputs text to a file. Currently, I am writing it to a .TXT file for ease and convenience. Ideally, I would like to …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Outputting text with Formatting

    > Currently, I am writing it to a .TXT file for ease and convenience. Ideally, I would like to output some of the information so that it is formatted with …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching New Homepage

    Nearly 5 am and I lost track of time and spent alllll night coding up our new homepage, which features our Activity Stream. Secondly, there's now a 'New' tab within …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in New Homepage

    No tab for News/Tutorials on the main page? Also, do you maintain a list of "popular" threads (based on view count, upvotes etc.). I think those threads with a lot …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Sockets are retain even after closing them?

    We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Sockets are retain even after closing them?

    > How to decide what is non-live objects? You don't need to decide, that's why you run `jmap` with `histo:live` so that non-live objects are not shown. > But why …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Sockets are retain even after closing them?

    We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Sockets are retain even after closing them?

    That's because non-live objects tend to stick around till a GC cycle. Running `jmap` with histo:live option forces a GC and hence you see around 8 instances. Now you just …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Sockets are retain even after closing them?

    We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Sockets are retain even after closing them?

    OK, let me be a bit more explicit. The 8 instances, were they on the server? If yes, did you do the jmap after running the 50 connection test i.e. …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Sockets are retain even after closing them?

    We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Sockets are retain even after closing them?

    I'm not sure I understand. Your above post shows that the jmap prints 8 lie SocketInputStream instances. Why do you say the results are the same?
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Sockets are retain even after closing them?

    We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Sockets are retain even after closing them?

    So basically now you don't have 50 open sockets on the server? Correct? Or do you still have a query/question?
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Sockets are retain even after closing them?

    We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Sockets are retain even after closing them?

    I believe this is the serverside dump. How are you simulating the test code? Have you writtent a multithreaded client which does this? Are you doing proper cleanup in the …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Sockets are retain even after closing them?

    We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Sockets are retain even after closing them?

    > I actually followed this link http://stackoverflow.com/questions/3428127/what-is-the-difference-between-closing-input-outputstream-and-closing-socket-dir which says just close the writeBuffer will be enough. Just to try out something else, close all 3: first the output stream, then …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Sockets are retain even after closing them?

    We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Sockets are retain even after closing them?

    I can't do any meaningful analysis sitting here but I would recommend you approach this problem in a organized way. From your post, if seems that you have multiple issues: …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Sockets are retain even after closing them?

    We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Sockets are retain even after closing them?

    > There are many sockets running so I cant decide on when the exactly the socket is closed. Normally what is the time gap between for the teardown time? Don't …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Daniweb OAuth support

    Hi Dani, AFAIK OAuth 2.0 supports 3 flavours: Server side apps, client side apps and installed apps. Does Daniweb Oauth allow OOB in the redirect_uri which is part of the …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Daniweb OAuth support

    Yup that was a really bad mistake, good job spotting that! :) Anyways, I have finally got the OAuth API functions working in a console script. There are a few …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Daniweb OAuth support

    Hi Dani, AFAIK OAuth 2.0 supports 3 flavours: Server side apps, client side apps and installed apps. Does Daniweb Oauth allow OOB in the redirect_uri which is part of the …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Daniweb OAuth support

    Yes, that URL worked fine. OAuth for standalone app has two parts: getting the code by asking the user to allow access and then using that code to get the …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Daniweb OAuth support

    Hi Dani, AFAIK OAuth 2.0 supports 3 flavours: Server side apps, client side apps and installed apps. Does Daniweb Oauth allow OOB in the redirect_uri which is part of the …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Daniweb OAuth support

    > I'm sorry, I'm still confused what isn't working? Did you follow the documentation on the API page and specify 'oob' as the redirect_uri? Is that not what you want?? …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Daniweb OAuth support

    Hi Dani, AFAIK OAuth 2.0 supports 3 flavours: Server side apps, client side apps and installed apps. Does Daniweb Oauth allow OOB in the redirect_uri which is part of the …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Daniweb OAuth support

    > Try setting the redirect_uri to simply 'oob' instead of the whole urn:blahblahblah. Great, that worked though I think you should later refactor code to stick to the standards. :) …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Daniweb OAuth support

    Hi Dani, AFAIK OAuth 2.0 supports 3 flavours: Server side apps, client side apps and installed apps. Does Daniweb Oauth allow OOB in the redirect_uri which is part of the …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Replied To a Post in Daniweb OAuth support

    > Are you not able to simply send an HTTP request and then capture the header information that is returned? The information that you need is tacked on as a …
  • Member Avatar for ~s.o.s~
    ~s.o.s~

    Began Watching Daniweb OAuth support

    Hi Dani, AFAIK OAuth 2.0 supports 3 flavours: Server side apps, client side apps and installed apps. Does Daniweb Oauth allow OOB in the redirect_uri which is part of the …

The End.