teleren/devto huggingface dataset:
When Blockchain Meets Artificial Intelligence
Published: 2021-10-24 14:55:53

Blockchain and Artificial Intelligence are trending tech of new era when both are combined together its become complete strong security system. not only private sector but also Govt sector also used the  blockchain and artificial intelligence to improve security system. Artificial Intelligence basically deals with task to make it easy. Blockchain deals with security records ,transaction and activities to network for security purpose. When this two tech comes together its deals with functionality and security of systems. Artificial Intelligence focus on visualization and problems blockchain focus on security and collaboratively functioning with machine learning model. Public blockchains such as Ethereum are open to the public. A key feature of blockchain is that it enables unrelated parties to transact and share data with each
other on a common platforms.

learn Blockchain and AI with hands on project here Workshop: https://champion.learns.live/
My First Hacktoberfest : Feasting on issues for the badge
Published: 2021-10-24 14:51:06

Hi I am Pat, and this year is my first `#hacktoberfest`. From the title, I sound like a `#hacktoberfest` villain, don't I?

_SPOILER ALERT_: I am not :).

This year, I started getting active on github and the DEV community because of my learning goals. With that, I also learned about a lot of dev events, one of which, `#hacktoberfest`.

I decided to enter out of curiosity, exploring a lot of projects with the `good first issue` tag to get the hang of it. Finding issues was easy, the problem was, I got a bit late and almost all of them are dibbed/taken already. It was fine. The bad part was some contributors were commenting on threads, messaging the maintainers to accept the PRs. Sometimes requesting these maintainers to add the `#hacktoberfest` tag for the request to be counted in their `#hacktoberfest` participation tally.  It kind of feels off because it seems to me that the desire to contribute stemmed from the acquisition of a badge after the event and not the genuine desire of contributing to the open source community.

I reflected on this first `#hacktoberfest` experience and realized that if I want to successfully complete the event, I have to be actively exploring the open source community not just during October. Finding issues is very easy to do, but familiarizing with how an open source project work, reading the contributor guidelines carefully, setting up local development, analyzing the open issue, etc. take time. Completing issues that are not menial requires preparation.

If I have one suggestion for myself next year, that is, explore fun/interesting open-source projects in advance, start contributing, familiarize with the contributor's guidelines and the open issues. And I feel like hacktoberfest will be completed in a breeze that way. 

I can say I failed my first `hacktoberfest`, but I think the experience served me well.
 ![Hacktoberfest profile](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zdzryupd767neemcu3nc.PNG)

## Happy hacking!
Learning Recap Week 2 [17/10/21 to 24/10/21]
Published: 2021-10-24 14:40:34

Intro of Javascript
i) Variables
ii) Arithmetic Operators
iii) Function - a procedure
iv) Process Flow if.else
v) Objects - container for key-value pair

Rate 2/7

Vacationing. So, consistency is not good. Will try to go back on track tomorrow.
Learning Recap Week 1 9/10/21 to 15/10/21
Published: 2021-10-24 14:35:56

Learn HTML
i) HTML Basics </img>
ii) HTML Elements (Headings, List, Form)

CSS
i) CSS Selectors (Element, ID, Class)
ii) CSS Grids
iii) Prep Image Folder

Rate learning week 7/7

Example of a good week.

Start Sunday end on Sunday
DevTo iOS native application
Tags: ios, devto, mobile
Published: 2021-10-24 14:34:04

---
title: DevTo iOS native application
published: true
description:
tags: iOS, devto, mobile
cover_image: https://i.imgur.com/1zaiWRd.png
---
Hi all, I’ve created a basic iOS native application using dev.to API. Please check it out - https://apps.apple.com/us/app/devto/id1591660057.

Currently available:
- Articles
- Podcasts
- Videos
How to Make a Five Points CSS Star
Tags: css, star, rating, purecss
Published: 2021-10-24 14:33:50

I've recently written an article about creating various [CSS star] shapes. Basically, stars are made up of multiple triangles.

In this short post I will only discuss about creating a five pointed star in CSS, so check out my other article if you need more star shapes.

#Star CSS Codepen

