teleren/devto huggingface dataset:
Adding CarPlay to a SwiftUI Life Cycle App
Tags: swift, ios, carplay
Published: 2021-09-10 09:56:31

---
title: Adding CarPlay to a SwiftUI Life Cycle App
published: true
description: Cross-Post from NitricWare.com about adding CarPlay to a SwiftUI Life Cycle App.
tags: swift,ios,carplay
//cover_image: https://direct_url_to_image.jpg
---
*This is a crosspost from [nitricware.com](https://www.nitricware.com/blogpost.php?id=1631267488)*

Apple makes it really easy for any developer with a Mac to create basic iOS apps. However, more complex topics sometimes require the developer to do lots of research. This is a blog post about adding a CarPlay Delegate to a SwiftUI Life Cycle App.

Currently, apps for iOS can either have the AppDelegate Life Cycle or the SwiftUI Life Cycle. While the latter poses many restrictions upon the developer, working with it is very smooth for the most part and - as you will soon see - very versatile.

## Info.plist

Searching for tutorials about adding a CarPlay Delegate to an app leads to many results for AppDelegate based apps. A simple addition to `Info.plist` allows adding CarPlay to your SwiftUI life cycle app.

```xml
<key>UIApplicationSceneManifest</key>
	<dict>
		<key>UIApplicationSupportsMultipleScenes</key>
		<true/>
		<key>UISceneConfigurations</key>
		<dict>
			<key>CPTemplateApplicationSceneSessionRoleApplication</key>
			<array>
				<dict>
					<key>UISceneDelegateClassName</key>
					<string>YourAppName.CarPlaySceneDelegateName</string>
				</dict>
			</array>
		</dict>
	</dict>
```

By pointing to `YourAppName.CarPlaySceneDelegateName`, CarPlay knows what to do.

## CarPlaySceneDelegate

Of course, you actually need a class called `CarPlaySceneDelegateName`. It must look like this:

```swift
protocol CarPlaySceneDelegateName: UIResponder, CPTemplateApplicationSceneDelegate {
    var interfaceController: CPInterfaceController? { get set }
    func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController) -> Void
    func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didDisconnect interfaceController: CPInterfaceController) -> Void
}
```
What do you expect from a Coding Community?
Tags: community, javascript, frontend, learning
Published: 2021-09-10 09:21:49

*(check out [my blog](https://raffaelepizzari.com/))*

Hello everyone! 👋

This post is intended for developers and for those who want to be developers. It's very long, but we're not on Twitter, right? 😊

As you probably don't know I run a free learning community for #FrontEnd developers with a special focus on #JavaScript. 💻

It's called "[CodeJourneys](https://codejourneys.org)" , it has 400 members, was founded almost two years ago and is constantly evolving.

All events and workshops are always and will always be free.
Mentors and teachers work on a voluntary basis.

Lately the community has cooled down and not many learning sessions have taken place.
We had a lot of Kata-Challenges, Live Coding session, workshops, shared projects, talks about culture & dev life, etc. etc.

Now it's time to relaunch the community and the activities, that's why I need you for some brainstorming!

1. 💡 What do you expect from a free learning community for Front-End Developers?
2. 💡 Would you like to participate as a mentor? (give talk, host learning session / initiatives)
3. 💡 Would you like to join it? (join us: https://lnkd.in/dvadMBdZ)


I'm considering the following initiatives:

* Deep-dive learning sessions about a specific topic (every 2-3 weeks)
* Virtual Book club
* Weekly JS Kata Challenges + discussion group


Feel free to leave your feedback or any kind of idea/proposal.

Thank you very much for your time and support! 🙏

([thread on LinkedIn](https://www.linkedin.com/posts/raffaelepizzari_home-activity-6842017508078190592-i4g4))
How to create a new SSH key
Tags: ssh, key, ed25519
Published: 2021-09-10 09:19:51

As a software developer it is common to connect to various services via SSH. Be it a remote SQL database or Git or a web server, we mostly use SSH to connect to the server.

Password authentication is not up to date anymore and short SSH RSA keys do not provide the expected security.

Good that there is ed25519 :)

You can generate a key with the following command 
```
ssh-keygen -t ed25519 -C "mail@example.com"
```
You'll be asked where to save the key. The default location is `~/.ssh/id_ed25519.pub`

Then you can copy your public key to the server. To show it use following command

```
cat ~/.ssh/id_ed25519.pub
```
Magento Product Designer - To Sell Personalised Products
Tags: technology, development, productivity, magentoproductdesigner
Published: 2021-09-10 09:02:19

Do you have existing eCommerce store on Magento Platform and want to sell personalized products?

![Magento Product Design tool](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fts0epimrkcp63s4q0vw.png)

PrintCommerce Magento product designer by Design'N'Buy is a complete web-to-print solution to sell any personalized products, including but not limited to print products, photo products, fabric products like business cards, photo albums, banners and labels, corporate gifts, greeting cards, T-shirts, apparels, mugs, hats, and many more.

Your Magento website and PrintCommerce Magento design tool integrate smoothly to provide an exceptional user experience to your customers. On the back-end, your admin panel will give you quick access to run your business easily from mobile or from any device.

![Magento product configurator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rf2s9s38coeejvamlvo.jpg)

Features are:
1) Any/few products from your store can be personalized
2) Configure products option like sides, design area, mask & overlay, 3D preview
3) Manage and assign colour palettes and configure with assigned printing methods
4) Manage pre-decorated products and readymade design templates
Configure products, clipart, printable colours and fonts along with many other useful Settings
5) Configure product pricing parameters based on number of colours used in type and quantity of personalization 
6) Configure theme, localization and much more
7) Manage orders and download ready-to-print vector output files in PDF and CMYK

