teleren/devto huggingface dataset:
💬 #ChatGPT and Copilot Plugins in NET – Resources
Tags: englishpost, chatgpt, githubcopilot
Published: 2023-07-26 15:41:11

---
title: 💬 #ChatGPT and Copilot Plugins in NET – Resources
published: true
date: 2023-07-25 13:49:18 UTC
tags: EnglishPost,ChatGPT,Copilot,EnglishPost
canonical_url: 
---

### ChatGPT NET Plugin Series

- [Intro to ChatGPT Plugins using NET](https://dev.to/azure/my-1st-net-chatgpt-plugin-demo-included-46l0)
- [Map route handler for manifest file: ai-plugin.json](https://dev.to/azure/chatgpt-plugin-in-net-map-route-handler-for-manifest-file-ai-pluginjson-3gj3)
- [GetAll and Add, 2 API endpoints in a single PlugIn](https://dev.to/azure/chatgpt-plugin-in-net-getall-and-add-2-api-endpoints-in-a-single-plugin-j08)
- [Working and Debugging with the PlugIn Dev Tools](https://elbruno.com/?p=36441)
- [Session Resources](https://elbruno.com/?p=36456)

Hi!

Here are the main resources shared during the live sessions.

### Resources

- ChatGPT Plugins Documentation, [https://platform.openai.com/docs/plugins/getting-started](https://platform.openai.com/docs/plugins/getting-started)
- ChatGPT Plugin Quickstart using Python and FastAPI, [https://github.com/Azure-Samples/openai-plugin-fastapi](https://github.com/Azure-Samples/openai-plugin-fastapi)
- OpenAI ChatGPT Plugin – NET Pets Sample, [https://github.com/elbruno/OpenAI-Plugin-NET-Sample](https://github.com/elbruno/OpenAI-Plugin-NET-Sample)
- Start learning how to use Semantic Kernel, [https://learn.microsoft.com/en-us/semantic-kernel/get-started/quick-start-guide/](https://learn.microsoft.com/en-us/semantic-kernel/get-started/quick-start-guide/)
- Copilot Chat Sample Application, [https://github.com/microsoft/chat-copilot](https://github.com/microsoft/chat-copilot)

### Videos

Build your own ChatGPT Plugin in C#! | Intro to Semantic Kernel

<iframe width="750" height="422" src="https://www.youtube.com/embed/T7XLn11rpYI?version=3&amp;rel=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;fs=1&amp;hl=en&amp;autohide=2&amp;wmode=transparent" allowfullscreen="true" style="border:0;" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation"></iframe>

Test your ChatGPT Plugins FOR FREE! | Intro to Semantic Kernel

<iframe width="750" height="422" src="https://www.youtube.com/embed/W_xF8PcdT78?version=3&amp;rel=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;fs=1&amp;hl=en&amp;autohide=2&amp;wmode=transparent" allowfullscreen="true" style="border:0;" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation"></iframe>

Happy coding!

Greetings

El Bruno

More posts in my blog [ElBruno.com](https://www.elbruno.com).

More info in [https://beacons.ai/elbruno](https://beacons.ai/elbruno)

* * *
Hi everyone!
Tags: welcome, newbe, beginners
Published: 2023-07-25 13:58:31

Hi everyone! I'm Lila and I began my journey in tech! I started some courses on Openclassroom. That's a start. :)
I'm building a blog about my progress. It gives me the opportunity to play with CSS and HTML. Which is so exciting!
I'm not very good at socials and I'm French. So my posts will contain errors so please be cool!
Nice to meet you all!
🚀 Demystifying Time Complexity: Beyond Machine Speed ⏳💡
Tags: algorithms, datastructures, programming, coding
Published: 2023-07-25 13:55:13

⚡️ We often hear that "fast machines have low time complexity, and slow machines have high time complexity." But hold on! Time complexity is not about machine speed—it's a fascinating concept that transcends the hardware. Let's dive in and unravel the true essence of time complexity!

🐢🚀 The Tale of Two Machines:
Imagine two machines—Tortoise and Falcon. Tortoise, the slow one, takes a long time to process complex algorithms, while Falcon, the powerful one, zips through computations at lightning speed. It's tempting to equate Tortoise with high time complexity and Falcon with low time complexity, but that's just a myth!

🌱 Growing Input, Growing Impact:
The heart of time complexity lies in how an algorithm's performance scales with increasing input size. It's like tending a garden: as the problem size (your garden) grows, you need to evaluate how much time the algorithm (your gardening skills) takes to handle the increasing workload.

📈 Time Complexity is the Culprit:
Time complexity gauges the efficiency of an algorithm, irrespective of the machine. It helps us predict how the algorithm performs as the input grows exponentially. So, if your algorithm is snappy on Tortoise, it doesn't guarantee the same on Falcon when dealing with larger datasets.

⏰ Time Complexity in the Real World:
As developers, we strive to craft algorithms with optimal time complexity to tackle real-world challenges efficiently. By analyzing time complexity, we gain invaluable insights into how algorithms fare when faced with data growth, and we can optimize our solutions accordingly.

📚 Embrace the Complexity:
Let's remember that time complexity is about the algorithm's scalability, not machine comparisons. By embracing the intricacies of time complexity, we can wield its power to design algorithms that conquer data challenges with elegance and speed, across machines and time.
A Guide to Using colorama and pygame in Python CLI
Published: 2023-07-25 13:47:21

1. colorama

Colorama is a Python library used to add colors to terminal text. It simplifies the use of ANSI color codes to colorize console output and works seamlessly on Windows, macOS, and Linux.

To install colorama, you can use pip:

```
pip install colorama
```

A simple use of colorama is as follows:

```
from colorama import Fore, Back, Style

print(Fore.RED + 'This is red text')
print(Back.GREEN + 'This is text with a green background')
print(Style.RESET_ALL)
```

2. pygame

Pygame is a set of Python modules designed for creating video games. It includes computer graphics and sound libraries.

To install pygame, you can use pip:

```
pip install pygame
```
A simple use of pygame for playing sound effects is as follows:

```
import pygame

# Initialize pygame mixer
pygame.mixer.init()

# Load and play a sound
sound = pygame.mixer.Sound('path/to/your/sound/file')
sound.play()

```
This will load a sound file from the provided path and play it. Note that pygame supports different types of sound files like .wav, .ogg, .mp3, etc.

Remember to call pygame.mixer.init() before using the mixer, as this function will initialize the mixer module for Sound loading and playback.

In conclusion, colorama is a simple yet powerful tool for adding color to your Python applications, transforming plain console output into a vibrant, visually engaging display. On the other hand, pygame is an incredibly potent library, capable of handling graphics, sound, and much more. Its utility in adding sound effects and music, as demonstrated in this guide, is just a small glimpse into its extensive capabilities.
My favorite
Published: 2023-07-25 13:46:59


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

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mg5h5mqukk7hlua8zfux.png)
Higher Order Function (HOF) in JavaScript
Tags: javascript, tutorial, programming, hof
Published: 2023-07-25 13:39:10

A high order function is a function which takes other function as an argument and Returns function, the other and simple definition is, A high-order function in programming is a function that does at least one of the following:

1-Takes one or more functions as arguments (i.e., procedural parameters),
2-Returns a function as its result. 

High-order functions are a key part of functional programming, and they're also used quite widely in more imperative-style programming. High-order functions allow us to create more generic functions, reduce code duplication, and can lead to code that is easier to read and maintain.

Here's an example of a high-order function in JavaScript:

```javascript

function map(arr, func) {
    let result = [];
    for(let i = 0; i < arr.length; i++){
        result.push(func(arr[i]));
    }
    return result;
}

let array = [1, 2, 3, 4, 5];
let square = function(x) {
    return x * x;
}

console.log(map(array, square)); // Outputs: [1, 4, 9, 16, 25]
```

In this case, map is a high-order function because it takes a function (func) as an argument. This high-order function applies the function func to every element in the array arr and returns a new array with the results.

Thank you for reading, please follow me on Twitter, i regularly share content about Javascript, and React and contribute to Opensource Projects

Twitter-https://twitter.com/Diwakar_766

Github-https://github.com/DIWAKARKASHYAP
How EV Code Signing Boost Software and Application Security?
Tags: cybersecurity, developers, programming, security
Published: 2023-07-25 13:32:52

![ev-code-signing-for-software-application-security](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wkslf9m3u1m2niyttyio.jpg)
Code signing certificates provide security and integrity to the signed software or application code from unauthorized tampering and verify the identity of the publisher to be trusted from the digital signature on the code, which helps the operating system to trust them by eliminating unknown publisher warnings to users while installing them on their system.

Moreover, globally reputed Certificate Authorities (CAs) like Sectigo, Certera, etc. issue different variants of code signing certificates classified on the basis of their validation levels, such as Individual Code Signing and Organization Validation (OV) Code Signing Certificates, which offer the normal level of encryption security, whereas Extended Validation (EV) Code Signing Certificates enable the highest level of code security for the signed software and also help to boost the publisher's market reputation instantly for faster user downloads.

However, of the available code signing variants, the [EV Code Signing Certificate](https://signmycode.com/ev-code-signing) is known as the most powerful code signing certificate due to its robust security feature and some unique factors such as;

**1. Strongest Code Encryption and Authentication.**

**2. Eliminates SmartScreen Filter and Pesky System Warnings.**

**3. Time Stamping with Unlimited Digital Signing.** 

**4. Two-factor Authentication (2-FA)**

**5. HSM-based Token Security.**

**6. Compatible with Multiple Development Platforms.**

**7. Boosts User Trust.**

**8. Faster Software Downloads.**

**9. Increases Publisher's Market Reputation.**

**10. Greater Degree of Assurance.**

Continue reading through the [Importance of EV Code Signing Certificates for Software and Application Security](https://signmycode.com/blog/importance-of-ev-code-signing-certificate-for-apps-and-software-security) to discover more about the role of EV code signing certificates in software and app security.
Domain Modelling in the Cloud & AWS CDK
Tags: ddd, cloud, awscdk
Published: 2023-07-25 13:07:48


---
title: Domain Modelling in the Cloud & AWS CDK
published: true
description: Gregor Hohpe discusses Domain Driven Design in Cloud, and hits 3 important topics:
tags: DDD,cloud,awscdk
canonical_url: https://jessewarden.com/2023/07/6554.html
cover_image: 
---

Gregor Hohpe discusses [Domain Driven Design in Cloud](https://architectelevator.com/cloud/ddd-technical-domains/), and hits 3 important topics:

1. How the words you use enable design, and indicate what type of work culture you’re in, and incentives to use better words.
2. How bad and difficult it is for Cloud providers to keep a consistent language, and to what degree they’ve created a decent set of words to describe their services, and how they could do better.
3. How most people do NOT get how to use [AWS CDK](https://aws.amazon.com/cdk/).

I think 3 is the biggest take away for me. I spent way too much time trying to utilize [Dhall](https://dhall-lang.org/) to create a domain specific language for each project, and translate that to [CloudFormation](https://aws.amazon.com/cloudformation/). Instead of thinking in Lambdas and Step Functions, you would use the language of the problem we’re trying to solve; the business of getting a Client’s(1) Accounts(2) into a bunch of PDF Financial Statements(3) that we could then put into a zip file called a StatementsZIP(4) and deliver to a customer’s FTP server.

Everything was modeled. I ensured low-level details such that you could NOT screw up us-east-1 vs. us-west-2 with the compiler ensuring everything was correct. No need to “test” if you could fail over to west from east; the compiler ensured that in seconds.

Ultimately, Dhall wasn’t verbose enough nor was I Dhall ninja, but something like [TypeScript](https://www.typescriptlang.org/) or [ReScript](https://rescript-lang.org/) probably would have been better.

This idea of using Domain Modelling, not just for language, but ensuring the compiler helps you ensure your cloud application works was kind of the point of the AWS CDK. However, whether Object Oriented or Functional, many people do NOT spend a lot of time domain modelling. Thinking long and hard with the team about a function name? Sure. Great thing to do, and clearly on the path of DDD, but creating a single language that everyone agree’s to use is key. Having 4 words for a Financial Statement is frustrating, causes confusion, and leads to bugs that could have been fixed if people just agreed to use the same word for a thing.

Gregor’s article gives you a high level on the 3 problems and it’s clear open source and marketing have a hard job in continuing to show why AWS CDK enables different, and better infrastructure as code options compared to AWS SAM or Serverless Framework. I’m almost inspired to try again for my ReScript to CloudFormation compiler…

<https://architectelevator.com/cloud/ddd-technical-domains/>
Rubyist Hangout Thread
Tags: discuss, ruby, watercooler
Published: 2023-07-25 13:00:00

Hey folks, this is a weekly hangout thread.

This is an area for **Rubyists to discuss _Ruby_**, but since Ruby is 28 years old, and things don't change so quickly, this is also just **a hangout thread for Rubyists to share whatever you feel like** within our community guidelines.

So what's up this week?
How to Generate Specs Documentation from Smart Contracts using AI tool
Tags: web3, blockchain, smartcontract, ai
Published: 2023-07-25 12:50:54

If you are looking for a way to generate Specs Documentation from Smart Contracts to understand their functionality before cloning or reusing any functionality for your next project then there is a good news.

That feature already exists from today and it's called **["DECIPHER"](https://www.bunzz.dev/decipher)**

DeCipher is a GPT-based web3×AI tool capable of generating precise documentation from any Smart Contract URL on EVM Block Explorers like Etherscan.
From initial feedback by developers the level of accuracy is higher than 90%!

https://www.bunzz.dev/decipher


![decipher tool](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b0amfaiy1l3mxbu8lusm.jpg)

## How to Use DeCipher:

1. Copy the contract URL from a Block Explorer (e.g., Etherscan, BSC Scan, etc.)
2. Paste the URL into the DeCipher product page (at the above link)
3. Understand the specifications
4. Import/Edit and Deploy on any EVM network using Bunzz CLI

Apart from using Decipher at https://www.bunzz.dev/decipher you can also use it directly through a **[Chrome Extension](https://chrome.google.com/webstore/detail/bunzz-decipher/ekkgjdbkmlcaepohenggjpfadklklpaj?hl=en&auth)** in your browser, to have it always handy!

With it you can generate docs with one click while keeping the Explorer page open. You can download it here:

https://chrome.google.com/webstore/detail/bunzz-decipher/ekkgjdbkmlcaepohenggjpfadklklpaj?hl=en&auth

See below how easy and fast it is

## How to use DeCipher Chrome Extension:

1. Install the DeCipher Chrome Extension from the link above.
2. Open the page of the contract you want to document.
3. Press the “Click Here” button displayed at the bottom right of the screen.


{% youtube YIs0eRrd1W0 %}

Decipher was developed by [Bunzz](https://www.bunzz.dev/) that also developed other Dapp development tools for blockchain developers. You may check out their [Twitter](https://twitter.com/BunzzDev) for their latest updates.
Five Things Every iOS Developers Must To Know ⚡️
Published: 2023-07-25 12:27:48

- **Xcode**

![Xcode Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/66avan09l774v3voqh01.jpg)
 
Xcode is the official integrated development environment (IDE) for iOS app development. It includes everything needed to design, develop, and test iOS apps, as well as publish them to the App Store. Xcode includes features like a code editor, debugging tools, Interface Builder, and simulators.

- **Swift**

![Swift Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xrga8rq3dbnrlajh2t4v.png)

Swift is Apple’s programming language used for developing iOS apps. It is a fast and efficient language designed to work with Apple’s frameworks and APIs.

- **CocoaPods**

![CocoaPods Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kxx2fdj49kgyu0kg1liw.png)

CocoaPods is a dependency manager for iOS app development. It helps manage third-party libraries and frameworks, making it easy to integrate them into an iOS project. CocoaPods simplifies the process of adding and updating dependencies, and it includes tools for resolving version conflicts.

- **GitHub**

![Github Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kszjj0ocffp85y98gi2m.png)

GitHub is a web-based platform for version control and collaboration. It is a great tool for iOS developers who want to manage their code and work with other developers on a project. GitHub provides features like pull requests, issue tracking, and code reviews.

- **Firebase**

![Firebase Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/au0wg8omrp375xmkihaz.png)

Firebase is a mobile and web application development platform that provides a suite of tools and services for iOS app development. It includes features like authentication, real-time database, cloud storage, and analytics. Firebase helps iOS developers build high-quality apps quickly and easily.
Parse form data in node.js
Tags: javascript, node, webdev, tutorial
Published: 2023-07-25 12:04:29

So, I started learning node.js recently from the official documentation and couldn't find a way to get form data submitted from the frontend. I went through the http module up to the http.request() method where I learnt how to fetch data from an API using the .on("data") method. I tried it on my http server and it worked even though it was not totally but then , it was a relief. I kept studying the docs until I stumbled upon a module called "querystring". So, we will be using the querystring module in node.js to parse client POST data. You can check it out in the [office doc](https://nodejs.org/dist/latest-v18.x/docs/api/querystring.html) or continue reading.

Going forward, well create a simple form in html to send our post data to the backend. 

## Create form.html

```
<!-- form.html -->
<!doctype html>
<html>
<head>
    <title>Send post data to node.js</title>
</head>
<body>
    <form method="post">
         <input type="name" name="name" placeholder="Name" /><br />
         <input type="password" name="password" placeholder="Password" /><br />
        <button>Submit</button>
    </form>
</body>
</html>
```

That will be all for our html form. Next, we'll take care of our backend.

## Create server.js

```
// server.js

const http = require("http");
const fs = require("fs");
const querystring = require("querystring");

const server = http.createServer((req, res) => {
  if (req.url === "/") {

    res.writeHead(200, {
      "content-type": "text/html"
    })

    fs.readFile("form.html", "utf8", (err, html) => {
      res.end(html);
    })

    if (req.method === "POST") {
      let data = "";
      req.on("data", (chunk) => {
        data += chunk;
      })
      req.on("end", () => {
        const parsedString = querystring.parse(data);
        console.log(parsedString);
      })
    }
  }
})


server.listen(3000, () => {
  console.log("Listening");
})
```

Let's break it down.

- We use the req.on("data") to get the post data in chunks. We then append the chunk data to our data variable.
- We use the req.on("end") to check when the data is completed. The returned data looks like this -> "name=codewitgabi&password=12345";
- We use the querystring.parse() method to clean/parse the data into a JavaScript object.

You can destructure the data using object destructuring to get the name and password.

Congratulations, you just learnt how to parse post data in node.js. See the full code [here](https://github.com/codewitgabi/nodejs/tree/main/Exercise-day1)
Demystifying Zero-Knowledge Proofs: A Practical Guide with Illustrative Examples
Tags: blockchain, web3, developers, zk
Published: 2023-07-25 12:03:16

“A zero-knowledge proof is a method by which one party (the prover) can prove to another party (the verifier) that something is true, without revealing any information apart from the fact that this specific statement is true.”

In the realm of cryptography, zero knowledge Proof is a fascinating concept that allows for secure communication and authentication without revealing any underlying information. Developed in the 1980s, zero knowledge has become an essential tool in ensuring privacy and security in various applications. This article aims to provide a conceptual understanding of zero knowledge, exploring its principles and providing illustrative examples.

Read the full Tutorial here: https://www.buildbear.io/resources/guides-and-tutorials/Zero_Knowledge_Proofs
Enhance code quality and performance with ESLint
Tags: codequality, softwareengineering, productivity
Published: 2023-07-25 12:03:13

Looking to boost your code quality and enhance performance? 🚀

Check out this blog post on "Enhancing Code Quality and Performance with ESLint". 💡

🔗 Link: https: https://www.bigbinary.com/blog/enhance-code-quality-and-performance-with-eslint

In this informative blog post, you'll discover how to optimize your code, catch errors early, and improve overall code maintainability with ESLint. 💻 🔍

Don't miss this opportunity to level up your development skills! Share it with your fellow developers and let's raise the bar together! 🤝
A Comprehensive Step-by-Step Guide for Building a Flashloan Arbitrage Bot
Tags: blockchain, web3, developers, tutorial
Published: 2023-07-25 12:01:02

Flash loan arbitrage is a trading strategy that takes advantage of price disparities in the cryptocurrency market by utilizing flash loans. Unlike traditional loans, flash loans allow traders to borrow a significant amount of capital without requiring any collateral, as long as the borrowed amount is returned within a single transaction block.

Read the Full Tutorial here: https://www.buildbear.io/resources/guides-and-tutorials/Flashloan_Arbitrage_BoT
sh: 1: dotenv: not found
Published: 2023-07-25 11:57:57

When i hit below command 

**npm run demo**

i am getting bellow error however i have dotenv package installed and present in node_modules>dotenv

> project_name@1.0.0 demo
> NODE_ENV='demo' dotenv run lint && DEBUG=app nodemon --exec babel-node index.js

sh: 1: dotenv: not found

I have aws sdk with nodejs. please help me to solve this