teleren/devto huggingface dataset:
How A Bot Helped Me In Increasing Both My Sales & Revenue?
Tags: business, career, startup, codenewbie
Published: 2020-02-10 07:39:14

About 4 years ago I decided to launch a SaaS startup from scratch. That was the time when I just left my old job and found myself in discussions with some of the startups around making angel investments. I’m not entirely sure about starting a SAAS business. So I wanted to see if the same amount of money can be angel invested in some startup.

At that time I was thinking that if I would take some risk then I would have 100% of the company. Having full control over my business and destiny. Rather than investing in a startup and owning less than 1% of the company.
My background is primarily developing office software and bots and selling them to small businesses. In the past 4 years, I’ve had conversations with many small businesses discussing their needs, how they operate and where they spend money on marketing.

<h1>The Idea:</h1>
After brainstorming through different ideas, I finally had an idea that makes my mind. The idea of a “Bot!” One of my clients who is a seller on one of the Popular E-commerce app in US, asked me about how she could boost her closet sales. That’s where I got an idea of developing a bot that will share the closet and its items to the communities and bring more followers to the seller’s closet. Since my client has been an old seller on that paltofrm, so I asked her about her expert opinion about my idea. 

Her answer is quite motivating for me as she responds to my idea by saying that she would love to buy such a bot that could share her closet items with others and boost her sales. 

<h1>The Start:</h1>
Once I’m sure about the product that I am going to develop, I started researching for it. At that time only a few bots were available online that are specific for the e-commerce niche. To make things more clear I surveyed different e-commerce sellers. After analyzing the responses that I get from them, I realized that there is a great demand for my product. 

Ultimately, I started developing a windows operating system based E-commerce bot. Since the majority of sellers told in the survey that they prefer to run the bot on their Windows PC or laptop. For the development, I hired two undergrads that are enthusiasts about the bots.

<h1>The Launch:</h1>    
After been working on the bot for 5 months, I and my team were finally been able to develop that product (Poshmark Pro Tools) and we had soon launched it in the market. It was not that much difficult for us to attract initial clients for it as we approached those with whom we conducted the survey. Apparently, many of them have bought it after we offered them the free <b><a href="http://poshmarktools.com">Poshmark bot trial</a></b>. 

You can buy the bot for just $14.99 per month.
How to capture Entity Values in Node.js Backend
Tags: dialogflow, node, chatbot
Published: 2020-02-10 07:21:16

Hi DEVs. I'm looking for a way to capture user input entered in Dialogflow as an Entity, then the value of the entity(actual data) sent to Node.js and saved as a variable. I've tried using getEntityQuery() but it's not working.

Any help would be greatly appreciated.
ใช้งาน Jaeger trace ร่วมกับ OpenTelemetry
Tags: opentelemetry, go
Published: 2020-02-10 06:41:20

จาก[บทความ](https://dev.to/wingyplus/tracing-opentelemetry-go-262e) ที่แล้วเราใช้ exporter เป็นแบบ `stdout` เพื่อส่ง traces ออกไปที่ stdout ของ os คราวนี้เราจะมาใช้งานร่วมกับ Jaeger กัน

ในบทความนี้ผมใช้ jaeger แบบ all-in-one เพื่อให้ง่ายต่อการ setup และทดสอบโดยสามารถได้ด้วย docker แบบนี้

```shell
$ docker run -d --name jaeger \
  -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 \
  -p 5775:5775/udp \
  -p 6831:6831/udp \
  -p 6832:6832/udp \
  -p 5778:5778 \
  -p 16686:16686 \
  -p 14268:14268 \
  -p 9411:9411 \
  jaegertracing/all-in-one:1.8
```

จากนั้นเราจะเปลี่ยน exporter จาก stdout เป็น jaeger โดยใช้ package `go.opentelemetry.io/otel/exporter/trace/jaeger`

```shell
$ go get -v go.opentelemetry.io/otel/exporter/trace/jaeger@v0.2.1
```

```go
import (
	// ...
	"go.opentelemetry.io/otel/exporter/trace/jaeger"
)

// in initTrace().
exporter, err := jaeger.NewExporter(
	jaeger.WithCollectorEndpoint("http://localhost:14268/api/traces"),
	jaeger.WithProcess(
		jaeger.Process{
			ServiceName: "github.com/wingyplus/basic",
		},
	),
)
if err != nil {
	log.Fatalf("have some problems while creating jaeger exporter: %v", err)
}
```

จากนั้นทำการรันด้วย `go run` และเปิด Jaeger UI มาดูผ่าน `http://localhost:16686` จะเห็นแบบรูปด้านล่าง

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ml30x967ulc8lquqp481.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ukg0qeeum53vx4y0aw80.png)
CNCF HyScale Webinar - "Simplifying App Migration to Kubernetes with an App-centric Abstraction"
Tags: cncf, k8s, kubernetes, devops
Published: 2020-02-10 06:37:12

