teleren/devto huggingface dataset:
What interview questions have you been asked?
Tags: discuss, career
Published: 2020-08-07 03:48:36

If you want to get specific great! If not just a general overview of your interview process will be fine.

How many rounds of interviews?
What kind of behavioral questions were you asked?
What type of technical questions were you asked?
Were you given a take-home project?
How many people did you interact with during your interviews?
How do I connect Google App Engine to Cloud SQL?
Tags: googlecloud, postgres, help
Published: 2020-08-07 03:34:10

Hello Dev community! I'm wondering how exactly I would go about connecting my Node.js project in Google app engine to a postgreSQL database in the Google Cloud SQL platform. I followed the provided tutorial. But I'm not exactly sure how Unix sockets work (that's the default way for public IPs) and I can't get everything to connect when I try using TCP with the Google VPC service. A plain English explanation or practical example would be immensely helpful. The project can be viewed on my GitHub (its the portfolio website). Any insight or tips on that would be very helpful as well. Thanks in advance!
August 6th, 2020: What did you learn this week?
Tags: weeklylearn, discuss, weeklyretro
Published: 2020-08-07 03:04:30

<em>Wow!</em> First week of the August!

It's that time of the week again for the first time this year. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

![Processing data via an animated gif](https://media.giphy.com/media/HUplkVCPY7jTW/giphy.gif)

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

{%tag todayilearned %}
And remember, if something you learnt was a big win for you, then you know where to drop it as well.👇👇🏻👇🏼👇🏽👇🏾👇🏿

{% link https://dev.to/devteam/what-was-your-win-this-week-1fin %}

![Actress in a film saying crushed it](https://media.giphy.com/media/YPTy760meD2xi/giphy.gif)

<span>Photo by <a href="https://unsplash.com/@jeshoots?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">JESHOOTS.COM</a> on <a href="https://unsplash.com/s/photos/learn?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span>
Setting up SSH for Github in Linux
Tags: linux, github
Published: 2020-08-07 03:04:10

The developer's most used tool was Github, so every time you push your changes you will be asked to enter your Github details which is a tiresome work so setting an ssh key to your Github will make your life a lot easier.  
## Through the following commands you can easily setup ssh for GitHub in Linux 

* Open Your terminal and set the following 
```sh
git config --global user. name 'Your GitHub username'
git config --global user.email 'your GitHub associated email'
``` 

* After this step check if you have any SSH keys present locally by this commad.
```sh
ls ~/.ssh
``` 

* Now you have to generate ssh key in your terminal with the following command and click as enter for all the options as default values willl be enough for creating a ssh key
```sh
ssh -keygen -t rsa -b 4096 -c 'your Github associated email address'
```

* Now you have to copy the ssh and paste it in your github ssh settings, we can copy the ssh key easily using xclip.

* First install XCLIP through the following command
```sh
sudo apt-get install xclip
```

* Now copy your ssh key using xclip by this command
```sh
xclip -sel clip < ~/.ssh/id_rsa.pub
```

* Now open your GitHub account in the browser go to settings and select SSH and GPG Keys from the left sidebar.
![Screenshot from 2020-08-07 07-47-32.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1596766675006/zuH9s3hjb.png)

* Now Click New SSH Key button.
![Screenshot from 2020-08-07 07-49-15.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1596768728320/ttHDQE0U1.png)

* Now enter Your title and enter the copied ssh key from earlier. 

![Screenshot from 2020-08-07 07-49-47.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1596766804138/cu6uDDZyr.png)

* Now open your terminal and Check the ssh key using this command.
```sh
ssh -T git@github.com
```
* After this, you will be prompted with this text 
```
Hi Username! You've successfully authenticated, but Github does not support shell access. 
```

### Refernce 

If you are struck anywhere, please refer to this video tutorial https://www.youtube.com/watch?v=HfTXHrWMGVY.

### Conclusion 

Please try to use SSH for GitHub as it makes a life a lot easier and secure. If you are struck anywhere feel free to comment below I can help you to set up or some can help with your problem.
How to Learn Scientific Programming with C++?
Tags: programming, tutorial, beginners, computerscience
Published: 2020-08-07 03:00:24

Do you wish to learn programming? There are a plenty of courses online, but hardly you will find one that takes you to the next level of programming: Introducing the “[Scientific Programming with C++](https://school.scientificprogramming.io/course/scientific-programming-with-c/13)”.

The “[Scientific Programming with C++](https://school.scientificprogramming.io/course/scientific-programming-with-c/13)” is easiest and the most innovative hands-on practical C++ course for learning scientific and research data programming! It is also a finest example of Devops with Docker, Judge-API and TTYD technologies. We used these to build this course and we took 6-8 months of Devops times to build and cater the IDE environments for you.

While languages like Python and R are increasingly popular for Scientific Programming or Data sciences, C/ C++ can be a stronger choice for efficient and effective data and scientific computing. In this course, we hands-on the latest C++17 for Scientific Programming, software libraries, like MKL(Intel® Math Kernel Library), BLAS (Basic Linear Algebra Subroutines), LAPACK (Linear Algebra Package), STL (Standard template library), Boost (portable C++ library), MPI, OpenMP, CUDA and so on!

There are numerous hands-on to practice the C++ programming throughout the course. Happy coding!

### Requirements

You will need a grasp of basic C++. It is a self-learning course with all Linux and IDE environments are provided.

### Outcome

Understand programming C++ basics to the advanced C++ 17
Knowledge on developing complex C++ scientific applications
Learn about C++ libraries STL, BOOST, MPI, OpenMP
Be in a position to apply for Developer jobs, PhD and research positions requiring good C++

### Get it now!

[Scientific Programming with C++](https://school.scientificprogramming.io/course/scientific-programming-with-c/13)
Travis-CI x GitHub Actions. Which one is the best?
Tags: github, travis, ci
Published: 2020-08-07 02:58:10

I've always used the **Travis-CI** for all my personal projects during years and I'm still liking it very much, but recently I've been testing **GitHub Actions**.

In this case, I'm using the same project and the same process, so I compared the time of execution between these two tools to do it:

- Run Rubocop
- Run tests with Rspec

Okay, these are the times I got when I run the build:

- **Travis-CI result:**

![Travis-CI](https://dev-to-uploads.s3.amazonaws.com/i/uvu3fb56b6c6w5p8xs40.png)

- **and GitHub Actions result:**

![Github-Actions](https://dev-to-uploads.s3.amazonaws.com/i/rgrbgvb8h47f6ktwnk2n.png)

**What do you think about it?
Make your own tests and share them!**
Website Penetration Testing
Tags: kalilinux, azure, owasp, pentest
Published: 2020-08-07 02:54:00

---
title: Website Penetration Testing
published: true
description: 
tags: kalilinux,Azure,OWASP,PenTest
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/os8mcfmf4wqmhqybgau9.png
---
**PREREQUISITE**
- Kali Linux Virtual Machine
You can setup Kali Linux VM via Microsoft Azure Marketplace
https://azuremarketplace.microsoft.com/en/marketplace/apps/kali-linux.kali-linux?tab=Overview

- Setup Damn Vulnerable Web Application (DVWA) in Kali Linux VM

**This just for Education Purpose.**

In this article, we will use
- OWASP-ZAP

OWASP-ZAP is an easy-to-use integrated penetration testing tool for finding vulnerabilities in web applications.
1. Go to Applications > Web Application Analysis > OWASP-ZAP
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/shke5qyjymlz8jtd6fal.png)

2. Click "Accept".
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/56qc447bkkp57l9ap98z.jpg)

3. ZAP will start to load.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4yss4o6ahqslufnhlxpt.jpg)

4. Choose "No,I donot want to persist this session at this moment in time" and Click "Start".
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/523wzxojpgv5zs01iic5.png)

5. Enter URL of DVWA at "URL to attack" → click "Attack".
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/t0i0hrqjut9jgzp1gskr.png)

6. After the scan is completed, on the top left panel you will see all the crawled sites.
In the left panel "Alerts", you will see all the findings along with the description.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/1amzhkaf8gp4hfrcxt2y.png)

7. Click "Spider" and you will see all the links scanned.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/hmb1g3s9lt5w1a5xm38n.png)

**Conclusion**
I'm self learner and I'm not certified in any Cyber Security Certification. Try at your own risk. Feel free to comment.

**REFERENCE**
https://github.com/cheahengsoon/KaliLinuxTools
Humility as Software Developers
Tags: discuss, mentalhealth
Published: 2020-08-07 02:36:11

I've been thinking about this a lot since a live stream that did NOT go according to plan yesterday.

<mark>I wonder: is humility as big an issue for other software developers as it is for me?</mark>

Had my butt handed to me trying to implement a new concept that I'm only vaguely familiar with while coding live yesterday, and it shook me to not only have to admit to myself but also face my (limited) audience with my deficiency. 

With the patient help of a great coder (and fellow live streamer) in the chat, I managed to get through it, but I was honestly prouder of overcoming my compulsion to run away from "the big scary thing," admit my weakness, and learn something.

**So: do other devs out there have the same issue?**

What happens when you get "called out" (directly or otherwise, even if you're just calling yourself out) on something you aren't proficient in?

I think there are probably a number of factors to consider in my case at least. 

### We're told we're "so smart," usually from a very young age

Whether it's our proficiency with technology, our ability to solve logical puzzles, or some other innate quality that leads us to this crazy profession, I feel like devs are often recognized for being "smart cookies." Whether that's TRUE, of course, is a different discussion.

But in my case, then, when I confront something I DON'T know, I tend to recoil.

### We're problem solvers

Our job in code is to solve problems. We solve business problems with software solutions, we solve logical problems with elegant code, etc. 

When I face a problem I can't solve, then....

### Maybe it's cultural

Here I have the least understanding. For all I've been writing code for 15 years professionally and longer otherwise, I've been fairly insular (almost entirely solo dev work), so I don't have a good bead on the industry overall.

Is "perceived weakness" something that's culturally frowned upon across the profession? 

Perhaps, coming from the opposite side, I've just gone in the other direction. Self-sufficiency (Stack Overflow doesn't count) is what puts food on my table.

## Over to you

How do you deal with humility in your day-to-day? 

I can certainly recommend live streaming if you think you can master your fight-or-flight instinct. I was forced to confront this thing live, and while it wasn't pretty, I managed it.

Maybe there's a less painful way though? 🤣
The MVP is ready, now focus on SEO
Tags: discuss, showdev
Published: 2020-08-07 02:25:24

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4869hkokp4pb0ffj1z32.png)

🚀 We just launched an MVP this week. As feedback has been positive so far, we would like now to focus on SEO.

The results are OK with PageSpeed Insights and Webdev, but comments or remarks would help us to learn faster.

MVP address : [www.thedatapond.net](www.thedatapond.net)

🙏
The Diversion: SCAMP Assesment
Tags: 100daysofcode, javascript
Published: 2020-08-06 20:23:52

The wave of life today blew me to a technical assessment for an application at SCA (She Codes Africa). I'll be putting my habits projects on hold to tackle the assessment. Its part of an application process to secure mentorship. I'm not betting on getting in (my relationship with Essays is pretty complicated😬, and ofcourse applications never miss essays!) but I'm definetly attempting the assessment. I like a challenge that forces me to learn on a deadline. Here is the [challenge](https://github.com/she-code-africa/SCAMP-Cohort3-Technical-assessment/blob/master/intermediate/nodejs.md).

I need a working API whose functionality is almost similar to the [habits API](https://dev.to/mtee/habit-tracker-api-project-setup-ji9) i've been working on. And so I'll not dive into the nitty-gritty of it. The process in a nutshell is: 
* Instialize npm
* Install and create a new Express application
* Install setup up node nodemon
* Install mongoose and create a database connection
* Set up a port and listen for connections
* Set up a router and routes
* Handle the get and post requests
* Set up middleware to get product by id.
* Handle put, patch and delete requests.
* Test on postman.

And all that was todays work.The API is up add running, i suppose thats the easy bit. The next bit will need some serious googling/trail and error. Until then I'm calling it a day!


_Day 21_
How to generate a SSH key and add your public key to the server for authentication
Tags: ssh, server, authentication, keygen
Published: 2020-08-07 02:03:12

SSH keys are an easy way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH key and adding the public key to the server.

## Check for existing SSH Keys

First, check for existing SSH keys on your computer. Open Git Bash, Cygwin, or Terminal, etc. and enter the following command

``` bash
# List all the files in your .ssh directory, if it exists
$ ls -al ~/.ssh
```

Check the directory listing to see if you already have a public SSH key. By default, the filenames of the public keys are typically one of the following

- `id_dsa.pub`
- `is_ecdsa.pub`
- `id_ed25519.pub`
- `id_rsa.pub`

If you see an existing public and private key pair listed (for example id_rsa.pub and id_rsa) that you'd like to use, you can skip ahead to **adding your key to the ssh-agent**.

## Generate a new SSH key

With your command line tool still open, enter the text shown below. Make sure you substitute in your email address

``` bash
# Create a new ssh key, using the provided domain username and computer name as a label
$ ssh-keygen -t rsa -b 4096 -C "mcflym@N123456"

Generating public/private rsa key pair.
```

You'll be asked to enter a passphrase, or simply press Enter for no passphrase

``` bash
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
```

After you enter a passphrase (or just press Enter twice), review the fingerprint, or 'id' of your SSH key

``` bash
Your identification has been saved in /Users/username/.ssh/id_rsa.
Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
The key fingerprint is:
nss2VhNB0Y62VIToM+/qYe3HS4TPXmrhuBxjUz4l/I8= your@email.com
```

## Add your key to the ssh-agent

To configure the ssh-agent program to use your SSH key, first ensure ssh-agent is enabled.

``` bash
# start the ssh-agent in the background
$ eval $(ssh-agent -s)
Agent pid 59566
```

If you are using Git Bash, enable the ssh-agent with command shown below instead

``` bash
# start the ssh-agent in the background
$ eval `ssh-agent`
Agent pid 59566
```

Then, add your SSH key to the ssh-agent

``` bash
$ ssh-add ~/.ssh/id_rsa
```

## Add your SSH key to the server

To add your public SSH key to the server, you'll copy the public SSH key you just created to the server. Substitute "username" with your username on the server, and "server.address.com" with the domain address or IP address of your server

``` bash
$ cat ~/.ssh/id_rsa.pub | ssh username@server.address.com 'cat &gt;&gt; ~/.ssh/authorized_keys'
```

The server will then prompt you for your password. Type in the password you created when you generated a new ssh key (or just press enter if you did not add a password)

``` bash
username@server.address.com's password:
```

That's it! :tada: You should now be set up to connect to the server without having to authenticate.
What apps have you built using Flutter?
Tags: flutter, showdev
Published: 2020-08-07 02:01:15

Have you developed an awesome app using Flutter? **I want to see it.**

I like browsing apps and websites built using a specific stack. It's a great way to get inspiration while developing your own app. And once you've created your app it's a great way to show-off your creation.

If you've developed an app with flutter and want to share it: Submit it to **[Built with Flutter](https://builtwithflutter.dev)**.
CARTOON GIVES RELAXATION TO MIND. ANIMATION COURSE
Tags: animationcourse, animationinstitute, animationcourseindelhi, animationinstituteindelhi
Published: 2020-08-07 01:41:10

In today time, when there is so horrible situations around us in the form of corona. Every human being, feels so depressed and unhappy because we can’t go anywhere and meet anyone. At this pandemic time we need something which gives relaxation to our mind and also give positive Energy to us. One day, I feel so depressed and my mood swings rapidly. I saw that my children is watching cartoon on TV. I sat with them and start watching cartoon. After some time, I feel a major difference in my mood. I started laughing and very curious to know that what will be happen next in the cartoon. My children looked at me and said that mummy now you are looking so happy, cartoon create a magic on you. At the same time I also feel that it sucks my all worries and I started thinking that who made this cartoon which provides positive impact on me. Then my elder son told me that these cartoons were made by animators. And my son told me that mummy I also want to learn <a href="https://www.animationboom.net">animation course</a> from an <a href="https://www.animationboom.net">animation institute</a>.

From that time, I started searching the best animation institute for my son. I found Animation Boom is the best institute for my son. They design their animation Course in such a way that easily and conveniently you do all the softwares and become a animator. The fees structure is also not high as compared to other institutes. They also give an written job agreement to my son. To keep all this things in my mind I make a programme to join Animation Boom. The animation course provided by the animation institute is very beneficial for the students. If you also want to join Animation Boom so please call Mr Manish @ 9899116732, 9212121496
Responsive Background Image Using CSS
Tags: css
Published: 2020-08-07 01:20:36

Recently, I've been working on my [portfolio (shameless plug 😅)](https://www.cindycai.me/) and learning about how to make it more responsive. A responsive website will adapt to a change in screen size so that the website will nicely display the page content. 

You can create a responsive background image with just CSS.

HTML
```html
<div class="bg"></div>
```

CSS
```css
.bg {
  height: 100vh;
  min-height: 500px;
  background-image: url(images/bg.jpeg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #1d3557;
}
```

* `height: 100vh` means the height of this bg element to be 100% of the viewport height
* `min-height: 500px` sets the minimum height of the element
* `background-position: center center` will center the image vertically and horizontally at all times
* `background-repeat: no-repeat` prevents the image from repeating and creating the tiled look
* `background-attachment: fixed` keeps the image fixed in the viewport so even when you scroll down it won't move. Creates the parallax scrolling effect where the background content moves at a different speed than the foreground content while scrolling. When scrolling, it looks like the rest of the website scrolls on top of the background image.
* `background-size: cover` will make the background image resize to fit the size of the screen 
* `background-color: #1d3557` will set a background color that will be displayed while the background image is loading

This code worked well on laptops, but on iPhones and iPads (haven't tested on other types of devices), the background image was very zoomed-in, leaving me with a pixelated image.
 
After some research, I learned that the problem was with the `background-attachment` property. Some mobile devices have a problem with `background-attachment` being `fixed`, so to fix this, you just need to use media queries to turn off the parallax effect for mobile devices by setting `background-attachment` to `scroll`.

```css
/* Increase/decrease the pixels if needed */
/* For all devices with a screen size smaller than 1366px, the background-attachment property will be scroll instead of fixed */

@media only screen and (max-device-width: 1366px) {
  .bg {
    background-attachment: scroll;
  }
}
```

Now, you should be able to see the full background image on all devices instead of a pixelated corner of the image!