teleren/devto huggingface dataset:
A wheelchair is just not a wheelchair for us
Published: 2021-04-14 09:11:36

Some of us might be intimidated on how to talk to <a href="https://hospitalbedrent.com/wheel-chair/">wheelchair</a> users, so they get are a little hesitant for approaching the users to introduce themselves. Maybe they might have even done their possible internet search as well on interacting with the wheelchair users so that it won’t get much awkward for them or even for yourself, and also to ensure that it doesn’t end up accidentally insult them. 
They initially utilize their wheelchair. But their wheelchair isn’t utilizing them. A wheelchair is mainly a tool, for a medical device that can be used when required, and also there isn’t any different than having a medical device like a pair of eyeglasses. As glasses initially help people to see clearly. Similarly, wheelchairs help some people to walk when required. 
A wheelchair is initially a medically advisable thing, as an object which can be utilized by needy ones. It might seem funny how it was meant or not, or maybe how a person utilizing a wheelchair will be treated like any of their wheelchairs, instead of them as the human they are. For an instance consider that this will make our plans around these wheelchairs, instead of making out the plans with the person. Although it is very much reason to concern the accessibility with a wheelchair, a person who might be using one is again to put out a second. Making plans with another person to do and what they might want to do, also not just what their wheelchair might allow them to do.
3 Projects you should make in Python
Published: 2021-04-14 09:07:54

A Mad Libs Generator

The Mad Libs Generator is a perfect project for beginners because it is just focused on strings, variables, packages input data.  

Calculator 
The Calculator is a medium-skilled level for python programmers. The calculator can include Math, strings, variables, etc.

Typing Speed Test
This project can be more advanced for python beginners. Do you know the 10fastfingers website and typing.com websites? you are going to make a website like that.
PHP Dropzone Add Download Button Example
Tags: php, php8, dropzone, download
Published: 2021-04-14 09:07:10

