-
#PowerAutomate – Using OpenAI APIs, like ChatGPT, Dall-E and more. Also in Azure!
Hi! Back in March we hosted 3 sessions, and we showed how to use OpenAI models and features in Power Apps, Power Automate and Power Virtual Agents. You can check the recordings here: https://aka.ms/OpenAIPowerPlatformSeries These AI models are available in several places, like OpenAI APIs and Azure OpenAI Services. Scenario Let’s learn how to use β read more
-
#Rust π¦ – Using #OpenAI ChatGPT APIs from Rust. Demo Chat console App
Hi! Let’s look at my sample repository on how to use OpenAI APIs in Rust. I added a new scenario: a sample console chat app that uses the new ChatGPT APIs model. The process is remarkably similar to the text completion scenario, including a major change in the model used. Instead of davinci-003, we use β read more
-
#Rust π¦ – Using #OpenAI Text Completion APIs from Rust
Hi! Let’s look at my sample repository on how to use OpenAI APIs in Rust. It includes a sample console app that uses the Text Completion API endpoint. In case you want to know more: TheΒ completionsΒ endpoint can be used for a wide variety of tasks. It provides a simple but powerful interface to any of β read more
-
#Rust π¦ – Serializing and Deserializing data structures to JSON with Serde
Hi! While I was creating a sample on how to use OpenAI APIs in Rust, I realized that I needed to serialize and deserialize some data in JSON format. Lucky me, Serde JSON works great! Serde JSON Serde JSON is a library for serializing and deserializing Rust data structures efficiently and generically12. It provides ways β read more
-
@code – Profiles in Visual Studio Code, work with only the extensions you need! π
Hi ! Profiles in Visual Studio Code are a way to create different environments for different projects or purposes. They allow us to switch between different sets of extensions, settings, and keyboard shortcuts without affecting our default VS Code configuration. I found it super useful mostly when I think about the extensions that I have. β read more
-
#Rust π¦ – How to find a variable data type π€
Hi ! Quick post today to share how to find a variable data type in Rust. As far as I understand, we can use several ways to do this. In example, we can use these 2 std functions: The full sample code below create 2 vectors with different data, and print the data type of β read more
-
#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