teleren/devto huggingface dataset:
Typescript - why to use "unknown" instead of "any"
Tags: javascript, typescript, tutorial, beginners
Published: 2020-06-02 20:52:37

As I was saying in my last post, I am trying to avoid using the `any` type as much as possible. Although I understand the need for skipping type checks, I think using `any` defeats the whole purpose of Typescript. Luckily, at work I am also using Eslint so unless I disable some specific rules, I can't integrate `any` in my code.

If you really need to skip type checking, you can use something that Typescript `3.0` introduced: the `unknown` type. Unlike `any`, `unknown` is safer to use in the sense that before actually doing something with data of this type, we must do some sort of checking, whereas `any` has no restrictions.

>*Anything is assignable to unknown, but unknown isn't assignable to anything but `itself` and `any` without a type assertion or a control flow based narrowing. Likewise, no operations are permitted on an unknown without first asserting or narrowing to a more specific type.*

What does that really mean? Let's take the examples bellow:

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

We see we can assign anything to a variable of type `unknown` (I used just a few types to point this out). Now let's see what happens when we try to reassign `unknown` to something that's not `any` or `unknown`:

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

Notice the following: we can assign whatever we want to variables of types `any` and `unknown`. We can only reassign the `any` type variable to whatever we want (in this case, a variable of type number). Trying to reassign `unknown` to a variable of type `string` or `number` will throw an error (as mentioned, it can only be reassigned to `any` or `unknown`).

On their own, variables of type `unknown` are not very useful but when performing extra checks, they can be quite powerful. I am going to use an example in comparison with the `any` type:

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

