teleren/devto huggingface dataset:
【Unity】そろそろXR Managementに対応したOpenVR XR Pluginがリリースされそう
Tags: unity3d, openvr
Published: 2020-03-08 10:31:00

---
title: 【Unity】そろそろXR Managementに対応したOpenVR XR Pluginがリリースされそう
published: true
tags: Unity, OpenVR
date: 20200308T10:31Z
canonical_url: https://qiita.com/shiena/items/87cbdfb8c8ba7834e088
---
# はじめに

Unityの既存のVRサポートは2020.1で廃止されXR Managementに一本化されます。
今までOpenVR対応プラグインがなかったのでViveなど一部のHMDで移行の障害になっていましたがやっとリリースされそうな動きが見えてきました。

https://forum.unity.com/threads/xr-plugins-and-subsystems.693463/page-5#post-5562637
![image.png](https://dev-to-uploads.s3.amazonaws.com/i/pg47g7ikkr4pnq9606xh.png)

以下はInputSystemのPull Requestとそれを作った開発者のGitHubアカウントにあるテストパッケージです。

- https://github.com/Unity-Technologies/InputSystem/pull/1083
- https://github.com/zite/TestPackage

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

# 導入方法

**リリース前なので導入しても動作保証はありません。**

## manifest.jsonに追加

Unityプロジェクトフォルダの`Packages/manifest.json`に以下の1行を追加するとUnityが自動でダウンロードします。
今はmasterブランチよりTestBranchの方が進んでいるので`#TestBranch`を指定します。

```json:manifest.json
{
  "dependencies": {
    "com.valve.openvr": "https://github.com/zite/TestPackage.git#TestBranch",
    ...
  }
}
```

## Pakcagesフォルダにコピー

TestPackageリポジトリをzipでダウンロードしたりgit cloneしてPackagesフォルダに配置するとUnityプロジェクトに取り込まれます。
![image.png](https://dev-to-uploads.s3.amazonaws.com/i/7s7msjipgoja8cvx9gkj.png)


OpenVR XR Pluginが認識されるとPackage Managerに追加されます。
![image.png](https://dev-to-uploads.s3.amazonaws.com/i/flawuu0av9kcyglpacob.png)

# OpenVR XR Pluginの設定

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

![image.png](https://dev-to-uploads.s3.amazonaws.com/i/9gpxmxp7fcog4vcc9ayz.png)
![image.png](https://dev-to-uploads.s3.amazonaws.com/i/4s3b8zhcjh1l36fycjo2.png)
![image.png](https://dev-to-uploads.s3.amazonaws.com/i/6qzf9cqdan8wbln0v5o9.png)
Nevertheless, Sarah Coded
Tags: wecoded
Published: 2020-03-08 10:29:39

---
title: Nevertheless, Sarah Coded 
published: true
tags: shecoded
---
<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title & narrative! ✨ -->

I've been coding professionally for almost 8 years now. Wow. That's insane to me. 12 years ago when I started college, whoa...was it really 12 years ago already?😨, anyways <i>12 years ago</i> I had no idea what code was, I was starting my 4 year degree in Business Information Systems because I liked business and I had absolutely no idea what I wanted to do. Unknowingly, I had put myself on a path that would be challenging, rewarding and a hell of a lot of fun! 

It all started with my first Information System module, Visual Basic 6.0. (As I mentioned this was 12 years ago 🙈). I remember it so clearly, sitting in the lecture hall just being completely fascinated by this new world that opened up to me. Then I was introduced to Web development and that was it. I was in! Four years, many late nights, fights with Java and OOP (we made up eventually!), and a LOT of coffee later, I started my career as a Software Engineer. 

I almost never made that start though. I almost never applied for that course and I almost never sat in the first Visual Basic 6.0 lecture. In my final year of school I had the typical mandatory session with the Career Guidance teacher. I told him I wanted to do BIS. He told me "Oh I don't know about that, that's really hard, my son is doing that now and I don't know if you would be able for it. What else have you considered?" My gut sank. I didn't know how to respond, isn't he supposed to be encouraging? What about me implied I wouldn't be able for it? I had top grades, I was in honors classes. I was all in all a good student. Looking back now there can only be one reason he would have made those comments, I am a woman. I went home that day dejected and told my mom what happened. She comforted me and then she gave me the best advice I ever received, "you get to decide, you can do anything you set your mind to." 

That drove me my entire career, it pushed me to work hard, learn more, constantly improve and get better. I set my mind to something and I get it. Hard work and perseverance. I flew through the course and graduated with honors, today I am the Lead UI Engineer and UI Architect for a 60 people organization. And I'm just getting started.🙌🏻     

## Equality in tech looks like… 
No girl or woman ever having her dreams or goals questions because of her gender. 
All women being considered equally for opportunities. 
No more gender wage gap!

## I’m an expert at…
JavaScript, Web development, UX, drinking obscene amounts of coffee. 

## My advice for allies for other self-identifying women and non-binary folks who code...
PERSIST. Just keep going. It's a hard path. It's exhausting at times. But you can do it. No matter what anyone else says, keep going and you'll get there.

<!-- Once your post is published, it will not appear on the /t/shecoded page until an admin approves it. This is an extra step to ensure there is no abuse on this important tag. -->
Help using Animated Icons with React and What is your fav animated icons library?
Tags: react, icons, help
Published: 2020-03-08 10:20:14

Greetings Dev Community 
I am exploring animated icons which are super cool. One awesome library I came across was Lord Icons (https://lordicon.com/). They have some killer icon animations and I was trying to find a way to implement this in my React/Gatsby project 🙌❤️. 

Unfortunately, they do not have a React example on their Github and I am having some issues with getting it to work after trying to follow their examples😬

Does anyone here wanna help me tackle this? I am hoping we can submit a React documentation to them once we figure it out!

PS.
Who else is using animated icons with React and what library are you using? Please submit recommendations below 🙏
Deploy Any cdkpatterns.com Serverless Pattern to AWS in 3 Commands
Tags: serverless, aws, beginners, architecture
Published: 2020-03-08 10:19:39

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

I am super excited to announce that I have simplified the process for learning the patterns available at cdkpatterns.com

I published a command line tool to npm and this means you can deploy any pattern in 3 steps - https://www.npmjs.com/package/cdkp

To see the current list of available patterns just run: 

`npx cdkp list`
Using SAS Token to craft ephemeral link
Tags: dotnet, azure, sastoken
Published: 2020-03-08 10:13:20

#The Problem

Recently, one of my colleagues asked me about how to manage ephemeral link sent to users to manage their profile without any Azure AD or Identity Provider. Its first idea was to use a database with GUID associated to a datetime and manage their expiration through an Azure Function. An another Azure Function will receive the call from the users and check if the GUID is present and valid.

#Another option

Another idea to manage them without having to build the database, is to rely on SAS Token generated by Azure storage.
A SAS Token is a token associated to 1 of the 2 keys associated to an Azure storage, a validity period and rights on a container, file, queue or table storage. It can be generated using Azure SDK in various language.

The idea here is instead of relying on a generated GUID stored in database, we can send SAS token with read right on an empty container. 

When the Azure Function receives the call, it uses the SAS Token to attempt to read the container. If it's succeed you are allowed to go on, otherwise you are not.

I hope you find it useful.
Help with logo and icon making
Tags: help, design, icon, ux
Published: 2020-03-08 09:31:37

I want to make my own logo and some icons for my avatar, website and portfolio.

I am out of ideas on what should I make on and how. Are there any tutorials and tips for finding an idea for your logo and making them? 

I would like to know what tools will I have to use. 

Thank You!

I really need help regarding this 😅
Love and Coding for a better hope
Tags: wecoded, productivity, startup, computerscience
Published: 2020-03-08 09:25:04

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/wn1v2k0a5lokm0toj6ac.jpeg)
<h1>A brief introduction </h1>
![](https://media.giphy.com/media/26mkhMFIPsXAN6tyM/giphy.gif)
we were young studying in a small town everybody has no goal in life except having car , a great-simple job with a lot of money and 2h of work.i was a cool guy fond of tech coding , i remember the first time i start learning  androidStudio for 1 pocket of cigarettes ... it was fun.in this period of time she was lonely, hopeless, no goal in life with a lot of depression feelings and many personal matter that it may lead anyone to suicided. 
![](https://media.giphy.com/media/y0u3NVgUslwg8/giphy.gif) 
<h1> My  Women who hate Code </h1>
![](https://media.giphy.com/media/3oEjHECc1GftirnHZm/giphy.gif)
for attraction things, i start impressing my women with code and trying to convince her that coding is a save for life. it was a real disaster she even start to hate me and it stuff. and an advice for you :
Never Ever Force Her to It 
<h1> Things Going On </h1>
![](https://media.giphy.com/media/14msC297sFRrc4/giphy.gif)
after a year, we have graduated from high school and of course i have chosen an it-College and the Best one in the Country ❤️ESPRIT❤️ .Although i was convinced that she could use her intelligence in some other field, i was surprised that she took the same decision and chooses the same college. 
<h1> The Success Story Begin </h1>
From a bad start with a depressing feeling to being saved by coding.The women i love begin not only to learn coding but to love it and making use of every second of her life to a new challenge. I was supper happy things were great , we have lunch together talking about new code , new challenge , carrier stuff working in groups in pair ... things i haven't even dreamed about my entire life. Your crush is a coder is another level of life happiness. 
![](https://media.giphy.com/media/xNBcChLQt7s9a/giphy.gif)
<h1> The Happy End  </h1>
After 6 years, with a lot of feelings: Love, Friendship... My women has even beaten me in a lot of challenges. And i think she is becoming a good rival to me that deserves my proposal for weddings 👰 .   
![Alt Image](https://media.giphy.com/media/pSjYXneALPBLO/giphy.gif)
Angular Material Custom Checkbox and Radio Button In SCSS
Tags: angular, todayilearned
Published: 2020-03-08 09:18:08

Checkbox and Radio Button both are different and both have an action similar which is user has select. So here we customize the color of Angular material checkbox and radio button color using SCSS.

Previously we also customize button, login and registration form and angular chips components. Now here we customize material angular Checkbox and Radio Button in SCSS files. Here we used the SCSS variable and also used nesting with CSS flex and grid properties to make these elements separate. Here, we used media quires for grid columns and modify some angular material class.

Make it yours now by using it, downloading it and please share it. we will design more elements for you.

[Download Source-Code](https://w3hubs.com/angular-material-custom-checkbox-and-radio-button-in-scss/)
How to center things in CSS 💘
Tags: css, html, beginners
Published: 2020-03-08 08:32:36

## Yo devs ! 🔥

A quick guide on **"How to center things in CSS"** 🙌

>Most of the time, you write great CSS code from _colors to complex animations_.
But I know most of us _(beginners)_ still struggle to **center elements** on a viewport perfectly.

Don't worry devs, you are no longer be an noob at the end of this short guide.

#### Let's get started

There are two ways to center any HTML element on a web page :

> #### 1. Using **Flexbox**
> 
> #### 2. Using **Transform**

<br>

*  Using **Flexbox**

> HTML code as shown below 👇


```html
  <body>
    <div class="container">
      <div id="object"></div>
    </div>
  </body>

```



> Now the CSS code

```css

html,
body,
.container {
  height: 100%;
  overflow: hidden;
}

.container {
  display: flex;
  justify-content: center;
}

#object {
  height: 100px;
  width: 100px;
  background: red;
  align-self: center;
}


```


*  Using **Transform**

> HTML code shown below 👇

```html

<body>
    <div class="element"></div>
</body>

```


> Now the CSS code

```css

.element
    {
        width: 100px;
        height: 100px;
        background: coral;           
    }

.element
    { 
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50% , -50%);
    }

```

### Check out my other posts too 🥂
* [Spooky CSS shapes 🐞] (https://dev.to/mindset/dark-secrets-of-css-shapes-1phf) 
* [Top Developer Mindset](https://dev.to/mindset/post-1-4kb0)
* [VScode Extensions](https://dev.to/mindset/top-5-vscode-extension-from-my-think-box-115d)

**Author:**  [_Jayesh 🧡_](https://www.instagram.com/jayesh.2112)
Nevertheless, jun Coded 🌻
Tags: wecoded, motivation, career, beginners
Published: 2020-03-08 08:14:50

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title & narrative! ✨ -->
My name is jun. I play piano more than 20 years and now I'm new to the tech world. You might ask me why I chose tech? why tech? You can go to [my website](https://jun-low.com/) to read that long story.

But here's a good opportunity for my self-reflection on International Women's Day. And thanks [DEV](https://dev.to/about) for this amazing activity.

![](https://media0.giphy.com/media/W5ZUxqXT1lmiysXsDE/giphy.gif?cid=ecf05e477c314316ae89b902f8fea7e5eb072187b4b59d33&rid=giphy.gif)

## 👫Equality in tech looks like...
when we understand that gender does not limit anyone in tech. And I hope I can see more women voices to discuss important decisions and more tech leadership opportunity for women.

## 🚀I’m an expert at…
I'm not gonna say I'm expert at something, instead,

- Being outside of comfort zone
- Go through a career transition
- Background in completely non-related to any engineering kind
- Not getting interviews for months
- Imposter syndrome hits me hard that I used to cry 
- Failed tests
- Less salary now than I used to earn
- Works have been criticized
- Still don't know everything


                                         nevertheless, I coded.

![](https://media2.giphy.com/media/hME2ZN9F7cNaw/giphy.gif?cid=ecf05e47d61d81043da6ff8299d9f9a2052e6d2641aa84a0&rid=giphy.gif)


## 👩🏻‍💻My advice for allies to support self-identifying women and non-binary folks who code is...
Never stop learning and remember that once you're dreamed of being where you are now 🌸

<!-- Once your post is published, it will not appear on the /t/shecoded page until an admin approves it. This is an extra step to ensure there is no abuse on this important tag. -->
Laravel 7: Functions in Blade Components
Tags: laravel, php, webdev
Published: 2020-03-08 08:10:28

With Laravel 7 Blade Components, you can invoke **public** functions in view file of Component. Let's look into good old `Alert` component example.

```php
class Alert extends Component
{
    public string $type;

    public string $message;

    public function __construct(string $type, string $message)
    {
        $this->type = $type;
        $this->message = $message;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\View\View|string
     */
    public function render()
    {
        return view('components.alert');
    }
}
```
Now, let's add a function/method *customFunction* in our class as:
```php
class Alert extends Component
{
    public string $type;

    public string $message;

    public function __construct(string $type, string $message)
    {
        $this->type = $type;
        $this->message = $message;
    }

    public function customFunction(): string
    {
        return "string from a custom function component";
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\View\View|string
     */
    public function render()
    {
        return view('components.alert');
    }
}
```
##Invoking the function
Now let's say we want to use this method inside the `alert.blade.php`. It's as easy as using a `public property` in component's view file.
```html
<div>
    <div class="alert alert-{{$type}}">
        <h3>{{$message}}</h3>
        <span>{{ $customFunction }}</span>
    </div>
</div>
```
##Passing parameters
What if we needed to pass some parameters? Easy 🙈
```html
<div>
    <div class="alert alert-{{$type}}">
        <h3>{{$message}}</h3>
        <span>{{ $customFunction('custom param') }}</span>
    </div>
</div>
```
and in our class file:
```php
class Alert extends Component
{
    public string $type;

    public string $message;

    public function __construct(string $type, string $message)
    {
        $this->type = $type;
        $this->message = $message;
    }

    public function customFunction(string $param): string
    {
        return "string from a custom function component and a " . $param;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\View\View|string
     */
    public function render()
    {
        return view('components.alert');
    }
}
```

Let me know in comments how you can use this feature 👇🏼
Global CSS with Material-UI Done Correctly in React Apps
Published: 2020-03-08 07:56:05

In case you are using the Material-UI library for React and you want to manage your css in external files, I posted an article on how to do this:

https://medium.com/@johannblake/global-css-in-react-apps-25f846e7b79e?source=friends_link&sk=7990b30aee39d96249763ce65a1be19f

This solution is better because it allows you to separate your CSS from Javascript the way CSS was meant to be. This allows you to use your IDE's css tool to edit your css as you normally do and any edits you make are automatically updated in your React app.
Be a developer before being a devops
Tags: devops
Published: 2020-03-08 07:37:50

In my opinion a devops person with software developer background can do better in devops than direct devops dive-in.

Writing substantial amount of code, trying to scale it, refactor, maintain, observe, debugging, unit testing, picking a framework for a project are all a must-need experience for a devops person to function effectively in their devops role. In short, there cannot be a junior devops engineer.

Without coding experience it will be difficult to understand concepts like state management, code versioning, code performance, library dependencies, packaging, need for containers, distributed tracing, why centralized logging and the list will go on. And these concepts are very much part of devops.

A devops role demands someone to learn a suite of tools to implement end-end automation. Anyone can learn these suite of tools without prior software development but that doesn’t make them devops ready. Being a software developer and working for few years as a developer is the very first step in becoming devops ready.

Software development is a very wide spectrum, every software dev solves different kinds of problems with different software development tool sets. Having hands-on in all these tools is close to impossible. With plethora of tools in devops space, sometimes even experienced developers find it little intriguing to understand what a particular tool is for and what kind of problem it solves. Learning to use a tool is easy but the ability to decide right tool for the right job and the optimal usage of the tool will come with years of experience on software development.
Knowledge, Not KLOCS
Tags: programmersstone, reciprocality
Published: 2020-03-08 07:14:28

---
title: Knowledge, Not KLOCS
published: true
description: Programmer's Stone, Thinking about Programming
tags: #programmersstone, #reciprocality
---



Programmers are expensive. The results of their work must be captured and used for the benefit of their organization. The trouble is, the traditional packer way to count results is to count what they can be seen producing. The results of a programming team studying a problem, coming to an understanding, and testing that understanding down to the ultimate rigor of executable code are not the KLOCS of code they typed in when they were learning. They are the final understanding that they came to when they had finished.

The reason why it is important to identify a value that way around is that sometimes, the understanding shows a much easier way of doing things than the design the team started with. A classic mapper/packer battleground in programming consists of the mappers seeing that with what they know now, a reimplementation could be done in a fraction of the time, and would not suffer from maintenance issues that they see looming in the existing code. The Packers see the Mappers insanely trying to destroy all their work bias (if there weren't backups) and repeat the last few months, which have been terrible because they obviously didn't know what they were doing anyway (they kept changing things). The packers set out on one of their crusades to stop the mappers, and the organization has to abandon its understanding, which cannot be used in the context of the existing source code.

The intelligent organization wants the most understanding and the least source code it can achieve. The organization stuck in inappropriate physical mass production models doesn't count understanding and counts its worth by its wealth of source code, piled higher and deeper.

Copyright (c) Alan G Carter and Colston Sanger 1997
Andriod Core Concepts
Tags: android, java
Published: 2020-03-08 06:50:44

I started to study the core of android few days back. I feel I am 1 year late to this. Ironically, You don't need to stretch too hard to find it. It is available in Android developer Documentation. 
I would recommend you start from (1) Java memory allocation (2) Android Memory management (3) Linux memory management concepts. 

1. https://developer.android.com/guide/components/activities/intro-activities
2. https://developer.android.com/topic/performance/memory-overview
3. https://www.youtube.com/playlist?list=PLWz5rJ2EKKc9CBxr3BVjPTPoDPLdPIFCE
How do you document your Microservice cluster? 
Tags: discuss, microservices, help
Published: 2020-03-08 06:45:58

Looking at how microservice architecture has become a go-to pattern for projects, it has become apparent that documentation can't be left out. 

I would appreciate it if more light is thrown on how documentation is done when building a project implements a microservice architecture. 
 
- Do you consider documenting only the API gateway? If so then why? 

- Do you consider documenting each service/microservice and then all centralized? If so, how do you centralize all the documentation? Is there a tool for automating this?