teleren/devto huggingface dataset:
Dotnet Interview Questions Part1
Tags: csharp, interview, dotnetcore, aspdotnet
Published: 2023-06-07 11:52:44

## Can ASP.Net core app work with .Net 4.X?

Yes, Via Dotnet Standard Library

- .Net Core 2.X -- Runs on Full .Net Framework
- .Net Core 3.X -- Not supports Full .Net Framework
- .Net 5        -- Not supports Full .Net Framework





![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fmpjyvwwg7c0yklo0uua.jpeg)


A CLI Language Compiler will generate metadata and store this in an assembly containing CIL. when runtime executes CLI, it will check the called method and calle are same.



CIL is a common interpreted language, and also CTS common type system to make sure all languages are generated as same MSIL to which passes to the CLR or runtime



##Major events in global.aspx

- Applicaton_start
- Application_end
- Application_error
- Application_disposed
- Application_beginRequest



##PageLifeCycle


- OnPreInit
- OnInit
- OnInitComplete

-    LoadViewState
-    LoadPostData


- Page_PreLoad
- Page_Load
- Page_LoadComplete




##State Management in ASP.Net


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aj8nhbpf94hq684exp6w.png)




##State Management in MVC

Hidden Field
Cookies
Query String
ViewData
ViewBag
TempData



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2abfl4awwvhdfo7po4mg.png)





![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eneas162dwb147gdh7t5.png)
How To Choose The Best eCommerce Shipping Platform For Your eCommerce Business?
Tags: ecommerceshippingsolution, courieraggregatorcompany
Published: 2023-06-07 10:39:35

The growing prominence of ecommerce businesses can largely be attributed to the behind-the-scenes role played by ecommerce shipping platforms and software.  While mass-production of consumer items is unquestionably an important component of e-commerce businesses, today's environment places even greater emphasis on the timely delivery of these packages across large distances.

