teleren/devto huggingface dataset:
How to fix github permission denied publickey fatal could not read from remote repository?
Tags: github, githunt, devops
Published: 2021-04-05 13:23:09

{% youtube lV5mrUYsucU %}

This issue is pretty common when you are trying to clone your GitHub repo using the SSH .i.e. - git@github.com:rahulwagh/jhooq-master.git. 

There are a couple of ways to fix this issue - 
1. Using the HTTPS URL provided by the GitHub 
2. By generating the SSH public keys and uploading the public SSH keys to GitHub.

1. Using the HTTPS URL provided by the GitHub

In this approach, we are going to use the GitHub URL which starts with HTTPS for example - https://github.com/rahulwagh/jhooq-master.git. Using the HTTPS URL you have to provide the username and password to authenticate yourself and once you are authenticated then you can easily clone the GitHub repository.


2. By generating the SSH public keys and uploading the public SSH keys to GitHub

The second approach is a little long but it is the most recommended and secure way to clone your repository. For generating the SSH keys you need to use the ssh-keygen to generate your public SSH-key .i.e. - id_rsa.pub. After generating the ssh-key you need to upload the key to GitHub account SSH and GPG keys section.

Read more on troubleshooting steps - https://jhooq.com/github-permission-denied-publickey/
Cara Membuat Link Twibbonize
Published: 2021-04-05 13:22:47

Cara Membuat Link Twibbonize – Nah apabila kalian sedang mencari topik pembahasan seputar cara dan tips. Mulai dari cara membuat, cara mengatasi, seputar tips & cara dan beragam topik tips beserta cara lainnya.

Maka selamat kamu sudah memasuki situs atau layanan digital kepowin dengan benar, Sebab di situs kepowin setiap hari nya merilis. Berbagai macam tema alias sub judul nan cukup menarik untuk bisa sobat baca pada setiap hari nya.


 
Nah berbicara seputar apliksasi tiktok sekarang dunia maya atau warga internet lagi di gembar kan dengan judul. Membuat Link Twibbonize yang kami buat secara pada kesempatan hari ini.

Untuk itu di dalam kesempatan situs KepoWin akan membahas membuat twibbonize ini secara singkat nan bisa kalian ketahu secara seksama.

Nah mau tau deskripisi penjelasan nya seperti apa ? Jika iya yuk simak pembahasan rangkuman kali ini sampai habis. Dan selamat membaca sobat KepoWin dari beragam wilayah.

Link Twibbonize

Setalah aku teliti mengenai Link Twibbonize menggunakan berbagai macam tools nan membantu aku dalam menganalis. Sebuah topik alias berita yang cukup hangat nya dibahas di internet.


 
Maka dapat di pastikan subjek yang saya rangkum pada hari ini merupakan salah satu sub subjek alias judul tema. Nan sedang cukup banyak diulas oleh beragam kalangan netizen indonesia, Nah kenapa dapat demikian terjadi ?

Sebab setelah saya selidiki secara mendalam saya menemukan terdapat beberapa komunitas dan juga Grup nan terdiri dari beberapa media platfrom yang lagi berdiskusi mengenai Link Twibbonize.

Jadi tidak heran, kami juga ikut membahas subjek Freetts Voice Names. Namun dengan catatan Kepowin terlebih dahulu menganalisis beberapa sumber yang cukup valid.

Bertujuan informasi yang kami berikan kepada kamu semua cukup bermanfaat untuk para pembaca sobat KepoWin. Nah di bawah in ada beberapa ulasan yang mampu kamu ketahui secara seksama mengenai informasi Link Twibbonize.

Selengkapnya : https://kepowin.com/cara-membuat-link-twibbonize/
Situs: https://kepowin.com/
How to make HTTP Get Request using Golang and Rust?
Tags: go, rust, http
Published: 2021-04-05 12:35:47

This code snippet is part of my local repository for demo and simple applications. I wanted to see a difference between Go and Rust code for the given task.

There are many ways to implement a simple HTTP Get in each language. Since I already have Golang experience, the code in Go took me a few minutes.

My initial goal for the Rust code was to write an HTTP Get using only the standard library. But surprisingly, the Rust code took me at least one hour, where at the end, I just took the code from the `reqwest` package and just simplified it for the text response.

### Go implementation

