teleren/devto huggingface dataset:
How to generate a trusted local IIS certificate for .Net development
Tags: dotnet, iis, webdev
Published: 2023-08-31 16:07:28

As a .Net developer, I often run .Net websites in a local IIS instance on my developer machine, and it can be useful to be able to serve the site over HTTPS.

To create a trusted, local, self-signed SSL certificate, follow these steps.

## 1. Generate the certificate

Open Powershell and enter the following command:

```powershell
New-SelfSignedCertificate -DnsName "mysite.local" -CertStoreLocation "cert:\LocalMachine\My"
```

## 2. Trust the certificate

We now need to ensure the certificate is trusted on the local machine, otherwise you'll get a certificate warning when you navigate to your local website over HTTPS in a browser.

To do this in Windows 10:

1. Start -> Run `certlm.msc` to open the Certificate Manager tool
2. Expand the `Intermediate Certification Authorities` folder in the left window of the tool
3. Click the `Certificates` folder
4. Find the certificate you just generated in the right-hand window
5. Click and drag it over the `Trusted Root Certification Authorities` folder in the left window - this will set the certificate as trusted on your local machine.

## 3. Update IIS to use the new certificate

Now you can create/update the HTTPS binding for your local website in IIS to use the new certificate - you should see the new certificate listed in the `SSL certificate:` drop-down list.

That's it.
CloudDefense.AI helped secure a database that contained entries of over 153,000 users
Tags: databreach, cloud, security, cybersecurity
Published: 2023-08-31 15:50:26




