teleren/devto huggingface dataset:
Get your ball rolling, use music anchors to trigger flow state.
Tags: motivation, productivity, mentalhealth, beginners
Published: 2020-03-10 07:15:40


Cover photo by **[Stas Knop](https://www.pexels.com/@stasknop?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels)** from **[Pexels](https://www.pexels.com/photo/black-cassette-tape-on-top-of-red-and-yellow-surface-1626481/?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels)**

Facebook, YouTube, Twitter, Reddit or any other social media for that matter.

These companies make money from your direct attention, making it easy to drift into a state of procrastination.

The technology and business behind these companies are designed for that purpose.

Making our jobs harder especially working remotely due to vast amounts of material that is distracting.

To work effectively, to be trusted by your team or client discipline is required.

Sometimes you need a small push to get your ball rolling.

If you are finding this difficult consider this tool/strategy/hack.

1.  Find a song you love.
2.  Play the song on repeat.
3.  Play the song in different environments; at work, during a gym session or during activities that you are passionate about.

The eventual goal is to **psychologically anchor** your song with a internal **flow state that is triggered through a gym session or a hobby** through a process of **[Classical Conditioning](https://en.wikipedia.org/wiki/Classical_conditioning)**.

Overtime when the song is playing it should make you feel that it is easier to focus and drift into a state of flow, making you feel compelled to be productive.

These are my top 3 played songs, notice the plays for number 1?

![](https://worldclassremote.com/content/images/2020/02/Screenshot-2020-02-27-at-18.16.05.png)

Personally, I've played this song over many gym and my [skateboarding](https://www.youtube.com/watch?v=nRx9BUo3Cho) sessions. Playing it at work has helped my mind connect back to those activities, helping me to focus.

This is the song in question: [Rob Zombie - Dragula - Matrix Remix](https://www.youtube.com/watch?v=fwgNscjpHn4).

Good luck with this little technique, give it ago.

Follow along with my posts and my project [world class remote](https://worldclassremote.com/what-does-it-mean-to-be-a-senior-developer/).

Matt.
CSS framework(Boostrap) Or Continue to Improve My CSS?
Published: 2020-03-10 06:48:04

I am a 16 year old kid who wants to learn full stack Web Development but I am stuck on RWD(Responsive Web Design). I can go through all of the exercises on Free Code Camp but at the end of the day when I wanted to make a good responsive website I couldn't put Flexbox and CSS Grid together. I could find out all of that in couple minutes of searching but I wrote this to ask this question. I didn't let myself move on to Using javascript frameworks because I needed to learn CSS Layouts well. I already Learned Javascript Basics(Already learned Python so it was easy to learn Javascript basics), and ES6. Web developers face many problems when their company managers or recruiters ask them to write responsive websites in pure CSS, but they can't because they learned to code using a CSS Frameworks which means that they wouldn't need CSS GRID OR FLEXBOX.
My question is should I use Boostrap(Never Used it) or should I continue to improve my CSS? Someone on reddit said "It is easy to learn CSS but hard to master it".
Should I move on?
A hassle-free, zero dependency way to handle console.log() & co. in a production Angular application
Tags: angular, ionic, debugging
Published: 2020-03-10 06:40:33

`console.log()` and its siblings likely are the most used methods any JavaScript developer has ever used. And that‘s totally fine, because `console.log()` most definitely is a huge help if not even a life saver when debugging an application.

And there is the challenge right there: as helpful as output in the browser‘s console is when debugging, it is absolutely not a good idea to leave this output when deploying your application to production. At least any output below the error level.

So one solution could be to not leave any console methods in the code (except maybe `console.error()`). Fortunately linters like [tslint](https://palantir.github.io/tslint/rules/no-console/) or [eslint](https://eslint.org/docs/rules/no-console) have built-in rules to help you with that. But let‘s be honest, we developers usually are lazy af. Also often there are situations where we want to have console output permanently when developing. So it would be a huge hassle to add, remove, re-add (and so on) the console methods.

I wrote about a [custom logger service](https://manuel-heidrich.dev/blog/building-a-simple-logger-service-for-ionic-3) a couple of years ago, which is environment agnostic, but I’m no longer using it. The main reason is that you are not able to see the file and line the output was generated. Plus I do not always want to import and inject a service first. Using `console.log()` is just so much more convenient.

## My solution
For my current side project [Monitornator](https://monitornator.io) I added a method called `handleConsole()` to my `AppComponent` that looks like this:

```javascript
private handleConsole(): void {
  let methods: string[] = [];

  switch (environment.name) {
    case ‘production’:
    case ‘staging’:
      methods = [‘log’, ‘debug’, ‘info’, ‘warn’];
      break;

    default:
      break;
  }

  if (methods.length) {
    console.warn(`🚨 Console output is disabled on ${environment.name}!`);
  }

  methods.forEach((method) => {
    console[method] = function(): void { };
  });
}
```

What it does is basically overriding any console method with an empty function, depending on the current environment. So leaving `console.log()` in the code in this case will just print nothing while on staging or production.
Using switch case allows me to quickly add different log levels for different environments.
And before overriding the methods I print a warning to the console, because... let’s say SOMEONE more then once spent a huge amount of time wondering why `console.log()` suddenly stopped working while on staging 🤦🏼‍♂️.

## Conclusion
Of course there is a fair amount of logging libraries out there, some better than others, but I personally don’t want to add another dependency for something I can solve with just a couple lines of code. The above solution works pretty fine for me.
How to work remotely and not lose your mind.
Tags: productivity, mindset, career, remote
Published: 2020-03-10 06:32:43

Working from home is a dream for many but there are additional challenges which we all face, such as:

- Discipline (Keep to a schedule)
- Time management (Stop working)
- Consistency (Continuing the work, pacing yourself)
- Keeping up Motivation.
- Dealing with procrastination.
- Imposter syndrome.
- Winning work from clients. 

We're building a toolkit for starting and maintaining your career.

Helping software developers navigate into remote focused roles.

Follow along with my posts and my project [world class remote](https://worldclassremote.com/how-to-work-remotely-and-not-lose-your-mind/).
Flutter Quiz App
Tags: flutter, android, quiz, dart
Published: 2020-03-10 06:10:47

Hey Everyone,

I have created a complete quiz app with *Flutter* (Android & iOS) with Laravel (PHP & MySQL) backend

Link: https://mythemebox.com/template/flutter-quiz-app-with-backend/


![Flutter Quiz App](https://dev-to-uploads.s3.amazonaws.com/i/70loc7ybmwhp7glyhfmz.png)

 
### App Screens 

- Home Screen
- Topics wise or category wise
- Quiz Page / Questions page
- Text and Image-based Quiz
- Progress Indicator
- Results page with Chart
- Detailed Report for Quiz took
- Social Sharing for scores

### Admin Panel Screen

- User Authentication / Admin login & Register
- Manage Questions (CRUD) with Tags
- Tags wise search
- Pagination
- Manage Topics / Categories
- Settings Page

Credits: https://mythemebox.com/template/flutter-quiz-app-with-backend/
Guide to Problem Solving 
Tags: coding, interview, problemsolving, beginners
Published: 2020-03-10 06:03:21

---
title: Guide to Problem Solving 
published: true
description: Youtube series for problem solving using c++
tags: coding, interviews, problemsolving, beginners
---

Hello coders! This small post is for people who are looking for a job change and are stuck in Problem Solving rounds of interviews. I was also studying and found there are not many resources to help us out. So I decided to make youtube videos while practicing. This would help me build confidence, can be used by other folks and by me as well for future reference. Below is the link to my video

{% youtube FhwNdxnb738 %}

Please like and subscribe if you find the video helpful 😊

Let me know in the comments in case you want me to make videos on some particular topic. 😊
Map JSON object to Controller Action with multiple parameters
Tags: dotnet, csharp, webdev
Published: 2020-03-10 05:47:06

Last week I was surprised to find out that .Net Core still doesn't support something that every JavaScript/TypeScript framework does: mapping JSON object to multiple action parameters just isn't supported. You are supposed to define a `Model` class, add it as a single parameter and mark it with `[FromBody]`.

```javascript
{ "a": "a", "b": "b" }
```

This just didn't sit right with me. Why declare a whole new class for every single Action with just a few parameters. What do I need to do to have a controller method as simple as this?

```C#
[HttpPost]
public async Task SometMethod(string a, string b) 
{
  return Ok();
}
```

I couldn't find an answer, so I wrote my own package to do that.
You can [download it here](https://www.nuget.org/packages/JsonParametersModelBinder/) or [view source here](https://github.com/egorpavlikhin/JsonParametersModelBinder).

It's very simple, and quite slow for now (as it re-parses the whole request for every parameter), but does the job for simple cases.

## Usage
Given JSON
```javascript
{ "a": "a", "b": { "c": "value" } }
``` 

**Step 1.**
Add attribute `JsonParameters` to your action
```C#
[HttpPost("two")]
[JsonParameters]
public async Task<IActionResult> TwoParameters(string a, dynamic b)
{
    Console.WriteLine(b.c);
    return Ok();
}
```

**Step 2.**
Enhoy simplified workflow.

## Thanks
Thanks to [tchivs](https://github.com/tchivs) for providing [code to map to dynamic types](https://github.com/dotnet/runtime/issues/29690#issuecomment-571969037)
Nothing is as it seems...
Tags: javascript, codenewbie, todayilearned
Published: 2020-03-10 05:44:13

Today I learned that NaN (not a number) is actually a number, and null (no value) is an object in JavaScript.  

NaN is a numeric datatype, but its value cannot be expressed with real numbers. It is a non-configurable, non-writable property. The name "Not a Number" doesn't mean "This value isn't numeric", it just means "I can't process this, so I'm going to tell you it's not a valid number". JavaScript's number datatype is based on the floating point standard (IEEE 754 - https://standards.ieee.org/standard/754-2019.html), which defines rules for a number's storage in memory, what operations return, and what a comparison returns. If any of the values you are comparing are NaN, the value returned will be false.

Examples: 

`typeof(NaN)` // "number"

`const var1 = 5 * "abc"`
`const var2 = 5 * "abc"`

`var1` // NaN
`var2` // NaN

`var1 == var2` // false

`NaN == NaN` // false


The value null represents the absence of any object value, but oddly enough, it is an object according to JavaScript. This is often regarded as a mistake from the first version of JavaScript that can't be fixed, but some disagree contending that it was not a mistake. Very few people believe it makes complete sense, though. Lots of code is reliant on null being an object, so 'fixing' it would result in many additional bugs. If it ain't broke, don't fix it?

Example: 

`typeof null` // "object"
Codesandbox has a bug with my JS(Function does not exist)
Tags: webdev, javascript, codenewbie, help
Published: 2020-03-10 05:33:21

Just recently a friend asked for some help on a problem, right in the middle of work, me being the nice guy, I put everything down and worked on it.

All they sent was an image, and I had to decipher what they had asked.


Now comes the tricky part setting up my environment for their problem, the fastest way to get to the solution, _I still have work that needs to be done._

Always saw this [codesandbox](https://codesandbox.io) and yet I never used it figured should be the best time to play with it, I have an already fully set up environment, and can share the code with them as quickly as possible without stressing about how are they going to transfer my code from WhatsApp to their editor.


[So I  create a sandbox]( https://codesandbox.io/s)


and pluck in code will learn from day one some dirty HTML, that calls a function onClick

![MY HTML](https://github.com/devUniversity/line.change/blob/master/images/carbon.png?raw=true"My HTML")


and then some very illogical js 
![MY JS](https://github.com/devUniversity/line.change/blob/master/images/carbon%20(1).png?raw=true"My JS")


Added a jquery dependency.

![Jquery Depedency](https://github.com/devUniversity/line.change/blob/master/images/Screenshot%20(419).png?raw=true"Adding Jquery dependency")


_the reason why I did not want to code on my machine, had no time to download a dependency_,

and hey guess what codesandbox sends me an error telling me the function changeColour does not exist.

Having no time to debug why codesandbox is being a baby I decided to move onto my trusty vscode(I can not belive I am saying this)

And plucked that in there(_spent a whole 5 mins getting the jquery cdn_) ran my code, and it worked. _thank goodness for a second there i thought everything i knew was wrong_

Then I woke up and realized codesandbox should not have bugged out on me like that, honestly, that would have saved me an extra 10 minutes, my friend would have been helped and i would have gotten back to work, in record time.

_And I would have practiced some real good source control practices_


Well I really would like to start using codesandbox, and need some help on this bug, will delay this post a day to see if I can not find any solutions to this bug, and the help tag is allowed.

But I call upon all devs can you please help me with this, [here is the code already sandboxed and ready to be fixed](https://codesandbox.io/s/nice-faraday-0yo7b?fontsize=14&hidenavigation=1&theme=dark)

thank you in advance.
Nevertheless, Hamsa Coded
Tags: wecoded
Published: 2020-03-10 05:33:21

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title & narrative! ✨ -->

##This is the first time ever I write something in shecoded, I was too shy and hesitant to do so, I didn't feel I was good enough or if I belonged to this group of people. 

### Back Then
Looking at where we are now, comparing it to when I went to the Computer Engineering school in 1999, we have come a very long way, yes there is a lot to work on for a better future, to be considered equal, but we have walked a very long way and we have to celebrate what we did and know that we should never give up.

I loved working as a QA, however what actually made me be a QA was that the market back then when I graduated in 2004 didn't see women good enough to code, it was difficult to find a job as a dev in the Middle East when you are a woman, however easier to get one as a QA or a BA, so I did.

Now, I never hated my job, always loved what I was doing, but I wanted to write code, but I never thought I was good enough! 
I started learning automation, and after a while moved out of the middle east and became a team lead .. But I still wanted to do more, I want code as a dev, but am I good enough?! 

### Now
Although I am a team lead, where I work now @ thinkific I was given the opportunity to actually learn how to code as a dev and to set a learning path for myself, I learned to trust how smart I am and to follow my passion! 

I am surrounded by a group of an amazing supportive women (and men), badass women, that I am proud to be their colleague and proud that they are my friends.
I am still learning and it is a slow progress because I have my main role as a lead that I love and am expected to do, but regardless of everything, I am coding and proud and very happy about it :)

### A small advice 
Never give up on your dreams, find a job that will empower you and help you grow, surround yourself by people who believe in you and push you to achieve your dreams. 
Give back to your community, always be supportive to others, and be kind, encourage people to try something that they wanted to learn, challenge them out of their comfort zone and let them know you believe in them :)

<!-- Once your post is published, it will not appear on the /t/shecoded page until an admin approves it. This is an extra step to ensure there is no abuse on this important tag. -->
Three keys to being successful as a QA/QE/SDET
Tags: testing, career
Published: 2020-03-10 05:09:52

1) Always think about how the small pieces interact with the larger whole
2) Be curious about how & why a developer is implementing a change
3) Understand what's important to the business' success

**Bonus** via [Arlene Andrews](https://dev.to/@arleneandrews)
4) Be able to accept that things *will* change (be it tools, code, and/or requirements).
Updating RUBY in Ubuntu
Published: 2020-03-10 04:10:56

Well, it seems the apt command is downloading a old ver of RUBY... Just how do I install Ruby2.7? The highest in the apt get is 2.5. I can download the snap ver but it does not reg with the system!! I tech really wish texh was not so convoluted at times and was straight forward/// ;(

So atm the moment I can't do anything with Middleman, Rails, or Gems becuase everything to totaly out of date. please someone help I';m using Zorin OS atm
Installer une Node Waves - Partie 1
Tags: wavesplatform, blockchain, node, fullnode
Published: 2020-03-10 04:00:51

Voici notre première vidéo sur les Full Node qui vous présente les fondamentaux mais aussi comment choisir et configurer votre server qui accueillera la Node :

https://youtu.be/FLhlWxoUggM

N'hésitez pas si questions !

Voici les commandes utilisées dans la vidéo : 

Vous connecter au server via SSH :
ssh root@adresse-ip

Créer un nouvel utilisateur (fullnode) :
adduser fullnode
usermod -aG sudo fullnodeadduser
exit

Créer une paire de clés SSH sur votre ordinateur :
start git bash
ssh-keygen
enter name 
cat ~/.ssh/fullnode.pub

Copier la clé publique sur le server :
ssh-copy-id -i ~/.ssh/fullnode.pub fullnode@ip

Se connecter au server via la pair de clé
ssh -i ~/.ssh/fullnode fullnode@ip

PROCHAINES VIDEOS :

Le 11 mars
Sécuriser son server

Le 14 mars
Installer une Node avec un package .deb

Le 18 mars
Installer une Node avec Docker

Le 21 mars
Installer une Node avec APT
Comprendre les Updates, Rollback et Votes

Le 25 mars
Node API et l'extension Matcher

Suivez nous et posez toutes vos questions sur :

Telegram : https://t.me/wavesdappsFR
Twitter : https://twitter.com/WavesDevFr

https://www.wavesplatform.com
Software and technology stacks [Me](2020)
Tags: review
Published: 2020-03-10 03:42:45

CSS Framework (CSS + JS)
- Ant Design (Main)
- React Bootstrap
- SCSS

Frontend (JS + JSX + TS + TSX)
- React (Main)
- React Hooks
- React Hooks Form
- React Context API
- Redux/Redux Toolkit
- NextJs (SSR)
- Vue.js/Vuex
- NuxtJS (SSR)

Backend (JS + TS)
- NestJS (Main)
- AdonisJS (Main)
- Laravel

Authentication (JS + TS)
- passportjs.org
- OAuth2
- JWT

Mobile App (JS + TS)
- React native
- expo.io

Database
- MariaDB (Main)
- SQL Server
- sequelize.org (Query Builder & Migration & ORM)
- Redis (SSO, Queue)

Processing Jobs (Queue)
- Bee queue

Server & Deploy
- NGINX
- Docker/Docker-compose
- GitHub (Main)
- Gitlab
- Ubuntu Server minimal
- Jenkins (CI/CD)
- DigitalOcean
- Microsoft Azure
- Google Cloud Platform (GCP)
- Cloudflare
- Let's encrypt & certbot
- Netlify
- Amazon S3

Tools & IDE
- WebStorm
- PHPStorm
- Navicat
- Docker Desktop
- Microsoft Team
- Microsoft Planner
- Jira Software
- Google Chrome
- iTerm2
Basic Networking Tool: netstat
Tags: networking
Published: 2020-03-14 14:27:24

---
title: Basic Networking Tool: netstat
published: true
date: 2020-03-10 01:59:00 UTC
tags: Networking
canonical_url: https://coderscat.com/basic-networking-tool-netstat
---

![CAPTURE-2020_03_09_basic-networking-tool-netstat.org_20200310_100143.png](https://coderscat.com/wp-content/uploads/CAPTURE-2020_03_09_basic-networking-tool-netstat.org_20200310_100143.png)

`netstat` is a command-line networking tool, which can be used to show the statistics of networking connections. It’s a must tool for finding the performance problems in Unix/Linux networking.

In this post, I will list the typical usages and most used options of `netstat`.

## List all the sockets

Use `-a` option to list all the sockets, including those in `listen` state and also not in `listen` state.

Use `-l` option to list the sockets in `listen` status.

```
netstat -a
```

![2020_03_09_basic-networking-tool-netstat.org_20200310_100508.png](https://coderscat.com/wp-content/uploads/2020_03_09_basic-networking-tool-netstat.org_20200310_100508.png)

## List only TCP sockets

Use `-t` option to list only the TCP sockets.

```
netstat -tnetstat -lt # list all TCP sockets in listen status
```

![CAPTURE-2020_03_09_basic-networking-tool-netstat.org_20200310_095719.png](https://coderscat.com/wp-content/uploads/CAPTURE-2020_03_09_basic-networking-tool-netstat.org_20200310_095719.png)

## Find the related process

Use `-p` option to show the program name and pid with sockets.

```
netstat -ltp # list all TCP sockets in listen status, with the program name
```

![2020_03_09_basic-networking-tool-netstat.org_20200310_104252.png](https://coderscat.com/wp-content/uploads/2020_03_09_basic-networking-tool-netstat.org_20200310_104252.png)

Suppose we want to find which process is binding a specific socket.

```
netstat -lnp | grep 1234
```

![2020_03_09_basic-networking-tool-netstat.org_20200310_104442.png](https://coderscat.com/wp-content/uploads/2020_03_09_basic-networking-tool-netstat.org_20200310_104442.png)

## Use pipeline for statistics of networking

With the pipeline, we could combine netstat with other command utilities, like `awk`, sort.

Let’s find all the counts for different networking status.

![2020_03_09_basic-networking-tool-netstat.org_20200310_105712.png](https://coderscat.com/wp-content/uploads/2020_03_09_basic-networking-tool-netstat.org_20200310_105712.png)

Note:

`awk '{print $6}'` : use just the 6th column from the output.

`tail -n + 2` : remove the first line from output (since it’s a header)

The post [Basic Networking Tool: netstat](https://coderscat.com/basic-networking-tool-netstat) appeared first on [CodersCat](https://coderscat.com).
How to build the next billion-dollar startup?
Tags: tutorial, startup, javascript, react
Published: 2020-03-10 03:18:15

## Learn to code

There are so many free resources.
Learn from them daily.

Follow blogs, read W3 School tutorials, follow Youtube channels.
Find a mentor. This will expedite your learning process.


## Online courses

Take end to end courses.
Build some sample projects and build your portfolio.

Find free courses on [Freecodecamp](https://www.freecodecamp.org/) and [Udemy](https://www.udemy.com/)

Buy the course if needed. They will pay off eventually.

Don't be afraid to invest in yourself.


My favorite ones are 
- [Wess Boss](https://beginnerjavascript.com/)
- [JavaScript for profit](https://course.profitwithjavascript.com/)
- [Ngninja's Ultimate Web Dev Bootcamp](https://cutt.ly/web-development-bootcamp) - shameless plug


## Ask the right questions

Finally, ask the right questions to get an idea for your startup.

This will get you started -
1. What problems can I solve?
2. Is there a market/niche for it?
3. What's the average sale per unit/service sold?
4. What's the MVP (minimum viable product) I can launch and test the above?

--- 

I blurb like this on Instagram too, [here](https://www.instagram.com/ranjana.ban)