Product Link: https://www.designnbuy.com/printcommerce-magento-product-designer-software.html
bash 函数 return 1 是表示执行失败
Tags: shell
Published: 2021-09-10 08:44:46

```
#!/bin/bash

function check_k8s() {
    port_6443=`netstat -nlt | grep -w 6443 | wc -l`
    if  [ $port_6443 = 0 ]; then
      #不存在k8s
      return 0
    else
      #存在k8s
      return 1
    fi
}

function return0 (){
  return 0
}

function return1 (){
  return 1
}

if check_k8s; then
   echo 1
else
   echo 0
fi
```

在if 语句的条件中调用 return 非0的函数，执行失败分支
REACTIFIED: Learn ReactJS the simple way
Tags: beginners, javascript, webdev, react
Published: 2021-09-10 08:18:39

If you're a person who prefers reading over watching videos for learning new skills and technologies then this blog series is for you. In this **Reactified** blog series we'll be learning ReactJS from scratch to the advanced level.

If you're a beginner or an intermediate React Developer or learning ReactJS as your next skill then this series will surely gonna help you for that, clearing your concepts about ReactJS and it's Design Principles.

-----

Let's discuss what to expect

1. The Reactified Series is a ReactJS blog series which will cover all the concepts which you need to become a professional Reactjs Developer and an overall better ReactJS Developer.

2. The Blogposts in this series is divided topic-wise.

3. Each Blog will describe one topic, if the topic is too short then it'll contain two short topics at max.

4. I'll try by best to simplify the topics as much as I can in order to make it more engaging and comfortable for you.

------

With that being said, let's meet in the next blog of **Reactified: Learn ReactJS the simple way.**

### Note: 

