teleren/devto huggingface dataset:
Connect Server Using Terminal & SSH
Tags: terminal, cloud, bash, aws
Published: 2022-12-04 18:30:00

> '' This article is published using [Lamento](https://www.lamento.in/)🍋

Using terminal we are going to establish a remote connection to a Remote Server like (Droplet, E2C or any cloud vm).

If you are using Linux or Mac you are good to go but in windows you should download [git-bash](https://git-scm.com/downloads).


1) Now to generate your SSH key type his commends in your terminal.

> It's better to generate SSH keys inside `.ssh` folder

```

ssh-keygen

```


2) Now name your key 

> you can name your key what ever suits for you


3) Don't need any passphrase


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2bkj9yziwhzgtacy3sc.png)


We have generated two files public key & private key


* public key - Used by the Server

* private key - Used by the Client


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jmip551o73ao1czyzit6.png)


4) Open the public key files

```

cat ur-key-name.pub

```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1tw5fu64xlv7f2wb7ghh.png)


We need to provide our public key to the remote server by opening it in terminal and copy the phrase.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uojbbrd0w4tls4mzclkr.png)


5) To establish connection between client with server 

```

ssh -i ./droplet-ssh-key root@157.245.104.56

```


> Abbreviation: ssh -i keyfile target_machineusername@host

> [What's the meaning of -i in ssh?](https://askubuntu.com/questions/817626/whats-the-meaning-of-i-in-ssh)


By providing the private keyfile and our server username and ip address we are opening a connection between client and server


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fcmctr7uu2d9r5zuiqk6.png)



If you see the above message we have successfully connected our client with the server


## Bonus

You can check your system specification with this commends


```

free -h


df -h


lscpu

```


To terminate the session enter ``exit`` in terminal.
How'd we access our Api
Tags: javascript, beginners, tutorial
Published: 2022-12-04 18:27:14

## ****
Honestly speaking, Javascript has to be one of the most widely known coding languages out there. It's a common jumping point from learning HTML and CSS. Starting my journey through Flatiron with Javascript, I was nervous at first since it had been a very long time since I had dealt with any type of code, about 2 years  

## **Project #1**
Okay let's get into the main topic of this blog, my first major Javascript project.

Welcome to 'Who's Funnier' 

You might be wondering where we got our jokes from. I accessed these jokes from an api using this line of code 

```
//Code for our api. function we will be using with fetch to get information from api
const BASE_URL = "https://v2.jokeapi.dev/joke/Any?amount=2"
```
and to retrieve the resources from our api we use fetch

```
//Code for our 'Start Now' button. Asynchronously fetches jokes from our api through use of a promise.
startButton.addEventListener('click', async () => {
//If we're able to retrieve our jokes from api, present them in json.
    const data = await fetch(BASE_URL)
        .then((response) => response.json())
//If not then report an error message in our console
        .catch((error) => console.error(error))
```
Now three key words we have here are fetch, async, and await. When it comes to making network in web applications, Fetch is our goto. In our code, fetch sends out a request from our joke api to use their information and returns a response from the api to our request. Should there ever be a problem with connecting with our api, we'd receive an error message within our console Next comes our async function. The process behind it is simple, it allows us to run our program without it being blocked. Finally, await is a function that can be run in an async function. Essentially it has our code wait till the promise of our request is fulfilled. Together, all of these allow us to access information from our api's to utilize them in our further code.
WHO CAN GET THE GLOBAL TALENT VISA IN 2022?
Tags: news, relocation, programmers, webdev
Published: 2022-12-04 18:26:19

