teleren/devto huggingface dataset:
Why you or your company need a Domain Name
Tags: productivity, wordpress, computerscience
Published: 2020-08-16 12:30:45

On the global Internet, your or your company domain name is your unique identity. Any individual, blog, business, or organization planning to have an Internet presence should invest in a domain name. Having your own personal domain name, website and email addresses will give you and your business a more professional look. Another reason for a blog or business to register a domain name is to protect copyrights and trademarks, build creditability, increase brand awareness, and search engine positioning.

With www.amberit.org hosting plans, as a domain name is one of the most crucial tools to build your or your company reputation, we include a free domain name registration in our annual ordered hosting plans. So for example, if you or your company don't have a domain name yet we offer a free domain name registration on annual hosting order and payments. If for example you already have a domain name and you would like to use our hosting and transfer the domain name too as a register (Register is an organization, that maintains domain name and bills you yearly for a domain name), then also we cover the transfer fees and keep your domain for you free of charge if you order and pay annual hosting plan and the domain charge is free until you cancel your subscription or stop making payments or downgrade to a monthly subscription. The domain name prices for each domain zone is a different go to https://my.amberit.org/cart.php?a=add&domain=register for a list of domain zones and prices.

www.amberit.org - European hosting company that works globally covers more than 700 domain zones worldwide. If you need a domain for your personal reasons, for a project or for a company we can provide you with full service. We recommend purchasing a yearly hosting service subscription and getting a domain free of charge from www.amberit.org, which is the best option available in the market.
Handler, Thread e AsyncTask
Published: 2020-08-16 12:26:10

## Thread
Um thread é uma linha de execução de código dentro de um aplicativo. Um aplicativo pode ter vários threads em execução num mesmo momento. Em outras palavras, threads permitem a um aplicativo ter comportamento multitarefa. No Java, a classe Thread é uma representação de um thread da Máquina Virtual Java ou JVM (que não necessariamente corresponde a um thread do sistema operacional hospedeiro, mas isso não vem ao caso).

## Handlers e Threads
Para a diferença entre Handler e Thread, veja esta pergunta. Note que Handlers não são Threads; Handlers têm esse nome porque servem para entregar mensagens (uma mensagem ou Message é basicamente o encapsulamento de um Runnable, isto é, um trecho de código executável) para threads que ficam em loop aguardando a chegada desses trechos de código para executar.

Para um thread ficar em loop, é preciso criar uma fila de mensagens para ele chamando os métodos Looper.prepare() e Looper.loop() dentro do próprio thread. No caso do thread principal o próprio sistema já faz esses passos, de forma que já o encontramos em loop por padrão.

Usamos um Handler quando queremos que um thread secundário execute muitas mensagens, ou quando queremos entregar uma mensagem ao thread principal. Neste último caso podemos evitar o uso do Handler através do método Activity.runOnUiThread() (caso estejamos em uma Activity), ou através de uma AsyncTask.

## AsyncTasks
Uma AsyncTask é uma classe que permite executar três trechos de código em sequência: o primeiro será executado pelo thread principal (thread de UI), o segundo por um thread secundário, e o terceiro de novo pelo thread principal. Por debaixo dos planos isso é implementado usando Threads e Handlers.

AsyncTasks têm a intenção de simplificar a implementação dessa sequência de passos, que é muito comum de acontecer no Android (por exemplo: disparar uma animação de “carregando”, executar uma tarefa em segundo plano, e então interromper a animação).

Essa sequência é feita assim, separada em threads e não tudo no mesmo thread, porque o threadprincipal é reservado para atualizar a tela e não pode executar tarefas em segundo plano sob pena de perder a responsividade.

