<?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: MICHAEL-MAURICE</title>
    <description>The latest articles on DEV Community by MICHAEL-MAURICE (@michael_maurice).</description>
    <link>https://dev.to/michael_maurice</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%2F618103%2Fe43be20f-9b75-4903-84b6-45cdaf074af4.png</url>
      <title>DEV Community: MICHAEL-MAURICE</title>
      <link>https://dev.to/michael_maurice</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/michael_maurice"/>
    <language>en</language>
    <item>
      <title>Resize Images in asp.Net</title>
      <dc:creator>MICHAEL-MAURICE</dc:creator>
      <pubDate>Fri, 11 Mar 2022 21:57:52 +0000</pubDate>
      <link>https://dev.to/michael_maurice/resize-images-in-aspnet-304</link>
      <guid>https://dev.to/michael_maurice/resize-images-in-aspnet-304</guid>
      <description>&lt;p&gt;I was doing a task today, and part of it was that I was uploading images..but there was a problem that would happen if the user uploaded a large image. I want to control the size of the image that I came from the user because my database is arrogant. this ..&lt;br&gt;
The first thing I need to do is check the size of the image before I do it and save it. This is how I compare the length of the image (array of bytes) with the length I need, even if it is larger than it. Do not allow the user to upload this image.&lt;br&gt;
The second thing is that I resize the image that I came to before I save it, and I found two packages that do this&lt;br&gt;
1- SixLabors.ImageSharp, and you can read more about it here: &lt;a href="https://www.nuget.org/packages/SixLabors.ImageSharp/2.0.0?_src=template"&gt;https://www.nuget.org/packages/SixLabors.ImageSharp/2.0.0?_src=template&lt;/a&gt;&lt;br&gt;
2- System.Drawing.Common, and you can read more about it here:-&lt;br&gt;
&lt;a href="https://www.nuget.org/packages/System.Drawing.Common/6.0.0?_src=template"&gt;https://www.nuget.org/packages/System.Drawing.Common/6.0.0?_src=template&lt;/a&gt;&lt;br&gt;
And they are both, through which you can specify the width and height of your image, and this is how you can let the user upload any image, regardless of its size....&lt;/p&gt;

</description>
      <category>database</category>
      <category>aspdotnet</category>
      <category>programming</category>
      <category>csharp</category>
    </item>
    <item>
      <title>movie Tickets Reservation system</title>
      <dc:creator>MICHAEL-MAURICE</dc:creator>
      <pubDate>Thu, 10 Mar 2022 22:55:25 +0000</pubDate>
      <link>https://dev.to/michael_maurice/movie-tickets-reservation-system-24db</link>
      <guid>https://dev.to/michael_maurice/movie-tickets-reservation-system-24db</guid>
      <description>&lt;p&gt;database diagram:- &lt;a href="https://lnkd.in/gM2PiTRt"&gt;https://lnkd.in/gM2PiTRt&lt;/a&gt;&lt;br&gt;
GitHub repo:- &lt;a href="https://lnkd.in/gCZEUg46"&gt;https://lnkd.in/gCZEUg46&lt;/a&gt;&lt;br&gt;
Full Video:- &lt;a href="https://lnkd.in/gbbB-8pD"&gt;https://lnkd.in/gbbB-8pD&lt;/a&gt;&lt;br&gt;
in this project, you can buy tickets for any movie &lt;br&gt;
we use asp.net core MVC , SQL server&lt;br&gt;
and also we used injection patterns ,solid principles&lt;br&gt;
this project has a lot of functionalities For Example:&lt;br&gt;
 user &lt;br&gt;
1-authentication&lt;br&gt;
2-searching for any (movie, category, actor)&lt;br&gt;
3-showing actors and producers for this movie&lt;br&gt;
4-watch trailer &lt;br&gt;
5- buy ticket buy using stripe payment method&lt;br&gt;
6-add any movie to your cart&lt;br&gt;
and more...&lt;br&gt;
 admin &lt;br&gt;
