teleren/devto huggingface dataset:
Day 6 & 7 - Clock app
Tags: react, beginners, productivity, codenewbie
Published: 2023-05-19 06:13:44

Pada hari ke 3,4,5 aku tidak mempostingnya karena pada hari itu aku tidak membuat project, melainkan sepenuhnya membaca dokumentasi milik react. Aku mendedikasikan diri untuk membaca bagian state management yang aku pikir itu akan membantuku di masa yang akan datang. 

Pada tiga hari itu aku menyelesaikan membaca dokumentasi pada bagian:
- https://react.dev/learn/managing-state
- https://react.dev/learn/referencing-values-with-refs

Barulah pada hari ke 6 dan 7 aku mengimplementasikan apa yang aku pelajari dengan membuat sebuah clock app. Pada hari ke 7 ini fitur yang selesai adalah stopwatch yang bisa dilihat [di sini](https://clock-xharf.vercel.app/stopwatch). 

Apa yang aku pelajari:
- Jarak antara waktu mulai dan waktu berhenti dapat digunakan untuk membuat stopwatch. tapi pendekatan ini tidak dapat digunakan apabila stopwatch memiliki fitur pause.
- Pendekatan yang lebih proper digunakan yaitu dengan menghitung durasi dalam milidetik agar fitur pause dapat diimplementasikan. Hal ini karena pendekatannya adalah increment, dan fungsi start akan menambah selama stopwatch dalam keadaan running. apabila dipause, maka nilai terakhir akan disimpan, dan apabila dimulai lagi maka nilai terakhir akan dijadikan referensi untuk kembali dilakukan increment. 

- ketika mengubah state dan mereferensi nilai sebelumnya, maka gunakanlah fungsi `(prev) => { what value that you want}`.

Code di bawah ini tidak akan bekerja semestinya:
```
const intervalRef = useRef(null);
const [millisecondsPassed, setMilisecondsPassed] = useState(0);

intervalRef.current = setInterval(() => {
  setMilisecondsPassed(millisecondsPassed +10);
}, 10);
```
hal tersebut karena yang direferensikan oleh `millisecondsPassed `di dalam `setMilisecondsPassed(millisecondsPassed +10); `mengacu ke nilai yang sama setiap saat dalam interval tersebut. Misal apabila `milisecondsPassed` awalnya adalah 0, maka hasil penjumlahannya akan selalu 10, bukan increment seperti 10, 20, 30, 40, …dst. Code yang benar adalah sebagai berikut:

```
const intervalRef = useRef(null);
const [millisecondsPassed, setMilisecondsPassed] = useState(0);

intervalRef.current = setInterval(() => {
  setMilisecondsPassed((prev) => prev + 10);
}, 10);
```
NeuroTonix - Brain Booster Results, Pros, Cons, Price & Ingredients?
Tags: webdev, javascript, beginners, programming
Published: 2023-05-19 06:11:00

[NeuroTonix](https://www.mid-day.com/brand-media/article/neurotonix-reviews-official-website-alert-is-neuro-tonix-worth-to-buy-or-fake-ingredients-revealed-23279608) benefits for your time by following various using laxatives of Brain Power Supplement empowerment, but they also won't assist you in finding peace and happiness, and also so they won't assist forever. Precisely the miraculous psychotherapy of the unconscious mind can help much you completely develop your brain, and feel truly satisfied.
[https://www.mid-day.com/brand-media/article/neurotonix-reviews-official-website-alert-is-neuro-tonix-worth-to-buy-or-fake-ingredients-revealed-23279608](https://www.mid-day.com/brand-media/article/neurotonix-reviews-official-website-alert-is-neuro-tonix-worth-to-buy-or-fake-ingredients-revealed-23279608)
https://www.linkedin.com/events/neurotonix7065201775791722496/
https://www.crunchbase.com/organization/neurotonix-bdd0
https://twitter.com/neurotonix36581
WhatsApp Logo/Icon Using HTML & CSS Code
Published: 2023-05-19 05:46:20

Welcome to the CodeWithRandom blog. In This Article, We learn how to create a WhatsApp Logo. We use HTML & CSS Code for Creating WhatsApp Logo.

Hope you enjoy our blog so let's start with a basic HTML structure for the **[WhatsApp Logo](https://www.codewithrandom.com/2023/02/12/whatsapp-logo-using-only-html-css-whatsapp-logo-code/)**.

## Html Code For WhatsApp Logo
```
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 
    <title>WhatsApp Logo</title>
    <link rel="stylesheet" href="style1.css">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css">
</head>
<body>
  <div class="white">
      <div>
        <i class="fas fa-phone"></i>
      </div>
    </div>
</body>
</html>
```
There is all the HTML Code for the WhatsApp Logo. Now, you can see output without CSS. Then we write CSS Code for the WhatsApp Logo.

## CSS Code For WhatsApp Logo
```
body{
    margin: 0;
    padding: 0;
    background: lightblue;
}
div{
    width: 70px;
    height: 70px;
    border-radius: 35px;
    background: #3AC371;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
.white{
    width: 80px;
    height: 80px;
    border-radius: 40px;
    background-color: #fff;
    box-shadow: 2px 2px 3px 2px rgba(0,0,0,.3);
}
.white::before{
    content: "";
    top: 65px;
    left: -15px;
    border-width: 20px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
    position: absolute;
    transform: rotate(-50deg) rotateX(-55deg);
}
.white::after{
    content: "";
    top: 63px;
    left: -4px;
    border-width: 15px;
    border-style: solid;
    border-color: transparent #3AC371 transparent transparent;
    position: absolute;
    transform: rotate(-51deg) rotateX(-50deg);
}
.fas{
    left: 17px;
    top: 18px;
    position: absolute;
    font-size: 35px;
    color: #fff;
    transform: rotate(90deg);
}
```
We have completed our CSS Code Section For WhatsApp Logo.  Here is our final updated output with HTML And  CSS Code.

We have completed our CSS Code Section.  Here is our updated output with HTML & CSS. Hope you like the WhatsApp Logo, you can see the output project screenshots. See our other blogs and gain knowledge in front-end development.

Thank you

This post teaches us to create a **[WhatsApp Logo](https://www.codewithrandom.com/2023/02/12/whatsapp-logo-using-only-html-css-whatsapp-logo-code/)** using simple HTML & CSS. If we made a mistake or any confusion, please drop a comment to reply or help you in easy learning.

Written by - Code With Random/Anki

code by - Md Aman
Live Coding: How to Develop WebRTC iOS apps?
Tags: webrtc, ios, swift
Published: 2023-05-19 05:29:17

Are you an iOS developer looking to create real-time WebRTC iOS streaming applications? Building a WebRTC iOS application has never been easier!

In this quick event, we’ll show you how to create an iOS app project in Xcode, add the WebRTC-iOS-SDK dependency, and publish and play WebRTC live streams in just a few simple steps.

We'll walk through this blog post
[4 Simple Steps to Build WebRTC iOS Apps and Stream Like a Pro](https://www.google.com/url?q=https://antmedia.io/build-and-try-webrtc-ios-app-for-dummies/&sa=D&source=calendar&ust=1684864756002556&usg=AOvVaw06aoUYieMZo6lRqakKxUTf)

<img src="https://github.com/ant-media/Ant-Media-Server/assets/3456251/733523cf-edc3-4eda-a8ba-6a93f4a16fb8" width=500px/>


Live Coding: How to Develop WebRTC iOS apps?
Friday, May 19 · 2:00 – 2:30pm
Time zone: Europe/Istanbul
Video call link: https://meet.google.com/wuh-raap-nbu

[Add event to your calendar](https://calendar.google.com/calendar/event?action=TEMPLATE&tmeid=NTRqdDgzNTBlc29pNWcyN2dsYjM3cjFodHYgbWVreWFAYW50bWVkaWEuaW8&tmsrc=mekya%40antmedia.io) 


<a target="_blank" href="https://calendar.google.com/calendar/event?action=TEMPLATE&amp;tmeid=NTRqdDgzNTBlc29pNWcyN2dsYjM3cjFodHYgbWVreWFAYW50bWVkaWEuaW8&amp;tmsrc=mekya%40antmedia.io"><img border="0" src="https://www.google.com/calendar/images/ext/gc_button1_en.gif"></a>
Key points to summarize what Computer Science is ✨
Published: 2023-05-19 05:27:29



![Saying hello](https://media.giphy.com/media/bcKmIWkUMCjVm/giphy.gif)

Hello 👋
Hope you are having amazing day 😎😁
So here are Key Points to know **Computer Science Better**🤓
Hope you'll find it helpful 😊


-------------------------------------------

- Computer science is a field of study that focuses on the theory, design, development, and application of computers and computing technologies.

- It **involves exploring a wide range of topics such as** 
algorithms, programming languages, software development, computer hardware, databases, artificial intelligence, machine learning, computer networks, cybersecurity, and more.

- **Computer science is not just about programming**; it also involves exploring the impact of technology on society and finding innovative ways to use technology to solve complex problems.

- It is a **rapidly growing field** that plays a crucial role in shaping the future of our world by advancing new technologies, improving efficiency, and making our lives easier.

- **Computer scientists work in a variety** of settings, including academia, research institutions, government agencies, and private companies.

- Some of the **key skills required for a career in computer science** include problem-solving, critical thinking, creativity, attention to detail, and strong technical skills.

- There are many **different career paths available in computer science**, including software development, data science, cybersecurity, artificial intelligence, computer engineering, and more.

- As technology continues to advance, the **demand for skilled computer science professionals is only expected to grow**, making it a promising field for those interested in technology and innovation.

**
### THANKS FOR READING🤗
[Link for more](https://linktr.ee/developedbyjk)
**
Utilize one of India's best dating applications
Published: 2023-05-19 05:20:48

Which [**Top dating apps in India**](https://friendlymony.com/) is considered to be the best? There are no subscription tiers on FriendlyMony, in contrast to other dating apps or online dating services. One expensive service is all that it offers. Your subscription's duration and monthly cost are the only variables that vary. The expense of membership will decrease the longer you remain a member. After signing up and perusing the results, you can start your dating adventure. In addition to messaging and video, FriendlyMony offers a number of choices. Communication with your loved ones can also be done using FriendlyMony.

Website: https://friendlymony.com/
App Link: https://play.google.com/store/apps/details?id=com.nect.friendlymony
Blazor: A Safe and Secure Web Development Framework
Tags: programming, dotnet, webdev, dotnetcore
Published: 2023-05-19 04:44:23

Blazor is a new web development framework from Microsoft that allows you to build interactive web UIs using C#. Blazor is still under development, but it has already the potential to revolutionize the way we build web applications.

Blazor is designed with safety and security in mind. The framework includes a number of features that help to protect your applications from attack, including:

**Code Access Security (CAS):** CAS is a feature of the .NET framework that helps to control what code can be run in your applications. This helps to prevent malicious code from being executed.

**Data Protection :** Blazor includes a number of features that help to protect your data, including encryption and hashing. This helps to prevent your data from being stolen or tampered with.

**Session Management :** Blazor includes a built-in session management system that helps to keep your users logged in and their data secure.

**XSS Protection :** Blazor includes a built-in XSS protection system that helps to prevent cross-site scripting attacks. This helps to protect your users from malicious code being injected into your applications.

In addition to these features, Blazor is also designed to be easy to use and secure. The framework includes a number of features that help to make it easy to develop secure applications, including:

**Security Best Practices :** Blazor includes a number of security best practices that are built into the framework. These best practices help you to develop secure applications without having to worry about the details.

**Security Tools :** Blazor includes a number of security tools that help you to find and fix security vulnerabilities in your applications. These tools help you to develop secure applications without having to be an expert in security.

Overall, Blazor is a safe and secure web development framework that can help you to build secure applications. If you are looking for a web development framework that is both powerful and secure, then Blazor is definitely worth considering.

**Here are some additional benefits of using Blazor:**

Blazor is single-page application (SPA) friendly. This means that Blazor applications can be loaded and interacted with very quickly, even on slow connections.

Blazor is server-side rendered (SSR) by default. This means that Blazor applications can be SEO friendly and can be cached by browsers.

Blazor is cross-platform. Blazor applications can be run on Windows, Mac, and Linux.

If you are looking for a modern, powerful, and versatile web development technology that is also safe and secure, then Blazor is definitely worth considering.
Generating a debug APK in React Native for Android
Published: 2023-05-19 04:38:39

Generating a Debug APK File in React Native
===========================================

Introduction
------------
This documentation provides step-by-step instructions on how to generate a debug APK (Android Package) file for a React Native application. The debug APK is primarily used for testing and debugging purposes during the development phase.

Prerequisites
-------------
Before proceeding, ensure that you have the following prerequisites in place:

1. React Native project: Set up and configure a React Native project on your development machine.

2. Android development environment: Install and configure the necessary tools for Android development, including Java Development Kit (JDK), Android SDK, and Android Studio.

Step 1: Bundle the JavaScript Code
---------------------------------
1. Open your terminal or command prompt.

2. Navigate to the root directory of your React Native project.

3. Run the following command to bundle the JavaScript code:

```
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
```

This command creates a compiled bundle of your JavaScript code and assets required for the React Native application.

Step 2: Build the Debug APK
---------------------------
1. In the terminal, move to the "android" directory of your React Native project:

```
cd android
```

2. Once inside the "android" directory, run the following command to assemble the debug version of the APK:

```
./gradlew assembleDebug
```

This command triggers the Gradle build system, which compiles the project and generates the debug APK file.

Locating the Debug APK File
---------------------------
To find the generated debug APK file, follow these steps:

1. Open your React Native project folder.

2. Navigate to the "android" directory.

3. Inside the "android" directory, locate the "app" directory.

4. Open the "app" directory.

5. Within the "app" directory, locate the "build" folder.

6. Open the "build" folder.

7. Inside the "build" folder, find the "outputs" folder.

8. Open the "outputs" folder.

9. Inside the "outputs" folder, you will find the "apk" folder.

10. Open the "apk" folder.

Inside the "apk" folder, you will find the generated debug APK file. It is typically named "app-debug.apk".

Conclusion
----------
By following these steps, you have successfully generated a debug APK file for your React Native application. The debug APK can now be used for testing and debugging purposes on Android devices. Remember that the debug APK is not suitable for distribution or production use.
How to Add & Setup Notification Bar for Magento 2
Tags: webdev, magento, magento2tutorials
Published: 2023-05-19 04:13:33

A really planned notice bar can be a fundamental apparatus to grab your clients' eye and drive changes on your Magento 2 store. Whether your goal is to advance a deal, send off another item, or feature fundamental data, a warning bar can assist you with accomplishing your objectives.

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

In this far reaching guide, we will offer you a bit by bit approach for **_how to add and set up a notification bar in Magento 2_**. With only a couple of direct advances, you can make an alluring and effective bar. Whether you are an accomplished Magento 2 client or a beginner, our aide will assist you with fostering a warning bar that suits your prerequisites. Get everything rolling now and work on your site's commitment and deals!

For more info, visit **_https://webguru.dev/how-to-add-setup-notification-bar-for-magento-2/_**
How to access the ERD (Entity-Relationship Diagram) of your database schema in MySQL Workbench
Tags: mysql, database, dataanalysis, sql
Published: 2023-05-19 04:12:21

As a data analysis student, you may know what an Entity Relationship Diagram is and how it helps you quickly get familiar with a database schema and its main properties like tables, table relationships as well as table columns (and their respective data types)

But because you've always been practising and answering the SQL questions using an online interactive SQL instance, you have only been able to view an ERD because it has always been provided to you as an image. This means you've never had to generate a physical entity relationship diagram in a Database Management System like MySQL.

Yet, in the real workplace setting, or when you start answering SQL questions using a DBMS, you need to know how you can view or access the ERD of the database schema you intend to query from.

## Below are steps you can follow to view the ERD (Entity-Relationship Diagram) of your database schema in MySQL Workbench:
1. Open MySQL Workbench and open your database connection.

2. In the top navigation bar, click on “Database” to expand the list of options.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t8xdsx8biggrmq6g5iyh.png)
3. Select “Reverse Engineer” from the database context menu.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c4h1mqfbqu1ga59lio91.png)
4. In the “Reverse Engineer” dialogue box, click “Next” to set parameters for connecting to the Database Management System(DBMS).
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1i4wfu28g7u21lk2o066.png)
5. Enter your password so that MySQL can connect to your DBMS and then click ‘’next’’.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/49hgnltzhd0frhli6c1q.png)
6. Select the database schema for which you want to generate an ERD. And then click ‘’Next’’ again.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5tt9aq8fjrtg8w6o1670.png)
7. Enter your password again so that MySQL can retrieve and reverse engineer the schema objects for the schema you chose.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5lg7xbfjwp5q48atzz1s.png)
8. Click “Execute” to start the reverse engineering process. This may take a few moments depending on the size of your database.

9. Click ‘’finish’’ to see the ERD of your database schema displayed in the main window of MySQL Workbench.

In the ERD tab, your ERD may look like this by default :
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1l792m1vyesvu5byo2z.png)

The default ERD above may require scrolling back and forth to make sense of its contents. But you can avoid this by customising the ERD layout by dragging the tables and resizing them so that you can see all of them at a glance without the need to scroll down.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rkoo9rwqqau6yc1r8xyo.png)

And that’s a wrap!
20+ Awesome Pattern Generators ✨😍
Tags: pattern, tools, css, html
Published: 2023-05-19 04:03:15


2. [https://repper.app/](https://repper.app/)
3. [https://trianglify.io/](https://trianglify.io/)
4. [http://mazeletter.xyz/](http://mazeletter.xyz/)
5. [https://patternpad.com/](https://patternpad.com/)
6. [https://patterninja.com/](https://patterninja.com/)
7. [https://patternizer.com/1q49](https://patternizer.com/1q49)
8. [https://www.svgbackgrounds.com/](https://www.svgbackgrounds.com/)
9. [https://10015.io/tools/svg-pattern-generator](https://10015.io/tools/svg-pattern-generator)
10. [https://www.wowpatterns.com/pattern-maker/app/](https://www.wowpatterns.com/pattern-maker/app/)
11. [https://patternico.com/](https://patternico.com/)
12. [http://www.colourlovers.com/seamless](http://www.colourlovers.com/seamless)
13. [http://www.patternify.com/](http://www.patternify.com/)
14. [https://www.plaidmaker.com/](https://www.plaidmaker.com/)
15. [http://www.tartanmaker.com/](http://www.tartanmaker.com/)
16. [http://www.kennethcachia.com/plain-pattern/](http://www.kennethcachia.com/plain-pattern/)
17. [https://eskimoblood.github.io/gerstnerizer/](https://eskimoblood.github.io/gerstnerizer/)
18. [http://iros.github.io/patternfills/](http://iros.github.io/patternfills/)
19. [http://www.heropatterns.com/](http://www.heropatterns.com/)
20. [https://products.ls.graphics/paaatterns/](https://products.ls.graphics/paaatterns/)
21. [https://btmills.github.io/geopattern/](https://btmills.github.io/geopattern/)
22. [http://stripesgenerator.com/](http://stripesgenerator.com/)
23. [https://doodad.dev/pattern-generator](https://doodad.dev/pattern-generator)
24. [https://fffuel.co/mmmotif/](https://fffuel.co/mmmotif/)