Hi Guys, Today,I will learn you how to use dropzone file upload in php.we will help you to give example of dropzone a…
https://itwebtuts.blogspot.com/2021/04/php-dropzone-add-download-button-example.html
[C#] 명쾌한 abstract 메소드와 virtual 메소드 차이점
Tags: csharp, korean
Published: 2021-04-14 09:01:35

> 2015년 8월 21일 from [blog.hazard.kr](https://web.archive.org/web/20180704033755/http://blog.hazard.kr/archives/489)

왠지 모르게 다들 어렵게 설명한다.
데브피아만 가도 “abstract는 없으면 인스턴스 생성 안되고 virtual 은 없어도 인스턴스 생성된다…”
한국 종특인 돌려말하기인지 모르겠지만, 초보들에게는 더럽게 이해 안되는 답변이다.
심지어 그런거 모르냐, 책을 읽어라, 알게된다. 이지랄까지 하고 있으니…
선배 개발자들 맞는지 의문 투성이다 정말. 먹고살기 빠듯한 건 아는데 그렇게 가르쳐주기 귀찮았냐 하는 생각이 든다.
내가 후배 개발자를 위해 간단명료하게 설명한다.

자. 네가 얻은 새로운 집에 시멘트만 있는 방 내부를 꾸미게 됐어.
이게 abstract class 다.

벽지는 붙여야지? 안그럼 방이냐? 폐가지.
그리고 장판 깔아야지 안그럼 맨발로 방 못들어가잖아.
그래서 벽지와 장판 붙이는 기능을 가진 메소드를 abstract로 선언한다.

좋아. 벽지는 일단 붙였어. 그럼 벽지에 데코를 붙이는 생각도 했을거야.
예를 들면, 벽에 뭐 매달거나, 야광 스티커를 붙이거나 할거야.
근데 이건 안해도 지장 없잖아.
그래서 벽지 데코를 붙이는 메소드를 virtual로 선언한다.

이해했지?

```cs
public abstract class 추상인테리어{
    public abstract 벽지 벽지칠하기();
    public abstract 장판 장판붙이기();
    public virtual 데코레이션 데코붙이기(){
        return null; // 기본 데코 안붙일거다.
    }
}

public sealed class 철수인테리어 : 추상인테리어{
    public override 벽지 벽지칠하기(){
        var 벽지칠 = new 벽지();
        var 벽지색 = 벽지색깔.파란색;
        //벽지 칠하는 프로세스 구현
        return 벽지칠;
    }
    public override 장판 장판붙이기(){
        var 장판깔기 = new 장판(장판.흔한거);
        //장판 까는 프로세스 구현
        return 장판깔기;
    }
}

public class 영희인테리어 : 추상인테리어{
    public override 벽지 벽지칠하기(){
        var 벽지칠 = new 벽지();
        var 벽지색 = 벽지색깔.분홍색;
        벽지칠.패턴 = 벽지패턴.꽃무늬;
        //벽지 칠하는 프로세스 구현
        return 벽지칠;
    }
    public override 장판 장판붙이기(){
        var 장판깔기 = new 장판(장판.예쁜거);
        //장판 까는 프로세스 구현
        return 장판깔기;
    }
    public override 데코레이션 데코붙이기(){
        var 데코 = new 데코레이션();
        데코.종류 = 스티커.야광(색깔.초록색);
        //데코 붙이는 프로세스 구현
        return 데코.다붙였다();
    }
}
```

존나 흔한 이름으로 클래스 붙였다.
끗.
7 Steps To Crack Any Coding Interview Question
Tags: career, interview, coding, confidence
Published: 2021-04-14 09:00:38

As aspiring software engineers, we are constantly challenged by coding interviews in our career. In fact, mastering it is a must to land your next dream job in software engineering (or related) discipline.

Coding interviews can be sometimes brutal and make you doubt yourself. After going through months of preparation practicing your data structures & algorithms, it can be a heartbreaking experience failing to crack the coding interview with your dream company.

These 7 steps to approach coding interview questions are effective because cracking the coding interview is not just about your technical prep, but also:

- listening skills
- communication: ability to articulate your thought process
- being meticulous: not rush and miss important details
- staying critical towards your solution
- picking interviewer hints: they usually try to guide you.

Try to incorporate these 7 steps next time you solve any coding interview question. They have helped me improve my interviewing skills dramatically.

Step 1 – Understand the problem
Step 2 – Use an example that is big enough (no special cases).
Step 3 – Find a brute force solution to the problem.
Step 4 – Optimize the solution!
Step 5 – Run through your solution in detail.
Step 6 – Write Clean Code!
Step 7 – Test Your Code.

[Continue reading](https://ankurkhemani.com/best-coding-interview-tips/)
Side Navigation Bar in HTML CSS & JavaScript
Tags: sidenavbar, sidenavigationbar, sidebarmenu, htmlcss
Published: 2021-04-14 08:47:14

**Q: How To Create Responsive Side Navigation or Sidebar Menu in HTML CSS & JavaScript?**
A: After reading the given article and watching the video tutorial, you will able to create a sidebar that I have given as an image. 

Hello all of you, welcome to my other blog of Responsive Side Navigation Bar. Today in this blog will learn to create a Responsive Sidebar Menu using Html CSS & Javascript. I have been designing and writing several video tutorials and articles related to Side Navigation Bar or Sidebar Menu by using only  HTML & CSS but today we will add JavaScript code also.

**What is the Side Navigation Menu Bar?**
A sidebar is the combination of various navigation links that align on the right or left side of the webpage and helps to faster move from one webpage to another to the users. The main purpose to create a sidebar is for small sizes screen devices like tablets, mobile. There is only one difference between the side navigation bar and the navigation bar is, the navigation bar is a large screen size device like a laptop, computer, and side navigation from small sizes devices. Actually, we convert the navigation menu to the side navigation menu.

I have uploaded one image of the side navbar design that we are going to create. We can include or add various navigation links, logos,s and social media icons inside the sidebar. To make the sidebar fixed while scrolling we just add the following codes:
position: fixed;
left or right: 0px; (where you want to keep)
top: 0px;
height: 100vh;
width: as your need for example: 250px;

To see the real demo of this animated dashboard side navbar and all the code that I have used to create this type of sidebar, you need to watch the full video tutorial of this programming that I have given below. 

##Side Navigation Bar [Source Code]##
You can download all source code from the given link. <a href="https://www.codinglabweb.com/2021/04/responsive-side-navigation-bar-in-html.html">Click Here To Download All Source Code</a>
Learn from Facebook: Keep your Status Page Separately from your Infrastructure 
Tags: devops, sre, monitoring, saas
Published: 2021-04-14 08:37:00

Yesterday April 8th 2021 at around 22:00 UTC, Facebook experienced a major outage where Facebook, Messenger, WhatsApp web and Instagram were all down and unavailable.

The last update was reported 3 hours later resolving the incident, so even though the status page doesn’t state the duration of the incident, we can assume it was still affecting some users that long.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2erdmkvlxiwci5sg7iya.png)

Today there is no company or service that can realistically be free of outages and have 100% uptime, incidents happen, but how you respond to and communicate them makes all the difference to your customers and users.

When it comes to communicating incidents, a [status page](https://statuspal.io/features/status-page/) is a tool that continues to grow in popularity, as it provides users publicly and privately with timely information when an incident arises.

But what happens if you host your own status page within the same infrastructure where your services live?

## The problem

Facebook's status page (https://developers.facebook.com/status/) is a self hosted, home made solution, and is apparently hosted within the same infrastructure as the other services affected by this outage.

This puts their status page at risk of being affected by the very same issues it's meant to report on, which is exactly what happened yesterday, as verified by multiple Hacker News users.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d1u4l2be0sr1kciy0m7u.png)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4muozz14shtqmr9zmxmq.png)

## The solution

A golden rule for successful incident communication ought to be: **never host your status page within your own infrastructure**, and if you *have* to self host it, at the very least use completely separate infrastructure, data centres, hosting provider and domain.

[Hosted status page](https://statuspal.io/features/status-page/) solutions solve this problem fully, as you delegate the hosting of your status page to a third party, you just need to make sure you don't share infrastructure with the status page provider you choose.


---

Looking to create a hosted status page? sign up at [Statuspal.io](https://statuspal.io).
Setup MySQL Database for WordPress
Tags: wordpress, database, mysql
Published: 2021-04-14 08:24:26

Here are the steps for setting up a database for WordPress on a Ubuntu server(Assuming MySQL in already installed).

1. Log into mysql using root
''' sudo mysql -u root'''
Note: On new Ubuntu version password is not required.

2. Create a database.
```CREATE DATABASE IF NOT EXISTS wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;```
Or use UTF8mb4 if you want emojis.
```CREATE DATABASE IF NOT EXISTS wordpress DEFAULT CHARACTER SET UTF8mb4 collate utf8mb4_bin;```
3. Create a User
```CREATE USER IF NOT EXISTS 'wordpressuser'@'localhost' IDENTIFIED BY 'password';```
```CREATE USER IF NOT EXISTS 'wordpressuser'@'%' IDENTIFIED BY 'password';```
4. Grant privileges to the user
```GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'localhost';```
```GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'%';```
5. ```FLUSH PRIVILEGES;```
6. ``` \q ```


Nuff said.
Static analysis of Java application dependencies
Tags: devops, security, java
Published: 2021-04-14 08:06:15

In this article, we deal with the OWASP A9: 2017 — Using Components with Known Vulnerabilities and we automate this in continuous integration pipelines with Jenkins, Gitlab CI and GitHub Actions. The code repository is available in the article.

Link to the complete article:  https://medium.com/linkbynet/static-analysis-of-java-application-dependencies-9887c087a7f8
Automate data entry from PDF to Excel with Python
Tags: python, productivity, showdev
Published: 2021-04-14 07:35:50


I will show you today how you can automate the process of importing  PDF data into Excel. This can save a lot of time for everyone doing this daily.  

This is our test data:
![enter image description here](https://i.ibb.co/N6Jym6X/slika-test.png)

Let's jump to the code!

First we need to import dependencies

```python
from tika import parser
import pprint
from collections import defaultdict
import re
import pandas as pd
```

After that we need to define PrettyPrinter and get the content of the PDF file and convert it into a list:

```python
pp = pprint.PrettyPrinter(indent=3)
parsedPDF = parser.from_file("final-test.pdf")

content = parsedPDF['content']
contentlist = content.split('\n')
```
Remove empty strings in the list resulting from the split

```python
contentlist = list(filter(lambda a: a != '', contentlist))
```
Create an iterator and other flags that we will use to for the algorithm, Iterator of the contents of PDF per line:
```python
iterateContent = iter(contentlist)
```
Dictionary placeholder of the data scraped

```python
data = defaultdict(dict)
```
Our counter to count how many blocks did we able to get

```python
 cntr = 0
```
Indicator which line are we in a specific block of data
```python
 line = 1
```
The algorithm will use the flags cntr and line to determine if we are in a new block or existing block
```python
while True:
    try:
        string = next(iterateContent)
    except StopIteration:
        break

    if re.match('^[A-Z\s]+$', string):
        cntr += 1           

        data[cntr]['Name'] = string
        line = 2
        print('matched')

    elif line == 2:
        data[cntr]['Address'] = string
        line += 1

    elif line == 3:
        data[cntr]['Website'] = string
        line += 1
```

```python
print("Total data:", len(data.keys()))
```
Setting up the data into Dataframe
```python
df = pd.DataFrame(data.values())
df.index += 1
print(df)
```
Write the dataframe into excel

```python
writer = pd.ExcelWriter("dataframe.xlsx", engine='xlsxwriter')
df.to_excel(writer, sheet_name='output', index=False)
writer.save()
```

Our final results:

![enter image description here](https://i.ibb.co/r2gdLgb/excel.png)

Thank you all.
WWC MENTORSHIP WEEK 4-5
Tags: computerscience, womenintech
Published: 2021-04-14 05:46:53

WEEK 4:
The main agenda for this week was to focus on our DSA , our mentor asked us the topics which we were most confident about , she then curated a list of questions which we were supposed to solve .
That’s pretty much about week 4 .


WEEK 5:
The most crucial step while applying for an opportunity is the interview , so this week was all about interview prep.
The basic format of an interview

1. Introduction :
We are suppose to introduce ourselves , mention about our technical skills .We can also add some of our personal achievements ,maybe community work.

2. Resume:
In this section questions will be asked regarding your resume .Be genuine about your projects , internship, community work etc.

3. Coding questions :
Here comes the most crucial part of an interview . First step while answering the question is to understand what actually the question is , if you have any doubts ask then and there . Now while you are answering make sure you are letting the recruiter know about your approach . Be sure to dry run your code.
Keep interacting with the interviewer , that’s the key .

4. Questions for the recruiter :
This is the last part of your interview , ask questions which will give them the impression that you genuinely want to be a part of the company .Do your research , have prior knowledge of the company your interviewing with .


With this our mentorship comes to an end , honestly there were so many things that i was not aware of but learnt all those in these 
5 weeks . Special thanks to our mentor Urvi Goel , who was constantly guiding us. Had an amazing experience !
SITUS TOGEL PENGHASIL DUIT
Tags: mobile, motivation, android, architecture
Published: 2021-04-14 07:18:14

Situs togel dana - Daftar situs di http://68.65.123.100 akan memberikan informasi tentang bandar togel terpercaya dan terbaik. Saat ini banyak pemilik bo menggunakan aplikasi pulsa, ovo dan dana.
Applying slots in Vue for a Tabs component
Tags: vue, javascript
Published: 2021-04-14 07:14:27

I recently completed Udemy courses on [Vue](https://www.udemy.com/course/vuejs-2-the-complete-guide/) and [Nuxt.js](https://www.udemy.com/course/nuxtjs-vuejs-on-steroids/).
I decided to test this framework to build a [Vaccine Tracker](https://vaccine-tracker.netlify.app/). Having a background in React, learning was smooth and natural.

An incredibly versatile element is the **slot**. From the first moment I wondered how they could be used for the construction of complex and at the same time versatile layouts. For example a *Tabs component*.

***

## Tabs component implementation

As props it is sufficient that it receives a **list of** all the **tabs** to display.
In the state it is sufficient to **keep track of the activated tab**.
Finally, we need a method that is triggered when clicked on a different tab.

```js
<script>
import Vue from 'vue'

export default Vue.extend({
  props: {
    labels: {
      type: Array,
      require: true,
    },
  },
  data() {
    return {
      activeLabel: this.$props.labels[0],
    }
  },
  methods: {
    onLabelClick(label) {
      this.activeLabel = label
    },
  },
})
</script>
```

So far (syntax aside) nothing different from any other framework. However, the magic happens in the template:

```html
<template>
  <div>
    <div v-for="label in labels" :key="label" @click="onLabelClick(label)">
      {{ label }}
    </div>
    <slot :name="activeLabel">Default {{ activeLabel }}</slot>
  </div>
</template>
```

That's all. One iteration to show each tab. Below is a **slot** whose `name` is updating when one of the tabs is clicked.

> For the purposes of this post I ignore the style. You can get fancy!

***

## Tabs component usage

Wherever you want to use this component just do as follows:

```html
<Tabs :labels="['one', 'two', 'three']">
          test
          <template #one>
            <div>Uno</div>
          </template>
          <template #two>
            <div>Due</div>
          </template>
          <template #three>
            <div>Tre</div>
          </template>
        </Tabs>
```

Of the different templates, only the one relating to the active tab will be shown.
It's amazing how so few lines can lead to such versatile behavior.

---

Thanks for reading,
[Repo 📑](https://github.com/didof/lazy-loading-with-hooks)

If you like it, let's get in touch
[🐙](https://github.com/didof/), [🐦](https://twitter.com/did0f) and [💼](https://www.linkedin.com/in/francesco-di-donato-2a9836183/)
Setup GPG for git on macOS
Tags: git, gpg, mac
Published: 2021-04-14 07:08:09

---
title: Setup GPG for git on macOS
published: true
description: 
tags: ["git", "gpg", "mac"]
//cover_image: https://direct_url_to_image.jpg
canonical_url: https://jma.im/setup-gpg-on-macosx/
---

# Install gnupg and pinentry-mac

```
brew install gnupg
brew install pinentry-mac
```

# Generating a GPG key

[Github help](https://docs.github.com/en/github/authenticating-to-github/generating-a-new-gpg-key)

## Generating key

```
gpg --full-generate-key
```

## Checking the key

```
gpg --list-secret-keys --keyid-format LONG
/Users/hubot/.gnupg/secring.gpg
------------------------------------
sec   4096R/3AA5C34371567BD2 2016-03-10 [expires: 2017-03-10]
uid                          Hubot 
ssb   4096R/42B317FD4BA89E7A 2016-03-10
```

## Copying the key

In this example, the GPG key ID is `3AA5C34371567BD2`

```
gpg --armor --export 3AA5C34371567BD2 | pbcopy
```

# Load the key for git

```
vim .gnupg/gpg-agent.conf
```

add the line

```
pinentry-program /usr/local/bin/pinentry-mac
```

# Backup and restore

```
gpg --export-secret-keys KEY_ID > my-private-key.asc
gpg --import my-private-key.asc
```
Reuniting with an old friend over coding
Tags: devjournal, codenewbie, womenintech
Published: 2021-04-14 07:06:17

Recently, I caught up with one of my good friends from college whom I'd lost touch with over the years. I knew it would be just like picking up where we'd left off, over Zoom, and it definitely was.

The reason we'd actually gotten back in touch was coding of all things!

He's actually teaching himself to code at the moment and going through something of the same thing I did with making the whole career transition, step by step and improving his skills over time.

It's so funny to think about because we came from _totally_ different academic backgrounds - I studied English Literature and he studied architecture.

I remember us during our first year of college, traipsing all the way to the other end of campus on Tuesday and Thursday evenings for our Existentialism lectures. (We still don't know why we ended up taking that course, and as mere freshmen! We seriously had no idea what was going on.)

But I remember us in that course together, sitting near the back of the rickety lecture hall in one of the old and charmingly haunting philosophy buildings and trying to understand what was going on all while rolling our eyes at another student who would constantly ask questions to find out more about what Heidegger meant by this or what Nietzsche meant by that. (Recall: we still had no idea what was going on.) 

Throughout college, D and I remained close. We never took another class together again, but there was a feeling of deep friendship there.

After college, we lost touch. I think I reached out when I'd heard the news that our philosophy professor, a true giant in the field, had passed away after a long life and career. 

Catching up with my friend, it was like picking right back up from where we'd left off but with pieces missing that we'd just have to fill in as we went. I didn't even know he'd gotten his masters in Architecture. And was now living in London, just mere hours from me on a plane.

Catching up, and being able to find that link of friendship again, over coding of all things. And what a reunion it was - seeing that spark that I felt when learning and still do even now (and I hope will always feel). Being able to share this passion when it feels difficult to share with others who aren't in the same sphere and don't necessarily know what we mean when we throw around terms and phrases like "React" or "static site generators" or "back-end engineering."

All the while, I kept thinking about how different our paths were - English lit and architecture, respectively - the steps of our walks to classes across the map of the sprawling UC Berkeley campus, and how we had no idea that they'd one day lead us to this career in coding and building and constant learning and discovery.

Yet again, we don't always know where things will lead us. But we'll always be glad for the way we got there.

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

I send weekly newsletters about the self-taught coding journey and my own coding adventures (and misadventures!)  [Sign up here! >>](https://ladies-code-collective.ck.page/e53b5fca44)
My jounry
Published: 2021-04-14 07:06:06

hii, I am starting this blog because, I want to become accountable for my action. Blogging will also help to overcome by not talk with stupid people syndrome. Please take care of me.

## Problem Want to solve
1. Take a target
2. Plan about it.
3. Do something.
4. Forgot about it.
5. Repeat step 1. 
6. Want to Solve the problem.
7. Start blogging about that task to feel accountable so you can work hard. 

## Thing to achieve
* Write the current week plan on blog every week.
* Check the plan every week so it can solve the problem.
* Read comment to feel good.
* Improve my documentation skills.
* try to improve the  writing skill.