teleren/devto huggingface dataset:
Day 605 : Get It In The End
Tags: hiphop, code, coding, lifelongdev
Published: 2022-08-01 21:49:00

_liner notes_:
- Saturday : Pretty good day. Got stuff done. Went to set up a Helium miner at a friends house. Been like 2 days and it still hasn't produced anything yet! haha Got to the station and took a couple of quick videos with the flying camera drone thing. They came out pretty quick especially with the setup. Just turn a dial, press a button and it does its thing. I was able to get the shots done really quickly. Then it was time to do the radio show. Had a good time as usual. The recording of this week's show is at https://kNOwBETTERHIPHOP.com

![Radio show episode image with the Hulu logo and the words July 30th 2022 Doo Wop](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xyourp2qggiig2p661cc.jpg)

- Sunday : Did the untilit.works cyphers. Had someone let me know they are also participating. Had a good time. Got some stuff done on my side project and did a quick demo on stream. Did some chores. Ended the night studying some Kanji. I was really tired and didn't get too many characters in as normal.

- Professional : Today was pretty much setting myself up for the rest of the week. Had a meeting with my manager and talked about some upcoming things. I made some tickets for upcoming tasks. Trying to think through this upcoming month with these events. Especially the one to Asia. A lot of things to work through and fill out.

- Personal : Got the location validation on the form for my travel site working. Now to style the form, get it posting to the database, list on the admin section so I can approve them, so they can show up on the map.

![View of a redwood forest in Crescent City, CA, USA with some sunlight shining through the tree tops.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wgz28xthygtihzgg1wpl.jpg)

Really need to step up my Kanji study. I'm sure by going through the process, I'll get it in the end. I'm actually recalling characters. Going to work on getting data from the front end to the database and then showing up on the admin dashboard of my side project.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube wjRko9G_nBM %}
How to debug like a PRO in Nodejs?
Tags: node, javascript
Published: 2022-08-01 21:32:00

Debug like a PRO with the 𝘂𝘁𝗶𝗹.𝗱𝗲𝗯𝘂𝗴𝗹𝗼𝗴 method.

It allows you write conditional debug messages to 𝘀𝘁𝗱𝗲𝗿𝗿 based on the existence of the 𝗡𝗢𝗗𝗘_𝗗𝗘𝗕𝗨𝗚 environment variable.

When the value passed match the one defined in your code, messages will be logged. Otherwise, these log statements will have no effect.

Obviously, this is a perfect feature for collecting debug logs in order to identify problems. Library authors use it, and I'm sure a lot of you noticed it with some of the libraries in the community.


As you can see in the snap, I'm running the code like this:
𝗡𝗢𝗗𝗘_𝗗𝗘𝗕𝗨𝗚=𝗮𝗽𝗽 𝗻𝗼𝗱𝗲 𝘀𝗮𝗺𝗽𝗹𝗲.𝗷𝘀

The options for the 𝘂𝘁𝗶𝗹.𝗱𝗲𝗯𝘂𝗴𝗹𝗼𝗴 method include:

𝘀𝗲𝗰𝘁𝗶𝗼𝗻: Name of the debug function for this portion of app.
𝗰𝗮𝗹𝗹𝗯𝗮𝗰𝗸: Called only once. Can be used to replace the logging function.

Notes on the 𝗡𝗢𝗗𝗘_𝗗𝗘𝗕𝗨𝗚 env var:

- It supports wildcard, so 𝗮𝗽𝗽* and * work.
- You can specify multiple sections like this: 𝗮𝗽𝗽,𝗳𝘀,𝗻𝗲𝘁,𝘁𝗹𝘀
Which helps in filtering the debug logs to what you only care about.

Did you learn something new today?

Like and share this post, and follow me for more!

![debuglog](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ne5b5zj31lyfjrsig3u1.png)
One Week Away
Tags: beginners, career, codenewbie, opensource
Published: 2022-08-01 20:15:19

