teleren/devto huggingface dataset:
Bio
Published: 2023-01-06 05:26:40

Hi, my name is Gustavo Ribeiro, i was born in a city called Limeira back in Brazil almost 19 years ago, i grew up with my parents and my brother, sometimes with the visit of my sisters, my dad is a developer and also a teacher so i always was kinda up to date with this world and often he taught me some things about it.

Since i was a kid a wanted to be a developer and took some courses during school, after i finished high school i decided to work a whole year to save some money and to plan everything for my exchange program to Canada, of course it wasn't 100% my decision to chose this area because over the years i had the influence of my dad working on the same area, but it is something i really like to do and i don't regret choosing this course.

As i said before, i just finished high school and spent a whole year preparing for my move to Canada, so that's why i'm so afraid of this new adventure, because i have almost no experience in anything in life, i'm young and i haven't lived many things, i'm insecure even with my english sometimes because i've never had an english class before, i learned everything by myself.

So basically not having any experience in life is making me very scared about it but i truly believe that i can overcome any obstacles that are presented to me.

My expectations to this course through the year is to learn more about the area and gather some knowledge to make my way to data security, hopefully next year together with the work i'm gonna be able to do some certifications and be more qualified to enter the area i desire.

This first week of the course was really good to understand what i'm going to study, to know some of my classmates and to visualize how this course it's going to be through the year. I allready knew a lot of things but also learned a lot that i didn't knew, and i thinks that it is really important to always remember some basic fundamentals.

After finishing this course I expect to have enough knowledge to find a job in the area and maybe already a job in the area of data security, but I think the most important thing is to really understand how things work in this world and how to do this things.
Minimal Typescript + Express Boilerplate which focus on speed
Tags: webdev, javascript, typescript, node
Published: 2023-01-08 22:46:22

When I explorer the typescript + express js template they are damn slow to use and horrible configuration which is away from boilerplate and should not attach to that because we are using their template for configuration not as a pre web design template. So, I crafted one which uses esbuild for fast charge bundling for both of development and production time.

Explorer here

https://github.com/amm834/express-typescript-boilerplate
Go Test supports shuffling tests
Tags: go, todayilearned, testing
Published: 2023-01-08 22:42:36

**TLDR:** Randomize the execution order of tests and benchmarks with `-shuffle off,on,N` flag.

---

As a general guideline, it's bad for unit tests to depend on each other and the order of them messing with the results.

A "trick" I have seen some codebases adopt to mitigate and catch issues with unit test results relying on order is instead of using arrays in table-driven tests using maps. 

```code

TestMyFunc(t *testing.T) {
	for name, _ := range map[string]struct{}{} {
		t.Run(name, func(t *testing.T) {
				...
		})
	}
}

```

The reason behind this is, the order of map iteration is not guaranteed, so on different runs the tests might run in different order making it more difficult to rely on the order.

But as of Go 1.17, you can "Randomize the execution order of tests and benchmarks."

As `go help testflag` states

```code
-shuffle off,on,N
	    Randomize the execution order of tests and benchmarks.
	    It is off by default. If -shuffle is set to on, then it will seed
	    the randomizer using the system clock. If -shuffle is set to an
	    integer N, then N will be used as the seed value. In both cases,
	    the seed will be reported for reproducibility.
```

---

