teleren/devto huggingface dataset:
DatoRSS Covid19
Published: 2020-03-09 10:05:32

I added to my importer RSS news about Covid19 and just updated DatoRSS with new Covid19 button. 

Just my 2 cents for the management of this emergency.

https://datorss.com


![Example](https://i.ibb.co/6bft6m3/Screenshot-2020-03-11-at-16-27-25.png)
Jsonbox.io V2 - A free HTTP based JSON storage. Now w/ private box.
Tags: showdev, http, json
Published: 2020-03-09 09:46:19

I am happy to announce version 2 of jsonbox, which has support for private boxes. Privates boxes are similar to normal boxes, but need authentication for write operations (not for read). So now you can serve your website’s data with jsonbox. 

If you don’t know what jsonbox is, it is a free service that lets you store, read & modify JSON data over HTTP APIs for free. 

https://jsonbox.io

https://github.com/vasanthv/jsonbox
Run specific select raw queries on write database in order to have fresh data on replication lag
Tags: help, laravel, database
Published: 2020-03-09 09:30:53

How I can arbitaty execute some raw sql queries on write host. I do need it in order to have the most fresh data. It won't be on all the queries but on handfull critical ones.

{% stackoverflow 60597701 %}

DO you have any idea?
How to use Private GitHub Packages on TravisCI
Published: 2020-06-26 09:29:32

---
title: How to use Private GitHub Packages on TravisCI
published: true
date: 2020-03-09 09:22:03 UTC
tags: 
canonical_url: https://joshghent.com/private-github-packages-travis/
---

> The Problem: It’s fairly well documented how to use private NPM packages in a project that uses TravisCI, but what about the GitHub Package Registry?

This was the issue I was facing. I was googling all over the net and finally landed on a solution to solve this problem.

In practise, TravisCI just boots a VM or container that then runs the scripts you have defined. We can leverage the `before_install` script to setup Travis as a new GitHub Package user. Here is how to do it…

1. If you’re using a team, you will want to create a new user account and add it to your team. This is so we can safely generate a GitHub Token without fear of the person leaving the business in the future etc. Add this new bot user account to your GitHub Team
2. Generate a new personal access token on the new bot user [here](https://github.com/settings/tokens/new). It will need access to `write:packages` and `read:packages`
3. Add the newly generated token to TravisCI’s environment variables as `GITHUB_ACCESS_TOKEN` - you will need to do this for each project that requires usage of the private package
4. 

Add the following to your `before_install` section of your `.travis.yml`

```
before_install:
```

5. echo “//npm.pkg.github.com/:_authToken=${GITHUB_ACCESS\_TOKEN}” > .npmrc
6. npm config —global set <your org>:registry <a href="https://npm.pkg.github.com">https://npm.pkg.github.com</a></your>
7. 

cp .npmrc ~/



8. Swap the `<YOUR ORG>` with your GitHub Organization name without the `@` - in our case the line would read `npm config --global set k0ru:registry https://npm.pkg.github.com` - **this org name should also be contained within the package name that you publish** , so in the `package.json` file for your **package** the name should be `@<YOUR ORG>/package-name`.
9. Push up your new `.travis.yml` file and kick off a build!

Hey presto that should all fit together and download correctly. Short article but it’s the article I wish existed when I was searching for an answer!
Sushma Coded because it's her destiny...
Tags: wecoded
Published: 2020-03-09 08:58:36

I wanted to be a doctor when I was in school. Graduated in Electrical Engineering. 

With no job in the hand, no real-time experience and practically no knowledge of the outside world, I was looking for opportunities to work. 

That's when coding found me... when I had nothing. 

The coding community owned me and taught me how to code.

I found tons of information about various technologies and different career paths through my fellow coders. I have learned everything I know referring to youtube videos, blogs, and Stack Overflow. They practically guided me in my career path. 

No one laughed at me when I asked doubts. No one looked down on me because I am a girl whether it is my workplace or any online community. 

I feel like It's my destiny to be a coder and I am honored to be in the coding community. 

And I would like to take this opportunity to thank all the coders & coding platforms who are spending many of their personal hours to create coding content and helping others to improve. 

You are the coolest guys on the earth. ✌
Some important points to watch out before you commit your code
Tags: softwareengineering, continuousdelivery
Published: 2020-03-09 08:58:11

---
title: Some important points to watch out before you commit your code

published: true
description: 
tags: SoftwareEngineering, Continuous Delivery
---

Before you commit your code to avoid too much back and forth with the team lead, CTO or whoever is in charge of code review, ensure the following are points are in place :

1. Code Style: Every organisation has a coding convention which they follow. It is good you figure this out even before you start coding.

2. Amount of duplicated code: Always apply the DRY principle(Don’t Repeat Yourself)

3. Cyclomatic complexity: This is the count of the number of decisions in your code. The higher the count, the more complex your code. Checking this early will help reduce code complexity and also determine the number of test cases required.

4. Number of warnings: Whenever you see a warning by your IDE, it’s an indication that there is something you are not doing right. Though these things are usually safe to ignore but if you do so then over time they’ll multiply until that day comes when there are so many that you miss the one warning that really matters because it’s hidden your verbose logcat.

5. Test Coverage: Your test should cover at least 80% of your codebase; if not all.

6. Afferent and efferent coupling(package’s responsibility and package’s dependence on externalities respectively): Afferent coupling(Ca) is the number of classes from other packages which depend on a some classes in a particular package. Preferred values for the metric Ca are in the range of 0 to 500. Efferent coupling (Ce) is the number classes in a given package which depend on the classes in other package. The preferred value for the metric Ce is 0–20.
I spent a week searching for functionality under my nose.
Tags: javascript, node
Published: 2020-03-09 08:46:46

I had been search and search for an implementation of the actor model that could run in isomorphic contexts, in both browser and in node. Seeing as I have already got communication documented in my last post, all I want to do is send messages from server actor to client actor. It turns out that xstate offers more than just state machines, xstate has an actor API, how did I miss that, I wasted time implimenting my own bits and bobs. Now I'm going to tear down what I have and refactor with xstate.

Moral of the story, read the docs again.
Open-source app to help fighting COVID-19
Tags: rails, showdev
Published: 2020-03-09 08:28:05

I co-founded a few years ago a healthcare startup ([Lifen](https://www.lifen.fr/international/en)) with the aim to help healthcare professionnals in their daily job. With COVID-19 spreading faster, hospitals, hospital beds are starting to be quite saturated in infected countries while we also know that 80+% patients are asymptomatics and should simply stay at home thus avoiding additional saturation and preventing contaminations amongst caregivers.


We were contacted a week ago by infectious diseases practitioners to help create a web app to monitor covid-19 patients at home : 
- we create a command center for each city
- healthcare professionnals onboard their patients
- every 24H, patients receive by a SMS a secret and temporary link to fill a few vitals on a responsive form
- their status then evolves depending on their answers leading to a list of actions to be taken by caregivers

As the disease has already spread to 100+ countries we have decided to open-source it.

It is a very simple Rails 6 app using Twilio's API. Here is the main flow in video : 

{% youtube wwDJNR6SKmI %}

**Github repo** : [link](https://github.com/lifen-labs/covid)

Feel free to fork it or contibute :)
How to boost your business through online connectivity
Published: 2020-03-09 08:26:03

If you want to sell your products online and cannot find the right solution, we offer you the best web design services in Yamunanagar that save your time and money. We have been doing eCommerce web development from years now, and we have many satisfied clients around the globe. eCommerce solution provided by us is unique that meets the client’s specification.
RajSonsdesigns.com a website development company Yamunanagar, has initiated to help business enterprises achieve efficiency and effectiveness by taking them into the e-world, being partners in e-revolution. Since then, every day we have grown, evolved and metamorphosed to the present, gained in size as well as knowledge, attempting for greater heights. E-commerce is the need of time, we have the capability to provide the best possible web solution to help your business grow. E-commerce website solution is one of our various expertise. Companies nowadays are hiring a website development company to help them remodel their current online working schema, we at rajsonsdesigns.com willingly invites such proposals, and we believe that we have the capability to empower better web solution that will help the client’s business.

With you in every step of the way, from idea creation and developing a business model straight through to design and technology implementation, we will make your transition into e-business as smooth and swift as possible. Combining skills you need to compete in the ever-changing world of the internet — strategy, web technologies, user interface design, systems integration, user reach, brand and image building – We provide web solutions that work, not just look good! Our team comprises of fresh engineering graduates and experienced developers, working for us, either part-time or full time. The experience mixed with innovation upshots a terrific combination. For more info please visit https://rajsonsdesigns.com
Coding after 40: Learning Ruby
Tags: ruby, rails, 100daysofcode, codenewbie
Published: 2020-03-09 00:11:43

I've been learning Ruby for a few weeks now. With the basics of Java under my belt I've found it somewhat easier to come to grips with, and I'm just now starting to get into Rails. 

Ruby is a really fun language. Less verbose than Java, and (IMHO) less confusing than JavaScript, I can see where the design of Ruby was made to be a "joy" to use, it certainly feels that way. No semi-colons, no curly braces, hardly any parentheses. 

<b>The Complete Ruby Developer Course on Udemy</b>

There are far less good choices on Udemy for ruby/rails than probably any other language, I'm happy to say this one, while older, is being updated. By older, I just mean that a lot of it covers rails 5, but even in its current state is quite strong. 

 The author walks through the basics of ruby, and if you've done the basics in any other language this is going to be cake once you remember to put 'end' at the end instead of a } lol. 

The entire course goes through 5 different complete web apps that cover everything from password authentication to logging in, creating admin accounts, pretty much everything you'd expect to know how to do as a Ruby developer.

list of the apps:
-A blog site
-A "university" style app 
-A chat application
-A finance tracker
-A photo app

All really solid apps that could be edited and used on a portfolio site. One of the things I really love about this course is after each video there's notes for the previous version that gives you the gist of the video. For instance after the git video, the notes have commands and short cuts you'll need. You could print these and keep a notebook.

I highly recommend not doing this course using the online ide if you can, unless you absolutely need to for some reason. Set up a local environment. I'm using Visual Studio Code. Most of what the instructor does is transferrable anyway, so it's not too difficult. 

<b>what I've done so far</b>

I've gone through all the basics. I'm no expert, but I'm comfortable with them. I'm using edabit.com to practice. Edabit has more than just ruby exercises so just about anyone can find exercises to do.

I'm currently working through the rails portion, building out the blog site. Rails to me is a lot easier to learn than android (which I tried to learn but had trouble grasping. A lot more moving parts). I'm planning on spending a lot more time with Ruby. While rails has a bit of a learning curve, it seems a lot less steep.

I can't believe I'm almost halfway through another 100 days. I'm going to spend the next 50 days on Ruby and Rails. By far it's the most fun I've had coding.
Nevertheless, Ridhwana Coded
Tags: wecoded
Published: 2020-03-09 08:15:38

As I was growing up, when I was asked what I wanted to become, it started off as a 👸🏽princess, then a 🚗car racer, a 👩🏽‍🏫teacher, an 🧾accountant, but never did I once say any type of engineer.

You see the thing is, I’d never really seen any girls operate computers or build bridges. I knew what the world taught me - pink is for girls, we play with princesses, and maybe half day jobs with holidays are best. 

I didn’t learn to program from an early age and I didn’t know anyone that did, in fact to be honest I didn’t know what programming entailed.

Almost a decade later... and I'm a [software engineer at DEV](https://dev.to/), a company whose mission I believe in, I [speak at conferences](https://ridhwana.com/speaking/) about the things that I love, and I [run a non profit organisation](http://kasimaths.org/) to help others. I'm not a princess, but I am someone that has mapped out her own journey and worked really hard to get there, so maybe I could be my own superhero?

![superhero](https://media.giphy.com/media/9FZp3wje5JyjkNTszy/giphy.gif)


Nevertheless, how did I get from wanting to be a princess to becoming a software engineer?

1. Firstly, I have parents who didn't limit me. They let me choose the career path that I wanted to even though I really had no clue what Computer Science was, but they let me explore and knew I would find my path.
2. I worked really really hard. It wasn't always easy. Coming from a non-coding background, I felt like I lagged behind with understanding certain coding concepts at university, because it was assumed that I had done coding at school. Whilst I was learning what an if statement was, the curriculum dictated that we built web sockets already.
3. Once I was in the industry I didn't let being the only women in the room stop me. Yes, it was difficult, and I had to prove myself over and over, but I did it until I no longer needed to. 
4. I learned and forced myself out of my comfort zone - the bigger the challenge, the more I wanted to achieve it. 
5. And finally, I let myself be inspired by others in the industry. I took on mentors when I felt that I needed guidance, and I asked for help when I was lost. I contributed where I could.

There are still challenges that I'm overcoming on a daily basis but I finally believe that we can overcome them together as an industry. Each day in the smallest of actions, I strive for a world where:

- everyone gets paid equally, based on their skills and NOT their gender.
- a women in the boardroom no longer has to prove herself, in order to get her voice heard.
- tech conferences are filled with diversity and the excuse is no longer, 'but we couldn't find a women'.
- the working environment is tailored to suit the needs of both men and women.

I believe that over the last decade we have made progress, but we still have a long way to go. It is with constant awareness and small changes that lead to bigger ones that we can get there.. together. On that note, Happy International Women's Day!💜
I'm Rawk, and I support women devs.
Tags: wecoded
Published: 2020-03-09 08:06:46

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title & narrative! ✨ -->

## Equality in tech looks like…

Honestly, I have the most idealistic view of life, truly believe we can live an ideal life, equality in tech is when we stop talking about equality in tech, and just see another human in tech as another human in tech, either your capable or you're unable to get the job done.

Before writing this post I wanted to confirm, just how many women in tech I knew, and after confirming how many women in tech there is, I came to realize just how many of them got things done and got it done really well to the point where I even forgot that they had to fight a whole other battle to get here.


## I will advocate for equality by…

I love my ignorance, however, I have come to learn that, there is an inequality, and that every day I put my best foot forward to make sure there is equality in tech at all times if that means partnering with women to complete a project, or the most extreme example, joining women coding initiatives just so we can have a balance in the industry.

I will learn to understand that others had to work harder than others just to get to the same point, however, I will not change my behavior or how I treat such an individual as to how I treat anybody else.

I will, when asked, to help others that are being mistreated, even as well as when I see another person being mistreated and underestimated due to who they are.  

## My advice for fellow allies to support self-identifying women and non-binary folks who code is...

_Have fun with them, it is a serious issue, however, there is no need to point out every day, and praise them for a job well done just because they were able to break through the inequality._
Performant WebView alternatives to Electron
Tags: discuss, webdev, desktop, electron
Published: 2020-03-09 06:31:04

Have you found anything better than Electron for WebView?

## Non-performant solutions

- QtWebEngine
- JavaFx WebView

## Similar-in-heaviness solutions

- NW.js

## Lightweight, but less choice solutions

- [zserge/webview](https://github.com/zserge/webview) (Golang)
- [Neutralino.js](https://github.com/neutralinojs/neutralinojs)
- [SWT](https://wiki.eclipse.org/FAQ_How_do_I_display_a_Web_page_in_SWT%3F) (Java)

I find that SWT might be a solution for me, when I don't want to write backend in JavaScript/TypeScript...

But, do we really need to put web browser in the desktop application in the first place? Why not just web server on localhost?
Implementing Clarafai's Image Recognition API to your React application
Published: 2020-03-09 06:22:30

Clarafai creates computer vision AI such as image recognition, demographic analysis, aerial surveillance, and so much more. One of my recent project uses the Clarafai image recognition API to detect a face in an image.

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

So how do we start?

You can head over to Clarafai's website at https://www.clarifai.com/.
You will need to create an account and create your application to get an API key to use their Image Recognition. 

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

After creating your application, you will have access to your API key which is located in the API keys section. Copy that API key and store it somewhere safe.

Now that you have your API key, you can access your terminal and do npm install clarafai --save to install clarafai into your application. After that, you can import clarafai into your react project with 
import Clarifai from "clarafai";
Next, you will need to initialize clarafai. You can do that with 
const app = new Clarifai.App({
  apiKey: "your api key"
});

The last step is the fun stuff. Actually using the image recognition AI. 

app.models.predict("your image address").then(
    function(response) {
      // do something with response
    },
    function(err) {
      // there was an error
    }
  );

This will locate a face in the image that is provided.
takeThisKnowledge
Published: 2020-03-09 05:47:38

Lesson 18 Discussion
1.	Explain in your own words the lesson.
2.	Include the following questions:
	Why should developers use adaptive layout tools in their 
        applications?
	What is the difference between Auto Layout, constraints, and stack 
        views?

A.	Lesson 18 was about creating our first app on XCode and learning how to use functions in XCode like the Auto Layout, constraints and stack views. 
B.	Auto Layout is the system that XCode uses to make the app adaptive to the screen size of the device it’s displayed on. Constraints are parameters set and are unmoved regardless of the screen size. The Stack View option aligns the elements either horizontally or vertically in relation to the screen size.
Nevertheless, Martin Jham Coded
Tags: wecoded
Published: 2020-03-09 05:40:24

---
title: Nevertheless, Martin Jham Coded 
published: true
tags: shecoded
---
<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title & narrative! ✨ -->

## Equality in tech looks like… 

## I’m an expert at…

## My advice for allies to support self-identifying women and non-binary folks who code is...

<!-- Once your post is published, it will not appear on the /t/shecoded page until an admin approves it. This is an extra step to ensure there is no abuse on this important tag. -->
Week 16 stuff
Published: 2020-03-09 05:36:53

Lesson 16 Discussion
Please create a blog on dev.to with the following information:
1.	Explain in your own words the lesson.

2.	Include the following questions:
	For the app you’re thinking of, what’s an example of an input the 
        brain would take?
	What’s an example of a result it would return to display in the 
        user interface?

A.	Lesson 16 was about the Chat bot and how we can control the chatbot by changing the questions or the User Input. That is the input info which goes into the Conversation View controller which hold the data stored for this app. It also determines what Answer to give. 
B.	For my app, the input that the brain would take would be the type of vehicle that makes a certain engine sound. The return would be the correct engine sound or a Bool that gave a true or false answer to what engine sound went with what vehicle.
ตัวอย่างการใช้ LocaleCompare ใน JavaScript
Tags: javascript, sort, localecompare
Published: 2020-03-09 05:55:44

---
title: ตัวอย่างการใช้ LocaleCompare ใน JavaScript
published: true
date: 2020-03-09 05:06:49 UTC
tags: javascript,sort,localecompare
canonical_url: 
---

การ Sort ทางฝั่ง Client ถือเป็นการลงทุนน้อยส่วนผลตอบแทนก็ขึ้นอยู่กับความเก่งของ Web Browser ซึ่งปัจจุปันคิดว่าน่าจะได้ผลใกล้เคียงกันแทบทุกค่ายนะ

![](https://cdn-images-1.medium.com/max/1024/1*LXji1VLPedRDxJ9wUSWcpg.jpeg)

ตัวอย่างง่ายๆ ที่ผมใช้ Sort โดยไม่ต้องทำหลังบ้านส่งมาให้ทาง Web Browser ทำให้ดังนี้

{% gist https://gist.github.com/mrchoke/c0824f4c90f50dc979973cecba5e04e0 %}

จาก Array

```
['โอกาส','เก่ง','กุ้ง','โข่ง','ขุ่น','แกง','อ่อน','อิ่ม','Apple','action','zebra','Zip']
```

![](https://miro.medium.com/max/1412/1*UYU9MFMv4jjyz_X_lzW6ug.png)

![](https://miro.medium.com/max/1412/1*Z8aTy6BMQm7fMoR1kcww5w.png)

![](https://miro.medium.com/max/1560/1*YbHDX_2uRWZSg8HJ3__7lA.png)

![](https://miro.medium.com/max/1456/1*gEuG6zGowlHbGxAN_PPk1g.png)

ลองเอาไปเล่นกันดูครับ