One week away from starting my journey into becoming a web developer, basically long story short I am attending a coding bootcamp at UNC Charlotte. I am a former chef that worked in the hospitality industry for over 14 years, and I am 36 years old. For anyone reading this that is diving into a career change I completely get your mind right now, the what if question always seems to pop in the head. It's hard coming from something you know so well to something so vast, challenging, and ever evolving. Let me just say "I understand!" My brother is the one that got me interested in this path, he is a front-end developer. He gave me a lot of valuable resources to just learn basics, one I personally have been learning the most from is "Web Dev Simplified." I personally just like how he teaches and explains each process of coding. I just started out with his beginner course on YouTube and just coded along with him. I built my first website with him which was a victory in itself! I just started learning a very small fraction of JavaScript on "Code Academy", which as been very resourceful. To every person that is entering this industry I wish you nothing but success! I will try to post another blog on my progress during the bootcamp.
First Codecademy Assignment
Tags: beginners
Published: 2022-08-01 19:51:57

I'm at the start of my journey for learning how to code. I'm taking courses on Codecademy. My first Codecademy assignment involves creating a flow chart and pseudocode for a string searching algorithm. It's harder than I thought to apply the concepts and create my own algorithm. Attached are the 3 components of the assignment I completed. Would love any feedback or comments regarding gaps in my current implementation.

Assignment Instructions:
Begin by writing out the steps for the algorithm! Broadly, this pattern searching algorithm will do the following: 1. Take two string values called text and pattern. 2. Search through the value of text to check if the value pattern can be found within text. 3. Notify the user if pattern was found in text or not. Flesh out this overview to create a full list of instructions that can later be transformed into a flowchart. 

Written out steps:
	1. Start
	2. Create a string variable named "pattern" and initialize it with a dummy value. This variable stores the value of the pattern we are searching for in the data set of interest
	3. Create a string variable named "text" and initialize it with a dummy value. This variable stores the text data that we will be searching through to identify if any of the characters in the string match the pattern
	4. Input the value of the text that we plan to search through
	5. Input the value of the pattern that we are looking for in the text
	6. Decision: Have we finished searching the text value?
		a. If no, continue to step 7
		b. If yes, display a message to the user saying that 
	7. Iterate to the next word in the "text" variable
	8. Compare value of "text" to the value of "pattern".  Decision: are they equal?
		a. If yes, go to step 9 
		b. If no, go back to step 6
	9. Return a message to the user that the value in "pattern" does match with a value in "text".
	10. Finish

Pseudocode:
Define the text to search
Define the pattern to match a set of characters in the string
If the entire string hasn't been searched,
	Iterate to the next word in the text variable
		If current word == text variable, then return message to user saying the pattern does match with value in text
		Else, increment to next word
Else, display message saying the pattern does not match the text.

Flow Chart:
(attached)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cz035nc6r103ji97x87z.png)
Create a Sudoku Game with Python
Tags: python, webdev, tutorial, showdev
Published: 2022-08-01 19:43:00

Hello Dev brothas and sistas !
This is a Sudoku game on Python.
It is not a tutorial, I am coding quietly, after I changed lately some minor issues in the code, and you will find the source code in the link below.
My goal is to code an AI playing chess or Dominos also using Python - guilty :D 
Take a look to the video here : 
{%youtube VMz1t88d5kM%}

Over and Out !


Source code: https://github.com/BekBrace/sudoku-python
Join on Facebook: @bekbraceinc
Follow me on Twitter / Instagram : @ Bek Brace
Roadmap To Become A Flutter Developer
Tags: flutter, android, ios, webdev
Published: 2022-08-01 19:37:04

1) Learn Basic of Dart 

 2) Choice IDE( Android Studio, Vs code)

 3) Learn about widgets and makes the UI of the app.

Explore material, Cupertino, Stateless Widget, Statefulll widget, Containers.

4) Work on assets in flutter and upload images from the assets folder and from the network.

 5) Learn Static user interference ( Row, Column, Stack, Expanded, Constraint Box).

 6) Learn Dynamic user interference (Listview, Gridview)



7) Make some animation.For animation use (AnimatedWidget,AnimatedBuilder,AnimationController,CurvedAnimation,Hero,Transform).



 8) Use 3rd party libraries. (HTTP,SQfLite,cached_network_image).

 9) Learn about Behavior Components. (Permission,

Local Notification, Push Notification)

10) Use State management (Provider,BLoC,Getx)

11) Use Firebase for the Storage(Firebase Auth, Firebase database, Firebase Storage, Firebase Messaging).



And the last thing.

Make Some Projects on flutter Keep Learning and try to improve your code.
Creating HTML <a> Anchor </a> Tag With JAVASCRIPT
Tags: javascript, programming, html, webdev
Published: 2022-08-01 19:36:31

