teleren/devto huggingface dataset:
I am trying to deploy static react app to heroku, but i get error like “cross-env: not found” any help is appreciated
Published: 2021-06-23 14:36:29

Error occurs while deploying. locally everything works fine.

I am aware that cross-env is a development dependency. Heroku, by default, only installs production dependencies.

below is the package.json and error log. Please let me know how to solve it.

Package.json

{
  "name": "project",
  "version": "1.0.0",
  "description": "",
  "main": "app.js",
  "scripts": {
    "start": "cross-env NODE_ENV=development webpack serve",
    "build": "cross-env NODE_ENV=production webpack",
    "test": "jest"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@babel/core": "^7.14.6",
    "@babel/preset-env": "^7.14.5",
    "@babel/preset-react": "^7.14.5",
    "@wojtekmaj/enzyme-adapter-react-17": "^0.6.2",
    "babel-jest": "^27.0.2",
    "babel-loader": "^8.2.2",
    "cross-env": "^7.0.3",
    "css-loader": "^5.2.6",
    "enzyme": "^3.11.0",
    "file-loader": "^6.2.0",
    "html-loader": "^2.1.2",
    "html-webpack-plugin": "^5.3.1",
    "jest": "^27.0.4",
    "mini-css-extract-plugin": "^1.6.0",
    "node-sass": "^6.0.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "sass-loader": "^12.1.0",
    "webpack": "^5.39.1",
    "webpack-cli": "^4.7.2",
    "webpack-dev-server": "^3.11.2"
  }
}

Error log:

,,,
2021-06-21T14:58:17.290672+00:00 app[web.1]: > project@1.0.0 start /app
2021-06-21T14:58:17.290673+00:00 app[web.1]: > cross-env NODE_ENV=development webpack serve
2021-06-21T14:58:17.290673+00:00 app[web.1]: 
2021-06-21T14:58:17.296829+00:00 app[web.1]: sh: 1: cross-env: not found
2021-06-21T14:58:17.316513+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-06-21T14:58:17.317015+00:00 app[web.1]: npm ERR! syscall spawn
2021-06-21T14:58:17.317223+00:00 app[web.1]: npm ERR! file sh
2021-06-21T14:58:17.317548+00:00 app[web.1]: npm ERR! errno ENOENT
2021-06-21T14:58:17.324706+00:00 app[web.1]: npm ERR! project@1.0.0 start: `cross-env NODE_ENV=development webpack serve`
2021-06-21T14:58:17.324883+00:00 app[web.1]: npm ERR! spawn ENOENT
2021-06-21T14:58:17.325099+00:00 app[web.1]: npm ERR!
2021-06-21T14:58:17.327281+00:00 app[web.1]: npm ERR! Failed at the project@1.0.0 start script.
The ultimate Open source alternative to manage customer engagement- Chatwoot is here! 💬
Tags: chatwoot, opensource
Published: 2021-06-23 14:34:45

When selling a product online, you always want your customer to feel satisfied and confident with their purchases. Creating a great product is the first step to make your customers happy, but it's far from that.

Good customer support improves the relationship between the business and the customer because it plays a significant role in increasing customer loyalty and generating positive word-of-mouth about your business.

It should always be a part of the equation' great product = excellent customer service.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0f187zcnh2cev1l1dfij.png)

We all need support when making purchases online. And odds are, you must probably have a bad experience that turned you away from the company forever. Then, you surely don't want your customers to be in the same situation.

And to make this easier, you should rely on customer support tools to deliver excellent customer support. Many customer service tools like Intercom, Zendesk, or Drift provide features like social media integration, chatbot, share team inboxes and many other features. But you can use Chatwoot, which stands out with its simple design and its most valuable characteristic: open source.

This article will discuss why you should consider Chatwoot for your following customer service tool by examining the features.

## 1- Share Inboxes

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

Using Chatwoot, you can make conversation with your customers and your team just from one place. You have access to many inboxes (Facebook, Twitter, Whatsapp, etc.) depending on which social platform your business presents.

