teleren/devto huggingface dataset:
#help, Help required with enumerating contents of a harsh table using PowerShell
Published: 2019-11-24 19:13:50

(Please redirect to the correct help forum if this is not the right place)

I am running a simple PowerShell script to retrieve details of Resource Groups from a subscription and exporting these to a .cvs file.

The script is working fine to pull out all the details required except that the Tags column only displays “System.Collections.Harshtable”, instead of the actual tags that I am interested in.

I have tried googling around and the suggestions I am getting are to use:

1. GetEnumarator or
2. GetMember commands.

But I think I am not using the correct syntax for these commands, as I still do not get the two tags that I am looking for.

However, when I run the Get-AzResource command manually per subscription without exporting to a .cvs file, the name/value pairs are all listed correctly per resource group, except that the resources are NOT listed in a table.

Below is the sample code that I am running:

 
  # Get Subscription List

$Subscriptions = Get-AzSubscription
 
  # Go through each subscription
 
foreach ($Subscription in $Subscriptions)
{
    # Check wheather the subscription is active
 
    if ($Subscription.State -ne "Disabled")
 
    {
        # Change Azure context to current subscription
 
        Set-AzContext -SubscriptionId $Subscription.Id | out-null
 
        $ctx = Get-AzContext
 
        Write-Output "Script is now procesing resources from                        '$($ctx.Subscription.Name)' subscription"
 
        # Get list of Specific Azure Resources
 
        $AzureResources = Get-AzResource -ResourceType "Microsoft.Databricks/workspaces"
 
        foreach ($Resource in $AzureResources)
 
        {
            Get-AzResourceGroup | Select-Object -Property ResourceGroupName, Location, ProvisioningState, Tags |
            Export-Csv C:\Temp\DatabricksTags.csv -NoTypeInformation
         }
     }
)
 
The CSV Output file from the above is as follows:

ResourceGroupName, Location, ProvisioningState, Tags
1.ResourceGroup1, Location1, Successful, System.Collection.Harshtable
2. etc

I am looking for an easy way to enumerate two tags from the above Harsh table instead of it just printing out System.Collection.Harshtable

Thanks in advance for any guidance
Freelance React Developer’s Checklist
Tags: react, javascript, webdev
Published: 2019-11-24 18:39:22

Whether you are a freelance React developer or you do another kind of freelance work on short term projects, you can recognize similar patterns in your workflow. I found similar patterns in process of building React.js projects. In almost every project, I need to ask for clarification or similar questions in regards to graphic design.

This checklist is not only for freelance React developers, but it can be helpful for others who work closely with developers, such as project managers or graphic designers. I use this checklist before starting building the project and after agreement with client.

I have been working remotely for clients worldwide as a freelance React developer. I mainly cooperate with other developers, graphic designers and project managers. Many times, I need to cooperate with people in other timezones. It means, the communication with other participants is crucial and needs to be effective. This checklist can be applicable to building web interfaces in other technologies too, but I have mostly experience with React.js projects.

Have you ever came across a freelance job like this?

We are currently looking for a freelance React developer to assist us with an ongoing project. We have mockups of widgets, which we want to add into our React.js project. We’re quite pressed for time at the moment, and we’re hoping to have the build completed by the end of next week…

Many times freelance developers are hired, because the project is urgent and it doesn’t meet estimated deadline. In this case, effectiveness is one of the most important attributes.