This article will help you to **_create link over any text_** you have used in your webpage without using anchor tags of html . 

Also whenever you will click on link it will *ask* you to **_confirm whether you want to continue or not ..._** 

![continue or not](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f3xvrhp0ktjfobllh2il.jpg)
 
 
Step 1 

We know Browser know our current workspace and JavaScript is the best way to communicate with browser . So with this command 
`document.location="delete_me.html"` JavaScript can ask for your current location from Browser . 

Step 2 

We have confirm dialog box in JS `confirm()`which gives its o/p as Boolean values . These values can be used with if and else conditions .

Code:
```
<script>
function abc(){

var c= confirm("Do you want to Continue....?? ");

if(c)
     {
          document.location="delete_me.html";
     }
else
     {
          alert("we stay here");
     }

}
</script>

<body>
<div onclick=abc()>Click me </div> 
</body>
```

![Thank You](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r08uz63jzes80iu2pxzj.png)
Cómo ver los valores dentro de un FormData
Tags: javascript, tutorial, beginners, spanish
Published: 2022-08-01 19:29:30

Mientras desarrollamos, es muy común querer hacer un `console.log()` sobre algún valor para ver lo que estamos enviando a nuestra API.
Sin embargo, ¡no siempre es posible!

Si estamos trabajando con un `formData`, no podemos hacerlo:

```
const formData = new FormData();
formData.append("file", image.file);
console.log(formData);
```

La forma correcta de ver si el apéndice se hizo correctamente sería usando `formData.get('key')`

Así, en nuestro ejemplo, para comprobar si el fichero se ha rellenado de forma correcta, hacemos

```
const formData = new FormData();
formData.append("file", image.file);
console.log(formData.get('file'));
```
I'll review your LinkedIn profile for free
Published: 2022-08-01 19:28:00

Do you think LinkedIn is lame and therefore ignore it?

Well, perhaps it is 🤷‍♀️ But guess what: it doesn't matter.

LinkedIn can be life-changing (if you know how to use it).

I have a pretty dope LinkedIn profile (~1,600 followers) that does quite a few things for me:

 ✅ I get multiple recruiter messages daily (not crappy jobs at agencies, actual decent job vacancies at well funded London-based product companies). If I was looking for a job right now, I wouldn't have to apply cold and could just reach out to my network of recruiters at top tech companies.
 ✅ I get invitations to speak at events.
 ✅ I get offered collaborations with other bloggers and NGOs.
 ✅ I'm building a personal brand and a strong professional network and making myself more resilient in a recession.

So I want to try something.

I want to do FREE reviews of YOUR LinkedIn profiles during a LinkedIn Live and share my tips on how you can improve your profile and get more jobs and more opportunities.

This is for (Aspiring) Software Engineers ONLY. Career changers are very welcome to apply ❤️

DM me on [LinkedIn](https://www.linkedin.com/in/beetlehope/) or leave a comment here if you are interested.

I'd like to start with 5 profiles, first come, first served. Let's do this.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/msmjaf00ptx6oo8gsogj.jpg)
tesseract not working in the spyder
Tags: tesseract, spyder, pytesseract, ocr
Published: 2022-08-01 19:22:13

i am getting an error when i use the python tesseract in spyder. i have installed the tesseract engine and install the pytesseract package too.
i am getting the below error

TesseractNotFoundError: C:\ProgramFiles\Tesseract-OCR\tesseract.exe is not installed or it's not in your PATH. See README file for more information.
i have set the tesseract folder path in system environmental variables too.
please help me i am struck 
 the below information is the console shown error


```
runfile('C:/Users/Siddardha/.spyder-py3/python_using_pytesseract.py', wdir='C:/Users/Siddardha/.spyder-py3')
Traceback (most recent call last):

  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:254 in run_tesseract
    proc = subprocess.Popen(cmd_args, **subprocess_args())

  File C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py:108 in __init__
    super(SubprocessPopen, self).__init__(*args, **kwargs)

  File C:\ProgramData\Anaconda3\lib\subprocess.py:951 in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,

  File C:\ProgramData\Anaconda3\lib\subprocess.py:1420 in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

FileNotFoundError: [WinError 2] The system cannot find the file specified


During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File ~\.spyder-py3\python_using_pytesseract.py:22 in <module>
    texts = pytesseract.image_to_string(img)

  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:416 in image_to_string
    return {

  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:419 in <lambda>
    Output.STRING: lambda: run_and_get_output(*args),

  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:286 in run_and_get_output
    run_tesseract(**kwargs)

  File ~\AppData\Roaming\Python\Python39\site-packages\pytesseract\pytesseract.py:258 in run_tesseract
    raise TesseractNotFoundError()

TesseractNotFoundError: C:\ProgramFiles\Tesseract-OCR\tesseract.exe is not installed or it's not in your PATH. See README file for more information.


```
It's never too late: Mechanical engineer to Web developer
Tags: beginners, firstpost, webdev, react
Published: 2022-08-01 19:03:00