Hello, world! Super thrilled to be presenting a CNCF webinar this week on "Simplifying App Migration to Kubernetes with an App-centric Abstraction"

Date - 13th Feb
Time - 9:00 - 10:00 AM PT (UTC-8)
Registration: https://cncf.io/webinars/simplifying-app-migration-k8s-with-app-centric-abstraction/
@CloudNativeFdn
 
@cncfci
 

#app2k8s
is there anyone who can tell me How to get component value on index.html template in angular 8??
Tags: angular
Published: 2020-02-10 06:21:16

Basically scenario is that i am getting url parameter value in my home component and now i want to use this value on my index.html page....so i don't know how i can do this i couldn't find any help from google. 

kindly help me to do this.Thanks in advance.
Stacks
Tags: beginners
Published: 2020-02-10 06:07:32

Hi everyone! This is the end of week 05 of the boot camp. We've brushing up on mySql and also learning about MongoDB. Things are slowly clicking together for me at this point. Before I was just lost, on where to start, but now I feel a bit more comfortable with full-stack development. For this week We're gonna go over with Queues and stacks. This week were given a problem a break down on stakes and queues.

In stacks we can think of it like a stack of plates in a sink. Typically if we were to wash plates in the sink, normally we'd clean the plate that was stacked on top of the stack instead of the first plate on the bottom of stack. That is an example of last in, first out; for short (LIFO). Unless you prefer to wash the first plate at the bottom of the stack, then you're my kind of person! Stacks has two principal operations that are essentially array methods

Push: that adds elements at the end of the collection.
Pop: removes the last element of the item at the end of the collection.

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

In this problem we have to create a stack with pseudo-classical instantiation with the push pop methods, and avoid using native array methods/properties.

With doing so We can start by simply creating a Stack function, and within the function we can initialize storage to be an empty object and a size variable that indicate the size of the stack that'll soon to be used.

```javascript
const Stack = function() {
 this.storage = {};
 this.size = 0;
```

Now that we have our stack storage we can give it the functions of push and pop.
Since our storage is an object, we can use bracket notation to manipulate the object. 

```javascript
Stack.prototype.push = function(value) {
 this.storage[this.size] = value;
 this.size++;
```

Since we're going to add elements into the object we're going to increase the size of the stack storage for a later function

Next we're going to make a pop function for the stack, in which we're going to test the size of the storage, and if there nothing in the stack, we can just return, otherwise we'll start by initialize a popped variable to store the storage element, and delete the actual storage element. Since we're popping an element out of the storage we'd have to decrease the size of our size counter and simply return the popped variable.

```javascript
Stack.prototype.pop = function() {
  if (this._size === 0) {
    return 'This stack is Empty';
  }
  let popped = this._storage[this._size - 1];
  delete this._storage[this._size - 1];
  this._size--;
  return popped;
};
```
Lastly we can also add size function for the stack aswell to tell us how many elements that are in the stack.

```javascript
Stack.prototype.size = function() {
  return this.size;
```
All we had to do is just return the size counter that we've implementing in our stack constructor!

In conclusion stacks are relatively simple when it comes to adding and removing data, a little take away is that stacks are Last in, First Out (LIFO)
Thank you for taking the time to skim over my little post
Send Shell script server output to react client
Tags: npm, react, bash
Published: 2020-02-10 06:19:43

I'm new in MERN & I have a shell script to upload some data to mongodb,
from nodejs i have to execute shellscript and show it to client side in react like streaming.


i'm using child process ref. code below and getting the Events output on console.

But when requesting from React with axios.get() , i'm not getting event wise output, after complete processing, getting the complete output in the response.



const spawn = require('child_process').spaw;

const options = {shell: true,detached:true,}


