Subscribe to Stuck in an Infiniteloop        RSS Feed
- - - - -

Mirroring SSL Kafka Clusters with Brooklin

Icon Leave Comment
Linkedin was the birthplace of Apache Kafka. Last year they also open sourced a project called brooklin...
- - - - -

Ingesting Prometheus Remote Write Data Into Your Apache Camel Flow

Icon Leave Comment
Building on the last two posts, we'll now ingest this Prometheus data sampling into Apache Camel...
- - - - -

Prometheus Remote Write Part 2

Icon Leave Comment
In the previous post...
- - - - -

Prometheus Remote Write with non Go Languages

Icon Leave Comment
Prometheus is a time series database. I am currently using Prometheus with Kafka, having the jmx agent expose beans for Prometheus to ingest with Grafana for visualization. It's great, but temporary. Prometheus is designed to be an ephemeral cache and does not try to solve distributed data storage. To that end, Prometheus provides a ...
- - - - -

Remote Profiling with JMXMP

Icon Leave Comment
I had an issue earlier this week where I needed to remote profile a java process, but it was not using the standard(?) RMI protocol. Some intense googling later, here are the obscure, but simple steps to get this working.

RMI requires two ports to communicate, whereas JMXMP only uses one. You'll need to port forward/tunnel that remote port to...
- - - - -

Exporting HTML To PDF

Icon Leave Comment
Exporting part of a webpage to PDF is a solved problem, but it took some digging to find the simplest solution that just worked.

Several hours of googling and trying out snippets here and there, here is the sequence that led to success:

1. html2canvas

This library worked well, but for a single div element it generates a single giant image that...
* * * * *

HP Instant Ink

Icon 1 Comments
is the dumbest fucking thing I have ever have the misfortune of coming across.

I was at my parents house and they asked me to replace the ink cartridge in their printer. Great, easy task! Open the package, not really noticing that it said HP Instant Ink. Plug it in and bam, the printer says on its little screen "...
* * * * *

Yes it's Free, But Still...

Icon 1 Comments
I'm not entirely sure if I have complained about this yet, so here we go. Back in 2009 the blog system here at DreamInCode did not have a way to upload images (or if there was, it eluded me at the time). I then uploaded images I had made for a few of the first data structure blog posts to Photobucket. These images had been up since 2009ish....
- - - - -

Apache commons-io and filesystems

Icon Leave Comment
Software is hard. When writing a Java program, you're already so far up the Jenga tower that is a modern computing system that when a lower brick causes you to question your sanity, it's something else.

It is possible for the file metadata to be updated before the file payload is updated accordingly. Let that sink in.

Consider a...
- - - - -

Max Euclidean Distance Part III: Bearing Angle

Icon 1 Comments
Part I
Part II

It turns out I was incorrect at the end of part II. There is in fact a polynomial time algorithm for this problem:



Courtesy of ishkabible and this question.

The algorithm is as follows:

...

  • (12 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »

March 2020

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
29 30 31    

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    3 user(s) viewing

    3 Guests
    0 member(s)
    0 anonymous member(s)