• Code - Technology

    List of mistakes on Security aspects which developers usually make

    Below are some common mistakes developers make while development. Most of the mistakes will not impact the functionality of the application so tendency is to make the mistake subconsciously. Security should be by design and it is not something we should incorporate after the development. OWASP guidelines should be taken as high priority in addition to this list. Writing sensitive information such as passwords in the paper or sticky notes Sharing credentials between team members Hard-coding sensitive information as plain text, including passwords in the application in configuration files, databases and comments Not encrypting the database Use of untrusted code…

  • Code

    Create a .NET console application using command line

    We don’t deal with .NET framework, or .NET Core anymore. We call it ‘.NET’. As of writing this blog, the latest version available is .NET 5. And, these steps works in previous versions of .NET Core also. Assuming you have downloaded the latest version of .NET. Step 1:Open command prompt Step 2: Type: dotnet new console -name “HelloWorld“ You must see a new folder named “HelloWorld” crated with a directory structure like this: You can open Program.cs to see its contents. It has a very basic program to display “Hello World!” message. Step 3: Your .NET console application is ready.…

  • Architecture - Cloud Computing - Code - Technology

    Dapr: The distributed application runtime is now production ready

    Simplify cloud-native application development. Focus on your application’s core logic and keep your code simple and portable Dapr is an open source, portable, event-driven runtime that makes it easy for developers to build resilient, microservice, stateless and stateful applications that run on the cloud and edge. Dapr enables developers to focus on writing business logic and not solving distributed system challenges, thereby significantly improving their productivity, and reducing development time. Read more: https://blog.dapr.io/posts/2021/02/17/announcing-dapr-v1.0/ Dapr Home: https://dapr.io/

  • Code - Technology

    Why .NET 5.0 and not .NET Core 5.0? And, where is .NET (core) 4.0?

    Note the point… .NET 5.0 is the next major release of .NET Core following 3.1. We named this new release .NET 5.0 instead of .NET Core 4.0 for two reasons: We skipped version numbers 4.x to avoid confusion with .NET Framework 4.x. We dropped “Core” from the name to emphasize that this is the main implementation of .NET going forward. .NET 5.0 supports more types of apps and more platforms than .NET Core or .NET Framework. ASP.NET Core 5.0 is based on .NET 5.0 but retains the name “Core” to avoid confusing it with ASP.NET MVC 5. Likewise, Entity Framework…

  • Code

    Bookmark: Raise event from a WPF User control

    This blog is just for sample code keeping. // UserControl1.xaml <UserControl x:Class=”WpfApp1.UserControl1″              xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”              xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”              xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″              xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″              xmlns:local=”clr-namespace:WpfApp1″              mc:Ignorable=”d” Background=”Red” Height=”186.646″ Width=”411.693″>     <Grid>         <Button Content=”Button” HorizontalAlignment=”Left” Margin=”80,72,0,0″ VerticalAlignment=”Top” Width=”75″ Click=”Button_Click”/>     </Grid> </UserControl> // UserControl1.xaml.cs namespace WpfApp1 {     /// <summary>     /// Interaction logic for UserControl1.xaml     /// </summary>     public partial class UserControl1 : UserControl     {         public event EventHandler MyButtonClick;         public UserControl1()         {             InitializeComponent();         }         private void Button_Click(object sender, RoutedEventArgs e)         {             this.MyButtonClick(this, new EventArgs());         }     } } //…