#Podcast – NTN 54 – OpenAPI, Terraform, Go, Rust, TypeScript y más con Pedro J. Molina @pmolinam @jc_quijano,

Buy Me A Coffee

Buenas!

Hoy tenemos la suerte de hablar con Pedro Molina (@pmolinam) y Juan Carlos Quijano (@jc_quijano) sobre varios temas interesantes. La idea inicial era hablar de OpenAPI y Terraform, pero en el camino nos salimos de guion y terminamos agregando temas sobre generadores de código, y opiniones y experiencias sobre otros lenguajes de programación como Go, Rust y JavaScript.

Pedro J. Molina es Metadev, Founder / OpenAPI Initiative Member, Juan Quijano es Microsoft Certified Trainer, Arquitecto de Soluciones en Azure, Consultor independiente en implantación de DevOps.

Ir a descargar

Recursos

Happy coding!

Greetings

El Bruno

#Podcast – NTN 53 – Novedades y Experiencias en Microsoft Build 2020 con Con @D_Vid_45, @JuanKRuiz, @jc_quijano, @JosueYeray y @Mteheran

Buy Me A Coffee

Buenas!

Hoy tenemos la suerte de hablar con David Vidal Castillo (@D_Vid_45), Juan Carlos Ruiz Pacheco (@JuanKRuiz), Juan Carlos Quijano (@jc_quijano), Josué Yeray Julián (@JosueYeray) y Miguel Teheran (@Mteheran) sobre la experiencia y novedades de Microsoft Build 2020. La conexión entre Canada, Colombia y Spain ha sido todo un desafío, sin embargo hemos pasado un momento genial.

El podcast ha durado mucho mas de lo usual y es principalmente porque tocamos temas como: la experiencia de Build virtual, MAUI, Microsoft Graph , Power Platform, One Net, Novedades en C# 9, Private Link, Azure Twins, CodeSpaces, Cognitive Services, CosmosDB y otra cantidad de temas que han sido parte de estas intensas 48 horas.

David Vidal Castillo es  Team Leader en ENCAMINA y Azure hero (LinkedIn), Juan Carlos Ruiz es  Senior Cloud Solutions Architect | MBA  en Microsoft (LinkedIn), Juan Quijano es Microsoft Certified Trainer, Arquitecto de Soluciones en Azure, Consultor independiente en implantación de DevOps (LinkedIn), Yeray es  CTO & DevsDNA Co-Founder (LinkedIn) y Miguel es  Developer and Software Consultant (LinkedIn).

Ir a descargar

Recursos

Happy coding!

Greetings

El Bruno

#HowTo – Grant permissions to a folder after #Git clone, to perform #dotnet restore on a #RaspberryPi #dotnetcore

Buy Me A Coffee

Hi !

Quick post today, to leave this as a public note. And, disclaimer, I’m not a Linux expert, just a normal user; I’m sure there are plenty of better ways to do this. Any advice will be appreciated.

Context: I’m working with Git and .Net Core 3.1. Just cloned a repository and ready to run my 2 favourite commands

dotnet restore
dotnet run

However, I found this error

raspberry pi dotnet restore access denied error
/home/pi/dotnet/sdk/3.1.100/NuGet.targets(123,5): error : Access to the path '/<path>.csproj.nuget.dgspec.json' is denied. [/<path>..csproj] 
/home/pi/dotnet/sdk/3.1.100/NuGet.targets(123,5): error :   Permission denied

I’m running dotnet under the user pi, and I haven’t found a way to automatically grant permissions to new folders for this user. So everytime I clone a repo I need to grant permissions with the command.

# sudo chmod -R 757 '<path>'
sudo chmod -R 757 '/home/pi/srcebgit/testsGit/20191227MLNet/myMLApp/consumeModelApp'

And now, it’s working

raspberry pi dotnet restore working after grant user permissions

Of course, I still need to deal with other permissions issues because this project has some copy files actions on the build. Now I know the way!

raspberry pi dotnet restore working error on run

Happy coding!

Greetings @ Burlington

El Bruno

My posts on Raspberry Pi

Dev posts for Raspberry Pi
Tools and Apps for Raspberry Pi
Setup the device
Hardware

#VSCode – Build and Run C# #DotNetCore projects in #RaspberryPi

Hi!

Time to move on with some lessons learned using Visual Studio Code in the Raspberry Pi 4.

One of the first issues you may find working with VSCode in the device is related to file write permissions when you are saving a file.

I raspberry pi 4 visual studio code failed to save file

So, it was a good opportunity for me to learn about files and folder permissions in Linux. I found a great starting article “How to Manage File and Folder Permissions in Linux” (see references), and it allowed me to fix this issue.

My next error was triggered when I try to build my project. Again, it was a permission related error.

/home/pi/dotnet/sdk/2.2.401/Microsoft.Common.CurrentVersion.targets(4195,5):
error MSB3021: Unable to copy file "obj/Debug/netcoreapp2.2/dotnethelloworld.dll"
to "bin/Debug/netcoreapp2.2/dotnethelloworld.dll". Access to the path
is denied. [/home/pi/dotnethelloworld/dotnethelloworld.csproj]

However, this time the fix was not related to file and folder permissions.

One of the solutions I found, was to run VSCode with admin privileges. This is probably one of the worst ideas ever, and you can find tons of articles explaining why this is bad (see references).

Anyways, I decided to give it a try. Of course, it worked. Let me share how.

I run VSCode with the following command, which runs the app in root mode.

sudo
code-oss --user-data-dir=/home/pi/dotnethelloworld
raspberry pi 4 visual studio code run as root

The VSCode team is aware of this, so you will find a warning about this scenario

raspberry pi 4 visual studio code run as root warning

Even so, you can still use VSCode to edit and build C# .Net Core Projects.

raspberry pi 4 visual studio code build code

And you can run them also

raspberry pi 4 visual studio code build and run edited code

So far, so good. Or maybe not, broken a lot of good practices. I’ll see this as an amazing chance to learn and test new stuff!

Happy coding.

Greetings @ Burlington

El Bruno

References

My posts on Raspberry Pi

Dev posts for Raspberry Pi
Tools and Apps for Raspberry Pi
Setup the device
Hardware