you can (create ,read ,update, delete ,search) for &lt;br&gt;
1-category&lt;br&gt;
2-movie&lt;br&gt;
3-cinema&lt;br&gt;
4-Actor&lt;br&gt;
and more ... &lt;/p&gt;

</description>
    </item>
    <item>
      <title>.NET Core vs                   
 .NET Framework</title>
      <dc:creator>MICHAEL-MAURICE</dc:creator>
      <pubDate>Thu, 03 Mar 2022 11:46:47 +0000</pubDate>
      <link>https://dev.to/michael_maurice/net-core-vs-net-framework-7cm</link>
      <guid>https://dev.to/michael_maurice/net-core-vs-net-framework-7cm</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;What is .NET Core?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;.NET Core is the latest version of Microsoft’s .NET Framewok, which is a free, open-source, general-purpose programming platform. It’s a cross-platform framework .The.NET Core Framework may be used to create a variety of apps, including mobile, desktop, online, cloud, IoT, machine learning, microservices, games, and more. .NET Core is written from scratch to make it a modular, lightweight, fast, and cross-platform Framework. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is .NET Framework?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Microsoft’s Net Framework is a software development platform for building and running Windows applications.Net framework includes developer tools, programming languages, and libraries that are used to develop desktop and web applications. It is also used to build websites, web services, and games.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The key difference&lt;/strong&gt; between .NET Core and .NET Framework is a platform for .NET applications on Windows whereas, NET Core is the latest version of the .NET Framework which is a cross-platform and open-source framework optimized for modern app needs and developer workflows.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
    </item>
    <item>
      <title>Cumulative Sum </title>
      <dc:creator>MICHAEL-MAURICE</dc:creator>
      <pubDate>Thu, 10 Feb 2022 19:25:43 +0000</pubDate>
      <link>https://dev.to/michael_maurice/cumulative-sum-5ccj</link>
      <guid>https://dev.to/michael_maurice/cumulative-sum-5ccj</guid>
      <description>&lt;p&gt;in this article, I will talk about Cumulative sum but first, let me talk about one of the most common problem in computer science if we have an array and we wanna calculate the summation &lt;br&gt;
of a specific range in this array, you will think of nested loops that sound good. &lt;br&gt;
but this solution is (o(n)^2) can we get a better solution ??&lt;br&gt;
Yes, we can do that by using (cumulative sum). ok, what is that exactly?&lt;/p&gt;

&lt;p&gt;The cumulative sum is a technic we use to get the summation of a specific range in an array in(o(1)).&lt;br&gt;
by generating a new array each element in that array contain the summation of elements before that &lt;/p&gt;

&lt;p&gt;element.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;ok, How we can write this code?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftbanuobjte2jf8failfi.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftbanuobjte2jf8failfi.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ZERO BASED&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int range(int s,int e,vector&amp;lt;int&amp;gt;&amp;amp;v){
if(s==0)
    return v[e];
    return v[e]-v[s-1];
}
int main()
{

    vector&amp;lt;int&amp;gt;v={1,2,3,4,5,6};
    vector&amp;lt;int&amp;gt;s(v.size(),0);
    for(int i=0;i&amp;lt;v.size();i++){
        s[i]+=(i==0)?v[i]:v[i]+s[i-1];
    }
    cout&amp;lt;&amp;lt;range(2,4,s);
    return 0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;ONE BASED&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int range(int s,int e,vector&amp;lt;int&amp;gt;&amp;amp;v){
    return v[e]-v[s-1];
}
int main()
{//one based
    vector&amp;lt;int&amp;gt;v={0,1,2,3,4,5,6};
    vector&amp;lt;int&amp;gt;s(v.size(),0);
    for(int i=1;i&amp;lt;v.size();i++){
        s[i]+=v[i]+s[i-1];
    }
    cout&amp;lt;&amp;lt;range(2,4,s);
    return 0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>algorithms</category>
      <category>database</category>
      <category>cpp</category>
    </item>
  </channel>
</rss>