res.writeHead(200, {'Content-Type': 'text/event-stream','Cache-Control': 'no-cache','Connection': 'keep-alive'});

var child = spawn(file.sh,[sort_name], options);

child.stdout.setEncoding('utf8');

child.stdout.on('data', function (data) {

    res.write(data);

});

child.stderr.setEncoding('utf8');

child.stderr.on('data', function (data) {

    res.write(data);

});

child.on('close', function (code) {

    console.log('Full output of script');

    res.end();

});
A letter to myself.
Published: 2020-02-10 06:11:32

Dear me,

If I only had a few words to say at this moment in time, they would be: You are doing enough. I know how easy it is to get caught up in the world around you when things seem to be moving at a million miles a minute. I know how easy it is to feel like you aren’t good enough when we have access to so much of the world at the touch of a finger. Just remember, your life is no one else’s but your own. Everyone walks their own path and has their own experiences, thoughts, doubts and successes. Just because someone else seems to have everything you strive for, doesn’t mean that you have nothing. 

Share your ideas! Or at least write them down somewhere. And ask for help instead of getting too into your own head once in a while - you’re lucky to be surrounded by people who are so happy to provide it. Newsflash, it’s  A-OK not to know everything! Trust me, your future self will thank you for it. 

Remind yourself to focus on the important things in life - your family and friends, accomplishments and goals, hobbies and aspirations. Remind yourself that taking breaks (and occasional naps) does NOT mark the end of your productivity. Remind yourself to call your mom because she loves the living heck out of you. Spend less time fixating on the lives of other people and focus more energy on working towards achieving your own goals. Harness the success of others as inspiration instead of self-doubt. As motivation instead of insecurity. As eagerness instead of apprehension. You will get to where you want to be so long as you are your own greatest advocate.

You’re doing amazing sweetie.

SV
Why do we go for automation testing?
Tags: automationtesting, testautomation, manualtest, manualtesting
Published: 2020-02-10 06:09:58

Automated testing varies from manual testing where a person is liable for without any help testing the usefulness of the product in the manner a client would. Since <a href="https://www.testingxperts.com/services/test-automation/ca-en">automation testing</a> is done through a mechanization tool, less time is required in exploratory tests and additional time is required in keeping up test contents while expanding in general test inclusion. 

The advantage of manual testing is that it permits a human personality to draw experiences from a test that may some way or another be missed by a mechanized testing program. Mechanized testing is appropriate for huge activities; extends that require testing similar zones again and again; and ventures that have just experienced an underlying <a href="https://www.testingxperts.com/services/manual-testing/">manual testing process</a>. 

Who should be engaged with test automation? 

Testing in these short Agile iterations regularly requires a "move left" approach. This move left in the dexterous improvement process implies testing begins a lot prior to the application lifecycle. Therefore, in such a methodology, designers with solid specialized aptitude are progressively being considered responsible for testing, and in this way, they frequently work nearby analyzers to make test mechanization systems. 

While assessing a testing arrangement, it's critical to have an apparatus that fits the requirements of the entirety of the distinctive colleagues who will be associated with the testing procedure. These include: 

Manual analyzers: Record and replay are essential for manual analyzers, particularly the individuals who are new to mechanization. Having the option to utilize the equivalent recorded content with an assortment of info information can prove to be useful while distinguishing and fixing issues over various situations. 

Automation engineers: For mechanization engineers, powerful help for scripting dialects, incorporations with CI frameworks, and the capacity to scale tests effectively could be significant. 

Developers: Implement testing into the improvement procedure requires the capacity to direct tests inside IDEs, for example, Eclipse and Visual Studio.

Common Misconceptions About Automated Testing 

Automation will give you all the more available time 

The Cost of Automated Testing is Too High 

Automated Testing is Better Than Manual Testing 

Automated Testing Inhibits Human Interaction
Waves Explorer et IDE en ligne
Tags: wavesplatform, blockchain, smartcontract, dapps
Published: 2020-02-10 06:06:18

Prochaine vidéo mercredi avec une présentation détaillée de l'explorateur Waves puis de l'IDE en ligne.

Nous verrons en détail chacun des éléments de l'explorateur Waves en ligne puis nous verrons l'ensemble des possibilités offertes par l'IDE en ligne qui simplifie grandement le développement de dApp et Smart Contract.

