The strangest aspect of the upcoming fork is that Segwit2X is priced at 0.15 BTC on the futures market, despite there being an expected 90% of mining support for it. This is an unusual situation and is totally at odds with known facts and logic. Logically the chain with the greater hashing power should...
How to encrypt and decrypt an object in and from a file in Java
There are times when we need to write something on a file, but doesn't want it to be readable as a plain text. In this case we can use any type of encryption mechanism, but what if we want to decrypt the encrypted file back and read its contents. For example a configuration file, etc.Let's show some...
Hibernate Search Faceting
With the document available from Hibernate Search (https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#query-faceting), we should be able to implement a faceting example that returns the faceting field and its count. In the example from Hibernate Search, our entity is CD, we...
How to sort your List in Java using Collator
I often forget this format so I'm blogging it here: Collator descriptionSort = Collator.getInstance();descriptionSort.setStrength(Collator.PRIMARY);Collections.sort(entityFacets, Comparator.comparing(f -> f.getDescription(), descriptionSort...
Display a byte[] image from a REST web service
This tutorial will not delve into angular nor will we discuss what a directive is. We will not try to explain what a rest web service is. Instead we will provide a demonstration via actual code, how we can consume a rest service from angular that returns an array of byte and display it as an image....
Charlie Lee on how Coinbase and other exchanges will handle the Segwit2X hardfork - Debunked.
I’ve been asked multiple times how I think Coinbase (and other exchanges) will handle the Segwit2x hardfork in November. For background, although I’m no longer working at Coinbase, I was previously Director of Engineer at Coinbase and led the GDAX team, and I still give Coinbase advice. This is how...