teleren/devto huggingface dataset:
How to ML - Monitoring
Tags: machinelearning, ai
Published: 2021-02-25 10:53:56



As much as machine learning developers like to think that once they've got a good enough model, the job is done, it's not quite so.

The first couple of weeks after deployment are critical. Is the model really as good as offline tests said they are? Maybe something is different in production then in all your test data. Maybe the data you collected for offline predictions includes pieces of data that are not available at inference time. For example, if trying to predict click through rates for items in a list and use that to rank the items, when building the training dataset it's easy to include the rank of the item in the data, but the model won't have that when making predictions, because it's what you're trying to infer. Surprise, the model will perform very poorly in production.

Or maybe simply A/B testing reveals that the fancy ML model doesn't really perform better in production than the old rules written with lots of elbow grease by lots of developers and business analysts, using lots of domain knowledge and years of experience.

But even if the model does well at the beginning, will it continue to do so? Maybe there will be an external change in user behavior and they will start searching for other kinds of queries, which your model was not developed for. Or maybe your model will introduce a "positive" feedback loop: it suggests some items, users click on them, so those items get suggested more often, so more users click on them. This leads to a "rich get richer" kind of situation, but the algorithm is actually not making better and better suggestions.

Maybe you are on top of this and you keep retraining your model weekly to keep it in step with user behavior. But then you need to have a staggered release of the model, to make sure that the new one is really performing better across all relevant dimensions. Is inference speed still good enough? Are predictions relatively stable, meaning we don't recommend only action movies one week and then only comedies next week? Are models even comparable from one week to another or is there a significant random component to them which makes it really hard to see how they improved? For example, how are the clusters from the user post data built up? K-means starts with random centroids and clusters from one run have only passing similarity to the ones from another run. How will you deal with that?
Progressive Web Apps: Everything You Need to Know
Tags: pwa
Published: 2021-02-25 10:44:11

Progressive web apps possess excellent functionalities and features that set these apps apart from traditional web apps or native mobile apps. Improving the web understanding on cell phones has consistently been a difficult assignment for the advancement network. In any case, they keep concocting new thoughts and ideas to create arrangements that offer consistent presentation and vivid client experience across various gadgets. Presently, Progressive Web Apps or PWAs have taken the web understanding on cell phones to another level. These applications are in any event, giving an edge over local portable applications.

 A PWA is an advanced form of web application that offers an app-like interface for user interaction. Salient features of a progressive web app: PWAs have opened up another channel for getting to the web while giving an application-like encounter. Thus, Progressive Web App development services are getting well known in different enterprises. We should have a deep understanding of PWAs and see how they are ending up being helpful for portable clients. There are lots of features that make a PWA so useful and popular. Here are some key features of a typical progressive web app. Instant loading Once you open a PWA the first time, the next time you open the app will load in a jiffy. Installable A progressive web app can be installed on mobiles, desktops, tablets, and laptops. Responsive Due to responsive structure, a PWA can run on any device be it a mobile or desktop. Push notifications Just native mobile apps, progressive web apps can also send push notifications. Connectivity independent A PWA caches its content when you run the app that allows the app to run even in low or no internet connection. Always updated Since a PWA is a website, it is always fresh and doesn’t require updates like a native mobile app.
Read More: <a href=" https://dev.to/garrysmith010/5-essential-features-of-a-progressive-web-app-530k">5 Essential Features Of A Progressive Web App</a>
 Fast & Secure Progressive web apps are served through HTTPS, so they are fully secure. Due to caching and other optimizations, they load very quickly. Easy to share It is quite easy to share a PWA. A user can share the app with friends by just sending a link to the app. Discoverable on the web Like a normal website, a PWA is also searchable on the web. One can find a PWA on the web app install easily. How to develop a Progressive Web Application? You can find a <a href="https://www.csschopper.com/progressive-web-app-development-services.shtml">progressive web app development company</a> or Hire Progressive Web Developers to create a PWA for your business. While you make separate versatile applications for changed stages like Android and iOS, a solitary PWA takes a shot at each gadget. They are a decent option for the local portable applications as they are amazing, quick, powerful, and feel like a genuine versatile application. By incorporating these sorts of advancements into your biological system, you can upgrade your client contact focuses.
Free Next.js landing page template
Tags: nextjs, tailwindcss, typescript, react
Published: 2021-02-25 10:37:35

React and Next.js resources and landing page templates can be difficult to find on the internet, especially the ones that are not outdated or don't have performance issues.

STARTD is a free Next.js landing page template for SaaS products, online services and more.

