teleren/devto huggingface dataset:
A Beginner guide to structuring your Python Projects
Published: 2022-11-01 10:46:34

## A Beginner guide to structuring your Python Projects

1. Packages and Environment 

2. Linting and code style 

3. Get rid of the old make file


### Packages and Environment


##### The old way of doing things

Back then the way to deal with packages in python was to create a new environment with Conda or the included venv and active it, then installing you're packages with pip then freezing them into a requirements.txt so that you're team could install the same deps as you do.

##### An easier way to approach this problem

With Pipenv you no longer need to use pip and virtualenv separately. They work together.

**Simply install it with pip**

`pip install --user pipenv`

**Then active your environment**

`pipenv shell`

**And install whatever you want !**

`pipenv install request`

### Linting and code style 

I personally picked pylint cause it felt like it's the more easy and intuitives to use and seem to contain all the use full features and is compatibility with code editor.
  
`pipenv install pylint`

### Get rid of the old make file

Pipenv give us the possibility to run scripts easily !

Simply give create a Script inside the Scripts section of you're Pipfile


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

Now i can run `pipenv run lint` to lint my files
or 
`pipenv run start` to start my Django Project !


Thanks for taking time to read this article i hope it help you ! 

If you have any suggestion or way i can improve it i'll be happy to ear them !
What is Kubernetes ?
Tags: kubernetes, beginners, programming, whatis
Published: 2022-11-01 10:30:00

Kubernetes is a system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications. Its APIs are intended to serve as the foundation for an open ecosystem of tools, automation systems, and higher-level API layers. Kubernetes can run on various cloud providers, on premises in VMs, or on bare metal machines.

