teleren/devto huggingface dataset:
Building a Board Game App (100 days of code)
Tags: 100daysofcode, android, productivity, motivation
Published: 2020-04-05 12:59:02

__Introduction__ :smiley:
Hello everyone, welcome to my very first post. My name is Joe and today i will share my 100 days of code build a board game app. So first of all, this project actually inspired from my AI class when my lecture talk about many simple board game which use AI to finish the game. Then i decide to started build android app which user can play several board game in my AI class.

__Current Game__ :grin:
actually, this app already consist one game that work successfully, a simple tic tac toe game. You can play it alone or maybe with your friend.

![image.png](https://drive.google.com/open?id=1jheFsggTYR7hU0wj_1M70C8gJhDbLXcX) 

__Planning__ :satisfied:
Over 100 days, i'm excited to accomplish following list:
* add wumpus game (it's inspired again from the class)
* finish another game (i already add several game, but not finished yet)
* save player rank and score (after all game done)
* cleanup code and testing(yes this is important part)

__Want To Contribute?__
If you want to contribute to my board game, you can see at my [github repo](https://github.com/rogcomfox/BoardGame)

P.S: 
Maybe you will see several game which not a board game, in future i will delete it

Thank you for read my very first post, i will try to make another post soon. see you :raised_hand:
Battle of Vars
Published: 2020-04-05 12:40:58

[Register here](https://thescriptgroup.in/battleofvars)

Battle of Vars is a 24-hour online competitive coding challenge hosted by The S.C.R.I.P.T Group. As most of us are at home, unable to be productive, this competition was created to excite and challenge the coders among us. It is a non-profit competition organized only for the purpose of providing a platform for coders around the world. Competitions like this will help you to stay calm and concentrated in such time, while helping us break boundaries at a global level. Participants and winners will be sent verifiable e-certificates on their respective e-mail addresses. So, what are you waiting for? Come, Join us!
My first php library for parsing and evaluating expressions with big numbers, using ext-bcmath
Published: 2020-04-05 12:09:39

Hi everyone! I've written a PHP  library that processes expressions with big numbers.  It has a Pratt's parser and is using ext-bcmath. Probably someone's going to find it useful. 
If you are into reading someone else's code: is something missing? What other features might be of use?

https://github.com/ibelousov/math-exec
Daily Developer Jokes - Sunday, Apr 5, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-04-05 12:00:12

---
title: "Daily Developer Jokes - Sunday, Apr 5, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Sunday%2C%20Apr%205%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12596739999.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Why couldn't the React component understand the joke?

___A:___ Because it didn't get the context.
 -->
Why You Working So Hard?
Tags: beginners, aws, discuss, serverless
Published: 2020-04-05 11:51:28

---
title: Why You Working So Hard?
published: true
description: Musings on the Tao of Serverless
tags: beginner,aws,discussion,serverless
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/a7t6wlw4cpxxnan0hjyc.jpg
---

> I was about 22 and just starting out with ZZ Top.
>
> I was in the dressing room and BB King said to me, ‘Can I play your guitar?’ 
>
> 'Sure man.’ 
>
> He strummed it a few times and handed it back to me. He looked at me rather quizzically and said, 
>
> ‘Why you working so hard?’ 
>
> ‘What do you mean?’
> 
> 'Those strings. You got real heavy, heavy strings.’ 
>
> ‘Well, isn’t that how to get the heavy, heavy sound?’ 
>
> He said, ‘No! Don’t be working so hard!’
>
> - Billy Gibbons

You wouldn't think the world of music would offer much in the way of advice to the world of programming, but I find myself coming back to this story fairly frequently. It's a good example of how perception begins to take over and lead you astray.

In Gibbon's case, it was the accepted knowledge that to sound good, you needed to use heavy, thick guitar strings. An encounter with BB King, who by that time was already a living legend, lead Billy to try using lighter strings and work out things for himself. 

In this story, Gibbon was making things difficult for himself based on his own perceptions and those of people around him. I think we very prone to doing this in technology, perhaps more so. We see this manifest in various different ways;

- We over-engineer things in case we need something in future.

- We gate-keep, saying that 'real' developers run their own infrastructure, or only use the terminal, or use <insert-language-or-framework>.

- We try to justify the difficulty we have in implementing the solutions we want to build.

- We fight with people who are trying to help us do things a better way.

- We disregard the solutions of others because we feel we know better, EVEN if we know the simple solution is better.

- We sit in our comfort zone and refuse to learn new things, dismissing them out-of-hand rather than trying them out and forming our own opinion.

I've come to serverless primarily out of a means of dissatisfaction with the rising complexity that is elsewhere in software development. I want small, solutions that I can understand within their specific context, that I can compose together to solve problems. I don't want to worry about a whole host of things I used to worry about - because I just don't have time to do that anymore!

I asked myself, 'Why you working so hard?', and chose serverless.

Whenever I'm knee-deep in, and starting to get tangled up in my own code, I ask myself, 'Why are working so hard?', and try to find a simpler solution.

Why are you working so hard?
react-particles-js ️ tsParticles
Tags: javascript, react, typescript, showdev
Published: 2020-04-05 11:41:00

**react-particles-js and tsParticles now are working together.**

*react-particles-js* 3.0.1 version uses *tsParticles* 1.12.5 version for particles.

You can checkout the pull request here: https://github.com/Wufe/react-particles-js/pull/103

*All existing configurations still work with this new framework!*

If you need help with particles configuration you can report an issue here: https://github.com/matteobruni/tsparticles
Building a Serverless Passport OCR in 2LOC
Tags: automation, aws, serverless, lambda
Published: 2020-04-05 11:34:14

In today's use case, a fictional customer care agent using Slack will initiate a scanned passport request to a prospective customer via email.

Once the customer receives the email, they will be directed to the folder location to place the scanned copy of their passport. The moment the customer places the scanned image of their passport on a S3 bucket, the document will be OCR via Amazon Rekognition and the passport details will be sent back to the customer care agent via Slack channel.

We will be building this lambda using Kumologica (free graphical IDE for lambdas) in around 10 minutes. 

# Solution

We will be developing two integration flows that will be deployed in a single lambda function:

- **Customer’s Passport Request** Flow initiated by the agent via Slack, a request will be sent via email to the customer asking for their passport.

![Customer's Passport Request Flow](https://dev-to-uploads.s3.amazonaws.com/i/fv6t4ycvhe3kc9vgg5io.png)


- **Passport OCR**: Flow responsible to OCR the passport and send the details to the agent via Slack.

![Passport OCR Flow](https://dev-to-uploads.s3.amazonaws.com/i/7w1uiegnqmrwp2wnt6e9.png)

# Implementation

Follow the development process on the video tutorial below: (duration: 10 mins)

{% youtube 3aGCa2kYeps %}

# Conclusion

Thanks for reading (or watching the video tutorial). I hope you enjoyed this use case and appreciate how simple is to implement these type of serverless integrations with Kumologica. We would love to hear your feedback, and don’t hesitate to contact us if you have any questions.

To learn more about Kumologica checkout our official documentation at [kumologica.com](kumologica.com).
Coronavirus Web Application in Italy 🇮🇹
Tags: coronavirus, angular, analytics, chartjs
Published: 2020-04-05 11:00:27

We are in Italy, early March, my friends and I wonder if there is a site to monitor the Italian situation of Covid-19. We find the Italian civil protection website, but the graphics are not what we want, also the service offered is not optimized for mobile devices.

As I surf the web I find that civil protection has provided the national contagion data in a json file. Perfect, I will create my application. I want to do in a short time to monitor the infections through the graphs. This must be available on the web to be able to share it with my friends, it must also be simple and fast.

I am very familiar with React, but I decide to deepen AngularJS since I use it a lot in my work, it's only a small application.

## March 12
On the first day I develop a first draft of the application that I improve in the following days

## March 16

I release the first version with the features:

- Display of national data updated to date.
- Graphs of the history of the currently positive, healed, intensive care, deceased, move positive and positive growth percentage.
- Dark theme and Lite theme.

![Alt text of image](https://i.ibb.co/whDhTzG/v1.png)

## March 21

The application begins to be shared by my friends, very well. I continue my developments and integrate new features:

- New graphics for updated data to date.
- History of regional data.
- Share button.

![Alt text of image](https://i.ibb.co/FDgC5fr/v2.png)

At this point, the application reaches the first views even outside of my friends, 100 unique users per day with only sharing the application on Facebook and Instagram.

## March 27

In the meantime, I find an API that provides world data, I immediately get to work and in a few days I release these features:

- New world data section.
- Search filter on the world cup.

![Alt text of image](https://i.ibb.co/7NR8rs1/v3.png)

I share the application on Linkedin and with colleagues. It reaches a peak of 400 unique users per day.

In the following days I released bug fixes and improvements. Everyone talks to me about a simple, fast and intuitive application compared to others on the web that provide the same data. I am happy with the result achieved and that I can be useful in this complicated period for everyone.

You can see the application via this link: https://www.daticovid.com

I thank you for reading,
Michele.
Twilio Hackathon: Together against Corona!
Tags: twiliohackathon
Published: 2020-04-05 10:58:51

[Comment]: # (All of this is placeholder text. Use this format or any other format of your choosing to best describe your project.)

[Reminder]: # (Make sure you've submitted the Twilio CodeExchange agreement: https://ahoy.twilio.com/code-exchange-community)

[Important]: # (By making a submission, you agree to the competition's terms: https://www.twilio.com/legal/twilio-dev-hackathon-terms)

Hey there, this is my first blog post about the #twiliohackathon.
My idea is, to connect those people who need help (Buying groceries, Take the dog out, Get medication, Just someone to talk) with those people who like to help.


## What I built

I am trying to integrate this into the communication channels that we already use every day(WhatsApp, SMS, Telephone, Alexa...). The first interaction would be with a bot where the people specify some general information (What do you need?, Where do you live?, What do you want to help with?) and the app would match and connect these people. It won't be a very sophisticated app and I think the most challenging part is to train the bot correctly but I'm trying to keep this as simple as possible because I think it's much more simple to onboard users, especially older people.

## Demo Link

... 

## Link to Code


...

## How I built it (what's the stack? did I run into issues or discover something new along the way?)

Twilio Autopilot/Dialogflow
Still not sure about the Backend. I am confident with Java/Spring Boot but I would like to experiment with go. So it will be either Java/Spring Boot or go.

## Additional Resources/Info
Learn Twitter Bootstrap in VR update
Tags: twitter, boottstrap, vr, beginners
Published: 2020-04-05 10:40:28

## Bootstarry: level 1

[Video here](https://bit.ly/2xPaHQJ)

Level 1 of <b>Bootstarry</b> is almost complete, a few glitches and narration is missing but it’s starting to shape up. I’ve moved from Unreal Engine to Unity3D for now which means dipping into C# which is ok because I find that better than the flowchart type system that UE4 engine has (blueprints) which makes game development seem a bit magical.
Working from home - Day 16
Tags: remote, webdev, development
Published: 2020-04-05 10:40:04

---
title: Working from home - Day 16
published: true
description: Continuous journey of working from home due to COVID-19 outbreak at the world. This is my journey, my challenges in trying to be productive and completely changing my work habits from office first to remote first. 
tags: remote, webdev, development
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/i9ifkuq0dqptbdmzzv2m.jpg
series: working from home
---
## General

Usual exhaustion still exists. My theory is that as we are working now in our third week and even worked last weekend partially, my wife and I need time to rest. So this weekend will be completely non-work, even non-dev related.

I've tried ordering some N-95 (KN-95) masks online and it was a tricky task. I wouldn't pay 8-10€ for one mask because it is ridiculous. I searched for an hour on Wish and Alibaba Express Apps. My general rule:

- Only buy from Shops / Sellers with at least 1000+ reviews
- Avg. Review should be above 4/5 stars.
- Check carefully the pictures and description.

There is a difference between [N-95, Ffp2 and KN-95 masks](https://multimedia.3m.com/mws/media/1791500O/comparison-ffp2-kn95-n95-filtering-facepiece-respirator-classes-tb.pdf). All in all they are more or less similiar and honestly, I'm searching more as a backup strategy if German moves towards mandatory masks.

I've ordered from one seller on Wish (with via Express) and one Alibaba order. 

What I don't like about Wish:
- When I buy 2 pcs of anything on Wish, they multiple Shipping costs x2, e.g. 2 KN-95 masks -> 2x shipping costs.
- The difference between normal and express was not much when considering new customer coupons I got. Yet in general, 12€ is huge....

All in all, It looks like I got lucky bc I got two pkg with 5 KN-95 masks completely sealed and nicely packaged.

## Work

Nothing special. We had our weekly Muslim Community Group watercooler hangout, which end up giving tips to one of our core members as he is engaged 🎉

I'm now focusing on a Technical Debt Task again as our AB-Test is more or less done. It looks like some last effort on the backend is needed.

On of our Fashion Store API's is deprecated and it looks like on of our tools is using it still. 

Sadly, the JSON response also changed so I have to setup our Scala Monolith locally and see how I can test this scenario. Will be a tricky task.

## TIL

Using Feature Flags seems to be the best decoupled way to switch our Chrome Extension API Calls from one to the other. 

Why?

Because our Backend is acting as a Proxy for this call and we need to deploy a new version of it too (new endpoint, new JSON response).



Cheers,

Ferit
"yes_i_did" - A tiny gem to rerun your last IRB command with the "did you mean" suggestion if you make a typo
Published: 2020-04-05 10:39:11

I've written a tiny gem called [yes_i_did](https://github.com/AaronC81/yes_i_did) which adds a new method to your IRB session, `yes`. If you didn't quite get the name of something right in a command, simply invoke `yes` to rerun it with the typo fixed using the "did you mean" suggestion!

![Example of the utility in use. Running "yes" replaces a typoed usage of "append" with the correct spelling and reruns the command.](https://dev-to-uploads.s3.amazonaws.com/i/kbwctzhpsttc7wmsby6t.png)

Setup is simple: just install the gem and require it in your `~/.irbrc`.

This has already proven a handy time-saver for me, and I hope it can be for you too!
Create a new proposal to the tc39 for new Javascript features.
Tags: ecmascript, javascript
Published: 2020-04-05 10:37:46

---
title: Create a new proposal to the tc39 for new Javascript features.
published: true
description: A step by step guide to create a new proposal in Ecmascript 
tags: ecmascript, javascript 
---
Hi guys,

I would like to ask how could someone implement a new feature for a specific language (javascript). I mean to create a reserved keyword like the word new or delete and what steps it takes to do it.

Thanks
Why you should do ethical hacking anyway?
Tags: hacking
Published: 2020-04-05 10:33:52

---
title: Why you should do ethical hacking anyway?
published: true
description: 
tags: hacking
---

I was looking into ethical hacking as I was interested in CyberSec and was looking for a practical way to get in.

After some reading and playing around, I see its potential.

It’s a great field to apply concepts from various domains of software development.

Here is what I had to use in only 2 days of doing ethical hacking on HackThisSite.

1. HTML
2. JavaScript
3. HTTP (Protocol Knowledge)
4. Backend
5. Common Software Development Patterns
6. SQL
7. Web servers (Apache, Nginx)
8. Thinking like a Notorious Hacker
9. Street Smarts

As you can see, ethical hacking requires using knowledge from various spectrum of software development to get work done.

In other words, it’s extremely practical.

I would recommend everyone to try it.

1. Google “OWASP Top 10” and learn the concepts mentioned there. 
2. Then, create an account on HackThisSite(dot)org and try solving the challenges.
Is frontend only webdev and JavaScript?
Tags: webdev, discuss, javascript
Published: 2020-04-05 10:28:32

Also, is webdev much disliked because of JavaScript? I find CSS to be highly historical and convoluted as well. Also, end-users can be very choosy and critical.

IMO, mobile app also has a frontend. Desktop app also has a frontend. Also, we must not do too much work in UI thread, and delegate to the background, i.e. the server.

I find frontend enticing, and webdev is probably the most structured way to UI development, nicely separating frontend and backend...

Also, I wonder how large is mobile market share...
Hack a better future
Tags: hackathon, career, learning, programming
Published: 2020-04-05 10:01:08

---
title: Hack a better future
published: true
description: Help fight the crisis and build a better future
tags: #hackathon #career #learning #programming 
---

Hackathons are becoming increasingly important and valuable to companies, corporations, and communities. Hackathons teach new skills, strengthen developer communities, and push the limits of new technologies to create new value. They can be fun, energetic and highly productive since everyone is collaborating on a common goal and purpose.

With the current COVID-crisis, this common goal is more clear than ever. So if you ever wondered how you can help fight the current crisis, now is your chance. 

# Hackathons

Check out some of the current and upcoming hackathons in April:
- [the Twilio Hackathon](https://dev.to/devteam/announcing-the-twilio-hackathon-on-dev-2lh8) here on DEV 
- [Hack the crisis](https://www.hackcrisis.com/), with several initiatives in other countries, e.g. [Hack the Crisis NL](https://www.hackthecrisis.nl/en/)
- [The Global Hack](https://theglobalhack.com/), with support from the EU Commission - April 9-12 
- [MetaCartel's Dragon Quest](https://hackathon.metacartel.org/) - April 1st to 30th
- Mozilla's [Fix-The-Internet MVP Lab](https://mozilla.org/builders) - starts April 6th 
- [ETHTurin](https://ethturin.com/), A Virtual Hackathon on Ethereum - April 24-26

Or check out [Devpost](https://devpost.com/hackathons) for more..

# Prepare for a hackathon

I recently published a blog post on how to prepare for a hackathon. While this was aimed at blockchain hackathons, the tips are common to any hackathon. 

1. Set your own goals for the hackathon
2. Connect with the community
3. Don't be afraid to ask for help
4. Pick something that interests you
5. And ultimately... Make sure to have fun!

Full blog at https://www.wslyvh.com/how-to-prepare-for-a-blockchain-hackathon/
Pure CSS Spinner Animation 🍭
Tags: codepen, html, css, javascript
Published: 2020-04-05 09:29:34

---
title: Pure CSS Spinner Animation 🍭
published: true
tags: codepen, html, css, javascript
---
Hey, coding people hope you all are safe during these chines virus pollution 😷 by the way in this article you will learn how to make CSS spinner with pure HTML and CSS.

Stay home stay safe 🌱🍂🌲 and Learn something interesting during your stay at home! Double your gain with the [Eduonix FREE COURSE OFFER](https://www.eduonix.com/UHJvZHVjdC0xMzE1MDIw)!


{% codepen https://codepen.io/atulcodex/pen/YzXYXOy %}
Leetcode marathon day 2 
Tags: python, beginners
Published: 2020-04-05 09:28:29

The task of the second day is the task of finding a happy number: 

A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which this process ends in 1 are happy numbers.

First I was thinking (as usual) to try to implement it straightforwardly. Let's create a function that gives us the next iteration for a number: 
```
    def square_sum(n):
        return sum([int(i)**2 for i in str(n)])
```
At first, I was thinking that if we have a number with one digit it would be the end of the calculations and implemented it like this:
```
class Solution(object):
    def isHappy(self, n):
        """
        :type n: int
        :rtype: bool
        """
        if n < 10:
            return (n == 1)
        else:
            res = self.square_sum(n)
            return self.isHappy(res)
```
But quite fast I realised that this is not correct. Because if we have 7, for example, we will receive on the next step 49, which is not one digit.
But if we take another number as a threshold, like 3, it might work. But we actually don't need 3 only because `3^2 = 9` which is a one-digit number.  We could use a higher threshold if it's not a happy number. And the lowest happy number is 7. So the final version is 
```
class Solution(object):
    def isHappy(self, n):
        """
        :type n: int
        :rtype: bool
        """
        if n < 7:
            return (n == 1)
        else:
            res = self.square_sum(n)
            return self.isHappy(res)
```
It's not in any way an optimal solution, but it's working and according to the benchmarks it's working pretty well.