teleren/devto huggingface dataset:
An Unexpected Journey
Tags: codenewbie, motivation, career, learn
Published: 2020-11-04 23:27:56

Yes, I realize I stole the title from The Hobbit, although in this case it justifies itself.

This October I started a boot camp hosted by Launch Code with the goal of learning how to become a developer.

Let me start by explaining that this was something unexpected (as the title says) for me, one day I received an email promoting the boot camp so I decided to sign up just because, no knowing if I would like it or I would be able to make it all the way to the end, which this is also yet to be seen but I feel pretty confident about it.

During this first month I had some ups and downs due to not having enough time or being hard for me to keep up with the pace of the course, regardless of this something in my mind clicked and at this point I was able to let go of my distractions and focus and devote 100% to the boot camp. Right now all I think about is coding and getting as far as I possibly can.

I do need to point out that this happened because of the great team leading the boot camp, constantly motivating us and helping with whatever we need, it certainly is unreal how a group of strangers can have such a drastic impact on someone's life.

To this present day, I am immersed in this journey and cannot think of anything else but to see the results in the future, my current goal is to become a great developer and help out, collaborate in the community as it was done for me. 

Now for the fun part...

*A few things I have learnt so far*

**Keep Pushing**
I know it is a common piece of advice but so true. If you really want something then pursue it, grab it, take it, DO NOT stop even when it gets hard, once you break that limit within yourself, you will pass the next challenge and the next. This is all about looking back and reflecting what you have already overcome, so why would anything stop you now?

**Ask For Help**
This one is particularly hard for me because I do not like to ask for any type of assistance or help of any sort, so now I am forced to do it regardless I like it or not and if I didn't then I probably would not have made it this far.

**Put In Your Time**
Practice, research, watch videos, whatever it is you prefer but get into the field, anything that is related to what you're learning in better than anything else. It doesn't matter if it is something you already know, keeping your mind fresh with all that knowledge should be your ultimate goal.

**Participate**
Even if you are quiet and have a hard time speaking where there is too many people, no matter, push yourself out of the comfort zone, join in events, talk to strangers, ask questions, talk about life, engage in meet ups, I know it is not easy but there is a reward at the end of the road even if you can't see it yet.

I'll drop one of my favorite quotes that many probably know:
"Do or Do Not, There is No Try"

That's all I got for now, until next time and thanks for reading.
Full Project-based Tutorial - React + Next.js [FREE]✨
Tags: tutorial, react, javascript, webdev
Published: 2020-11-04 23:09:04

If you want to learn to code by building real-life projects, this tutorial is for you. Together, we will build a complete application (World Ranks) using React and Next.js.

LIVE APP: https://world-ranks.vercel.app/

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/mkzl4uwj81l9emz74ts6.gif)

📖 You will learn: 

- Data sorting, filtering
- Responsive Layout without any CSS framework
- Dark/Light Mode
- Server-side rendering
- Deploying with Vercel

🍜 Resources:

- Design: https://bit.ly/3l1aH3D
- Resources: https://bit.ly/36p79SX
- API: https://restcountries.eu/

- Source Code: https://github.com/nghiemthu/world-ranks

✨ You can find the tutorial here:

{% youtube v8o9iJU5hEA %}

## __________ 🔖 Tutorial Structure __________

[00:00]   - Introduction
[1:37]    - Setting up Next.js project
[6:00]    - Build Layout Component
[10:25]   - getStaticProps
[12:30]   - Build Input Component
[18:40]   - Build Country Table Component
[27:10]   - Sort Countries by state (value and direction)
[38:47]   - Filter Countries by Name, Region and Subregion
[41:46]   - Dymanic Route in Next.js
[43:47]   - getServerSideProps (Server Side Rendering)
[45:43]   - Styling Country Page
[1:11:52] - Build Responsive Layouts
[1:29:51] - Build Dark/Light Theme Switcher
[1:36:42] - Create new Github repo and deploy to Vercel
[1:39:15] - getServerSideProps and getStaticProps/getStaticPaths
[1:43:01] - Happy Coding!

## __________ 🐣 About me __________