- [testing: add shuffle flag #10655](https://github.com/golang/go/issues/10655)
Scaling Node.js Applications: Strategies and Techniques
Tags: node, webdev, javascript, programming
Published: 2023-01-08 22:41:34

> Check on my personal blog: [BraketOrbits](https://devtomars.vercel.app/post/scaling-nodejs-applications-strategies-and-techniques)

As web applications grow and the number of users increases, it becomes important to ensure that the application can scale effectively to handle the increased load. If an application is unable to scale, it can lead to slow response times and a poor user experience.

One popular backend technology that is often used to build scalable web applications is Node.js. Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine that allows developers to build scalable network applications quickly and efficiently.

There are several strategies and techniques that can be used to scale Node.js applications. Some of the most effective strategies include:

**Vertical scaling**: This involves increasing the resources available to a single server, such as adding more CPU or memory. This can be an effective way to scale an application, but it can become expensive as the application grows.

**Horizontal scaling**: This involves adding more servers to the application, allowing it to handle more traffic and users. This can be an effective way to scale an application, but it requires careful planning to ensure that the application is able to distribute traffic and data effectively across multiple servers.

**Caching**: Caching involves storing frequently accessed data in a cache so that it can be quickly retrieved when needed. This can help to reduce the load on the database and improve the performance of the application.

**Load balancing**: This involves distributing traffic across multiple servers to ensure that no single server is overwhelmed. This can be achieved through the use of a load balancer, which routes traffic to the appropriate server based on factors such as server availability and workload.

**Asynchronous programming**: Node.js uses an event-driven, non-blocking I/O model, which makes it well-suited for scalable applications. By writing code that makes use of asynchronous programming techniques, it is possible to build highly scalable applications that can handle a large number of concurrent requests.

By implementing these strategies and techniques, it is possible to build scalable Node.js applications that can handle a large number of users and a high volume of traffic. This can help to ensure that your application delivers a fast and reliable experience to your users.
Fix Windows Blue Screen Problem
Tags: windo, webdev, tutorial
Published: 2023-01-08 22:41:16


## Fix Windows Blue Screen Problem

I believe every Windows user occasionally runs into an issue when their laptop only displays a blue or black screen. Something has gone wrong if your laptop displays a blue screen with simply an arrow or cursor.

So I’m going to share a few techniques with you to resolve the problem.

![Created By [**Rutik Patel](https://medium.com/@rutikkpatel)** ( [**Author](https://medium.com/@rutikkpatel)** )](https://cdn-images-1.medium.com/max/2160/1*o2tYwTA1Q1XT9L6x8GBL-g.png)
<br/>

Let’s first discuss why this thing happens. **What is the main reason behind the blue screen problem?**

An unsafe programme, application, or update is the cause of the blue screen error. Your laptop may suddenly shut down or restart as a result of the malicious programme.

---


There are three different approaches to get rid from this problem:

### **1. Login Again**

While facing this problem, no icon will be displayed on the screen, so in every solution you must use the keyboard and shortcut keys. So for the first solution, you need to lock your screen and login again.

You can get to the lock screen by using,

a. Windows+L

b. Ctrl+Alt+Delete

c. Ctrl+L

After that, just login again, and your problem is resolved. If that doesn’t work, try the second option.

---


### **2. Task Manager**

To open Task Manager, just press **Ctrl+Shift+Esc**.

It will open the task manager.

![Task Manager](https://cdn-images-1.medium.com/max/2534/1*r2SqR-iLxGOIWqDVV9AylA.jpeg)

Now, in the menu bar, navigate to the file menu.

![File Menu](https://cdn-images-1.medium.com/max/2000/1*X_hrZlLhZwYAf-N0WkkUow.png)

Select “Run a New Task.”

![Run New Task](https://cdn-images-1.medium.com/max/2000/1*WH4tbDCIqumc-mtjpufGow.png)

Now, there is one modal pop-up for creating a new task, in which you type **explorer.exe** in the input box and then press Enter or click on the Okay button.

![type explorer.exe](https://cdn-images-1.medium.com/max/2000/1*5kAp6YPI1o7XrSVVY8IvjA.png)

---


### **3. Hard Reset**

If the first two methods do not work, you must perform a hard reset.

For the hard reset, just press the power on/off button of your system for 10–15 seconds until your system does not shut down. then restart the system.

The issue has been resolved.

![Photo by [kevin Xue](https://unsplash.com/@kevin_xue_pic?utm_source=medium&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=medium&utm_medium=referral)](https://cdn-images-1.medium.com/max/12386/0*R4FPr69wArGQB99x)
Just Venting...Positively
Tags: webdev, beginners, github, devjournal
Published: 2023-01-08 22:38:23

I have been working on a client's site for almost 3 months now and I can honestly say it is not only my first large scale solo project, it has been the most challenging project I've taken on. At the beginning I felt confident, a week into the project I started to think I bit off more than I could chew, a month into the project and I felt like I knew nothing about web dev. This project has forced me outside of my comfort zone and has made me grow in so many ways. There has been many growing pains but I am grateful for the experience that has come from doing this project. I am so close to launching it right now I can taste it...and I cannot wait to put this in my portfolio! So the key takeaway is, if you don't ever feel a little bit of imposter syndrome, you probably aren't challenging yourself enough. Keep growing and Happy Coding! :)
Stop Chromium from asking about default browser
Tags: chromium, chrome, linux, firefox
Published: 2023-01-08 22:35:59

I have to admit, I'm not a huge Chrom* fan - but still need it from time to time. So, I have it installed. It comes with a few annoyances though… One is it keeps asking about not being the default browser. I use Firefox, of course. :) So, here's a quick-tip on how to disable that.

- - -

After searching around a little bit and found the great startup parameter `-no-default-browser-check`. So, to use it… Let's not mess with the original file. It might be overwritten on any update.

Copy the original file into `~/.local/` instead.

```bash
cd ~/.local/share/applications
cp /usr/share/applications/chromium-browser.desktop .
```

Now you can open the file in your favorite editor, and then there are 3 places to edit.

I also cut out all the optional translation lines - just keeping the default and swedish. So, the file looks like this after my edits:

```bash
[Desktop Entry]
Version=1.0
Name=Chromium
Comment=Access the Internet
Comment[sv]=Surfa på Internet
GenericName=Web Browser
GenericName[sv]=Webbläsare
Exec=/usr/bin/chromium-browser -no-default-browser-check %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chromium-browser
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Chromium-browser
Keywords=web;browser;internet;
Actions=new-window;new-private-window;

X-Desktop-File-Install-Version=0.23

[Desktop Action new-window]
Name=Open a New Window
Name[en-US]=New Window
Name[sv-SE]=Nytt fönster
Exec=chromium-browser -no-default-browser-check %U

[Desktop Action new-private-window]
Name=Open a New Private Window
Name[en-US]=New Private Window
Name[sv-SE]=Nytt privat fönster
Exec=chromium-browser -no-default-browser-check --incognito %U
```

- - -

Now, you can also checkout this great post by @rahedmir on “[How to Fix Google Chrome/Chromium asks for password to unlock keyring in Linux](https://dev.to/rahedmir/how-to-fix-google-chrome-chromium-asks-for-password-to-unlock-keyring-in-linux-1dl0)”, to make it stop asking about the keyring.

If you want that one to? Edit your changes above, and use them together as:

```
-no-default-browser-check --password-store=basic
```

- - -

No more bugging about not being the default browser. 🤞 Hope you found it useful.👍

· Eric
Updates Thanks to Community Feedback
Tags: webdev, beginners, github, devjournal
Published: 2023-01-08 22:24:27

Thanks to the feedback I've received I have been able to go back and make changes to some of the projects I've built and I've learned quite a bit from the experience. Honestly, I think my biggest mistake so far has been not forming connections sooner and getting real feedback from real people. I have a local design company looking into some of my projects to decide if they want to work with me and to be honest, even if the answer is "no thanks" at the very least I have someone I can come back to and say " This is what I've worked on, here are my accomplishments". What a crazy adventure. And to think, it all starts with 'Hello World!'. 

Happy Coding. Happy Trails.
Math.min() & Math.max() in Java
Published: 2023-01-08 21:58:11

If there are 2 nunbers, x and y, and you would like to find the smaller or bigger number, you could use Math.min() and Math.max().

In order to find the smaller number
`Math.min(x, y)`

In order to find the bigger number
`Math.max(x, y)`
Programming with .NET
Tags: programming, csharp, dotnet
Published: 2023-01-08 21:35:55

I usually think of coding as what programming has become over the years, copy-pasting code without much thought or deep understanding of what it does. This is almost generally true among web coders.

Programming indeed is complex, although the easiest thing to do is writing bad code, we will focus on things that are on us developers reach and not on what is under control of the .NET runtime.

We will focus on what makes good code better, anyone can start by asking non trivial questions about application architecture, algorithms, data structure selection, and so on. 

The key to write better applications is that first you have to realize that there is no bug-free code, and always there will be time to run and fix problems on your applications.

## Applications
Once you are confident that the application runs properly after debugging and testing, then you can start thinking about performance goals for your application. We will agree here that are enough smart developers working on the .NET runtime so we will focus on what is on our side as developers.

The biggest problem with performance is that usually comes late, and is the hardest problem to fix once it was baked into the design as a misrepresentation of data.

### Data
All applications can be defined as algorithms that transform data and data transformations that happen on your applications can be a key aspect of the overall performance of it. The basic representation of data that will be manipulated places strong constraints on performance if it is poorly chosen -XML JSON DB- specially if is detected late into the product cycle, trying to change it then will be expensive.
PRE-ORDER ‘GRID LEGENDS’ ON META QUEST 2 AND SAVE 10%
Tags: metavers
Published: 2023-01-08 21:15:17

Get ready to channel your inner speed demon, because [GRID Legends](https://www.oculus.com/experiences/quest/7252497758125048/?intern_source=blog&intern_content=grid-legends-pre-order-discount-vr-racing-game) is racing its way onto Meta Quest 2 on January 12. Even better, you can [pre-order starting today](https://www.oculus.com/experiences/quest/7252497758125048/?intern_source=blog&intern_content=grid-legends-pre-order-discount-vr-racing-game) to save 10% off the purchase price.


![GRID Legends for Meta Quest 2](https://scontent-lhr8-1.xx.fbcdn.net/v/t39.2365-6/324415711_739040693920197_3405979861822125853_n.png?_nc_cat=103&ccb=1-7&_nc_sid=ad8a9d&_nc_ohc=ZEbIAJ4frxYAX8PVwex&_nc_ht=scontent-lhr8-1.xx&oh=00_AfCjcDXZeKyiWVhPn2wu0QB4h6OoI4-n7fdBIQZ8w5Lr3g&oe=63C0A840)

GRID Legends delivers thrilling wheel-to-wheel motorsport action. You can jostle for position, drive legendary cars to their limits, and feel the rush of incredible speed. Be part of an unfolding drama in the game’s engrossing Story Mode featuring award-winning [Ncuti Gatwa](https://www.oculus.com/lynx/?u=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FNcuti_Gatwa&e=AT1wGEW-Ug3Czgx88I8_X7kOpQGfzxKrwFuCLDHpK67SkUPtZycOC-XfAkhV_4J5V8VDHMWl419hb6cn0r0x_OATXNTT9cf3iY5YU9WN4SdbLyV111iDqiVbnqL0KWDiufAsGdJQ6Ri2Lj_5bxy-lK1qvw) from Netflix’s Sex Education, or be the boss and win the GRID world series in Career Mode. Make racing memories with a variety of cars in city and circuit locations, and use the Race Creator to design tracks to tear up with your friends.

[Pre-order GRID Legends for Meta Quest 2](https://www.oculus.com/experiences/quest/7252497758125048/?intern_source=blog&intern_content=grid-legends-pre-order-discount-vr-racing-game) today!
Welcome
Tags: csharp, programming
Published: 2023-01-08 21:09:04

Hello everyone, what better way to start the year by putting some time on sharing what experience provides us over the years of playing around with .NET framework plus C#.

Everyone is welcome to come along but content here won't be a language reference nor aimed to beginners but I will try to keep things simple so everyone can get something useful out of it. Having some depth experience with .NET already will come handy.

## About me
I always thought that it all started back when I used to play around with the computer (just before windows 3.1) then a bit serious with IBM’s manual and DOS, is quite interesting how focus can change in an instant.

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

I remember that I wanted to install a game -Hocus Pocus- but run into an error (zipped file) and it was the first time in which I had to do such thing since it was always direct install from floppy. So I got introduced to ‘pkunzip’ -if I remember correctly- and after that I started wondering:

What else can I do?

So I jumped back into that IBM manual and worked with DOS 6, that way I mainly stayed at the console and only moved to GUI on Windows XP. Now for “programming” started with batches on DOS then Turbo-C and finally Visual Studio 6 with VB for about a year.

I have had such a peculiar experience with .NET and C#. At first I didn’t like the GUI so I stayed at the console until Windows XP was available and used it until 2010-2012, besides XP I have only used Windows 2000 Professional for administration, back then I started using CentOS -my fav distro-. This went back to back with windows administration as I used to replicated things I learnt on both, since then when I had to do something on C I would choose to do it on Linux.

Now tools for development, my all time favorite combination was Visual Studio 2012 with Windows XP and C#, this combination I used constantly up to 2020, it was the only VM I had on my MacBook 2012 to work with Windows Forms and anything related to Microsoft’s products. Since 2012 my main OS has been either macOS or fedora and used Windows when needed.

I started using .NET Core on Red Hat at first and eventually moved completely to macOS when it was supported so the key is to adjust to whatever it comes.

Update Jan 2022 Since Jan 2021 I focus almost exclusively on Apple’s ecosystem on M1 so no Windows VM for the moment, only Swift for iOS, iPadOS and macOS.

Update Jan 2023 Regarding .NET, I use it with C# as always but now in a mix with maths, physics and 3D stuff from time to time.
A year in review (2022)
Published: 2023-01-08 21:08:06

Cross post from [emmettnaughton.com](https://emmettnaughton)

First, I've got to work with wonderful people, which helped make the challenging parts of this year bearable. 

I got the opportunity twice this year to get in on some very cool companies building exciting products.

## [Govalo](https://govalo.com)
I got to work on making online gifting better and more accessible to brands, and who doesn't like getting gifts?

- Built features to help get over 500 merchants to use Govalo as their gifting platform. 
- Learned Typescript
- Built an email redemption app
- Contextual Savebar
- A lot of customizations 
- Knowing things I built helped merchants pad their stats on Black Friday/Cyber Monday (BFCM)
-  Over 270 contributions from Jan-May 2022 

##  [Luro](https://luroapp.com)
I worked with an incredible group. 
- Over 319 contributions 
- Learned Vue/Nuxt
- Learned Prisma
- Built multiple features
- Leveled up my UI skills


Here are some stats! 

![github wrapped stats](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aokyovojc2k4bj0i8oko.png)

Those were just professional achievements. 
Here are the things that happened too.

## [#CoderDads](https://coderdads.carrd.co)

- Broke 250 Dads
- Saw many Dads get their first tech jobs. 
- Homes bought

Very thankful for this community that has watched me ride the tidal waves of moving from a busy ER job to a tech job. CoderDads helped me through 2 layoffs this year.  

I was on some podcasts/live streams this year! If you have a podcast, I would love to come on and share my story. 

##  Podcasts:

[Gaelan Trombley show](https://gaelantrombley.podbean.com/e/tgts-episode-175-emmett-naughton/) (Last year, but close enough)

## Youtube:

[Guidance Counselor 2.0](https://www.youtube.com/watch?v=NO7v524_Qdc&t=1s&ab_channel=TaylorDesseyn)

[Janitor to Software Engineer Roadmap with Emmett Naughton](https://www.youtube.com/watch?v=f0p5_2PIIcQ&ab_channel=NickTaylor)


It's been a wild year.
I am looking for my next adventure. I am working on a few personal projects now. 
I am going into the New Year rested and ready to be an asset to my next company.
Stable Diffusion Pokémon Cards
Tags: machinelearning, python, svelte, webdev
Published: 2023-01-08 20:56:06


{% embed https://www.youtube.com/watch?v=mQsMuM8d4Qc %}

This is a fun demo of a full-stack ML app. It takes your text prompt as input and uses three models to produce four sample Pokémon card images — the models are StableDiffusion, an RNN for Pokémon name generation, and a basic OpenCV background removal model. 

This app is an example of what can be done these days by what I'm calling _model stacking_, for lack of a better name. It's become so easy to stick together ML models, often without training many or all of them yourself.
 
**demo link:** [modal-labs-example-text-to-pokemon-fastapi-app.modal.run/](https://modal-labs-example-text-to-pokemon-fastapi-app.modal.run/)

**cloud platform:** [modal.com](https://modal.com/)

The code is here: [github.com/modal-labs/modal-examples/tree/main/06_gpu_and_ml/text-to-pokemon](https://github.com/modal-labs/modal-examples/tree/main/06_gpu_and_ml/text-to-pokemon)

(Be aware that in the video the prompts used are previously seen and cached. Unseen prompt generations take 30-120 seconds)