User Profile
elbruno
Iron Contributor
Joined 10 years ago
User Widgets
Recent Discussions
Re: Un programa RUST de ejemplo
edandresvan buenas ! Debajo puedes ver el codigo completo y funcionando. Y un par de detalles sobre los cambios. En 1er lugar, modifiqué el codigo que escribe lineas en el output por println!("{}", "-".repeat(50)); En el Struct agregue un atributo para que se pueda mostrar en las sentencias con println!(), e implementé una función Clone() para que se pueda iterar en modo mutable. #[derive(Debug)] struct Person { name: String, age: u8, genre: char, } // implement Clone for Person struct impl Clone for Person { fn clone(&self) -> Self { Self { name: self.name.clone(), age: self.age, genre: self.genre, } } } Y cambié la forma en la que iteras por los elementos del for each. Lo puedes ver todo en el código completo. #[derive(Debug)] struct Person { name: String, age: u8, genre: char, } // implement Clone for Person struct impl Clone for Person { fn clone(&self) -> Self { Self { name: self.name.clone(), age: self.age, genre: self.genre, } } } fn main() { // Vector of family members let mut family: Vec<Person> = Vec::new(); family.push(Person { name: "Alice".to_string(), age: 20, genre: 'F', }); family.push(Person { name: "Carol".to_string(), age: 25, genre: 'F', }); family.push(Person { name: "Edwin".to_string(), age: 34, genre: 'M', }); // Show current info println!("{}", "-".repeat(50)); println!("Show current information"); println!("{}", "-".repeat(50)); for individual in &family { println!("{:#?}", individual); } println!("{}", "-".repeat(50)); // Iterate through Family and add a family lastname to the field name for individual in &mut family { individual.name = format!("{} {}", individual.name, "Thompson"); } println!("{}", "-".repeat(50)); println!("Show new information after adding the last name"); println!("{}", "-".repeat(50)); for individual in &family { println!("{:#?}", individual); } println!("{}", "-".repeat(50)); // rest of the code goes here ... } Queda completar los últimos pasos. Si tienes problemas o dudas con esos, me avisas ! Un saludo !1KViews1like1CommentRe: Problema con cargo!!
Hola GuilleeAzar Una opción podría ser la siguiente. Va el paso a paso. Ver la lista de componentes instalados con el comando rustup toolchain list Desinstalar el componente que da problemas con el comando rustup toolchain uninstall stable-x86_64-pc-windows-msvc Instalar nuevamente todos los componentes necesarios en el canal default. rustup default stable Eso te tiene que mostrar un output similar al siguiente, con los componentes nuevamente instalados. (reactor) PS C:\src\reactor> rustup default stable info: syncing channel updates for 'stable-x86_64-pc-windows-msvc' info: latest update on 2023-01-26, rust version 1.67.0 (fc594f156 2023-01-24) info: downloading component 'cargo' info: downloading component 'clippy' info: downloading component 'rust-docs' info: downloading component 'rust-std' info: downloading component 'rustc' 62.7 MiB / 62.7 MiB (100 %) 54.6 MiB/s in 1s ETA: 0s info: downloading component 'rustfmt' info: installing component 'cargo' info: installing component 'clippy' info: installing component 'rust-docs' 19.3 MiB / 19.3 MiB (100 %) 2.8 MiB/s in 8s ETA: 0s info: installing component 'rust-std' 26.8 MiB / 26.8 MiB (100 %) 9.1 MiB/s in 3s ETA: 0s info: installing component 'rustc' 62.7 MiB / 62.7 MiB (100 %) 7.5 MiB/s in 8s ETA: 0s info: installing component 'rustfmt' info: default toolchain set to 'stable-x86_64-pc-windows-msvc' stable-x86_64-pc-windows-msvc installed - rustc 1.67.0 (fc594f156 2023-01-24) Eso deberia funcionar !1.1KViews0likes0CommentsRust Learners LATAM - Matchmaking
Buenas, ¡Gracias por unirse a los talleres Primeros Pasos con Rust! El interés en Rust es increíble. Con el fin de ayudar a los estudiantes a encontrar otros estudiantes que tengan el mismo nivel de habilidad, área geográfica y tal vez incluso experiencia previa en programación, he creado este hilo. Siéntete libre de publicar y contactar a otras personas con las que te gustaría aprender Rust. Voy a empezar con la mía: Nombre: Bruno Capuano Experiencia con Rust: Principiante Avanzado Experiencia previa en programación: Python (AI/ML), C#, C++ Dónde contactarme: General - https://aka.ms/elbruno Twitter - https://twitter.com/elbruno LinkedIn: https://www.linkedin.com/in/elbruno/1.4KViews4likes3CommentsRe: Microsoft Power Pages - Q&A
HiDan_Guy That usually happening when you installed the D365 Sales Trial and needs some component from the Finance and Operations Apps. You can manually install the apps, https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/dual-write/dual-write-system-req should help. Regards2.3KViews0likes0CommentsMicrosoft Power Pages - Q&A
Hey Everyone, Thanks for joining the https://aka.ms/decpowerpagesbootcamp This space is dedicated to help learners find solutions or answer questions related to Power Pages. Feel free to share your question, and we will use this space to learn together. Regards.2.5KViews4likes6CommentsMicrosoft Power Pages - Matchmaking
Hey Everyone, Thanks for joining the https://aka.ms/decpowerpagesbootcamp To help learners find other learners that are at the same skill level, geographic area, and even previous experience, I have created this thread. Feel free to post and contact others that you would like to learn Power Pages with. I will start with my own Name: Bruno Capuano Power Platform Experience: Intermediate Twitter: https://twitter.com/elbruno LinkedIn: https://www.linkedin.com/in/elbruno/2KViews6likes4Comments
Recent Blog Articles
Building Intelligent Applications with Local RAG in .NET and Phi-3: A Hands-On Guide
Let's learn how to do Retrieval Augmented Generation (RAG) using local resources in .NET! In this post, we’ll show you how to combine the Phi-3 language model, Local Embeddings, and Semantic Kernel t...18KViews5likes13CommentsAI and .NET: Exploring the AI samples repo and the model evaluation sample
The AI samples repo, where we are adding artificial intelligence samples for .NET developers. You can find scenarios such as text summarization, chat, data generation, image generation, and more. You...1.4KViews0likes0Comments