Technologies used:
- Next.js — An amazing React framework
- Twind — The smallest, fastest, most feature complete Tailwind-in-JS solution in existence
- TypeScript — It's worth it
- ESLint — Pluggable JavaScript linter
- Prettier — Opinionated Code Formatter
- Husky — Use git hooks with ease
- Commitlint — Lint commit messages
- Renovate — Dependency update tool
- lint-staged — Run linters against staged git files
- Absolute import — Import folders and files using the @ prefix

Live demo: https://next-startd.vercel.app
GitHub: https://github.com/jkytoela/next-startd

Feel free to use it for whatever you want 🙌
Apache Airflow:Trigger DAG with REST API
Published: 2021-02-25 10:13:02

Airflow ได้ยกเลิกการใช้งาน Experimental Rest API ไปตั้งแต่ v2.0.0 ด้วยเหตุผลว่า Experimental ไม่มีการควบคุมการเข้าถึง จึงได้เกิด Airflow API (Stable) (1.0.0) ขึ้นมา [ดูเพิ่มเติม](https://airflow.apache.org/docs/apache-airflow/stable/rest-api-ref.html)

#มาทดลองใช้กัน
####สิ่งที่ต้องมี
+ Postman

####เปิดใช้งาน Authenticate 
แก้ไข auth_backend ใน `airflow.cfg`
```
[api]
auth_backend = airflow.api.auth.backend.basic_auth
```

เราจำเป็นจะต้องเปิดการใช้ Authen ไม่งั้น API v1 จะปฏิเสธการร้องขอ [(PermissionDenied)](https://airflow.apache.org/docs/apache-airflow/2.0.1/stable-rest-api-ref.html#section/Errors/PermissionDenied) อย่าลืม restart ด้วย 

####ระบุ URL ลงใน Postman
ในกรณีที่ URL ของเราเป็น Localhost ในการ Trigger จะใช้ `HTTP Methods:POST`
```
http://localhost:8080/api/v1/dags/{DAG_ID}/dagRuns
```
![Screenshot (478)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4qv8eywghh0lzj9tefve.png)

####กำหนด Authorization
ระบุ Type เป็น Basic Auth และ Username/Password ต้องถูกสร้างอยู่ใน airflow
![Screenshot (479)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2gsdgpabqu7utx15l03x.png)

####กำหนด Headers
`KEY: Content-Type VALUE: application/json`
![Screenshot (480)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8g38hhxeygxe9fbrrnqa.png)
 
####กำหนด Body
ระบุเป็น raw ประเภท JSON ใส่ค่า `{}`
![Screenshot (481)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s09yzxnguctu1cvmu2ka.png)

####Response
ถ้าไม่มีการทำงานที่ผิดพลาดได้จะรับ Response 
```JSON
{
    "conf": {},
    "dag_id": "covid19_daily",
    "dag_run_id": "manual__2021-02-25T10:04:41.703172+00:00",
    "end_date": null,
    "execution_date": "2021-02-25T10:04:41.703172+00:00",
    "external_trigger": true,
    "start_date": "2021-02-25T10:04:41.708731+00:00",
    "state": "running"
}
```
เรากลับไปเช็คที่หน้า Web UI ก็จะพบว่า DAG ของเรารันแล้ว เป็นการทำงานแบบ manual
![Screenshot (483)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lntemlad2d0z8zf03ckr.png)

ภายใน web ของ Airflow ก็จะมีคำอธิบาย วิธีการใช้งาน api ต่างๆให้ดู![Screenshot (484)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lo1kw8i1yyq6sfo2rf72.png)

ดูการใช้งาน Airflow REST API เพิ่มเติมได้ที่
* https://airflow.apache.org/docs/apache-airflow/2.0.1/stable-rest-api-ref.html#section/Overview
How to install HELM Version (above 3) in Linux..
Published: 2021-02-25 10:11:35

For Helm installation in Linux, you can proceed further.


📌Go to this Link--> https://github.com/helm/helm/releases
Now copy this link, as shown in the below image.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yhricrgm0vlgiv8zusjh.png)



📌Now run the below command to download the software.
$ wget https://get.helm.sh/helm-v3.5.2-linux-amd64.tar.gz
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/54m119tn3ai7s5l4vdcf.png)


Software is installed but it is in a zip format.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vlqwgljyuvxkb3c9kwou.png)



📌So you need to unzip this file "helm-v3.5.2-linux-amd64.tar.gz"
Now, run the command to unzip.
$ tar -xvzf helm-v3.5.2-linux-amd64.tar.gz
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/byuxzpktr1ixxh9bkyif.png)