Créditos: [piovezan](https://pt.stackoverflow.com/users/357/piovezan)
Random numbers using Node.js package
Tags: node, npm, javascript
Published: 2020-08-16 12:23:06

Hello. Today I am going to share with you this very interesting and simple package to be implemented the “Random-Number.
https://www.npmjs.com/package/random-number

If you are unable to implement it in your project, leave your doubts in the comments that I will answer as soon as possible.

### install
```
npm install random-number
```
### usage
```
var rn = require('random-number');rn(); // sample output → 0.704848874360323 # yes, this is just Math.random(), but it has some options
```

### default options
the exported function takes an option object with 3 meaningful properties

* min : smallest possible value to return. defaults to 0 or max – 1 if max is defined
* max : largest possible value to return. defaults to 1 or min + 1 if min is defined
* integer : do you want whole numbers to be returned, or not. 

### defaults to false
Examples
```
all three
// this is the functionality i like the mostvar rn = require('random-number');var options = {  min:  -1000, max:  1000, integer: true}rn(options) // example outputs → -187, 636

If you need the same (or almost the same settings many time) you can create a generator instead of passing the options over and over again

var rn = require('random-number');var gen = rn.generator({  min:  -1000, max:  1000, integer: true})gen() // example outputs → -350
What is neat about generators, that you can overwrite any of the settings
generator( min, max, integer) – all arguments are optional:

var rn = require('random-number');var gen = rn.generator({  min:  -1000, max:  1000, integer: true})gen(500) // example outputs → 735gen(500, null, false) // example outputs → 828.6001032683998 
only min

var rn = require('random-number');var options = {  min: 9874316514 // example input}rn(options) // example output → 9874316514.958157
only max

var rn = require('random-number');var options = {  max: -9874316514 // example input , yes negative values do work}rn(options) // example output → -9874316514.075052
only integer

var rn = require('random-number');var options = {  integer: true}// this is basically a true/false random generator, with 50% chance to return truern(options) // example output → 1
min and max

var rn = require('random-number');var options = {  // example input , yes negative values do work  min:  -10, max: -1}rn(options) // example output → -2.47377512534149
min and integer or max and integer
// completely pointless, but whatevervar rn = require('random-number');var options = {  min:  1000, integer: true}rn(options) // example output → 1001options = {  max:  1000, integer: true}rn(options) // example output → 999
```
GS Mains Test Series
Tags: gsmainstestseries, uspcgsmainstest, gsmainsonlinetestseries2021
Published: 2020-08-16 06:56:21

GS Mains Test Series suitable for aspirants preparing for UPSC Civil Services Exam 2021
Limited Enrollments
This is to ensure that due attention is given to the candidates so as to guide them on “How to Improve Answer Writing “, which is often not the case when the number is huge. So, with this aspirants can be personally attended to.

Personal Interaction
Offline + Telephonic – We believe that it’s not enough to evaluate the script, in the current pattern when competition is tough, every stakeholder has to walk an extra mile. We intend to communicate to the aspirant via personal sessions and regularly providing the required inputs to the student. This ensures a gradual understanding of mistakes, without which one cannot improve.

UPSC Pattern
Question Papers are prepared strictly as per the current UPSC pattern. Stress is on evaluating analytical skills of the aspirant rather than cramming skills.

Visit for more information: 
<a href="https://chromeias.com/best-gs-mains-test-series/">GS Mains Test Series</a>
Different Types of Machine Learning Algorithms
Tags: datascience, machinelearning, 100daysofcode, asquero
Published: 2020-08-16 12:15:26

The different types of Machine Learning Algorithms are -

## Supervised Machine Learning Algorithm
In this type of Machine Learning Algorithm, our model is trained on a labeled dataset.

The labeled dataset has both input & output parameters.

In this type of learning, both training & validation datasets are labeled.

## Unsupervised Machine Learning Algorithm
In this type of Machine Learning Algorithm, the information is neither classified nor labeled.

Unsupervised Learning studies can infer a function to describe a hidden structure from unlabeled data.

This algorithm does not figure out the right output, but it explores the data and can draw inferences from datasets to describe hidden structures from unlabeled data.

## Semi-supervised Machine Learning Algorithm
This algorithm falls between Supervised and Unsupervised Learning Algorithms because they use both labeled and unlabeled data for training.

This algorithm is used when labeled data requires skilled and relevant resources in order to train or learn from it.

The systems that use this method can improve learning accuracy to perform well.

## Reinforcement Machine Learning Algorithm
This type of learning algorithm is a learning method that interacts with the environment by producing actions and discovers errors or rewards from the outcome.

Trial, error search and delayed rewards are the most relevant characteristics of reinforcement learning.

This method allows machines and software agents to automatically determine the ideal behavior within a specific context in order to maximize performance.

Simple reward feedback is required for the agent to learn which action is best.

*This tutorial is originally published at https://www.asquero.com/article/different-types-of-machine-learning-algorithms/*

Also read -

**Advantages and Disadvantages of different types of machine learning algorithms** - https://www.asquero.com/article/advantages-and-disadvantages-of-different-types-of-machine-learning-algorithms

**Advantages and Disadvantages of Machine Learning** - https://www.asquero.com/article/advantages-and-disadvantages-of-machine-learning/
CKA feedbacks
Published: 2020-08-16 12:07:59

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

I passed the Certified Kubernetes Administrator exam, here are the advises that worked for me:

# Real-world use-cases

Experiment and learn Kubernetes basics with real-world usage. Try to run your self-hosted services in it for instance. Something basics requiring storage and an external URL are enough. It will give you an overview of the Kubernetes documentation and you'll need to learn about services, ingress and volumes (PV, PVC).

Learn by doing first. Then dig more deeply into the theory and more complex use-cases.

# Prepare the exam with the Udemy course

The easiest way is to take the CKA preparation course (around 11 euros), it is super complete and you have practice labs, and exam preparation questions (the number 2 and 3 are enough.) If you understand every step, the exam would be easy.

# Additional tricks

## Use the shortcuts

- `-n namespace-name` instead of `--namespace namespace-name`
- use `-A` instead of `all-namespaces`, for instance: `kubectl get pods -A`
- To get all resources and have a namespace overview, you can write `kubectl get all`
- `alias k=kubectl`. The only bash alias I used, and it is enough.
- `!$` allows you to use the last argument of the previous bash command.
- `cat > my file` let you write super quickly in a file. Then modify it with *vi*.
- Learn your editor (vi, nano), be confident in a terminal.
- Learn all the Kubernetes shortcuts such svc for services.

# Notes

* If you prepared with real use-cases & Udemy course, you will have enough time to verify every exercises.
* For "complicated" question such set-up a cluster with kubeadm, take your time. I missed the 100/100 because of this one. I went too fast and fucked-up the boxes :D

Have a nice pods spawning!
Advantages of a Decentralized Web Over Centralized Web (Content vs Location based addressing)
Tags: beginners, webdev, blockchain
Published: 2020-08-16 12:02:56

#### Centralized Web
On a centralized web we access data via URLs, these URLs provides information for locating and identifying a resources provided by a central authority 

so when we do;
```http
GET - https://cakes.com/blue-cake.png
```
...we are hereby requesting for `blue-cake.png` located at `cakes.com`, some of the few drawbacks of (getting a resource via location based addressing on a) centralized web is;
- We cannot verify the content of the resource
- We can have duplicates of this resource all across the internet
- We cannot truly verify the ownership of this particular resource
- We left to assume that the authority providing this resource is trustworthy

#### Decentralized Web
But on a decentralized web, data stored are identified by a cryptographic hash (which serves as a fingerprint signature for a resource), since a hash value can uniquely identify a resource, all attempts to store duplicates of a resource across network can be evaded.

therefore, when we do a 

```http
GET - https://decentralized.web/66FAC571933F185C3C4E4F03C01E76B66978DD13
```
we are hereby requesting for resource with the hash value `66FAC571933F185C3C4E4F03C01E76B66978DD13` at `decentralized.web` (with is a decentralized network of resource owning nodes, where the active node that owns this resource would provide it to the end user)

So on a decentralized web;
- We can verify the content of the resource
- We can verify the owner of the resource
- We can avoid data redundancy and duplicate data all over the internet

For more info about decentralized web : 
 - https://ipfs.io/#how
For more info about Cryptographic: 
 - https://en.wikipedia.org/wiki/Cryptographic_hash_function
 - https://en.wikipedia.org/wiki/SHA-2
Url Shortner (Cuts your url)
Tags: actionshackathon, opensource, github
Published: 2020-08-16 12:02:40

### My Workflow
This Workflow allows us to execute a python file to create a URL shortener the every time user generates a JSON file and changes the [urls.json](https://github.com/littleurl/littleurl.github.io/blob/master/urls.json) File the github pages action generates a html file in gh-pages branch with github action the script is executed succesfully and hence url is shortened


### Submission Category: 
* Wacky Wildcards


### Yaml File or Link to Code
{% github https://github.com/littleurl/littleurl.github.io no-readme %}



### Additional Resources / Info
##### How it work's ?
It works as a url redirector the default domain is set inside the [short.py](https://github.com/littleurl/littleurl.github.io/blob/master/short.py) ie.littleurl.tech and CNAME File. The custom short url are to be placed in [urls.json](https://github.com/littleurl/littleurl.github.io/blob/master/urls.json) file which could be generated with our [custom JSON Generator](https://littleurl.netlify.app/#jsongenrator). As soon as the JSON file is edited with New url, github Actions does its job [little url shortner workflow](https://github.com/littleurl/littleurl.github.io/actions?query=workflow%3A%22Little+url+shotner%22) starts running and a new html file is generated in [gh-pages branch](https://github.com/littleurl/littleurl.github.io/tree/gh-pages) with the url redirect. 

##### License
Littleurl is [MIT licensed](https://github.com/littleurl/littleurl.github.io/blob/master/LICENSE).

I ❤️ OPEN SOURCE
Note: Shorter link for this post => https://littleurl.tech/devpost
Daily Developer Jokes - Sunday, Aug 16, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-08-16 12:00:07

---
title: "Daily Developer Jokes - Sunday, Aug 16, 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%20Aug%2016%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/5e1258a63bab5.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:___ What did the array say after it was extended?

___A:___ Stop objectifying me.
 -->
Add a Post on Dev after new Release on GitHub
Tags: actionshackathon, github, opensource, javascript
Published: 2020-08-16 11:39:26

This post is regarding the **Github actions hackathon** on Dev🔥. This is not related to the submission.

## About

This action posts a new article on Dev after a new release has been published on GitHub.

## Flowchart

Below is the flowchart of the action I'm going to develop.

![Action hackathon Flowchart](https://dev-to-uploads.s3.amazonaws.com/i/0kjl2b865ic33akp0j5g.png)

## Description

To post articles on Dev I'm going to use the [Dev.to API](https://docs.forem.com/api). 

The user has to create an API key from his Dev account and save it as a secret in GitHub and will have to add the workflow config file.

The workflow then runs after the release has been published and post a new article on Dev with the release information.

## Project Category

I **need your help** with this. Please suggest me the category in which this project can fit. See the available categories [here](https://dev.to/devteam/announcing-the-github-actions-hackathon-on-dev-3ljn).
Uses of array_combine function
Published: 2020-08-16 11:31:17

`array_combine` is a inbuilt Function in PHP .

These function creates an array by using the elements from one **keys** `array` and one **values** `array`.

### Example

```php
<?php
    $a = array('green', 'red', 'yellow');
    $b = array('avocado', 'apple', 'banana');
    $c = array_combine($a, $b);

    print_r($c);
?>
```

### Result

```php
Array
(
    [green]  => avocado
    [red]    => apple
    [yellow] => banana

)
```

Thanks
Overcome fear of Init blocks! | KnowYourKotlin
Tags: kotlin, android, java, static
Published: 2020-08-16 11:22:25

Hi #androidDevs, This is Androidbites where I try to break down a small concept into an understandable code snippet and share my learning experience with it.

Today we are discussing `init blocks`, here is a little challenge for you guys, let's see if you could guess the correct out! if you can guess the right output you get a Candy

![question InitBlock](https://dev-to-uploads.s3.amazonaws.com/i/2s818295on0cltdm58yy.png)

if you don't know then, don't worry grab your headphones and put on lofi music and read thought my article.

## 👉 [AndroidBites|InitBlocks](https://chetangupta.net/init-blocks)

Hope to see you on the other side...

Until next time. Happy Hacking! 👩‍💻

Stalk Me 👀 :
[LinkedIn](https://bit.ly/ch8n-linkdIn) | [Medium](https://bit.ly/ch8n-medium-blog) | [Twitter](https://bit.ly/ch8n-twitter) | [StackOverflow](https://bit.ly/ch8n-stackOflow) | [CodeWars](https://bit.ly/ch8n-codewar) |[WorkX](https://bit.ly/ch8n-home) |[Github](https://bit.ly/ch8n-git) |[Instagram](https://bit.ly/ch8n-insta) |[Youtube](https://bit.ly/ch8n-youtube)
How to Design a mobile app as an Extention to your Web app?

Published: 2020-08-16 11:17:37

👉 Take advantage of the Mobile Device.

There is a good reason why consumers are addicted to Mobile apps.

Even more than Desktop Apps. 

Consider taking advantage of the pointers below:

🔹 It's always in their pockets
🔹 Native Camara access
🔹 Location Access
🔹 Contacts Access
🔹 Native Microphone
🔹 Native Calendar and Email
🔹 Push Notifications
🔹 Sharing links and content to their favorite apps

Considering all the above, you can create a truly magical experience exclusive for your mobile app!

It will also get you more downloads.
What is the best way to publish/update a markdown blog post from a git repo to dev.to via continuous deployment?
Tags: discuss, devto, publication
Published: 2020-08-16 10:53:40

Hi :wave:,

I'm thinking about to have my blog posts as markdown files in a git repo, which are automatically are published to dev.to. Also a change at the markdown file should trigger a change to the dev.to blog post.
What are the best ways?

I found following approaches on GitHub:

{% github sinedied/publish-devto %}

{% github tylerauerbeck/publish-to-dev.to-action %}

And also some on dev.to:

{% link https://dev.to/beeman/automate-your-dev-posts-using-github-actions-4hp3 %}

{% link https://dev.to/datamatin/how-to-publish-a-post-pulled-in-via-rss-feed-497k %}

{% link https://dev.to/timdeschryver/writing-a-dev-to-blog-post-with-vscode-1fn %}

{% link https://dev.to/maxime1992/manage-your-dev-to-blog-posts-from-a-git-repo-and-use-continuous-deployment-to-auto-publish-update-them-143j %}

Update 18.08.2020

{% link https://dev.to/dylburger/publish-dev-articles-from-a-git-repo-with-github-pipedream-505j %}

Thanks.