For more [**click here**](https://andrejgajdos.com/freelance-react-developer-checklist/).

![Freelance React Developer’s Checklist](https://thepracticaldev.s3.amazonaws.com/i/k2s2f371cus8icwxg4ob.png)
VS Code + GitHub Gist = Cloud-Based Developer Scratchpad
Tags: vscode, webdev, showdev, discuss
Published: 2019-11-24 18:15:55

---
title: VS Code + GitHub Gist = Cloud-Based Developer Scratchpad
published: true
description: 
tags: vscode, webdev, showdev, discuss
---

[GitHub Gist](https://gist.github.com) provides a powerful and flexible platform for quickly creating, editing and sharing code files and snippets. In order to make it easier to iterate on Gists from a feature-rich editor, I created a VS Code extension that exposes Gists via a “virtual file system”, that allows you to edit gists as if the files were local: [GistPad](https://aka.ms/gistpad).

{% twitter 1202123922008768514 %}

My team builds both [Visual Studio Online](https://aka.ms/VSO) and [Visual Studio Live Share](https://aka.ms/vsls), so I’m keen to explore adding this Gist editing experience to the web-based editor and then enabling you to collaborate with others in real-time 🚀

That said, I’m curious to hear if people think this kind of experience could be useful, and also, what you’re currently using Gists for (or want to use them for!). This is largely just a proof-of-concept, so any feedback would be hugely welcome 🙏
Apache Spark Bitesize Series
Tags: apachespark, productivity, tutorial, beginners
Published: 2019-11-24 18:08:03

Want to learn Apache Spark? 
Stream Processing, Analytics, and Machine Learning? 

This blog post series is for you!

> Apache Spark is an open-source distributed general-purpose cluster- computing framework. Spark provides an interface for programming entire clusters with implicit data parallelism and fault tolerance.


## It's time to light up the Spark:
_Apache Spark bitesize series is built for busy people._

Each post will cover one of the three most important areas in working 
with data technologies and challenges today:

**Streaming**
**Analytics**
**Machine Learning**


Every post will have a maximum of *2 minutes read* length coupled with longer tutorial and hand-on workshops for when you can put the time.

![](https://github.com/adipola/my-posts/blob/master/pictures/baby-yoda-spark.gif?raw=true)

Want to get updates on new bitesize posts? 
Follow me here on dev.to and on [Twitter](https://twitter.com/AdiPolak).

Have a question for me? comment or send a DM.
Top 10 risks of outsourcing and how to mitigate them
Tags: outsourcing
Published: 2019-11-24 18:04:28

---
title: Top 10 risks of outsourcing and how to mitigate them
published: true
description: Getting into outsourcing can feel like sticking your hand into a hornet’s nest. You can’t avoid all risks of outsourcing, yet most of them are easy to mitigate.
tags: outsourcing
cover_image: https://www.mindk.com/blog/wp-content/uploads/2019/11/illustration-arrest-blur-1422673-min-1920x1080.jpg
canonical_url: https://www.mindk.com/blog/risks-of-outsourcing/
---
As a person who has never engaged in outsourcing, you might fear that remote cooperation will cost you too much time and money. These fears are natural when the development team is yet to earn your trust. You can’t avoid all risks of outsourcing, but most of them are easy to mitigate. Following our 10 tips can save you a ton of time and money on remote cooperation.

[Continue reading...](https://www.mindk.com/blog/risks-of-outsourcing/)
Bertelsmann Scholarship: AI track
Tags: machinelearning, pytorch, scholarship
Published: 2019-11-24 17:59:38

Last Friday I got an email saying I was awarded the Bertelsmann Technology Scholarship Challenge Course. The course is an <a href="https://www.udacity.com/course/deep-learning-pytorch--ud188">Intro to Deep Learning with PyTorch</a> through Udacity. It utilizes Python as the programming language and is the fundamentals of AI (Artificial Intelligence). The classroom opened yesterday so I've already started. This is actually a free course on Udacity as well if anyone would like to take it!

<h2>So what makes the challenge course different?</h2>

Well, I'm glad you asked. Bertelsmann awarded around 45,000 scholarships to three tracks. AI, Data Analysis and Cloud Computing. That's 15,000 people per course. Then the top 1,500 people will get the full nanodegree. They take into account if you completed the entire course as well as the amount and quality of participation in the Slack group.

<h2>What I expect:</h2>

The recommended study time is 10 hours a week. During my last scholarship through them I definitely procrastinated on studying the first month since it was a topic I was already familiar with so I'm not doing the this time.

I have no AI experience and very minimal Python experience so I know it's going to take a lot more than the 10 hours. Thankfully on Slack we have a beginners channel to share resources and there are channels to get help.

I had started this course before but was quickly overwhelmed by the speed so having the extra help (and a deadline) is already helping. Personally, I tend to stay off Slack for the first week because it's a lot of people introducing themselves, posting just to post, repeat questions and not threading anything. It's unnecessary and very overwhelming. After the orientation and an AMA session I'm sure it'll calm down.

<h3>Have you done any AI? Is it something you're interested in?</h3>

View full article on https://jkimexploring.wordpress.com/2019/11/24/bertelsmann-scholarship-ai-track/
Invitation to join discord server "Share what you see"
Tags: swys
Published: 2019-11-24 17:34:53

This is an invite for discord server which We created out of a commitment to learning/reading something new every day.

Follow below link

[Share what you see](https://discord.gg/d8ExuZA)

Everyone learns/reads something new every day but not everyone can write a long article about it or it's not that worth to write an article about to share with everyone well for that we have this server for you.
No need to write long articles just share the link with the description or write a short paragraph about what you learn/read.

We are planning to do a lot more with the server. 

Currently, there are 6 channels 
1. Web development
2. video games 
3. Internet 
4. Startups
5. fitness
6. Movies/TV shows

Let us know if you want to create new channels for your interest.

The server is open for all to join. Share the link with everyone.
Please send any feedback you have in the comment section here or in the server.


Click below link to join:
[Share what you see](https://discord.gg/d8ExuZA)
Flow: $FlowFixMe command should be $FlowFixYourself. FlowType is dying!  🧐🤔😱
Tags: javascript, flowtype, react, typescript
Published: 2019-11-24 16:33:35

First, let's talk about what is Flow or FlowType...

From their official site -

`FLOW IS A STATIC TYPE CHECKER FOR JAVASCRIPT.`

From ReactJS's site-

Flow is a static type checker for your JavaScript code. It is developed at Facebook and is often used with React. It lets you annotate the variables, functions, and React components with a special type syntax, and catch mistakes early.

Seems fair :ok_hand:

If you already used Flow, then you know that in a few cases in your code, Flow is not happy though you think your code is fully okay and should not be modified to make Flow happy. 
But as Flow is not happy with that code, the build will break. :scream:
So, to bypass the Flow error, we have to add `$FlowFixMe` before that specific line. :neutral_face:

And if you are working with a big codebase, then you probably need to add this thing a lot in a lot of places. :disappointed:

Like, if we go to ReactJS GitHub repo and search for `$FlowFixMe` in the whole repo, we will find a lot of them in the codebase.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/w14mt5bb1ifbwa0dcb9t.png)

I think, that `$FlowFixMe` should be `$FlowFixYourself` :wink:

Now, let's talk about what Facebook is doing to make Flow better.

Actually, they are even removing Flow from their own projects and migrating their codebase to TypeScript.

One of the popular Facebook tools is JEST.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/i5ivbjwwbzwkux9n1299.png)

They used Flow on the Jest codebase. Now they have migrated and started using TypeScript.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/hq5gk94antwm79vr1mb3.png)

So, as Facebook developers are also removing FlowType from their projects, what do you think about it? 

Do you wanna use it for your projects or remove it?
Do you think they will make it better?

Cheers!
:wave:

As I am trying to contribute contents on the Web, you can buy me a coffee for my hours spent on all of these ❤️😊🌸
<a href="https://www.buymeacoffee.com/destromas" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>

<h3>I will provide some reference URLs for you guys to look more-</h3>

{% github https://github.com/facebook/flow/issues/7365 %}



<b>To see FlowFixMe search result in ReactJS reop, [:point_right: Click here](https://github.com/facebook/react/search?q=%24FlowFixMe&unscoped_q=%24FlowFixMe)</b>


<b>To see HackerNews Thread [:point_right: Click here](https://news.ycombinator.com/item?id=18989610)</b>
New approach for parsing and validation of JSON
Tags: json, parsing, typescript, npm
Published: 2019-11-24 16:13:33

In some sense, it was a crazy weekend. 

An early Saturday morning, I decided to do some experiments with TypeScript mapped types. And in the blink of an eye, I have a prototype of an extremely simple typesafe parsing/validation library for TypeScript/JavaScript. It appears to be that the next couple of days were turned in my personal hackathon. 

So I ended up with a package similar to well-known jsonschema. Still, more flexible, customizable and native for TypeScript so that your input data is simultaneously type-checked.

[You can check out the package and documentation by the link](https://www.npmjs.com/package/validolum).
30 Days Of Python Challenge: 5th Day
Tags: python, coding
Published: 2019-11-24 15:28:30

I have been teaching JavaScript, React, Redux, Node and MongoDB(MERN stack) for the last two years. Every now and then new versions and updates have been coming and I had to update myself for the changes every time. 

I would say Medium articles helped me quite a lot to update and adapt new changes. Without medium articles my job would have been impossible. I have a special respect for people who contribute on medium and here on dev.  

So far, I was a consumer and I didn't produce much online contents. In 2020, I will produce content in different topics(JavaScript, React, Redux, Node and Python). Actually, before 2020 turns I produced a python challenge which is beginner friendly. 

Five days ago, I released a 30 days of python challenge and the response was very rewarding. May be if you like a challenge you can join.

If you have a plan to learn python I would like to invite you to join this challenge and follow me on LinkedIn for updates:
LinkedIn: 
👥 Join the telegram channel by clicking https://lnkd.in/eE5Qgqd.
⏱️ Duration: 20 Nov - 20 Dec, 2019
💻 Challenge Material on Github:https://lnkd.in/epW6d_U
💻  Github JavaScript: https://github.com/Asabeneh/JavaScript-for-Everyone
Good Luck!! ✨
TIL where to find tomcat in Mac when installed through homebrew
Tags: mac, tomcat
Published: 2019-11-24 14:37:40

---
title: TIL where to find tomcat in Mac when installed through homebrew
published: true
description: 
tags: mac, tomcat
---

I was trying to setup Apache Tomcat as a server on Eclipse and here is what I did.

1. Installed Tomcat through homebrew: `brew install tomcat`.

2. To view the directory of the brew package: `brew ls tomcat`

3. Specify the path in Tomcat installation directory on eclipse: `/usr/local/Cellar/tomcat/9.0.29/libexec`
(Note: When I tried `/usr/local/Cellar/tomcat/9.0.29/` eclipse kept telling me ` Unknown version of Tomcat was specified.`)


Shoutout to this [stackoverflow question](https://stackoverflow.com/questions/38030519/how-to-find-out-which-folder-tomcat-is-installed-by-brew-on-macos) whose answers helped me today!
Why do you need to add a meta viewport tag inside <head> element? (with example)
Tags: todayilearned, html, webdev, codenewbie
Published: 2019-11-24 13:46:37

Have you ever wondered why you need to add:

```html
<meta name="viewport" content="width=device-width, initial-scale=1">
```

inside `<head>` tag and why it is useful?


You're in the right place!


### Example

First of all, open this web page in a new tab: http://www.pakistan.gov.pk/

Open developer tools and enable device mode in your browser. This mode simulates the behavior of the web app on a mobile device. Notice that the page is zoomed out to fit the fixed-width content on the screen. This is not a good experience because the content will likely be too small for most users, forcing them to zoom and pan.

![bad viewport](https://thepracticaldev.s3.amazonaws.com/i/85hmk6eicy9x2wkvamha.png)


### Set the visual viewport

1- Edit head element:

![Edit head element](https://thepracticaldev.s3.amazonaws.com/i/ab4m7uafxjsltv01ddlx.png)


2- Add viewport:

Then add viewport meta tag and check the page in device mode. Notice the page is no longer zoomed out and the scale of the content matches the scale on a desktop device. If the content behaves unexpectedly in the device emulator, toggle in and out of device mode to reset it.

```html
<meta name="viewport" content="width=device-width, initial-scale=1">
```

![Add viewport](https://thepracticaldev.s3.amazonaws.com/i/yhys94h9bczhm28tsn6b.png)

---

## Explanation


A meta viewport tag gives the browser instructions on how to control the page's dimensions and scaling. The `width` property controls the size of the viewport. It can be set to a specific number of pixels (for example, width=500) or to the special value `device-width`, which is the width of the screen in CSS pixels at a scale of 100%. (There are corresponding `height` and `device-height` values, which can be useful for pages with elements that change size or position based on the viewport height.)

The `initial-scale` property controls the zoom level when the page is first loaded. Setting the initial scale improves the experience, but the content still overflows past the edge of the screen.

So then you need to use CSS `flex` or `grid` and other properties to make it responsive. But this is the part of another blog story 😜

Thanks, Awesome DEVs!

{% user nomangul %}
Transformando dores musculares em prazer (amor)
Tags: triathlon, hobby, bike, cycling
Published: 2019-12-17 12:11:33

---
title: Transformando dores musculares em prazer (amor)
published: true
date: 2019-11-24 13:40:00 UTC
tags: triathlon, hobby, bike, cycling
canonical_url: https://avelino.run/lifestyle/transformando-dores-musculares-em-amor/
---

![Thiago Avelino pedalando na estrada caminho do mar - estrada velha de santos](https://avelino.run/blog/_MG_1754-2019-11-24.JPG "Thiago Avelino pedalando na estrada caminho do mar - estrada velha de santos")

De arrepios de dores musculares a amor, acredito que essa seja a evolução que tive dentro da modalidade de bike.

Quando comecei pedalar eu sentia diversas dores muscular e muita dor na "bunda" (na real é no períneo), começar pedalar era uma tortura, chegava no "escritório" (local que fica minha bike) e demorava muito tempo para começar (em alguns dias chegava a horas). Lembro como se fosse hoje eu indo comprar minha primeira bicicleta para o triathlon, quando cheguei em casa comentei com minha esposa "pedalar é tranquilo, nem transpirei". Na minha cabeça eu sabia pedalar, quando era moleque sempre andei de bike, após começar pedalar entendi que sempre andei de bike e que não sabia pedalar.

Com o passar dos meses trabalhei minha mente colocando outra motivação para tirar o foco das dores e começar de fato evoluir na modalidade que tinha mais dificuldade.

Após tirar o foco da dificuldade que tinha (dores 😬) minha evolução na modalidade começou evoluir muito.

Sou muito grato pelos meus familiares (especialmente pela minha esposa e filho 🖤), amigos e marcas por está junto nessa luta diária, sem o apoio deles não seria possível.

Mindhacking é uma prática que está me ajudando muito na evolução no esporte, principalmente nos dias que não estou afim de treinar. Eu tenho publicado bastante coisa da minha vida nos treinos, não é todos os dias que estou motivado, mas se está planejado é necessário fazer, vou lá e faço.

{% instagram B5PnUlQhd6N %}
How to install and setup Vuetify 2 - Laravel 6
Tags: laravel, vue, vuetify, webdev
Published: 2019-11-24 13:30:26

**Vuetify** is a component library based on the **Material Design** standard, widely accepted by the dev community since it wraps the desktop and mobile universes with responsiveness, flexibility, and extensibility.
For more information see: https://bit.ly/2OdsYwK

In this post, I will show you how to install and configure it to create a nice layout for your next app.

First of all, we create a new **Laravel** project:

```
laravel new vuetify-test
```

Go to the app directory and install Vuetify with npm:

```
cd vuetify-test
npm install vuetify
```

Add the Vue scaffolding with **php artisan**:
```
php artisan preset vue
```

Install dependencies:

```
npm install
```

Go to **welcome.blade.php** and add/delete what you need or copy the following to make your file to look like this:

```vue
// /resources/views/welcome.blade.php

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Laravel Vuetify</title>
    </head>
    <body>
        <div id="app">

        </div>
        <script src="{{ asset('js/app.js') }}"></script>
    </body>
</html>

```

Create an **index.js** file in a **vuetify** directory with the following content:


```javascript
// /resources/js/vuetify/index.js

import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'

Vue.use(Vuetify)

const opts = {}

export default new Vuetify(opts)

```

Create a simple component **App.vue**:
```vue
// /resources/js/App.vue

<template>
  <v-app>
    <v-alert type="warning" :value="true">
      Vuetify was installed properly
    </v-alert>
  </v-app>
</template>

<script>
export default {
  name: "App"
};
</script>
```

And finally change your **app.js** file to the following:

```javascript
// /resources/js/app.js

window.Vue = require('vue');

import vuetify from './vuetify'

import App from './App'

const app = new Vue({
    vuetify,
    render: h => h(App),
    el: '#app',
});

```

Watch for file changes and serve the app

```
npm run watch
php artisan serve
```

Go to the server URL and you should see an alert showing that Vuetify it's installed and ready to use!