_Hi everyone_,

## I'm Sagar Panchal. I'm a Jr. React JS developer who started my career 8 years ago as a mechanical quality control engineer and came to the IT industry 2 years ago.


Here I'm writing my **first blog**, I'm reading blogs from last month and it pushed me to write something.
I'll write whatever problem I face when I got stuck and when it is resolved.


I want to share my experience and wanna tell it's true that _it's never late to start a new beginning_.


I worked as Mechanical Engineer for 6 years but I'm not happy with my life as it's an 11 to 12 hours hard work job and no growth as 6 year experience.

One day my friend told me to learn Python language. I tried but I didn't understand anything at all. But I keep trying to watch YouTube tutorials for python, Django, 


_(I'm that idiot who doesn't know what is an API / frontend/ backend or what is database and still tried to make the project.)_
I've made an app for Eminem Lyrics. 
[First Project](https://eminemstan.herokuapp.com)
Stack: Django as backend and HTML, CSS with bootstrap.


After completing a project I deployed it in Heroku 😅
And I didn't sleep for two days straight because I had no idea what I'm doing but thanks to YouTube.
Finally, after two days I completed that deployment _(And I literally jump out from my chair and started dancing :D )_.


## I understand one thing that moment I can make ANYTHING done. ANYHOW.
I'm stubborn.


After trying to get a job as a python Django developer I understand I need to gain experience but I didn't get a job at all.


So I learn basic to advanced HTML, CSS, and JavaScript.


It took me 3 times to watch 25+ hours of JavaScript tutorials to understand it properly. Then I learn React js and redux.


After completing react course and a good portfolio project I applied for a job on LinkedIn and I got a good response. And finally, I got a good job as react js developer.


[Portfolio link](https://portfolio-c09e1.web.app/)
Stack: React JS


- Be consistent.
- Stay positive about learning you'll get there.
- No one knows everything.
- Try to write lengthy code don't go for one-liners.
- Use pen and paper to write problem and solution before going for a solution.
- Practice makes you better every day.


_At the age of 25 if I can start and get better out of it then you probably will._ ✌🏻


Keep learning and practicing. Don't try to be perfect.  ✌🏻


Thank you IT and thank you all. 😊


> But it's never too late to start a new beginnin'
> That goes for you too, so what the hell you gon' do?
> Use the tools you're given!
- Eminem ( My Idol )'s song Believe.


Feel free to give suggestions and sorry for the grammar mistakes.
A Few Words on Webhooks
Tags: web, webhook, webhooks
Published: 2022-08-01 18:58:00

In 2006 during working on a startup, Jeff Lindsay wrote about an architectural pattern he called “webhooks”. Since then almost all web developers have heard this term.

I think webhooks are mostly based on the Observer design pattern. Observer is a pattern where an observer is observing (looking) for an event to be fired. The important part here is that the observer is not polling anything, It registers itself to the origin to get notified when the desired event happens.
Polling is another method where the destination is checking for new changes in origin constantly, As opposed to what the observer pattern does.

Webhooks are very similar to observers. A webhook is basically an endpoint that should be notified (called) when an event is dispatched. This approach is better than the “Polling” method in most cases. It is faster and uses less resource.

So by webhooks, Applications can use a so-called “hook”, To send automated messages to each other when something (an event) happens. For example, When you buy a product online, You receive an email or an SMS. What happens here is that the email or SMS provider provides an endpoint (in this context a webhook) and the store calls this endpoint when for example an order is placed.

You can learn more about webhooks in this crash course on [youtube](https://www.youtube.com/watch?v=41NOoEz3Tzc).
Data Transfer Options in AWS
Tags: aws, cloud, cloudmigration, datatransfer
Published: 2022-08-01 06:41:28

Businesses around the world are increasingly migrating to cloud. Data is an important asset of any business. Thus before moving data to cloud, it is imperative to understand the use case and pick the right tool for data transfer. AWS offers a wide range of services to help you smoothly migrate your data. 

So with the variety of data transfer services available with AWS, how do you choose the right service. Here, I assist you decide and choose the right AWS service, through a visual guide. 



![AWS Data Transfer Options](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sfsq8gqtxej8vgm1qnsp.png)


See the full diagram [here](https://www.xmind.net/m/r54GKa) 


> _Note: size of data and available network bandwidth, form a major decision factor in choosing the right data transfer solution. Refer the chart to get an approximate idea on the data transfer speed (source: google cloud)._

![Data Transfer Speed Chart](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kwi70t4er0xrqb6alzvv.png)

> _AWS also supports products from [AWS Storage Competency Partners](https://aws.amazon.com/backup-recovery/partner-solutions/) to integrate your on-premises data with AWS cloud._

## Closing Thought
I hope this post helps you in selecting the right AWS service for your cloud data transfer case!
How To Configure a VPC in AWS CDK
Tags: cdk, aws, cloud, iac
Published: 2022-12-18 13:43:14

---
title: How To Configure a VPC in AWS CDK
published: true
date: 2022-08-01 18:44:57 UTC
tags: cdk, aws, cloud, iac
---

Virtual Private Clouds (VPC) are separate networks that you can create on your AWS account to have some separation between the AWS resources that you deploy. They are required by all AWS services that are not fully serverless and thus have to deploy in your account.

Every AWS region comes with a default VPC that has one public subnet for each availability zone (AZ), but it is recommended to deploy your AWS resources in a custom VPC that is tailored to your deployment needs.

Read more about VPCs [here](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-getting-started.html).

## Basic Multi-AZ VPC

Here is a basic VPC with a single NAT Gateway, on three different availability zones each with public, private, and private isolated subnet.

```
const vpc = new aws_ec2.Vpc(this, 'MyVpc', {
  // defines the private IP subnet used for private subnets in all AZs
  cidr: '10.0.0.0/16',
  // how many AZs you want to use
  maxAzs: 3,
  // one nategateway per private subnet by default,
  //reduce number to save costs on dev envs
  natGateways: 1,
  subnetConfiguration: [
    {
      // subnet masks => defines how many ips of the vpc ip pool
      // get used for the public subnets in each AZ
      cidrMask: 26,
      name: 'Public',
      // public subnets allow internete ingress and egress
      // internet access in both direction via internat gateway
      subnetType: aws_ec2.SubnetType.PUBLIC,
    },
    {
      cidrMask: 26,
      name: 'Private',
      // private network with no internet ingress but
      // internet egress. Internet egress gets routed through nat gateway
      // to the internet gateway
      subnetType: aws_ec2.SubnetType.PRIVATE_WITH_NAT,
    },
    {
      cidrMask: 26,
      name: 'Private Isolated',
      // private network with no internete ingress or egress.
      subnetType: aws_ec2.SubnetType.PRIVATE_ISOLATED,
    },
  ],
});

```

> Set the `natGateways` to `1` if you deploy a dev environment, they are not for free.

## Enable VPC Flow Logs

VPC flow logs contain log lines for each IP layer event that happens in your VPC. The flow logs are in general quite useful to troubleshoot issues with over-restrictive security groups or to monitor your network traffic in your VPC.

You need a CloudWatch log group as a sink for the flow log and I recommend you configure a retention policy. CloudWatch logs get charged per GB/per month.

```
const vpc = new aws_ec2.Vpc(...)

const logGroup = new aws_logs.LogGroup(this, 'MyLogGroup', {
  retention: aws_logs.RetentionDays.FIVE_DAYS,
  removalPolicy: RemovalPolicy.DESTROY,
});

const role = new aws_iam.Role(this, 'VpcFlowLogRole', {
  assumedBy: new aws_iam.ServicePrincipal('vpc-flow-logs.amazonaws.com'),
});

new aws_ec2.FlowLog(this, 'VpcFlowLog', {
  resourceType: aws_ec2.FlowLogResourceType.fromVpc(vpc),
  destination: aws_ec2.FlowLogDestination.toCloudWatchLogs(logGroup, role),
});

```

> Default retention policy is to keep the logs forever