Azure Durable Functions

Azure Functions and Azure Durable Functions

Microsoft Azure is a constantly expanding collection of cloud services. Among these services, Azure Functions and Azure Durable Functions are critical in enabling serverless computing. In this article, we will look at Azure Functions and Azure Durable Functions, distinguish between the two, and learn about the key concepts surrounding Azure Durable Functions.

What is an Azure Function?

Azure Functions is a serverless computing service designed to effortlessly run small code snippets (functions) without any concern about the underlying infrastructure. This cloud-based solution empowers developers to focus solely on their code while leaving the infrastructure management worries behind.

Automating Script Execution with Systemd on Linux

In my previous blog post, I created a script that controls the fan speed on my Raspberry Pi. However, I encountered a problem – every time I restarted my Raspberry Pi, I had to manually run the script again, which was not ideal.

In this blog post, I will demonstrate how to automate the execution of any script using Systemd. Systemd is a system and service manager for Linux operating systems.

How to control Raspberry Pi Fan

Last week, I did something unplanned: I bought a Raspberry Pi without any specific project in mind. I came across a Mastodon account (@rpilocator@mastodon.social) that helps people locate Raspberry Pis and I decided to get one. And now, here it is! I’m writing my first blog post about the Raspberry Pi Fan Control.

Along with the Raspberry Pi, I purchased a case, some heatsinks, and a fan. My first blog post is about controlling the fan using your own software. I’ll be honest, I didn’t plan on developing anything at first but decided to give it a try.

Arrays: Prefix Sum Technique

Hello there! The prefix sum technique involves creating an array where the prefix[i] is the sum of all elements up to index i. This technique can also be referred to as the cumulative sum, inclusive scan, or simply scan.

prefix[0] = nums[0]
prefix[1] = nums[0] + nums[1]
prefix[2] = nums[0] + nums[1] + nums[2]
prefix[i] = nums[0] + nums[1]+ nums[2] + .. + nums[i]

For example, if the original array is [1, 2, 3, 4], the prefix sum array would be [1, 3, 6, 10].

Arrays: Sliding Windows Technique

Window Sliding Technique is a strategy that aims to reduce nested loops for solving problems where you need to analyze a sequence of elements, like an array or a string. The technique reduces the use of a nested loop and replaces it with a single loop, reducing the time complexity.

The sliding window technique is efficient because it avoids unnecessary computations. By moving the window only one step at a time, you avoid repeating calculations already done for the previous window. This can save a lot of time and make the algorithm more efficient.

Arrays: Two Pointer Technique

The two-pointer technique is an easy method used to solve some array-related problems. It involves using two pointers, one starting from the beginning of the array and the other from the end, to traverse the array and find a solution. This technique is helpful because it reduces the time complexity of the algorithm and increases its efficiency.

The two-pointer technique is used in various solutions such as finding the sum of two numbers in an array that equals a given target, finding the length of the longest subarray with a given sum, and finding the shortest subarray with a given sum. The basic idea behind this technique is to start from the two ends of the array and move the pointers towards each other until a solution is found or it becomes clear that a solution does not exist.

Learning Hub.

This won’t be a post but rather another page or something similar. I’d like to include a list of courses or books that I want to complete. This list will expand over time.

TopicLinkTypeAdded TimeStatus
Go Big Picturehttps://app.pluralsight.com/library/courses/big-picture-goPluralSight09/15/2024Completed
Go Fundementalshttps://app.pluralsight.com/library/courses/fundamentals-goPluralSight09/15/2024In-Progress
Designing Data-Intensive Applicationshttps://www.oreilly.com/library/view/designing-data-intensive-applications/9781491903063/Book09/17/2024Upcoming
Creating Web Services with Go 1https://app.pluralsight.com/library/courses/creating-web-services-goPluralSight09/15/2024Upcoming

Books

  • On Tyranny : Twenty Lessons From The Twentieth Century
  • Cannery Row
  • On Becoming Baby Wise: Giving Your Infant the Gift of Nighttime Sleep
  • Why the North Star Stands Still and Other Indian Legends
  • The Sun Also Rises
  • The Power of Now: A Guide to Spiritual Enlightenment
  • The Tao of Pooh
  • All Quiet on the Western Front
  • Saving Capitalism: For the Many, Not the Few