[Global Talent](https://immigram.io/gtv) is a unique type of visa that makes it possible for digital tech talents to reside, work and run their own business in the United Kingdom without any restrictions or an offer from a British employer. To obtain this type of visa, a candidate doesn’t need to provide a diploma of higher education nor a language certificate. 

Tech Nation – the official Home Office endorsing body – is trusted to assess applications from digital tech professionals and endorse candidates. A candidate has to meet three of Tech Nation’s criteria:
- one mandatory
- two out of four optional

**Mandatory:** 
- Recognition of the applicant as a (potential) leader in the IT industry

**Two optional criteria from the following list:** 
- Significant contribution to the industry
- Innovation 
- Recognition for the work outside of immediate occupation
- Academic contribution

Tech Nation accepts applications from software engineers, founders, investors, UX/UI designers and other candidates working for a product-led digital company in any IT sector. All professionals can be divided into two groups depending on their specialisation — technical and non-technical (business).
 
Below are examples of those technical and business specialists eligible for the Global Talent Visa in digital technology.
  
**EXAMPLES OF TECHNICAL OCCUPATIONS:**
- СTO
- DevOps and SysOps engineer
- Software engineer / software developer
- Data scientist
- AI, NLP, ML expert
- Cyber security expert
- Hardware engineer
- Front-end / back-end developer
- OS engineer
- Video game developer
- UX / UI / Product designer
- Mobile application developer
- VR developer
- Solutions architect
 
**EXAMPLES OF BUSINESS OCCUPATIONS:**
- CEO and other C-level positions
- Сommercial / business lead
- VC investor / founder
- UX / UI researcher
- Project / product manager
- Senior VC / PE analysts (with track records of leading investments in digital businesses)
- SaaS or enterprise sales leadership (with a contribution to product development)
 
Technical candidates should demonstrate their relevant experience in the field of working with or creating the latest technologies, as well as using or operating digital products. Non-technical (business) candidates must prove their experience in creating digital products or investing in recognised product-led digital companies.

Did you find yourself among the above-mentioned specialists? Start your journey towards relocation to the UK by taking a [scoring test](https://immigram.typeform.com/scoring?utm_source=external&utm_medium=dev) on our website to assess your chances of becoming a Global Talent Visa holder. After that, our experts will provide feedback on your case and relocation opportunities. Immigram team creates personalised strategies and compelling stories highlighting professional experience and making your relocation case a success.

You can learn more information related to the Global Talent Visa and necessary documents on our website: [immigram.io](https://immigram.io/).
AdventJS, JavaScript/TypeScript coding challenges
Tags: javascript, typescript, adventjs, adventofcode
Published: 2022-12-04 18:13:46

AdventJS is a programming challenge website that offers a unique and challenging experience for code lovers. Inspired by the traditional advent calendar, AdventJS reveals a new [AdventJS](https://adventjs.dev/) is a **programming challenge website that offers a unique and challenging experience for code lovers**.

Inspired by the traditional advent calendar, [AdventJS](https://adventjs.dev/) reveals a new JavaScript or TypeScript programming challenge every day from December 1st to 24th.

![The platform has an integrated editor and tests](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dxt8sz895pumfwwtcdjy.png)

**Each AdventJS challenge is scored based on its complexity**, best practices, and maintainability. This way, you can track your progress and compete against other programmers to see who gets the highest score on each challenge.

**AdventJS is available in English and Spanish** and it’s completely free to use. Plus, you can share your solutions with the community and see how others have tackled the challenges.

Don’t miss out on this unique opportunity to improve your JavaScript and TypeScript skills and have a blast doing it.

Visit https://adventjs.dev and start your journey towards programming excellence. I
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yqj72oizwx0uj1s193i3.png)’ll see you there!
🎄JS Advent #4 - call() and apply() 🎄
Tags: javascript, beginners, webdev, programming
Published: 2022-12-04 18:00:31

#### For the month of December I have challenged myself to write 24 articles about JS up until Xmas.
#### The fourth installment in this series is about `call()` and `apply()`.

### The call() function
- The `call` method calls a function. It takes a `this` value as its first parameter and then optional arguments as a list for each parameters of that function.

Example: 
```javascript
//globalThis
x = 2; y = 3;

const obj = {
    x: 10;
    y: 20;
}

function add () {
    return this.x + this.y;
}

console.log(add.call(obj)); // 30

// 5 - globalThis is used (However in strict mode globalThis is not substituted so it would return NaN)
console.log(add.call());
```

- Passing parameters as a list:
```javascript
// globalThis
x = 2; y = 3;

const obj = {
    x: 10;
    y: 20;
}

function add (a, b) {
    return this.x + this.y + a + b;
}


console.log(add.call(obj, 20, 30)); // 80

// 55 - as null or undefined is converted to the globalThis object in non strict mode
console.log(add.call(null, 20, 30)); 
```

## The apply() function
- The `apply` method operates almost exactly the same as the `call` method except that it takes an array of parameters instead of as a list.

Example:
```javascript
// globalThis
x = 2; x = 3;

const obj = {
    a: 10;
    b: 20;
}

function add (a, b) {
    return x + y + this.a + this.b;
}


console.log(add.apply(obj, [20, 30])); // 80
console.log(add.apply(null, [20, 30])); // 55
```
[< JS Advent 3 - Object.hasOwnProperty()](https://dev.to/jtlavs/js-advent-3-objecthasownproperty-4l0c)
The Third Way
Published: 2022-12-04 17:51:31

---
title: The Third Way
published: true
description: 
tags: 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ae49u2fm2xbouu5j39wj.png
canonical_url: 'https://kevwe.com/weekly/202249'
# Use a ratio of 100:42 for best results.
# published_at: 2022-12-04 17:49 +0000
---
Between delegating everything to a random Cloud provider and managing your entire physical infrastructure in-house, there is a wide middle ground where you can fine-tune how much control you are willing to give out, and how much is instead needed on your part.

This kind of tuning is no longer possible if you give up on the competences, in the ability to understand what is going on.

Giving up on everything means we are headed for new Middle Ages: Digital Middle Ages.

For the Weekly links: https://kevwe.com/weekly/202249
Discord python bot.py
Tags: programming, python
Published: 2022-12-04 17:36:03

import os
import discord

TOKEN = os.getenv('DISCORD_TOKEN')

client = discord.Client()

@client.event
async def on_ready():
    print(f'Logged in as {client.user}')

@client.event
async def on_message(message):
    if message.author == client.user:
        return

    if message.content == 'Hello':
        await message.channel.send('Hello fellow humans!')

client.run(TOKEN)
Algorithm organize
Tags: algorithms, beginners, tutorial
Published: 2022-12-04 17:00:43

## Sort
[Selection Sort](https://dev.to/scantykneesocks/selection-sortsabib-jeongryeol-3ac3)
[Insertion Sort](https://dev.to/scantykneesocks/insertion-sortsabibjeongryeol-41me)
[Bubble Sort](https://dev.to/scantykneesocks/bubble-sortbeobeuljeongryeol-2gdo)
[Quick Sort](https://dev.to/scantykneesocks/quick-sortkwig-jeongryeol-4i2c)
[Counting Sort](https://dev.to/scantykneesocks/counting-sortgyesu-jeongryeol-658)
Best Free Email Marketing Tool for Developers
Tags: webdev, productivity, beginners
Published: 2022-12-04 16:37:47

## 1. [Sendinblue](https://www.sendinblue.com/?tap_a=30591-fb13f0&tap_s=1546108-984846)

![Sendinblue](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2std59mu23ipxnh3diaq.jpg)

Sendinblue is the best tool for developers because Sendinblue offers 100% free api access to beginner with unlimited contacts and many more features in a free plan. 

Features available in the free plan:

* Unlimited Contact
* Free API Access
* Up to 300 emails per day
* Access all basic features (some premium also)
* Free plan valid for the lifetime

**[Sign up](https://www.sendinblue.com/?tap_a=30591-fb13f0&tap_s=1546108-984846) now for free to get started with Sendinblue.**

## 2. [Aweber](https://www.aweber.com/easy-email.htm?id=536370)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i6hcwqui6rqic1bhcleo.png)

AWeber is a top email marketing service that offers excellent tools for advanced campaigns. With pre-designed reports and automated solutions, AWeber can transform the way you market your business and help you engage with your audience in one single platform.

Features available in the free plan:

* Up to 500 subscribers
* Email list
* Landing page
* Email automation
* Basic email support
* Basic templates

**[Sign up](https://www.aweber.com/easy-email.htm?id=536370) now for free to get started with Aweber.**

## 3. [Moosend](https://trymoo.moosend.com/free-trial3271)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w5bwkki8u357pftczrov.png)

Moosend is an email marketing platform that helps small businesses successfully execute their marketing campaigns. Moosend’s automation workflows are more robust than many of its similarly-priced competitors. However, customer support in their free plan is only available five days a week, and does not include phone or priority support. Also, its third-party integrations and pre-designed templates are limited.

Features available in the free trial:

* Unlimited Emails
* Automation Workflows
* 1x Landing Page / 1x Form

**[Sign up](https://trymoo.moosend.com/free-trial3271) now for free to get started with Moosend.**

## 4. [GetResponse](https://www.getresponse.com?a=Te7fx9PaXq)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/044dndw2hm221k88gn7m.png)

GetResponse is a sales and marketing platform that empowers businesses to grow by engaging online audiences everywhere through tools like landing pages, pop-ups, forms, funnels, and marketing automation.

Features available in the free plan:

* Unlimited newsletters
* 1 landing page
* Website Builder
* Connect your domain
* Signup forms and popups

**[Sign up](https://trymoo.moosend.com/free-trial3271) now for free to get started with GetResponse.**

---

This post includes affiliate links; I may receive compensation if you purchase products or services from the links provided in this article.
Solving day 04 of Advent of Code 2022 in JavaScript
Tags: challenge, adventofcode, javascript, video
Published: 2022-12-04 16:29:47

---
title: Solving day 04 of Advent of Code 2022 in JavaScript
published: true
description: JavaScript walkthrough of Advent of Code 2022 (day 04)
tags: challenge, AdventOfCode, javascript, video
series: Advent of Code 2022 in Javascript
---

{% youtube qOun1vcMV9w %}
Modern UI ressources built on top of Tailwindcss
Tags: webdev, tailwindcss, programming
Published: 2022-12-04 16:22:46

Yesterday we released Tailus v2, and it's a set of Easy to customize UI Blocks, VS Code Snippets, and complete and modern Templates that are easy to customize and support light and dark mode, built on top of tailwindcss. 

A few developers have tested these resources and given us great feedback (which you can find on our homepage). That's why I wanted to share this with you. 

## 50+ Blocks

As an existing ressource, we brought major changes to our blocks : 

- Complete redesign to make them look modern and fit with others.

- Support for dark and light mode

![tailus blocks](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sndlvs86z36xp3y7t813.png)


## VS Code Snippets

To make your life even easier, we built a VS Code extension that allows you to use some of our components in your html file without copying them from the browser. 

After installing the extension, all that you have to do is to type in your html :`tailus-`"name of component", ex : `tailus-card` and see a list of modern cards snippets that you can use.

[Install now](https://marketplace.visualstudio.com/items?itemName=TailusUI.tailus-snippets)


![tailus snippets extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q6k1ui7m9pezr2pw241m.jpg)


## Modern templates

That's not all as we have also designed two modern templates, one of which is complete with 13 pages (light and dark mode) to allow you to create an out of the box website for an innovative Sass or business.

**Some screenshots** :

![tailus ampire solution hero section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pr8211tat1y1xsj5djlh.png)

![tailus ampire mission section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/arvwhokuccf6r0w8immz.png)

![tailus ampire blog](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/37b9my685x3kpf4hck4j.png)


![tailus ampire customers](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/azzwr0zec5anwm1cia32.png)


![tailus ampire testimonials](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/59tjhm381kuqpg139zum.png)

![tailus ampire home hero section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8f9eaqlkfeuf1sy11hy6.png)


![tailus ampire contact page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0wy1s49oq9006hiknt5e.png)

![tailus ampire pricing plans comparator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/px5pqsuy225lyq0gkvcp.png)

![tailus ampire about hero section](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b4ic8pd9rjwmj95kvf5e.png)

And more...


## What's next ?

I wrote this article to let you discover these ressources that you can use in your next tailwindcss project to make your ideas stand out.

Let me know what you think about all of the above, in the comments.

**Find everything here**

[Blocks](https://tailus.io/blocks)
[Snippets](https://marketplace.visualstudio.com/items?itemName=TailusUI.tailus-snippets)
[Templates](https://tailus.gumroad.com)

[More on our website](https://tailus.io)
Laptop randomly dead? Try this.
Tags: tutorial
Published: 2022-12-04 16:12:09

## Intro
Ever take your laptop out of your backpack and find it's warm, and the battery is drained? Me too.

[LTT did a great video covering why this happens. Go and watch that.](https://youtu.be/OHKKcd3sx2c)

If you don't care and just want a solution, continue reading

## Check to see if your laptop supports S3 standby

Start by opening command prompt and running `powercfg /a`

![](https://media.discordapp.net/attachments/563169890480029696/1048993193510834276/image.png)

If the output of this command doesn't say `The system firmware does not support this standby state` underneath `Standby (S3)`, you are good to continue to the next step.

## Fixing the problem

Start by opening command prompt as an administrator:
![](https://cdn.discordapp.com/attachments/563169890480029696/1048993320581476473/image.png)

Run `reg add HKLM\System\CurrentControlSet\Control\Power /v PlatformAoAcOverride /t REG_DWORD /d 0`
```diff
- DO NOT DO THIS IF powercfg /a SAYS YOUR LAPTOP DOESN'T SUPPORT S3 STANDBY
```
قالب ایمپرزا چند منظوره
Published: 2022-12-04 16:09:41

[قالب ایمپرزا](https://themeoff.ir/item/impreza/) با پشتیبانی کامل از رتینا که یکی از مدرن ترین و محبوب ترین حالت های ساخت قالب می باشد همراه است. قالب وردپرس ایمپرزا برای هر نوع سایتی ازجمله شرکتی، تجاری، فروشگاهی، سایت شخصی و نمونه کار، سایت خبری و در هر زمینه کاری که نیاز داشته باشید کاربرد دارد. قالب Impreza با ووکامرس سازگاری کامل داشته و شما می توانید درکنار سایت خود از یک فروشگاه عالی و با امکانات بی نظیر استفاده کنید، همچنین قالب Impreza به صورت کامل از افزونه صفحه ساز گرافیکی ویژال کامپوزر به خوبی پشتیبانی میکند. قالب وردپرس Impreza دارای ویژگی ریسپانسیو و واکنش گرایی است که باعث سازگاری قالب شما با انواع نسخه های نمایش مانند تبلت و موبایل ها می باشد. پنل تنظیمات حرفه ای قالب ایمپرزا کاملا قدرتمند است که به واسطه ی آن میتوانید تغییرات بسیار زیادی در سایت خود اعمال کنید و یک سایت حرفه ای و مدرن با این قالب طراحی کنید.
قالب وودمارت بهترین قالب فروشگاهی
Published: 2022-12-04 16:06:15

[قالب وودمارت](https://themeoff.ir/item/woodmart/) را به جرأت می توان یکی از برترین قالب های فروشگاهی در تاریخ ووکامرس معرفی کرد. این فقط یک ادعا نیست! جز به جز عناصر این قالب با حوصله و ظرافت و با بهترین عملکرد طراحی شده. جستجوی ایجکس فوق العاده سریع و زیبا، انواع سربرگ، چندین نحوه نمایش محصولات، نمای ۳۶۰ درجه محصول، ایجکس بودن تمام فیلترها و دسته بندی ها، پیشخوان حساب کاربری اختصاصی، مگامنوی قابل ویرایش با ویژوال کامپوزر، فوتر بسیار منعطف، نمایش منوی موبایل فوق حرفه ای و کاربر پسند و هماهنگی با افزونه چند فروشندگی دکان و… را می توان از جمله ویژگی های اصلی این قالب برشمرد.قالب Woodmart توسط کمپانی حرفه ای و قوی Xtemos ساخته و طراحی شده است. شرکت Xtemos که فعالیت خود را در سایت معتبر و معروف تم فارست آغاز کرده است ، با داشتن تعداد دو محصول توانسته است فروش خود را در مدت زمان کوتاهی به بیش از ۹۰۰۰ هزار فروش و رضایت صد در صدی کاربران برساند