## Getting started
- [Website](https://kubernetes.io/)
- [Documentation](https://kubernetes.io/docs/)
- [Kubernetes overview](https://kubernetes.io/docs/whatisk8s/)
- [Hello World walkthrough](https://kubernetes.io/docs/hellonode/)
- [Troubleshooting guide](https://kubernetes.io/docs/troubleshooting/)
- [GitHub source code](https://github.com/kubernetes/kubernetes)
- [Slack channel](http://slack.k8s.io/)
- [Kubernetes-dev Google group](https://groups.google.com/a/kubernetes.io/g/dev)
- [Kubernetes Release Notes](https://relnotes.k8s.io/)

## Books

- [Kubernetes: Up and Running](http://shop.oreilly.com/product/0636920043874.do)
- [Kubernetes In Action](http://a.co/21GZYRb)

## Online Courses

- [Scalable Microservices with Kubernetes by Google (Udacity)](https://www.udacity.com/course/scalable-microservices-with-kubernetes--ud615)
- [Introduction to Kubernetes (EdX)](https://www.edx.org/course/introduction-to-kubernetes#)
- [Learning Kubernetes (LinkedIn Learning)](https://www.linkedin.com/learning/learning-kubernetes)

{% embed https://youtu.be/7c-VE63PoZg %}
Read this blog before you Outsource Ruby on Rails Developer for your next project!
Tags: webdev, programming, ruby, devops
Published: 2022-11-01 10:16:19

_Ruby on Rails Developers_ is the sailor of the boat of your RoR project. A well-versed RoR Developer can make or break the deal for your project.

No matter how extensive your vision is if the executor is not on the same page as the visionary the complete implementation can not take place in an accurate way.

Often, many leading and growing companies hire RoR Developers but could not get the same result as per their expectations or could not get the desired outcome.

Many times they get stuck with mediocre performance and waste their resources whether it is time or money they are spending after.

There are certain technical stacks and skills that you must check before you [outsource Ruby on Rails Developers](https://www.bacancytechnology.com/blog/outsource-ruby-on-rails-development) for your project.

As every project has its own set of requirements certain technical sets and expertise are common regardless of the industry, here is the list of top technical stacks that you would require for your web application.


![Ruby on Rails Developer tech stack](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zqm7tgh4ssk1pgn6jfnw.png)



![Ruby on Rails Developer tech stack](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/41b3zxvpphszg5fdqk8h.png)


Apart from this, there are a few functional requirements that every RoR application would need to be implemented. 

When you Hire Ruby on Rails Developer for your project, make sure the developer you are hiring must possess the following expertise.

- Constant deployment and Integration
- Pair programming with Ruby on Rails
- Rails Docker Containerisation
- RoR Service and maintenance
- RoR Migration services
- RoR CMS Development


These are some of the basic services that you should expect from an RoR Developer. Furthermore, there are a few responsibilities that Ruby on Rails developers should bear while working on an RoR project.

For instance,

1. Understanding the vision and prime objective of the project
2. Write neat and readable code
3. Following a transparent Agile culture to keep in the same loop as the entrepreneur.
4. A thorough and proper documentation
5. Administration of APIs
6. Testing and implementing the improvements

The bottom line is to understand the core objective of your project before you make any commitments or outsource an RoR Developer for your project. 

Outsource Ruby on Rails Development and leverage one of the top-notch [**Ruby on Rails developers**](https://www.bacancytechnology.com/ruby-on-rails-development) exclusive for your project.
When to use initializer list
Tags: codenewbie, cpp, beginners
Published: 2022-11-01 10:08:32

- Define non static constant data member

```
const int x;
Base(): x{0} {}
//also this works
Base(int y): x(y) {}
```

- If you want to initialise reference variable then you can't initialise it without initialization list. 

```
int& _x;
base(int x) : _x{x} {}
//base(int x): {_x = x};
```

- You can not initialize one class data member in another class if base class does not have default constructor

```
class base{
int _x;
public: 
base(){}
base(int x): _x{x} {}
};

class derive{
base b; //we are here calling default constructor of base as no //parameter passed
public:
derived(base x) {b = x;} //called first, copy constructor called from here
 
};
```

- You can not initialize base class data member from child class without initializer list

```
class base{
int _x;
public: 
base(int x): _x{x} {}
}

class derived : public base{
int _y;
public:
derived(int x,int y): base{x}, _y{y} {}
//base{x} calls constructor of base class
/* this is not gonna work, _x is private here
so you must use intializer list
derived(int x, int y){
_x = x;
_y = y;
}  
*/


};

int main(){
derived d(4,5);
return 0;
}
```

- You have temp variable same as data member
- You can not initialize data member with same name as temporary variable without initializer list

```
class base{
int _x;
public:
base(int _x): _x{_x} {}

//base(int _x) { _x = _x; } there is errorneous

};
```

- Using initializer list optimize you code a little more


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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r5n1k8k5i2tu10m42vpp.PNG)
Introducing Monokle Cloud
Tags: kubernetes, devops, helm, gitops
Published: 2022-11-01 10:03:32

Folks - happy to share our next step in the Monokle eco-system - [Monokle Cloud](https://app.monokle.com) - a free browser-based tool for exploring and validating Kubernetes manifests, Helm Charts and Kustomize Overlays in any public GitHub repo.

Short on time? Watch this 4-minute demo of Monokle Cloud in all its glory: https://www.youtube.com/watch?v=ds4OLjlI620

[Read the announcement](https://monokle.io/blog/introducing-monokle-cloud) for a more protein-rich overview...

**Try it out!**

Try out one of the direct links below to see Monokle Cloud in action:

- [The default branch of the opencost repository](https://app.monokle.com/explore/github/opencost/opencost?view=explorer)
- The [output of Kustomize](https://app.monokle.com/explore/github/kubernetes-sigs/kustomize?view=kustomize&n=examples%2FhelloWorld&k=Kustomization&f=examples%2FhelloWorld%2Fkustomization.yaml&pt=2&pf=examples%2FhelloWorld%2Fkustomization.yaml) for the helloWorld kustomization in the official kustomize repository
- The [resources generated by the Prometheus Helm Chart](https://app.monokle.com/explore/github/prometheus-community/helm-charts/branch/main?view=helm&pt=1&pf=charts%2Fprometheus%2Fvalues.yaml&f=charts%2Fprometheus%2Fvalues.yaml)
- A [comparison of two release branches](https://app.monokle.com/explore/github/argoproj/argo-cd?c=type%3Agit%2Cbranch%3Arelease-2.5%2Ccommit%3A872e1f2%3Btype%3Agit%2Cbranch%3Arelease-2.4%2Ccommit%3A2ccc17a) in the argo-cd repository

(you will be asked to authenticate with GitHub with minimal permissions)

**Wait! There's Monokle-more...**

At the same time we are also releasing

- a [GitHub action](https://github.com/marketplace/actions/monokle-validation) that you can use to validate your manifests in your CI/CD pipelines on GitHub
- a [Monokle CLI](https://github.com/kubeshop/monokle-core/tree/main/packages/cli) for performing all supported validations locally or as part of any CI/CD workflow
- a [Chrome Extension](https://github.com/kubeshop/monokle-chrome-extension) that integrates actions for Monokle Cloud into the GitHub UI

These 3 are all open-source (MIT) and available on GitHub.

Happy yamling!
Master "Can You Find the Odd One Out" with this Python trick
Published: 2022-11-01 09:51:13

**The Challenge**

Spot the odd one out is always fun to solve but it does require good eyes and some time. 

So i was thinking I need to find a fast way to solve all fast with code

**Here comes Python**

I did a reverse solution for Finding Waldo to solve this with Python

https://docs.opencv.org/4.x/d4/dc6/tutorial_py_template_matching.html

See the code below

`import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
img_rgb = cv.imread('mario.png')
img_gray = cv.cvtColor(img_rgb, cv.COLOR_BGR2GRAY)
template = cv.imread('mario_coin.png',0)
w, h = template.shape[::-1]
res = cv.matchTemplate(img_gray,template,cv.TM_CCOEFF_NORMED)
threshold = 0.8
loc = np.where( res >= threshold)
for pt in zip(*loc[::-1]):
    cv.rectangle(img_rgb, pt, (pt[0] + w, pt[1] + h), (0,0,255), 2)
cv.imwrite('res.png',img_rgb)`

See the full video here 
https://www.youtube.com/watch?v=G-6IWgu5PTI&ab_channel=ResterTest
How To Make Coaching In The Workplace Actually Work
Tags: coaching, consultant, beginners, react
Published: 2022-11-01 09:46:14

Getting results through others is at the heart of effective management, and coaching is one of the essential tools to facilitate this. Coaching in the workplace encourages employees to find their own innovative solutions and grow as individuals, rather than being told what to do. It’s well-recognized in organizations that the manager is the most important relationship in a person’s career, and research by Franklin Covey found that 70% of employees want more feedback from their manager.

Many companies offer coaching training programs to their managers, but the problem is that these training programs start with the coaching skills, not the mindset needed to coach. Managers need more than a skills-based workshop to create a coaching culture and to feel comfortable coaching. Managers must understand how a coaching relationship will benefit them to co-create an effective one. 

**Here’s our best advice for developing a coaching mindset so you can provide the kind of feedback your direct reports are looking for.  **

1. Understand yourself for effective coaching in the workplace

Coaching is not a new concept but can be challenging even for many seasoned managers. To improve your coaching skills, you must first understand what motivates you as an individual and tie your motivation to your role as coach.
The three primary motivations                                                                                                            According to Core Strengths research, people find a sense of purpose within three primary motivations: 

Read the full article here [https://www.exquisiteperspective.com/blog-posts?qb-b=how-to-make-coaching-in-the-workplace-actually-work](https://www.exquisiteperspective.com/blog-posts?qb-b=how-to-make-coaching-in-the-workplace-actually-work)
Getting Started with the Angular Mention Component
Tags: angular, webdev
Published: 2022-11-01 09:42:29

Learn how easily you can create and configure Syncfusion Angular Mention using the Angular CLI tool and Syncfusion ej2-angular-dropdowns package. This video also explains how to configure a few of the control’s basic features like adding multiple lists and templates. 

_Product overview_: https://www.syncfusion.com/angular-components/angular-mention

_Download an example from GitHub_: https://github.com/SyncfusionExamples/getting-started-with-the-angular-mention-component

_Refer to the following documentation for the Syncfusion Angular Mention component_: https://ej2.syncfusion.com/angular/documentation/mention/getting-started/

{% youtube CNsnT4i67Qw %}
Swiper.js
Tags: html, css, javascript, webdev
Published: 2022-11-01 08:53:44

Hello Guys today i want to show you a library for creating sliders in your webpage using swiper.js , a javascript library, for creating card sliders or carousels.
The Design is Created By CodingNepal - www.codingnepalweb.com

{% codepen https://codepen.io/shubhamtiwari909/pen/zYarNdO %}

THANK YOU FOR CHECKING THIS POST

You can contact me on -
Instagram - https://www.instagram.com/supremacism__shubh/
LinkedIn - https://www.linkedin.com/in/shubham-tiwari-b7544b193/
Email - shubhmtiwri00@gmail.com

^^You can help me by some donation at the link below Thank you👇👇 ^^
☕ --> https://www.buymeacoffee.com/waaduheck <--

Also check these posts as well
https://dev.to/shubhamtiwari909/js-push-and-pop-with-arrays-33a2/edit

https://dev.to/shubhamtiwari909/tostring-in-js-27b

https://dev.to/shubhamtiwari909/join-in-javascript-4050

https://dev.to/shubhamtiwari909/going-deep-in-array-sort-js-2n90
[Business Requirement]We need a developing service
Published: 2022-11-01 09:21:46

We are running a WEB3 project which was finished by a out-source team. The project like a Youtube in Web3.
We don`t feel content with development.And we are now searching for another team to improve the code.We hope to improve the wallet connection,token destroy,advervisement,Cross-chain and so on.
If your team is experiened in WEB3,and you are interested in the project,please contact me on:
Mailbox:jkploki@163.com
Telegram:https://t.me/lianshanjason
Beautiful CSS Checkboxes - A curated collection of 64 free beautiful checkboxes (click to copy) ✨
Tags: webdev, css
Published: 2022-11-01 08:29:20

---
title: Beautiful CSS Checkboxes - A curated collection of 64 free beautiful checkboxes (click to copy) ✨
published: true
description: 64 free CSS checkboxes ready-to-use for your next projects. Click to copy.
tags: #webdev #css
cover_image: https://getcssscan.com/css-checkboxes-examples/og-image.jpg
---

👋 Hi Dev.to!

I've searched for the best checkboxes I could find on the internet, used CSS Scan to grab their CSS code, made an easy click-to-copy [collection with 64 beautiful CSS checkboxes](https://getcssscan.com/css-checkboxes-examples), and now I'm sharing it with you.

Featuring checkboxes with amazing and delightful animations. ✨

Click to copy and you'll get the HTML and CSS.

🎨 [CSS checkboxes examples by CSS Scan](https://getcssscan.com/css-checkboxes-examples) is a curated collection of 64 free beautiful CSS checkboxes.

I'll be adding new checkboxes to the list every time I see some new ones.

💖 Bookmark it (keep it on your favorites) and use it whenever you need it for your projects!

All you have to do is click on the box around the checkbox you like, and it'll copy its CSS and HTML code. Paste that into your website code and it's ready!

And if you have any ideas or suggestions, I'm all ears.

Thanks all! 🙌

[🐦 Launch Tweet](https://twitter.com/gvrizzo/status/1587107239201890305)
Why WrongSecrets moved to the OWASP Github Organization
Tags: owasp, wrongsecrets, secrets
Published: 2022-11-01 08:08:19

After 1 year of active development under my personal [Github Id commjoen](https://github.com/commjoen), it is time to migrate our OWASP project WrongSecrets to the [OWASP Github organization](https://github.com/OWASP/wrongsecrets).

And now you might wonder why, why...now?

## Prove Value First

We wanted to wait to move the project to the OWASP organization. We were curious if this project would be liked, maintained, or contributed to after its inception. Instead, we wanted to test it for a year and get feedback. Projects under the OWASP GitHub organization should not be "dead weights" or "pet experiments", which would lower the organization's value. The OWASP organization should contain solid projects with active maintainers aiming to deliver quality. Moving a project too early with some noise will not help the organization. Now, the time is right to move this project to the OWASP organization as it has proven its value to many!


## Your Contribution safe with OWASP

We often heard that people were reluctant to commit to (a fork of) the old repo under our personal accounts. After all: what would hold us back from taking it away from the internet, and creating a commercial product for ourselves, while you put your sweat and tears in as a volunteer?
By moving this project to the OWASP GitHub organization, we hope to remove this fear of potential new contributors and make it much more open to all who might be interested.
We would love to pursue the new OWASP "Production" status, possibly in the future. To do so, we must also bring our repositories under the OWASP Github organization.

## No Commercial Interest

Please note that, as we said at the beginning, we have no commercial interest in the project. It was born out of our desire to have fun and to educate - we hope you can have a lot of fun with it!

## What is Next?

There are tons of things next, have a look at our [github issues](https://github.com/OWASP/wrongsecrets/issues) to see what the future has in store for this awesome project. Feel free to reach out to us through Slack as well!

##Special Thanks

We would like to thank Harold Blankenship for helping us to migrate our repositories to the OWASP organization. Harold has shown to be a great help in many needs of this project. It would not have gone so fast without him.
Date formatter in js
Tags: javascript, webdev, programming, tutorial
Published: 2022-11-01 08:06:44

We all struggle with date formate. Today I'm gonna share with you a code snippet to use in any project.


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

Example --

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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k2hdwwxnpcb9kuzopmki.PNG)
Find a meeting time and schedule a meeting on Microsoft 365
Tags: javascript, microsoftgraph, webdev, beginners
Published: 2022-11-01 08:50:39

---
title: Find a meeting time and schedule a meeting on Microsoft 365
published: true
date: 2022-11-01 07:44:59 UTC
tags: javascript,microsoftgraph,webdev,beginners
canonical_url: https://blog.mastykarz.nl/find-meeting-time-schedule-meeting-microsoft-365/
---

![Find a meeting time and schedule a meeting on Microsoft 365](https://blog.mastykarz.nl/assets/images/2022/10/find-meeting-time-banner.png)

Many work apps need the ability to schedule a meeting with others in their organization. Here's how to do it for apps connected to Microsoft 365.

## Work apps need work data

Work apps serve a specific purpose: they help you track projects, follow orders or manage resources. But rarely do they contain all the information that users need to complete their work. Typically, information about people, their calendars, or communication is stored elsewhere, like in Microsoft 365. And that's a shame because completing a task requires users to switch between different apps, which is detrimental to their productivity. Unless of course, you bring work data into your work app.

## Find a meeting time and schedule a meeting on Microsoft 365

A common scenario for work apps is to schedule a meeting with others in the organization. While it sounds trivial, the app must be able to access attendees' calendars, find a suitable meeting time and schedule the meeting. And that's where Microsoft Graph comes in.

Recently I published an article on freeCodeCamp that shows you [how to build an app connected to Microsoft 365 that can find a meeting time and schedule a meeting](https://www.freecodecamp.org/news/find-meeting-time-schedule-meeting-microsoft-365/).

![Custom web app for finding a meeting time with attendees on Microsoft 365 and scheduling a meeting](https://blog.mastykarz.nl/assets/images/2022/10/find-meeting-time-graph-mgt.png)

The app shows you how to make the best use of features available in the Microsoft Graph Toolkit and Microsoft Graph to build a UI that you could integrate with another app.

Check it out, and I'm looking forward to hearing what you think!
10 useful React Native libraries for building mobile applications
Published: 2022-11-01 07:34:18

All libraries mentioned in this post are free and open-source.

**1. React Native Bottom Sheet**
A bottom slider or bottom sheet is a very common element in modern mobile applications. Our application is no exception, and we opted for using Mo Gorhom’s library for this. It’s flexible, has multiple customizations, and worked very well on both iOS and Android.

**2. Notifee**
Notifications are a very common requirement for modern mobile applications. Our application needs both push notifications for which we used Invertase’s React Native Firebase library

**3. React Native Firebase**
As I mentioned above our application has specific requirements for being able to receive push notifications, both regular and silent/background.

**4. date-fns**
Manipulating dates, formatting dates in different locales, and converting string literals to dates and vice versa are common tasks when working with date/time in JavaScript.

**5. React Native Biometrics**
React native biometrics is a simple bridge to native iOS and Android keystore management. It allows you to create public-private key pairs that are stored in native keystores and protected by biometric authentication.

**6. React Native Confirmation Code Field**
Often in mobile applications users are required to register/create an account and part of the process requires them to enter a confirmation code, such as illustrated below:

**7. React Native Config**
Lugg’s React Native Config library exposes config variables to your JavaScript code in React Native, supporting iOS, Android, and Windows.

**8. React Native Elements**
One of the main visual elements of our application are cards. We did some research and settled for the cross-platform UI Toolkit from React Native Elements. 

**9. React Native Toast Message**
Toast messages are one of the most common visual elements in a mobile application.

**10. React Native Local Authentication**
Any modern mobile application must take advantage of the phone’s security features, more specifically biometrics (Face ID, Touch ID, or Android biometrics), to authenticate the users locally without the need for a server roundtrip.