teleren/devto huggingface dataset:
Problem With Login In Shopify Partners.
Tags: shopify
Published: 2023-03-31 12:37:22

Hello everybody
I encountered a problem that when starting the shopify app
During the launch of the application through shopify app dev, you need:
To run this command, log in to Shopify Partners.
👉 Press any key to open the login page on your browser
Can it be bypassed?
Because I tried to deploy to Versel and it won't work there?
HTML Code for Date and Time Tool
Tags: html, beginners, tooling, codereview
Published: 2023-03-31 12:34:37

```
<!DOCTYPE html>
<html>
  <head>
    <title>Current Date and Time</title>
  </head>
  <body>
    <h1>Current Date and Time</h1>
    <p>
      The current date and time is: <span id="datetime"></span>
    </p>
    <script>
      var datetimeElement = document.getElementById("datetime");
      var now = new Date();
      datetimeElement.textContent = now.toString();
    </script>
  </body>
</html>

```
HTML Code for Word Counter
Tags: wordcounter, html, webdev, beginners
Published: 2023-03-31 12:27:02

```
<!DOCTYPE html>
<html>
<head>
	<title>Word Counter</title>
	<script>
		function countWords() {
			// Get user input
			var text = document.getElementById("textInput").value;

			// Split text into array of words
			var words = text.split(/\s+/);

			// Count number of words
			var numWords = words.length;

			// Display result to user
			document.getElementById("wordCountResult").innerHTML = "Number of words: " + numWords;
		}
	</script>
</head>
<body>
	<h1>Word Counter</h1>
	<p>Enter text to count the number of words:</p>
	<textarea id="textInput" rows="10" cols="50"></textarea>
	<br><br>
	<input type="button" value="Count Words" onclick="countWords()">
	<br><br>
	<p id="wordCountResult"></p>
</body>
</html>

```
This code is developed by Zoya from ACPL Tracking. See the blog [here](https://trackacpl.in/).
Netinstall MikroTik on Linux
Tags: linux, mikrotik
Published: 2023-03-31 12:02:31

## Background

I have `RB941-2nD-TC (hAP-Lite2)` and it seem I misconfigured, so I need to reset configuration using netinstall technique.

## Requirements

- RouterOS base on your router architecture (in my case is **SMIPS**).
- Netinstall (CLI Linux).
- Plug out router from powerline.

Download all requirements files from https://mikrotik.com/download, and select **RouterOS** version (in my case is **RouterOS v6**).

## Setup

### Files

Extract all files to single folder, so we can work with the files easily.

### Disable Internet Interface

Disable all internet interface such as WiFi, and only leaving with Ethernet.

### IP Static

Using `ip` command.

```bash
sudo ip addr add 192.168.88.2/24 dev <interface>; sudo ip link set dev <interface> up
```

Using `ifconfig` command.

```bash
sudo ifconfig <interface> 192.168.88.2/24 up
```

Where `<interface>` is your ethernet interface name, you can print list ethernet interface using `netstat -i`, something like `eth*` or `enp0s*` is your interface.

### IP Gateway

Using `route` command.

```bash
sudo route add default gw 192.168.88.1 <interface>
```

### Check IP

Using `route` command to check if we success to setup IP.

```bash
route -n
```

It will print something like this.

```
Kernel IP routing table
Destination     Gateway         Genmask          Flags  Metric  Ref  Use  Iface
0.0.0.0         192.168.88.1    0.0.0.0          UG     0       0      0  enp0s25
192.168.88.0    0.0.0.0         255.255.255.0    U      0       0      0  enp0s25
```

### Netinstall

Run `netinstall` with `sudo`.

```bash
sudo ./netinstall -r -a 192.168.88.1 <routeros>
```

- Plug ethernet cable from PC to router.
- Press reset button on router.
- Plug router to powerline.

## Result

My netinstall result.

![Netinstall Mikrotik on Linux](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qkavjeczh6gg8e3be3xi.png)

## Known Issues

- ### Only Show PXE client

  Disable all interface except ethernet.

- ### FAILED TO REPLY

  Make sure you set IP gateway.

- ### Using server IP: 0.0.0.0

  Make sure you plug out router from powerline before you run netinstall.

## References

- https://blog.webiptek.com/2021/01/tutorial-netinstall-mikrotik-di-linux.html
Thinking like a computer
Tags: productivity, motivation, algorithms
Published: 2023-03-31 12:01:41

I did not fully understand the impact of learning algorithms until I watched [a TEDx talk by Tom Griffiths](https://www.ted.com/talks/tom_griffiths_3_ways_to_make_better_decisions_by_thinking_like_a_computer?utm_campaign=tedspread&utm_medium=referral&utm_source=tedcomshare). Tom nails how knowledge of algorithms can help you in your day-to-day decision making. This blew my mind. It has changed how I make decisions, by thinking like a computer. I should probably read the book too. Algorithms to Live By.
I have copied a few of my websites the same.
Published: 2023-03-31 11:53:38

I have copied a few of my websites the same.
Does that affect google's algorithms?
Please help me for reference: [ghe massage](https://kyotoluxury.com/category/ghe-massage), [ghe massage gia re](https://kyotoluxury.com/category/ghe-massage/Ghe-massage-gia-re), [ghe massage tai nha](https://kyotoluxury.com/category/ghe-massage/ghe-massage-tai-nha), [ghe massage tri lieu](https://kyotoluxury.com/category/ghe-massage/ghe-massage-tri-lieu)
23 berufliches Vorwärtskommen: Ein gerader Berufsweg - Wohin ein guter Start dich führen kann.
Tags: deutsch, career, austausch, 1min
Published: 2023-03-31 11:53:00

Moin Moin,

“well begun, is half done”. Ein guter Start sei also die halbe Miete, so die Englischsprachigen. Ein Beispiel bei dem man dies gut sehen kann, denke ich, ist Donald E. Knuth.
Kurzprofil:
- emeritierter ( in den Ruhestand versetzter ) Professor an der Stanford University, USA
- [Autor vieler Bücher↗](https://www.goodreads.com/author/list/64941.Donald_Ervin_Knuth), u.a. _The Art of Computer Programming_
- Urheber von TeX ( auf dem LaTeX gegründet ist )
- 1974 erhielt er den Turing Award

Seine Anfänge:
Er erzählt, dass er bereits im Alter von zwei Jahren als Bücherwurm in seiner kleinen Ortschaft bekannt war. Seine Eltern hatten ihn früh mit Büchern in Kontakt gebracht. Seine Lehrer, so sagte er, haben ihm und seiner Klasse die englische Sprache auf hohem Niveau beibringen können, sonst nicht viel. Gemeinsam mit einigen Freunden fing er in der sechsten Klasse an, eine Zeitschrift herauszubringen – ”The News Weak” ( Schreibung tatsächlich we_a_k statt we_e_k ).

Kannst du einen Zusammenhang zwischen seiner Frühkindlichenbildung und seinen beruflichen Errungenschaften erkennen?

[Ein Fragegespräch mit Donald E. Knuth↗](https://www.youtube.com/watch?v=yOG38GpItpk&list=PLVV0r6CmEsFzeNLngr1JqyQki3wdoGrCn)

Schau dir unbedingt [Teil 22→](https://dev.to/amustafa16421/22-berufliches-vorwartskommen-ein-gerader-berufsweg-der-anfang-552f) an, falls du dich fragst, wie du ab jetzt gut starten kannst. Es ist möglich.

Beste Grüße,
Mustafa
Building a tool that lets you deploy any existing API as a ChatGPT Plugin
Tags: chatgpt
Published: 2023-03-31 11:38:03

Hello everyone 👋🏼,
Since the announcement of ChatGPT plugins last week I have been thinking about what will be required to convert existing APIs into an LLM Plugin - I guess ChatGPT is only the first LLM that will offer these, all emerging ones and competitors like Bard will follow this plugin approach. 

I can imagine it will become a hassle to build the required API specifications (OpenAPI), manage different API versions deployed over multiple LLMs, and implement necessary monitoring and security features. 

So I partnered up with 2 friends of mine and we have started building a tool that aims to make the deployment of plugins extremely easy and automatically adds user monitoring and security features on top: https://security.dev

Would love to hear your thoughts and feedback on this.
اللهُمَّ صَـلِّ وَسَلِمْ عَلَى نَبِينا مُـحَـمَّـدٍ وَعَلى آلِـهِ وَصَـحْـبِـهِ أجمَـعِـيْـن
Published: 2023-03-31 11:25:18

****
A step by step guide to processing PDF files using Amazon Comprehend for IDP
Published: 2023-03-31 11:20:10

## Intro

One of the new service features that was announced at the AWS re:Invent 2022 is the intelligent document processing (IDP) capability of Amazon Comprehend which allows it to process semi-structured files such as PDFs. This article seeks to provide a step-by-step demonstration of the process. The use case we adopt is that of automating legal contracts which involves extracting key phrases from a pdf document and use that as a guide to prepare a favourable negotiation.

## Demo

1. Log on to the AWS console and create an s3 bucket to hold the documents you want to process. We recommend that you create two separate folders within the s3 bucket,one of which is to store the input documents awaiting processing, while the other will be used to store the output of the API call to Amazon Comprehend. Note the region in which the s3 bucket is located.
2. Access the Amazon Comprehend service at https://console.aws.amazon.com/comprehend/ and select the region where you situated your s3 bucket. This is important as the two services would not communicate if not located in the same region. 
3. After clicking on "Launch Amazon Comprehend," choose "Analysis jobs," on the left pane, then select "Create job."

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vocpxq4shwzdpa2th1qw.png)
4. Under "Analysis types" click "Key phrases."

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mdc6iiybrv7j2zfo7bfd.png)
Enter the paths to the input and output folders already created in your s3 bucket in the appropriate fields.
5. Under "Access permissions," choose "Create an IAM role," then add a suitable name suffix.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mx7sxvrimyx2y6lzmk50.png)
6. Click "Create job."
8. The completed job should look like this:

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tv6mj1eqykxyftv3a3aj.png)
7. To download the output file, navigate to the output folder in your s3 bucket. You will need to extract the file and resave it in json format.

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

## Winding up

I hope this has been a useful piece. Watch out for more interesting contents AWS and DevOps coming your way soon. Happy clouding!
Semantic HTML
Tags: webdev, html
Published: 2023-03-22 02:10:20

Hey! Today I want to talk to you about **Semantic HTML**, an important technique for web development that is rarely given the importance it deserves.

Semantic HTML is a technique of writing HTML code that uses **appropriate tags for each content**, giving it a clear and structured semantic meaning. Instead of using meaningless tags or giving the same meaning to different tags, you should use a specific tag for each piece of content.

Some of the most common semantic HTML tags are:

- `<header>` Used to represent the **header** of a web page or section of content.
- `<nav>` Used to represent a **navigation section** within a web page.
- `<main>` It is used to represent the **main content** of a web page.
- `<section>` Used to **group related content together**.
- `<article>` Used to represent an **article or standalone piece of content**.
- `<aside>` Used to represent **secondary content, such as a sidebar**.
- `<footer>` It is used to represent the **footer** of a web page.

The use of semantic HTML is important for several reasons. First of all, it **improves the accessibility** of the website for people with visual or hearing disabilities. This is because semantic tags provide additional information to screen readers, making the content easier to understand.

Second, semantic HTML can also help **improve search engine positioning**. Search engines can better understand the structure and content of the web page, which can result in better positioning in search results.

Another benefit of semantic HTML is that it makes it easier to maintain and update the web page. **A clear and well-defined structure makes it easier to understand and modify the HTML code**. Also, by using semantic tags, a precise meaning can be given to content, which helps prevent style and design issues.

---

To conclude with the post, here is an example of how semantic HTML can be used in the structure of a web page:

```
<!DOCTYPE html>
<html>
<head>
	<title>Semantic HTML Example</title>
</head>
<body>
	<header>
		<h1>Website Title</h1>
		<nav>
			<ul>
				<li><a href="#">Home</a></li>
				<li><a href="#">About</a></li>
				<li><a href="#">Contact</a></li>
			</ul>
		</nav>
	</header>

	<main>
		<section>
			<h2>Main section</h2>
			<p>This is the main content of the web page.</p>
			<article>
				<h3>Article 1</h3>
				<p>This is the content of the first article.</p>
			</article>
			<article>
				<h3>Article 2</h3>
				<p>This is the content of the second article.</p>
			</article>
		</section>

		<aside>
			<h3>Sidebar</h3>
			<p>This is the content of the sidebar.</p>
		</aside>
	</main>

	<footer>
		<p>Copyright © 2023 Website Title</p>
	</footer>
</body>
</html>
```

In summary, the use of semantic HTML is a recommended practice to improve the **accessibility**, the **positioning** in search engines and the **maintainability** of a web page. I hope this information is useful to you and helps you improve your web development skills.
small-swoole-db 0.2.2
Tags: php, swoole, showdev, opensource
Published: 2023-03-31 11:08:47

small-swoole-db 0.2.2 has been released

This package prodive advanced features to manipulate OpenSwoole\Table memory database.

It provide 
- a table registry
- possibility to save table creation and table data to disk
- foreign keys for faster data request between tables
- a selector for complex data requests

Framagit repository : https://framagit.org/small/small-swoole-db

Composer package : https://packagist.org/packages/small/swoole-db
🔍🚀 How to Debug Serverless Applications with Node.js 🐘🚀🔍
Tags: serverless, node, aws, cloud
Published: 2023-03-31 11:05:06


Debugging serverless applications can be challenging, but with Node.js, it can be made easier. Here are some tips for debugging your serverless applications using Node.js:

**🔧 Use console.log statements:** Adding console.log statements to your code can help you identify where your code is failing. These statements will print out in your CloudWatch logs, which you can access in your AWS account.

**📈 Utilize CloudWatch Metrics:** You can monitor the performance of your serverless application using CloudWatch Metrics. These metrics can help you identify where your application is experiencing issues.

**🐛 Use a Debugger:** Node.js comes with a built-in debugger that allows you to pause and step through your code. You can use this tool to identify where your application is failing and debug it accordingly.

**🧪 Use a Local Environment:** Setting up a local environment for testing can help you identify issues before deploying to your production environment. You can use tools like AWS SAM or Serverless Framework to set up a local environment for testing.

**📝 Write Tests:** Writing tests for your code can help you identify issues before they occur in your production environment. You can use testing frameworks like Jest or Mocha to write tests for your serverless application.

**🔎 Example:** Let's say you have a Lambda function that is failing to execute. You can add console.log statements to your code and deploy it to AWS. You can then check the CloudWatch logs for your Lambda function and see where the code is failing. You can also use the Node.js debugger to step through your code and identify where the issue is occurring.

Debugging serverless applications with Node.js may seem daunting, but with these tips and tools, you can quickly identify and resolve issues in your application. 




Happy debugging! 🚀👨‍💻🐛
HTML CSS PROJECT #2
Published: 2023-03-31 11:02:53

Hello everyone!

The second mini Project using HTML and CSS from [FRONT END MENTOR](https://www.frontendmentor.io/profile/MCKH03)!

I used only **HTML** and **CSS** in this one

I would like your feedback on them!

Here is **MY CODE**:
https://www.frontendmentor.io/solutions/product-preview-card-component-kC-FYRIM-M

My **GITHUB**:
https://github.com/MCKH03

The related **REPOSITORY**: 
https://github.com/MCKH03/FEM-Product-Preview-Card-Component

My **TWITTER**: 
https://twitter.com/ytmehrshad

My **LINKEDIN**:
https://www.linkedin.com/in/mehrshad-cheshm-khavari-992962270/

We can find each other on social media!
The Benefits of Learning a New Programming Language
Published: 2023-03-31 11:01:13


Are you looking to step up your programming skills? Learning a new language can be a great way to do it. Not only can it open up new opportunities, but it can also give you a better understanding of how programming works. Here are some of the key benefits of learning a new programming language. 

1. Broaden Your Knowledge and Skills - By learning a new language, you become more versatile. You can develop a better understanding of how different programming languages work and how to apply them to different projects. This can help you become a better programmer overall. 

2. Enhance Your Problem-Solving Capabilities - Knowing more than one language can help you solve [complex problems](https://rocketmodapk.com/). You can use the features of different languages to develop more efficient solutions. That way, you can tackle challenging tasks more easily and effectively. 

3. Increase Your Salary Potential - Having more skills makes you more valuable. Especially if you want to enter a new field, learning a new language can give you an edge. This can help you increase your salary potential significantly.

4. Stay Relevant - Programming languages are constantly changing, and it can be hard to keep up. Learning a new language
HTML CSS PROJECT #1
Tags: css, html, resume, programming
Published: 2023-03-31 10:57:29

Hello there!

This is my first HTML and CSS project from the GREAT [FRONT END MENTOR](https://www.frontendmentor.io/profile/MCKH03)!

I used **HTML **and **CSS **in this project.

This is the SOLUTION****: https://www.frontendmentor.io/solutions/1resultssummarycomponent-96VgBIqqeM

My **GITHUB**: 
https://github.com/MCKH03

The related Repository: 
https://github.com/MCKH03/FEM-Result-Component

My **TWITTER**: 
https://twitter.com/ytmehrshad

My **LINKEDIN**: 
https://www.linkedin.com/in/mehrshad-cheshm-khavari-992962270/
Let's START!
Tags: html, css, responsive, resume
Published: 2023-03-31 10:53:15

Hi everybody!

I'm **Mehrshad Cheshm Khavari** and 19 years old. I want to **have my own bussines in the future ...**

In this post I want to put my **GITHUB **and **[FRONTEND MENTOR](https://www.frontendmentor.io/profile/MCKH03)** profile.
Also I will put some of my social media accounts so that we can have each other!

My **GITHUB**: https://github.com/MCKH03

My **TWITTER**: https://twitter.com/ytmehrshad

My **LINKEDIN**: https://www.linkedin.com/in/mehrshad-cheshm-khavari-992962270/
AttributeError: 'Depends' object has no attribute 'get' FastAPI
Tags: python, fastapi
Published: 2023-03-31 10:19:20

While working with `FastAPI` I've faced a problem about the above mention error. Though it is quite common but I didn't face it before.

My use case is, I put a dependency injection which works perfectly fine within endpoint functions (the ones with `@app.post/@app.get` decorators), but somehow doesn't work within plain functions.

My code block has given below,
```
async def get_client():
    async with AsyncClient() as client:
        yield client
```

```
async def get_third_party_result(client=Depends(get_client)):
    ...
    await client.get(url)
```

In summary what have I found denoted below. The actual link is [here](https://github.com/tiangolo/fastapi/issues/1693#issuecomment-665833384).

> you can't use Depends in your own functions, it has to be in FastAPI functions, mainly routes. You can, however, use Depends in your own functions when that function is also a dependency, so could can have a chain of functions.
> Eg, a route uses Depends to resolve a 'getcurrentuser', which also uses Depends to resolve 'getdb', and the whole chain will be resolved. But if you then call 'getcurrentuser' without using Depends, it won't be able to resolve 'getdb'.
> What I do is get the DB session from the route and then pass it down through every layer and function. I believe this is also better design.


For my purpose, anyway I need to test it explicitly. Thus to get rid of it, I prepare another method to get the result of actual function.

```
async def hello():
   async with httpx.AsyncClient() as client:
     return await get_third_party_result(client=client)
```

And run it as,
```
import asyncio

asyncio.run(hello())
```

Now I get proper result for further testing. 
**Thanks for your reading.**
Generate Rules to Host in Round-robin Order
Published: 2023-03-31 10:39:13

**Problem:** When set up elastalert in many nodes, you want to generate rules per node following round-robin order.
Suppose you have 3 nodes: [elastalert01, elastalert02, elastalert03]
And 5 rules: [r1, r2, r3, r4, r5].
We need to generate rules to hosts as following order:
elastalert01: r1, r4
elastalert02: r2, r5
elastalert03: r3

This method will help you to do this requirement. 
But please think why we need to use LinkedLists for rules instead of List?

`public class Utils {

    public static Map<String, List<String>> generateHostRulesMap(List<String> hosts, LinkedList<String> rules) {
        Map<String, List<String>> hostRulesMap = new HashMap<>();
        while(!rules.isEmpty()) {
            for (String host : hosts) {
               List<String> rulesPerHost = new ArrayList<>();
               if (hostRulesMap.containsKey(host)) {
                   rulesPerHost = hostRulesMap.get(host);
               }
               if (!rules.isEmpty()) {
                   rulesPerHost.add(rules.getFirst());
                   rules.removeFirst();
                   hostRulesMap.put(host, rulesPerHost);
               }
            }
        }
        return hostRulesMap;
    }
}
`
Input Events - Safari
Tags: input, events, time, safari
Published: 2023-03-31 10:35:02

Hello,
I am writing form dialog and
I need to after choose time in input (type="time") control and click on Done button skip to another form control, but I cannot find event which fire after click on Done button...

On change event it is not comfortable for me beacuse if i want select hours and minutes after hour select event fire and also after minutes select 'onchange' event fire...

Exists for this problem some event which is fire after click on buttons in time dialog on safari browser.

Thank you for your help.
Avail the best Decentralized Finance Exchange Development Services
Tags: dex, defiexchange
Published: 2023-03-31 10:34:54

Decentralized finance exchange software solutions have several business benefits. Many entrepreneurs would want to set up a decentralized finance exchange just to facilitate their end-users to enjoy seamless, secure and cheaper transactions. Are you looking for the best decentralized finance exchange development services? If so, Antier has the best solutions to offer. You may choose their:
-          Decentralized finance exchange script
-          On-demand decentralized finance exchange development services
Discuss the pros and cons of developing the decentralized exchange platform with the aforementioned solutions and let seasoned subject matter experts suggest you best one as per your business goals.
https://www.antiersolutions.com/decentralized-Exchange-Development/

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7zqw5a90uhimwloeun80.jpg)