teleren/devto huggingface dataset:
Testing the Event Horizon - My InfoSec and QA Journey.
Tags: devjournal, infosec, softwaretesting, qa
Published: 2019-09-01 07:56:02

> You must accept that you might fail; then, if you do your best and still don't win, at least you can be satisfied that you've tried. If you don't accept failure as a possibility, you don't set high goals, you don't branch out, you don't try - you don't take the risk. - Rosalynn Carter

This first blog post is going to be my effort to track my progress, to solidify what I'm aiming to do soon. By journaling about my progress, goals, and motivations, I will be able to keep a record of what I've achieved.

It also helps with the networking aspect if people read, like and comment on what I've written.

So what will I be blogging about? 

Two main areas - Quality Assurance and Information Security.

__*Quality Assurance*__ - I've been in the QA game since 2004 so it's been a while and while I haven't seen the wide range of what's out there in the field, I like to think that I've dabbled in a bit of everything. I'm a believer in exploratory testing, being an advocate of good quality being present within the team and I always view as automation as a good tool to aid rather than being the mythical unicorn that will come in and solve everything.

I'm starting a new job soon where I'll be defining processes and seeing what I can to do to improve. What I'll do is a blog about it (obviously generically enough to not give too much away). I think it will be a good way of 

* Tracking my accomplishments
* Show to myself and others, that yes I do know what I'm on about
* Connect to other people in the QA blogosphere.

__*Information Security*__ - I've always been interested in Security in the context of Quality Assurance, but in the past, I've never really known how to start. Only recently, by looking at people on Twitter have I been able to step back and do some research on what Information Security means.

That is one of the reasons I chose the name *Testing the Event Horizon* - I know it doesn't make sense, but the way I see the field of InfoSec is that once a certain point, it just pulls you in and you have no chance of getting out.

I never realised that there were so many avenues in the field from research to incident response, to blue/red/purple teams and other avenues that I've not explored yet.

For me, it's a case of I think that I'm interested in Application Security more than reverse-engineering malware. I'm interested in wifi/phone security than having to look at assembly code.

However, I'm not going to say no as learning is going to be fun, I think that's where my interests are going to be focused on.

What I am doing is going back to basics and learning about networks and delving deep into APIs and really understanding what it means to test APIs. I@m also looking at resources such as picoCTF, Overthewire and OWASP Juice Box.

I'm also keen on getting a mentor in the InfoSec space. 

So I'll keep this short and continue to write more. 

Look forward to hearing comments.
Unityで画面外に移動してしまったウインドウの位置をリセットする
Tags: unity3d
Published: 2019-09-01 07:48:00

---
title: Unityで画面外に移動してしまったウインドウの位置をリセットする
published: true
tags: Unity
date: 20190901T07:48Z
canonical_url: https://qiita.com/shiena/items/f94a66e6b0a1453998f6
---
# はじめに

UnityでHierarchyやConsoleウインドウを何かの拍子で画面外に移動してしまう事があります。このウインドウはUnityが独自に管理しているのでOSに準じた方法で移動する事ができないので何とかリセットする方法を調べました。

# Windowsの場合

1. Unityを終了します。
1. レジストリエディタで`HKEY_CURRENT_USER\Software\Unity Technologies\Unity Editor 5.x`を開きそれらしいキーを探します。
1. たとえばConsoleウインドウの場合はスクショのように座標とサイズの4つのキーがあるので`UnityEditor.ConsoleWindowx_h3505357846`と`UnityEditor.ConsoleWindowy_h3505357847`を開いてすべての値を0で上書きします。
キー自体を削除したり桁数が異なると反映されないので注意してください。
1. Unityを開くと画面の左上にウインドウが表示されます。

キー名末尾の`_h3505357847`はハッシュ値なのでキー名を探す時は無視しても問題ありません。