Pour voir toutes nos vidéos :
https://tinyurl.com/ulgjznf

Pour toutes vos questions :
https://t.me/wavesdappsFR
HAX-the-Code-base: pre-code
Tags: webdev, beginners, webcomponents
Published: 2020-02-10 05:52:56

I am not a developer. I can certainly write and understand code but I wouldn't call myself a coder. I definitely have a lot to learn... like backing up my [website](https://goforthandbuild.com/sites/go-forth-and-build/2099) before nuking multiple blog post and not having a second copy somewhere... hypothetically. 

~~
***Small Backstory:***

About 2 years ago I graduated from University with no idea what I wanted to do with a not so easy to describe tech business hybrid degree and long story short [Bryan Ollendyke](https://twitter.com/btopro) aka [#EdTechJoker](https://twitter.com/hashtag/EdTechJoker) introduced me to [Rick Manelius](https://twitter.com/rickmanelius). (Def check them out, they are really cool people)
~~

Rick writes absolutely amazing blog post on his [website](https://rickmanelius.com/). One that hit me was his [3 words for 2020](https://rickmanelius.com/article/my-3-words-2020) (I *highly* encourage you to read his post because I won't tl;dr it for you lazy people). I was tired of kicking leaves for the last year or so in my career so I decided to give it a [shot](https://twitter.com/Tom_Var/status/1212596610393366528). While not 3 words, I did stick to 3 themes:

- contemplation without confusion
- distancing distasteful distractions
- i am important

So what does this mean? I want to learn more about code and better understand why a developer would choose something like lit-element vs polymer. I want to be able to talk to someone about the advantages to web components passed the surface level *"its scales better and works in all browsers"*. While I can just search these in [*insert your favorite search engine*] I thought the best way for me to learn is to ask the developers themselves (think something akin to "Into the Actor's Studio" but with developers). So what has stopped me from doing this a year ago? Thinking I would waste someone's time by asking stupid questions, distracting myself with random things, and overall being indecisive by being stuck in my head (hence 2020 goals above). 

What does it mean to be a developer/coder/programmer? What are these things called Web Components and why do they matter? Tabs or Spaces? Honey Dew or Cantaloupe?! I don't know the answers but I do know that the only way for me to demystify the code/concepts is to just decode the developer. And the best place to start is the people I did my internship with my senior year of College... the [HAX Project](haxtheweb.org) by the [@elmsln team](https://twitter.com/elmsln). Hope you're ready to `<hax-the-code-base>` with me :)
Project Aurora Begins
Tags: uwp, csharp, windowsdev, xaml
Published: 2020-02-10 05:32:13

I've decided to move my development blogging to hear, from my companies own blog. 

The idea is to separate customer facing entries from dev and community facing ones.

So, what is in the lab at #ValleySoftware? 

Well, my Launch project for 2020 is Project Aurora.  It's a GitHub client aimed at the NON-CODE parts.  Being #Launch, it's a Microsoft Store UWP app.

So not managing merge conflicts, etc.

It's all about pull requests, contributor management, issues and project management via a Kanban interface.

I've had a few false starts at this, but at least my knowledge is building up.  

I've got a very good base app ready now and have started fleshing out the low level stuff.

As of right now it doesn't look like much, but the plumbing underneath the hood is fairly well built out and ready to go.

I'll try to post regularly here in the open as I go for the amusement of others and to kick myself into gear and actually get on with it!

More soon, Rob.
Angular ViewChild and Template Variables
Tags: angular, html, javascript, typescript
Published: 2020-02-10 05:30:44

Today one of my friend was facing an interesting problem. As sometimes if we are struggling in something for hours, we may call for help from a friend, as its better to notice something minute with an extra pair of eyes.

![Photo by Olav Ahrens Røtne on Unsplash](https://images.unsplash.com/photo-1539627831859-a911cf04d3cd?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&dl=olav-ahrens-rotne-4Ennrbj1svk-unsplash.jpg)

## Introduction

As the title says we are working on a very large enterprise application whose front end is built in Angular. We have lot of nested and sub components which gets rendered in the HTML based on multiple conditions.

An example would look something like this

```html
<div>
  <my-first-component>
  </my-first-compoent>
  <div *ngIf="!isProcessing">
    <message-component #messaging>
    </message-component>
  </div>
  lot of other stuffs...
</div>
```

If you are already familiar with `Angular` you might recognize the above `HTML` structure. The above is just a simple example. In a real time application there must be more than 1000+ lines of HTML code which renders various subcomponents. 

## :neutral_face: The problem:question: 
As i already said if you are familiar with angular you will understand the below code.

```ts
messages : Messages = new Messages();
@ViewChild('messaging') messageComponent : MessageComponent;
```

* ViewChild is nothing but, it is used to access the `childComponent` from your `parentComponent`.

* In the above two lines of code, one is just a variable initialized with the `Messages` class and the other is used to access the child component called `MessageComponent`

## :eyes: ViewChild / Template Variable problem :grey_exclamation:

* What we were doing is trying to access the value of the `messages` variable in the HTML.

* An example would look something like this

```html
<div>
  {{messages | json}}
  <div *ngIf="!isProcessing">
  {{messages | json}}
    <message-component #messaging>
    </message-component>
  </div>
</div>
```

* Notice the line immeadiately after the first `div` the value can be seen in the UI.

* But we were not able to get the value inside the second `div` ,i.e where the `isProcessing` is set to `!(false)`

* We checked alot of things including `ngOninit()` and the object state, even validated the `if` condition twice.

* Everything looked perfectly fine,but still we were not able to get the value inside the processing div.

## :thought_balloon: The Solution

After an hour of debugging it strike's me that the name of the `ViewChild` selector and the variable name is the same. Why not try changing this ? So we did so. We changed the selector name to `#messageComponent` and boom :fire: it works.  

A working example can be found here at [Stackblitz](https://stackblitz.com/edit/angular-umvtmz) :v:

Originally posted on [HariHaran Subramanian](https://hariharan-subramanian.netlify.com/posts/2020/02/angular-viewchild-and-template-variables/)

#### Thanks for reading and stay tuned for more blogs :pray::pray:
How to Make Money as a Developer
Tags: career, productivity, whoishiring
Published: 2020-02-10 02:36:38

**Subscribe to my email list now at http://jauyeung.net/subscribe/**

**Follow me on Twitter at https://twitter.com/AuMayeung**

**Many more articles at https://medium.com/@hohanga**

**Even more articles at http://thewebdev.info/**

Software development is a valuable skill. We can make money from it outside of our developer jobs.

Here's a list of things you can do to make extra money.

# A Developer Job

You can make money from a developer as a full-time job, contractor or freelancer.

# Blog

Make your own blog, guest post on other people's websites, write on third-party platforms like Medium to make some extra money.

With that, we can also offer digital products within our own blog via a paid section or sell digital products elsewhere.

Our own blogs can carry ads and affiliate links to make money.

Also, we can make money on promotions and sponsorships if the audience of your blog is big.

# Sell Digital Products

Like blogging, we can offer some value to our audience with blogs and tutorials on YouTube, Udemy and other platforms.

# Donations

PayPal, Patreon and Buy Me a Coffee have donation widgets that you can put on your blog.

# Podcasting

If you have time, you can create a podcast to share your knowledge about technical subjects that your good at.

# Sell Swag

You can sell stuff online if you find a product that people like. This may take a lot of time and money since you've to find a product that people like so you can get sales.

# Consulting

You can share your knowledge one on one with people that need your expertise on an issue or project.

# Bug Bounty Programs

Companies like Google, Apple and Microsoft offer bounties for bugs that are found in their software.

# Coding Contests and Hackathons

These contests offer prizes for coding projects that are attractive to critics and judges.

It's hard work to compete in these contests.

# Create a Software as a Service

Create minimum viable products to test out the waters, and then double down if you find something that people are interested in. Ask your online audience to test out your products.

There're lots of ways to make money as a developer. They all take hard work and determination to succeed in their own way.
Frontend Roadmap in 2020
Tags: javascript, webdev, discuss, css
Published: 2020-02-10 05:27:32

Hers's a step by step guide to becoming a modern frontend developer.

![Frontend Roadmap 2020](https://dev-to-uploads.s3.amazonaws.com/i/fjrbx9wbn032jzqepw53.png)

### **Resources**
[Frontend Roadmap](https://roadmap.sh/frontend "Frontend Roadmap")

Please feel free to share your thoughts and opinions.

Highly appreciated 🙏🙏🙏

Till then,
**Keep on Hacking, Cheers**