Joe Harry

Ranch Hand
+ Follow
since Sep 26, 2006
Joe likes ...
Eclipse IDE Mac PPC Ubuntu
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joe Harry

I have been reading through some blogs on getting to know myself better on this promising technology. I'm astonished that there is a book already on this. It is interesting.

I had a look at the ToC of this book "The Business Blockchain" but it does not look like a technical book, but rather a very quick overview of what Blockchain is. Is there a reason why this book was kept simple this way? I was expecting some sample applications where I could use Blockchain (using Etherum or IBM's HyperLedger)
I figured it out by myself. Here is what I had to do:

1 year ago
I have a client that I generate using the WSDL that I have. When I tried to connect to this WebService, I get the following error:

The actual server that hosts the WebService expects a SOAP message that contains the security header like:

How to get this along with my SOAP message that gets generated when the request is made? This is what I do in my code to call the WebService:

Any suggestions?
1 year ago
Welcome to Javaranch and Congratulations on your certification!
This is a perfect timing. We are containerising our Microservices with Docker as a first step. We want to add redundancy to all our Microservices as a next step. We are looking at all possibilities and this looks interesting thing to do with Kubernetes.

So I have got a couple of questions:

1. Can I create a Master / Slave kind of an architecture with Kubernetes? Say I have Microservice A running as a Docker container. Can I have Kubernetes manage this as a Master and have 2 or 3 other instances as slaves?

2. If the Microservice A is exposing ports, how would this behave with rudundancy? Should I have multiple ports open?
2 years ago
What you need to do is pagination. You cannot control what the Webservice delivers to you. You have to get all the messages in your backend, use some pagination techniques to render the content in your JSP!
2 years ago
Cool! I ended up getting a 2 bay Synology NAS with a 2 TB HDD to start with!
2 years ago
So what I mean is, if I click Open All as you see in the screenshot, it opens up all the windows with the tabs.

I want this layout to be the default when I click iTerm! On my old Mac this was possible. Now I have to right click on iTerm and say Open All!

Have a look at this post:
2 years ago

Bear Bibeault wrote:Huh, I didn't know iTerm2 had this capability either. In fact, I can't even find a way to set it up. Where did you set this up?

I could have provided you with a screenshot or a short video of my old Mac as I open iTerm. I will try to conjure up some time over the weekend to figure out how to recover my old HDD and then post a picture or a vide!
2 years ago

Tim Moores wrote:I don't recall iTerm ever having had this functionality. You can use Profiles -> Open All to open all profiles you have set up.

iTerm on my old Mac Yosemitte had this. When I open iTerm, it would open all the tabs in a single window! I could not get that set up now with El Kapitan!
2 years ago
I have downloaded and installed iTerm 2 on El Capitan. I have created a couple of profiles that I would like to open when I start iTerm. But everytime I open iTerm, it would just open a single tab on my home folder like this:

2 years ago
Is there an alternative to Time Machine? I would like to backup only specific folders on my Mac using Time Machine. I can see that I can add exclusions. So let's say I have 10 folders folder1 to folder 10 and I want only folder 10 and everything inside folder 10 to be backed up, then I specify exclusion for all folders from folder 1 to folder 9?
2 years ago
The Scala forum at coderanch is pretty dormant. Recently, I came across a question that does k-reduction on Strings. I decided to give it a try in Scala and here is what I came up with:

What do you guys think? Could it be even simpler while at the same time readable?

So what is String k-reduction?

Given a string consisting of a,b and c's, we can perform the following operation: Take any two adjacent distinct characters and replace it with the third character. For example, if 'a' and 'c' are adjacent, they can replaced with 'b'.

What is the smallest string which can result by applying this operation repeatedly

2 years ago