![image.png](https://dev-to-uploads.s3.amazonaws.com/i/kwsznsqqy6rr2t4i8vyb.png)
![image.png](https://dev-to-uploads.s3.amazonaws.com/i/hy36xrut9hsd5og9qdo1.png)

余談ですが、自分の環境は4KディスプレイとフルHDディスプレイを混在していて4K側にUnityを配置してフルHD側に何かのウインドウを配置した際に画面外に移動してしまうことがありました。その時にフルHD側にUnityを移動してレイアウトをリセット後にUnityを再起動すると画面外に移動したウインドウの位置がリセットされました。

# macOSの場合

`~/Library/Preferences/com.unity3d.UnityEditor5.x.plist`にWindowsと同様の設定が保存されていますが変更しても反映されませんでした…
Top YouTube Channels to hone Data Structures and Algorithms skills
Tags: articles, reading, web
Published: 2019-09-01 07:40:02

---
title: Top YouTube Channels to hone Data Structures and Algorithms skills
published: true
description: Top YouTube Channels to hone Data Structures and Algorithms skills this Weekend
tags: articles, reading, web
cover_image: 
---

In this article, we would be having the list of best (just an opinion though!) YouTube channels you can use to hone your Data Structures and Algorithms skills. 

So, let us start:

1.<b> Gaurav Sen (My personal favourite)</b>
No Of Subscribers: 136K
Link to the channel: <a href="https://www.youtube.com/channel/UCRPMAqdtSgd0Ipeef7iFsKw"> Gaurav Sen</a>


2.<b> Abdul Bari </b>
No Of Subscribers: 148K
Link to the channel: <a href="https://www.youtube.com/watch?v=x9Hrn0oNmJM"> Abdul Bari</a>


3.<b> Tushar Roy - Coding Made Simple</b>
No Of Subscribers: 134K
Link to the channel: <a href="https://www.youtube.com/channel/UCZLJf_R2sWyUtXSKiKlyvAw"> Tushar Roy - Coding Made Simple</a>


4.<b> Rachit Jain</b>
No Of Subscribers: 68K
Link to the channel: <a href="https://www.youtube.com/channel/UC9fDC_eBh9e_bogw87DbGKQ"> Rachit Jain</a>


5.<b> GeeksforGeeks</b>
No Of Subscribers: 182K
Link to the channel: <a href="https://www.youtube.com/channel/UC0RhatS1pyxInC00YKjjBqQ"> GeeksforGeeks</a>

<b>Feel Free to add your own in the comments box to help build this list.</b>

<div id="custom_sub_div">
  Liked this blog? Don't miss out on any future blog posts by <a href="http://eepurl.com/gveQr5" target="_blank"><b>Subscribing Here</b></a> or you can also like our <a href="https://www.facebook.com/fullstackgeek"><b>Facebook Page</b></a> or follow us on <a href="https://twitter.com/full_stackgeek"><b>Twitter</b></a>
  </div>
Working as a freelancer
Tags: discuss, dev, freelancing
Published: 2019-09-01 03:11:27

---
title: Working as a freelancer
published: true
description: What is/was your experience working as a freelancer?
tags: discuss, dev, freelancing 
---

Are you working (or had in the past) as a freelancer?

What platform are you using to find work?

Tell us a little bit about your experience 😊
JavaScript Iterators and Generators: Synchronous Generators
Tags: javascript, intermediates, synchronous, generators
Published: 2019-09-01 06:56:50

---
title: JavaScript Iterators and Generators: Synchronous Generators
published: true
description: All you should need to know about JavaScript Synchronous Generators
tags: javascript, intermediates, synchronous, generators
series: JavaScript Iterators and Generators
cover_image: https://thepracticaldev.s3.amazonaws.com/i/87a5i594oyoec07iy8e3.png
---

Hi, nice to meet you 😄!
You can find this article in my personal blog [here](https://andreasimonecosta.dev/series/javascript-iterators-and-generators/).
Find the real world match that you draw
Tags: javascript, showdev
Published: 2019-09-01 05:52:05

---
title: Find the real world match that you draw
published: true
description: MagicDraw is the web application that will find the near exact match of real world picture you draw
tags: javascript, showdev
---
#Hi I am Ajith, I have created the web application called MagicDraw

You can draw the image and find the near exact match of the real world picture

This application (MagicDraw) creation date  :  30/08/2019

Take a look in Instagram  : https://www.instagram.com/p/B10_CE-jDq8/?igshid=1toi26d7yxo9b

Take a look

cover_image:https://thepracticalde/v.s3.amazonaws.com/i/omss4z0j88w0hesym7ew.png
Why you should avoid using div when creating custom buttons
Tags: css, html, a11y
Published: 2019-09-01 05:23:01

---
title: Why you should avoid using div when creating custom buttons
published: true
description: Why you should use button tag instead of div tag when creating buttons with custom styling
tags: css, html, accessibility
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ge7psh0w0v1r2mze12ku.png
---

Let's say you need to create a signup button with custom styling. You might try to create a div element and add your CSS and add an onClick handler. Instead of using a div element, a good practice is to use a button element instead of a div. 

This is because using a button element provides built-in keyboard accessibility. Another reason why you might want to use semantic HTML for your buttons is that it is good for SEO. Search engines give more importance to keywords inside buttons compared to divs.
Analog Clock in Three.js
Tags: codepen
Published: 2019-09-01 04:41:25

---
title: Analog Clock in Three.js
published: true
tags: codepen
---

<p>So many CSS clocks like this one done already, so here’s a Three.js one.</p>

<h3>Controls</h3>

<table>
<thead>
<tr>
<th>Action</th>
<th>Input to Hold While Moving</th>
</tr>
</thead>
<tbody>
<tr>
<td>Rotate</td>
<td>Left Click</td>
</tr>
<tr>
<td>Zoom</td>
<td>Scroll, Middle Click, S + Left Click</td>
</tr>
<tr>
<td>Pan</td>
<td>Right Click, D + Left Click</td>
</tr>
</tbody>
</table>

{% codepen https://codepen.io/jkantner/pen/zgxQeV %}
Introduction to Ansible Part 3
Tags: ansible, ubuntu, digitalocean, devops
Published: 2019-09-01 04:37:41

Part 3 of my quick Introduction to #Ansible blog series! In this part, we will focus on what Ansible Ad-hoc commands are and we will introduce a few basic commands so make sure to have your 3 servers up and running and be able to follow along.

As always for the hands-on part I'll be using a few @digitalocean  droplets!

Part 3:

https://bobbyiliev.com/blog/introduction-to-ansible-part-3

Let me know if you have any questions!
Split audio file and fade out by ffmpeg
Tags: todayilearned, ffmpeg
Published: 2019-09-01 01:16:09

---
title: Split audio file and fade out by ffmpeg
published: true
description: Split audio file and fade out by ffmpeg
tags: til, ffmpeg
---

Use first 60 seconds. Fade out from 57 seconds per 3 seconds.

```
ffmpeg -i source.mp3 -af "afade=t=out:st=57:d=3" -to 60 result.mp3
```

## References

- [なるべく理解したいffmpeg - ザリガニが見ていた...。](https://zariganitosh.hatenablog.jp/entry/20150619/understand_ffmpeg)
Privileged Pod – Debug kubernetes node
Tags: kubernetes, debug
Published: 2019-09-18 13:20:02

---
title: Privileged Pod – Debug kubernetes node
published: true
tags: kubernetes,debug
canonical_url: https://dannypsnl.github.io//kubernetes/debug/2019/09/01/privileged-pod.html
---

Just a record.

At most of time, if we want to get into a node of kubernetes cluster, we can just using `ssh`. Or we would have a master node has public IP, then we first access the master than access workers to debug. However, in some environments that’s impossible to do that. In my case, an AKS cluster, can’t access nodes directly since we don’t give it a public IP. What can we do now? Priviledged Pod!

The YAML definition is:

```yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: privileged
spec:
  selector:
    matchLabels:
      name: privileged-container
  template:
    metadata:
      labels:
        name: privileged-container
    spec:
      containers:
      - name: busybox
        image: busybox
        resources:
          limits:
            cpu: 200m
            memory: 100Mi
          requests:
            cpu: 100m
            memory: 50Mi
        stdin: true
        securityContext:
          privileged: true
        volumeMounts:
        - name: host-root-volume
          mountPath: /host
          readOnly: true
      volumes:
      - name: host-root-volume
        hostPath:
          path: /
      hostNetwork: true
      hostPID: true
      restartPolicy: Always

```

The point is:

```yaml
        volumeMounts:
        - name: host-root-volume
          mountPath: /host
          readOnly: true

```

We mount the host path `/` to `/host` of the container. And we use host network: `hostNetwork: true` and host PID: `hostPID: true`.

Use `DaemonSet` to ensure we can debug on each nodes.

When we want to use the pod, using the command: `kubectl exec -ti privileged-xk23n chroot /host`.
osint + python: extracting information from tor network and darkweb
Tags: python, osint, tornetwork, stem
Published: 2019-08-31 23:48:24

---
title: osint + python: extracting information from tor network and darkweb
published: true
description: 
tags: python,osint,tor_network,stem
---

https://speakerdeck.com/jmortega/osint-plus-python-extracting-information-from-tor-network-and-darkweb

The talk will start explaining how Tor project can help us to the research and development of tools for online anonymity and privacy of its users while surfing the Internet, by establishing virtual circuits between the different nodes that make up the Tor network. Later, we will review main tools for discover hidden services in tor network with osint tools. Finally we will use python for extracting information from tor network with specific modules like stem https://stem.torproject.org/

These could be the main points of the talk:

- Introduction to Tor project and hidden services 
- Discovering hidden services with osint tools 
- Extracting information from tor network with python

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/0qeblhs8owxatkorfliw.png)
My 1st web developer salary REVEALED with actual paycheck
Tags: webdev, career
Published: 2019-08-31 23:28:52

---
title: My 1st web developer salary REVEALED with actual paycheck
published: true
description: How much do web developers make? In this video I'm showing you my actual check from my 1st web developer job. 
tags: webdev, career, beginners, 
---

##Ever wonder what a real-world example of a web developer salary is? 

Or how much junior developers might expect to make outside Silicon Valley and outside major cities like NYC, Chicago etc? 

####In this video you'll see it firsthand. 

***

If you want to learn more about my salary negotiation strategy...I tell you everything and more (including how to put together a portfolio employers care about) in my book & video course _How to Get a Job in Web Development._ 


Book: https://amzn.to/2ZJacjg
Udemy: https://bit.ly/2zEx7BA

***

This video originally appeared on [YouTube](https://www.youtube.com/realtoughcandy). Come follow me there!
Serverless series, how YOU can learn Serverless and author Functions in Portal and VS Code, write APIs and more
Tags: serverless, tutorial, javascript, showdev
Published: 2019-08-31 22:33:13

---
title: Serverless series, how YOU can learn Serverless and author Functions in Portal and VS Code, write APIs and more
published: true
description: Completely new to Serverless? Then this is for you. Goes from the beginning to teach basic concepts, how it works to building APIs
cover_image: https://thepracticaldev.s3.amazonaws.com/i/fe23phg58qv7aw18v7zd.jpg
tags: serverless, tutorial, javascript, showdev
---

Follow me on [Twitter](https://twitter.com/chris_noring), happy to take your suggestions on topics or improvements /Chris

- [Sign up for a free Azure account](https://azure.microsoft.com/en-us/free/?wt.mc_id=devto-blog-chnoring)
To create Serverless Azure Functions you will need a free Azure account

- [Build a serverless GraphQL API](https://dev.to/azure/learn-how-you-can-build-a-serverless-graphql-api-on-top-of-a-microservice-architecture-233g)
This shows how we build Microservices with Docker and how we use the URLs as part of a GraphQL API

- [Deploying your serverless API to the Cloud](https://dev.to/azure/learn-how-you-can-build-a-serverless-graphql-api-on-top-of-a-microservice-architecture-part-ii-deploy-it-to-the-cloud-26b6)
This shows how we take our Microservices and put them in the container registry. It also shows how we host our API in a Serverless function and deploy it to Azure

- [Build serverless functions using the Azure portal](https://dev.to/azure/serverless-from-the-beginning-using-azure-functions-azure-portal-part-i-28o1)
We get to know the Azure portal and we learn to build our first function

- [Build serverless functions using the Azure portal, advanced usage](https://dev.to/azure/serverless-from-the-beginning-part-ii-getting-to-know-your-portal-ide-101k)
We deepen our knowledge of the portal and build yet another Azure function

- [Build Serverless functions using VS Code](https://dev.to/azure/serverless-from-the-beginning-using-azure-functions-vs-code-part-iii-50j7)
This time we learn how to build an Azure function in VS Code
Docker-compose for older PHP Apps
Tags: php, docker
Published: 2019-08-31 21:46:30

Migrate old apps in php sometimes is complicated because is working only for old php version.
I've an old apps working for php 5.2 (some of the libraries are really old) and I need a development environment. 
Doing some research I discovered  http://devilbox.org/ .
A docker images with a  plenty of options and documentation. 
My Apps also need postgresql and some php extensions. 
In a simple docker-compose recipe I found everything I needed.
{% gist https://gist.github.com/horaciod/7cd0e8a7565fbb515394911e1e7cab29 %}

I'm running also a pgadmin and a postgresql server with persistent storage. 
Docker expose the webserver in the 8100 port and pgadmin in the 8101 port.
All the variables are stored in a .env file in the same directory.

{% gist https://gist.github.com/horaciod/6ade4f1c9c201342a4fdf2d02cd93265 %}

With this simple recipe and docker installed in my laptop with ubuntu I'm ready for a migration to php 7.3 version.
Collaborative coding with GitHub/GitLab
Tags: git, github, gitlab, opensource
Published: 2019-08-31 21:11:53

---
title: Collaborative coding with GitHub/GitLab
published: true
cover_image: https://techcrunch.com/wp-content/uploads/2015/12/hackathon-midnight-thumb1.jpg
description: The workflow of git collaborative working
tags: git, github, gitlab, open source
---

# Initialising the project
This is simply the step where the project is being created or initialized onto the version control platform.
# Things used for collaborative works
1. Branches
2. Issues
3. Pull/Merge requests
4. Merging code

# Branches
This is the heart of collaborative working. Branches enable us to modify the project's code without messing the original one and if the branch works as expected the changes can be added or merges into the original code.
To begin working on a project you'll have to fork it first
 
# Issues
Issues are used in many ways.
1. To request an additional feature for the project
2. To report a buggy code
3. To make suggestions on pre-existing code

# Pull Requests
This is used when one wants to add his/her changes which work as said in the Branches section to the existing code.
In the other way, pull requests are used to resolve issues.

**Example:** There is an issue that states that there should be an update on all submit buttons in the code. If more than one developer works on that? they are to create new branches per developer with different names but their pull requests should all refer to the same issue. The team then tests all the branches to figure out which of the codes fixes the problem then that branch gets merged into the real code.

# Merging 
This is simply the act of merging a branch which solves a particular issue.

Extra resource: https://www.youtube.com/watch?v=w3jLJU7DT5E
Introducing go-tprof
Tags: go, testing
Published: 2019-08-31 21:07:13

## What it does

tprof if a test report generator for golang packages. It parses the output of go tests and generates a presentable html document.

[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/4lzqb0Nic2k/0.jpg)](https://www.youtube.com/watch?v=4lzqb0Nic2k)


## How to use it


To execute

```
    go test <pkg name> -v | tprof
```

Eg:
```
    go test encoding/... -v | tprof
```

Visit [https://github.com/gokultp/go-tprof](https://github.com/gokultp/go-tprof) to get tprof
Hello World!
Tags: career, html, css
Published: 2019-08-31 20:20:05

That probably should have been the title of my first post right?
Oh uau, é a vida...

I am here, coding my first paid website, just finished the Mobile (Yes, mobile-first always) and tomorrow I shall finish the desktop. 
It is soo motivating to get things done and see my code out there. 
I am not making a lot of money (I basically begged my friend to let me maker her a webpage lol) and I am not creating anything fancy... Just some nice clean HTML & CSS in a nice fluid and simple page that showcases my client services (Does anyone needs Newborn Care help in NYC?) and yet, here I am, proud of this small but accomplishing milestone.

So I guess that is what coding is about hm? I have been learning to code for almost a year now, and just recently I started really programming JavaScript. And sometimes I feel like I have nothing to show for a year of code. But yesterday when I was trying to write down all the online courses I did and I am doing I was shocked lol I did A LOT os studying.
Then I opened my github (https://github.com/pachicodes) and again, there are a bunch of little projects. Too little or too much? I don't know! But sure it is the display and proof of all my work.

To my codenewbie friends: Keep going! We sure will go places as long as we keep going!

XOXO,
P.
CSS help needed to improve documentation
Tags: css, styles, html
Published: 2019-08-31 20:08:43

---
title: CSS help needed to improve documentation
published: true
description: 
tags: CSS, styles, HTML
---

Hi all,

I'm sadly no front-end developer or web designer, thus some help would be super great :-)

Do you know how I can add line numbers for the code examples in [1]? Maybe a small link to copy the example to the clipboard would also be great.

The main stylesheet is this:

https://github.com/sirixdb/sirixdb.github.io/blob/master/css/style.css

Have a great weekend
Johannes

[1] https://sirix.io/transactional-cursor-api.html