{% codepen https://codepen.io/inegoita/pen/NWgQbvg %}

Essentially, we need to overlap three triangles. CSS triangles are created by combining colored and transparent borders.

If you're unfamiliar with [how to create CSS triangle](http://www.coding-dude.com/wp/css/create-a-triangle/) shapes, take a look at one of my previous tutorials.

As you can see in the CSS code, the three triangles are made up from the main element and 2 pseudo-elements, the `:before` or `:after` pseudo-elements.

#CSS Star Configuration Options

You're probably wondering what's up with the property `—star-color`. It's not a common CSS property.

CSS variables are properties that begin with — (CSS double minus). Variable values can be defined in the same way that standard CSS properties are, and then reused in your CSS code. This has the advantage of only requiring you to modify the value once, and it will be applied everywhere the variable was used.

In our scenario, we have three triangles that are colored by the `—star-color` variable. So, this is where you may alter the color of the CSS star form.

#In Conclusion

It's fun to create shapes using simple CSS. Though creating a CSS star might seem a challenge, you can see it's actually easy to do it, and you can do it with only one CSS class.
Day 39/100 Easy-breezy
Tags: 100daysofcode, programming, 100daychallenge, challenge
Published: 2021-10-24 14:31:58

I'm anxious but somehow the community is busy motivating and lifting up spirits of fellow coders. Though some said these are boots, at least they are active and reminding you to keep learning.

![discord](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ksgf189v45w30wo54gpl.gif)
Day 1 Start!
Published: 2021-10-24 14:30:10

Hey everybody! My name is Logan McLaughlin and today I start my journey down the road of my Software Engineering education, hopefully getting off that road near the end onto the Game Development career track!

[Who Am I?](## Who Am I?)
[Closing Remarks](## Closing Remarks)
[Navigation](###### Navigation)

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

## Who Am I?

I am 32 years old and am a proud member of the LGBTQIA+ community, I have some small prior experience with pseudocode from both a previous (admittedly failed) foray into college as well as growing up using old game making programs such as RPG Maker 2000 and 2003, which is what truly got me into wanting to make Game Development my desired career track!

I do understand that, as it stands now, Game Development can be a very competitive field and, depending on the company, can also be a very toxic work environment. However, I do intend to field my options and plan accordingly when the time comes!

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

## Closing Remarks

Thank you all very much for your time! With these posts, I hope to make, bare minimum, a morning post akin to this where I detail some of my basic relevant thoughts on my chosen profession as well as things I have learned in prior days and weeks, while also making post-session entries summarizing and affirming the relevant lessons I feel I have learned that day. I will certainly not always be successful in this endeavor, but I do honestly wish to try.

Thank you again, and I hope to see you all when I've finished some basic lessons over at Codeacademy! Take care!

###### Navigation

| First < Prev [Next>](https://dev.to/spellboundtutor/day-1-post-learning-summary-3363)
Creating UML diagrams in markdown editor
Tags: oop, javascript, webdev, programming
Published: 2021-10-24 14:21:42

The Unified Modeling Language is a general-purpose, developmental, modelling language in the field of software engineering that is intended to provide a standard way to visualize the design of a system.

## How to create plantuml UML diagram in markdown editor ?
Go to [this](https://www.dsabyte.com/posts/publish/blog) editor, and paste the below content.

```js
$$uml
skinparam backgroundcolor transparent
Bob->Alice : Hello!
$$
```
To learn more about syntax visit [here](https://plantuml.com/)

{% github ats1999/ats1999 %}
Copy & Paste - The Tricky Way on macOS Terminal
Tags: productivity, macos, terminal, programming
Published: 2021-10-24 14:15:18

Every of us knows copy & paste by `⌘-C` and `⌘-V`. Today I want to introduce you the `pbcopy` and `pbpaste` commands, **for macOS exclusively**.

## pbcopy

Imagine that you want to copy the content of a file that has more than 1,000 lines on the terminal.

One way is to `cat /path/to/file`, and use your mouse/trackpad to scroll and highlight the content, then press `⌘-C` to copy. However, this seemingly simple task could be very annoying because scroll-and-highlight isn't so straight-forward sometimes.

**A much simpler way is to pipe the output to `pbcopy`.**

```bash
cat /path/to/file | pbcopy
```

Now you can `⌘-V` the copied content anywhere. 🥳

## pbpaste

You can *echo* the copied content by `pbpaste`. For example, you can save the copied content into a file.

```bash
pbpaste > /path/to/file
```

**Or**, process the copied content before saving it.

```bash
# Remove the empty lines
pbpaste | egrep -v '^$' > /path/to/file
```

**Or**, process the copied content AND copy the new content with `pbcopy`.

```bash
pbpaste | egrep -v '^$' | pbcopy
```

## Summary

`pbcopy` and `pbpaste` is just a small trick, but very useful in my day-to-day work. Hope they could become your favourite commands too! 😎
Floyd’s Cycle Detection Algorithm
Tags: algorithms, cpp, programming
Published: 2021-10-24 13:28:15

The purpose is to determine whether the linked list has a cycle or not. This is the fastest method to find cycle in a linked list. The terminology of this algorithm is-

- Traverse linked list using two pointers named `slow_ptr` and `fast_ptr`.
- Move the pointer `slow_ptr` by 1 and `fast_ptr` by 2.
- If these pointers meet at the same node then there is a loop. If pointers do not meet then linked list doesn’t have a loop.

## Algorithm

**INPUT:** Pointer to a linked list say `HEAD`.

**OUTPUT:** Return `true` if linked list contains loop else return `false`.

**DATA STRUCTURE:** A singly linked list.

**STEPS:** 
```
    If(HEAD == NULL || HEAD->link == NULL) then
        Return false
        Exit
    Else
        // initializing staring pointers
        fast_ptr = HEAD
        slow_ptr = HEAD
        While(HEAD != NULL) do
            // move slow_ptr by 1 step and fast_ptr by 2 steps
            slow_ptr = slow_ptr->link;
            fast_ptr = fast_ptr->link->link;
            If(slow_ptr == fast_ptr)then
                Return true
            EndIf
            HEAD = HEAD->link
        EndWhile
        Return false
    EndIf
```

## Complexity

**Time complexity:** O(n). Only one traversal of the loop is needed.

**Auxiliary Space:** O(1). There is no space required.

## References

[codingninjas.com](https://www.codingninjas.com/blog/2020/09/09/floyds-cycle-detection-algorithm/), [geeksforgeeks.org](https://www.geeksforgeeks.org/how-does-floyds-slow-and-fast-pointers-approach-work/)

## Conclusion

Hope you understand this algorithm. Let's solve some problem using this algorithm. [click here](https://leetcode.com/problems/linked-list-cycle/)
GitHub Action: Add Environment Variables To The Step That Is Using Them
Tags: githubactions
Published: 2021-10-24 13:16:07

---
title: "GitHub Action: Add Environment Variables To The Step That Is Using Them"
published: true
description: 'GitHub Action environment variables must be set in the step that is using them.'
image: 'https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f843b7go06s1znb40gmv.png'
canonical_url: https://jasonericdavis.dev/blog/add-environment-variables-to-step
tags: GitHubActions
---

For the [fantasy football picker](https://github.com/jasonericdavis/FF_Picker) project that I am working on, a GitHub Action is used to download, parse and upload the stats to a Supabase database. For the action to connect to the database the action needs to know the database URL and database key both of which should be kept a secret.  

GitHub Actions have the ability to pass secrets as environment variables and I used the steps listed at [here](https://docs.github.com/en/actions/security-guides/encrypted-secrets) to pass the secrets as environment variables. Or so I thought. When the action ran the script I had written was unable to connect to the database because the environment variables containing the secrets did not exist. After hours of trying to figure out the problem, I remembered another project that was doing pretty much the same thing that I was doing. So I checked out the way that [open-sauced](https://opensauced.pizza/) ran its [populate-supabase action](https://github.com/open-sauced/actions/blob/62ad19d336b0915be6642043be77b1e926976230/.github/workflows/populate-the-supabase.yml#L28) and it dawned on me, 

> *The environment variables have to be set in the step they are being used in.* 

After correcting the yaml for the action to set the secrets as environment variables in the step that was running the script the action was able to connect to the database.
 ![the correct yaml file](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f843b7go06s1znb40gmv.png)
A Quick 10-Second Programming Joke For Today
Tags: jokes, dailydeveloperjokes
Published: 2021-10-24 12:00:19

---
title: "A Quick 10-Second Programming Joke For Today"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12592cb43a5.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ What did the Class say in court when put on trial?

___A:___ I strongly object!
 -->
Line Breaks in Laravel Blade
Tags: laravel, php, beginners, codenewbie
Published: 2021-10-24 13:04:27

Today we will see how to break line for textarea in laravel blade.When you want to display or print data from database at that time you can get result same as store in database like single line and you didn't get proper output. So,that time we are using php function nl2br() in blade file.

Laravel helper provide many functionalities and you can use e Laravel helper function to purify your html before showing line breaks.

You need to do the escaping first using e() and then after apply nl2br() function.

```
{{ nl2br(e($data)) }}

// OR

{!! nl2br(e($data)) !!}
```
1 line of code: How to shallow clone an Array
Tags: javascript, webdev, productivity, codequality
Published: 2021-10-24 12:38:47



```javascript
const shallowClone = arr => arr.slice(0); 
```
Creates a shallow-copied clone of the provided array. Since it's a shallow copy, nested objects or arrays will be copied by reference, not duplicated.


---

## The repository & npm package

You can find the all the utility functions from this series at [github.com/martinkr/onelinecode](https://github.com/martinkr/onelinecode)
The library is also published to [npm as @onelinecode](https://www.npmjs.com/package/@onelinecode/onelinecode) for your convenience.

The code and the npm package will be updated every time I publish a new article.

---

Follow me on [Twitter: @martinkr](http://twitter.com/_martinkr) and consider to [buy me a coffee](https://www.buymeacoffee.com/martinkr)

Photo by [zoo_monkey](https://unsplash.com/@zoo_monkey) on [Unsplash](https://unsplash.com/s/photos/fuji)

---
God Mode in Windows 11
Tags: windows11, godmode, tricks
Published: 2021-10-24 11:49:24

One of the main improvements in Windows 11 is the new Settings screen, which is better organized than in the previous version.
In terms of versatility, however, it is still inferior to the dear old fashion Control Panel, and some options present here are missing on the more modern interface.
To the rescue comes **God Mode**, a screen that the user can easily activate.

God Mode is nothing more than a configuration page that allows the user to **quickly access all the advanced customization and configuration tools**, system features and much more.

## How to activate the God Mode

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

To access God Mode on Windows 11 you simply need to create a folder on your desktop renaming it to:

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

Once done you'll need to double-click on the new icon to access the God Mode screen, which will be presented inside a File Explorer window. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ef03ouus7um64en03f8q.png)
Day 16 of 100 Days of Code & Scrum: Plan of Counterattack for the Next.js Week
Tags: 100daysofcode, beginners, programming, webdev
Published: 2021-10-24 11:47:14

Happy Sunday, everyone!

I kickstarted my week by getting my new user story article finished. I'm going to do proofreading on it tomorrow, as I'm way too sleepy now. Also, I worked on creating my banner with my editor. I'm going for a milk tea color palette/theme, it's still a work in progress.

## Yesterday

I did my Weekly Sprint Review and Retrospective, in which I went over what I've managed to do well, what my shortcomings were, and what I could do better in the future. It most likely was my worst week so far.

## Today

Since it's the start of a new week, I planned out what I should be doing and established my new `Sprint Goals`. My focus for this week will still be **Scrum**, to prepare for my PSM I exam and the upcoming [Chingu](https://chingu.io/) voyage.

## Weekly Sprint Goals

- focus on diving deeper into **Scrum** principles
- study for Professional Scrum Master I (PSM I) certification
- finish my guides about Scrum
- continue networking
- if I have extra time, learn about Next.js to prepare for coding my business website
- no interviews

![Thank You Banner](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyi1ip2bzgnxx6zfbr8m.png)

Thank you to everyone who supported me and interacted with me during the past weeks! I hope we can make a lot of progress this week.

I hope everyone's enjoying their weekend!

### Resources/Recommended Readings

- [The 2020 Scrum Guide](https://scrumguides.org/scrum-guide.html)
- [Mikhail Lapshin's Scrum Quizzes](https://mlapshin.com/index.php/scrum-quizzes/)

### DISCLAIMER

**This is not a guide**, it is just me sharing my experiences and learnings. This post only expresses my thoughts and opinions (based on my limited knowledge) and is in no way a substitute for actual references. If I ever make a mistake or if you disagree, I would appreciate corrections in the comments!

### Other Media

Feel free to reach out to me in other media!

<span><a target="_blank" href="https://www.rammina.com/"><img src="https://res.cloudinary.com/rammina/image/upload/v1638444046/rammina-button-128_x9ginu.png" alt="Rammina Logo" width="128" height="50"/></a></span>

<span><a target="_blank" href="https://twitter.com/RamminaR"><img src="https://res.cloudinary.com/rammina/image/upload/v1636792959/twitter-logo_laoyfu_pdbagm.png" alt="Twitter logo" width="128" height="50"/></a></span>

<span><a target="_blank" href="https://github.com/Rammina"><img src="https://res.cloudinary.com/rammina/image/upload/v1636795051/GitHub-Emblem2_epcp8r.png" alt="Github logo" width="128" height="50"/></a></span>
Is DELETE really an idempotent HTTP request?
Tags: showdev, webdev
Published: 2021-10-24 11:43:37

Idempotency is the ability for an operation to be carried out multiple times without changing the state of the system.

With this definition we can say regularly used methods like the PUT and GET are idempotent since regardless of what is sent in the request or how many times you make the request the outcome remains the same. Lets take the GET method as an example

```javascript
GET  https://api-resource/api/v1/getData
```

No matter how many times the endpoint is called, it will always result in the same outcome, the system remains unchanged.

Now lets answer the question **why is the DELETE method idempotent?** Deleting the item from the first call removes the item from the system and subsequent request will return a 404 since the resource has been deleted.

*The key here is to understand that idempotency doesn't mean the response will always be the same, it means that the state of the system will remain unchanged.* Lets use this delete request as an example

```javascript
DELETE  https://api-resource/api/v1/delete/1
```

Since the data with id of 1 has been deleted on the first request, making this request multiple times won't change anything on the system meaning it would always result to the thing, the data with an id of 1 no longer exists.

Extra: The PUT also does the same since making the same call with the same request body would result to the same data being overwritten. Hence nothing changed.