Looking at the code above, we have two variables, one of type `any`, one of type `unknown`. When trying to run the `.map()` method on `variable_of_any_type`, the editor doesn't complain, although it doesn't know if the variable is indeed of type array (and as we can see, it's not). We won't spot this until after compiling time when we'll get an error saying `Uncaught TypeError: variable_of_any_type.map is not a function`.

When trying to do the same thing with the variable of type `unknown`, the editor complains and says `Object is of type 'unknown'.`. This means that it still doesn't know if it's an array so we must make an extra check. We do that on the next lines, we see that `variable_of_unknown_type` is indeed an array, therefore we can perform the `.map()` function on it.

*Image source: ThisisEngineering RAEng/ @thisisengineering on Unsplash*
June Updates for Meridian 2019 and Horizon 26
Tags: news, docker, elasticsearch, horizon
Published: 2020-06-02 21:32:40

---
title: June Updates for Meridian 2019 and Horizon 26
published: true
date: 2020-06-02 20:51:01 UTC
tags: News,docker,elasticsearch,Horizon
canonical_url: https://www.opennms.com/en/blog/2020-06-02-june-updates-for-meridian-2019-and-horizon-26/?utm_source=rss&utm_medium=rss&utm_campaign=june-updates-for-meridian-2019-and-horizon-26
cover_image: https://i.imgur.com/74fmzvG.png
---

OpenNMS is released on a monthly schedule, the first Tuesday of the month. The next scheduled release will be July 7th.

In June, we released updates to Meridian 2019 and Horizon 26:

## Meridian 2019.1.8

Release 2019.1.8 is the ninth release in the Meridian 2019 series.

It contains bug and documentation fixes as well as a few small enhancements.

The codename for 2019.1.8 is _[Neptune](https://wikipedia.org/wiki/Neptune)_.

### Bug Fixes

- SSLCertMonitor server-name parameter results in NPE (Issue [NMS-12332](http://issues.opennms.org/browse/NMS-12332))
- Fix warnings during documentation build (Issue [NMS-12702](http://issues.opennms.org/browse/NMS-12702))
- Images are broken in admin guide (Issue [NMS-12713](http://issues.opennms.org/browse/NMS-12713))
- Cleanup removed Elasticsearch REST plugin and hint to Plugin Manager (Issue [NMS-12716](http://issues.opennms.org/browse/NMS-12716))
- Events forwarded by Kafka Producer doesn't have any parameters set (Issue [NMS-12723](http://issues.opennms.org/browse/NMS-12723))

### Enhancements

- Bump Docker base dependencies in build-env and OCI artifacts (Issue [NMS-12699](http://issues.opennms.org/browse/NMS-12699))
- Send trouble ticket id to kafka alarm topic (Issue [NMS-12725](http://issues.opennms.org/browse/NMS-12725))

## Horizon 26.1.1

Release 26.1.1 is the fourth release in the Horizon 26 series.

It contains documentation and bug fixes including improvements to Kafka event and alarm publishing.

The codename for 26.1.1 is _[Hydrating](https://en.wikipedia.org/wiki/Facial#Facial_mask)_.

### Bug Fixes

- SSLCertMonitor server-name parameter results in NPE (Issue [NMS-12332](http://issues.opennms.org/browse/NMS-12332))
- Provisiond accepts multiple primary SNMP interfaces (Issue [NMS-12605](http://issues.opennms.org/browse/NMS-12605))
- Fix warnings during documentation build (Issue [NMS-12702](http://issues.opennms.org/browse/NMS-12702))
- Cleanup removed Elasticsearch REST plugin and hint to Plugin Manager (Issue [NMS-12716](http://issues.opennms.org/browse/NMS-12716))
- The Alarm History feature is not working (Issue [NMS-12718](http://issues.opennms.org/browse/NMS-12718))
- Events forwarded by Kafka Producer doesn't have any parameters set (Issue [NMS-12723](http://issues.opennms.org/browse/NMS-12723))
- Netflow ingress performance regression (Issue [NMS-12724](http://issues.opennms.org/browse/NMS-12724))

### Enhancements

- Bump Docker base dependencies in build-env and OCI artifacts (Issue [NMS-12699](http://issues.opennms.org/browse/NMS-12699))
- Send trouble ticket ID to Kafka alarm topic (Issue [NMS-12725](http://issues.opennms.org/browse/NMS-12725))
Depth Sensing Market: Asia-Pacific Observed as the largest market set to Witness Fastest Growth
Published: 2020-06-02 20:38:32


The depth-sensing device is integrated with sensors, illuminators, and lens module. A huge quantity of power is expended while apprehending the data, processing data, and filtering the data to acquire the essential information. The global depth sensing market is growing at a significant rate, due to the escalating implementation of dual-camera smartphones, and a mounting need for enhanced medical imaging solutions. Different components contributed to the depth sensing market size. The market has witnessed a high demand for camera or lens module in the coming years due to the mounting need for improved quality images and uses such as gesture control, face recognition, and gaming.



Explore Full Report Description At https://www.vynzresearch.com/semiconductor-electronics/depth-sensing-market



Based on industry the depth sensing market is subdivided into automotive, industrial, building automation, medical, and consumer electronics. Among all industries, consumer electronics accounted for the largest share in the depth sensing market due to mounting requirements for applications such as gesture control, AR-VR, face recognition, and scanning. The automotive segment is further subdivided into gesture control, parking assistance, autonomous navigation, passenger classification, and driver monitoring. Besides, building automation is subdivided into 3d scanning, lighting, and HVAC. Moreover, the medical segment is subdivided into breathing analysis and medical imaging.



Geographically, Asia-Pacific the largest depth sensing market and is observed to witness the fastest growth in the market due to mounting demand of depth-sensing from consumer electronics applications such as tablets, gaming handset, smartphone, and laptops. Besides, the escalating implementation of dual-camera smartphones and mounting precise depth calculations in several industries are also up surging growth of the Asia-Pacific depth sensing market.


Download Free Research Report Sample At https://www.vynzresearch.com/semiconductor-electronics/depth-sensing-market/request-sample



Texas Instruments, Sony Depthsensing Solutions, Intel, Infineon Technologies, Become Bluetechnix GmbH, Espros Photonics Corporation, Pmdtechnologies AG, Stereolabs, Qualcomm Incorporated, and Creative Technology Ltd are the key players offering depth sensing.


Geographical Segmentation

Depth Sensing Market by Region

North America

The U.S.
Canada
Rest of North America
Europe

The U.K.
France
Netherlands
Sweden        
Rest of Europe
Asia-Pacific

China
Japan
Singapore
Taiwan
Rest of Asia-Pacific
Latin America

Brazil
Rest of Latin America
Middle East & Africa

South Africa
Rest of Middle East & Africa
Contact



VynZ Research

Toll-Free:+919960288381

Website:https://www.vynzresearch.com

Email: support@vynzresearch.com

Connect With us: Linkedin | Twitter |Google | Facebook
I am not at ease with open source asking money for american associations. Are you?
Tags: healthydebate, discuss
Published: 2020-06-02 20:27:04


Today, I was asked if I wanted to give money for american associations supporting justice for african americans on https://webpack.js.org/ and this very DEV. And I must say that that I had a strange feeling about it.

Don't get me wrong here: I am 100% behind the cause (feel strange to have to state that, but I am not taking a chance).

No, my problem is, I never saw any such emails or banners when [families are randomly blown away by drones in Pakistan](https://www.theguardian.com/news/2019/dec/06/afghan-families-torn-apart-drone-strikes-picture-essay) or when the [Filipino police slaughtered people in the streets](https://www.nytimes.com/interactive/2016/12/07/world/asia/rodrigo-duterte-philippines-drugs-killings.html)…or anything else outside of the US. Yet there are open sources contributors, users and readers from these countries. So what message is sent here? The open source community has been doing great toward internationalisation and superbly inclusive code of conduct. But all of a suden, I felt I was told that some nationalities were weighting more than others.

So what are your feelings about it?
Do you feel that it is too american centric and we might be losing audience and contributors? (like I do)
That, sure it could be more equal, but doing good in the US is better than doing good nowhere?
That well, if opensource main maintainers and community leaders are americans, then it is only normal that their voices are more heard?
That it is just to not the place anyways, whatever the cause and country?
Anything else?

I am sincerely curious to know.
 
*🙏 Please, be sure to double check your answers and wording. It is a topic that has a quite more consequences than semis in JS. But I think it is a matter to be discussed 🙏*
Pitfalls when using Stencil Helmet during Prerendering
Tags: stenciljs, webdev, helmet
Published: 2020-06-02 20:25:52

---
title: Pitfalls when using Stencil Helmet during Prerendering
description: Stencil Helmet can break the whole app really bad on some occasions, some so random that you might never find out why
canonical_url: https://puruvj.dev/blog/pitfalls-stencil-helmet-prerendering
published: true
---

I assume that if you're here, you already know a little about [StencilJS](https://stenciljs.com), if not, check out this super awesome framework.

## Back story
When I was building this blog, I was trying to use [Stencil Helmet](https://www.npmjs.com/package/@stencil/helmet) to dynamically add some tags to the `<head>` tag, and these dynamic tags would show up in prerendered pages. You can even confirm their existence right now, by pressing `Ctrl+U` key combo or by manually typing `view-source:` behind the actual URL.

```html
view-source:https://puruvjdev.now.sh
```

So, what happened was, I made some changes in my code, and my application stopped prerendering. Just like that. **It wasn't prerendering**.

This wasn't acceptable. Prerendering is absolutely necessary to make a fast and SEO friendly site.

So I dug deep into my git commits, and BAM! There was the culprit, hiding right in the **`index.html`** file on the 3rd line. The glorious.....
```html
<title>Something</title>
```

Or rather, the absence of it. You see, I had deleted the `title` tag, so I could handle dynamic title management in my components.

## The solution
Always keep the `title` tag in your `index.html`.

I just added in the `title` tag and everything started working.

Hope you got something out of this post.

Signing off!
Introducing Grimoire: A Data Centric Blogging Platform
Tags: datascience, machinelearning, blogging, python
Published: 2020-06-02 20:19:27

---
title: Introducing Grimoire: A Data Centric Blogging Platform
published: true
description: Grimoire is a blogging platform to create interactive data stories, without needing to code
tags: datascience,machinelearning,blogging,python
cover_image: https://raw.githubusercontent.com/aether-ai/grimoire/master/grim/assets/spellbook.png
---

## What is a Blog?
When we think of what it means to write an article or blog post, we wish to convey our thoughts into a dialogue that can resonate with its readers.  Words and images are the primary medium to convey these thoughts. When it comes to technical or data centric blogging we are often left using the same tools as with personal blogs... words and images.  Many times these bloggers will screenshot images of a cool graph, or dataset to show their readers insights in a static boring way. How can we create a blog that is more interactive so readers can truly explore data and interact with results?

## Grimoire

I'm proud to announce [Grimoire](https://grimoireblogs.com/#/home) a new blogging platform built for technical blogging that allows writers to embed data, graphs,APIs (Application programming interface), and more without any coding. Grimoire is powered by [Streamlit](https://www.streamlit.io/) which is an open-source framework that enables powerful interactions. With Grimoire, bloggers write using [Markdown](https://www.markdownguide.org/cheat-sheet/) and have the ability to add spells(embeds) such as pandas data frames or interactive graphs. Here is the boring static image of an example interactive bar graph of the [iris dataset](https://en.wikipedia.org/wiki/Iris_flower_data_set) that you can create with Grimoire.

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

## Try it out
Grimoire is currently still in a "beta stage" and can really use your help in evaluating the platform. Please leave feedback in the comments or reach out to me via twitter so we can collectively make Grimoire better for the community.  

This is the introduction [blog post](https://blog.grimoireblogs.com/grim_render?key=blogs_twitter-58951867caa38086-0f1c-413d-9f86-dd05a74fe907) highlighting what you can do with Grimoire.

The main site is located [here](https://grimoireblogs.com/#/home). You can log in via GitHub or Twitter and begin writing blog posts now.
Depois do Café - Episodio 13 - Product Manager / Gerente de Projetos - Thais Cirqueira
Tags: podcast, portugues, productmanager
Published: 2020-06-02 20:16:03

---
title: Depois do Café - Episodio 13 - Product Manager / Gerente de Projetos - Thais Cirqueira
published: true
description: Neste episodio nós falamos sobre o papel de um gerente de projetos (Product Manager, PM) dentro de uma empresa
tags: podcast, portugues, product manager
---

{% spotify spotify:episode:24J6qYSWtjzOlbH3jBS5rU %}

Não se esqueçam de entrar no nosso grupo do telegram para episodios exclusivos: https://chat.depois.cafe

Você também pode ouvir no seu aplicativo preferido: [iTunes](https://podcasts.apple.com/br/podcast/depois-do-caf%C3%A9-com-airton-zanon/id1480842641), [Breaker](https://www.breaker.audio/depois-do-cafe-com-airton-zanon), [Google Podcasts](https://www.google.com/podcasts?feed=aHR0cHM6Ly9hbmNob3IuZm0vcy9lMGU0MDU4L3BvZGNhc3QvcnNz), [Overcast](https://overcast.fm/itunes1480842641/depois-do-caf-com-airton-zanon), [Pocket Casts](https://pca.st/bpyo3i4y), [Radio Public](https://radiopublic.com/depois-do-caf-com-airton-zanon-6r2oLq), [Spotify](https://open.spotify.com/show/4cqX5o40bClwqtYHv9X7Lp) e outros...

De um jeito pratico, “Depois do Café” de ser falamos sobre o papel de um gerente de projetos (Product Manager, PM) dentro de uma empresa, passamos por vários assuntos tal como o PM ser a ponte entre a tecnologia e o negócio, ser ou não ser parte do time de tecnologia, como lidar com uma pessoa desenvolvedora com ego muito inflado, o que virou o papel do analista, e qual a diferença do PO e PM?

----------------------

**Participantes:**

Airton Zanon - [@airtonzanon](https://twitter.com/airtonzanon) (twitter)

Thais Cirqueira - [@thaiscirqueira](https://twitter.com/thaiscirqueira) (twitter)

----------------------

**Link Citado:**

http://cursospm3.com.br

----------------------

 Para mais episodios e saber mais sobre o podcast acesse https://episodios.depois.cafe ou https://dev.to/depoisdocafe.

Siga-nos no twitter [@dpsdocafe](https://twitter.com/dpsdocafe)
A little bit about Data Science and Data Scientist
Tags: datascience, computerscience, todayilearned
Published: 2020-06-02 20:04:16

Couple of days ago I took Data Science course of IBM from Coursera. I completed my first course and got basic knowledge about data science. As I am new to this sector I thought I would share what I learned. This will also help me as a future reference :sweat_smile:. Now lets get started. 


### Data science and Data scientist

Data science is a field where you use scientific methods, algorithms, processes to get information from a chunk of structured or unstructured data. A data scientist is someone who extract the information from the data. So data science is basically what data scientists do. 
Data scientist is a player who only plays with data whether the data is in structured or unstructured form. 

### Who can be a data scientist?
An ideal data scientist should have curiosity in him/her. Without a curious mind one can't be a perfect data scientist. Now here question may arise why curiosity is important in this field? Curiosity is important because without curiosity a person can't extract the information from a thousand/million/billion set of data. He/She won't get what to extract from the data.
A data scientist has to be a good story teller. He has to make a good story about his finding from the data to present the final result. So a date scientist requires good story telling skill in this field. 
Besides these skill a data scientist should have knowledge in STEM(Science, Technology, Engineering, Math) kind of things. Having knowledge in statistics is important. Because these are important and kind of mandatory skills as he/she'll need to analyze data, may need to build an application to extract the information out of data, need to make a chart of the findings etc. 


### Why data science is important?
Why not it is important??? Now a days data science is used everywhere. We can solve our problems with the use of data science. Data science is future because it predicts future. Data science is related to data mining, deep learning and big data. 

That's it. Hope you'll find this useful. :grin:
Service Bus Explorer now available in the Azure portal
Tags: azure, messaging, testing, cloud
Published: 2020-06-02 19:31:13

---
title: Service Bus Explorer now available in the Azure portal
published: true
description: Service Bus Explorer is now integrated into the Azure portal and this is a good thing!
tags: azure, messaging, testing, cloud 
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/rr5oc3ceeczyt00u1n5t.jpg
---

Service Bus Explorer is a fantastic tool for interacting with the Azure Service Bus, especially when it comes to testing your applications without making the full loop. I use it regularly to test the call to services (eg Logic Apps) by placing messages in the queues that trigger those services.

The tool was already available as an executable that you could use on Windows by getting it from [here](https://github.com/paolosalvatori/ServiceBusExplorer). However, I am happy to announce to you today that it is now directly integrated into the Azure portal, as a feature of the Azure Service Bus service!

As of today, this feature is still in preview but it already offers the following features:

**Queues**
* 'Send' to a Queue
* 'Receive' from a Queue. This is a destructive receive (aka ReceiveAndDelete mode)
* 'Peek' from a Queue. Up to 32 messages can be peeked at a time.
* 'Receive' from DeadLetterQueue. You can also receive from the deadletter sub-queue of the queue.
* 'Peek' from the DeadLetterQueue. You can also peek from the deadletter sub-queue of the queue.

**Topics**
* 'Send' to a Topic.

**Subscriptions**
* 'Peek' from a Subscriptions on a Topic. You can peek up to 32 messages at a time.
* 'Receive' from a Subscription. This is a destructive receive (just like in Queues).
* 'Peek' from the DeadLetter Subscription. You can also peek messages from the deadletter sub-entity of the subscription.
* 'Receive' from the DeadLetter Subscription. You can also receive messages from the deadletter sub-entity of the subscription.

# Enough talking...
Let's see how it works!
Go to the Azure portal and display your Azure Service Bus namespace instance. I use queues most of the time, so this is the feature I'm going to show you today.

* This is how we add a message to a queue:
![send to queue](https://dev-to-uploads.s3.amazonaws.com/i/oswvdd9z7c17f8oot05j.gif)

* Here is how we receive a message from a queue:
![receive from queue](https://dev-to-uploads.s3.amazonaws.com/i/ddzs1gmb92g23bdlq2f7.gif)

* And this is how we peek from a queue:
![peek from queue](https://dev-to-uploads.s3.amazonaws.com/i/hx8dbi8ekuvh2st1g4mq.gif)

It’s much the same way of doing with topics. Have fun trying it out. 😊

# As a conclusion…
The arrival of the Service Bus Explorer in the Azure portal is very good news. You can now interact with your queues and topics without leaving the Azure portal experience and without relying on an external tool.

# Keep the discussion
You can reach me on [Twitter](https://twitter.com/tidjani_b) or [LinkedIn](https://ca.linkedin.com/in/tidjani-belmansour-ph-d-98460912).

See you soon !