![CloudDefense.AI helped secure a database that contained entries of over 153,000 users](https://cdn-images-1.medium.com/max/4976/1*y8YqGfjUiwroM6fleAw7hQ.png)

CloudDefense.AI recently garnered attention on TechCrunch for its pivotal role in safeguarding the exposed database of the Indian social media startup, Slick. This database contained records of over 153,000 users and had inadvertently become vulnerable due to a misconfiguration, posing potential risks.

Anurag Sen, our diligent security researcher, unearthed this exposed database and, in collaboration with TechCrunch, alerted Slick about the issue. Once TechCrunch contacted Slick on a Friday, the company promptly took action to secure the database.

For months, an internal database of the up-and-coming Indian social media platform, Slick, housed sensitive data, including that of school-age children, making it accessible to the public due to inadequate security measures.

Fortunately, swift intervention by TechCrunch and Slick prevented any harm before it occurred. Over the past few months, CloudDefense.AI has been instrumental in aiding numerous companies in addressing security breaches.

CloudDefense.AI is an advanced security solution meticulously crafted to assist businesses in fortifying their databases against potential threats. It offers an array of security features, such as database encryption, access control, and real-time monitoring, to safeguard sensitive information.

In the case of Slick, CloudDefense.AI played a pivotal role in securing the exposed database. The solution expedited the identification of the misconfiguration responsible for the exposure and promptly rectified it. Furthermore, CloudDefense.AI ensured comprehensive security measures were implemented to shield the database from future security threats.

In summary, it is imperative for businesses to take proactive steps in protecting their databases from potential security vulnerabilities. Solutions like CloudDefense.AI provide startups like Slick with the assurance that their sensitive data remains secure, even in the face of misconfigurations or other security incidents. Investing in robust security measures is essential to prevent data breaches, uphold user trust, and secure a successful path for the business.
84 berufliches Vorwärtskommen: Wird der Elefant das Zimmer verlassen?
Tags: deutsch, career, motivation, discuss
Published: 2023-08-31 15:34:00

Moin Moin,

die Frage ist also, ob das Ausstellungsstück (1), der Elefant, das Zimmer verlassen wird. Nicht von selbst, wie es mir scheint, jedoch dann, wenn ihn mindestens einer rausbringt. Möglicherweise kann einer allein ihn gar nicht rausbringen. Möglicherweise ist also Team-Arbeit notwendig. Möglicherweise muss eine Rausbringerschaft gegründet werden, welche sich darauf spezialisiert, Elefanten aus Zimmern rauszubringen.

In welchem Zimmer finden wir nun welchen Elefanten?
Ist vielleicht E-Mail-Verschlüsselung ein Elefant?
Oder Fachkräftemangel?
Oder die Ausbildung von IT-Fachkräften bzw. deren Förderung?
Ist es vielleicht etwas persönlicheres was auf dem eigenen Karriere-Weg liegt?

Was ist also der Elefant im Zimmer, oder sind es sogar mehrere?

Lass uns mittels Kommentaren austauschen.

Beste Grüße,
Mustafa

Oder auch mittels E-Mail: mustafa.kevin.dwenger@posteo.de
Betreff: Austausch

(1) [Redewendung: „Der Elefant im Zimmer“↗](https://www.bedeutungonline.de/was-bedeutet-die-redewendung-der-elefant-im-raum-bedeutung-definition-erklaerung-herkunft/)
NumPy Tutorial #14: Random
Tags: datascience, python, beginners, tutorial
Published: 2023-08-31 15:18:23

{% embed https://youtu.be/GAE70z-xCjM %}

Hi everyone, in this blog I will show you how to generate value in NumPy.

---

## Random

To generate value, you can use `random` from NumPy. It is very easy to use it. Let me show you how to do it.

First, you have to import `random`
```python
from numpy import random
```

Then use `randint` method from `random` to generate random value. This method requires one argument, which is the maximum constraint that will be generated. In this example, I will set 70 as the maximum constraint, so that the value generated will in between 0 - 70
```python
x = random.randint(70)
```

If you print `x`, you will get value around 0 - 70 as the output, in this case the following is my output result (your result might be different)
```
17
```

If you want to generate an array of values instead of an individual array, you can add the second optional argument `size` that requires the tuple of array size you want
```python
arr = random.randint(70, size=(10))
```

If you print `arr`, you will get an array that have 10 random values. Below are my output result (your result might be different)
```
[58 41 55  0 13 21 62  6 38 43]
```

---

That is how you can generate value in NumPy. Thank you for reading this blog and have a nice day!
Arduino Uno
Tags: arduino
Published: 2023-08-31 15:11:15


## What is Arduino Uno?
Arduino Uno stands as an open-source microcontroller board, functioning on the ATmega328P processor. Outfitted with 14 digital I/O pins, 6 analog inputs, a USB connection, power jack, ICSP header, and reset button, it houses all essential components to cater to the microcontroller's needs. A swift setup is possible by connecting it to a computer via USB or a power adapter. 

"Imagine the Arduino board as the brain at the heart of the IoT world, similar to how our body's command center functions. For instance, think of sensors as the eyes, nose, and ears – they gather information. Actuators are like hands and legs – they make things happen. Just as the brain guides our body's moves, the Arduino board decides and sends signals, connecting what sensors sense to what actuators do.
In simple terms, the Arduino board acts as the main brain, bringing together sensors and actuators just like the human brain coordinates our body's actions and communication. It's like the conductor of an orchestra, making sure everything works in harmony."
Using "for instance" here adds a specific example that enhances the reader's understanding of how sensors and actuators function, strengthening your explanation.

## The hardware structure of Arduino Uno

1. Microcontroller
2. 14 Digital Pin 
3. 6 Analog Pins 
4. Power Supply
5. Power Jack
6. USB Port
7. Reset Button

![Arduino Uno image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nozbyc44mnhopebv4kum.png)

- Microcontroller: Think of this as the brain of Arduino Uno.
- Digital Pins: There are 14 digital pins on Arduino Uno. They're like little pathways you can connect things like LEDs and screens to.
- Analog Pins: There are 6 of these pins. They're great for hooking up sensors that give numbers, like thermometers.
- Power Supply: It's like plugging in batteries – there are special pins for different power needs.
- Power Jack: You can give power to Uno using a special plug or a USB cable.
- USB Port: This is like a door to talk to Uno. You use it to put in instructions or programs.
- Reset Button: If things get stuck, this is like giving Uno a little nudge to start over.
What Happens When We Run a .java Code?
Published: 2023-08-31 15:03:12


![Image 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n8n9s3fxbqb4xm7m2pow.jpg)

Java is a popular programming language that is used to create a wide variety of applications, from simple websites to complex enterprise software. When you run a .java code, a series of events takes place in order to execute the program.

The first step is to compile the code. The Java compiler, javac, converts the .java code into a .class file. The .class file is a binary file that contains the bytecode for the program.


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

The next step is to load the .class file into the Java Virtual Machine (JVM). The JVM is an interpreter that executes the bytecode. The JVM is responsible for managing the memory, threads, and other resources that are needed to run the program.


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

Once the .class file is loaded into the JVM, the main method of the program is executed. The main method is the starting point for all Java programs.


![Image 4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1o35qkrswy57cuitn3iv.jpeg)


The JVM then executes the bytecode instructions in the .class file one at a time. Each bytecode instruction performs a specific operation, such as adding two numbers, printing a message to the console, or creating a new object.


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

The JVM continues to execute the bytecode instructions until the program terminates. When the program terminates, the JVM releases the memory and other resources that were used by the program.

Here is an example of a simple Java program and the output when it is run:

```
public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
```

output:

```
Hello, world!
```

This program defines a class called HelloWorld. The main method of the class prints the message "Hello, world!" to the console. When the program is run, the JVM loads the .class file into memory and executes the main method. The main method prints the message "Hello, world!" to the console and then terminates the program.


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

Here are some additional things to keep in mind when running a .java code:

The javac compiler must be installed on the system in order to compile the .java code.
The JVM must also be installed on the system in order to run the .class file.
The .class file must be in the same directory as the Java program that is calling it.
The Java program must have the correct permissions in order to run the .class file.

If you have any questions, please feel free to comment! I will explain in a very simple way.
New U.S. Regulations Highlight the Importance of Collecting Personal Data Purpose and Use
Published: 2023-08-31 15:00:44

Today, the White House hosted a roundtable on data broker practices that harm consumer privacy, in particular, selling “credit header data,” which can contain sensitive personal information such as name, Social Security number, and date of birth. Simultaneously, the Consumer Financial Protection Bureau (CFPB) announced it will propose new regulations to limit the operations of data brokers under the Fair Credit Reporting Act (FCRA). This move aims to safeguard consumer rights and privacy while bringing data brokers under more stringent control.

Data brokers vacuum up and sell personal information, often without our explicit consent, and sometimes even without our knowledge or awareness. These brokers often rely on data with an unknowable chain of custody, mixing together data from a variety of sources, and often relying on blanket permissions from parties that are not authorized to grant them.

The CFPB’s initiative reinforces the need for high quality data collection practices, in particular, the need to collect purpose and use consent alongside data attributes. Many digital product owners would never consider selling their customer data, but the reality is that personal data often leaks from poorly constructed and monitored APIs.

Internal and external teams often have access to sensitive data over APIs, including marketing and data analytics teams. These new rules further highlight the need to limit customer data exposure with better tooling.

This comes on the heels of the Securities and Exchange Commission (SEC) adopting new rules earlier this month that require companies to disclose cybersecurity incidents on Form 8-K within just four business days.

There’s no question the regulatory cost of mishandling sensitive customer data is increasing.

For most API product teams, the challenge has been they don’t have a good understanding of API misconfigurations; and they can’t control data flow at a granular enough level.

At Contxt, we know that trust starts with discovery. Our first step is always to understand what data actually flows over your APIs.

Once we have established a baseline, we empower you to collect and document the intended purpose of data usage. This aligns with the CFPB's goal of ensuring companies comply with authorized data uses, as specified by the FCRA.

Then, Contxt's capabilities extend beyond data collection and reporting. We enable you to enforce proper usage downstream, ensuring that the data's purpose remains consistent throughout its journey.

To learn more about Contxt's capabilities and how we can help your business prepare for the dynamic regulatory environment, [sign up for an account for free](https://darkspark.io/signup?utm_source=DevTo).
How to build solution, run tests, create package using .Net commands.
Tags: dotnet, devops, unittest, pipeline
Published: 2023-08-31 14:54:35

Ever wondered that how build is executed in the build pipeline? Or maybe how tests are run in the build pipeline? 

Well, DevOps certainly knows that. But .Net developers usually build the solution from visual studio using the menu. 

Sometimes there will be too many errors or a glitch but commands can help you to know exact errors and eliminate the glitch if any.
Also these commands will be useful to build a pipeline.

Let’s get into the topic.


**Pre requisite:**

- .Net framework (.Net core or above recommended)
- Powershell or Developers Command Prompt for VS

Open the powershell/Developers Command Prompt and go to the directory where solution is located.

1) **dotnet clean** - Cleans the solution by removing obj, bin folders where build related files are being stored.


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



2) **dotnet restore** - Restore all the dependencies such as NuGet packages from the repository.


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


3) **dotnet build** - Build the solution, which will be ready to run.


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



