This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.

Ron McLeod

Saloon Keeper
+ Follow
since Feb 12, 2013
Ron likes ...
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
Richmond, BC, Canada
Cows and Likes
Cows
Total received
273
In last 30 days
8
Total given
97
Likes
Total received
514
Received in last 30 days
5
Total given
764
Given in last 30 days
19
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ron McLeod

Tim Holloway wrote:To be fair, StackOverflow has realized that they have developed an image problem and has been moving to address it.


I got an email about a month back mentioning updates to the SO code of conduct:

Stack Overflow wrote:Our new Code of Conduct came from numerous conversations with the Stack Exchange community. Together, you helped create a code that reinforces our commitment to mutual respect and kindness. Take a moment to read our newly updated Code of Conduct.

Here are some highlights:
   - If you’re here to get help, make it as easy as possible for others to help you. Follow our guidelines and remember that our community is made possible by volunteers.
   - If you’re here to help others, be patient and welcoming. Offer support if you see someone struggling or otherwise in need of help.
   - Be clear and constructive when giving feedback, and be open when receiving it. Edits, comments, and suggestions are healthy parts of our community.
   - Be kind and avoid sarcasm—tone is hard to decipher online. If a situation makes it hard to act kindly, stop participating and move on.
   - Flag harmful behavior, whether it’s directed at you or others. It’ll notify moderators or automatically delete the post.

6 days ago

At Dairy Queen restaurant in Osoyoos
2 weeks ago
.. and Welcome to the Ranch
3 weeks ago
Since you have pgAdmin, it probably easier to troubleshoot/verify there using SQL Editor rather than in servlet code.

The DDL in your post looks like it is incomplete - are there supposed to be more columns?  If there that's all there is, then try replacing the last comma with a closing paren.
3 weeks ago
A streamed is considered operated on when either a intermediate or terminal operation has been invoked on it.

If you don't want to pipeline the operations, then you could create a new stream from the result of mapToInt operation, and operate on in with the forEach operation.
3 weeks ago
I signed-in to eBay today and forced to provide answers for secret questions before I could proceed - no way to opt-out.

If I don't need this kind of help, why force me?  It would just make it easier for someone to be able to guess their way in to my account.

3 weeks ago
It looks like there maybe two issues:
   - the attribute name is keystoreFile, not keystorefile (this matters on Linux, not sure about Windows)
   - it appears like the attribute value is being parsed as a URI - trying specifying file:///C:/Users/jitadmin/TestKeyStore.jks

keystoreFile="file:///C:/Users/jitadmin/TestKeyStore.jks"
3 weeks ago
The name/value pairs in a JSON representation of an object are unordered.  Depending on how you are extracting the data, you might have problems if there is more than one pair.
3 weeks ago
Seems like the attachments did make it.  Maybe just embed the contents of the files in a post using Code Tags.  If the log file is long, trim it down to include what is relevant.

3 weeks ago
Chrome (and other browsers) may open multiple connections to a server in an attempt to improve performance by guarding against failure of the initial TCP SYN handshake, or preemptively opening additional connections in anticipation that there may be multiple resources which could be downloaded in parallel.

This bug report Chromium opens useless TCP connections describes some of the optimizations.
I saw this at a supermarket last night - made me laugh.






4 weeks ago
The message accompanying the exception is: stream has already been operated upon or closed

Streams can only be operated on once - you are trying to use it twice.  If you want to continue by operating on the stream returned by the filter, you could either include forEach in your pipeline:

or create a new stream object from the output of the filter:
Try without including the .class suffix:
    javap -v CountryLookupServiceImpl

javap expects classnames, not filenames (although the version of javap that I used was forgiving and didn't complain) - my fault for incorrectly putting a filename in the example.
1 month ago
What is that line for?  The client socket is returned by listener.accept()

Also, remoteHost is never initialized, so it will have a value of null, which is understood to mean the IP address of the loopback interface: 127.0.0.1;
1 month ago