teleren/devto huggingface dataset:
How to change the WordPress admin login URL
Tags: wordpress, webdev, tutorial, beginners
Published: 2022-07-28 14:46:28

Hello people, hope you are doing great, welcome to **WordPress Tips and Tricks** series. this will be the first post for this series.

You might be wondering what if someone else has access to my WordPress site admin panel and how you can change the WordPress admin login URL? 

Don't worry, today in this article I will provide you step by step guide on changing the WordPress admin login URL.

So let's get started.

## Login into the WordPress dashboard

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1658848432710/8hV5YGaru.png)

## Install the plugin

From the left panel click on **Plugins**, then click on **Add new** and It will take you to the **Add Plugins** page. 

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1658848789273/qIINKz6RG.png)

Now Search for **WPS hide login** and click on the **install** button to install the plugin.

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1658848934463/DNrj5Sf6U.png)

After Installation is done, click on the **Activate** button to activate the plugin.

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1658848971890/6d7ZnP1L5.png)

## Configure the plugin

From the left panel click on **Settings**, then click on **WPS Hide Login** and It will take you to the **WPS Hide Login** section on the settings page.

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1658849414938/rCMwmUQc_.png)

In the **WPS Hide Login** section you will have two options one is for **Login url** and the second one is for **Redirection url**.

Change the login URL as per your need.
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1658849600445/dnEoA7okr.png)

In the redirect URL, you can give the custom 404-page URL. So if some user tries to access a page that does not exist or they don't have sufficient permission to access that page then they will be redirected to the given URL.

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1658849664125/fN5-eHRaI.png)

And that’s it for this topic. Thank you for reading.

