teleren/devto huggingface dataset:
What is Unity Mars?
Tags: unity3d, ar, testing
Published: 2020-06-10 14:02:50

[MARS | Unity](https://unity.com/products/mars)

I got interested of this because I notice that it's for AR developers. I just couldn't figure out from their own site (link above) what's the benefit.

One thing I got out of the website was that it's possible to simulate AR apps with this as right now you need to build the thing to your device and use the camera in real world to see how it looks like.

"Multiplatform AR dev framework" section on the website sounded a little bit fishy as they kind of explained that it's happening in AR Foundation package that's already free.

The price is ridiculous for person like me who don't have a company to pay it. I really hope that Unity doesn't become greed with their pricing models as they are planing to do IPO. I'm happy to invest some money to their stock as long as they keep the current focus that everyone likes and doesn't try to squeeze every penny making less in long term when users leave.

[Unity Technologies Launches Unity MARS: A First-of-its-Kind Authoring Studio for Creating Intelligent Augmented Reality Experiences](https://www.businesswire.com/news/home/20200608005110/en/Unity-Technologies-Launches-Unity-MARS-First-of-its-Kind-Authoring)

"...gives creators across industries the power to build intelligent AR content seamlessly." If I understand correctly Mars is more like testing platform for AR apps developed using AR Foundation that's **free**. Imo "build" word in this sentence is a little bit confusing as it's not for literally building like AR Foundation but for testing. Of course testing is part of building process so I guess that's the reason they used that word.

Then in the article Timoni West from Unity says that Unity Mars solved three biggest challenges AR creators faced and those were "[1.] Creators can author complex, data-oriented apps visually, [2.] test their experiences without leaving the MARS authoring environment, and deliver apps that are contextually aware, flexible, and [3.] truly interact with the real world." I'm not sure if I added the numbers into the correct positions because the sentence is very complex and full of jargon. This is great example of how to not explain a product to an investor. What I believe Timoni tries to say is that it's for testing AR apps simply and with the control of environment meaning that they can place a chair to the position and location they want.

---

I'm done with this. Seems like Unity Mars is just a way to test AR apps without all that building and testing on real device in real environment. It's probably somewhat useful but because there is pretty high price tag, I'm of course not going to buy it.
#1 App Development Company in Gurgaon-TranciscoLabs
Published: 2020-06-10 13:55:34

TranciscoLabs- App development company in gurgaon offering full-cycle mobility solutions from initial conceptualization of your apps to the final deployment in the app store.We as a growing IT services organization also offers an in-depth and prime quality of code development services in gurgaon.

We have a team of inventive people giving quality services and offering cost-efficient and customized services to businesses across the world.In the past few years,JavaScript has become a leading scripting language and consider the ever-growing popularity of JavaScript in app development.We have an experienced app developers who can deal with this leading scripting language used in app development.Our experienced developer team have a 7+ year experience in application development.
Python argparse cheat sheet
Tags: python, argparse, cheatsheet
Published: 2020-06-10 13:53:27

---
title: Python argparse cheat sheet
published: true
description: Python argparse cheat sheet
tags: python, argparse, cheatsheet
//cover_image: https://direct_url_to_image.jpg
---

<div class="entry-content"><p>I have a confession to make: I never remember how to use argparse. Maybe it’s because I don’t use it often enough to have how it works memorized, but I certainly use it often enough that I’m annoyed every time I have to look it up. Argparse? More like <strong>ARGH</strong>parse. Either way, I thought I would make a handy cheat sheet that can be quickly looked up rather than reading the documentation.</p><p><strong>Read a single argument</strong> <strong>with a value</strong></p><p><code>parser.add_argument('--id', type=int, nargs=1)</code></p><p><strong>Read a single argument with a defau</strong>lt</p><p><code>parser.add_argument('--id', type=int, nargs='?', default=0)</code></p><p><strong>Read a flag (boolean) argument</strong></p><p><code>parser.add_argument('--delete', nargs='?', const=True, default=False)</code></p><p><strong>Read multiple arguments</strong></p><p><code>parser.add_argument('--ids', type=int, nargs='+')</code></p><p><strong>Required arguments</strong></p><p><code>parser.add_argument('--id', type=int, nargs=1, required=True)</code></p><p>That should cover the common use cases, hope this has been helpful for someone other than me!</p></div>
[~]$ git init (AdventureSite)
Tags: github, opensource, react, webdev
Published: 2020-06-10 13:52:10

Hey there :wave:,
Hope you guys are doing well :) (& washing your hands :droplet: :clap: :droplet:) So here is my new post from GSoC series, It sums up the 1st week of the GSoC Work Period.   

# Tasks I Did:
------------------------------------------------
#### :white_check_mark: Setup A New React Project
#### :white_check_mark: Added dependencies
#### :white_check_mark: Created a GitHub a Repository (Update - It's now in the `Moving Blocks` Organization) 
#### :white_check_mark: Translated the front-end [Html/css --> React jsx]
#### :white_check_mark: Optimized styling and Replaced pure JS functions('s working) into jsx and stylsheets.
#### :white_check_mark: Setup gh-pages (on origin repository)
#### :white_check_mark: Implemented the basic Layout.

---------------------------------------------------------
> #### Post Type: Update.

Regards,
Prathamesh (TheShubham99)


### `$ Ctrl+z`

> ### `program exited with exit code 0 (0x0)`
🔥 Quick Tip: How to create a "PureComponent" as a functional way
Tags: react, tutorial, webdev, devtips
Published: 2020-06-10 13:45:40

On this simple trick, I'll show you how to create a `PureComponent` as a functional way with `React.memo`.

```js
// CLASS BASED - OLD WAY
class Button extends React.PureComponent {
  render() {
    const { text } = this.props;
    return (
      <button type="button">{text}</button>
    )
  }
};

// FUNCTIONAL

// With Function
function Button({ text }) {
  return <button type="button">{text}</button>;
};
export default React.memo(Button);

// With Arrow Function
const Button = React.memo(({ text }) => <button type="button">{text}</button>);
export default Button;
```

---

Did you like it? Comment, share! ✨
North America is the largest structural health monitoring market due to aging infrastructure
Published: 2020-06-10 13:43:29

Structural health monitoring is the usage of non-destructive sensing and investigation of structural features, to identify damage that has occurred at a specific location and evaluate its severity and consequences. The global structural health monitoring market is growing at a significant rate, due to a disastrous breakdown of the infrastructure outcomes in loss of lives and strict government regulations. Different technologies contributed to the structural health monitoring market size. The market has witnessed a high demand for wireless structural health monitoring in the coming years due to the reduced cost of structural health monitoring and mounting demand for wireless technology.

Disastrous breakdown of the infrastructure outcomes in loss of lives and encounters high prices, aging infrastructure, high asset investments for structural health monitoring, decreasing price of sensors, strict government regulations, and advanced benefits of structural health monitoring are the primary growth drivers for structural health monitoring market.

In addition, reduction of inspection cost, mounting government initiatives for public safety, usage of innovative sensor technologies, public-private enterprises for infrastructural progress, and integration technology are the major factors driving the growth of the structural health monitoring market.

Get Free Report Sample at: https://www.vynzresearch.com/semiconductor-electronics/structural-health-monitoring-market/request-sample

Geographically, North America is the largest structural health monitoring market due to aging infrastructure such as tunnels, bridges, and power plants. In addition, strict government regulations, acceptance of monitoring systems in various applications, and usage of innovative sensor technologies are also up surging growth of the North American structural health monitoring market.

Moreover, Asia-Pacific is witnessed to observe the highest growth in the market due to speedy infrastructural development. In addition, implementing stringent laws and regulations for the construction and maintenance of structures, and a huge number of infrastructure construction projects are some of the factors facilitating the growth of the Asia-Pacific structural health monitoring market.

Key players in the structural health monitoring market are catering to the demand by collaborating, and acquiring with small players and investing in technologically advanced products across the globe. In June 2017, Acellent Technologies Inc collaborated with TESTIA GmbH for marketing commercialization and installation of Acellent’s structural health monitoring products. Sixense, Campbell Scientific, Acellent Technologies Inc., Geokon Incorporated, Cowi, Geocomp, and Structural Monitoring Systems plc are the key players offering structural health monitoring.

Contact Us:

VynZ Research
Call: +91-996-028-8381
Toll-Free (U.S. and Canada): +1-888-253-3960
Email: enquiry@vynzresearch.com
Web: https://www.vynzresearch.com
57 : My algorithms 
Published: 2020-06-10 13:38:42

I want to understand how the computer makes decisions and processes one by one, based on mathematical reasons, which means operating. That is what I decided finally. To concentrate better, and exactly, the recording is the best way to reflect my studying, and solve algorithm problems!

A programmer is a person who knows how to solve each problem by themselves, therefore, it is necessary to know my logic, and what is my logic?

------- 


##Situation > Why? > How? > Try > Solve or Not

I am going to practice ‘computational thinking’, processing one by one until it can be accurate on my own, I think I accept the way of learning in order.

------- 



##The New Version 
**[Input] Understand problems > applying the conditions > operating the solutions > pseudo-code > coloring by computer language > Solve it! [Output]**

How? Actually solving problems, it is a new chapter to say Hello world from the reason to situation, from the structure to logic, from photographer world to developer world! 📸
Are you using an ergonomic mouse?
Tags: health, mouse
Published: 2020-06-10 13:29:05

I'm starting to feel some pain in my right wrist/arm these days. Being 8+ hours in front of the computer holding a mouse is beginning to take a toll on my arm apparently :grin:

Do some of you use an ergonomic mouse? If you do, did it help with any pain you felt in your wrists/arms? Which mouse did you have the most success with?

I'm in pain over here people, help make the right choice!

Peace :heart:
Daily Challenge #256 - How Many Are Smaller Than I?
Tags: challenge
Published: 2020-06-10 13:20:52

---
title: Daily Challenge #256 - How Many Are Smaller Than I?
published: true
series: Daily Challenge
description: [add a brief description of task]
tags: challenge
//cover_image: https://direct_url_to_image.jpg
---
Write `function smaller(arr)` that given an array `arr`, you have to return the amount of numbers that are smaller to the right of that number in the index.

*For example:*
smaller([5, 4, 3, 2, 1]) === [4, 3, 2, 1, 0]
smaller([1, 2, 0]) === [1, 1, 0]

*Tests:*
smaller([5, 4, 3, 2, 1])
smaller([1, 2, 3])
smaller([1, 1, -1, 0, 0])
smaller([5, 4, 7, 9, 2, 4, 4, 5, 6])

Good luck!

***
_This [challenge](https://www.codewars.com/kata/56a1c63f3bc6827e13000006) comes from joh_pot on CodeWars. Thank you to [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
No output on display in Linux with a NVIDIA graphics card
Tags: nvidia, graphicscard, archlinux, troubleshooting
Published: 2020-06-10 13:12:37

It was my first time to apply a [NVIDIA](https://www.nvidia.com) graphics card to my homebuilt [Linux](https://www.linux.org) machine. 

Thus or independently a trouble happened.
No output on display, connected by a HDMI cable, was shown. Aka blank screen. It was in not only [LightDM](https://github.com/CanonicalLtd/lightdm) but also [Xfce](https://www.xfce.org) desktop after login. It always happened around the display manager, and, however, often around the desktop.
What was not critical seemed critical in that my time killed increased gradually... 🤕

The distro of my computer was [Arch](https://www.archlinux.org)-based [Artix Linux](https://artixlinux.org).
Arch linux helped me gently again.
I ran it according to the [official documentation about NVIDIA](https://wiki.archlinux.org/index.php/NVIDIA):

```console
# pacman -Sy nvidia
```

Happily ever after 🦔
Headless Technology - Lunch & Learn with Contentful
Tags: headless, api, cms, contentful
Published: 2020-06-10 13:11:42

Do you speak italian and are interested in learning the technical aspects of Headlesss Technology?

atoms, in collaboration with Contentful, created "Lunch & Learn with Contentful", a series of episodes on digital topics. 

Next Friday, 12 June 2020, from 13:00 to 14:00 we'll be investigating the technical aspects to be aware of regarding Headless Technology and the key advantages, from a developer point of view, of a flexible and content friendly environment.
Join us to learn more on the technical advantages of Headless!

Detailed topics:
* Differences between traditional and Headless CMS
* From CMS to Content Hub
* Complexity, micro services and Headless

[Register here to get your ticket, but don’t wait too long: 20 is the attendees limit!](https://www.eventbrite.it/e/biglietti-headless-technology-lunch-learn-with-contentful-106906929504)
ScanPC, your new (open source) tool for Windows compliance audits
Tags: security, showdev, python
Published: 2020-06-10 13:09:38

Hi,
Let me introduce you to ScanPC, a useful Python script I have been developing since 2016.
It aims to help you quickly assess a Windows computer with the gathering of information like :
- the user accounts list
- the password policy
- the share folders list
- the hardware configuration
- the OS version
- the network interfaces
- the Windows updates (KB) list
- the softwares installed
- the firewall state
- the processes list
- the services list
- the antivirus state
    
Those information are then showable in an HTML report.

**Compatibility**
You can run it on the following Microsoft Windows systems :
- XP x86
- 7 x86 and x64
- 10 x86 and x64

You don't even need to have Python installed on those computers ! 
Thanks to pyinstaller, you can compile the code into an executable.
You will just need them to have Visual C++ 2010 x86 (which is quite common).
    
**Use case**
You work in an IT Security team who do compliance audits.
Some of the computer you must assess are not connected to the network for verious reasons.
You put an executable of a compiled ScanPC on your auditor USB key and go scan those computers.

**Demo**
<img id="demo" src="https://whatsecur1ty.com/contents/IMG/scanpc_demo.gif" alt="scanpc">

Interested : visit [my website](https://whatsecurity.org/contents/projects/scanpc.php)
This tool is open source and I wish it will make your day brighter !

**You want to contribute or you find an issue** : please pull a request or open an issue on [its Github repo](https://github.com/alevoski/ScanPC) !  

If you **like** this project, please **share** it and **star** it !
You can also [buy me a **coffee**](https://www.buymeacoffee.com/alevoski) ;) !

<u>PS</u> : Be carreful when you put USB devices in one computer to one another, you should always check your USB key for viruses after each scan !
Thankfully, the usb devices cleaning station I have been developing at the same time, [Decontamine](https://whatsecurity.org/contents/projects/decontamine_linux.php) will help you keep your keys clean.
{HELP}Collapse in map() react
Tags: javascript, react, help
Published: 2020-06-10 13:00:43

HI, I'm doing a collapse on the map (), when I click to open a card it opens normal but when I click to open another card it first closes the card that I had opened for the second click to open the card. I would like to open a card and when opening another card, keep the previous card open.


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


up to my button:

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


component I want to show / hide:


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ql0ja89ee1x93z32rsd2.png)
Fun Things to Automate With Hubitat
Tags: hubitat, automation, home, iot
Published: 2020-06-10 13:00:10

In my last post, I talked about [Moving from Wink to Hubitat](https://dev.to/j4s0nc/moving-from-wink-to-hubitat-21dh). In this post I thought I would drop a two notes on things I've setup in my home. 

## Auto Off Timers

A cool feature of the [Inovelli Switches](https://inovelli.com/products/switches/) is the ability to set an auto off timer. We have a bad habit in our house of leaving the basement lights on. So I configured a 20 minute timer: 
![Auto Off](https://dev-to-uploads.s3.amazonaws.com/i/5p61zge133fpph0wpyjj.png)

No, really, it's that simple with the Hubitat and Inovelli Switch! 

## Simple Automation Rules 

In the last article I talked about using the Rule Machine to setup complex rules, but what if you just need something simple? Using 
[Simple Automation Rules](https://docs.hubitat.com/index.php?title=Hubitat%C2%AE_Simple_Lighting)(Previously named Simple Lighting) we can configure basic things without the need for complex rules. 

We have a room in our basement that isn't on a switch, it just has an old pull string light fixture. I replaced the bulb with a ZigBee bulb and setup a simple automation to control it with the other basement switch:

![Basement Light](https://dev-to-uploads.s3.amazonaws.com/i/p1qyf76b48ud9oppb6s2.png)

No more pull string, this bulb is now controlled by the basement switch, and we didn't have to rewire anything! Another cool call out here, the Bulb is ZigBee and the switch is Z-Wave, Hubitat makes it super simple to control devices even if they are different protocols. 

Happy Automating!
PostgreSQL: Confused by error messages around TLS connection
Tags: postgres, server, tls, troubleshooting
Published: 2020-06-10 12:40:55

This is a small story where I was in trouble to configure [PostgreSQL](https://www.postgresql.org/) [TLS connection](https://www.postgresql.org/docs/12/ssl-tcp.html).

I added to /var/postgresql/data/[pg_hba.conf](https://www.postgresql.org/docs/12/auth-pg-hba-conf.html) in the database server a line like this:

```config
hostssl all             all             0.0.0.0/0               md5 clientcert=0
```

Here, `hostssl` means only connection made with TLS/SSL encryption are acceptable.

Then I tried:

```console
$ psql -U $USER -h $REMOTE_HOST ...
```

It resutled in the error:

```console
SSL: certificate verify failed FATAL: pg_hba.conf rejects connection for host "127.0.0.1", user "...", database "...", SSL off
```

I was confused because the host I tried to connect was $REMOTE_HOST instead of 127.0.0.1.
I struggled to understand what really happened.
Finally, it made sense a little when `hostssl` was replaced with `host` for testing:

```diff
- hostssl all             all             0.0.0.0/0               md5 clientcert=0
+ host    all             all             0.0.0.0/0               md5
```

Here, `host` means connection made with TLS/SSL encryption is used if possible, otherwise plain one is.
`psql` was successful this time. Hence I found 127.0.0.1 didn't matter. Without the necessity of TLS/SSL encryption, `psql` could connect to $REMOTE_HOST.
I continued trials and solve the problem around certification files.

I don't know why 'rejects connection for host "127.0.0.1"' was shown in the error messages.
It might be fallback. Or maybe any effect in pg_hba.conf or [postgresql.conf](https://www.postgresql.org/docs/12/config-setting.html).
It was a tough but not-a-bad time because I was trained... 🙂
Emergency Notification System
Tags: emergencynotification, emergencymanagement, emergencymanagementplan
Published: 2020-06-10 12:40:22

<a href="https://www.stayinbusiness.com/resource/emergency-notification-system/" title="Emergency Notification Systems"><strong>Emergency notification systems</strong></a> play a vital role while responding to a crisis. Delays in communications, for instance informing the fire department when there is a fire outbreak, could have dire consequences.  Business continuity efforts could be stalled while property, assets and resources could suffer irreparable damage.

Almost every business today invests in an emergency notification system as it sets them apart from their competition in terms of <a href="https://www.stayinbusiness.com" title="Business Continuity"><strong>Business Continuity</strong></a> and <a href="https://www.stayinbusiness.com/resource/disaster-recovery-planning-software/" title="Disaster Recovery"><strong>Disaster Recovery</strong></a> capabilities and operational resiliency.
 
<a href="https://www.stayinbusiness.com/resource/emergency-notifications/" title="Emergency Notification"><strong>Emergency notification systems</strong></a> can be adapted depending on the crisis at hand, allowing organizations to respond quickly without delays. It is an investment that safeguards a business' commercial interests,  protects its assets and resources while ensuring the health and safety of employees.
(Solved)Graphql vue apollo define category{connect: Int!}
Tags: help, discuss, vue, vueapollo
Published: 2020-06-10 12:29:07

Hi everyone,

Solved:
Solved with the help of @BenHeimberg here https://stackoverflow.com/questions/62304716/how-to-create-nested-relationships-in-laravel-lighthouse-and-vue-apollo/62305347#62305347

Th repos are here

You can play with this whole project by cloning my repos https://github.com/wolfiton/booksql-laravel backend

https://github.com/wolfiton/booksql-vue frontend



```js
mutation (
  
      $categoryId: ID!
)

createBook(
    input: 
      category: {connect: $categoryId]
    }
```

Update: Before someone will say that I can do this

```js
category: Int!
category: $category
```

```js
variables: {

        $category: this.categoryId,
      },
```




Unfortunately I can't because the backend framewok requires me to send the mutation like this
```js
variables: {

        $category: { connect: this.categoryId },
      },
```
So any help is apreciated.

I was working graphql an I need to define the following type:

`category: {connect:ID!}`
```js
mutation (
      $title: String!
      $image: String!
      $author: String!
      $description: String!
      $link: String!
      $featured: Boolean
      $category: { connect: Int! }
)
{
  createBook(
    input: {
      title: $title
      image: $image
      author: $author
      description: $description
      link: $link
      featured: $featured
      category: $category
    }
  ) {
    id
    title
    author
  }
}
```
My form uses model to recieve the data for the connect from a select.

I dont know how to define this variable for my mutation:
```js
variables: {

        $category: { connect: this.categoryId },
      },
```

I need to replace this: 
``` js
$category: { connect: Int! }
``` 
with something like this 
```js 
$category: { connect: this.categoryId }
```

Does someone know how i can define this type?

Thanks in advance