- I am the founder of [DevChallenges](https://devchallenges.io/)
- Subscribe my [Youtube Channel](https://www.youtube.com/channel/UCmSmLukBF--YrKZ2g4akYAQ?sub_confirmation=1)
- Follow my [Twitter](https://twitter.com/thunghiemdinh)
- Join [Discord](https://discord.com/invite/3R6vFeM)
test keyoxidizer (with temp key not real one)
Published: 2020-11-04 23:06:42

This is an OpenPGP proof that connects [my OpenPGP key](https://keyoxide.org/772E634E9358415B1393DD9D081D3D4FBA896372) to [this dev.to account](https://dev.to/karmanyaahm). For details check out https://keyoxide.org/guides/openpgp-proofs

[Verifying my OpenPGP key: openpgp4fpr:772E634E9358415B1393DD9D081D3D4FBA896372]
Windows: change default sound source with 1 click
Tags: windows, tutorial, opensource, showdev
Published: 2020-11-04 23:06:09

I found myself switching between my monitor speakers and my headphones frequently and having to click 3-4 times through the taskbar every time I wanted to change started to get annoying.

I figured it could be useful to others so here it is.

# Default Audio Switcher

### Purpose: 
Created for switching default sound source between my monitor speakers and headphones with 1 click.

### Prerequisites:
* Windows OS
* Download and copy [NirCmd](https://www.nirsoft.net/utils/nircmd.html) to your windows directory
* Download my [defaultaudioswitcher repo](https://github.com/GlennChon/defaultaudioswitcher)

### Setup Switch Sound Source:
1. Find the names of your sound sources for your PC via command prompt

```sh
nircmd showsounddevices
```

2. Pick the two you want to switch between
3. Edit the SwitchSoundSource+.bat file with the names of your sound sources

```sh
SET defaultSoundSource="exampleSource1"
SET soundSource0="exampleSource1"
SET soundSource1="exampleSource2"
```

4. Save the SwitchSoundSource+.bat 
5. Run (double click) SwitchSoundSource.vbs

### Optional:
* Create shortcut to the .vbs file and set icon location to ico file in this folder (or your own custom icon)
* Set hotkey via shortcut properties

I just have my shortcut set up on my [Nexus Dock](https://www.winstep.net/nexus.asp)

@author [Glenn Chon](https://github.com/glennchon)
Wordpress Performance Plea
Tags: help, wordpress, performance, learndash
Published: 2020-11-04 22:51:34

How can I improve codingcat.dev's performance without giving up functionality. Or is this just not possible with Wordpress?

What I have done so far
- Added CDN from WPEngine
- Started using WP Rocket to get more performance gains
- All images are served from cloudinary with q_auto to serve in webp (most of the time).
- Utilizing AMP with AMPforWP to hope for better results in Google (although this isn't my main focus).

## Twitter Example
Here is a comparable site that I check often https://css-tricks.com. There is no learndash that I am aware of so might not be a 100% comparison.

{% twitter 1324106553058824199 %}

https://codingcat.dev performance
{% twitter 1324106557894918147 %}

My plea for help.
{% twitter 1324106559543255041 %}

## My Background
I come from a JAMStack world, I could make all of this better with Next.js or Gatsby or Angular Universal...but I just don't know Wordpress. I have been running my JAMStack site with sanity.io and Gatsby for years for free but I wanted more control over adding Tutors so that we can start producing some solid content with a Turn Key solution.

## Financial Concern
However the finances on this project already are getting out of control as illustrated here...
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/u4mbh3lxp1hu6mj92gf9.png)

## What I want in the end
I hope to be able to provide a solid platform for Tutors and Users to collaborate like on Dev.to, but also get paid content similar to how egghead.io operates. However with the performance issues I just don't know if people will be happy.

Try out the site and comment below on what you thing the performance is like?
https://codingcat.dev
ListItem material-ui use <link> from react-router-dom.
Published: 2020-11-04 22:29:25

**Just follow the below example**

`<ListItem button component={Link} to="/"/>`

**Remember that you can't use `<Link to="/">` outside  <BrowserRouter>** See example: 
   
`<ThemeProvider theme={theme}>
      <CssBaseline />
      <Container>
        <BrowserRouter>
          <TemporaryDrawer />
          <Routes />
        </BrowserRouter>
      </Container>
    </ThemeProvider>`
Weird behavior on passing data within 
Tags: component, redirect
Published: 2020-11-04 22:27:57

*** Does anybody have an idea why {index} in the Redirect is being always the last item of the items array????
I am bumping my head against the wall for this. It should work?! Thanks.
NOTE: Code removed for brevity.

interface IRedirect {	
	cat: number;	
	slideId: number;
}

const Redirect = (props: IRedirect) => {
	let hist = useHistory();
	return (
		<Link to="#" onClick={() => {

			const pass = `/newsdetail/${props.cat}/${props.slideId}`; *<------------ ALWAYS the same number, not the index*

			hist.push(pass);
			
		}} className="readmore">Read more ....
		</Link>)
}



export class NewsCarrousel extends Component<INewsProps, IState>
{
render() {
		return (					return (<Slider {...settings}> {
			items.map((m, index) => {
				return (
					
				<Redirect cat={NewsCarrousel.curCategory} *slideId={index}/>*
}
Day 249: Ferris Wheel
Tags: hiphop, code, coding, lifelongdev
Published: 2020-11-04 22:22:11

_liner notes_:
- Professional : Took part in a retrospective of a series of events we recently did. Cool to be able to put in my thoughts. Looking forward to doing them again. Created a pull request and got it merged. Had a meeting. Worked on another ticket to add a feature. Got it done and submitted a pull request. Pretty productive day.

- Personal : So the elections happened last night...pretty much all I did. A Ferris Wheel of emotions. haha I did think about the design for the next project I want to work on. Oh and I added some local meetup organizers to the dashboard of the new site. Looking forward to seeing how they will use it.

![A giant green mountain just off the coast inland at Kālepa Ridge, HI, USA with large mountain range in the background.](https://dev-to-uploads.s3.amazonaws.com/i/xm2itwfvgi6ftl8kegkg.jpg)

Did a lot of coding today. Think I'm going to work on the design on the new site. I should also get the recording from the last radio show submitted to the station to be played this week. I'll probably go through some tracks will I'm working on the design.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube 2eruW1KHcxc %}
"It worked on my local!" 😭
Tags: devops, webdev, agile, productivity
Published: 2020-11-04 22:12:40

If you’re in webdev and stuck with a single staging or testing server, my heart goes out to you. That probably means you and your team work real hard on designing and developing amazing things, and then at the end of the sprint when it’s all supposed to come together in a glorious, jaw-dropping demo, something goes 💥.

😭

Developers are confused, Project Managers are embarrassed, and Stakeholders are frustrated. Morale tanks like a swiss cheese submarine 🧀. The team is stuck with a few bad options: ship the broken thing and hope to have time to fix it later, scrub the launch and do it right, or pull an all-nighter to hotfix the release. 

I don’t know about you, but I don’t like any of those options.

What caused the “boom”? Often the team will find it was something small, like a missing semicolon, or maybe as embarrassing as [cough, cough] *misunderstanding entirely how a new feature was supposed to work*.

But those things are actually symptoms of a deeper issue. Underneath the huge gaping crater of that failed demo is a pernicious anti-pattern in the entire agile webdev process: a single staging / testing server. 

# The bottleneck of a single staging server

Given the rise of tools like Docker and Kubernetes, the amount of time, money, and hair lost to the bottleneck of limited staging servers is truly a tragedy. Friends, how are we still in this place?! We don’t need to be stuck with just one or two servers to test on. 

We talk all day about “Agile”, “Scrum”, or “Kanban”, but our process doesn’t actually *work* that way. We can’t see what is being worked on in an “agile” manner, and then guess what happens: 💩 meet fan.

To me, this bottleneck is **the most frustrating anti-pattern** of our day. The technology is there. And, there are tools that make use of it. (If you’re in the market, [Tugboat](https://www.tugboat.qa) is *obviously* the best option. 💅 )

# Remove the bottleneck: ship every commit.

No matter where you host or what your budget is, there’s a solution to this problem. Stop being reactive and start being proactive with your QA and demos. Get some tooling in place to give you automated, fully working website previews for every pull request. 

Test everything all the time, and demo anything any time. And if you're not sure how, reach out, I'm glad to help.
It’s that time of the year, What I learned from Hallmark movies 2020
Tags: nerdstuff, softskills, hallmark
Published: 2020-11-05 14:34:40

---
title: It’s that time of the year, What I learned from Hallmark movies 2020
published: true
date: 2020-11-04 21:09:20 UTC
tags: NerdStuff,SoftSkills,hallmark
canonical_url: 
---

So much to my wife’s dismay, I actually got a lot of traffic for the previous post. So I decided to do a follow-up.

Here are my 2020 lessons from Hallmark movies:

- If you want to marry into a royal family, and have known the prince or princess your whole life and been childhood sweethearts, then you must be a cold heartless person.
- If you work for a royal family in any capacity involving kids you are guaranteed to marry a prince or princess at Christmas time.
- A king or queens endorsement of your business is the only way it will be successful.
- All websites can only be built by high price consultants that have corner offices in New York.
- Futures are not built in “the city” they are ruined.  Living in a small town is a requirement to be happy.
- If you own a restaurant or food truck, or work in the service industry.  Despite working a full crazy shift… your hair, teeth and clothes will be perfect with any sign of sweat.
- Kids always love the new person in your life and become obsessed with you marrying that person within 10 minutes of meeting them.
- Any job that requires you to move will immediately reconsider that decision based solely on the fact that you found your true love.
- All schools teach a Christmas only curriculum starting at thanskgiving.
- All corporate jobs will require you to be away from your family on christmas eve.
- Despite budget cuts in music programs or other arts programs, every school has unlimited budget for Christmas decorations.
- If your father owns the company you work for, he will require you to work through Christmas.
- If someone assumes you are a couple, you will fall deeply in love in few days.
- All cookie baking involves flower disasters where it ends up caked on your face, and guaranteed it will turn out culinary perfection.
Need your help to decide which post should I write about next
Tags: discuss, typescript, javascript, introduction
Published: 2020-11-04 21:05:03


I want to write two articles but I want to decide which is better to cover and more interesting to you.
My First Idea is Introduction to NestJS and explains how this framework takes NodeJS to the next level.
My Second Idea is an Introduction to TypeSctipt + how to use it with React and cool libraries that can help you write better code.
I would love to hear your answers and explanation will be great 😁
Does a Full Stack Junior Software Developer exist? I just saw a job posting for it
Published: 2020-11-04 21:04:11

The job posting:
https://digitalsalt.perspectivefunnel.com/softwaredeveloper/?fbclid=PAAaYLLMz3R30x_Y5wKlZOKtrx4YuAdDrGHSUBGDNsOqXlGh1kNCS6L4Pl4HU

It screams I'm looking for a full stack developer but the salary of a junior.
A simple testing checklist
Tags: testing, beginners
Published: 2020-11-04 20:54:25

photo credit: Chris Reid from Unsplash.

> Code without tests is broken as designed.

But testing is hard. Do you find it hard to know what to test in a piece of code? I know I do sometimes. Do you wish you had some mental or physical checklist to make it easier?

Here is one that you may find useful. Feel free to take what you may of it and remix to create your own flavour. Also please do share tips and tricks on testing you have found useful (for you see, I'm but a newbie in this thing). 


Anyway, the checklist. I have put them in question form. Let your test cases answer them with those nice green checks we all love to see.

## Does the code work?
By 'work', I mean does the code do what it is meant to do, according to the requirement or specification? Add some test cases that question or verifies your assumptions about the problem you are solving. A passing test is a witness you can call to defend your implementation. At least, for now.

## Does the code fail? On wrong inputs?
Okay, so the code works well given the right inputs. But does it fail when given the wrong ones? And if yes, how does it fail? Does it fail gracefully or does it leave behind a trail of broken wares after failing? Beware of code that treats good and bad inputs the same. It is a ticking time bomb waiting to explode in the face of your users and make them very very unhappy.

## Does it handle edge cases well?
What is an [edge case](https://en.wikipedia.org/wiki/Edge_case)? Well, let's just say for the sake of simplicity that it is the values at the  extreme ends of the input type for the code. Also, they are the less-likely-to-show-up inputs to the code. But they can cause a scene when they show up. For example, if the code accepts strings as inputs, how does it handle an empty string? On the other end, how about very long strings? Or more interesting, what happens if a non-latin string shows up to the party?

## Are the tests fast?
If not, why not? A unit test should be fast, I think. A usual culprit for slow unit tests is some network request going on. Find them and [mock them](https://stackoverflow.com/questions/2665812/what-is-mocking).
There might also be other reasons for a slow test. A large test case for example.

## Conclusion
There it is. A simple checklist for testing that I bet, is not hard to follow. Thanks for reading.


_Fun little fact: I wrote this article and lost it when I refreshed the page. I had assumed (and wrongly so) that the editor was auto-saving as I wrote along. If only I had tested that assumption :))_
material-ui Drawer - findDOMNode is deprecated in StrictMode
Published: 2020-11-04 20:35:27

Don't need to disable SctrictMode, just do it: 

**You can change:**

import { createMuiTheme } from '@material-ui/core';

**TO**

import { unstable_createMuiStrictModeTheme as createMuiTheme } from '@material-ui/core';
National Cybersecurity Awareness Month (NCSAM) at Auth0
Tags: security, cybersecurity, ncsam
Published: 2020-11-04 20:29:10

Learn a bit about what we're doing to improve our cybersecurity stance.
[Read more](https://auth0.com/blog/national-cybersecurity-awareness-month-ncsam-at-auth0/?utm_source=content_synd&utm_medium=sc&utm_campaign=ncsam)
Hack Hate presentations, prizes, and a magical performance!
Tags: civictech, hatecrime, hackathon, techforgood
Published: 2020-11-04 20:10:06

---
title: Hack Hate presentations, prizes, and a magical performance!
published: true
description: Hack Hate 2020 is closing soon, and on Nov 8th you can join us to see 11 amazing projects, and a magician! Tickets are FREE
tags: #civictech #hatecrime #hackathon #techforgood
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/yaar3amgr6zkug07tawx.png
---

Hello from [Hack Hate 2020](https://hackhate.org)!

I wrote before about [why we're running Hack Hate - a hackathon against hate crime](https://dev.to/instantiator/we-re-running-hack-hate-a-hackathon-against-hate-crime-here-s-why-10k8). I'm really glad I did because people here at dev.to who saw it joined 150 other ticket holders in early October, for our opening talks!

Hate crime is vile, and our participants had a chance to hear from some incredible people working with communities that are targeted for hate. They learned about the problem, and built some fascinating solutions.

_4 weeks later, and 48 people across 11 teams will be presenting their projects this Sunday..._

**Now it's time to see what our incredible participants have created!**

On Nov 8, from 11:00 GMT, those teams will present their awesome new innovations in the fight against hate. I really hope you'll [check it out](https://hackhate.org) - they deserve as much exposure as possible!

![13 projects, each focussing on an aspect of hate crime, are arranged in a graph - with arrows indicating which projects could provide data to others, creating a network of projects supporting each other.](https://dev-to-uploads.s3.amazonaws.com/i/jwujf7wszinmt6p9paq5.png)

**[Join us](https://hackhate.org) to support the teams, see what they have created, and enjoy a magical performance from magician Darren Delaney!**

Tickets are free from: [hackhate.org](https://hackhate.org)

![Hack Hate presentations poster](https://dev-to-uploads.s3.amazonaws.com/i/yaar3amgr6zkug07tawx.png)
How to disable welcome message from Office 365 groups
Tags: m365, powershell
Published: 2020-11-04 20:19:17

Keep this post short and productive.
Request from customer: "I want to disable the welcome message for Office 365 groups in my tenant."
Solution:

The only way to remove the welcome message is connect to Exchange Online with PowerShell.
First of all you have to install the PowerShell module "ExchangeOnlineManagement".

```powershell
Install-Module -Name ExchangeOnlineManagement
```

Now you can connect to Exchange Online with this command:

```powershell
Connect-ExchangeOnline -UserPrincipalName "<YOUR UPN>" -ShowProgress $true
```

When you are connected you can disable the welcome message for the Office 365 (and other settings) with the following command:

```powershell
Set-UnifiedGroup $group.Identity -AlwaysSubscribeMembersToCalendarEvents:$false -AutoSubscribeNewMembers:$false  -SubscriptionEnabled:$false -UnifiedGroupWelcomeMessageEnabled:$false
```

You can disable the welcome message for all the Office 365 Groups in your tenant with the script below:

```powershell
Connect-ExchangeOnline -UserPrincipalName <YOUR UPN> -ShowProgress $true

#$O365Groups = Get-UnifiedGroup | Where-Object { $_.WelcomeMessageEnabled -eq $true }
$O365Groups = Get-UnifiedGroup

foreach ($group in $O365Groups) {
    Write-Host "Disabling Welcome Message on O365 Group: " -NoNewline; Write-Host $group.DisplayName -ForegroundColor Cyan
    Set-UnifiedGroup $group.Identity -AlwaysSubscribeMembersToCalendarEvents:$false -AutoSubscribeNewMembers:$false  -SubscriptionEnabled:$false -UnifiedGroupWelcomeMessageEnabled:$false
}

Disconnect-ExchangeOnline
```
Linux issues
Tags: linux, void
Published: 2020-11-04 20:12:43

Problem: Can't lower / raise volume and brightness
Solution: get xbindkeys for volume and then get xbacklight for brightness, then finally add your user to the video group

Problem: can't read hard disk or any ntfs device. 
Solution: Get ntfs-3g

Problem: no nm-applet 
Solution: use `nmcli d w` to list devices
then `nmcli d w connect SSID password`

Problem: display volume in dwmblocks status bar.
Solution: this is the command for it on pulseaudio
`pactl list sinks | grep '^[[:space:]]Volume:' | \
    head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,'`
This uses multiple sinks and chooses only one of them. I got it from askubuntu or something