<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Matteo Rigoni</title>
    <description>The latest articles on DEV Community by Matteo Rigoni (@matteorigoni).</description>
    <link>https://dev.to/matteorigoni</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F651509%2Fef7665ee-2981-4066-a33e-4a9d2e8697c7.png</url>
      <title>DEV Community: Matteo Rigoni</title>
      <link>https://dev.to/matteorigoni</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/matteorigoni"/>
    <language>en</language>
    <item>
      <title>Convert complex form into html</title>
      <dc:creator>Matteo Rigoni</dc:creator>
      <pubDate>Sat, 13 Jan 2024 16:24:39 +0000</pubDate>
      <link>https://dev.to/matteorigoni/convert-complex-form-into-html-33gp</link>
      <guid>https://dev.to/matteorigoni/convert-complex-form-into-html-33gp</guid>
      <description>&lt;p&gt;Hi, i have to migrate a desktop application to cloud, basically i've to rewrite many window forms in html in a Angular application (using basic html, css, bootstrap).&lt;/p&gt;

&lt;p&gt;I need a tool to convert automatically these forms, becasuse they are a huge number and every form ha a lot of fields. Each form has 100 rows with same height, each row has different elements (lables,input,line,titles,icons) without any common schema. I've to preserve &lt;strong&gt;every alignment&lt;/strong&gt; in the html page (for example a text input on line 3 should be aligned with another element on row 66). &lt;br&gt;
The final html shouldn't be responsive, there shouldn't any kind of wrapping, only if possibile a "zoom" on all elements where resizing the page, at some point it will appear scrollbar.&lt;br&gt;
After some experiments, the only way i found to do this conversion, is mapping each form's row to a div (100vw). Then in each div, i'm evaluating different strategies:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;using absolute position with percentage. The only issue is that i have to specify a fixed height, is there a workaround to avoid this? Also using dynamic font-size i don't have a fixed height in all elements..&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;div class="container-fluid"&amp;gt;&lt;br&gt;
    &amp;lt;div style="height:25px; position:relative; font-size:0.8vw;"&amp;gt;&lt;br&gt;
      &amp;lt;div style="position:absolute;left:0%;width:12%;height:100%"&amp;gt;FIRST TEXT&amp;lt;/div&amp;gt;&lt;br&gt;
      &amp;lt;div style="position:absolute;left:55%;width:15%;"&amp;gt;Second text&amp;lt;/div&amp;gt;&lt;br&gt;
      &amp;lt;input style="position:absolute;left:71%;width:5%;" type="text" /&amp;gt;&lt;br&gt;
    &amp;lt;/div&amp;gt;&lt;br&gt;
&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In each div i put a table with columns having fixed width in percentage (but it's a nightmare deal with different padding and margins in each cell)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In each div i use display:grid, doing something like the previous point (but it's a nightmare deal with different padding and margins in each cell)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In each div i use absolute positions and width in px, then using media queries i do a "scale" on all elements..it works but i know that is not a best practice, right? &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Which solution is better for you? Do you have other ideas to do this strange conversion?&lt;br&gt;
(i exlude all stuff like grid system, flex because i have to keep the structure one to one and in source files i have only absolute coordinates without any kind of container's concept to aggregate elements)&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Alternative to Hangfire in Azure world</title>
      <dc:creator>Matteo Rigoni</dc:creator>
      <pubDate>Sat, 08 Jul 2023 14:28:32 +0000</pubDate>
      <link>https://dev.to/matteorigoni/alternative-to-hangfire-in-azure-world-2d7j</link>
      <guid>https://dev.to/matteorigoni/alternative-to-hangfire-in-azure-world-2d7j</guid>
      <description>&lt;p&gt;0&lt;/p&gt;

&lt;p&gt;i'm using from several time Hangfire with SQL and i don't have any problem.&lt;/p&gt;

&lt;p&gt;Classic use cases that i will have are:&lt;/p&gt;

&lt;p&gt;From a web app, user enqueue an operation and can check all pending operations. Where operation ends he has a notification via SignalR and can check output of a job. An example is the same Azure Portal, where every operation is enqueued and status is visible in the bell on top right.&lt;br&gt;
Recurring job that runs every few seconds to perform scheduled operations indipendent from user's interaction. Jobs must have a lock concept, so until one is running, nothing else of the same type should start for that user.&lt;br&gt;
Recently i'm moving to Azure, using k8s for some microservices. I think that i will use a microservice with Hangfire, do you thiks that Hangfire and microservices can coexist?&lt;/p&gt;

&lt;p&gt;If i don't use Hangfire i have to replicate something similar using Azure Function (high cost), manage a storage for job's state, so will worth it using something different?&lt;/p&gt;

&lt;p&gt;How do you manage these scenario in microservice architecture? Bye&lt;/p&gt;

&lt;p&gt;I'm working on running Hangfire in a dockerized microservice.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Temporary files in docker and k8s</title>
      <dc:creator>Matteo Rigoni</dc:creator>
      <pubDate>Thu, 06 Jul 2023 19:02:45 +0000</pubDate>
      <link>https://dev.to/matteorigoni/temporary-files-in-docker-and-k8s-4ejo</link>
      <guid>https://dev.to/matteorigoni/temporary-files-in-docker-and-k8s-4ejo</guid>
      <description>&lt;p&gt;Hi all, i've a container running code in .NET 6, dockerized and running on Azure k8s. Inside this container, i handle a message from a topic of a Service Bus. It should manage aroung 20k messages a day.&lt;/p&gt;

&lt;p&gt;Scenario description:&lt;br&gt;
I have to call an .exe (size around 100 MB) that take in input a file and generate a response in a given physical subfolder on disk. The response include two files, that i upload then to a blob storage. Finally i delete these temporary files on disk. The execution of the .exe will be of 1 minute.&lt;/p&gt;

&lt;p&gt;Question: &lt;br&gt;
Where should i store the exe? Its content will change 2-3 times a year (so few times). I was thinking to include it in the docker image, for example in "\app\resources" and then call it creating a random temp folder in the same path, one for each execution. In alternative i was thinking to Azure File Share (but i'm concerned about the traffic cost). The data is temporary, so if the pod goes down, i don't care about them.&lt;/p&gt;

&lt;p&gt;I've already read about volumes in Docker, but i don't find any question/topic that fit my problem, so i'm searching for some advices.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Maximize performance of api</title>
      <dc:creator>Matteo Rigoni</dc:creator>
      <pubDate>Fri, 18 Jun 2021 06:33:22 +0000</pubDate>
      <link>https://dev.to/matteorigoni/maximize-performance-of-api-2akg</link>
      <guid>https://dev.to/matteorigoni/maximize-performance-of-api-2akg</guid>
      <description>&lt;p&gt;i have to implement a api in net core that accept items (with 5 simple fields), check if they exists on a SQL server database and insert/update them. Every user will call this api 2-3 times a day and needs to pass about 500 items.&lt;/p&gt;

&lt;p&gt;What is best approch in terms of performance (ti not overload my system): A) Accept a compressed JSON, make 500 read and write sequentually and return status B) Accept a single item and tell the user to call it for each item (so about 500 x 3 times a day) C) Accept a compressed JSON, return an operation id, do operations in an asyncronous task and return result in a different api through the operation id.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
      <category>api</category>
    </item>
  </channel>
</rss>
