teleren/devto huggingface dataset:
How I became a software engineer at 16 without a CS degree
Published: 2022-09-29 11:43:22

When I was growing up, I was someone who was interested in gaming, I was a big time gamer and I could even spend 4 hours playing games. In January 2019, I reached to an extent when I wanted to see what really happens behind the scenes of game, that’s when I started to hear stuff like coding, programming, development and I was like “Yes I’m in”. Long story short I googled the how tos and the number 1 option was to learn C++.

I downloaded some e-books, development tools and started learning. To be honest with you it was a nightmare learning C++, I didn’t have a mentor and I only managed to grasp the very basics like decision making, conditionals, file system, etc. As I had no idea on how to build projects, I ended up learning HTML, CSS & Javascript. Thanks to Rafeh Qazi from [Clever Programmer](https://cleverprogrammer.com), he really made my coding life easier and I started to build static websites. 

**June 2019**
I came across a certain software engineering course on Udacity and quickly enrolled. It was C++ again backed with C#. I learnt many concepts in software engineering like the complete SDLC, distributed systems design, databases, design patterns, building web applications from start to finish using ASP.NET Core, etc. I finished the course in 4 months and by that time I was feeling it in my veins that I’m now a software engineer. I started to build my own projects and experimenting with other technologies like Node.js, Django, React.js, Angular, etc.

**May 2020**
I started freelancing. I learnt how to communicate with my clients and deliver projects on time. I built web applications, desktop applications and websites. I didn’t make that much from freelancing as I was still in school so most probably I worked on weekends and holidays.     

**September 2021**
I got hired by an Indian company called [Pabbly](https://pabbly.com) which  provides a subscription billing software. To be honest with you, the interview was tough, it was just like a normal Google coding interview so had to solve 4 coding problems, 35 minutes each and passed 3 out of 4 questions. I worked with other software engineers to implement the affiliate management system. Though I was working remotely, I had a lot of fun interacting with Indian developers through live video calls. I worked there for almost 10 months. Other than writing code, I did technical documentation writing and code reviews. 

Right now I’m currently 19 years old, only left with 2 months to finish my final high school exams and I can’t wait to work physically for a tech company you know I wanna experience those stand-up meetings, the corporate culture,  interact with other developers physically, etc.
How trigger browser to make a PDF from HTML using window.print()
Tags: javascript, webdev
Published: 2022-09-29 11:41:25

---
title: How trigger browser to make a PDF from HTML using window.print()
published: true
description: How you can generate a pdf from HTML/CSS in the browser using window.print().
tags: 
//cover_image: https://direct_url_to_image.jpg
---

Here is how you can create a pdf from html/css on the client side (no backend or external libraries involved). We will take advantage of the `window.print()` and some specific CSS.

Unfortunately, this will not work on mobile browsers (as pointed out in the comments).

Needed styles for the `window.print()` function:
```css
* {
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(65, 65, 65);
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
}
       
@media print {
   @page {
     margin-left: 0.8in;
     margin-right: 0.8in;
     margin-top: 0;
     margin-bottom: 0;
   }
}

#container {
    width: 800px;
    margin: 0 auto;
}

```
Of course, you can set other values for `font-family`, `color` and `#container`. Add the rest of the styles for your custom pdf.

Next, we need to trigger the `window.print()` function which is native to the browser. So add below js in a `script` tag.

```js
document.addEventListener("DOMContentLoaded", () => {
    let printLink = document.getElementById("print");
    let container = document.getElementById("container");

    printLink.addEventListener("click", event => {
        event.preventDefault();
        printLink.style.display = "none";
        window.print();
    }, false);

    container.addEventListener("click", event => {
        printLink.style.display = "flex";
    }, false);

}, false);
```

Here is a basic html:
```html
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Add here the styles and script we described up -->
    <title>This will be the title of the pdf file</title>
</head>

<body id="container">

    <a href="#" id="print">GENERATE PDF!</a>

    <h1>Super cool custom pdf</h1>

    <p>This pdf is generated from the client side without any external libraries!</p>

</body>

</html>

```
And... that's it!

Here is how what we did up will work:

![generate-pdf-gif](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ta35elxm9dyq0m9k5x96.gif)
Ways for Stopping Contact Form Spam in WordPress
Tags: wordpress, contact, form
Published: 2022-09-29 11:36:07

Are you currently getting a lot of spam messages through the contact form put up on your WordPress site?

Contact form spam is one of the common issues most website owners deal with. This means some spambots keep sending excessive emails to your inbox. It makes it difficult for you to sort the genuine users from the thousands of spam entries.

Though the best news is that there are different automated ways through which you can easily stop the contact form spam on your WordPress site. Now you are ready to focus more on your business success.

In this guide, we will discuss the different methods through which you can stop the contact form spam on your WordPress site.

[https://www.milesweb.in/hosting-faqs/ways-for-stopping-contact-form-spam-in-wordpress/](https://www.milesweb.in/hosting-faqs/ways-for-stopping-contact-form-spam-in-wordpress/?utm_source=devto&utm_campaign=dev-to&utm_medium=pravind-290922)
Release v1.0.2 - Prom-UI
Tags: showdev
Published: 2022-09-29 11:29:25

The version 1.0.2 of [Prom-UI](https://github.com/Adaendra/prom-ui) has been released today.

## Changelog

- #5 - Correct some display issues with AMP *(Amazon Managed Prometheus)*
- #7 - Add an health check endpoint

---

## Links
- [Docker Hub](https://hub.docker.com/r/adaendraa/prom-ui)
- [Github Project](https://github.com/Adaendra/prom-ui)

---

Don't hesitate to use Prom-UI and give a feedback!

Have a nice day! 🍺
What's Your Personal North Star Metric?
Published: 2022-09-29 11:28:13

A year back, I realized that there were days where I would be very distracted and all over the place with my work. There were days where even though I worked ‘hard’ I wasn’t sure the right intentions drove me and there were days that pleased me so much I would be smiling when I finished my workday. I would sometimes even punch the air. It’s almost my body and subconscious know the right thing I should be doing. It has its unsaid metrics, which may not be what’s on your company goals sheet.

Ever since then, I started tracking it. Personally, it’s probably my most accurate north star metric.

I have a simple entry in my notes app on my phone that contains the number of times I have made myself smile with my work. It doesn’t matter what other metrics were achieved or not; it doesn’t matter if the task was a small or big feat. If I am smiling by the end of it, I give myself a point and add it to the total. It need not always be 1 point. 
I remember when I lost 5 of the blog posts I had written because my phone stopped working, and I had not saved it to the cloud. I was so depressed, and I couldn’t write for a couple of days. Then when I finally picked myself up and re-wrote just 1 of those articles, it was such a big feat given the circumstances that I gave myself a broad 5 smiles. Each blog post typically earns one smile because I knew how crucial that I overcame the disappointment was and how important it was to keep the habit going. I am smiling right now because I still am proud of it, and it always makes me happy.

The author is the founder of Proxies API, a proxy rotation api service.
How do I get the historical floor price data of a specified NFT interval in minutes?
Tags: ethereum, nft, smartcontract, api
Published: 2022-09-29 11:20:25

**  Through an NFT contract address and a timestamp in minutes, the historical floor price at that moment can be returned.**

  This floor price is the floor price listed in the market (like the floor price displayed by gem.xyz), not the sale floor price.
For example, the function of nftscoring.com is very good, and you can also capture its api address for querying historical floor prices, but it can only display historical floor price data within 30 days, and it does not have 1-minute precision.

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

  Many platforms have this function, but unfortunately, when querying historical floor prices for all time periods, the time interval for returning data is often hours or even days.

**  I have been trying for a few days to solve this problem. Happy to be able to ask questions here. I hope you can give me some pointers on what I should do, thank you very much.**
Solar Energy Projects For Students
Tags: solarenergy, ece, programming, tutorial
Published: 2022-09-29 11:18:13

Engineering student projects for B.Tech and M.Tech final year students. Takeoff Edu Group offers a wide range of projects best for [solar energy projects for students](https://takeoffprojects.com/solar-energy-projects-for-students) looking for magnificent final projects at low cost. 
 
Solar energy is nothing but the bright energy emitted by Sun. We may convert this solar energy into electricity either directly using photovoltaic( PV), or laterally using concentrated solar power( CSP) with the help of lenses or glasses and tracking systems to concentrate a large area of sunshine. 
 
This solar energy is substantially useful in solar road lights, bus solar irrigation systems, business junction signal lighting, etc. numerous people are interested in exercising this solar energy in real life also. 
 

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

As a result, engineering pupils are showing a lot of interest in doing systems on solar energy. So, then we're furnishing a list of solar energy system ideas that may be helpful for engineering pupils in completing their B.Tech successfully. These systems are substantially useful for ECE and EEE scholars.
 
Takeoff Edu Group provides the most creative conceptions and ideas that can make very effective final year projects for scholars, experimenters, and engineers. So browse through our list of [solar energy projects for students](https://www.youtube.com/watch?v=OIqHnPnip2g) and choose the smart final year projects for your requirements. 

Renewable energy projects for students are a great way to familiarize them with solar energy. That is why we here listed some solar energy projects for students that will give students knowledge of renewable energy without boring them.

Few of the solar energy projects for students:

- [Simulation and Modelling of MPPT based PV System Connected with Boost Converter.](https://takeoffprojects.com/project-details/simulation-and-modelling-of-mppt-based-pv-system-connected-with-boost-converter--14934)
- [Wireless Electric Vehicle Battery Charging System using PV Array](https://takeoffprojects.com/project-details/wireless-electric-vehicle-battery-charging-system-using-pv-array--14427)
- [Control Of Pv System With Mode Transition Strategy](https://takeoffprojects.com/project-details/control-of-pv-system-with-mode-transition-strategy--14682)
- [Integration of photovoltaic energy into the electrical network using a multi-level(three level SVPWM) inverter with Z source
](https://takeoffprojects.com/project-details/integration-of-photovoltaic-energy-into-the-electrical-network-using-a-multi-levelthree-level-svpwm-inverter-with-z-source--14398)
Web browser and search engine #
Published: 2022-09-29 11:16:00


In today's world internet is the basic need we use search engine and web browser for surfing on the internet to view content on the internet we use web browser and to access that content from the internet we use search engine many folks get confused between browser and search engine 
Although search engine and web browser work together but there are difference in between them

**Browser** 
✅Browser is the window to internet 
✅Web browser allow you to retrive, read the content  from the web page available on the web server and these web page found out with the help of search engine 
✅A web browser allow you to see the searched content
Firefox , brave are example

**Search engine** 
✅A search engine is used to find the information in the World Wide Web
✅We access search engine through browser 
✅Search engine require database 
✅Search engine allow you to find out particular content from the internet 
Goggle, Bing , duckduckgo are some examples of search engine 


**In closing**:
The content available on internet
✅ Is display to the users with the help of browser,  In browser you enter the url
 ✅ Find out with the help of search enginen , In search engine you enter the key words or phrase 




That's wrap up 

Thanks for reading 

Do consider to 
like ♥️
Comment 💬

And follow me  👉 @learnwithbrain For more

Means Alot 💙
Show dev.to: CMD + K for AWS Console extension
Tags: webdev, aws, productivity
Published: 2022-09-29 10:53:24

---
title: Show dev.to: CMD + K for AWS Console extension
published: true
description: Browser Extension adding Fast & Smart Command Bar for AWS Console
tags: webdev, aws, productivity
---

Hi everyone,

How many times you felt lost in the AWS Console? All the services, regions, and suboptimal UI make using AWS troublesome.

Built-in search also doesn't help. Often in returns irrelevant results and most importantly, it's not context aware, it knows nothing about **your** resources.

I decided to solve this problem and created this:

✨ [**CloudTempo**](https://cloudtempo.dev) - _Fast & Smart Command Bar for AWS Console_ ✨

{%embed https://twitter.com/rafalwilinski/status/1569356215565565952 %}

[**CloudTempo**](https://cloudtempo.dev) lets you:

- Quickly find your AWS resources:

![Searching your resources](https://cloudtempo.dev/_next/image?url=%2Fresources.png&w=640&q=100)

- Even if you're not sure what's the name; fuzzy matching included:

![CloudTempo fuzzy matching](https://cloudtempo.dev/_next/image?url=%2Fmistakes.png&w=640&q=100)

- Use query language to precisely find that pesky resource:

![CloudTempo's query language](https://cloudtempo.dev/_next/image?url=%2Fquery-lang.png&w=640&q=100)

And much more!

CloudTempo is available for [Chrome](https://chrome.google.com/webstore/detail/cloudtempo/hnjemcffliolmflachhfoeaojlomanph) and [MS Edge](https://microsoftedge.microsoft.com/addons/detail/cloudtempo/blflgmdpajfmmcgbbekldlldolbpmdhb).

Learn more about it [here](https://cloudtempo.dev/)
A Reminder for last few months to 2023
Tags: programming, career, todayilearned, hustle
Published: 2022-09-29 10:20:30

Well its almost September ending and only 3 months are left for 2k23🙄.I know we community with full of professionals, specialist, scientist ,freelancers and more... But the most important category which should take these year ending seriously is the 2022 batch graduates who are not yet placed .
The reasons can differ for everyone...
👉maybe you are a student from a Tier III college which don't have appropriate placements.
👉Maybe you have not got that proper mentorship during your college days in graduation.
👉Maybe you spend your whole pandemic by watching series/drama and not utilizing that time for skill furnish
👉Maybe you also spend the time by just hanging around with friends while you were back to college at finals.
👉Maybe it can be anything🤷‍♀️ as I said earlier the reasons differ..._huh its tough!!_

And if you are preparing whole heartedly you must definitely have been came through this terms...
Data structure , algorithms , and many programming related concepts and yes these all things really play important or you can say these are our Weapons for a Long long long run🏃‍♀️ in this so called **War of silicon valley**...

Hope so you are working on your skill set and furnishing your weapons for better use...look if you have committed you can do it yaaa some will finish fast and some will slow its all the matter of so called 'SATISFACTION' .

Just don't let your fire turn down man🔥🔥🔥

Thankyou for reading till end 😀
All the best 💜
Day 9-10: Webauthn library: done! 🎉
Published: 2022-09-29 09:15:40

It's done. The small helper library is finally done!
 
{% embed https://webauthn.passwordless.id %}

- pages / CDN configured properly
- links were fixed
- readme improved
- the missing verification algorithm was added
- tested it

It was time consuming grunt work. But now it's done. Hooray! 🎉🎉🎉 

There is certainly room for improving the code, the docs and the tests, there always is, but it's good enough for me! Now I will take a small break and soon focus on the next step(s). After all, this was just a small stepping stone of a grander project.

I also wondered about the next steps:

- Participate in Hacktoberfest? 
- Showing this lib to specialized communities?
- Writing a Dev.to article about something?
- Enjoying some free time (yay!)

We'll see, stay tuned.
javascript: Pure Function
Tags: javascript, webdev, functional, programming
Published: 2022-09-29 06:34:46

  
### Two Rules

1. Given the same input, always return same output.
2. Produces no side effects

**Use:** Easy to refactor, makes code more flexible and adaptable.

### Case 1

```javascript
// Pure function.
const multiplyNumbers = (x,y) => x * y;

multiplyNumbers(2, 3);
> 6
``` 
```javascript
// Impure function.
let a = 4;
const multiplyNumbers = (b) => a *= b;

multiplyNumbers(3);
console.log(a); // first time: 12
> 12
multiplyNumbers(3);
console.log(a); // second time: 36
> 36

// Mutates external variable so it isn't pure.
```

### Case 2

```javascript
// Impure function.
addNumberarr = (arr, num) => {
arr.push(num);
};
const testArr = [1,2,3];
addNumberarr(testArr, 4);

console.log(testArr);
> [1, 2, 3, 4]

// Mutates input array so it isn't pure.
```
```javascript
// pure version of above.
addNumberarr = (arr, num) => {
return [...arr, num];
};
const testArr = [1,2,3];
addNumberarr(testArr, 4);
> [1, 2, 3, 4]
```
JS Built-in Pure functions:
```javascript
arr.reduce()
arr.map()
arr.filter()
arr.concat()
arr.slice()
arr.each()
arr.every()
... - spread syntax 
```

JS Built-in Impure functions:
```javascript
arr.splice()
arr.push()
arr.sort()
Math.random()
```
Thanks,

Follow: https://twitter.com/urstrulyvishwak
Bitcoin Has Delivered 99.996% Deflation !
Tags: bitcoin, crypto, blockchain
Published: 2022-09-29 08:38:02

> Not only is the dilution of Bitcoin much less aggressive than USD over the last six years, it’s also much more consistent, not susceptible to political whims and, of course, predictable.

Economists with Bloomberg Economics estimate that roughly half of Bitcoin’s recent returns can be explained by inflation fears, with the other half coming from market exuberance and momentum trading. “Our model shows that for Bitcoin, the **importance of inflation** and hedging against uncertainty become more important drivers over time, accounting for 50% of price moves in the latest cycle relative to 20% in 2017. 

**Bitcoin-as-an-inflation-hedge** arguments have been around since the token was created in 2009 following the great economic recession. The premise has gained momentum as prices on everything from food to gas to housing have advanced faster and been stickier over the past few months than many economists had anticipated. Wednesday’s data showed U.S. consumer prices rose last month at the fastest annual pace since 1990, in effect cementing high inflation as a hallmark of the pandemic recovery.

Many notable Wall Street investors and analysts have bought into the idea of using cryptocurrencies as a hedge against rising prices. Veteran hedge fund manager _Paul Tudor Jones_ has said in the past that he likes it as a store of wealth. Meanwhile, MicroStrategy Inc.’s _Michael Saylor_ said the Federal Reserve’s relaxing of its inflation policy helped convince him to invest the enterprise-software maker’s cash into Bitcoin. 


“Bitcoin’s programmed predictability contrasts it from the uncertain policy decisions that impact the dollar.” 
But there are plenty of counter-arguments too, most notably that Bitcoin hasn’t been in existence long enough to establish it can for sure act as a hedge amid rising prices. 

Bitcoin might hold its value over the very long run. In his research on gold, Harvey found that it has held its value well for millenniums. But he also found that it’s prone to manias and crashes over shorter periods. 

> “Investors need to be cautious if they’re thinking that an allocation to Bitcoin will provide short-term inflation protection because we know if inflation goes up unexpectedly that that’s bad for equities, and if something’s bad for equities, that could lead to a risk-off trade.”

Lastly, Bitcoin doesn’t behave like it’s decoupled from everything else in the economy. “**It behaves like a speculative asset**”. It was cited at the coin’s drop in March 2020, when it lost roughly half its value amid a plunge in U.S. stocks. 



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gdnwqbr74fjwd5grwv1g.jpg)
Next.js Micro-blogging template
Tags: nextjs, template, webdev
Published: 2022-09-29 08:35:46

I've just launched a micro-blogging template to quickly create a twitter-like blog. You can write in markdown and upload images and videos.

Here is a preview on how it looks like:

![screenshot of the template](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uuboz5yv9q4jrg5du40n.jpg)


During my travels, I created a small blog to inform my friends and family about what I'm up to. Now I've turned it into a template.

Here are the corresponding links:

[Blog Post](https://wweb.dev/templates/micro-blogging-template/) | [Demo](https://modest-blog.vercel.app/) | [GitHub repository](https://github.com/Vincenius/modest)

Please let me know if you create a website using this template :)
This Is How To Choose Your Programming Language!
Tags: beginners, career, tutorial, programming
Published: 2022-09-29 08:19:48

There's a lot of confusion on what's the BEST programming language.
In fact, I've made a blog about this( you can read it [here](https://dev.to/youngmamba/the-problem-with-coding-influencers-2pk9)).

And a lot of beginners don't know how to choose their coding language. So here's the, **No BS Tutorial You've Needed**!

---

### Think Before You Speak!
You've decided you want to learn coding. That's the first step.
The second step is to ask yourself what do you want to do,
* Game Development
* App Development
* Website Development, etc.

Based on the answer to that question, start doing research on the most popular coding languages for that specific field.

Again you will be bombarded with tons of languages. But, at least you've got a little more specific.

Now it's time to get **very** specific.

---

### Pros & Cons
Start by making a list of the most popular languages. For example, if you like `Web Development`:
* JavaScript
* HTML & CSS
* Python
* Golang, etc.

And then look at the **Pros & Const** of all those languages.

Some languages might be more beginner-friendly, some might be faster than others( research about code speed too), and some might be more popular.

If you're a beginner, I would recommend learning the most popular language since they have the most material to learn from!

But as time goes by, learn all of them! You might find that you like one language more than the other. At the end of the day, it's all about **preference**!