For further actions, you may consider blocking this person and/or reporting abuse
Read next
Mastering Reactive Microservices: Spring WebFlux and Project Reactor Essentials for High-Performance Systems
Aarav Joshi -
Learn how to create an animated input field with Tailwind CSS
Michael Andreuzza -
Where is tutorial to C?
Junissen -
How EDI Communication Protocols Streamline Business Data Exchange
Aditya Pratap Bhuyan -
Top comments (2)
How Cuckoo Filters work
Cuckoo filters are a probabilistic data structure named after the cuckoo bird due to the propensity for some sub-species stealing other birds nests.
Cuckoo Filters provide the ability to REMOVE entries from their hash table. This is something that has been attempted through extensions to Bloom Filters. But the attempts usually end up with a complicated, or sub-optimal solution. In addition to being able to delete entries, Cuckoo Filters have a small memory foot print, comparative false positive rates, and are intuitively easy to understand.
You can read the paper here. Some important implementation highlights:
I recommend reading the whole paper. Its well written, pretty easy to grok, and throws some serious shade at Bloom filters.
P.S. Dig this nifty visualization
Better searching of Bash history
I have known about
ctrl+r
for a while as a way to reverse search your bash history. But, I did not know I could pressctrl+r
again to scroll FURTHER back in history. I was just making my reverse search more specific all these years when I could just be pressingctrl+r
again! Also,ctrl+s
allows you to search forward in history as well. No morehistory | grep <my search>
for me :D.How the Linux auditing system logs events
At my current company we have a project called auditbeat that tails the Linux Audit log and parses into a useful format for data shipping. Curiosity struck and I looked into how audit logs are written and formatted. As with the majority of interesting and useful things in Linux related tech; there is an amazing Digital Ocean article explaining the auditing system. I ❤️ Digital Ocean and their community tutorials.
How to calculate the Coefficient of determination (R2)
I was recently tasked to write up an efficient way to calculate the R2 metric for evaluating regression type models. While trying to get this done with existing Elasticsearch aggregation, I found out that
R^2 = 1 - (ResidualSumOfSquares/TotalSumOfSquares)
. Both of these variables can be calculated in two unique aggregations:Now, all you need is
1 - sum_of_residuals.value / statistics.variance * statistics.count
sinceTotalSumOfSquares(X) = variance(X) * |X|
This —> dev.to/subramanya4shenoy/how-to-as...