teleren/devto huggingface dataset:
在GCP VM上開發Python
Tags: gcp, vm, pycharm
Published: 2022-05-09 14:13:10

- 訂閱patreon即可看到更多文章 https://www.patreon.com/wade3c
- Youtube頻道 https://www.youtube.com/c/增廣建文

---

# 在GCP VM上開發Python

GCP預設是不會像oracle cloud/ azure幫你產生好private key

> GCP Debian/ Ubuntu VM內預設都沒裝iptables，所以就不像oracle cloud的要特別去設定

## Generate SSH Key Pair

可以自行幫私鑰取名 (建議用WSL2建，powershell/ cmd可能會有路徑問題)

```shell
ssh-keygen -t rsa -f ~/.ssh/[KEY_FILENAME]
```

> Passphrase可以避免私鑰被拿走就能登入，但是每次登入就要打密碼

先複製一下對應公鑰 (複製到等號前、含等號)

```shell
cat ~/.ssh/[key_filename].pub
```

先暫時保留以下的結果

```plaintext
ssh-rsa [KEY VALUE] [USER_NAME]
```

## GCP VM Setting

> 不一定要用預設給的username，可以自己創過

到現有VM的設定內去找SSH Key

然後透過add item來放剛剛暫存的key-value pair

![image.png](https://res.craft.do/user/full/71bea674-0503-893e-0a7a-91e236797ff9/doc/2072a066-a81b-4b02-886e-c80c02237ae7/3ee460d7-172f-4458-b6a0-a1c59dfb408b)

打username就好，不需要加上email

## Terminal

```shell
ssh -i <key_name> <username>@<gcp_ip>
```

> 如果用WSL2創的，實際key會在`\\wsl$\Ubuntu-18.04\root\.ssh`

## Pycharm

### Interpreter

Pycharm是我個人最常用的IDE，這裡示範直接在Pycharm中透過SSH使用GCP VM

> 在Pycharm就是去設定SSH Interpreter (可以順便設定Remote Host方便傳檔案)

> Default interpreter (conda-forge)會在`/opt/conda/bin/python`

![image.png](https://res.craft.do/user/full/71bea674-0503-893e-0a7a-91e236797ff9/doc/2072a066-a81b-4b02-886e-c80c02237ae7/fa25edbb-0886-46fd-994e-8aa1105a381e)

如果想用VScode連進去，也是相同的道理

### Files

要在遠端server上跑code當然必須要上傳data以及code

在剛剛設定interpreter時有設定對應server路徑，上傳到那個位置即可

![image.png](https://res.craft.do/user/full/71bea674-0503-893e-0a7a-91e236797ff9/doc/2072a066-a81b-4b02-886e-c80c02237ae7/694d39eb-83b6-46f5-9109-f5fb82fc8b8e)

----

## Reference

[Google Cloud Platform (GCP) - How To SSH into your VM](https://www.youtube.com/watch?v=8QGpHQ2SyG8)

[Remote Coding with PyCharm and Google Cloud - DoiT International](https://www.doit-intl.com/remote-development-with-pycharm-and-google-cloud/)

[Using GCP With PyCharm](https://nirbenz.github.io/pycharm/)
Remember to Hydrate
Tags: watercooler
Published: 2022-05-10 12:50:51

[Hydration](https://dev.to/this-is-learning/conquering-javascript-hydration-a9f) is a term in webdev relating to server-side rendering of elements which are later imbued with dynamic behavior.

But I want to call out the _other_ kind of hydration. **Drinking water!**

I'm not doctor, but I don't think this is controversial advice. Remember to hydrate throughout the day! I believe the most substantial difference in whether I feel energized or exhausted by the end of the day is whether I have properly hydrated throughout. Placing a big glass of water on my desk in the morning is all it takes. If the water is there, I will remember to drink it. If it's not, I might forget to drink enough water throughout the day.

Happy coding and hydrating!
Monokle 1.7.0 Release — Kubeshop
Tags: programming, devops, kubernetes
Published: 2022-05-10 12:39:13

The Monokle Team at Kubeshop is proud to announce version 1.7.0 of [Monokle](https://monokle.kubeshop.io/) - Manifest IDE, our open-source desktop tool to help you with all-things-related to Kubernetes manifests. 
In this release, the main focus was improved manifest validation. We also improved Helm interactions and the general user experience, largely based on your feedback. Thank you!  
## Open Policy Agent validation
The Monokle team wants to help developers with the tools they need to spend less time fixing and debugging so that they can build the next big feature.
We notice that both startups and enterprises want to comply with best practices and security standards, yet they often meet friction in tooling. Validating your policies in a separate process gets skipped and enforcing it at admission time comes with a poor developer experience.
That’s why Monokle now brings **policy validation** directly into your editor. 
You will no longer need to dive through documentation as help will appear in real-time while editing.

Getting started with policy validation is simple. Open the validation pane at the left and you will see a pre-made list of rules. A big shout out to the DefSec team at [Aqua Security](https://www.aquasec.com/) as full credit for these rules goes to them. Once you’re familiarized with the rules, enable those relevant to you and that’s it!

Please note that this initial release only works on vanilla Kubernetes manifests and is disabled for Helm and Kustomizations. Let us know what you think about the Open Policy Agent integration and feel free to send us a message when you are missing a rule or are interested in building a plugin with your own set of rules.
## Helm
Now you can list the templates under each Chart in the Helm Pane:

Mouse over directive templates to display the location of the Values file associated with.
## Cluster workflows
Disable or enable editing resources in cluster mode:
## UI/UX Improvements
Pin your favorite projects on the top of the “getting started” page:

First-timer? Don’t worry, we created a tooltip that guides you through the main features:

 
## Other notable fixes and improvements
Fixed the Deploy Resource action on Ubuntu.
Updates: get a hint when to reload Monokle after a new version has been applied
Refreshed the look and feel of the start page
As always you can download the release from our website and get in touch to complain or praise Monokle on our Discord Server - looking forward to hearing from you
New Twitter community for Indie Founders
Tags: news, twitter
Published: 2022-05-10 12:35:47

Hey all 👋🏻

I have created a Twitter community for showcasing products, discussing struggles, sharing experiences and helping each other out. 

So far the experience is pretty good, so wanted to give a heads up here as well. 

Anyone who is building something or interested in building something is more than welcome! 

Here's the link: https://twitter.com/i/communities/1523269557816856576

Don't forget to say hi 👋🏻 when you join :)

See you there!
Dev.to Translation and Localization
Tags: devto, localization, translation, medium
Published: 2022-05-10 12:29:57

Let's be honest, dev.to provides us with a great experience. This site allows us to reach an audience of developers through a very simple and clean interface. And that is awesome, right?

However, I do feel like in terms of localization and translation, dev.to seems a bit behind. I myself could argue that English is the current _lingua franca_, and every programmer should master it at least at basic level. It does not help though that sometimes I would like to write for a Portuguese speaking audience, since I'm Brazilian, about things that would not be very useful out of the context of programming that is specific for Brazilian needs. 

This sometimes is frustrating, because I have lost the count of articles that I have not written due to lack of localization. Also I sometimes just want to be able to write some general stuff for my team and I don't like our current tools. So I feel forced to write in English, which costs me more time and energy, and certainly costs them as well.

I guess for now people will just have to excuse me when I write things in Portuguese in here, because I'm definitely not going back to _Medium_.

EOR
Apa Itu Lexicographical Order?
Published: 2022-05-10 12:23:12

Singkatnya, lexicographical order itu ADALAH alphabetical order.

Contoh kita punya beberapa string **tidak berurutan** seperti berikut:
* adi
* budi
* ahmad
* abdul

Setelah kita urutkan menggunakan lexicographical order akan menjadi seperti berikut:
* abdul
* adi
* ahmad
* budi

Note: dikarenakan adi, abdul, dan ahmad mempunyai huruf awalan yang sama yaitu "a", maka kita akan mengurutkan huruf keduanya, yaitu "d" pada adi, "b" pada abdul, "h" pada ahmad.
Les stratégies clés pour recruter un comptable
Published: 2022-05-10 12:14:31

**Qu'est-ce qu'un comptable ?**

Un comptable est un professionnel précieux qui peut aider votre entreprise immobilière à réussir à long terme.
Les professionnels de la fiscalité immobilière maîtrisent tous les aspects de l'immobilier, de l'investissement immobilier et savent comment aider les clients à économiser de l'argent. Ils sont également très compétents pour gérer les différents types de défis qui peuvent survenir lorsque vous gérez une entreprise immobilière.

Par conséquent, cela vaut la peine d'embaucher le meilleur comptable immobilier qui saura vous aider. Suivez ces stratégies clés pour trouver un CPA qualifié en qui vous pouvez avoir confiance.

**Rechercher en ligne**
Prenez le temps de faire des recherches approfondies en ligne pour trouver les comptables les plus qualifiés. Assurez-vous de vérifier leurs lettres de recommandation pour leur parcours professionnel.
Un comptable immobilier doit avoir de l'expérience dans le traitement des questions fiscales et jouer un rôle déterminant dans le traitement réussi des documents fiscaux.

**Obtenez des références**
Un moyen simple d'affiner votre recherche consiste à obtenir des recommandations de personnes que vous connaissez. Recueillir des témoignages de collègues, famille et amis.
Découvrez quels services comptables ils utilisent et documentez leur expérience dans son [site d’expertise comptable en ligne](https://www.lesfrenchies.io/). En vous informant auprès de connaissances, vous éviterez les erreurs et embaucherez le bon comptable.

**Consultez son site internet**
Consultez les sites Web des professionnels de l'impôt et consultez leur historique de travail avec les clients. Vous pouvez consulter de nombreux sites d'évaluation légitimes pour connaître les antécédents professionnels des fiscalistes.

**La plupart de ces avis sont-ils positifs ? **
Notez ce que vous savez sur le fiscaliste pour déterminer si vous avez fait le bon choix. La lecture des avis permet de déterminer le niveau de professionnalisme du fiscaliste et la manière dont il traite les plaintes des clients. Il est également bon pour vous de vérifier leurs poignées de médias sociaux pour voir ce qu'ils publient.
Renaming Imports to Avoid Naming Collisions
Tags: webdev, javascript, tutorial
Published: 2022-05-10 11:40:03

Let's say you want to import and share a name with some other value that already exists in your program.

- How to use the `as` keyword


For example, suppose you had access to two modules, `greeterEspanol.js` and `greeterFrancais.js`. Each exports a function called `greet()` :

```
/* inside greeterEspanol.js */

const greet = () => {
  console.log('hola');
}
export { greet };
 
/* inside greeterFrancais.js */
const greet = () => {
  console.log('bonjour');
}
export { greet };
```
Now, let’s say you wanted to use each of these functions in a program, called `main.js`, that simulates a conversation between a spanish-speaker and a french-speaker.

```
import { greet } from 'greeterEspanol.js';
import { greet } from 'greeterFrancais.js';
//Error on line 2 identifier greet has
//already been defined on line 1.
```
Thankfully, ES6 includes syntax for renaming imported resources by adding in the keyword **`as`**. It looks like this:

```
import { greet as greetEspanol } from 'greeterEspanol.js';
import { greet as greetFrancais } from 'greeterFrancais.js';
 
greetEspanol(); // Prints: hola
greetFrancais(); // Prints: bonjour
```

Hopefully this knowledage comes to be useful when trying to manage your variable names in many different files.
Earn more than 600 BNB with 0.3 BNB
Published: 2022-05-10 11:46:32


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l0f67dnt30gn2ti8ayad.PNG)
How to join ?

Step 1: Register (0.1 BNB): <u>https://matrixpro.vip/signup?referralid=1</u>

Step 2: Upgrade to Level 1 (0.2 BNB)

Step 3: Add your wallet address to <u>https://t.me/tracktxbot</u>

-Share your referral link to get BNB faster

Step 4: Upgrade level 2, ...10



You will make 3000X your investment. 

Over 600 BNB. Learn more: <u>https://t.me/matrixprovip/390</u>
<u>![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f5sj4jhwfotevzk4vs83.png)</u>
PYTHON | PATTERNS
Tags: python
Published: 2022-05-10 11:44:46

#LISTS COMPREHENSIONS
{% youtube https://youtu.be/SWQwUc9tMqE %}

# SETS COMPREHENSIONS
{% youtube https://youtu.be/aojar_mH17g %}

# DICTIONARY COMPREHENSION
{% youtube https://youtu.be/hxGa237nEAQ %}

# ITERATOR PATTERN
{% youtube https://youtu.be/OwMGE4226jM %}

# GENERATOR EXPRESSIONS
{% youtube https://youtu.be/an9d6Jkze5w %}

# YIELD KEYWORD
{% youtube https://youtu.be/j7wd_X8579Q %}

# COROUTINES

{% youtube IppZxLhzdWw %}
Nulife Virtual
Published: 2022-05-10 11:43:35

**[NuLife Virtual](https://nulifevirtual.com)** revolutionizes the treatment of behavioral health conditions with our customer-focused, community-driven healthcare platform by modernizing how treatment is delivered and long-term health is managed. NuLife provides recovery professionals continuous innovation via tools to expand their reach, foster active engagement and improve outcomes for people in and seeking recovery. The NuLife platform provides an affordable, stigma-free environment to positively impact the lives of both members and their families affected by substance use and mental health challenges.
Best ChannelAdvisor Alternative
Tags: php, magento, javascript, webdev
Published: 2022-05-10 11:17:50

Once upon a time, ChannelAdvisor was the only multichannel solution provider in the market. But with time, many of its users started to complain about the API-related ChannelAdvisor challenges and problems like higher price tags and unresponsive customer support.
Every online seller wants to migrate their service to some other multichannel provider but at that time their was no better alternative for channeladvisor. all provide multichannel solution but no one is perfect in that. Then One company which in currently using for my multichannel solution is CEDCommerce. It is [best Channeladvisor alternative](https://cedcommerce.com/best-channel-advisor-alternative?utm_source=Dev.to&utm_medium=CA) for sure in every aspect.

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

CedCommerce is an affordable, secure, and convenient ChannelAdvisor alternative for listing, promoting, and selling products on many eCommerce platforms.

- Create a solution that is unique to your needs and target audience.
- Remove the time-consuming setup process.
- With a more flexible Native selling solution, you can reduce your overall effort.
- Get a better deal on everything.

## Brands are Switching to CedCommerce know Why?

- The only Native Solution
- Simplified Setup Process
- Fast & Responsive Support Team
- Dedicated Account Manager
- Customized Solution as per Need
- Annual Subscription (no Hidden Costs)

CedCommerce believes in offering what they claim. And when you take up our multichannel services, our expert team helps you market your products to the best digital marketing channels. So, you receive maximum exposure from the targeted audience. In addition to this, we will also help you build a strong social media presence.
Looking for a devOps to assist setting a web service
Published: 2022-05-10 11:13:14

Hi,
I'm looking for a devOps with an experience in Linux systems. I will be deploying a NodeJS web-app on AWS EC2.

Stack specification:
MERN: NodeJS, MongoDB and Redis
Jenkins or other CI tool (non Java based preferably)
Other dependencies: pm2, node-gyp, webpack.

I'm looking for collaboration so I'm asking for a free assistance.
The project is not monetized and there is no business behind **yet!**

I will be working so much on it fixing bugs in the web-app itself before going prod. But I would like to see a dev version online...

If it works out well and then you want to be a collaborator, this is very feasible, we could arrange that.

It is a web-app of a year of work, it is BIG ! and sadly I have no business nor money *yet* to pay for it..

Thanks :)
What Technical Stack (Skills) Should You Look For While Hiring an AI Developer?
Tags: webdev, python, programming, ai
Published: 2022-05-10 11:00:21

**Introduction**

It is important to have the right AI talent in your project when you have an out-of-the-box idea on Artificial intelligence. In my opinion, having a full-stack AI engineer can turn your project idea into reality. 

So, whenever you need to augment your team with AI developers or [hire AI developer](https://www.bacancytechnology.com/hire-ai-developer) separately who can work on your idea from scratch, you should look for the skills mentioned below. 

Below mentioned tech stacks are a must-have, and AI developers should have hands-on experience using the same. It is not necessary to have experience using it all, but it is good to know it. 

It would be best to ask questions on the tech stack mentioned below to an AI developer while interviewing to ensure that you have the right AI tech talent in your team/project. 

So without wasting much time, let me mention it here.


**Technical expertise an AI developer should have:**

**1. Programming Languages**

- Python 
- R
- Scala
- SQL
- C++
- LISP
- PROLOG
- RUST
- Haskell

All of the languages mentioned above are excellent choices for Artificial Intelligence projects. With a basic grasp of the project, you can easily select the most appropriate language and boost your project efficiency.

**2. Frameworks**
TensorFlow and Scikit-learn SciPy are the most used frameworks.


**3. Fields**

- Natural Language Processing (NLP)
- Computer Vision
- Recommendation systems
- Tabular data analysis
- Signal Processing

**4. Libraries**

- OPENNN
- Neuroph, Sonnet
- Scikit-learn
- Tensor2
- Tensor
- tf-slim
- Apache Spark MLlib


**5. DBMS**

- Relational (MS SQL, PostgreSQL, MySQL)
- Non-relational (MongoDBCouchDB, Cassandra, etc.)Distributed (Hadoop etc.)

**6. Packages**

- CUDA
- OpenCL

**7. Neural Networks**

- Deep Q-Network (DQN )
- Convolutional and recurrent neural networks (LSTM, GRU, etc.)
- Generative adversarial networks (GANs)
- Feedforward Neural Network
- Autoencoders (VAE,DAE SAE, etc.)
- Radial basis function network
- Modular neural network

**Conclusion:**
Now, you know what you need to ask an AI developer. And yes, I have mentioned a few and most preferred tech stacks. Because every project requires different skills, do not judge the developer/company with the tech mentioned above the stack. This blog is written for the general tech stack required while hiring an AI developer. For better outsourcing, You have to share your requirements and hire the developers from trusted companies accordingly.
12 Factors: Revisiting the 1st Factor
Tags: programming, beginners, productivity, architecture
Published: 2022-05-10 10:33:04

Welcome to my `blog`! 

I'm starting this project as a way to revisit some important concepts, study a little and share some of the knowledge I've accumulated with my trajectory so far! 

In this first phase of studies, I would like to revisit the concepts employed in the studies about the [12 factors for modern application development](https://12factor.net/pt_br/), inspired by the books of the legendary Martin Fowler.

This study was coordinated by developers of [Heroku](www.heroku.com), a platform focused on delivering SaaS (Software as a Service) type applications.

So let's get to know the first factor:

## Codebase

Every application should have an active version control system, some options are [Git](), [Mercurial]() or [Subversion]().

A copy of this database is known as a `code repository`, `repository` or just the nice `repo`. 

This is where we will store the code for our application, and this codebase always has a 1:1 relationship with the application, i.e., each application has its own codebase.

This codebase can be shared with another application but as a part of its own codebase. When this situation occurs we have a distributed application and not an application. A distributed application is a composition of several highly linked applications.

For a distributed application to be suitable for the 12-factor model it would be necessary to break this application into libraries and thus create the correct dependency between the application and the appropriate packages.

However, this does not mean that we cannot have multiple environments running the same code, in fact, this is one of the advantages of the 12 factors. We can create our own environments for development, testing, staging, and production.

Each environment can run a version of this repository, and each environment has its own reason, for the developer an environment for making changes, an environment for testing and checking with production-like data, and the production environment, which is the ideal version for the client, free of bugs and fully functional.

We call the distribution of the repository to the environments `deployment` or just `deployment`.

This image shows these environments well:

![codebase-deploys](https://12factor.net/images/codebase-deploys.png)

Summarizing the image, we can have the same application running different versions, each with a reason for existing.

When it comes to versioning tools, Git is widely used, becoming almost a standard in most companies. Not only that but Git was developed by Linus Torvalds, the same creator of the Linux kernel. :grin:

When searching in Google trends we can see its popularity:

{% codepen https://codepen.io/luizsfer/pen/abqNXdW %}

In a future post, we can talk more about this fantastic tool. But until then I recommend reading this [material](https://git-scm.com/about) on the Git website.

Until next time!
Dynamische Inhalte in WordPress durch bedingte Gutenberg-Blöcke
Tags: wordpress, automatisierung, dynamischeinhalte, ifso
Published: 2022-05-10 11:18:31

---
title: Dynamische Inhalte in WordPress durch bedingte Gutenberg-Blöcke
published: true
date: 2022-05-10 10:23:13 UTC
tags: WordPress,automatisierung,dynamischeinhalte,ifso
canonical_url: https://bloggerpilot.com/bedingte-gutenberg-blocks/
---

![If-So - Dynamische Inhalte mit bedingten Gutenberg-Blöcken](https://bloggerpilot.com/wp-content/uploads/2022/03/if-so-bedingte-blocks.png)

Erstelle mit dem WordPress-Plugin If-So bedingte Gutenberg-Blöcke. Denn mit der...

Der Original-Artikel erschien auf [Dynamische Inhalte in WordPress durch bedingte Gutenberg-Blöcke](https://bloggerpilot.com/bedingte-gutenberg-blocks/).
Which Domains Send DMARC Forensic (Failure) Reports?
Published: 2022-05-10 10:17:33

![Which Domains Send DMARC Forensic (Failure) Reports?](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ddmzpnyzouqka6fj2v4f.png)
As DMARC forensic (failure) reports leak Personally Identifiable Information (PII), many mainstream ESP's don't send forensic reports nowadays. As a result, you won't see any forensic reports in the DMARCLY dashboard if you don't send emails to any ESP that supports DMARC forensic reports.

Notably, Gmail and Office 365 don't send DMARC forensic reports.

#### List of domains that send DMARC forensic (failure) reports

Below is an incomplete list of the top domains that have sent DMARC forensic (failure) reports to us in the past:
* linkedin.com
* wrike.com
* laposte.net
* seznam.cz
* 163.com
* emailsrvr.com
* ing.com
* clouduss.com
* vestel.com.tr
* dar.com
* kfmc.med.sa
* bankofsharjah.com
* bcb.gov.br
* icicibank.com
* and more...

If you want to test the forensic report feature of DMARCLY, you can send an unauthenticated email to a mailbox hosted on one of the above domains like linkedin.com, you should see a forensic report appear in the dashboard shortly after.

Original post: [Which Domains Send DMARC Forensic (Failure) Reports?](https://dmarcly.com/blog/which-domains-send-dmarc-forensic-failure-reports)