In order to get notified whenever I post a new article for **Reactified** and follow along with the series follow me on twitter [@pawelsb](https://twitter.com/pawelsb) . I'll be sharing more useful resources about ReactJS as well as other resources which will help you become more productive, knowledgeable and an overall better developer. 

*THANKS FOR READING 😊 I APPRECIATE YOUR TIME✨*
Potabi Systems Development | ISSUE #4 - The Bootloader
Tags: issue, github, discuss
Published: 2021-09-10 07:56:47

![image](https://user-images.githubusercontent.com/62919224/132817330-f55a8f1f-4394-40bb-a2ad-e83c0046490c.png)
The image above represents an error I ran into while building Potabi on Sept-9, 2021. The build is currently supposed to be using the RE Base release [b_1.0a-base](https://github.com/Potabi/release/releases/tag/b_1.0a-base), the files of which are listed below.
![image](https://user-images.githubusercontent.com/62919224/132817692-b149a0ec-7c3b-4ee1-91ce-8cf036e2fc07.png)
For testing purposes, I grabbed the RE Base b_1.0a-base disc1.iso file, as listed in the release. I ran it in QEMU on my personal machine, where the difference in bases between here and on the FreeBSD virtual machine being used for builds should be non-existent. Since I am coming back into development a month after I last did anything, I cannot say with any certainty that this will provide anything useful, but on [The Potabi Foundation YouTube Channel](https://www.youtube.com/channel/UCwY7_A-PQM7CsdOERWni2NQ), I uploaded a [timelapse of this build](https://youtu.be/t9hLjUuWapQ) for fun, not even trying to use it to help debug anything. It shows no issue, as far as I can tell. 

Is this possibly an error with the base and kernel tarfiles themselves? Most probably, no. First, they were known to be working at some point in time at least. Second, the disc1.iso is uploaded to these base releases for these kinds of specific issues. If base or kernel are ever updated, so are all of the rest of the files at the same time, especially disc1.iso. 

Running disc1.iso in a virtual machine proves with near certainty that my builds with the base and kernel tarballs should absolutely not produce an error.
![image](https://user-images.githubusercontent.com/62919224/132818834-b8df21b7-44a9-4816-bce9-fb1513c63435.png)

Where may the issues be? Considering everything, I have located a couple possible locations for issues.
- The ISO creation step (most likely)
- The addition of software or rc.conf (least likely)

Figuring out what went wrong, where, and why, will be important.
38 Free Courses on Coursera for Data Science You Must Know
Tags: datascience, machinelearning, analytics, analyst
Published: 2021-09-10 07:42:21

**Coursera** is an **E-Learning platform** and has a wide range of **Free Data Science Courses**. That’s why in this article, I am going to share with you **38 Free Courses on Coursera for Data Science.**

For these courses, **You don’t need to pay a single buck**. So give your few minutes to this article and check out these Free Courses on Coursera for Data Science.

**Note- I have divided these courses based on the knowledge level- Beginner, Intermediate, and Advanced. You can find the course according to your knowledge level.**

Now without any further ado, let’s get started-

##**Free Courses on Coursera for Data Science**

For your convenience, I have created a table from where you can filter out the course according to **Rating, Time to Complete, and Provider.**

Let’s start with the Beginner Level Free Data Science Courses-
**[Click to continue reading...](https://www.mltut.com/free-courses-on-coursera-for-data-science/)**
My top 5 favorite newsletters to keep up with frontend development news
Tags: newsletter
Published: 2021-09-10 07:38:01

<!-- wp:paragraph -->
<p>It can be overwhelming to keep track of everything in the tech-universe - things changes so fast. And I have spent too much time on twitter, online newspapers and forums, scrolling my life away as I look for the things that are relevant for me and my developer journey. And then I realised I should let someone else do the scrolling. So I subscribed to a lot of newsletters  (and then unsubscribed to the ones that didn't quite give me what I wanted).</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>I usually just scan through the newsletters and save the links I want to read in <a href="https://getpocket.com/" target="_blank" rel="noreferrer noopener">pocket</a>. Then I try to block a 30min session in my calendar 2-3 times a week to actually read the things I save. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Here are the top 5 newsletters I subscribe to - and actually read. </p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><a href="https://www.stefanjudis.com/newsletter/" target="_blank" rel="noreferrer noopener" title="https://www.stefanjudis.com/newsletter/"><strong>Stephan's Web Weekly</strong></a><br>I love the mix of humor and usefull tips and tricks.<br></li><li><a href="https://javascriptweekly.com/" target="_blank" rel="noreferrer noopener" title="https://javascriptweekly.com/"><strong>JavaScript Weekly</strong></a><br>Nice collection of news, tips, tutorials, opinions and stories.<br></li><li><a href="https://frontendfoc.us/" target="_blank" rel="noreferrer noopener" title="https://frontendfoc.us/"><strong>Frontend focus</strong></a><br>Also a mix of news, tutorials, articles and stories. <br></li><li><a href="https://www.a11yproject.com/newsletter/" target="_blank" rel="noreferrer noopener" title="https://www.a11yproject.com/newsletter/"><strong>The A11y project newsletter</strong></a><br>As the name suggests this newsletter is related to news in the accessibility (a11y for short) space<br></li><li><a href="https://dev.to/" target="_blank" rel="noreferrer noopener" title="https://dev.to/"><strong>DEV Community Digest</strong></a><br>This is not really a news letter, but if you create a profile here on on <a href="https://dev.to" target="_blank" rel="noreferrer noopener" title="https://dev.to">dev.to</a> you will get regular emails with links to articles based on your interests. <br></li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>Do you know about any good newsletters I should check out? </p>
<!-- /wp:paragraph -->
6 Javascript Projects for Beginners
Tags: javascript, beginners, webdev
Published: 2021-09-10 07:33:54

## 1 - Weather App

🔗 [App Description](https://github.com/florinpop17/app-ideas/blob/master/Projects/1-Beginner/Weather-App.md)

{% codepen https://codepen.io/tutsplus/pen/gObLaEP %}

## 2- Pomodoro Clock
🔗 [App Description](https://github.com/florinpop17/app-ideas/blob/master/Projects/1-Beginner/Pomodoro-Clock.md)

🔗 [Demo](https://pomo.furkanozbek.com/)

![Pomodoro Clock](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l9pegaojoizxqnrpa8l4.png)
 

## 3 - Calculator

🔗 [App Description](https://github.com/florinpop17/app-ideas/blob/master/Projects/1-Beginner/Calculator-App.md)

{% codepen https://codepen.io/mjijackson/pen/xOzyGX %}

## 4 - Todo List

🔗 [App Description](https://github.com/florinpop17/app-ideas/blob/master/Projects/2-Intermediate/To-Do-App.md)
🔗 [Demo](https://todo.furkanozbek.com/)

![Todo App](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e3wuh18k1m1xemp52ruw.png)
 

## 5 - Password Generator

🔗 [App Description](https://github.com/florinpop17/app-ideas/blob/master/Projects/2-Intermediate/Password-Generator.md)
🔗 [Demo](https://afozbek-password-generator.netlify.app/)


![Password Generator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3mpla96c1e5oups8xpjm.png)
 

## 6 - Countdown App

🔗 [App Description](https://github.com/florinpop17/app-ideas/blob/master/Projects/1-Beginner/Countdown-Timer-App.md)

{% codepen https://codepen.io/karlo-stekovic/pen/OajKVK %}

## Links
- [Best JavaScript coding projects for beginners! 👨🏻‍💻](https://dev.to/pauld103/javascript-coding-projects-for-beginners-3fj0)

- [GitHub - florinpop17/app-ideas: A Collection of application ideas which can be used to improve your coding skills.](https://github.com/florinpop17/app-ideas)
What does CRUD stand for in programming
Tags: beginners, codenewbie, programming, database
Published: 2021-09-10 07:11:37


CRUD stands for **Create, Read, Update, and Delete**. CRUD is the basic operations of the database management system (DBMS), and is used when you want to create, view, edit, or remove the data inside the application's database.

Any organization and application software that needs to store information like user account information, shop items, payments, etc., will often keep them in a database. And to manage these databases, you will need CRUD operations to perform the functions of creating, updating, and removing the data.

A programmer can change these data through writing code, or a user through interacting with graphical user interfaces (GUI).

## How CRUD exactly works

To get an idea of how CRUD works, let's pretend that you are managing an e-commerce website.

### 1. Create

When you got a new product from the supplier and want to list it on your website, so your customers can see the product and buy it, you use the Create operation. The Create operation allows you to add new data to the database.

### 2. Read

When you are looking for a specific product and use the search bar to find the product, you are using the Read operation. The Read operation allows you to search and retrieve the data that you have created in the database. It won't modify the data or alter it in other ways - you can only read the data, and that's about it.

### 3. Update

When you spot a typo in one of the product names and want to edit it before the customer sees your mistake, you use the Update operation. The Update operation allows you to change the existing data that you have created in the database. You also use the update operation when you want to add more information to the product.

### 4. Delete

When you want to remove the product from your website because the manufacturer has stopped producing it, and it's no longer available in the market, you use the Delete operation. The Delete operation allows you to remove the data from the database that you don't need anymore.

## Why CRUD is important

The CRUD concept may be simple enough, but all the world's most popular applications follow the CRUD pattern when you think about it. Google, Windows Office, Facebook, PayPal, Amazon, Uber, and others used CRUD as a model to build the application. Without the CRUD operations, it will be impossible to make these applications.

CRUD is very important because it helps you think about how to design an application that relies on user's data. If you understand the CRUD concept and can create, view, modify and remove the data from the database, you can virtually create any application you can imagine.

Get my [free e-book](https://learn.coderslang.com/free-ebooks/) to prepare for the technical interview or start to [Learn Full-Stack JavaScript](https://js.coderslang.com)
What Technologies Required for e-commerce implementation
Tags: design, webdev
Published: 2021-09-10 06:59:13

Over the last decade, the internet has changed everything from our living standard to the way we conduct the business. Internet commerce or e-commerce is transforming buying and selling of goods and services. With the adoption of new technologies in e-commerce, it is slowly and gradually climbing to the high landscape in a reachable and efficient way. With the keen participation of key players like banks, technologies, and other players, more and more customers are joining the internet commerce destination. With international names like Amazon, Alibaba, customers are now starting trusting e-commerce like never-before. So, if you are planning to make a shift from a physical store to a digital one, you can hire the services of a reliable [e-commerce web development company] (https://www.multipz.com/) for a good start.

But before that you must learn here about some technologies that are required for your e-commerce website implementation. Further, we covered the writing in two parts: basic requirements and hotshot technologies to boost the e-commerce website.

Basics requirements to start an ecommerce store:

1. Domain name
Let’s start with the domain name. First of all, you need to register your domain name and it should be such that it tells about your business. An ideal domain is the one that is catchy, simple to spell, and easy to remember. For instance, you wish to start fresh flowers online business in Australia, your ideal name should be freshflowers.com.au instead of smellinggood.com.au. Users will not search smelling good instead they often search for the flowers, and with the right name, your chances of ranking get doubled. If you wish to target the global market, you need to register the name: .com.

2. Web hosting
Another requirement is the web hosting, and you need to select a host to host the website on a server. The hosting service provider allocates space on a web server for a website to store its files. There are four kinds of web hosting: cloud hosting, virtual private server, shared hosting and dedicated hosting. It is advisable to host a website on an established and reputable one for reliability, better speed, and uptime. 

3. Internet merchant account
Our next requirement is to have an efficient account to handle transactions online. Internet merchant accounts allow you to handle transactions smoothly. Merchants have to pay a particular amount of processing fee for each transaction processed. 

4. SSL certificate
An SSL certificate ensures the security and safety of users. It digitally binds a cryptographic key to an organization’s details. It allows a secure connection from the web server to the browser. It is further used in securing data transfer, credit card transactions, and logins.

Article Source:

**[What Technologies Required for e-commerce implementation] (https://www.multipz.com/what-technologies-required-for-e-commerce-implementation)**
Create a Netflix clone from Scratch: JavaScript PHP + MySQL Day 46
Tags: php, javascript, webdev, tutorial
Published: 2021-09-10 06:45:13

Netflix provides streaming movies and TV shows to over 75 million subscribers across
the globe. Customers can watch as many shows/ movies as they want as long as they are
connected to the internet for a monthly subscription fee of about ten dollars. Netflix produces
original content and also pays for the rights to stream feature films and shows.

In this video,we will be Creating Play and mute button
{% youtube g0PDSdFw7q0 %}



If you like my work, please consider
[![Buy me a coffee](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jm11knj7d8zwcvo150q2.png)](https://www.buymeacoffee.com/cglikpo)
so that I can bring more projects, more articles for you

If you want to learn more about Web Development, feel free to [follow me on Youtube!](https://www.youtube.com/c/ChristopherGlikpo)