-
#Rust π¦ – Learning HTTP GET and POST requests in Rust, and yes this is a “πWhat’s my IP” demo π
Hi ! Yes, I’m starting to use OpenAI services in with Rust. However, before getting here, I spent some time learning how to work with HTTP Requests in Rust. There seems to be several libraries that can help. I found several examples using [https://docs.rs/reqwest/0.6.2/reqwest/], so I decided to use this one. A classic example to… β read more
-
Event – π§ OpenAI, ChatGPT and #PowerPlatform … Yes, and without coding !
Hi ! Are you ready to tap into the endless possibilities of ChatGPT? With the recent release of new OpenAI services on Azure, the potential for building innovative applications has never been greater. I think it’s time explore the amazing capabilities of ChatGPT and how we can harness them to create truly unique and powerful… β read more
-
#Rust π¦ – Working with hashmaps is cool. And a little C# experience π
Hi ! During today’s Rust lession in the “First Steps with Rust” (in Spanish), we reviewed the Hashmaps in Rust. We talk about the behavior when we access a non existing item, and it was nice to get a NONE return instead of an error or an exception. In example this code: Returns this output.… β read more
-
#Rust π¦ – Working with arrays, vectors and println! macro in Debug mode π
Hi ! It’s time to learn a little about arrays and vectors. And sure, using println! is a great way to check how this elements works. However, there is a little something extra to learn here. Let me start with a simple scenario. Defining a vector with weekdays, and print the content. Something like this… β read more
-
#Rust π¦ – π§΅ String Interpolation in Rust (as usual, super fun π)
Hi ! Working with string is always a nice topic to learn. It’s nice to understand how a specific language process strings, sometimes small changes can have big performance improvements ! String Interpolation So let’s start (via Wikipedia) with some basic concepts. In computer programming, string interpolation (or variable interpolation, variable substitution, or variable expansion)… β read more
-
#Rust π¦ – Time for Ferris says ! π
Hi ! Ferris the crab, is the unofficial mascot for Rust. If you want to create a cool console app with Ferris holding a banner with a custom message, there is a super cool library that may help. We need to search in the Rust communityβs crate registry for ferris-says, and there it is ferris-says:… β read more
-
#Rust π¦ – Let’s create a Generic log() Functionπ
Hi ! Let’s create a generic log function. This will not make a lot of sense, since the println! function already support lots of data types. However, this is a nice way to understand how generics works. Here is the log function. The log function receives a parameter x, that support any type from Display,… β read more
-
#Rust π¦ – Working with Generics and Types π
Hi ! I first used Generics back in the old C# days. It’s a super cool feature. Let’s ask ChatGPT for a definition: Generics in programming are a way to create classes and methods that work with multiple data types. They allow the programmer to define type parameters, which can be passed as arguments to… β read more
-
#Rust π¦ – Accesing external vars in threads π§΅
Hi ! In order to access external variables in a thread, we must use the move closure with the move keyword in the thread creation. In example, these 2 lines will define and create a mutable variable and then a new thread where we can access the var. And an example of the previous code… β read more
-
#Rust π¦ – Working with threads π§΅ and joining thread handles
Hi ! Let’s take a look at the following code. The code output shows that the app is closed before finishing the execution of the 2nd thread. Joining thread handles When we work in multi-threading scenarios, the previous problem is solved joining threads (joining thread handles). We need to join the 2nd thread and the… β read more
-
#Rust π¦- Working with threads π§΅ (concurrency)
Hi ! Working with threads is usually an interesting (challenging) task, when we program in low level languages. I love how easy is to do this in C# or Python, however, multi-threading in C++ is … a super fun moment. So, the idea behind this is to have sections of code in our application runing… β read more
-
#Rust – Install Rust and Hello World π in #RaspberryPi
Hi ! Quick post today on how to install rust in a Raspberry Pi, and later create a hello world test app. Install Rust I’m starting this with the latest updates for Raspberry Pi OS installed. The command to install rust is this one: Check the Rust Lang documentation for more details. Let’s choose the… β read more
-
#RaspberryPi β 1st setup no monitor πΊ: Wifi πΆ auto connect, SSH, rename, update, docker π³, rust and more! Update 2023-Jan-04
Content Hi! Let’s start installing the latest Raspberry Pi OS image in an SD card. Next steps will be focus on how to access and control remotely your device you may want to follow this steps. This tutorial and tips works for Raspberry Pi 3, 4 and Zero. The version 1.6 of Raspberry Pi Imager… β read more
-
#HowTo-Connect ElGato Stream Deck to non supported IoT devices using IFTTT πΊπΉπΊ
Hi ! I am deploying several new IoT devices to my house and office, and … hey I want to control them using my Stream Deck from Elgato. Sadly, most of my devices does not have an ElGato extension to work with Stream Deck, however, there is a cool solution for this. It involves the… β read more
-
#AI Generated – Unlock the Power of Low Code No Code Platforms. Unlock Your Possibilities!
Disclaimer: I didn’t write this. I’m testing some amazing AI platforms, and today I asked Writesonic (@writesonic), to write an article about Low Code – No Code and Microsoft Power Platform. The Output is amazing, very acurate, and for testing purposes I haven’t change a line of the generated text. β Image Source: FreeImagesβ The… β read more
-
#PowerAutomate β Flow to use Open Trivia Database questions in a Microsoft Teams bot π€ 6/N
Hi ! Now that we have all the necessary steps to play with a Trivia question using Power Automate and Microsoft Teams, I think it will be nice to have an online event to build this all together. That’s will I’ll host an event, on Dec 15th to explain and show the step-by-step for this.… β read more
-
#PowerAutomate β Flow to use Open Trivia Database questions in a Microsoft Teams bot π€ 5/N
Hi ! Now that we have the core steps to request a Trivia question from the API, send the question to a user and process the user’s answers, let’s work on the trigger. My final idea is to use a trigger from Teams, then validate that the message body contains the words ‘start trivia’ and,… β read more
-
#PowerAutomate β Flow to use Open Trivia Database questions in a Microsoft Teams bot π€ 4/N
Hi ! In previous posts we request a Trivia quesion using the Open Trivia Database API, and sent the question as a message using Teams Flow Bot. Context The process of the quesion is fine, however, the way that we process the answers has a flaw. Let’s take a look at steps in the current… β read more
-
#PowerAutomate β Flow to use Open Trivia Database questions in a Microsoft Teams bot π€ 3/N
Hi ! In previous posts we request a Trivia quesion using the Open Trivia Database API, and sent a mesage to teams so an user can read the question and pick an answer. In today’s post, les process the user’ answer. The flow is simple: Once the flow is running, we can see in the… β read more
-
#PowerAutomate β Flow to use Open Trivia Database questions in a Microsoft Teams bot π€ 2/N
Hi ! LetΒ΄s analyze the response from the API query for a single question [https://www.otriviata.com/api.php?amount=1]. We have a collection of results (questions) with only one result. Power Automate Flow Steps In order to get this, let’s use a HTTP step. Our next is to use a [Parse JSON] step to work with the data from… β read more