teleren/devto huggingface dataset:
PythonIsCool - Chapter 2
Tags: python, tutorial, beginners, codenewbie
Published: 2022-04-27 19:54:37

# Chapter 2 - Data Types

## Table of contents

[Strings and Integers](#1)
[Floats](#2)

---

## Strings and Integers <a name="1"></a>

Strings are the data type which are used to represent characters. They are shown in Python inside either double quotes (`""`), or single quotes (`''`). Integers are whole numbers, without the speech marks. Let's carry on from the statement in the previous chapter, `one = 1`. If the statement would have been `one = "1"`, the variable `one` would have been a string, as it was in the speech marks, but since 1 wasn't in the speech marks, `one` is an integer. A simple way to figure out if the variable is an integer or not is by using the function `type()`. So write the the code `print(type(one))`. If the output is `<class 'int'>`, the variable is an integer. If the output is `<class 'str'>`, the variable is a string. Other output mean other data types, but we will talk about that later. Now if you want to convert `one` to a string, you have to do the code in the picture below.

```py
onestring = str(one)
```

After you write that code and run it, `one` will be equal to the integer `1`, but `onestring` will be equal to `"1"`.  
If you ever come across the situation where you have to change a string to an integer, use `int(name_of_variable)`. So if you want to convert `onestring` to an integer, you could do `oneinteger = int(onestring)`. 
When you write an input statement, something like `number = input("Enter a number")`, number is a string. But if you want `number` to be an integer, you have to write the code below. 

```py
number = int(input("Enter a number"))
```

Then, `number` will be an integer.
 

---

## Floats <a name="2"></a>

Floats are numbers that are made up of whole numbers and fractions, they are written in decimals. You can also assign a variable the value of a float. There is a also a function called `float()`. It coverts the specified value in a floating point number.  The function looks like `float(name_of_variable)`. For example,  if you want to check out the float of 4.600, you will have to do `print(float(4.600))`. When you run the code, you will get the result of the picture below in the console.

![float](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9hjljj6oo2eu5pztw5gx.png)

Another example is checking the float of 9. To check it, you have to write the code `print(float(9))`. After you run the code, you should get the result of '9.0'.

---

Thanks for reading and I hope you learnt something from this!
Why I think the dot is not a problem in Elixir
Published: 2022-04-27 19:42:54

_Update!_ Read this beautiful post by José Valim: [Why the dot (when calling anonymous functions)?](https://bit.ly/3sdY91m)


The Elixir community knows that, in Elixir, when you define an anonymous function and assign it to a variable, you have to use a dot (.) to call it:
```elixir
iex(1)> double = fn x -> x*2 end
#Function<44.65746770/1 in :erl_eval.expr/5>
iex(2)> double.(3)
6
iex(3)>
```

This doesn't happen in Erlang:
```erlang
1> Double = fun(X) -> X*2 end.
#Fun<erl_eval.44.65746770>
2> Double(3).
6
3>
```

You don't have to put a dot between `Double` and  `(3)` in Erlang.

But you have to put a dot at the end of each line.

The late Joe Armstrong, one of the creators of Erlang, wrote in 2013, when he spent ["A Week with Elixir,"](https://archive.is/SxIAd) more specifically in the section ["Funs have an extra dot in the name"](https://archive.is/SxIAd#:~:text=Funs%20have%20an%20extra%20dot%20in%20the%20name):

> In school I learned to call functions by writing f(10) not f.(10) – this is “really” a function with a name like Shell.f(10) (it’s a function defined in the shell) The shell part is implicit so it should just be called f(10).
> If you leave it like this **expect to spend the next twenty years of your life explaining why. Expect thousands of mails in hundreds of forums.**

I believe this didn't happen. One or other person complains here and there, but not "thousands".

Why? My opinion is that Elixir developers usually don't assign an anonymous function to a variable. That's why this is not a big problem. Am I right?
Introduction to Embedded Systems
Tags: embeddedsystem, arduino, fpga, raspberrypi
Published: 2022-04-27 19:10:45

Nowadays embedded systems are everywhere, in cars, mobile phones, home appliances, medical centers and even in space! The first known embedded device was the Apollo Guidance Computer, developed in the 1960s by Dr. Charles Stark Draper at the Massachusetts Institute of Technology for the Apollo Program. Markets and Markets predict that in 2025 the embedded market size is expected to reach USD 116.2 billion by 2025! It is time to start to understand the amazing world of embedded development. 


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

**What is Embedded Systems ?**
An embedded system is a microprocessor or microcontroller-based system of hardware and software designed to perform specific purposes and can be classified as:

**Subsystems**

- Part of a large system
- Independently is useless

**Stand-Alone Systems**

- Can perform its functions independently
- Components and techniques used to build these belong to the same class as the “subsystems class of embedded systems and hence are viewed as embedded systems too

**Network system**

- A group of physically separate electronic devices that perform a collective function

**Architecture**

Embedded systems can be composed of many hardware components, such as sensors, A-D converters, and actuators. But in almost every embedded system these components are presented:

- Microprocessor
- Ram
- Flash memory
- Serial Transversos

**Important Technologies**

If you are interested in start in this area, here are some of the technologies that can help you in this process:
- C/C++
- Java
- Rust
- Assembly
- Electronics
- FPGA
- Arduino
- Data Structure and Algorithms 

**_References_**
https://www.marketsandmarkets.com/Market-Reports/embedded-system-market-98154672.html
https://dev.to/ahmedmansoor012/what-are-embedded-systems-44f0
Fix microphone noisy Fedora 35
Tags: beginners, linux, fedora
Published: 2022-04-27 18:33:49

My microphone noisy because input level is very high, fix it by lowering the input level. In this case i use **Sound Input & Output Device Chooser** Extension, I set input level to 25%

![Sound Input & Output Device Chooser](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eawfuhgj7iqwb6jh5etr.png)

Or you can change input level on gnome setting

![gnome setting](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7fkcdw2y10149j6zosn7.png)
---

## Reference
- [Sound Input & Output Device Chooser](https://extensions.gnome.org/extension/906/sound-output-device-chooser/)
- [Fedora Discord Server](https://discord.com/invite/fedora)
Open Discussion: What Tips Do You Have For Writing Clean Code?
Tags: beginners, discuss
Published: 2022-04-27 18:22:12

Recently, I read an [Article](https://jerrylowm.medium.com/alphabetize-your-css-properties-for-crying-out-loud-780eb1852153) where the author, Jerry Low,  suggested that developers write their CSS properties in alphabetical order. I think this is a great idea, and it got me thinking what some other tips for writing clean and readable code? Feel free to share your suggestions.
DSA vs Generic System Dev
Tags: algorithms, django, recursion, beginners
Published: 2022-04-25 16:08:23

I am a new one here(Dev.to) and in my **2+** year of dev career I have faced a lot of challenges over many micro and robust project.

Mostly the challenge I have faced that maintaining system architecture and handling more data in less time and in a convenient way(bugless/non-conflict).

Some points we usually use Generic coding over DSA are mentioned below:

- Because of limited deadline, Most of us use template which may be open-source or already in our git storage(Previous project reference). To meet the tight deadline and make sure less buggy product, We often follow this trend and almost all of them are written in generic method calling and packed by sometimes oop's(Object Oriented Programming System) or redundant method calling! So, we have less scope to implement or even fix where to use DSA.😐

- If we develop the project from the scratch, Most of us always love to use some built-in methods, open source packages or as usual array-looping execution over DSA. This is because we feel comfort to use those or we are very used to use those. We think of using recursive loop over binary search because we feel ok with that but we barely think about memory-optimization/time-complexity/space-complexity!!

**Those mentioned points can be different for others but the motive is almost same for everyone.**

I have been a team member of a robust project since 2021 and I have faced a lot of issues while handling huge amount of data at a time. We have used **Django** and we thought that as Django is faster and can handle more requests per second. But we were wrong. This million dollar project is becoming slower while database is becoming heavier day by day. While digging the main reason, We have found that if we used DSA at some modules, System won't be slow so earlier! 😓
How to detect your leaking API endpoints using EthicalCheck
Tags: programming, api, security, java
Published: 2022-04-27 18:07:52


The purpose of this article is to show AppSec/developers how to get started with API security scanning tool EthicalCheck and detect your leaking APIs.

Why API leaks are a common problem. Most web and mobile are security tested at some point but APIs hardly get any attention. This means you may have leaking APIs that are live and in production. 

Detecting your leaking API endpoints is very simple if you’re using the free tool. All you need is your API OpenAPI Specification/Swagger URL and get instant report.


EthicalCheck - Visit the GitHub page to run your free scan:
https://apisec-inc.github.io/pentest/

About me: I write, review, and build API security tools and best practices.
Chassis.ml: Automatically Build ML Models into Containers
Published: 2022-04-27 18:01:50

We’re so excited to share that you can now [sign up](https://www2.modzy.com/l/893781/2022-04-27/4m25kp) to use a free, hosted instance of the [Chassis.ml]( Chassis.ml) service, sponsored by Modzy and Google Cloud. Chassis can be used to automatically containerize your ML and AI models for production deployment. Chassis can be used to automatically containerize your ML and AI models for production deployment.

Chassis is an open-source solution that converts models from multiple training tools and frameworks into [Open Model Interface (OMI)](https://www2.modzy.com/l/893781/2022-04-27/4m25kw) compatible containers to run anywhere. By implementing OMI and [Chassis.ml](http://chassis.ml/), data scientists and developers gain a standard container specification allowing interoperability, portability, and security for models to seamlessly be integrated into production applications.

## The Challenge
With the diversity in model training tools and frameworks, as well as fast evolving nature of the tech, there was previously no standard way to containerize models built from different tools, nor was there a way to make containers compatible with different runtime engines. This led to significant fragmentation, longer deployment times, and reduced model portability, and is a contributing factor to the estimated 50-90 percent of AI models that never move into production applications.

## Chassis
Chassis allows you to turn models into containerized applications without having to learn dozens of new technologies. Chassis converts models from all training tools and frameworks to OMI compliant containers to run in a number of different types of AI runtime platforms. Chassis can be integrated into existing MLOps pipelines, making it possible for models to be automatically containerized, scanned, and deployed to a secure container registry.

To start using Chassis, [sign up today](https://www2.modzy.com/l/893781/2022-04-27/4m25kp). For more information, tune into a tech talk on Thursday April 28 at 12:30PM EST in the [Modzy Discord Server](https://www2.modzy.com/l/893781/2022-04-27/4m25l3).
Elementor Cloud Website Installation und Setup
Tags: wordpress
Published: 2022-04-29 13:41:25

---
title: Elementor Cloud Website Installation und Setup
published: true
date: 2022-04-25 13:40:57 UTC
tags: WordPress
canonical_url: https://bloggerpilot.com/elementor-cloud-setup/
---

![Elementor Cloud Website Installation und Setup](https://bloggerpilot.com/wp-content/uploads/2022/04/elementor-cloud-setup.png)

Mit der Elementor Cloud Website bekommst du Managed WordPress Hosting,...

Der Original-Artikel erschien auf [Elementor Cloud Website Installation und Setup](https://bloggerpilot.com/elementor-cloud-setup/).

Dein Online-Geschäft braucht eine Website, aber du hast nicht das Geld, jemanden dafür zu bezahlen. Kein Problem! Es gibt ein neues Tool auf dem Markt, mit dem du in wenigen Minuten schöne, professionelle Websites erstellen kannst. Es heißt Elementor und ist ein Drag-and-Drop-Website-Builder. Es ist kostenlos und du kannst deine Website in nur wenigen Minuten veröffentlichen.

Elementor Pro bietet viele Funktionen wie Elementor Pro Homepages, Elementor Pro Call to Action und Elementor Pro Popups, die alle in der Elementor Pro Cloud enthalten sind.

Um deinen Laptop einzurichten, brauchst du ein paar Dinge. Zuerst brauchst du deine Apple ID und dein Passwort. Wenn du noch keine hast, musst du eine erstellen.

WordPress ist das beliebteste Content Management System (CMS) auf dem Markt. Schätzungsweise 30 % aller Websites werden mit WordPress betrieben. Es ist unglaublich flexibel. Für Menschen, die WordPress nutzen, bedeutet das, dass sie eine Website ohne technisches Know-how verwalten können. WordPress ist einfach und leicht zu bedienen. Dazu gehört das Schreiben, Anpassen und Pflegen einer Website.

Zusammenfassend lässt sich sagen, dass die Elementor Cloud keine Programmierkenntnisse erfordert, um Websites zu erstellen. Sie verfügt über eine benutzerfreundliche Drag-and-Drop-Oberfläche, mit der du ganz einfach individuelle Websites erstellen kannst. Die Elementor Cloud enthält 22 vorgefertigte Vorlagen, 22 verschiedene Header-Designs und 20 verschiedene Footer-Designs. Wenn du eine Website erstellen willst, die auf allen Geräten gut aussieht, ist Elementor genau das Richtige für dich.
Paracetamol.js💊| #110: Explica este código JavaScript
Tags: javascript, spanish, webdev, beginners
Published: 2022-04-27 17:55:45

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```js
const set = new Set([1,2,1,5,9,5,0]);
for(let item of set){
  console.log(item)
}
```

A. `1,2,1,5,9,5,0`
B. `1 2 5 9 0`
C. `SyntaxisError`
D. Ninguna de las anteriores

Respuesta en el primer comentario.

---

Respuesta:
B. `1 2 5 9 0`

Para poder iterar sobre objetos `Set` podemos usar un ciclo `for...of` que recorrerá cada `item` del nuestro `Set` obviamente omitiendo los elementos repetidos.
Building Your Own Google Docs Clone with Flutter
Tags: appwrite, opensource, flutter
Published: 2022-04-27 17:39:04

[Appwrite](https://appwrite.io) has always been about providing developers with a core set of functionality needed to build any application with any stack. From database interactions to authentication, real-time updates, and more. Developers are only limited by their imagination on what they can build. 

{% youtube https://youtu.be/0_GJ1w_iG44 %}

Gordon Hayes, from [Fun with Flutter](https://www.youtube.com/FunwithFlutter), has taken on the challenge of building a Google Docs clone, and better yet, he’s done it using Appwrite and Flutter!

[Appwrite](https://appwrite.io) is an open-source Backend-As-A-Service that abstracts all the complexity of building a modern application by providing you with a set of REST APIs for your core backend needs. Appwrite takes the heavy lifting for developers and handles user authentication and authorization, databases, file storage, cloud functions, Webhooks, and much more!

[Flutter](https://flutter.dev) is an open-source framework by Google for building beautiful, natively compiled, multi-platform applications from a single codebase.

Gordon walks you through the entire process from setting up the application, to adding routes, authentication, creating documents, real-time interactions, and more. And it's all open source for you to take and tinker with.

We love seeing projects like this one and others. We encourage you to build and show off your own projects during the DEV Hackathon with Appwrite!

https://dev.to/devteam/announcing-the-appwrite-hackathon-on-dev-1oc0

Learn More

🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-web)
🚀 [Appwrite GitHub](https://github.com/appwrite/appwrite)
📜 [Appwrite Docs](https://appwrite.io/docs)
💬 [Discord Community](https://appwrite.io/discord)

If you liked this, click the :heart: so other people will see it. Follow [Brandon Roberts](https://twitter.com/brandontroberts) and [Appwrite](https://twitter.com/appwrite) on Twitter for more updates!
Asynchronous Programming in C#
Tags: csharp, tutorial, programming, beginners
Published: 2022-04-27 17:26:56

Sometimes we need to download a large file, or we need to build a software or game like Counter Strike or Valorant that it's functions works simultaneously or need to work at the same time. For example if you are playing Competitive Valorant and you throw a flashback to blind your enemy, everyone are blind in the same time. In this case, your game does complex calculation and need to blind your enemy at the same time. Without an asynchronous programming, it is not gonna happen. 

So asynchronous programming is the way of executing programming code in a thread without having to wait for IO bound or CPU bound task to finish. IO bound operations could be file-system accesses, HTTP requests, API calls, or database queries. CPU bound operations would be actions like encrypting a data, complex calculations, image or document management.

One of the ideas of asynchronous programming is to create awaitable tasks, so that we don't block the execution of our application. We can call an asynchronous method and get a task object that represents it. After we execute those operations, we await the asynchronous task, which may already be finished or not. If the execution is finished, we will get result from the task and use it in the next dependant operations or start next operations.

It has benefits:

1. UI of our application is responsive
2. Performance of our application has improved
3. Avoid thread pool starvation

But also it has drawbacks:

1. Code will be more complex and harder to maintain
2. Increased memory allocation, so some objects should stay longer while awaiting other code to be executed. That's why you need a stronger PC to play FPS games
3. It can be harder to find bugs in code
How To Access A Docker Container — Secure Shell vs Docker Attach
Tags: programming, docker, containers, devops
Published: 2022-05-20 17:05:26

---
title: How To Access A Docker Container — Secure Shell vs Docker Attach
published: true
date: 2022-04-27 17:16:49 UTC
tags: programming,docker,containers,devops
canonical_url: https://www.paulsblog.dev/how-to-access-a-docker-container-secure-shell-vs-docker-attach/
---

[![](https://cdn-images-1.medium.com/max/2600/0*T0s6alrOPKh9IXiV)](hhttps://www.paulsblog.dev/how-to-access-a-docker-container-secure-shell-vs-docker-attach/)

Short Tutorial On Accessing Docker Container. An Essential Skill For Every DevOps Engineer.

I describe how two different methods (docker exec and docker attach) can be used to access a running docker container. Also, I describe what problems can occur and what should be used. 

**Spoiler:** *Use docker exec!*

[Continue reading on my blog»](https://www.paulsblog.dev/how-to-access-a-docker-container-secure-shell-vs-docker-attach/)
Reloadium - Hot Reloading for Python
Tags: python, datascience, programming, productivity
Published: 2022-04-27 17:04:40

Wouldn't it be amazing to change, fix or tweak your code during debugging?

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

Hot reloading can be a major productivity improvement and somehow Python being a very dynamic and popular language lacks hot reloading capabilities.

That is why I have created Reloadium - advanced hot reloading tool which integrates seamlessly with most popular Python libraries like Django, Flask or Pandas or IDEs like PyCharm out of the box.

More details how to use it here: https://github.com/reloadware/reloadium

If you are a PyCharm user you might want to try the Reloadium plugin which is available on PyCharm marketplace or here https://plugins.jetbrains.com/plugin/18509-reloadium
#PowerAutomate ➡️ – Copy Files from Google Drive to Azure Tables. Bonus: OneDrive ☁️ and Sharepoint
Tags: englishpost, copyfiles, powerautomate
Published: 2022-04-27 17:25:51

---
title: #PowerAutomate ➡️ – Copy Files from Google Drive to Azure Tables. Bonus: OneDrive ☁️ and Sharepoint
published: true
date: 2022-04-27 17:03:36 UTC
tags: EnglishPost,CopyFiles,EnglishPost,PowerAutomate
canonical_url: 
---

hi !

Early today I hosted a session with an [Introduction to Power Automate](https://aka.ms/Apr27IntroToPowerAutomate). It was a fun session, and while I was talking about some flow scenarios, I had a question about **_copying files from Google Drive to Azure Tables_**.

I didn’t have the right environment to build an online demo for this, so I created a simple one using OneDrive. Kind of worked ¯\_(ツ)\_/¯

However, after the session I decided to take a look at the prebuilt templates for this and I found 2 that basically answer the question.

#### [Copy new files to AzureBlob from a OneDrive for Business folder](https://us.flow.microsoft.com/en-us/galleries/public/templates/49933434732d4846a1fc0aaae72f8998/copy-new-files-to-azureblob-from-a-onedrive-for-business-folder/)

#### [Copy files from a SharePoint folder to a AzureBlob folder](https://us.flow.microsoft.com/en-us/galleries/public/templates/9f3013836eb64243a04306a0133d25eb/copy-files-from-a-sharepoint-folder-to-a-azureblob-folder/)

So, I selected the 1st template, and I created a new flow. Literally 2 minutes doing some configuration until I get something like this.

![Flow definition from OD to Azure](https://brunocapuano.files.wordpress.com/2022/04/flow-definition-from-od-to-azure.png?w=828)

So, time to test this flow, just adding some files to OneDrive. And hey, 5 seconds later the files are copied to Azure Storage !

![files copied from OD to Azure Tables](https://brunocapuano.files.wordpress.com/2022/04/files-copied-from-od-to-azure-tables.png?w=1024)

And, double check taking a look at the flow history. We can see the 3 runs, one por each file !

![Run history](https://brunocapuano.files.wordpress.com/2022/04/run-history.png?w=831)

Ok, now I need to spend some time creating a Google Drive account and figure out how to migrate this. Cool material for a new post !

You can check the recording here:

<iframe width="750" height="422" src="https://www.youtube.com/embed/SfCBPz8y8NU?version=3&amp;rel=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;fs=1&amp;hl=en&amp;autohide=2&amp;wmode=transparent" allowfullscreen="true" style="border:0;" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation"></iframe>

Happy coding!

Greetings

El Bruno

More posts in my blog [ElBruno.com](https://www.elbruno.com).

* * *