Skip to content

techtrendings.com

Let's explore

Menu
Menu

Category: Uncategorized

How TLS Works

Posted on January 18, 2023January 18, 2023 by Avidlearner

TLS (Transport Layer Security) is a security protocol that is used to establish a secure communication channel between two systems, typically a web server and a web client (such as a web browser). Here is a high-level overview of how the TLS Handshake works:

C++ – Strategy Design Pattern – Behavioral Design Pattern

Posted on January 18, 2023January 18, 2023 by Avidlearner

The Strategy design pattern is a behavioral design pattern that defines a family of algorithms, encapsulates each one, and makes them interchangeable. It lets the algorithm vary independently from clients that use it. Here’s an example of how the Strategy pattern might be implemented in C++: In this example, the Strategy class is an interface… Continue reading

TLS 1.2 support with C# windows

Posted on November 14, 2022November 14, 2022 by Avidlearner

Recently I ran into an issue where my client failed to connect to our windows software after they upgraded to TLS 1.2. Reason being our application was supporting tls version < 1.2 because of .Net 4.5 . Since TLS standards keep developing and improving. At the moment TLS 1.2 is a latest encryption standard powering… Continue reading

Calculate size of drive in C# – How to find directory drive?

Posted on November 11, 2022November 11, 2022 by Avidlearner

In this post, we will be discussing how to find the directory drive and the size of drive in C#. This can be useful where application might want to check for drive size or remaining size of drive before getting started. Below is the snippet of implementation: To get the drive information in C#, one… Continue reading

Difference between new and malloc

Posted on January 5, 2022January 5, 2022 by Avidlearner

malloc() returns a void pointer it is necessary to explicitly typecast it into an appropriate type of pointer. This gets completely avoided when using new operator. E.g int *ptr1 = (int *)malloc(sizeof(int)); float *ptr2 = (float *)malloc(sizeof(float)); ExampleClass *ptr3 = (ExampleClass*)malloc(sizeof(sample)); Here ExampleClass is a user defined class. int *ptr1 = new int; int *ptr2… Continue reading

Bind and placeholders in C++

Posted on January 3, 2022January 12, 2022 by Avidlearner

Bind() introduced in c++11 allows you to bind parameters of a callable in a flexible way. Youcan bind parameters to fixed values, and you can even rearrange parameters in a different order. bind(function pointer, bound arguments) For example, let add3 be a function that takes 3 integer arguments and returns an int that is the… Continue reading

Program to find best possible denomination of input money

Posted on January 3, 2022January 3, 2022 by Avidlearner

In this program, we will be finding possible denomination of money input from user. In this case we are assuming denomination as 1,5,10,25. For example if input money is 65 then denomination will be 25*2,10*1,5*1. Since we are trying to get best possible denomination such that we have least coins, so will store the denomination… Continue reading

Recent Posts

  • Implement Trie Data Structure in C++- LeetCode
  • How TLS Works
  • C++ – Factory Design Pattern – Creation Design Pattern
  • C++ – Strategy Design Pattern – Behavioral Design Pattern
  • LFU Cache Implementation – LeetCode

Recent Comments

  • automatically like friends photos on instagram on Program to find unpaired element in an Array in C++|Leetcode |techtrendings
  • Twicsy on Program to find unpaired element in an Array in C++|Leetcode |techtrendings

Archives

  • January 2023
  • November 2022
  • August 2022
  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022

Categories

  • Algorithm
  • Algorithm
  • C++
  • Design Patterns
  • Multithreading
  • OS Concepts
  • Programming
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Join Our Mailing List for the Latest News and Updates.

© 2023 techtrendings.com | Powered by Superbs Personal Blog theme