```go
package main

import (
    "io/ioutil"
    "log"
    "net/http"
)

func main() {
    log.Println("mycurl")

    url := "https://kenanbek.github.io/"
    resp, err := http.Get(url)
    if err != nil {
        log.Fatalf("Error fetching url %s: %v", url, err)
    }

    defer resp.Body.Close()
    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        log.Fatalf("Error fetching url %s: %v", url, err)
    }

    log.Println("Response: ")
    log.Println(string(body))
}
```

### Rust implementation

For the Rust implementation, I am going to use `reqwest` package. That’s why we need to initialize a project environment using the following commands:

```bash
cargo init
```

Then edit content of the `Cargo.toml` and add `reqwest` dependency:

```toml
[dependencies]
reqwest = { version = "0.11", features = ["blocking", "json"] }
```

I will use blocking call api.

Here is the actual Rust code for fetching webpage's content via HTTP GET request:

```rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let resp = reqwest::blocking::get("https://kenanbek.github.io/")?
        .text()?;
    println!("{:#?}", resp);
    Ok(())
}
```

If you are also a newbie in Rust as myself, you can run this code by executing the following command:

```bash
cargo run
```
What is "def" meaning and function in python?
Tags: python, functional
Published: 2021-04-05 13:14:44

Hello, Somebody can help me?
I wanted to ask, What is the meaning of **"def"** in python programming language? And what is the function of this **"def"** Keyword? 

Example:
def function():
   print("Hello World!")
function()

If someone can help me and the answer is helpful, I'll give you some of this cake 🍰 and It will make you proud.

Thank you!
Isometric Floating Layers (SVG)
Tags: codepen, webdev, css, svg
Published: 2021-04-05 13:02:11