4) **dotnet test** - Runs the tests from all of the test projects.


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



5) **dotnet pack** - Packs the solution so that it can be uploaded as an artifact.


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



6) **dotnet publish** - Publish the solution. Creates required files that needs to run the application in the publish folder.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7szw7w4a3czatgudqol5.png)
Detecting ERR_CONNECTION_TIMED_OUT on IFrame load in React
Tags: react, javascript, webdev, html
Published: 2023-08-31 14:54:03

Hello, 

I started working on a React Component which contains an Iframe that should load and contain a web page.
Sometimes the web page is unreachable and I get the following error within the browser console:
ERR_CONNECTION_TIMED_OUT

I tried many solutions in React but unable to intercept such timeout error.

Here's what I have tried to do:
```jsx
import React, { useEffect, useState } from 'react';
import axios from 'axios';

export const ComponentFrame = (props) => {
  const [status, setStatus] = useState(null);

  const CHECK_INTERVAL = 1000;

  useEffect(() => {
    const iframe = document.getElementById('player');
    if(!iframe) {
      console.log('useEffect >> inside useEffect(): !iframe', 'DEBUG');
    }

    const startPolling = () => {
      console.log('startPolling >>', 'DEBUG');
      if (iframe.querySelector(`iframe[src="${props.iframeSrc}"`)) {
        console.log('startPolling >> iframe is ready', 'DEBUG');
        return;
      } else {
        console.log('startPolling >> iframe is not yet loaded!', 'DEBUG');
      }
      setTimeout(startPolling, CHECK_INTERVAL);
    };

    const handleIframeLoad = () => {
      try {
        startPolling();
      } catch (error) {
        console.log('handleIframeLoad >> ' + error, 'ERROR');
      }
    };

    const handleIframeError = (event) => {
      const errorMessage = event.message || 'Unknown error';
      console.log('handleIframeError >> errorMessage: ', errorMessage, 'ERROR');
      if (errorMessage.includes('ERR_CONNECTION_TIMED_OUT')) {
        console.log('handleIframeError >> Connection timed out in iframe:', errorMessage, 'ERROR');
      }
    };

    try {
      iframe.addEventListener('load', handleIframeLoad);
    } catch (error) {
      console.log('addEventListener >> ' + error, 'ERROR');
    }

    return () => {
      iframe.removeEventListener('load', handleIframeLoad);
      iframe.contentWindow.removeEventListener('error', handleIframeError);
    };
  }, []);

  return (
    <div className="external-content-wrapper">
      <iframe
        frameborder="0"
        sandbox="allow-scripts allow-same-origin allow-forms"
        id="player"
        src={props.iframeSrc}
        allowFullScreen={1}
        title="Remote page"
        width="100%"
        height="100%"
        onLoad={this.handleIframeLoad.bind(this)}
        onError={this.handleIframeError.bind(this)}
      />
    </div>
  );
};
```

Basically I would like to perform a new iframe content reload when ERR_CONNECTION_TIMED_OUT occurs.

Could you please help?
React 18 Twice Mounting and API Calls
Tags: discuss, react, laravel
Published: 2023-08-31 14:51:16

I'm using **React 18** as front end & **Laravel 10** as backend. Now the issue is that i'm not allowed to do concurrent calls to api's so when react mount and re-mounts the second api call gets rejected. I have also user AbortSignal but it still sends the call to the server. Any Suggestion on how to resolve this?
Food Delivery App Clone Service
Tags: programming, react, css, api
Published: 2023-08-31 14:44:01

With the aid of our affordable solution, we enable business owners who are considering starting their own **[food delivery aggregator](https://www.desuntechnology.in/food-delivery)** to manage their operations online. 

We provide **[Food Delivery App clone services](https://www.desuntechnology.in/food-delivery)** in India, offering business owners to launch their own businesses by leveraging our cloud-based on-demand solutions. For trouble-free operation, our solution is designed with robust functionality and a simple UI.
Cable Billing software
Published: 2023-08-31 14:41:33

We offer **[cable billing solutions](https://www.desuntechnology.in/cable-billing-software)** in collaboration with cable operators and cable customer apps to help them decrease operational issues.

Cablink is a **[cable billing software](https://www.desuntechnology.in/cable-billing-software)** which manages records of all the customers and also manage the bill payment record , send sms notification, also manage agents working for cable operators come with android app.
Top 5 Blockchain Development Companies In US
Tags: blockchain, webdev
Published: 2023-08-31 14:38:55

Blockchain technology is rapidly gaining momentum in various industries and as such, there is an increasing demand for blockchain development companies that can help businesses and organizations harness the power of this revolutionary technology. In this article, we will be discussing the top 10 blockchain development companies in the United Kingdom, including eSrot Labs.

1. eSrot Labs

[eSrot Labs](https://esrotlabs.com/) is a leading blockchain development company in the United Kingdom that specializes in providing customized blockchain solutions for a wide range of industries. The company has a team of highly skilled and experienced blockchain developers who are well-versed in the latest blockchain technologies, including Ethereum, Hyperledger, and EOS. eSrot Labs has worked with a variety of clients, including startups, SMEs, and large enterprises, and has a proven track record of delivering high-quality blockchain solutions on time and within budget.

2. Hyperlink Info system

Hyperlink Infosystem is a web and mobile app development company that has an expert team of blockchain developers. They use APIs, libraries, SDKs, and other open documentation to provide a comprehensive client experience for blockchain development. They offer services such as smart contract development, cryptocurrency wallet development, and crypto exchange development.

3. DataArt

DataArt is a global company that provides custom digital solutions using blockchain technology. They have industry-specific knowledge and highly trained engineers that help clients improve their operations and open new markets.

4. Intetics Inc

Intetics Inc is a global company that provides internet and technology-based solutions with a focus on ethics. They offer services such as software development, SMAC, RPA, AI/ML, IoT, and blockchain.

5. AKQA

AKQA is a design and innovation company that was founded in 1994 and offers various technology services including web development, CRM, E-commerce, digital marketing, and blockchain development. The company has received recognition as a Fast Company Best Workplace for Innovators in 2020.
Best Software Development Agency in India
Tags: programming, react, devops, node
Published: 2023-08-31 14:37:16

Desun Technology's development and consulting services have the skills and understanding to help your organisation succeed. We are not just a development company, but also a consulting organisation, and our goal is to share our experience with our clients so that they may successfully apply it to their businesses and make them profitable. We offer services such as software development, mobile app development, web development, on-demand app development, web design, and so on.

**[Click here](https://www.desuntechnology.in/)** to know more about us.