teleren/devto huggingface dataset:
How to create a directory or a folder in Linux?
Tags: resource
Published: 2021-07-10 00:00:00

---
  title: How to create a directory or a folder in Linux?
  published: true
  tags: Resource
  date: Sat Jul 10 2021 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/create-directory-folder-linux
  cover_image: https://melvingeorge.me/_next/static/images/main-6b209ad2045ea7012a9c2d9d0cce4124.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/create-directory-folder-linux)
  
To create a directory or a folder, you can use the `mkdir` command followed by the name of the directory in Linux.

For example, to create a directory or a folder with the name of `Hello`, you can use the `mkdir` command like this,

```bash
# Make directory or folder in Linux 🔥
mkdir Hello
```

This will create a directory named `Hello`.

- The `mkdir` command is also called the `make directory` command.

See the above code live in [repl.it](https://replit.com/@melvin2016/create-directory-or-folder-in-linux#main.sh)

That's all 😃!

### Feel free to share if you found this useful 😃.

---
There's always room for improvement
Tags: continuousimprovemen, culture, process
Published: 2021-07-12 07:20:44

---
title: There's always room for improvement
published: true
date: 2021-07-10 00:00:00 UTC
tags: continuousimprovemen,culture,process
canonical_url: https://jhall.io/archive/2021/07/10/theres-always-room-for-improvement/
---

One of my favorite YouTube channels is [Veritasium](https://www.youtube.com/channel/UCHnyfMqiRRG1u-2MsSQLbXA). This morning over my breakfast I watched one of the recent episodes, [_The Longest-Running Evolution Experiment_](https://www.youtube.com/watch?v=w4sLAQvEH-M), which details an bacteria evolutionary experiment that’s been ongoing for the last 30+ years. Near the end of the video, the professor running the experiment [explains](https://youtu.be/w4sLAQvEH-M?t=852) that contrary to initial expectations, that evolution in the fixed laboratory environment would eventually plateau:

> The power law model says things slow down, but it doesn’t have an upper bound. Things will just keep going faster, but at a slower and slower rate.

If thousands of generations of bacteria can continue to improve in a sterile laboratory, what does this say about our projects, teams, and companies, in dynamic environment?

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
Uncover the Real Senior Developer w/ Tomasz Waraksa
Tags: devops, seniordeveloper, hiring, devteam
Published: 2021-07-09 23:47:30

Should you be hiring a software developer or a senior software developer…and what’s the difference? And how can you know during an interview? 

To help answer these questions, Tomasz Waraksa, a tenured senior software developer with decades of hiring experience, joins the [Dev Interrupted podcast](https://devinterrupted.com/podcast/uncover-the-real-senior-developer/) to explain how companies should rethink their approach to hiring a senior software developer, and what it means when one joins your team.

#**Listen to the full episode**
{% spotify spotify:episode:4lAKfoOnzMZe7ANVaKW7YS %}

#**Episode Highlights include:**
* The different between a regular and senior developer
* What to ask a senior software developer during the hiring process
* How this senior role has changed over the decades
* What you should expect from a senior developer after hiring one

#**Join the Dev Interrupted Discord Server**
With over 1200 members, the Dev Interrupted Discord Community is the best place for Engineering Leaders to engage in daily conversation. No sales people allowed. [Join the community >>](https://discord.gg/eFMP649A2z)
![Join the Dev Interrupted Discord Community!](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/19j3dzgz4r4kzav3w6z8.png)
3 Steps Improve Code Readability
Tags: learningtocode, codereview, cleancode, codenewbie
Published: 2021-07-10 12:18:40

---
title: 3 Steps Improve Code Readability
published: true
date: 2021-07-09 23:02:53 UTC
tags: learningtocode,codereview,cleancode,codenewbie
canonical_url: https://bhavaniravi.medium.com/3-steps-improve-code-readability-b6ad985048a3
---

Do you want to write great code or step up as a developer? Every programmer wants to write perfect code, but due to ever-demanding business needs, hustle culture, we need to make trade-offs. We often don’t get to write that ideal code we dream of. Despite all that, we can ensure that the code we write is reasonably good. Here are three tips that I use that prevent your code from becoming a noodly mess.

### 1. Design Before Code

Instead of jumping ahead and starting to code, when you see a problem, take a step back, and I said the problem into a chunk of solvable pieces. You lose the power of visualization when you start dealing with files with classes and functions. The program deconstruction helps us to look at the problems on a deeper level. I often take a piece of paper and lay down the necessary modules to solve the problem and visualize how they interact.

### 2. Is it Maintainable?

Once you have a solid design, it’s time to poke holes in it and find flaws. Does it bear the load the Product managers going to bring in for the next release? Trust me, “Agile,” “Hustle,” and “startups” are not doing us any favor. You don’t have to over-engineer, but being aware of future changes lets us design change-friendly interfaces.

### 3. Is it intuitive?

An intuitive Codebase is a step up from readable code. Remember, you are not coding just for yourself. You are coding for your team, your future self, and as the common joke goes, the Psychopath will take over your code 10 years from now. A well-modularised code that reads like English is much better than a single file with 200 lines.

Look at the following example,

```
questions = read_quiz_questions() 
for question in questions: 
     display_question(question) 
     answer = get_answer() 
     calculate_score(question, answer)
```

Without telling much about what this program does, You understand what’s happening. It’s more than readable. It’s intuitive.

The above methods ensure that the code is easy to consume for other team members or the future you. While these give you reasonably good code, remember that it is just a starting point. Just because you are doing the above three doesn’t mean ignoring test cases, documentation, design patterns, etc. We will touch base on them in future posts.

_Originally published at_ [_https://thelearning.dev_](https://thelearning.dev/blog/3-steps-write-readable-code/)_._
4 Browser Extensions to Improve Your Productivity
Tags: tooling, productivity
Published: 2021-07-09 22:45:44

In this article I will talk about some of the extensions I use to improve my productivity when developing web applications.

# 1 - [VisBug](https://chrome.google.com/webstore/detail/visbug/cdockenadnadldjbbgcallicgledbeoc/)

![visbug](https://res.cloudinary.com/dj5iihhqv/image/upload/v1625868495/Untitled-min_ipipwm.png)

This extension helps debug your UI. I bet you've been lost or confused several times trying to understand the composition of some visual elements of your application. 

One of the tools I use most in VisBug is inspect, with which you can see the names of CSS classes and their properties in a quick and visual way.

However, we have a huge range of tools that help us make small visual adjustments in our application, to which we can make the respective changes in our code. Some of the things we can do with this extension is change margins, paddings, colors, placements, Flexbox, among others.

# 2 - [Pesticide](https://chrome.google.com/webstore/detail/pesticide-for-chrome-with/neonnmencpneifkhlmhmfhfiklgjmloi)

![pesticide](https://res.cloudinary.com/dj5iihhqv/image/upload/v1625868673/Screenshot_2021-07-09_at_23-10-26_Links_-_Francisco_Mendes-min_nwnjht.png)

By using this extension the element will have an outline to show their boundaries so you can observe their behavior. I love using this extension to check that layouts are the way I intended, or that elements are visually aligned correctly.

I think this extension is the one that helps you find any problems you may have in a more immediate way, because the outlines only appear with one click.

# 3 - [Window Resizer](https://chrome.google.com/webstore/detail/window-resizer/hgjfanlllikpfpaadggdbchdpcbiaeei)

![Window Resizer](https://res.cloudinary.com/dj5iihhqv/image/upload/v1625869447/Frame_1-min_fpjdxl.png)

With this extension you have access to a large number of presets that are nothing less than window resolutions, this way you can test the responsiveness of your applications with a large number of screen resolutions available. 

In the same way you can have multiple windows open to check different resolutions at the same time.

# 4 - [axe DevTools](https://chrome.google.com/webstore/detail/axe-devtools-web-accessib/lhdoppojpmngadmnindnejefpokejbdd)

![axe devtools](https://res.cloudinary.com/dj5iihhqv/image/upload/v1625869987/Frame_1-min_fmqlil.png)

This extension is in my opinion the best extension to check the accessibility of your website. Basically through the extension do a scan and then it gives you instructions of the things you need to pay attention to in order to improve.

One of the points that I find incredible is that it gives you a brief description of the problem and then presents a possible solution to it. The same way we can focus the element that we have to improve, it can also take us directly to the browser's devtools inspector.

## Conclusion

I hope these extensions will bring you an improvement in your day-to-day productivity. If you have any other suggestions, please mention them in the comments so I can try them out too!
⭐️⭐️ tsParticles 1.31.0 and 2K stars on GitHub 🔥
Tags: showdev, javascript, html, webdev
Published: 2021-07-09 22:24:00

# tsParticles 1.31.0

First of all, thanks to all users that left a stars to this project, it's growing fast for being just a new particles library.

![2K Stars](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6d6g359x67shoiwwma5l.png)

I wanted to release the `1.31.0` version when 2K stars reached since it was a close target.

Now let's see what's new in this version

## New Features

- Added zIndex options, closes #979
- Added particles groups to options

## Changes

- Infection is now a plugin, and it's included and is not included in the slim version
- Changed particles move distance options to an horizontal/vertical object, single number still valid

## Sample

{% codepen https://codepen.io/matteobruni/pen/rNmMVEx %}

Here we can see the new Z Index effect, particles are in different "layers" and opacity is not affected by configuration.

Let's set a new target to 3K stars from now, thanks for the new star ⭐️

{% github matteobruni/tsparticles %}

You can see other configurations and articles in my [profile](https://dev.to/matteobruni)

{% link https://dev.to/matteobruni/how-to-create-beautiful-and-realistic-confetti-animation-with-tsparticles-1lkm %}

{% link https://dev.to/matteobruni/tsparticles-fireworks-effect-2-0-10p9 %}
Day 405 : Generation
Tags: hiphop, code, coding, lifelongdev
Published: 2021-07-09 21:55:01

_liner notes_:
- Professional : Not a bad day. Didn't have any meetings so I was able to put some things into their final states where it doesn't rely on me doing anything else and it's in another person's hands. Reviewed some pull requests. Got some pull requests I made merged. Oh and when I went to work on that social media site that has been giving me trouble again said my activity may be against their community guide lines. I have done nothing expect accept an invite from a co-worker and was added to a work test group. That's it! This social media site sucks!!! I had to upload a photo of myself to be reviewed. I still don't have access and they have my photo. Terrible!

- Personal : So I got the thumbnail generation stuff worked out. I was also able to get the front end to pull the videos that have thumbnails and show them on the videos archive page. I think I'll have it all ready for the next live streams on Sunday. I want to get the videos in the dashboard so I can edit, deleted, get thumbnails generated for old videos etc. That will probably come after my next thing which is to get the details and transcripts of the archived videos automatically created with an API I've recently come across.

![Landscape view of a forest in Rampart Lakes, WA, US with sparse pine trees with green moss covered ground with mountains in the distance](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eoh0qrsvtz8pw8i0rq47.jpg)

Going to focus on finishing putting together the radio show for tomorrow and then work on some stuff for the live stream on Sunday. The new "Black Widow" movie came out so I may watch that or maybe work on my side project. That's about it.

Have a great night and weekend!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube _OX2oY3DqiE %}
Intro to Currying and Partial Application
Tags: javascript, beginners, programming, devops
Published: 2021-07-09 21:32:23

* This is a tough for myself since I'm still learning as I go but what I can recollect from what I read. it restructures a function so it takes one argument, then returns another function that takes the next argument, and so on.

* Here's an example:
```
function add(x) {
return function(y) {
  return function(z) {
    return x + y + z;
  }
}

}
console.log(add(10)(20)(30));
```
* The `add(10)(20)(30)` should return `60`.
* This is useful in your program if you can't supply all the arguments to a function at one time. You can save each function call into a variable, that hold's the returned function that takes the next argument when it's available.
Using the every Method in an array
Tags: javascript, devops, beginners, programming
Published: 2021-07-09 21:26:38

* The `every` method works with arrays to check if every element passes a particular test. It returns a Boolean value `true` if all values meet the criteria, false if not.

* Example, the following code would check if every element in arr is positive.
```
function check(arr) {
return arr.every(function(num) {
  return num > 0;
})

}
console.log(check([1, 2, 3, -4, 5]));
```
* `check([1, 2, 3, -4, 5])` should return `false`


#### Using the some Method
* The `some` method works with arrays to check if any element passes a particular test. It returns a Boolean value `true` if any of the values meet the criteria, false if not.
* Ex:
```
function check(arr) {
return arr.some(function(num) {
  return num > 0;
})

}
console.log(check([1, 2, 3, -4, 5]));
// would return true
```
Coding Problem
Published: 2021-07-09 20:46:34


problem:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b87ic815u5nf9b5ocm3g.png)
solution:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rgkeeoehdr3g9z23o6w.png)
Any one please explain the solution
What was your win this week?
Tags: discuss, weeklyretro
Published: 2021-07-09 20:27:08

---
title: What was your win this week?
published: true
description: Got to all your meetings on time? Started a new project? Fixed a tricky bug?
tags: discuss, weeklyretro
cover_image: https://cl.ly/188e843c2985/download/Image%202019-02-15%20at%202.36.37%20PM.png
---

Hey there!


**Looking back on your week, what was something you're proud of?**

All wins count — big or small 🎉

Examples of 'wins' include:

- Starting a new project
- Fixing a tricky bug
- Kicking back with friends... or whatever else might spark joy ❤️ 

---

Congrats on your wins this week!

![Weather Man dressed up as the sun](https://media.giphy.com/media/3SwvKYqfHVM7bUMAlc/giphy.gif)
Why you should try Vue.js ? (as a beginner)
Tags: vue, webdev
Published: 2021-07-09 20:10:22

Vue.js is a progressive JavaScript framework used for building user interfaces.

It was created by Evan You, and is maintained by him and the rest of the active core team members, so we can say it's entirely created and maintained by the community (and that's really awesome btw). Unlike some other popular frameworks, it’s not backed by any big tech company like React and Facebook or Angular and Google.

So why should you consider Vue.js for front-end development? Read on to learn the reasons.

##Flexible
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uctffkiocn67a6ywd0xx.png)
Vue can be used for a huge, modular SPA (Single Page Apps) as well as to construct small, interactive parts to be integrated using a different technology.
In other words, it can be anything you need it to: a library in your project or a full-featured framework used to build an entire product baby!
##Friendly
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fvi44uk3f8g7i3822dsb.png)
Developers love Vue.js not just because it’s a great technology, but also because it’s made with them in mind.

First, there’s vue-cli (CLI stands for ‘command line interface’), a handy tool that makes it trivially easy to start.

Second, there’s a well-written documentation that learning from it is like a walk in the park.

Vue’s learning curve is very newbie-friendly. You don’t really need a lot of time to get familiar with this technology, plus there’s no need to figure out tons of tools. If you do get stuck, just reach out to the community.
####Community support
{% youtube OrxmtDw4pVI %}
As we’ve mentioned, Vue.js exists thanks to its community. Because of that, community members are pretty active both in the Discord chat and forum. As evidence of community activities, just look at the number of Vue.js tags on Stack Overflow that now numbers more than 80 thousand.
##Performant and size-efficient
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6sy85ktpxz809a9av4kw.png)
Vue apps are smaller in size (so they are quicker to load and use less bandwidth) and typically more performant than equivalent applications built in other frameworks and [there are actual benchmark to prove this statement.](https://vuejs.org/v2/guide/comparison.html#Runtime-Performance)
##Popular
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ed9x0f9s2r5bwmk91v0q.png)
Vue.js is gaining popularity really quickly. Its users include the media giant NBC and America’s MIT, and you’d better believe that these guys know their technology.
While it’s easier to find developers who are already familiar with React or Angular, Vue’s learning curve makes it really easy to train your employees to use the technology.

###In a nutshell: try it!
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lsym2uclpk4e70b0ek1q.png) 
Vue.js is user- and developer-friendly, has tons of useful libraries, a solid community and a great toolset. Before diving in other frameworks try it. It's fun!
Qu’est-ce que tu feras après un attack cyber
Tags: devops, security, devjournal, french
Published: 2021-07-09 20:05:09

## Introduction
J’ai utilisé Cockpit CMS un logiciel avec plusieurs de problèmes sécurité. Il y a deux ans j’ai pensé il est le meilleur logiciel pour moi parce que il est simple pour utiliser est il fonctionne avec plusieurs langues aussi. J’ai lis le code et j’ai connu le problème sécurité.

Il y a deux semaines j’ai reçu un émail de un spécialiste sécurité qui piraté mon installation cockpit et demande récompense. J’ai utilisé le récent logiciel encore.
Le piratage utilisé un « NoSQL injection » bug avec le champ d’entree pour mod de passe.

# Qu’est-ce que j’ai fais

- Bloque accès sous mod de pass avec « basic auth » dans Apache.
- Change tout des jeton accès et mod de pass pour tout les utilisateurs.
- Utilise sauvegarde parce que je ne sais pas si quelques informations être changé avec le piratage.
- Change tout le logiciel que j’ai crée de utiliser le nouveau « basic auth » et un Access Token de Cockpit.
- Crée security.txt fiches pour tout mon site de web.

# Et maintenant?

Je recherché des option de change cette système avec un logiciel plus sécurité.
Pomodoro Technique, what, why?
Tags: pomodoro, timemanagement, management, scrum
Published: 2021-07-09 20:01:15

The Pomodoro Technique is a time management system that encourages people to work with the time they have—rather than against it. Using this method, you break your workday into 25-minute chunks separated by five-minute breaks. These intervals are referred to as Pomodoro. After about four pomodoros, you take a longer break of about 15 to 20 minutes. The idea behind the technique is that the timer instills a sense of urgency. Rather than feeling like you have endless time in the workday to get things done and then ultimately squandering those precious work hours on distractions, you know you only have 25 minutes to make as much progress on a task as possible. Additionally, the forced breaks help to cure that frazzled, burnt-out feeling most of us experience toward the end of the day. It’s impossible to spend hours in front of your computer without even realizing it, as that ticking timer reminds you to get up and take a breather. The concept of keeping such detailed track of the workday seems a little heavy. So, you can use a Pomodoro timer so it made things much easier.

Last words: You can tell that you are a very good coder or programmer or problem solver but if you don't use management techniques, I ensure soon or later you will have a burn out all over the time, so the importance of these things is to keep you on track and keep you to be THE BEST.

Take care and HAPPY CODING !!

Sources :

Pomofocus www.pomofocus.io

Tomato Timer www.tomato-timer.com

Read more in this book: ThePomodoroTechnique: TheLife-ChangingTime-ManagementSystem
Setting compound drawable size
Tags: android, java, mobile
Published: 2021-07-09 19:43:30

In many cases, we need to have some image next to the text. We can do that using designer view by setting e.q. drawableLeft text field property:
![Zrzut ekranu 2021-04-16 o 18.51.21](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r9a627wd1pqtw650rpnk.png)

But this approach is sometimes not the best. We don't have full control over the drawable position and size. Of course, there is some way of changing image size like scaling the entire view, but sometimes it may make matters even worse. 

An alternative way of doing that is setting compound drawable programmatically. The code below shows how to do it. 


 ```java
final float density = getResource().getDisplayMetrics().density;
final Drawable drawable = getResources().getDrawable(R.drawable.some_drawable);
final int width = Math.round(12 * density);
final int height = Math.round(12 * density);
drawable.setBounds(0, 0, width, height);
```
```java
view.setCompoundDrawables(drawable, null, null, null);
```