teleren/devto huggingface dataset:
Accessibility is a Hydra
Tags: todayilearned, javascript, a11y, video
Published: 2020-03-26 16:20:10

---
title: Accessibility is a Hydra
published: true
description: When Hercules fought the hydra, its heads would grow back no matter how many times he cut them off. Web accessibility professionals put repeated effort toward fighting accessibility barriers, and often feel like their work is never done. If we want to prevail against accessibility barriers, we have to understand our own hydra: we have to talk about ableism.
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/2ak5jnexr1s9mc19nvhy.png
tags: todayilearned, javascript, accessibility, video
---
*As we look ahead to [CascadiaJS 2020](https://2020.cascadiajs.com) (🤞🏽) I thought I'd share some of the awesome talks from our 2019 event. Enjoy!*

## EJ Mason

![EJ Mason](https://begin-static-p6uw2-production.s3.us-west-2.amazonaws.com/forest-1dg/images/speakers/ej-mason.jpg)

When Hercules fought the hydra, its heads would grow back no matter how many times he cut them off. Web accessibility professionals put repeated effort toward fighting accessibility barriers, and often feel like their work is never done. If we want to prevail against accessibility barriers, we have to understand our own hydra: we have to talk about ableism.

[Watch the talk (22:06)](https://youtu.be/SDdsD5AmKYA)
Django: How to send image file as part of response
Published: 2020-03-26 16:15:58

In this short blog post I will show you how to send image from Django and display it on page with a single response.

The _trick_  is to use base64 encoding which can turn your image into string which can then be passed as a part of response. 

This can have few benefits, the image being part of response so no additional request to get the image is not needed. You can also prevent users from simply copying the link and sending it to someone. Of course they can always take a screenshot..

Or maybe you have project where you don’t want to deal with configuring `STATIC_ROOT` and all that serving files with Django requires.

The actual Django part is pretty short:

```python
import base64

with open(image_path, "rb") as image_file:
    image_data = base64.b64encode(image_file.read()).decode('utf-8')

ctx["image"] = image_data

return render(request, 'index.html', ctx)
```

Note: The "rb" option stands for "read binary".

Optionally you can add `try` `except` to catch `FileNotFoundError` and react accordingly.

Now we just need to display the content using `<img>` tag:

![Base64 image data in <img> tag](https://dev-to-uploads.s3.amazonaws.com/i/bqiq8q3tlcnhq5wvkowv.png)

_The snippet above was showing my markdown error so hence the screenshot._

And that is it 🙂

_Thanks for reading!_

-- 
Need to *focus on your iPhone*? Get free WebBlock app for scheduled website blocking from the [App Store](https://apps.apple.com/us/app/webblock/id1513121732)!
Creating a Shared Vision
Tags: discuss, motivation, career, remote
Published: 2020-03-26 15:58:51

It can be tough to keep teams motivated. 

One thing we know works is making sure everyone understands and appreciates the impact of the teams work, that their working on something that's not just interesting but really valuable for the company as a whole.

We're noticing now that we're remote, some of the newer rotations into the team are struggling to see the value of their work and we're trying to be a bit proactive here; talking about the team's previous work and impact.

But we're thinking longer-term how can we help create and foster a shared vision for the teams work going forwards?

Currently, we're thinking;
- Making the team's guiding strategy more open and accessible
- Having the team's short and long term goals more visible
- Getting the whole team more involved in helping review the current mission statement

We know there's always room to improve so, I'm interested in what else we can do to help the team really understand their value? How we can help encourage a shared vision? or what else we can do to make sure everyone's on the same page!

If you've got any ideas or just want to share your thoughts please share below!
If you don't know about it, you most likely don't need it
Tags: productivity, management
Published: 2020-03-26 15:51:19

If you don't know about it, then you don't need it. Seriously. You don't.

In the last share about [The Future of the terminal](https://marvin.hashnode.dev/the-future-of-the-terminal-ck7oq0u5z00hx69s1nwv6z1cd), I had a rather interesting conversation with one of the readers. It sparked a thought or two.   
The baseline was:


> Most of the differences are things people don't use that regularly.

Absolutely right.
You see, with the rapid diversification of technology, languages and frameworks alike, too often we get lost in the complexity and get sucked into the love of the challenge. We forget our initial reason; to solve a problem.

Let's sit down, shall we? See exactly what this means.
Say, for example, you had deployed a Django application and for some reason, you wanted to make some changes. That's where [fabric](https://docs.fabfile.org/en/2.5/) comes in. You see, it allows you to SSH into your server, upload a file, activate a virtual environment - hell, it even lets you restart your application all from right within a sample simple script. All you need to do is import it:

```python
from fabric.api import cd, env, prefix, run, task
```
You are basically running a script as if you were getting into your server directly.

```python
# access my server and create a new user.
>>> from fabric import Connection
>>> c = Connection('db1')
>>> c.run('sudo useradd mydbuser', pty=True)
[sudo] password:
<Result cmd='sudo useradd mydbuser' exited=0>
>>> c.run('id -u mydbuser')
1001
<Result cmd='id -u mydbuser' exited=0>
```

Speaking of server management, we got [Nagios](https://www.nagios.com/), and for this, we have [Shinken](http://www.shinken-monitoring.org/#Slide2). If at one point you are like: " Who is going to do all these things again !!", use it. From re-using Nagios config files to deployment. It handles it with a slight layer of abstraction so that it does not seem that 'much' of a task.

Now if in reading about the last two packages you are like: 'Wow! I mean!', 'That looks cool!', 'This is incredible..', ask yourself, do you really want to use them? Or are you just amazed? If you were to go to their homepages right now, would you import them in a file or just install and keep them in stock in some random virtual environment? These are the questions you need to ask yourself.

Consider another scenario, when will you read that bookmark you made a couple of days, weeks or even months ago? Was it another impulse bookmarking? I have to admit, I am guilty as charged in this as well.

The well of frameworks, packages, and libraries is deep and extensive, but if you do not know what you are going to use a particular item for, chances are you do not need it in the first place.

A rather short page this time, trust me, I know. This is just to get that thought going in.
For now, this is it. Till next time  - [The Green Codes](https://marvin.hashnode.dev/) -  and remember, it's time to go through your bookmarks.
Simple Login Form Using UI-KIT
Tags: css, webdev, beginners
Published: 2020-03-26 15:14:38

Login form and Signup form are the most important parts form a dynamic website. Login form has 2-3 basic input types filed with one login button. So here we designed responsive and simple login form using UIkit framework.

What is UI-KIT?

A light-weighted fronted CSS framework with have a powerful and attractive elements collection. Also, have a great user-interface UI component with the best utility classes. This similar to bootstrap but UI-kit has solid collections of components.

In this element, we only used the form elements and buttons with basic utility classes. Also, we used flex classes which have in this framework and For making responsive we used media queries.

Make it yours now by using it, downloading it and please share it.

[Download Source code] (https://w3hubs.com/simple-login-form-using-ui-kit/)
How should I save my blog posts in order to appear as a search result in google?
Tags: beginners, webdev, database, laravel
Published: 2020-03-26 15:04:09

I want to create a site where I can write some blogs. I don't know how should I save them. If someone search something like "how to do something", I want from google to display my post as a result and my URL to be like "https://myBlog.com/how-to-do-something". Now I am pretty confused if I should use a data base or a static page for every post. How should I do it?Sorry if my question is dumb, but I really need an advice.
Connect to SQLite DB in windows
Tags: react, sql, database
Published: 2020-03-26 15:00:25

Hi 

I'm attempting to connect to a SQL lite db using sqlite3 and react-native-sqlite-storage.  I've created a standard React installation using npm create-react-app using template for typescript.  

However I doesn't matter what I do I can't neither of them will work.  I'm getting countless errors building.  

My first question is, is it possible to connect to a sqlLite db using react on a standard PC with the packages above?   

Thanks

john
How to be Pythonic? Design a Query Language in Python
Tags: python, database, talk
Published: 2020-03-26 14:35:33

---
title: How to be Pythonic? Design a Query Language in Python
published: true
description: We thought about what will be best for Pythonistas? Here’s our journey in making WOQLpy and we want to make it useful to you.
tags: Python, Database, Talk, SQL
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/793u48f9tqucjg8hzdyt.png
---
We created Python API calls that let you can make queries and manipulate data in our graph database. We thought about what will be best for Pythonistas? What will be the most Pythonic way to do it? (Is it a thing?) Here’s our journey in making WOQLpy and we want to make it useful to you.

If you want to catch me streaming live, follow me on [Twitch](https://www.twitch.tv/cheukting_ho).
A Productive Distraction
Tags: opensource, javascript, gamedev, coronavirus
Published: 2020-03-26 14:33:22

---
title: A Productive Distraction
published: true
description: Need something to do while you’re stuck at home during the quarantine? Why not help make a game?
tags: opensource, js, gamedev, coronavirus
---

Hey everyone! First time posting and I’m sure some of y’all might be interested in a project I’m starting up. Let’s get right to it!

So here’s a series of facts:
- I start projects like nobody’s business. 
- The coronavirus has many of us stuck at home with nothing to do. 
- We have no idea how long we’ll have nothing to do. 

Here’s what I propose: let’s work together to make a video game. Pull in all your artist, musician, and writer friends to help out. Open source the whole process so that everyone everywhere can jump in, help out, and maybe learn a thing or two. In the end we can either release it for free or maybe figure out how to use it raise money for PPE or something else to help fight COVID-19.

You can find the project [here](https://github.com/thefinch/A-Productive-Distraction). Any amount or type of help will be appreciated!

I’ve already posted a very rough set of ideas that came to me recently. I’m definitely not experienced at writing and I’m not super attached to any of it so feel free to make any suggestions you want, change it, or tell me to scrap the whole thing and start again. As long as we’re working together to make something, then we’re doing something right!

Also! I have a full time job and a toddler to worry about so if anyone wants to help maintaining the project, it would be greatly appreciated! If there’s anyone who actually works in the game development business, I’d love to get your input or help!

As with everything in this project, I'm open to suggestions and discussion. At the moment, I'm planning on trying to use GitKraken to manage it (never used it before, but it looks useful) and [Phaser](https://phaser.io) as the engine. 

Thoughts? Ideas? Am I dumb? Whatever! Let me know!
LeapMotionでジェスチャデータを出力してOculusQuestでテストするあれこれ作ってみた( 発展途上 )
Tags: unity3d, oculusquest, leapmotion
Published: 2020-03-26 14:24:28

OculusQuestのハンドトラッキングが実装されてからUnityでジェスチャを自前で作成してテストする際にいちいち実機に転送するのが結構煩わしかったのでそれっぽいもの作ってみた

最近はOculusLink使ってエディタでテストできるみたいだけど僕は持ってないのでLeapMotionで代用的な
<blockquote class="twitter-tweet"><p lang="ja" dir="ltr">Oculus Integration 13.0も来てた。Oculus LinkでUnityエディタ上でハンドトラッキングが使えるようになってるみたい。 <a href="https://t.co/rNaDt6ygiC">https://t.co/rNaDt6ygiC</a></p>&mdash; こりん@VR (@korinVR) <a href="https://twitter.com/korinVR/status/1225683030418706442?ref_src=twsrc%5Etfw">February 7, 2020</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>


# 対象となる人
- OculusQuest持ってる
- LeapMotion持ってる
- OculusLink持ってない or 持ってるけどうまく動かなくて使ってない
- Windowsユーザー( LeapMotionのSDKのバージョンで最新版はWindowsしか利用できないので )
- ハンドトラッキングの自前ジェスチャを作って何かしたい


# 環境
|||
|---|----|
| OS | Windows10 |
| Unity | 2018.4.14f1 |
| LeapMotionSDK | UnitySDK 4.4.0 |
| OculusIntegration | 12.0 |


# できること
現段階では指の伸びたか否かでの判定を用いてのジェスチャのデータ出力及びOculusQuestでのテスト
今回は グー、チョキ、パーの三つのジェスチャデータを出力してOculusQuestでテストしています


データの出力
![A](https://github.com/D-RyusukeMatsumoto/hand-gesture-record/raw/master/readme-resource/output.gif)


出力されたジェスチャデータをOculusQuestでテスト
![B](https://github.com/D-RyusukeMatsumoto/hand-gesture-record/raw/master/readme-resource/test.gif)

[こちら](https://github.com/D-RyusukeMatsumoto/hand-gesture-record)のリポジトリで公開しています

まだリファクタリング等行ってないのでコードは若干ゃごちゃごちゃしてて扱いにくいけどとりあえず公開した後で整備していく方針です

# あとがき
今後ぼちぼちアップデートをしてできることをもう少し増やしたい...
HoloLensのブルームみたいな特定の一連の指の動きとか
この記事は今後ちょくちょく手を入れる予定
Rift Sでハンドジェスチャのテストができればいいんだがなぁとも思ったり思わなかったり、現時点ではRift Sでのハンドトラッキングは実装されてないので致し方なし
[Monkey Patch] Chamando o método original
Tags: ruby, brasil, portugues
Published: 2020-03-26 14:02:35



  Mesmo que não seja uma pratica tão elegante e até perigosa, o [Monkey Patch](https://pt.stackoverflow.com/questions/285190/o-que-%C3%A9-monkey-patch) é uma realidade para os programadores Ruby (on Rails). E por este motivo decidi escrever este artigo relatando um desafio que encontrei esses dias, e como resolvi o mesmo.

  O desafio encontrado foi: "Tratar a exceção que um método que uma gem levantava". Para isso eu precisava chamar o método antigo, e não sabia bem como fazer isso.

  Sem mais delongas, a forma que eu encontrei foi a seguinte:

```ruby
class ClasseDaGem
  def metodo
    raise "ERROR!!!!"
  end
end
```

```ruby
class ClasseDaGem
  alias_method :antigo_metodo, :metodo

  def metodo
    begin
      antigo_metodo
    rescue
      p "Faça o que precisar aqui!"
    end
  end
end
```

  Caso você tenha uma solução melhor, não deixe de comentar ✌
Watch Deconstructing The Destined Lambda on Youtube today! AWS Lambda, API Gateway, Destinations and EventBridge
Tags: aws, cdk, beginners, tutorial
Published: 2020-03-26 13:56:26

I thought it might be a good idea to start walking through the patterns I have made available on cdkpatterns.com for people who are new to AWS CDK or just don't want to deploy it themselves to learn.

I talk through the theory, walk the code, deploy it then show it in action.

{% youtube DQgq_p6Q03M %}
Introduction to ‘Grunt’ and its Tutorial
Tags: javascript, codepen, productivity
Published: 2020-03-26 13:45:22

What’s the purpose of a technology if it doesn’t take away the pain of putting in extra efforts, which can be eliminated by automating a specific process?! We’re glad to have adapted and worked upon such technologies, tools, framework, and others, for the betterment of the projects we pick. Grunt is one such compiler tool that we use for automating the frequent tasks, freeing our team from the mundanity of such repetitive tasks.

Do you too wish to explore more about Grunt and adapt it in order to unburden yourself/your team from a range of such repetitive tasks? Well, here we share a small introduction about Grunt and a basic tutorial to get you started with it.

<b>What is Grunt?</b>

Grunt is an ecosystem created to automate a host of frequent tasks like minification, compilation, unit testing, and linting. It is a compiler tool for the designers to automate the repetitive tasks and speed-up the project. The core purpose of Grunt is to fasten and transform the way, a website is developed today.


<h2>Necessity of Grunt</h2>

“Necessity is the mother of invention,” they say. It applies to the invention of Grunt too. Working on JavaScript, one was required to execute a similar type of tasks for multiple times. Despite of being an integral part of the process, these bunch of repetitive tasks was quite time-consuming and mundane for the developers/designers. They needed a more productive and time-saving alternative of performing these repetitive tasks, without eliminating them. Apparently, that could be done only by automating the implementation of these repetitive tasks. And that is how the invention of Grunt was done.


<h2>Grunt Tutorial for the Beginners</h2>

We have been seeking the help of Grunt ever since its launch. And so far, we have had saved our team from the wastage of time and the headache of mundane activity. Let us share a tutorial on getting started with Grunt, which will help you in fastening your process and saving your team’s time and energy!

 
You can install and manage grunt and grunt plugin with the help of npm. To do so, you first need to setup node.js

After installing node.js, you need to install the CLI globally by using the command mentioned as below:

$ npm install -g grunt-cli
 

Now you need to check whether the Grunt has been properly installed or not, by using the following command. You can also check the Grunt version from here
$ grunt --version
 

Now you need to create package.json and gruntfile.js file in your project directory
Creating the package.json File: 

Read Complete Article <a href="https://addwebsolution.com/blog/voyager-missing-laravel-admin">here</a> - 10 worthy min
Nexus Vulnerability Scanner: Getting Started with Vulnerability Analysis
Tags: vulnerabilities, security, appsec, applicationsecurity
Published: 2020-03-30 19:50:57

---
title: Nexus Vulnerability Scanner: Getting Started with Vulnerability Analysis
published: true
date: 2020-03-26 13:45:00 UTC
tags: vulnerabilities,security,AppSec,Application Security
canonical_url: https://blog.sonatype.com/nexus-vulnerability-scanner-and-vulnerability-analysis
---

[![Nexus Vulnerability Scanner: Getting Started with Vulnerability Analysis](https://blog.sonatype.com/hubfs/GettyImages-576581752.png) ](https://blog.sonatype.com/nexus-vulnerability-scanner-and-vulnerability-analysis)

As a developer, you know the importance of building a robust application. With cyberattacks increasing every day, you should make sure your application is safe from the attacks and isn’t vulnerable.

To assess your application for security and to help you find vulnerabilities in your application so you can fix them, [Nexus Vulnerability Scanner](https://www.sonatype.com/appscan) would be of great help!

So, in this post, I’ll be telling you what this tool is and how to use it.

 ![](https://track.hubspot.com/__ptq.gif?a=1958393&k=14&r=https%3A%2F%2Fblog.sonatype.com%2Fnexus-vulnerability-scanner-and-vulnerability-analysis&bu=https%253A%252F%252Fblog.sonatype.com&bvt=rss)

<a href="https://blog.sonatype.com/nexus-vulnerability-scanner-and-vulnerability-analysis">Read more on the Sonatype blog</a>
Enabling AWS RDS Performance Insights
Tags: aws, rds
Published: 2020-03-26 13:40:58

If your RDS cluster was created without performance insights enabled you will need to enable it using [AWS CLI](https://aws.amazon.com/cli/).

```bash
aws rds modify-db-instance \                    
    --db-instance-identifier <YOUR DB INSTANCE ID> \
    --enable-performance-insights
```

Your `db-instance-identifier` can be found here:
![db-instance-identifier-image](https://dev-to-uploads.s3.amazonaws.com/i/g6uf851ld4k6km3rie7d.png)

You can add the parameter `performance-insights-retention-period` to the command `modify-db-instance` if you want to change the default amount of days (7) that Performance Insights data will be retained. That is the maximum amount of time allowed for using performance insights with no charge. You can find more information about pricing in the [Performance Insights Pricing] (https://aws.amazon.com/rds/performance-insights/pricing/) page.

Source:
- [Using Amazon RDS Performance Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html)
- [Enabling Performance Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.Enabling.html)
- [Performance Insights Pricing](https://aws.amazon.com/rds/performance-insights/pricing/)
Redirecting legacy .NET apps to a new Oracle DataAccess
Tags: oracle, dotnet
Published: 2020-03-26 13:15:40

*Published on October 13, 2018*

I wrote this guide to help you dealing with a development or production environment that needs to run multiple legacy .net applications that are highly coupled with an specific version of Oracle DataAccess. With this guide you don't have to change any line of code, reference, or configuration of each project.

This guide will also help you to keep your system clean, running only one lighweight version of Oracle Client.

{% gist https://gist.github.com/junalmeida/3d42086ce9200e3e51abd0eeb394effd %}

Please fell free to give feed back and suggest improvements.
The Corey Quinn Live-Tweet Roast of Matt Stratton's DevOpsDays NYC talk
Tags: humor
Published: 2020-03-26 13:14:35

---
title: The Corey Quinn Live-Tweet Roast of Matt Stratton's DevOpsDays NYC talk
published: true
description: Infamous cloud influencer Corey Quinn live-tweets Matt Stratton's talk from DevOpsDays NYC 2020, in a good-natured "roast" format.
tags: humor
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/5kgr2mooiqyo7mn0ymkl.png
---
I'm sure many of you are familiar with [Corey Quinn](https://twitter.com/quinnypig), the notorious cloud ~~comedian~~ influencer. Corey is fairly hilarious, and recently he agreed to live-tweet as he watched [my recent talk from DevOpsDays NYC 2020](https://speaking.mattstratton.com/4X23kE/the-lifecycle-of-a-service). For your amusement, here are the tweets.

{% twitter 1243039347214913536 %}

{% twitter 1243039798199087104 %}

{% twitter 1243040444855898112 %}

{% twitter 1243040448676945920 %}

{% twitter 1243040738918559746 %}

{% twitter 1243040942610776065 %}

{% twitter 1243041152103616512 %}

{% twitter 1243041455045668864 %}

{% twitter 1243041721484603392 %}

{% twitter 1243042333089652736 %}

{% twitter 1243042649029795840 %}

{% twitter 1243042872594542592 %}

{% twitter 1243043238409154561 %}

{% twitter 1243043647009910786 %}

{% twitter 1243044503390277636 %}

{% twitter 1243044712476315649 %}

{% twitter 1243045220586930176 %}

{% twitter 1243045835023077376 %}

{% twitter 1243046308337704960 %}

{% twitter 1243046656481738752 %}

Thanks for the laughs, Corey! You can get more great stuff from Corey on his [twitter](https://twitter.com/coreyquinn) as well as his newsletter, [Last Week in AWS](https://www.lastweekinaws.com/newsletter/) or his two podcasts, [AWS Morning Brief](https://www.lastweekinaws.com/podcast/aws-morning-brief/) and [Screaming in the Cloud](https://www.lastweekinaws.com/podcast/screaming-in-the-cloud/).