## Connect with me
[LinkedIn](https://www.linkedin.com/in/sachin-chaurasiya) | [Twitter](https://twitter.com/sachindotcom)
Fix: Svelte Devtools on Chrome/Brave
Tags: svelte, devtools, chrome, brave
Published: 2022-07-28 14:44:32

สืบเนื่องมาจาก Official Svelte Devtools ไม่ยอมทำงานบน Chrome และ Brave เลยค้นหาดูพบว่ามันเป็น Bug และทางต้นน้ำก็ไม่มี update มาปีกว่าแล้ว มีคน  PR เข้าไปแก้ง่าย ๆ แค่หนึงบรรทัดเลยลองทำตามดูก็กลับมาทำงานได้ ใครประสบปัญหาอยู่ก็ลองทำดูได้ครับ ขั้นตอนดังนี้

## Git Clone

```
git clone https://github.com/sveltejs/svelte-devtools.git
```

## Edit

หลังจากนั้นให้แก้ไข `dest/devtools/index.js` โดยการลบ `/` บรรทัดที่ 6 ออก

```
- '/devtools/panel.html',
+ 'devtools/panel.html',
```
## Install

ให้ลบของเก่าออกแล้วทำการติดตั้งแบบ `Load Unpacked` 


![Chrome Extension installation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ja7wbopv34m412j8qpd5.png)

หลังจากนั้นก็จะปรากฎ Extension ดังนี้


![Chrome Extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r6a7sqqj4t2vskjmij7h.png)

## Use

หลังจากนั้นก็สามารถใช้งานได้ตามปกติแล้ว


![Svelte Devtools](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ppu6jgz9cxs6xjsu5vtk.png)

ต้นฉบับ:

https://github.com/sveltejs/svelte-devtools/pull/78
Currying in javascript(🔖)
Tags: javascript, beginners, tutorial, webdev
Published: 2022-07-28 11:58:46

As we were learning before, **functions in javascript** are

- Treated as sub-programs (execution context)
- First class objects (they have methods & properties)

Currying is basically:
**function (a,b,c) --> function (a)(b)(c)**
<br/>
## 1. Currying using closures👇
```javascript
function mix(f) { //closure, f is batter here

  return function(a) {
  
    return function(b) {
        
      return f(a, b);
    };
  };
}

function batter(a, b) {
  return a + b;
}
cook=mix(batter)
console.log(cook('flour ')('banana puree'));
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4sa6fpe8wu1n4e3t1z8r.png)
<br/>
## 2. Currying using function methods- bind()👇

As we have discussed before, `bind()` is function method used to get a function copy to be used with fixed arguments or `this` reference.

```javascript
function multiply(a , b){
    console.log(a)
    console.log(b)
    return a*b
}

getTwice=multiply.bind(this, 2)
console.log(getTwice(7))
``` 

We can change the number but getTwice will have `a=2` **fixed**.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q2n0d0az57bkqftea025.png)
 

**Currying requires the function to have a fixed number of arguments.**

>⭐Read about [functional programming concepts here.](https://www.telerik.com/blogs/functional-programming-javascript) 
I just had to link this one:
⭐[Closures, currying & functions in js](https://codeburst.io/callbacks-closures-and-currying-3cc14300686a)
PM or PO working with Kafka?
Tags: kafka, product, data
Published: 2022-07-28 14:39:29

Hi 👋

I'm looking for a Technial Product Owner and Techincal Product Manager who have deep experience working with Apache Kafka (ideally in SaaS). 

If this you, let me know tim@productheads.io 

Feel free to suggest colleagues and friends as well! 
🙏🏽
Bought something online yet wish you thought about your finances? Well, I have an idea (that eventually involves Data Unions)...
Tags: webdev, showdev, startup, web3
Published: 2022-07-28 14:37:59

Title says it all!

I did some reflection recently and noticed **I honestly buy things because I'm down and want a pick-me-up.** Does anyone else do this too? I posted about this on [Reddit](https://www.reddit.com/r/DoesAnybodyElse/comments/w9sdjy/dae_buy_things_out_of_impulse_for_the_dopamine_hit/) and saw I wasn't alone

**So, question is what to do about it?** In short, I built a free Chrome Extension that focuses on goal-based budgeting. It visualizes your wealth and help you save for your future goals; it helps avoid the impulse buys since it's integrated into the browser, when I need it. Eventually, I'd love to turn this into a Data Union ala Swash (ideally with greater payout since we have more contextual data per user)

**We have an MVP out, and I'd love if you, highly skilled Dev user, wouldn't mind taking a quick look!** Tear it apart, let me know why it sucks, I want the feedback! You can try it out [here](https://chrome.google.com/webstore/detail/okane-extension/ikgfgnpbdijmelnkgeeaoagankihlkba/related?hl=en-US) or learn more at our [landing page](https://okane.crd.co/).

We also have a high-level demo below:
{% embed https://www.youtube.com/watch?v=Pz75Qp2s0LQ %}

Comment your thoughts below! Appreciate ya
Shopify customer to a new contact in MS Dynamics
Tags: dynamics365, integration, shopify, tutorial
Published: 2022-09-13 12:03:40

---
title: Shopify customer to a new contact in MS Dynamics
published: true
date: 2022-07-28 14:22:27 UTC
tags: dynamics365, integration, shopify, tutorial
canonical_url: https://tech.forums.softwareag.com/t/shopify-customer-to-a-new-contact-in-ms-dynamics/259594
---


_products versions - [webMethods.io](http://webMethods.io) 10.11_

## Introduction

This article describes the step-by-step process of creating a new contact in MS Dynamics on creation of a new customer in Shopify.

## Use Case

You are using Shopify as your front end store and MS Dynamics as your CRM system. This example showcases how you can automatically create a new contact on your MS Dynamics CRM system when a new customer is created on your Shopify front end store.

## Pre-requisite

- The user needs to have working Shopify Account

- A working MS Dynamics Account

- Working [webMethods.io](http://webmethods.io/) Integration cloud tenant.

## Steps to follow

1. Login to [webMethods.io](http://webMethods.io) Integration tenant.
2. Create a new project or choose an existing project.
3. Click on Import icon on the top right corner to import the workflow into your project.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/b/d/bd538c299fc2bc8206d5648b1f9fcdaca3b8d5d5_2_690x261.png)
4. Select the archive file “ShopifyCustomer\_MSDynamicsContact.zip” shared in the article.
5. The workflow name and description are preloaded.  
6. Add the account information or MS Dynamics
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/c/1/c112423e4655b37b27480cb5acfc1c08810b361d.png)
7. Add the Shopify account information
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/d/a/dad590f85fdcdb1d9be51612a58e3b48a7e05e63_2_690x249.png)
8. Click on “Import” to import the workflow into your project  
9. The workflow is imported successfully, enabled and ready to use  
10. Review the mappings and test the workflow  
11. You can login to your Shopify account create a customer and test the end to end flow.

## Next steps

Do you want to send a welcome email to a contact newly created in MS Dynamics check this post on the same. [Welcome Email to a new Contact on Microsoft Dynamics](https://tech.forums.softwareag.com/t/welcome-email-to-a-new-contact-on-microsoft-dynamics/259596)

## Useful links | Relevant resources

[ShopifyCustomer\_MSDynamicsContact.zip](https://tech.forums.softwareag.com/uploads/short-url/bdtvGpQpeWbv7cmsWfoowDopVO7.zip) (221.2 KB)

[Read full topic](https://tech.forums.softwareag.com/t/shopify-customer-to-a-new-contact-in-ms-dynamics/259594)
Clean code tip: use the same name for the same concept
Tags: cleancode
Published: 2022-07-28 14:11:18

---
title: Clean code tip: use the same name for the same concept
published: true
tags: cleancode
series: Clean code tips
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6jx6drdomftukxk7jbpt.jpg
canonical_url: https://www.code4it.dev/cleancodetips/use-same-name-for-same-concept
---

As I always say, naming things is hard. We've already talked about this in [a previous article](./choose-meaningful-names "How to choose meaningful names tip on Code4IT").

By creating a **simple and coherent dictionary**, your classes will have better names because you are representing the same idea with the same name. This improves code readability and searchability. Also, by simply looking at the names of your classes you can grasp the meaning of them.

Say that we have 3 objects that perform similar operations: they download some content from external sources.

```cs
class YouTubeDownloader {    }

class TwitterDownloadManager {    }

class FacebookDownloadHandler {    }
```

Here we are using 3 words to use the same concept: *Downloader*, *DownloadManager*, *DownloadHandler*. Why??

So, if you want to see similar classes, you can't even search for "Downloader" on your IDE.

**The solution? Use the same name to indicate the same concept!**

```cs
class YouTubeDownloader {    }

class TwitterDownloader {    }

class FacebookDownloader {    }
```

It's as simple as that! Just a small change can drastically improve the readability and usability of your code!

So, consider also this small kind of issue when reviewing PRs.

## Conclusion

A common dictionary helps to understand the code without misunderstandings. Of course, this tip does not refer only to class names, but to variables too. Avoid using synonyms for objects (eg: *video* and *clip*). Instead of synonyms, use more specific names (_YouTubeVideo_ instead of _Video_).

Any other ideas?

👉 Let's discuss it [on Twitter](https://twitter.com/BelloneDavide/) or on the comment section below!

🐧 Previously seen on [Code4IT](https://www.code4it.dev/cleancodetips/use-same-name-for-same-concept) 🐧
Python: open().read()->str , but for big files
Tags: python, chunking, tutorial, quickref
Published: 2022-07-28 13:56:17

---
title: Python: open().read()->str , but for big files
published: true
description: Sometimes the lib you use just wants a string... but you want a really big string. Here's how to chunk
tags: python, chunking, tutorial, quickref
cover_image: https://live.staticflickr.com/8181/8045416727_8ff7f8cfe7_c.jpg
# Use a ratio of 100:42 for best results.
---

<small>[Image](https://www.flickr.com/photos/ducakedhare/8045416727/) (C) Tai Kedzierski</small>

We just had a use case where we needed to POST a file over to a server. The naive implementation for posting with `requests` is to do

```python
with open("my_file.bin", 'rb') as fh:
    requests.post(url, data={"bytes": fh.read()})
```

Job done! Well. If the file is _reeeally_ big, that `.read()` operation will attempt to load the entire file into memory, _before_ passing the loaded bytes to `requests.post(...)`

Clearly, this is going to hurt. A lot.

## Use `mmap`

A quick search [yielded a solution][so-mmap] using `mmap` to create a "memory mapped" object, which would behave like a string, whilst being backed by a file that only gets read in chunks as needed.

As ever, I like making things re-usable, and easy to slot-in. I adapted the example into a contextual object that can be used in-place of a normal call to `open()`

```python
# It's a tiny snippet, but go on.
# Delviered to You under MIT Expat License, aka "Do what you want"
# I'm not even fussy about attribution.

import mmap

class StringyFileReader:

    def __init__(self, file_name, mode):
        if mode not in ("r", "rb"):
            raise ValueError(f"Invalid mode '{mode}'. Only read-modes are supported")

        self._fh = open(file_name, mode)
        # A file size of 0 means "whatever the size of the file actually is" on non-Windows
        # On Windows, you'll need to obtain the actual size, though
        fsize = 0
        self._mmap = mmap.mmap(self._fh.fileno(), fsize, access=mmap.ACCESS_READ)


    def __enter__(self):
        return self


    def read(self):
        return self._mmap


    def __exit__(self, *args):
        self._mmap.close()
        self._fh.close()
```

Which then lets us simply tweak the original naive example to:

```python
with StringyFileReader("my_file.bin", 'rb') as fh:
    requests.post(url, data={"bytes": fh.read()})
```

Job. Done.

EDIT: we've discovered through further use that `requests` is pretty stupid. It sill tries to read _the entire file_ into memory - possibly by doing a copy of the "string" it receives during one of its internal operations. So this solution seems to only stand in limited cases...

[so-mmap]: https://stackoverflow.com/questions/2502596/python-http-post-a-large-file-with-streaming
3D Drawing on 2D Canvas
Tags: codepen, webdev, javascript, showdev
Published: 2022-07-28 13:42:00

A demonstration of creating and projecting a 3D space onto a 2D canvas.

{% codepen https://codepen.io/brookesb91/pen/wvmqXMe %}

## Controls

  - `w`: move forwards
  - `s`: move backwards
  - `a`: rotate left
  - `d`: rotate right
  - `z`: move up
  - `x`: move down
  - `q`: strafe left
  - `e`: strafe right
  - `o`: pitch up
  - `p`: pitch down
How do you verify an email for sign-up ?
Tags: node, javascript, security, authentication
Published: 2022-07-28 13:33:00

Hi folks, 
I hope you are doing well !

Please let me know what do you think about this ?! because I already implemented a basic verification mechanism.

So this was my response to someone asking for the same question:

I came across a Reddit post where one explained that one click on the link is not sufficient and might lead to errors and a failure of the verification. The logic is simple and legit, when the email containing the link is received, there might be link scanners (bots) on the SMTP server (Outlook, Gmail etc). Just like when you past a link on major social platforms, there is always a bot that hits the link. I did not try it myself but I believe Outlook scans some links (when you copy past a link it is converted to a thumbnail with page's content). So this process oblige you to do a verification by two steps, and I personally think of these two methods:

1. Maybe when the user clicks, he needs to past his own password used for sign-up (looks fine). 
2. Or provide a one time password with the email so that the user along with the verification link (maybe split then re-concat) the same token you send for verification and ask the user to enter that second part (this seems easier).

Thanks !
Goal animation
Tags: codepen, css, animation, html
Published: 2022-07-28 13:29:00

<p>Simple way to animate a football ball. Use <a href="https://cssgradient.io/" target="_blank">https://cssgradient.io/</a> to generate gradients!</p>

{% codepen https://codepen.io/baarbaracrr/pen/wvmrpGV %}
As a Interviewer what question you ask a dev while taking interview for react.js?
Tags: help, discuss, react, javascript
Published: 2022-07-28 13:28:45

**Context:** For 3+ year experience.

I have to talk interviews of candidates for the position of frontend and React.js positions, every time I use to do is prepare question before hand by looking at candidates resume or If not prepared then ask from my experience.

I have a question to all the developers/interviewers that what they ask when taking interviews for React.js, JavaScript or for frontend engineers.[No DS/Algo rounds].

Do you guys have any cheat sheet and can share that will be very helpful.

I recently have given interviews myself and some companies ask to code in react while sharing screen (like: make a tic tac toe game) which I found really interesting and doable within 45min - 1hr.

Please do share your thoughts.


Thanks.
What is an AI writing assistant?
Published: 2022-07-28 13:24:00

An AI writing assistant is a computer program that helps you write articles by suggesting ideas and organizing your thoughts.

The AI writing assistant I use the most is called CopyAi and it has helped me write articles much faster and with better quality.

copyAi uses artificial intelligence to understand what you are trying to say and then suggests ideas and words use in your article.

For example, if I am writing an article about the benefits of exercise, CopyAi will suggest ideas and words related to exercise, such as "health", "fitness", "workout", and "gym".

CopyAi is constantly learning and improving, so it gets better at suggesting ideas and words the more you use it.

## Is there a free AI writer?

There are a [few AI writing assistants that are available for free](https://www.linkedin.com/pulse/top-10-best-free-ai-content-generator-tools-2022-eric-darnell/), such as CopyAi and QuillBot.
What is an API?
Tags: api, javascript, html
Published: 2022-07-28 13:21:00

Let us make this simple with a basic example. When you are hungry and not in a mood of preparing food. So we go to a restaurant or browse any food delivery apps.

Let us assume you opened zomato and browsed biriyani from some restaurant and you got your food. Here restaurant is the 'system' that will prepare your food.

What is missing here???

It is the critical link to communicate your order to the restaurant and deliver food back to your table. That's where the **platform/medium of communication** or API comes into play. Here it is ZOMATO app.

The app takes the request/order from you, delivers/send request to the restaurant and deliver back the response/food from the restaurant to you.

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

**APPLICATION PROGRAMMING INTERFACE** which is known as API is a software intermediary that allows two applications to talk to each other.

When you use an application on your device, it connects to internet and sends request to the server. Server retrieves that request, interprets it, performs the necessary actions and sends it back to your phone. Then the application interprets that data received and displays it to you in a beautiful/readable way. All of this happens through API.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dspukkjptdqr1kf43mpc.jpeg)

comment down your opinions on "Do API's are really necessary? "
Is the performance of a library written by c or c++ for php different from the same library written by php for php?
Tags: php, c, cpp, performance
Published: 2022-07-28 13:16:00

Hello !

my question is: Is the performance of a library written by c or c++ for php different from the same library written by php for php?

For example, if the PDO library is created by the php language itself, is the performance between the program and the database the same??

I will be grateful if my friends help me to reach the result.
Please write the reference link of your message
Using GitHub with Visual Studio Code - The Easy Way!
Tags: webdev, beginners, github, git
Published: 2022-07-28 13:13:12

{% youtube 8kqIkM2iIx8 %}

***

🛴 Follow me for more on:
YouTube:        https://bit.ly/3oBQbc0
Facebook:       https://bit.ly/3cp2S5W
Instagram[New]: https://bit.ly/3Ihh2EB

***
🖥️🎉 Planet Crust released Corteza 2021.3.4!
Tags: release, update, lowcode, newfeatures
Published: 2022-07-28 13:03:13

Planet Crust has released a new update of Corteza - 2022.3.4. Check out the new updates, improvements and changes:
👉 https://www.planetcrust.com/planet-crust-releases-corteza-2022-3-4
How to Build Crypto Website Using HTML CSS JavaScript
Tags: css, javascript, beginners, tutorial
Published: 2022-07-28 12:58:22

{% youtube ux3o7jDhvOc %}

How to Build Cryptocurrency Website Using HTML CSS JavaScript

This video will show you how to build cryptocurrency website using html css javascript

[Live Website](https://codewithsadee.github.io/cryptex)
[Github Repo](https://github.com/codewithsadee/cryptex)

---

HI 👋
I'm Sadee (webdev)
In this channel I make videos about Complete Responsive website.
You can checkout my channel 👇

📺 My Channel : [codewithsadee](https://www.youtube.com/channel/UC1PZHWV6VvICTL1LgFUZq6g)
🔔 Subscribe : [subscribe now](https://www.youtube.com/channel/UC1PZHWV6VvICTL1LgFUZq6g?sub_confirmation=1)

---

🔗 Essential links
-----------------------------
[Download the starter file to practice](https://drive.google.com/file/d/10EaxVTOHg6hLW_wGl_ElHI7caHW0h_9H/view?usp=sharing
)

---

⏱️ Timestamps
-----------------------------
0:00 - Demo
4:30 - File structure
4:59 - Project initial
11:06 - Header
29:23 - Hero section
33:38 - Trend section
44:29 - Market section
1:08:41 - Instruction section
1:14:44 - About section
1:18:36 - App section
1:23:27 - Footer
1:35:40 - Media queries

---

[![Become a patreon](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fnjl14kdm5qf08hu5lop.png)](https://www.patreon.com/bePatron?u=62535867)
Portfolio With Vue js
Tags: webdev, beginners
Published: 2022-07-28 12:57:00

Hello Guys today i want to show you my portfolio which i created while learning Vue JS.

Here is the link for the portfolio
https://portfolio-shubham-tiwari-webdev.netlify.app/

Please do check it and tell me in the comment section if there can be any type of improvement related to design can be made.

THANK YOU FOR CHECKING THIS POST
^^You can help me by some donation at the link below Thank you👇👇 ^^
☕ --> https://www.buymeacoffee.com/waaduheck <--

Also check these posts as well
https://dev.to/shubhamtiwari909/javascript-map-with-filter-2jgo

https://dev.to/shubhamtiwari909/e-quotes-3bng

https://dev.to/shubhamtiwari909/deploy-react-app-on-netlify-kl