I made this SVG animated illustration for a piece I was writing about Webrix.js (you can find it here: <a href="https://webrix.amdocs.com/motivation" target="_blank">https://webrix.amdocs.com/motivation</a>).

I've made a `<Layer/>` component that is completely configurable (size, color, position, text), and you can stack as many as you need together and create your own illustration.

I'm using 3 `<path/>` elements internally to draw each layers and make it appear 3-dimensional: one for the shadow, one for the highlight, and one for the body.

{% codepen https://codepen.io/ykadosh/pen/RwKpKGM %}
Selenium Java: Handle Alerts & Popups, IFrames, Switch Windows
Published: 2021-04-05 13:01:01

##Handle JavaScript alert and popup
Use the Alert interface method to switch to the alert box 
```java
Alert alert = driver.switchTo().alert();
alert.getText();
//ok
driver.switchTo().alert().accept();  
//cancel
driver.switchTo().alert().dismiss();  
``` 
##Handle IFrames
IFrames are the HTML document embed on top of another HTML document.  `<iframe>...</iframe> `
Switch to the Frame by Web Element:
```java
  Actions action = new Actions(driver);
 WebElement frameTop = driver.findElement(By.xpath("//frame[@name='frame-top']"));
 driver.switchTo().frame(frameTop);
```
    driver.switchTo().frame(index)
    driver.switchTo().frame(Id)
    driver.switchTo().frame(Name)
    driver.switchTo().frame(WebElement) 

###Switch to new Window
```java
        Set <String> windows = driver.getWindowHandles();
        Iterator <String> it = windows.iterator();
        String parentId = it.next();
        String childId = it.next();
        driver.switchTo().window(childId);
        driver.switchTo().window(parentId);
```
Library to support JSON with comments and trailing comma in PHP
Tags: php, json, jsoncomment, webdev
Published: 2021-04-05 12:57:39

---
title: Library to support JSON with comments and trailing comma in PHP
published: true
description: 
tags: php, json, jsoncomment, webdev
//cover_image: https://direct_url_to_image.jpg
---

Unlike XML and YAML, JSON lacks native support for comments which is often missed. In addition, the trailing comma which would make diff on multiline value neat is also not available in JSON. If you are on PHP, then here is a little library [`adhocore/json-comment`](https://github.com/adhocore/php-json-comment) to fix it in the userland.

Thanks to this library, a JSON like this will be possible:
```json
{
  "name": "adhocore/json-comment",
  "description": "JSON comment stripper library for PHP",
  "type":/* This is creepy comment */ "library",
  "keywords": [
    "json",
    "comment",
    // Single line comment, Notice the comma below:
    "strip-comment",
  ],
  "license": "MIT",
  /*
   * This is a multiline comment.
   */
  "authors": [
    {
      "name": "Jitendra Adhikari",
      "email": "jiten.adhikary@gmail.com",
    },
  ],
  "autoload": {
      "psr-4": {
          "Ahc\\Json\\": "src/",
      },
  },
  "autoload-dev": {
      "psr-4": {
          "Ahc\\Json\\Test\\": "tests/",
      },
  },
  "require": {
      "php": ">=7.0",
      "ext-ctype": "*",
  },
  "require-dev": {
      "phpunit/phpunit": "^6.5 || ^7.5 || ^8.5",
  },
  "scripts": {
      "test": "phpunit",
      "echo": "echo '// This is not comment'",
      "test:cov": "phpunit --coverage-text",
  },
}
```

### Installation and Usage
```sh
composer req adhocore/json-comment
```

```php
use Ahc\Json\Comment;

// Only strip and do not decode it already:
(new Comment)->strip('{
  "a":1,
  // Hmmm
  "b":2,,
}');

// Strip comment and decode as JSON:
Comment::parse('{
  "a":1,
  // Hmmm
  "b":2,,
}', true);

// Read JSON file, strip comments and decode as JSON:
Comment::parseFromFile('/path/to/commented.json', true);
```

> PS: A new version [1.1.0](https://github.com/adhocore/php-json-comment/releases/tag/1.1.0) of this library has been just released.

Please use it and let know in the feedback or repo ticket if any issues.

{% github adhocore/php-json-comment %}
Complicated encryption ways explained in 2 min, by @vixentael
Tags: security, encryption, appdev, mongodb
Published: 2021-04-05 12:44:24

>*Data at rest encryption, TLS, application-level encryption–different encryption ways protect from different threats.*

Application-level encryption is closely related with data flow and can drive you to the engineering decisions of various complexity. 

For example, take a look at [client-side field-level encryption in MongoDB](https://docs.mongodb.com/drivers/security/client-side-field-level-encryption-guide/) or proxy-side transparent field-level encryption in [database protection suite Acra] (https://github.com/cossacklabs/acra).

In this video, [Anastasiia Voitova] (https://www.linkedin.com/in/anastasiiavoitova/) aka [@vixentael](https://twitter.com/vixentael), Head of customer solutions at [Cossack Labs](https://www.cossacklabs.com/), explains **how different encryption ways work and how you can make your app more reliable and resilient to various threat models.**

---
Reply to [@vixentael](https://twitter.com/vixentael) and follow [@Cossack Labs](https://twitter.com/cossacklabs) on Twitter.
Watch the full video [on YouTube](https://www.youtube.com/watch?v=CqsrA4eeGSs&ab_channel=CossackLabs). 
Get through the [slides here](https://speakerdeck.com/vixentael/e2ee-equals-security-equals-privacy).🐬

{% speakerdeck ba7464de4e2e46aa9aff6154ee8b1a89 %}
Cloud security: gaps in a "shared responsibility" model
Tags: security, cloudsecurity, riskmanagement, digitalocean
Published: 2021-04-05 12:41:53

>If your business works in an area where security matters, “putting it in a cloud that’s secure by design” is a dream. 

**Expectation:** Cloud is a miracle and a relief for companies that need sound computing power and a lot of assets available on demand to many users. Migrating to cloud seems to solve tonnns of operational problems and make companies run high and easy. 

vs.

**Reality:** Cloud operators have a very limited responsibility on security issues. When using "X as a service" platforms, security teams should take into account gaps and grey areas while building their cloud security strategy.

---

So, you’re planning your new business in an area where security matters, you might be thrilled with choices between IaaS and PaaS, or operating planet-scale cloud database. Yet, **builders usually don’t spend much time on clearly articulating cloud security strategy** when they are thinking about starting their next project.

However, if you’re in a regulated industry (like finance or healthcare) or face stringent requirements from your business environment (like in legal, insurance, fintech), there are security choices you need to contemplate as well.

Soon, you will arrive at a situation when cloud provider’s security team takes care of many things but still
● there are some things they can’t do for you.
● there are things they won’t do for you. Alas.
● there are things you shouldn’t trust them anyway.
● cloud provider’s liability in worst case is far from what could make you sleep well at night.

Read the [new article] (https://www.cossacklabs.com/blog/cloud-security-gaps-in-a-shared-responsibility-model.html) written by the Cossack Labs' experts to **check what blind spots you are to meet and eliminate on your company’s way to safe and secure cloud storage**. This blog post will save you miles of nerves, trunk of money, and vacations. 😊

Follow [@CossackLabs] (https://twitter.com/cossacklabs) for more updates on data security, cryptography, and security software design.
Quick Post: How to go up/down a directory structure using Python!
Tags: questions, python, files, os
Published: 2021-04-09 10:28:08

---
title: Quick Post: How to go up/down a directory structure using Python!
published: true
series: Quick POSTs
date: 2021-04-05 12:40:49 UTC
tags: questions,Python,files,os
canonical_url: https://pybash.hashnode.dev/quick-post-1
---

## Introduction

Introducing Quick Posts - Small posts containing useful tips and tricks! This is a series! These posts will not have a Subtitle or Cover photo

## Content

So suppose, you're in a directory `C:\Windows\system32` and want to go to `C:\Windows`, so how do you do that? Well, you can use `os.chdir()`, yeah! But how? Code below:

```
import os

print(os.getcwd())
os.chdir("..")
print("\n", os.getcwd())

```

Output Below:

```
C:\Windows\system32> python quick-post-1.py
C:\Windows\system32

C:\Windows

```

## End

Thanks, for reading Quick Posts! More coming soooooooon! Stay Alert!
Free Android App Development Course For Beginners To Get Hired
Tags: android, androidsstudio, java
Published: 2021-04-05 12:37:30

Am releasing a free new course on android app development. I will teach you all the concepts you need to master android studio. 

In the end, I will also develop the same project that got me hired with you. And I will also leave my contact details so that you can contact me one on one if you don't understand anything. 

Trust me, if you have been in this programming world, you surely knew that android development pays very well. 

I actually didn't know this, in the beginning, myself until I started mobile app development 3 years ago. 

So comparing how much I was earning in web development with my current position as an android developer, I think I need to make a way for others too to have share in what am enjoying. (The paycheck is high my friend.) 

So...   

This free course is going to be held on youtube and it going to be a playlist video. 

I just begin the course so you have not been left out. You just need to click on the below link to get access to it https://youtu.be/-jIIus6vnfI 
https://tutorialscamp.com/android-app-development-course-for-beginners/
JavaScript Interview Question #29: Slice and dice
Tags: javascript, beginners, codenewbie, webdev
Published: 2021-04-05 12:27:36

![js-test-29](https://learn.coderslang.com/js-test-29.png)

What's happened to `arr`?

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

`Array.slice` in JavaScript returns the shallow copy of the array. The `start` and `end` indices should be supplied to it as the first 2 parameters. The element at `arr[start]` is included in the copy, and the element at `arr[end]` is not.

Contrary to `Array.splice`, the original array won’t be modified when we use `Array.slice`.

So, after the first 2 lines of code, we’ll get the following state:

```javascript
[ 1, 2, 3, 4, 5]    // arr
[ 2 ]               // slicedArr
```

Then, we do two actions under `arr.splice`:

- we remove 2 elements from `arr` starting at `arr[1]`. So the original array becomes is `[ 1, 4, 5 ]` at this point.
- we destructure `…slicedArr` and insert its elements into `arr` starting at `arr[1]`. This way we’ll get to our final state `[ 1, 2, 4, 5]` in `arr`.

Here’s a code snippet with additional logging:

```javascript
  const arr = [1, 2, 3, 4, 5];
  const slicedArr = arr.slice(1, 2);

  console.log(arr);       // [ 1, 2, 3, 4, 5]
  console.log(slicedArr); // [ 2 ] 

  arr.splice(1, 2, ...slicedArr);
  console.log(arr);       // [ 1, 2, 4, 5]
```

---

**ANSWER**: The original array `arr` will be modified and hold values `[ 1, 2, 4, 5]`.

[Learn Full-Stack JavaScript](https://js.coderslang.com/sign-in)
Why I'm not sharing my knowledge
Tags: react, webdev, html
Published: 2021-04-05 12:24:37

---
title: Why I'm not sharing my knowledge
published: true
description: 
tags: react, webdev, html
cover_image:  https://images.unsplash.com/photo-1517984922331-8dbaa8ffa9c1?ixid=MXwxMjA3fDB8MHxzZWFyY2h8OHx8b3ZlcmNvbWluZyUyMGZlYXJ8ZW58MHx8MHw%3D&ixlib=rb-1.2.1&w=1000&q=80
---
I did a little investigation on myself, why I'm not sharing my Knowledge(How I learn stuff, How I debug, Problem I encountered and how I find a solution to it).These are the self limiting beliefs that are subconsciously restraining me from doing so:
<ul>
<li>Not a native English speaker, thus, I don't have good command of English.
</li>
<li>
It's not worth sharing.
</li>
<li>
haven't written an article before, I would/might f*ck up.
</li>
<li>
Someone has already written and shared an article on it.
</li>
<li>
I don't have enough time.
</li>

</ul>
<h5>
I didn't know I have a valuable things to share until I commented on a post @FrancescoCiull4 post  {% twitter 1374277086605631488 %}
</h5>

<h1>
I made a huge list of all my fears, And I'm challenging everyone of them, I think I've overcome this fear
</h1>

This is an unedited and unplanned article, I would start sharing my knowledge on:
<ul>
 <li>
FrontEnd development(javaScript, TypeScript, React.js, Vue.js, api integration) e.t.c.
</li>
 <li>
Backend development(api implementation, rest-api, graphql(both server and client) and so on.
</li>
<li>BlockChain technology(Ethereum, solidity, ) e.t.c
</ul>
<h3>Please If you are reading this, There is room for criticism,  I need it to grow. Stay tuned!, see you later </h3>
Roles, coordinations and convetions in web development
Tags: webdev, productivity, discuss, career
Published: 2021-04-05 12:18:38

---
title: Roles, coordinations and convetions in web development
published: true
description: Organize work, schedule times, optimize communication flows and then talk; they are all valid instruments guaranteeing the expected results.
tags: WebDev, productivity, discuss, career
cover_image: https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80
---

Backend, UI/UX Design and Frontend, the three protagonists of web development.
If in the first two it is planned, in the third, in some aspects, it is implemented. Coordination is necessary.

UI/UX Design must be conceived knowing the logic of the Backend and the tools of the Frontend; the Backend must pay attention to the best way to provide data, preferring performance. The Frontend must interact with both of its partners!

You need rules, conventions to be respected among those repaired within them, for example by writing, or testing, the code with the same style.
Organize work, schedule times, optimize communication flows and then talk; they are all valid instruments guaranteeing the expected results. 
Personally, I solved problems in 5 minutes by speaking with voice rather than 30 frustrating minutes of chat.

In my frontend experience, sometimes it was necessary to change and then think about new UI or UX solutions, because the main players in the design didn't coordinate, they didn't talk to each other. This has repercussions on time and labor costs.

> We should learn to communicate in person, before developing in the communicative field.
Tablesome - advanced WordPress responsive table plugin
Tags: wordpress, webdev, design, beginners
Published: 2021-04-05 12:06:22

We have launched a new responsive table plugin called [Tablesome](https://wordpress.org/plugins/tablesome/) in the WordPress repository. 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ftjwprr8qbm01qssg2nq.png)
You can quickly create responsive tables with unlimited rows and columns and embed the table in pages and posts.

## What are the features of this WordPress table plugin?
It comes with some mecessary table features such as,

* Importing tables from CSV and XLSX files
* Table Filtering and Sorting
* Table Pagination
* Basic Styling and Colors
* Adding Images and Links

### How is it to create a table?
With Tablesome it is very easy to create large tables with many number of rows and columns. If you want to know how easy it is, you can watch the video we have made and see for yourself. 
{% youtube 6rd1x9UFWQ0 %}

### What are the benefits of using Tablesome compared to other plugins?
Almost all the other WordPress table plugins require that you fix the number of rows and columns before you create the table. Tablesome has been designed in such a way that you can create new rows and columns as you go and does not limit the number of rows and columns that you can create.

### Open for Feedback and Feature Suggestions
This plugin is in active development and you can expect more features in future releases. It would be great if WordPress users can try it and give your feedback and feature suggestions [here](https://wordpress.org/support/plugin/tablesome/).
Daily Developer Jokes - Monday, Apr 5, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-04-05 12:00:14

---
title: "Daily Developer Jokes - Monday, Apr 5, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Monday%2C%20Apr%205%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258922d1b9.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*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:
I’ve been hearing news about this big boolean.

Huge if true.
 -->