📌In Linux, all program files needed to be stored in "/usr/bin/" folder. 
Copy this program file("linux-amd64/helm") into this folder("/usr/bin/").
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nfgfklu4gr28ozhr7yaq.png)



📌Run the command to copy.
$ cp   linux-amd64/helm   /usr/bin/
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2c06fo9tf4640qocfiz6.png)



📌Now you can check, whether it is installed or not.
$ helm version
if version shows, it means it is successfully installed.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2sy30idrar53oakxzire.png)
Writing code to write code
Published: 2021-02-25 10:01:32

# Disclaimer
Starting off, I'd like to explicitly say that this is not an article about teaching machines to write code or machines making machines.

**This is not robotception, this is your only warning**

*anyways, just thought I'd get that out of the way*

# Writing code to write code
I have found a trend forming in my day to day life. I like proficiency and challenges, as should anyone who strives to be/do better. I have been writing sometimes fun, sometimes plain projects that engage me. Something like writing [Krist Console](https://github.com/fishermedders/KristConsole) in an evening, using [blessed](https://github.com/chjj/blessed) and [blessed-contrib](https://github.com/yaronn/blessed-contrib) to do so. I enjoy finding cool things other people have written and making fun things with them.

![KristConsole](https://camo.githubusercontent.com/3b9e057b61f6b9af8eb7d301a52b79eacb5c9700c05f8c879b3da57ca2758eb3/68747470733a2f2f692e696d6775722e636f6d2f644c616544726e2e706e67)

# Shameful thoughts
Before a week ago, I had zero experience with websockets. For such a (seemingly more and more integral) part of the internet, I had not so much as touched it. But then I did. For fun. Novel idea, I know. The point is, I did it just to do it, learn it, and add it to my arsenal.

# Writing blogs to write blogs
Is this blog-ception? Does anyone even read these? I don't know, but frankly I don't care. Similar to my *Writing code to write code*, I write to enjoy the ride and the keyboard clacks, among other things.

# Conclusion
Get out there, do something you've never done. Write some code, learn something new, and arm yourself with one of the most, if not the most valuable weapon - knowledge.
RSpec-flaky: gem to deal with flaky test
Tags: ruby, rails, rspec
Published: 2021-02-25 09:50:32

The most common reason for test flakiness is randomized factories which fill a database before test execution. [This small gem](https://github.com/RND-SOFT/rspec-flaky) is designed to help you find out what exactly attribute values were assigned to an investigated model during a failed and passed execution. 

Article about gem: [https://blog.rnds.pro/006-rspecflaky](https://blog.rnds.pro/006-rspecflaky?utm_source=devto&utm_medium=article) (in russian)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lh1w477u447mahbc1oob.png)
Easily deploy an SKS cluster on Exoscale with Terraform
Tags: kubernetes, devops, terraform, showdev
Published: 2021-02-25 09:26:01


Following the [recent announcement of Exoscale's managed Kubernetes service](https://www.exoscale.com/syslog/introducing-scalable-kubernetes-service/), we gave it a test run to deploy our standard stack of tools. As usual, we wanted to do it "as Code", so we chose Terraform for the task.

Since the release of Exoscale's Terraform provider v0.22.0, it is now possible to create SKS clusters as code.

To deploy a cluster you'll need to create all these resources:
- An `exoscale_sks_cluster`,
- One or more `exoscale_sks_nodepools`,
- An `exoscale_affinity` per node pool to ensure that all nodes in a pools are in the same anti-affinity group in case of outage in an hypervisor,
- An `exoscale_security_group` for your node pools,
- An `exoscale_security_group_rule` to allow Calico traffic behind your nodes,
- An `exoscale_security_group_rule` to allow `nodePorts` access from everywhere,
- An `exoscale_security_group_rule` to allow access to logs and exec.

To ease the deployment of all these resources, we decided to write a [Terraform module](https://registry.terraform.io/providers/exoscale/exoscale/latest) that we published [on the Terraform registry](https://registry.terraform.io/modules/camptocamp/sks/exoscale/latest).

In order to use it, simply copy this HCL code:

```hcl
module "sks" {
  source  = "camptocamp/sks/exoscale"
  version = "0.3.1"

  name = "test"
  zone = "de-fra-1"

  nodepools = {
    "router" = {
      instance_type = "medium"
      size          = 2
    },
    "compute" = {
      instance_type = "small"
      size          = 3
    },
  }
}

output "kubeconfig" {
  value     = module.sks.kubeconfig
  sensitive = true
}
```

Export your API keys:

```shell
$ export EXOSCALE_API_KEY=...
$ export EXOSCALE_API_SECRET=...
```

Then run:

```shell
$ terraform apply
```

This will deploy an SKS cluster with 2 nodepools (one that we'll dedicate for our Ingress Controller and one to host our applications), one anti-affinity group per nodepool and a security group with proper rules so that everything runs properly (you'll still have to open access to http and https ports if needed).

You can retrieve the kubeconfig for the kube-admin user using this command:

```shell
$ terraform output -json kubeconfig | jq -r . > ~/.kube/config
```

<small>NOTE: make sure to not overwrite a previous cluster configuration or prefer working with environment variables with `KUBECONFIG=~/path/to/sks-config`</small>


You should then be able to connect to the cluster:

```shell
$ kubectl get pods --all-namespaces
```

And voilà.
How Consultation Helps Your Business Growth
Tags: odoo, opensource, news, consulting
Published: 2021-02-25 09:23:51

In the current pandemic environment, it's important that companies find ways to face out, tighten their operations, and increase their revenues while keeping expenses low. As many businesses struggle to remain before the competition, the day-to-day operations of the business are quite enough to stay management busy, especially in smaller businesses where owners or managers wear many hats. Choosing to use an experienced consultant may allow businesses the power to grow, instead of simply attempting to take care of the established order. 


So, who are consultants? Business consultants can range from certified public accountants (CPAs), attorneys who are skilled in business law, or consulting firms who offer services that apply to a bigger range of business-related activities like management, sales, or marketing. The amount one benefit that consultants offer to businesses is that they will provide temporary expertise. 


Hiring a consultant allows firms the power to pay just for the services they have, instead of investing in pricey technologies or paying economic to stay staff available which will not always be needed. additionally, hiring a consultant enables cost benefits related to a scarcity of taxes, the necessity to pay benefits, or human resources issues that are related to hiring a replacement full-time employee.

Read more > [https://www.techultrasolutions.com/blog/our-blog-1/how-consultation-helps-your-business-growth-13](https://www.techultrasolutions.com/blog/our-blog-1/how-consultation-helps-your-business-growth-13)
Tutorial Project Android  untuk Portofolio dalam Bahasa Indonesia
Tags: tutorial, android, portfolio, programming
Published: 2021-02-25 09:17:36

Halo semuanya! Disini saya mau membagikan beberapa tutorial project Android yang bisa kalian gunakan untuk membangun portofolio menggunakan Bahasa Indonesia yang telah dikontribusi oleh [Adithya Firmansyah Putra](https://kotakode.com/users/527/adithya-13), penulis Blog di [KOTAKODE](https://kotakode.com)

Check it out guys.


###Aplikasi To Do List###
[Part 1 - Prepare](https://kotakode.com/blogs/3877/ToDoList-App---Part-1-(Prepare))
[Part 2 - Layout](https://kotakode.com/blogs/3882/ToDoList-App---Part-2-(Layout))
[Part 3 - Database](https://kotakode.com/blogs/3901/ToDoList-App---Part-3-(Database))
[Part 4 - ViewModel](https://kotakode.com/blogs/3902/ToDoList-App---Part-4-(ViewModel))
[Part 5 - CRUD](https://kotakode.com/blogs/3915/ToDoList-App---Part-5-(CRUD))

###Aplikasi Countdown###
[Part 1 - Persiapan](https://kotakode.com/blogs/4265/Persiapan-Membuat-Countdown-App---Part-1)
[Part 2 - Start, Pause, Reset Timer](https://kotakode.com/blogs/4268/Start%2C-Pause%2C-Reset-Timer-Countdown-App---Part-2)
[Part 3 - TimePicker](https://kotakode.com/blogs/4271/TimePicker-pada-Countdown-App---Part-3)
[Part 4 - Menerapkan Dynamic Time](https://kotakode.com/blogs/4273/Menerapkan-Dynamic-Time-Countdown-App---Part-4)

###Weather App###
[Part 1 - Pengenalan API](https://kotakode.com/blogs/4686/Part-1---Pengenalan-API)
[Part 2 - Berbagai Macam HTTP Client pada Android](https://kotakode.com/blogs/4691/Part-2---Macam-macam-HTTP-Client-pada-Android)
[Part 3 - Membuat Layout Menarik](https://kotakode.com/blogs/5030/Part-3---Membuat-Layout-yang-Menarik-pada-Aplikasi-Android-(Weather-App))
[Part 4 - OpenWeatherMap API](https://kotakode.com/blogs/5058/Part-4---OpenWeatherMap-API-(Weather-App))
[Part 5 - Request API dengan Retrofit](https://kotakode.com/blogs/5119/Part-5---Request-API-dengan-Retrofit-(Weather-App))
[Part 6 - Menghubungkan Data dengan Layout](https://kotakode.com/blogs/5125/Part-6---Menghubungkan-Data-dengan-Layout-(Weather-App))
Swapping of two variables using function & without. function in JS but  without creating third variable. 
Tags: javascript
Published: 2021-02-25 09:11:33

As we all know to swap two variables we choose to create third variable and then we swap their values like let me show you with example :
   var x = 1;
   var y = 2;
    temp = x; 
and then we go further , now here we'll be showing you different methods to swap variables in javascript without making use of third variable.

```
function swap(value) {
    value.first = value.first + value.second;
    value.second = value.first - value.second;
    value.first = value.first - value.second; 
}
// declared an object named value which has two keys - first and second corresponding to the first and the second values respectively

var value = {
    first: 1,
    second: 2
}

console.log(value.first, value.second) //Prints 1 2
swap(value);
console.log(value.first, value.second); //Prints 2 1

```
------------------------------------------------
#Second Way by creating function again

```
function swap(x, y) {
  return [y, x]
}
var x=1, y=2;
console.log(x+" "+y);

[x, y] = swap(x, y);
console.log(x+" "+y)
```
-------------

Both ways you get the same result

----------------
#Without Creating function
```
var x = 1, y = 2;
console.log(x , y)
x = x + y;
y = x - y;
x = x - y;
console.log (x+" "+y); // 2 1
```
#Array destructuring method
```
var x=1; y=2;
console.log(x,"",y);
[x ,y] = [y ,x];
console.log(x,"",y)
```
-----------
This method will also result you the same result

------------------------------------------------------------
#If you want to return in array format
```
var x=1; y=2;
console.log(x,"",y) // 1 2
function swap()
{
  var t = x;
  x = y;
  y = t;
  return [x , y]
} 
console.log(swap(x+"  "+y)); //[2 1]

```

#Using bitwise xor operator:
```
let x = 1, y = 2;
x = x ^ y;
y = x ^ y;
x = x ^ y;
    
console.log(x ,y);
```
Docker tutorial | What is Docker | What is container | How Docker works
Tags: docker, devops
Published: 2021-02-25 08:54:16

In this Docker tutorial series you will learn how to work with Docker. You will learn basic as well as advanced topics about containers and Docker. You will know how to containerize your apps, deploy them to production and troubleshoot your containers.

I've just uploaded the third episode where you can learn basic and advanced aspects of containers and Docker.
I show you what are the benefits of containers. Then, I talk about the main container's components and terms. After that, I dig inside a container image and a container itself. And at the end, I describe how Docker is architected and how it works.

Please check it out and subscribe to my channel to be notified when my new videos will be released.

Thank you in advance.

Link to video: [https://youtu.be/GSw9OHOloOY](https://youtu.be/GSw9OHOloOY)

Link to my personal blog: [https://www.anmalkov.com](https://www.anmalkov.com)

Link to my playlist: [Docker tutorial - Learn Docker FAST by doing](https://www.youtube.com/playlist?list=PLDoQ6gLAki7ddD9XY1quViqfD45X8AUIF)
Send button failure accomplishing Cash App payment pending? Contact client care.
Tags: cashapppaymentpending
Published: 2021-02-25 08:45:52

in the off chance that there's a glitch in the send button that is causing Cash App payment pending, by then the most ideal approach to manage regulate direct deal with the issue is to utilize the diagrams that are open in the particular assistance districts or you can call the help pack utilizing the helpline number and address the rep.
https://www.notion.so/Quick-Note-5128113f0a9a4b4183cd2ba187bb08c1?p=eff8734d1afb497bb4f42d721da99cd0&showMoveTo=true
Get to contact Cash App support
Tags: cashappaccountissues
Published: 2021-02-25 08:39:31

Are you want to get help with your cash app account issues, then anytime can sign in to contact Cash App support. After sign in, users can view transaction history, bitcoin, and manage the account. If you want customer support over the phone then can also get this, just dial the number and connect with experienced representatives.
https://www.notion.so/Get-to-contact-Cash-App-support-fa8215f78dd94b22818f1227d977afc3