An [**Ecommerce shipping platform**](https://shipmozo.com/) recognizes the criticality of this step within the overall operations and logistics of ecommerce businesses. They integrate with numerous logistics suppliers, enabling e-commerce businesses to select the best shipping alternatives based on aspects like price, reliability, and speed.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/txjott09m8e7if7yc7ud.png)

Features to consider when choosing an ecommerce shipping platform:-

**Shipping Rates:** When choosing an e-commerce platform, the cost of shipping is an important consideration. The platform's dashboard includes a rate calculator that takes the weight of the consignment into account when calculating shipping charges. Businesses benefit from the shipping provider's open communication by knowing how charges are determined and what factors affect the final cost.

**Serviceability:** These platforms allow businesses to extend their deliveries across a large geographic area thanks to their easy integration with different ecommerce delivery services. An online business can increase its reach and offer shipments to clients in new and far-off regions by making use of the enormous network of these platforms.

**Types Of Delivery and Payment Options:** It's crucial to pick an ecommerce delivery software that provides a range of delivery alternatives, including normal, express, and specialized services. The program should also enable a variety of payment options, such as COD, bank transfers, digital wallets, and credit/debit cards. These choices promote flexibility, accommodate various consumer preferences, and raise the likelihood of successful transactions.

**RTO:** The procedure by which a consignment is transported from the client back to the supplier is referred to as reverse logistics, often known as return orders. Along with the actual return of the package, it also requires managing the logistics surrounding the return and processing refunds and stock adjustments. So it's critical to pick an ecommerce platform with effective return order handling features.




**Conclusion**

One the leading [**ecommerce shipping solution**](https://shipmozo.com/) company in India, Shipmozo which is renowned for its affordable shipping costs and top-notch customer service. Shipmozo stands out in the field with a number of distinctive traits. A few features of the platform include a customer-centric approach, cash-on-delivery (COD) remittance, self-courier system, user-friendly dashboard, minimum return-to-origin (RTO), and real-time tracking.
Wordpress formidable forms plugin - change in code
Published: 2023-06-07 11:40:38

I am using the Formidable Form Pro plugin for a job post form.

I have added a "Register User" action in the form using: https://formidableforms.com/knowledgebase/using-add-form-actions/.

On first time, the job is being posted and user is being registered, but the next time the user wants to create the job, they get "email is already registered" issue.

I want to prevent this error and make the job post linking it with existing user if email is pre-existing. I am not able to do this using Conditional Logic provided actions in form action. Is there any built-in way to resolve this in Formidable or any plugin that adds this functionality. Here is the gist of it:

If email is not registered then new user should be created and job should be linked with him. (Already being done).
If email is registered then new user registration should not be attempted and the job should be linked with existing user. (Facing issue in this).
Wednesday Links - Edition 2023-06-07
Tags: java, jvm, springboot, git
Published: 2023-06-07 11:14:05

Debugging hangs - piecing together why nothing happens (5 min)🧩
https://blog.allegro.tech/2023/05/debugging-hangs.html

Class Loader Hierarchies (6 min)👑
https://mostlynerdless.de/blog/2023/06/02/class-loader-hierarchies/

TreeSet with Custom Comparator (6 min)🌳
https://www.javaspecialists.eu/archive/Issue309-TreeSet-with-Custom-Comparator.html

UseDynamicNumberOfCompilerThreads and Memory Footprint (4 min)🦶
https://poonamparhar.github.io/dynamic_compiler_threads/

Spring's @MockBean is an anti-pattern (6 min)🫘
https://filip-prochazka.com/blog/mockbean-is-an-anti-pattern

Spring Boot 2.7 to 3.1 — The Migration Story (3 min)🧭
https://sjtucaocao.medium.com/spring-boot-2-7-to-3-1-the-migration-story-8dedb5635f82

How and Why to Integrate Diffblue Cover Into a CI Pipeline (6 min)🧠
https://rieckpil.de/how-and-why-to-integrate-diffblue-cover-into-a-ci-pipeline/

The Git repository that vanished (4 min)☁️
https://blog.ploeh.dk/2023/06/05/the-git-repository-that-vanished/

Email addresses are not primary user identities (5 min)📧
https://ntietz.com/blog/email-address-not-identifier/

Regular JSON (4 min)🕴️
https://neilmadden.blog/2023/05/31/regular-json/
Fedora: El arte de simplificar tu vida de programación
Tags: spanish, programming, linux
Published: 2023-06-07 11:04:09


En un universo donde la creatividad y la innovación no tienen límites, Fedora se presenta como el superhéroe encubierto, dispuesto a rescatar a aquellos programadores que buscan versatilidad y robustez en un sistema operativo.

¿Por qué Fedora? En términos sencillos, es un sistema operativo de código abierto, basado en el núcleo Linux. ¿Por qué debería importarte? Bueno, Fedora se destaca por su énfasis en las innovaciones de software, proporcionando las últimas tecnologías de código abierto a sus usuarios.

Lo hermoso de Fedora es su capacidad para adaptarse a las necesidades del usuario. No importa si eres un programador experimentado buscando un entorno de desarrollo sofisticado o un principiante que está dando sus primeros pasos en el mundo de la programación, Fedora tiene algo para todos.

¿Estás pensando en hacer algunos desarrollos de software usando Fedora? Entonces, estás de suerte. Fedora proporciona una plataforma rica y potente para desarrollar y probar nuevos programas. Y lo mejor de todo, no estás solo. La comunidad de Fedora es colaborativa y siempre está dispuesta a ayudar.

Hablando de desarrollo de software, si estás planeando programar en Fedora, necesitarás un entorno de desarrollo integrado o IDE. Un IDE es como tu cuartel general para la programación. Es aquí donde escribes, pruebas y depuras tu código. Es el centro de control de tus esfuerzos de programación.

Ahora, aquí es donde entra en juego la versatilidad de Fedora. Fedora es compatible con una gran cantidad de IDEs de alta calidad. Desde simples editores de texto hasta entornos de desarrollo completos, hay opciones para todos los gustos.

[Leer más sobre IDEs para Fedora
](https://linuxmind.dev/2023/04/20/mejores-ide-para-programar-en-el-so-fedora-project/)
Ya sea que estés buscando una solución ligera y ágil como Atom, un IDE completo y potente como Eclipse, o algo intermedio como Visual Studio Code, Fedora tiene la capacidad de soportarlo. Así que da el salto, sumérgete en el mundo de la programación con Fedora. No sólo tendrás una gran experiencia de usuario, sino que también te unirás a una comunidad de apasionados defensores del software de código abierto. Bienvenido al universo Fedora.
This site can’t provide a secure connection
Tags: webdev, programming, opensource, aspdotnet
Published: 2023-06-07 10:56:24

If you're encountering an error message that says "This site can't provide a secure connection," it typically indicates a problem with the website's SSL/TLS certificate or configuration. SSL/TLS certificates are used to establish secure connections between web servers and browsers, ensuring that data transmitted between them is encrypted and protected.

Here are a few potential reasons for this error message:

1. Expired or Invalid Certificate: The SSL/TLS certificate of the website might have expired or is considered invalid by the browser. Certificates need to be periodically renewed to maintain a secure connection.

2. Misconfigured Certificate: The website might have a misconfigured SSL/TLS certificate. This could be due to an incorrect installation or configuration of the certificate on the server.

3. Website Not Using HTTPS: If the website you're trying to access doesn't support HTTPS, which is the secure version of HTTP, you may encounter this error. HTTP connections are not encrypted and therefore not considered secure.

4. Firewall or Antivirus Interference: In some cases, firewalls or antivirus software might interfere with the SSL/TLS connection, causing the error message to appear.

5. Browser Issues: The error message could be related to your web browser. Outdated browsers or incompatible browser settings might prevent a secure connection.

To troubleshoot this issue, you can try the following steps:

1. Check the website URL: Ensure you've entered the correct website address.

2. Clear browser cache: Clearing your browser's cache and cookies can sometimes resolve SSL/TLS certificate-related issues.

3. Try a different browser: If the problem persists, try accessing the website using a different browser to see if it's a browser-specific issue.

4. Update your browser: Ensure that your browser is up to date. Outdated browsers may have compatibility issues with certain SSL/TLS certificates.

5. Disable firewall or antivirus temporarily: Temporarily disabling your firewall or antivirus software can help identify if they are causing the issue.

If none of the above steps resolve the problem, it's possible that the website's server is experiencing technical difficulties. In such cases, reaching out to the website owner or administrator for assistance would be the best course of action.
Made a GPT-3 UI that pre-prompts any hosted JSON Resume and let's you interview or be interviewed by it
Published: 2023-06-07 10:40:50

[https://registry.jsonresume.org/thomasdavis/interview](https://registry.jsonresume.org/thomasdavis/interview)

[https://registry.jsonresume.org/pscholle/interview](https://registry.jsonresume.org/pscholle/interview)

[https://registry.jsonresume.org/cassmclaughlin/interview](https://registry.jsonresume.org/cassmclaughlin/interview)

I've just been having some fun playing with OpenAI and building random things.

Thought it would be funny to interview my own resume, or talk to a fake interviewer.

You can just add `/interview` to the end of any resume hosted on the registry.

Needs more work, especially the prompting. Would love any funny suggestions to add on.

(Used GPT-3 API instead of ChatGPT because the later always thinks its a bot)
How to validate react form in the front-end.
Tags: form, validation, react, frontend
Published: 2023-06-07 10:39:59

Validating form in react/next app in the front end can be a tedious process. But following these simple steps you can validate your form in react app in the front end very easily. 

Here's the code how you can implement that.

{% codesandbox brv9om %}
One of the best benefits of using ChatGPT is...
Tags: chatgpt, ai, productivity
Published: 2023-06-07 10:13:23

If you could watch the cogwheels in the machinery of a mind whirling and spinning, thoughts darting around like fireflies in a summer's night, you'd understand the magic of clarity. It's not just about productivity or efficiency, no. It's much more than that, it's a dance, a ballet of cognition, a silent orchestra of precise expression.

In our daily interactions with ChatGPT, the AI-driven technology, we find ourselves at the crossroads of revelation. It’s a mirror held up, reflecting the images we sometimes ignore. The reflection is our thoughts, our words, composed with more clarity than ever before.

You see, ChatGPT demands clear and detailed input to provide optimal output. It insists on precision, accuracy, and because of that, it's teaching us a lesson, a simple yet profound one. It's pushing us to converse with ourselves before we converse with it. It's turning us into better thinkers, better communicators.

A clearer question generates a clearer answer. Just like that, we must be more precise, more eloquent. A flurry of thoughts doesn't necessarily mean an intelligent conversation; we need to structure our thoughts, to break the maelstrom of vague ideas into coherent sentences. And in doing that, we learn the art of clear communication.

The subtlety lies not just in what we say, but how we say it. The magic of language, the power of expression, these are not just skills, they're tools to reach into the minds of others, to convey what we see and think and feel. ChatGPT nudges us to dive deeper into that art, making us better communicators, more precise thinkers.

So next time when you're chatting with ChatGPT, remember - it's not just an AI. It's a language partner, a silent mentor, guiding you through the labyrinth of your thoughts, shaping you into a better version of yourself, one clear sentence at a time.

Let the dance continue, my friends, as we evolve in this era of AI. 💫🗣️💡

---
Written with ChatGPT using the following prompt:
```
Write a post about following topic: "One of the best benefit of using ChatGPT is..."
Use following notes as an input:
Besides the fact that ChatGPT can increase the productivity and efficiency of work, it forces us to think and explain our thoughts clearly, in detail. That helps us also to speak more clearly and communicate our intentions and thoughts in better way. 
Use a "Stream of Consciousness" writing style.
```
Difference between package.json and package-lock.json
Tags: webdev, javascript, beginners, programming
Published: 2023-06-07 10:05:59

Howdy friends!!! 
It's been a while since I posted an article. In today's episode, we are going to give a clear distinction between package.json and package-lock.json. So without further ado, let's get started

## 1. Definition

_**package.json**_
It is a metadata file that describes the project's dependencies, scripts, configuration, and other details.

_**package-lock.json**_
It is a lockfile that provides an exact, deterministic list of all the installed packages and their dependencies, including their exact version numbers.


## 2. What it does

_**package.json**_
It lists the required dependencies and their version ranges, but not the exact versions to be installed.

_**package-lock.json**_
It is used to ensure that the same dependencies are installed consistently across different environments and prevent conflicts due to different versions being installed.




## 3. How it is created

_**package.json**_
It is typically created and modified manually by the developer to manage the project's dependencies and configuration.

_**package-lock.json**_
It is automatically generated by npm and updated whenever you install or update packages.

## **4. Modifications**
**_package.json_**
It can be easily shared and committed to version control systems.

_**package-lock.json**_
It is not meant to be manually modified and should be committed to the version control svstem to ensure consistency across all team members.




_In conclusion, package.json and package-lock.json are like Batman and Robin, guiding your projects to victory with their synchronized dance routine of dependencies. Embrace their power, master their nuances, and let these JSON superheroes save you from dependency chaos!_





![cheers](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b3kihubopcww0gtdqa6f.jpeg)
Game Design Document (GDD) Examples
Tags: gamedesign, gamedev, beginners
Published: 2023-06-07 10:01:11

As game designers, the process of creating a game design document can be the most painstaking or the most stressful. The many different templates can be a bit daunting for beginners like me, but understanding the purpose of GDGs takes all the fear away.

Game design documents are the documents that explain the game to all stakeholders within the team and sometimes outside the team. Many elements such as the game's features, artistic style, main story plot, target audience, etc. are conveyed by the game designers to the rest of the team in this document. 

A game design document for games is almost the same as a business plan for a tech startup. Therefore, the purpose of GDDs is to describe the general structure of the game, introduce the features needed to create the game and be iterative throughout the process. Below I list some game design documents that you can use for inspiration:
1. [Monaco Game Design Document](https://www.facebook.com/notes/10159380697433606/)
2. [Silent Hill Design Document](https://drive.google.com/file/d/1nxvdXasP-HsRCt62cHK3wF_pIrJpYx5T/view)
3. [Dirty Bomb Game Design Document](https://www.dirtybomb.com/news/the-design-of-dirty-bomb/)
4. [Apocalypse Now Game Design Document](https://www.scribd.com/document/358623314/Apocalypse-Now-Game-Design-Document-Official)
5. [Azrael’s Tear Game Design Documents](https://geekboss.com/blog/azraels-tear)
Print the Content of a div Element using HTML & JavaScript
Published: 2023-06-07 06:46:56

Hey Guys, In Today's Blog We are going to see How to create and **[Print the Content](https://www.codewithrandom.com/2023/04/10/div-print-using-html-javascript/)** of a Div Element Using Html and JavaScript. We Use Html and Javascript Code For Print the Content of a Div Element.

This is a very simple project in which the content will be contained in a div container that will be created using a basic HTML element and using the button command, the content will be printed inside the div area. This project teaches you how to construct a print button that lets users print any webpage they need while also teaching you the fundamentals of printing.

Now The Project is going to create and for that, we are first adding an HTML Code.

## HTML Code:
```
<div id="printableArea">
      <h1>Print me</h1>
</div>

<input type="button" onclick="printDiv('printableArea')" value="print a div!" />
```
First We create a div class with the name "printableArea" and Inside the div class we add a header using an H1 tag with the content Print me, Then We close the Div tag.

Then We create an input class as button type and set the onclick function by giving a name for it and finally a value "print a div " is added.

So that's for HTML, Now We directly go for JavaScript to print the div area. Here we skip the CSS, if you want means you can use it. As it is a sample of the project so we directly added the content.

## JavaScript Code:
```
function printDiv(divName) {
     var printContents = document.getElementById(divName).innerHTML;
     var originalContents = document.body.innerHTML;

     document.body.innerHTML = printContents;

     window.print();

     document.body.innerHTML = originalContents;
}
```
Here first we create an function and calling out the onclick function which is in HTML to make contents inside to work it. Now We creating two variables namely "printContents" and "originalContents" one for calling out the element using JS get Element property and one for printing the contents inside of div class.

After that we are storing the printContents values to the originalContents value.

Then We use the JS property window.print to make a print of the contents inside of div class.

Lastly the contents which is inside of variable "originalContents" were again stored to the same variable declared three lines above.

So that's for JS , Now We came to end of our Project as we successfully added the source codes. So we can now move for project preview which is mentioned below of Output Section.

Now We have Successfully created **[Print the Content](https://www.codewithrandom.com/2023/04/10/div-print-using-html-javascript/)** of a div Element Using Html and JavaScript. You can use this project for your personnel needs and the respective lines of code are given with the code pen link mentioned below.

If you find out this Blog helpful, then make sure to search Codewithrandom on Google for Front End Projects with Source codes and make sure to Follow the Code with Random Instagram page.

REFER CODE- Greg Vissing

WRITTEN BY- Ragunathan
Welcome Thread - v228
Tags: welcome
Published: 2023-06-07 09:30:00

---
title: Welcome Thread - v228
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
published_at: 2023-06-07 09:30
---

![HELLO in white on a rainbow background](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v0dr35on78rbkxh0zrzr.gif)

---

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

3. If you are new to coding, want to help beginners in their programming journey, or just want another awesome place to connect with fellow developers, check out the [CodeNewbie Org](https://dev.to/codenewbieteam)!