Comment by Madhur Ahuja on Generate consistent hash of a UUID
I am just looking for single digit number between 0-9 so that I can route x% of requests to different servers based on this number.
View ArticleComment by Madhur Ahuja on Arrays are not being generated List but List
I tried that too, but it doesn't work.
View ArticleComment by Madhur Ahuja on Understanding "Request Header is too large"
Thank you. That was exactly what I was looking for.
View ArticleComment by Madhur Ahuja on Run multiple curl commands in parallel
For me it connects to 0.0.0.1, 0.0.0.2 and so on as well
View ArticleComment by Madhur Ahuja on How are consumers setup in Active - Active Kafka...
"Does consumers in both data centers have to point to single DC" - my question here was that in an active active configuration will consumers point to their respective DC or a single DC? If I point to...
View ArticleComment by Madhur Ahuja on Finding non-expiring keys in Redis
@aron23 It doesn't seem to be printing sets in the output, only keys of type strings
View ArticleComment by Madhur Ahuja on Prevent release artifacts to be overwritten when...
Is there no possibility while using s3 to manage the artifacts?
View ArticleComment by Madhur Ahuja on Spring Boot does not resolve environment variable...
It does seem to pick up the changes If I just put up the hard coded value so the / doesnt matter as far as I know.
View ArticleComment by Madhur Ahuja on ‘RSA_SSLV23_PADDING’ undeclared (first use in this...
Should it not be --with-openssl-dir=$HOME/.rvm/usr ?
View ArticleComment by Madhur Ahuja on How to focus client in Awesome WM
@Shmygol Wanted to understand the reason why we have to duplicate all functions from the global to current?
View ArticleComment by Madhur Ahuja on Determine if wallpaper is set on x11
Since there is no wallpaper set, I expect it to be exactly black. I confirmed it with color picker as well. Since the task is to determine if wallpaper is set or not, the close to black information...
View ArticleComment by Madhur Ahuja on Java Crashes when running Cassandra 4.0.8
Were you able to figure out the solution. I am having similar problem.
View ArticleException: SparkException: Task not serializable
Why does this code produces this exception? How can I avoid it SparkConf conf = new SparkConf().setAppName("startingSpark").setMaster("local[*]"); JavaSparkContext sc = new JavaSparkContext(conf);...
View ArticleGenerate consistent hash of a UUID
I want to generate a consistent hash of a UUID string such as dcc549d8-bd0c-49c2-bff8-f6fa80fb7857, preferably a number between 0 to N.What is the best and fastest way to do it?Update: I am thinking of...
View ArticleAnswer by Madhur Ahuja for Arrays are not being generated List but List
The correct schema should be. Notice that items is an object in schema, not array.{"$schema": "http://json-schema.org/draft-07/schema#","type": "object","javaType":...
View ArticleUnderstanding "Request Header is too large"
I am getting this error in Tomcat org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG...
View Articlepython json parsing error
I wrote a simple program to parse json:#! /usr/bin/env pythonimport urllib2import jsonso = 'https://api.stackexchange.com/2.2/users/507256?order=desc&sort=reputation&site=stackoverflow'j =...
View ArticleDo 32 bit programs run relatively slower on 64 bit OS against when they are...
I was reading about WOW 64 herehttp://en.wikipedia.org/wiki/WOW64and learnt that its a layer in 64 bit Windows OS to run 32 bit programs.So can I assume that 32 bit programs run relatively slower on 64...
View ArticleJava 8 JVM Heap size keeps shrinking [duplicate]
I have a simple application which is basically reading from two database sources and doing the comparison in a batch of 1000 rows. I saw that heap memory of the application started reducing after the...
View Article
More Pages to Explore .....