And if most of the time, customers come with the same type of questions, again and again, you can configure saved replies: canned replies.

In addition, you have private notes to communicate with your team, where you can tag them to share crucial information or resolve issues.
[More reading ...](https://aviyel.com/post/184/the-ultimate-open-source-alternative-to-manage-customer-engagement-chatwoot-is-here)
Creating a Real-time Chat App with Javascript, PHP, MySQL and Firebase
Tags: javascript, php, firebase, chat
Published: 2021-06-23 14:17:03

## Introduction

With the rise in the use of the internet, the need for real-time communication has officially evolved from SMS texts with friends and family to just about any online interaction with anyone.

That's why many companies (not just chat-based companies) are incorporating chat features into their apps.

In this series, I will be taking you step by step on how to build a chat feature into your new or existing app. The chat app will feature 3 screens for simplicity - the login screen, the chat-heads screen and the chat-details screen. Basic functions like image sharing and replying a chat message would be added.

This project will be hosted on GitHub where you would have access to the source code, once completed.

Enough of the intro! I know you're not ready for those stories, so let's dive into action:

## Requirements

* A [local PHP server](https://www.ionos.com/digitalguide/server/tools/xampp-tutorial-create-your-own-local-test-server/) or [Postman](https://www.guru99.com/postman-tutorial.html)
* [A Firebase Project](https://docs.kii.com/en/samples/push-notifications/push-notifications-android-fcm/create-project/)

## File Structure

Below is the file structure for the project:
* MyChatApp
* -- index.html
* -- index.js
* -- index.css
* -- img
* ---- avatar.png
* ---- sprite.png
* -- api
* ---- user_access.php
* ---- my_curl.php
* ---- database_files.php
* ---- chat
* ------ chat_read.php
* ------ chat_write.php

## Wrapping it up

In this article, I have given you the necessary links to set up your development environment and have shown you the file structure for the project.

In the next article, I will show you how to create the database tables for our real-time chat app and how to create the scripts for performing CRUD operations on the database.

Thank you for reading my article ;)
Third-week check-in for GSoC 2021
Tags: python, github
Published: 2021-06-23 14:13:26

Hi! Today June 21 I begin my third week for GSoC 2021. I am loving this experience so far. Now, I'm going to answer 3 questions regarding my work last week, what I struggled with, and what I will focus on this week.

## What did I do this week?

In my last post, I mentioned I was working on fixing the existing quizzes of the project. I kept doing that, and I finished. I started fixing some lectures. By fixing I mean:
        <ul>
            <li>Formatting all python code with <code>black</code>.</li>
            <li>Changing static snippets to <code>activecode</code>.</li>
            <li>Creating some exercises with automating grading using <code>unit test</code></li>
            <li>Creating some web tests (where needed), with <code>playwright</code></li>
        </ul>
I've already finished fixing 4 lectures. This week I made 8 PRs, some of which were proposing simple changes. 

## Did I get stuck anywhere?

Yes I did. As I've mentioned over the past posts, we use <code>pytest-playwright</code> as our web tester. I've been coding easy tests for the quizzes, and I thought that was enough. Until I got to program a test for a lecture that involved writing into a prompt box. I got stuck there beacause I didn't know <code>playwright</code> had a special way to deal with dialog prompts. So I had to search in their documentation for an answer, and I got one. 
Here's the piece of code I was searching for:
<pre>
    <code>
        def test_TWP18_ac_5(page):
            # Deal with prompt box
            def handle_dialog(dialog):
                dialog.accept("una palabra")

           # Code to go to TWP18 page, do the exercise and run it.
                    
           # Fill prompt box
           page.on("dialog", handle_dialog)
    </code>
</pre>
## What is coming up next?

Last Saturday (June 19), the team got together in a videocall to discuss what we've done so far and what is coming up. So, now that I've finished with the quizzes and the easy lectures, some of which are awaiting review, I will begin my <b>second milestone</b>. It consists on refactoring a lecture that involves accesing some APIs. My idea is to fix one existing exercise that uses <i>Reddit API</i>, and to create two exercises using two different public and easy to manipulate API's. Meanwhile, I'll continue searching for ways to make the SQL lecture work.
Can't find out a specific content for a Vuejs project to study.
Tags: vue
Published: 2021-06-23 14:08:55

---
title: Can't find out a specific content for a Vuejs project to study.
published: true
description: 
tags: #vue
//cover_image: https://direct_url_to_image.jpg
---

Hi everyone.
I am studying Vuejs, I want to create a app with Vuejs to study, but I can't find out what is exact content for my project. Can anyone give me a suggestion. Thank you so much.
Live Draw HK Hari Ini - Live Hongkong Lottery 4D Hari Ini | Result Togel 6D Tercepat
Tags: resulthk, keluaranhk, totohk
Published: 2021-06-23 14:07:06

Live Draw HK Tercepat - Live Hongkong Lottery 4D Hari Ini | Result Togel 6D Tercepat
Welcome To Hongkong Pools yang mana di halaman ini kami sudah menyiapkan Live Hongkong Master yang mana bisa anda nikmati dengan aman dan lancar karena tabel Live Streaming Hongkong ini sudah kami hubungkan secara langsung dengan situs resmi Pasaran Togel Wla satu ini yaitu Hongkong.com maka itu semua Angka Toto yang ada disini sudah sangat terpercaya.
search : http://disenso.info/

Bagi anda para pecinta Toto 6D Online pastinya sudah mengenal salah satu Pasaran Togel Terpopuler satu ini yaitu Hongkong Lotto 4D yang mana memang sudah banyak dimainkan oleh para Togellers di dunia maya pada saat ini, disini kami sudah menyediakan Tabel Live Draw Hongkong dan bisa anda nikmati secara gratis tanpa ada lag atau gangguan apapun.

Live Result Togel Hongkong Pools ini tidak perlu anda ragukan lagi keaslian angkanya karena semua No Result Hongkong tersebut kami ambila langsung dari situs Pasaran Togel Resmi nya yaitu Hongkong.com dan karena itu sering – seringlah berkunjung ke halaman ini.

Apabila anda mengalami kendala atau error ketika berkunjung ke situs Pengeluaran Hongkong 6D ini maka refresh halaman ini terlebih dahulu karena tidak sedikit dari para pemain Toto Hongkong Wla yang berkunjung ke disini setiap harinya, Tabel Hongkong Lottery yang ada diatas ini akan mulai berputar setiap harinya pada jam 22:45 – 23:00 WIB setiap harinya tanpa ada hari libur maka dari itu jangan sampai ketinggalan Pemutaran Result Hongkong 4D.

Diakhir kata kami ucapkan terimakasih banyak karena sudah bersedia berkunjung ke halaman Hongkong Togel Prize ini dan bantu kami dengan membagikan situs ini kepada sesama pemain Togel Hongkong agar situs ini bisa terus berkembang dan menyediakan Info Togel Hongkong setiap harinya. 

source : https://templeofcuteanimals.com/inilah-nomor-result-togel-hongkong-pools-yang-dicari/
How to migrate master branch to main in Github?
Tags: github, migration
Published: 2021-06-23 14:00:32

Few months back, Github changed the default branch from master to main. Due to this change, most of the projects were forced migrate from master to main branch. Recently I faced this problem for one of my projects.

After multiple trials and errors, I successfully migrated my project to main branch. I would like to share the steps and it would help you when you face the similar problem in the future.

###1: Connect local repo with your remote repo
```
git remote add origin <remote_github_url>
```
###2: Pull the main source code
```
git pull origin main
```
###3: Move the source from master to main branch
```
git branch -m master main
```
###4: Add and commit your changes
```
git add .
git commit -m "master branch changed to main"
```
###5: Set upstream and push changes to remote
```
git push --set-upstream origin main
```
Now all your changes will be available in the remote main branch.

<b>NOTE:</b> Backup your source code before you do all these changes.
GitHub repositories I starred
Published: 2021-06-23 13:51:16

Hi there 👋🏼!

This is my TOP 5 starred repositories on GitHub.

## React Developer ROADMAP

I love Roadmaps and first is react developer roadmap

https://github.com/adam-golab/react-developer-roadmap

I do not think that this roadmap actually for me because I think that TypeScript is required for example and I do not thining that a react developer needs BEM (in CSS) you need CSS modules, but do not BEM.

But in this repository, you can find useful utils for your development.

## Real World projects on React

The next repository is real-world projects on react. This is what I needed when I beginning.

https://github.com/gothinkster/realworld

You can see how to use react and other utils in real-world projects. It is wonderful!

## Fake data

This package you can need for your test dates.

https://github.com/Marak/faker.js

The repositories including generation for address components, images, names, and very many types of data.

## Fingerprint

This packages generation user hash. You can detect it to detect the user in a browser. User hash in public and private windows is matched. Wow!

https://github.com/fingerprintjs/fingerprintjs

## Frontend for beginners

And the last repository at the top is resources for beginner javascript developers. It lots of resources!

https://github.com/thedaviddias/Resources-Front-End-Beginner

Thank you 😊
Day 120
Tags: 100daysofcode, programming
Published: 2021-06-23 13:48:09

Day 120/200 of #200DaysOfCode #100DaysOfCode  

- Solved four problems on Codewars.

1 - Multiplying numbers as strings (4 kyu)
2 - Strip Comments (4 kyu)
3 -  Find the most senior developer (6 kyu)
4 -  Count the number of JavaScript developers coming from Europe (7 kyu)
why do we need serializers in django rest framework
Published: 2021-06-23 13:46:51

Serializers allow complex data such as querysets and model instances to be converted to native Python datatypes that can then be easily rendered into JSON, XML or other content types. Serializers also provide deserialization, allowing parsed data to be converted back into complex types, after first validating the incoming data.

This gives you a generic way to control the output of your responses, as well as a ModelSerializer class which provides a useful shortcut for creating serializers that deal with model instances and querysets.

They save you from writing a lot of custom code.
The 30 and cents, Durable, Easy Repairable on Site Remote Monitoring of Concrete Maturity
Tags: iot, arduino, cpp, concretematurity
Published: 2021-06-23 13:44:15

The other day, someone whispered to me, here in the neighbourhood where I live, “why not develop your own“ maturity sensor device, after I ended a short chat session on WhatsApp about it. At that time it was meant to be a simple chat conversation starter on WhatApps with my long-lasting research colleagues in science. 

A week went by and I continue doing what I have initially planned: modeling in Tensorflow some research data I have here, from my 1st masters’ thesis about self-sensing carbon fiber composite sensors for IoT applications.  During that time, I got some time to browse what is already on the market, for monitoring concrete maturity in real-time and with live data. I found the following enterprises already commercializing IoT devices with that specific purpose:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y5hk4ek6p6qowxpasefl.png)
continue reading below
https://migueltomas.substack.com/p/the-40-and-cents-durable-easy-repairable
Crack my code
Tags: challenge, cryptography, help
Published: 2021-06-23 13:35:21

---
title: Crack my code
published: true
description: Help me figure out what I encoded in this message
tags: challenge, cryptography, help
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q5bsediij4c3nl6p1738.png
---

I created an encoded message for my [404 page for my github.io site](https://mellen.github.io/notapage). Unfortunately I have forgotten what the message is and I can't remember how I encoded it. I'm pretty sure it's not a straight ascii substitution, but I don't think I did anything particularly complicated. Maybe I squashed each character into 7 bits. I can't remember. Can you help me? This is the encoded message:

```
100010111100101110010110111111100101000001101001
100001101001110101000001110010110010111100111101
111111010111100101100011110010110000011011101101
111111010010000011001101101111111010111011101100
100101110101010000011101100111001111011111011001
000001110011110111111100101110010111100110110010
000011110011101111111010111100101000001110000110
010111100101110011110111111011101100001110110010
000011001001100001111010011000011000001101000110
000111100111000001100010110010111001011101110100
000110110011001011100001110101111001011100100101
100100000110001011101011110100100000110010011011
111101110100111111010010000011101111101111111001
011100101111001101100100000111011111001011001111
101100110110010000011100001101111111001111101001
000001100001100000111011011001011110010111100110
000011010001100101110000111100101110100110011011
001011101100111010010000011101001110111110010111
001011110100100000110000111000101101111111010111
1010010000011010011110100101110
```
Building Standup Roulette
Tags: pipedream, automation, standup, slack
Published: 2021-06-23 13:27:43

At [Grover](https://www.grover.com/de-en), in my squad, like most squads, we do stand-ups every day. To make things interesting and to keep the whole team active, we suggest to have different hosts every single day within our team. Someone to run through the Kanban board and take down action points.

For a short while, we were doing this manually, where we would nominate someone at the end of the call, which was going great, but it has its pitfalls. Like not remembering who we nominated the previous day, or forgetting to nominate someone altogether.

Hence, **Standup Roulette** was born.

This is a simple Node.js script, hosted on [Pipedream](https://pipedream.com/), that runs about 30 minutes before our actual stand-up, which does the following:

- Get all members of our Slack channel
- Exclude members who are on specific schedules
- Pick a random announcement message, replace the placeholder with the user ID
- Post the message on Slack

In the meanwhile, it also makes use of Pipedream's [workflow-level state](https://pipedream.com/docs/workflows/steps/code/state/#workflow-state) management, `$checkpoint`, so we are able to store information across runs. So I simply store an array of `history` which contains the last `n - 1` user IDs who have already hosted recently, where `n` is the number of members in the channel. 

This `history` array is also appended to the exclusion list so we don't get the same person hosting twice in a row, or too often.

You can check out the Pipedream workflow we use right here:
https://pipedream.com/@AmruthPillai/standup-roulette-grover-x-squad-scheduled-trigger-p_n1CowNy

Try it out at your workplace as well and let me know how it goes!

Thank you for reading.
Understanding Network things: part 3 – DNS
Tags: network, http, beginners, cloud
Published: 2021-06-23 12:54:10

---
title: Understanding Network things: part 3 – DNS
published: true
description: Serie of sketchnotes about Network concepts. Explaining in a visual way network principles.
tags: Network, HTTP, beginners, Cloud
series: Understanding network things in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r7j46kpsdlh9a6cwtz0s.jpg
---

Hi,
I've got a secret for you, since several years. I'm a developer and I'm a mess in understanding network things! :'(

It's hard to not understanding things that anyone seems to understand and understanding network concepts can be difficult or time-consuming, specially for developers. That the reason I started to create sketchnotes about Network concepts. I think it could be a good way, more visual, to explain it.

In this third article, we will see DNS concepts.
Is it always a DNS problem? ^^

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r7j46kpsdlh9a6cwtz0s.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jhosd1sfkrqnnuucle8u.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wrmb5npqj9e7sipymltc.jpg)

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).

If you are interested, I already published sketchnotes about [Kubernetes, Docker and Istio](https://gumroad.com/aurelievache).
Making a game with open-source tools
Tags: opensource, gamedev, beginners
Published: 2021-06-23 12:50:32

When you are making a game, you quite quickly discover that there are a large range of different tools that you ned to use. Usually, you’ll need a game engine, an art tool, a modelling tool (for 3D games), a music/sound tool and a planning tool. The exact requirements will vary between different projects, but as a general rule they’ll include these.

Now all of these tools are fairly sophisticated, and they can take years to develop. This means that you can end up agreeing to split revenue with other companies, or having to pay some hefty license fees. Unfortunately, a lot of people can’t afford this or don’t want to pay it so they are unable to use the tools they need to make their game. Well, not anymore. Over the past few years open-source game creation tools have come a very long way, and I am pleased to say that you can now make a full game without ever having to pay for your tools.

It should also be noted that even closed source tools can be free, and they can also be a good choice for your game. I recommend keeping an open mind towards using them for some or all parts of the game development process.

If this sounds interesting to you, then you can read the full article for free on my blog: https://www.saluki.tech/2021/06/16/making-a-game-with-open-source-tools/