teleren/devto huggingface dataset:
Top 5 reasons to not work on any projects
Tags: beginners, programming, tutorial, resume
Published: 2021-10-06 15:14:36

Everyone aspires to do amazing projects and tries to impress everyone with those projects. But why should you not do any projects?

Here are the **Top 5 reasons to not work on any projects**

So let's get started!

![Let's get started!](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/14xmy8xmswb0vyuqcyy6.gif)

## Reason 1: Doing projects is hard! Rather not do it at all!

I give up on projects before even doing them. Why to waste my time on a thing that is hard? I'll rather continue doing the same old things which I please to do.

Doing projects is hard indeed!

## Reason 2: You shouldn't do projects so that you can have a noob resume

Don't do projects so that you can have a very noob and basic portfolio/resume having nothing other than your degree certificate

## Reason 3: To be in the tutorial loop forever

Why do projects when you can watch tutorial after tutorial and keep on doing whatever the guy making the tutorial says and follow them blindly? A very captivating reason indeed! Yes sir!

## Reason 4: Don't do projects to have zero confidence in yourself and in your skills

Taking up a project, doing it, and finishing it gives you confidence in yourself and in your skills. But that is exactly what **mustn't** be done!

## Reason 5: Don't do projects to not learn things faster

Why learn faster by doing projects when you can just do it at your own slow pace and especially when it's said The learning process must be slow and steady for everyone to grasp it easily. Another captivating reason! Yes sir Yes sir!

## Reason 6: Doing projects makes you an expert in your field!

The reason is fine, but who actually said it? Absolutely **NO** one. So it is something you absolutely **mustn't** and **shouldn't** do!

And finally, don't react to this article, don't comment your views in the comments section, and don't forget **to not do** any projects!

Hoping that you are convinced to **NOT** work on any projects now!

Also, don't join the [ByteSlash Community](https://discord.gg/MfgSdjXA7u) to **NOT** work on amazing projects with a supporting and fun community, and [let's not connect](https://links-app-kardev07.vercel.app/)!
Xynos - Payment Gateway Landing Page
Published: 2021-10-06 15:00:03

Hello Everyone 🙌

 Visit - https://bootstraptemplate.net/downloads/payment-gateway-landing-page/

Presenting Xynos, It is a Payment Gateway Landing Page that allows payment providers, banks, and financial institutions to accept online and mobile payments. 

Xynos is a part of the Payment Services Group, a payment gateway, and financial services company. If you are running an e-commerce site, then you need to accept payment. Xynos is a payment gateway that supports multiple payment options to help you grow your business.
Python ascii()
Tags: python, programming, codenewbie, tutorial
Published: 2021-10-07 07:00:54

---
title: Python ascii()
published: true
date: 2021-10-06 15:00:00 UTC
tags: #python #programming #codenewbie #tutorial
canonical_url: https://itsmycode.com/python-ascii/
---

ItsMyCode |

The **`ascii()`** in Python is a built-in function that returns a printable and readable version of any object such as **Strings** , **Tuples** , **Lists** , etc. The **`ascii()`** function will escape the non-ASCII character using  **\x, \u or \U escapes.**

## ascii() Syntax 

The syntax of the **`ascii()`** method is 

```python 
**ascii(object)**
```

## ascii() Parameters

The **`ascii()`** function takes an object as an argument. The object can be of type **Strings** , **Lists** , **Tuples** , etc. 

## ascii() Return Value

The **`ascii()`** function returns a string containing a printable representation of an object. The **`ascii()`** function will escape the non-ASCII character using  **\x, \u, or \U. **

For example, the non-ASCII characters “ **¥** ” will output as `\xa5` and **√** will output as **`\u221a`**

## Example 1: How ascii() method works?

In case if you pass multi-line text to the **`ascii()`** function, it will replace the line breaks with “ **\n** ” as the value of the new line is “ **\n** ” 

```python 

# Normal string 
text = 'Hello World'
print(ascii(text))

# Text with Non-ASCII characters
ascii_text = 'Hëllö Wörld !!'
print(ascii(ascii_text))

# Multiline String

multiline_text =''' Hello,
Welcome to 
Python Tutorials'''

print(ascii(multiline_text))

```

**Output**

```python 
'Hello World'
'H\xebll\xf6 W\xf6rld !!'
' Hello,\nWelcome to \nPython Tutorials'
```

## Example 2: ascii() vs print()

In the below example, we will demonstrate the difference between the **`ascii()`** function vs. the **`print()`** function. The **`ascii()`** function escapes the non-ASCII character, while the **`print()`** function does not escape the value and prints as is.

```python 

# Normal string 
text = 'Hello World'
print('ASCII version is ',ascii(text))
print('print version is ',text)

# Text with Non-ASCII characters
ascii_text = 'Hëllö Wörld !!'
print('ASCII version is ',ascii(ascii_text))
print('print version is ',ascii_text)

# Multiline String

multiline_text =''' Hello,
Welcome to 
Python Tutorials'''

print('ASCII version is ',ascii(multiline_text))
print('print version is ',multiline_text)

```

**Output**

```python 
ASCII version is 'Hello World'
print version is Hello World
ASCII version is 'H\xebll\xf6 W\xf6rld !!'
print version is Hëllö Wörld !!
ASCII version is ' Hello,\nWelcome to \nPython Tutorials'
print version is Hello,
Welcome to
Python Tutorials
```

The post [Python ascii()](https://itsmycode.com/python-ascii/) appeared first on [ItsMyCode](https://itsmycode.com).
My Experience Using Flutter Web?
Tags: flutter, flutterweb, dart, flutterui
Published: 2021-10-06 14:56:52

On **March 3, 2021**, with the launch of **Flutter 2.0** Flutter team officially launched the stable version of Flutter Web. Every flutter fan's and critic's eye was on this launch, including me. I did not jump on the flutter web train immediately, but I waited two months to start my experimentation.

And I would say anything else but use the word **disappointment**. In my eyes, it didn't deliver on what I expected. They could have done better, but I made myself believe that the web was not the goal of Flutter. It had always been mobile.

**What discouraged me from using it?**

It was the high loading time when starting the app on chrome for the first time. Hot Reload worked very well, but Hot Restart was not perfect. And when I searched the web for the solution, I was unable to find a satisfactory result.

There is one thing which I would like to mention. I had no prior knowledge of web development before trying flutter web. That may have caused me such chaos.

And in the end, after contacting many lead developers, I tried using loader animation. The way to implement that is to add that in the index.html file. I overcame that problem, but still, I believe that there is no proper method to optimize your flutter web app for search engines. That in itself is a considerable drawback as of right now.

**So do I recommend Flutter Web?**

As of right now, **NO**. But having a look at the pace of updates by the Flutter Team, I see a bright future for Flutter Web and the Flutter framework itself.

**And I positively stand by my point that Flutter is the next big thing. Or Flutter is the beast but still in development.**

  

You can follow me :

  

[LinkedIn](https://www.linkedin.com/in/aasharwahla) -> [AasharWahla](https://www.linkedin.com/in/aasharwahla)

  

[YouTube](https://www.youtube.com/channel/UCVYgX4d8kQvR3XbQEm7b4Zg) -> [Aashar Wahla](https://www.youtube.com/channel/UCVYgX4d8kQvR3XbQEm7b4Zg)

  

[Instagram](http://instagram.com/aasharofficial) ->[Aashar.Wahla](http://instagram.com/aashar.wahla)
How TO Read XML Files From a Directory In Golang?
Tags: go, tutorial, beginners, programming
Published: 2021-10-06 14:53:23

Getting Specific Files from a directory by manually can be hard but it can be more hard when you know that there is thousands of and you have to choose only specific extension file.

So How do we make it simple to file specific files from directory, So there is the simple answer programming.

How? Just Write an script which reads the top level files from a directory and check the extensions of each file, If that file contains the same extension as you wanted then here you go.

It's easy to say it in words, so let's start writing some code so you guys can have idea of it..

First step We're creating a CLI tool and it going to take an argument which specifies the directory path(targeted location)
and for storing data directory path we've created a struct which have field of type string


Please Checkout This For Reading More:
https://kdsingh4.blogspot.com/2021/10/how-to-read-xml-files-from-directory.html
Ory Developer Conference
Tags: security, webdev, opensource, architecture
Published: 2021-10-06 14:43:13

Hey :wave: 

### We are excited to invite you to our first developer conference Ory Summit,  taking place on October 28th and 29th, 2021. 

- `free` , `virtual` 
- `28.10` + `29.10`

Topics range from 
- how to build your own Google-like IAM from scratch with open source, 
- modernizing your identity stack, 
- building robust authorization and authentication to 
- how to bootstrap a scalable complete SaaS infrastructure.

You will also have the chance to get some crisp and exclusive Ory Summit merch just by attending!

[Learn more and Sign up here](https://www.ory.sh/summit21?mtm_campaign=ory-summit-2021&mtm_kwd=social-dev-to)
How to Parse CSV a Text Variable
Tags: python, csv, parsing
Published: 2021-10-06 14:43:13

# The Problem

Most of us know how to parse a CSV file, but what about other sources such as a text block. For example, given the following block of text:


```python
text = """
uid,alias,shell
501,karen,bash
502,john,tcsh
"""
```

How do we parse this text. Should we write it to a file first, then read?

# The Solution

According to the documentation for the [csv] library, a CSV reader can handle a file, or anything that supports the iterator protocol, which includes list, or in-memory file objects. Let us explore the first solution, which splits the text into lines.


[csv]: https://docs.python.org/3.7/library/csv.html


```python
import csv

text = """
uid,alias,shell
501,karen,bash
502,john,tcsh
"""
reader = csv.reader(text.strip().splitlines())
for row in reader:
    print(row)
```

    ['uid', 'alias', 'shell']
    ['501', 'karen', 'bash']
    ['502', 'john', 'tcsh']


That was easy. Note that we called `.strip()` to remove whitespaces surrounding the text block before splitting it into individual lines. Next, we feed the lines to `csv.reader` and let it does its work.

Alternatively, we can use `io.StringIO` to turn the text into an in-memory file:


```python
import csv
import io

text = """
uid,alias,shell
501,karen,bash
502,john,tcsh
"""
in_memory_file = io.StringIO(text.strip())
reader = csv.reader(in_memory_file)
for row in reader:
    print(row)
```

    ['uid', 'alias', 'shell']
    ['501', 'karen', 'bash']
    ['502', 'john', 'tcsh']


Of course, these techniques also work with other kind of reader: `csv.DictReader`:


```python
import csv
import io

text = """
uid,alias,shell
501,karen,bash
502,john,tcsh
"""
in_memory_file = io.StringIO(text.strip())
reader = csv.DictReader(in_memory_file)
for row in reader:
    print(row)
```

    OrderedDict([('uid', '501'), ('alias', 'karen'), ('shell', 'bash')])
    OrderedDict([('uid', '502'), ('alias', 'john'), ('shell', 'tcsh')])


# Conclusion

Parsing a block of CSV text is not that hard, you do not need to write it to an external file and that is the beauty of the `csv` library: it can work with a number of input sources, not just file.
Resume Interview CheckList
Tags: resume, interview, job, webdev
Published: 2021-10-06 12:35:21

Part of Udemy Course on Mastering the Coding Interview

**Resume Sheet**
---------------

✅ Use a pre-designed resume template    
✅ Make the resume fit on 1 page   
✅ Include words from job description  
✅ Include company name you are applying to  
✅ Does your first item on your resume reflect what they are 
   looking for?  
✅ Experience titles demonstrate value  
✅ Do you have an online link?  
✅ Remove the word “I”  
✅ No buzzwords describing how great you are  
✅ Are you using Action words?  
✅ Measure everything in terms of impact, don’t just describe your 
    responsibilities  
✅ Technical Knowledge/Skills should include what they are looking 
    for Only show years if it is impressive  
✅ Include only sections/items that are impressive: Experience, 
    Projects, Education, Technical Skills  
✅ No typos or bad grammar  

<br/>
<h3 align="left">Connect with me:</h3>
<p box-align= "baseline">
<a href="https://discord.gg/HKxUV6jXPj">
  <img  alt="AmnaAbd's Discord" align="left" width="22px"  display="initial" margin="0" src="https://raw.githubusercontent.com/peterthehan/peterthehan/master/assets/discord.svg" />
</a>
<a href="https://twitter.com/AmnaAbd22">
  <img  alt="Amna Abdallah | Twitter" align="left" width="22px"  display="initial" margin="0" src="https://raw.githubusercontent.com/peterthehan/peterthehan/master/assets/twitter.svg" />
</a>
<a href="https://www.linkedin.com/in/amna-abdallah-2b615572/">
  <img  alt="AmnaAbd's LinkedIN" align="left" width="22px" display="initial" margin="0" src="https://raw.githubusercontent.com/peterthehan/peterthehan/master/assets/linkedin.svg" />
</a>
<a href="https://open.spotify.com/user/vzhpqhqmrep0yz70cxzpi45b5">
  <img align="left" alt="Amna's Spotify" align="left" width="22px" src="https://raw.githubusercontent.com/peterthehan/peterthehan/master/assets/spotify.svg" />
</a>
<a href="https://codepen.io/AmnaAbd" target="blank"><img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/codepen.svg" alt="amnaabd" align="left" height="30" width="40" display="initial" margin="0"/></a>
<a href="https://dev.to/amnaabd" target="blank"><img  src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/dev-dot-to.svg" alt="amnaabd" align="left" height="30" width="40" display="initial" margin="0"/></a>
<a href="https://instagram.com/amna.amouna.3114" target="blank"><img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/instagram.svg" alt="amnaabd" align="left" height="30" width="40" display="initial" margin="0"/></a>
</p>
Using babel's transform-runtime? It may not work well without "version" option.
Tags: javascript, infra, babel
Published: 2021-10-13 09:07:44

---
title: Using babel's transform-runtime? It may not work well without "version" option.
published: true
date: 2021-10-06 14:25:03 UTC
tags: javascript,infra,babel
canonical_url: https://blog.thoughtspile.tech/2021/10/06/babel-runtime-version/
---

IE11 is not dead yet, and our library is supposed to run there and make russian grandmas happy. As you can guess, we rely on babel’s [preset-env](https://babeljs.io/docs/en/babel-preset-env) a lot. We also don’t want our code to be 55% babel helpers, so we use babel’s [transform-runtime](https://babeljs.io/docs/en/babel-plugin-transform-runtime) — it should make babel `import someHelper from '@babel/runtime/some-helper'` instead of inlining it into every file. After making some build chain updates I went to see if the transpiled version was OK. And guess what I noticed? Some babel helpers were still there, inlined:

```js
import \_defineProperty from "@babel/runtime/helpers/defineProperty";
// go away transform do you have any idea who I am?
function ownKeys(object, enumerableOnly) { /\* blah-blah-blah \*/ }
function \_objectSpread(target) { /\* more blah-blah-blah \*/ }

var copy = function copy(obj) {
  return \_objectSpread({}, options);
};
```

WTF? I want to `import _objectSpread`, you lazy code! What’s wrong with you? A leak from an external library? An unexpected interaction with `preset-react` or `preset-typescript`? Corrupt installation? Babel bugs? No, no, no, no.

![](https://thoughtspile.github.io/images/sherlock.jpg)

The answer was simple — transform-runtime wants me to tell it what `@babel/runtime` version I have via [the `version` option](%60@babel/runtime%60). For some reason, transform-runtime assumes you have `@babel/runtime` version `7.0.0`, and if a helper was not in `runtime@7.0.0`, it won’t bother importing it. Babel is at `7.15.x` now, and a lot has changed. Anyways, if you pass the real runtime version you installed:

```js
exports = {
  "plugins": [
    ["@babel/plugin-transform-runtime", {
      // this is the magic line
      "version": "7.15.0"
    }]
  ]
}
```

`transform-runtime` will finally do its job as it should:

```js
import \_objectSpread from "@babel/runtime/helpers/objectSpread2";
var copy = \_objectSpread({}, props);
```

If you’d rather do it once, use `babel.config.js` and read the runtime version from `package.json` — both your dependency range and the version in node\_modules work fine, though I feel the latter is cleaner:

```js
// in babel.config.js
const requiredVersion = require('./package.json').dependencies['@babel/runtime'];
const installedVersion = require('@babel/runtime/package.json').version;
```

* * *

If you want your `@babel/plugin-transform-runtime` not to get lazy and really deduplicate all the helpers, set transform-runtime’s `version` option to the current `@babel/runtime` version. Also keep your babel stack updated, and try to match `@babel/*` versions. You’re welcome.
Blackjack Anyone?
Tags: javascript, css, html
Published: 2021-10-06 14:11:42

I am trying out the [Scrimba](https://scrimba.com) learning platform to practice my skills. I really enjoy the interface where you can stop the tutorial and code right on the same screen. Brilliant!

I am working may way through the Front End Developer career path because I want to solidify what I know and have it become more muscle memory and less Googling.

Here is a WIP [Blackjack Game](https://heidi37.github.io/blackjack-game/). I am coding it outside of the Scrimba platform so I can push it to GitHub and share with the world.
Deploying AWS Lambda Function Using AWS CLI
Tags: aws, cloud, javascript, serverless
Published: 2021-10-06 14:10:31

Install AWS CLI and checking whether the AWS CLI version.

https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html

Checking installation success.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rh3hfpge0sv4omkbd50n.PNG)

After that configure AWS CLI using Access Key ID and Secret Access Key. You can get Access Key ID and Secret Access Key go to AWS Management Console and click user name and go to My Security Credentials and click Access keys. If you haven't access the key you can click create a new access key.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/up2r9s3osj9v79v22cz9.PNG)

Create a folder and inside this folder create trust-policy.json file.

trust-policy.json
{
    "Version": "2012-10-17",
    "Statement": [
      {
        "Effect": "Allow",
        "Principal": {
          "Service": "lambda.amazonaws.com"
        },
        "Action": "sts:AssumeRole"
      }
    ]
  }

After that create IAM Role Using the following CLI command.

aws iam create-role --role-name basic-lambda-role --assume-role-policy-document file://trust-policy.json

You can get IAM role details and copy ARN details using the following CLI command.

aws iam get-role --role-name basic-lambda-role

Create basics-lambda.js file and store it previously created folder and zip this file.

basic-lambda.js
exports.handler = async function (event) {
  const { numberA, numberB } = event;

  return {
    sumResult: numberA + numberB,
  };
};

ZIP this file like the following.
Ex : basic-lambda-role.zip

After that create a lambda function using following CLI command.

aws lambda create-function \
    --function-name basic-lambda \
    --runtime nodejs14.x \
    --zip-file fileb://basic-lambda-role.zip \
    --handler basic-lambda.handler \
    --role arn:aws:iam::932747549174:role/basic-lambda-role

You can see following output.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/59f28lncvy112kvx0viu.PNG)

Go to AWS Management Console and search lambda and go to this service. After you can see created lambda function.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1w91dlu7unv3vhngk0og.PNG)

Go to your code part section and click the Test button. You can configure test event. You want to give the Event Name and values.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5fo341oehtrhjso2l8bj.PNG)

Finally, click again test button. You can see your function is working.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfoxdt82xoupezrnegl9.PNG)

You can delete the lambda function using AWS Management Console or CLI.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ar390ydlf0sr1rsp2gs5.PNG)

CLI command for remove lambda function

aws lambda delete-function --function-name basic-lambda

**Thanks for reading the Article.**
Reference - https://gitlab.com/lasantha96/aws-lambda-function-using-aws-cli.git
Kubernetes: best videos from September, 2021
Tags: kubernetes, webdev, tutorial, programming
Published: 2021-10-06 14:10:24

Let’s get down to Kubernetes and check out the most outstanding videos in September. Lessons learned, benefits unfolded and best practices were revealed last month.

[Modernizing a legacy app using Windows Containers and Kubernetes: Challenges and Lessons learned](https://meetupfeed.io/talk/modernizing-a-legacy-app-using-windows-containers-and-kubernetes-challenges-and-lessons-learned)
The main purpose of modernizing the hosting was to scale down maintenance efforts and costs. The speaker will take you through the hosting options, solution implementation, experienced challenges and more.


[Benefits of switching to Civo – Keptn case study](https://meetupfeed.io/talk/benefits-of-switching-to-civo-kubernetes-keptn-case-study)
You can obtain how Keptn utilizes Civo’s simplicity and speed from Juergen and how it benefits them in their day-to-day cloud native development.


[Security 101 – Best Practices](https://meetupfeed.io/talk/kubernetes-security-101-best-practices)
Get an overview of Kubernetes’ working while learning a few practices on how to secure your cluster when deploying a new cluster. This video covers everything you need from A-Z.