Blog

Adding a search capability to a Hugo website

Today, I added a way to search for content in frankcontrepois.com simply by adding the following lines to my Hugo header. <div class="input-group"> <input id='search-input' type="text" class="form-control" placeholder="Search for..."> <span class="input-group-btn"> <button id='search-button' class="btn btn-default">Go!</button> </span> </div> <script type="text/javascript"> var button = document.getElementById('search-button'); var input = document.getElementById('search-input'); function performSearch() { var query = '?q=site%3Afrankcontrepois.com+' + encodeURIComponent(input.value); window.open('https://duckduckgo.com/' + query, '_blank'); } button.onclick = performSearch; input.addEventListener('keydown', function(event) { if (event.key === 'Enter') { performSearch(); } }); </script> Read more...

What's new in Cloud FinOps - I don't believe in tagging

Izhak “I don’t believe in tagging” Zimmermann discusses with Stephen and Frank about the importance of focusing on business value in the context of FinOps, emphasising the need to understand cloud costs within the context of business goals. He introduces a new approach to FinOps that leverages new technology and insights to support business goals and drive business value. The conversation covers the challenges of understanding cloud costs, the use of networking data to understand costs, and the transformation of cost data into business value data. Read more...

How do I get the number of days between two dates in AWS Athena

Looking around the web often gets me to non-Athena ways. So here we go. In AWS Athena you get the numbers of days between two dates like this: SELECT date_diff('day', FROM_ISO8601_DATE('2024-06-13'), FROM_ISO8601_DATE('2024-05-13')) AS diff The doc lies As of today, the documentation lies, you cannot have ‘second’ as first parameter. If you need the seconds multiply the result by 24 something like SELECT (date_diff('day', FROM_ISO8601_DATE('2024-06-13'), FROM_ISO8601_DATE('2024-05-13')))*24 AS diff_in_second Read more...

AWS Athena - how to make long numbers more human readable

It happens that you have calculations in your queries. And the numbers returned can be a little to long for a human-reading. I am working on some AWS CUR data, and I get a discount of 49.99999999999999%. No one will complain if I put that at 50%. The answer is to use either ROUND(YOUR_TOO_LONG_NUMBER) with only one parameter or ROUND(YOUR_TOO_LONG_NUMBER, A_SHORT_NUMBER) with two parameters Round, does what it says on the tin, it rounds the numnber to the closest integer) Read more...

What is AI for? What is BI for?

“Backwards-looking BI, forward-looking AI Ali Ghodsi (Databricks co-founder and CEO) in a Stratechery interview I like this quote because it helps me understand and explain what is BI for and what is AI for. BI stands for Business Intelligence. It is a way to collect a lot of data representing a business and use that data to understand how things are going and make decisions. Using algorithm on the data allows to discover unexpected connections. Read more...

What's new in Cloud FinOps with Mike Stephenson

Link to the interview Summary In this episode, Steve, Frank and Mike discuss the benefits of using the free tier in Microsoft Azure. They explore the various free offerings available, such as Azure Cosmos DB, Azure DevOps, and speech-to-text translation. They also discuss the importance of monitoring costs and implementing processes to prevent unexpected expenses. Mike shares insights on cost optimization for Cosmos DB and announces an upcoming video on the topic. Read more...

How to get the plus minus symbol on mac

While writing Expressing forecasts in words I wanted to use the ± symbol and not something like +-; I find it ugly. So if you need the ± on a Mac the combination of keys is Option(alt) + Shift + = Here we go. Read more...

What's new in Cloud FinOps - April 2024

The April 2024 episode of the FinOps News is here. AWS announces general availability of Amazon EC2 G6 instances powered by NVIDIA L4 Tensor Core GPUs. Google introduces Axion chips, their first ARM-based CPU, and HyperDisk storage pools for stateful Kubernetes workloads. Azure launches index advisor for Cosmos DB to optimize index policies for NoSQL queries. Multiple cloud vendors providing a focused view with some implementation of FOCUS Cost anomaly detection with the power of AI Maximizing committed use discounts with hassle-free management Read more...