teleren/devto huggingface dataset:
Warm Up by the Fire with Bash (Fire Ascii Art)
Tags: bash, wsl, linux, windows
Published: 2020-01-15 19:07:59

---
title: Warm Up by the Fire with Bash (Fire Ascii Art)
published: true
description: 
tags: bash, wsl, linux, windows
---

Burrrr, its cold outside! Lets add a fire theme to our terminal to warm up!

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/bnhjppmw72wyk2uspvpk.gif)

## Prerequisites for Windows
- [Install Windows Terminal](https://www.microsoft.com/en-us/p/windows-terminal-preview/9n0dx20hk701?activetab=pivot:overviewtab)
- Windows 10
- [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10?WT_dev-cassieb)


## Setup Steps

1. Install libaa `sudo apt-get install libaa-bin`
2. Test command `aafire`
3. Add it to windows terminal:




Profile json to add it to terminal
```
    {
        "acrylicOpacity" : 0.5,
        "closeOnExit" : true,
        "colorScheme" : "Fireplace",
        "commandline" : "wsl.exe -d Ubuntu aafire",
        "cursorColor" : "#FFFFFF",
        "cursorShape" : "bar",
        "fontFace" : "Consolas",
        "fontSize" : 20,
        "guid" : "{6f9994f0-4403-5e85-9eec-98e5da3839xx}",
        "historySize" : 9001,
        "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc972xx}.png",
        "backgroundImage" : "",
        "backgroundImageOpacity" : 0.75,
        "backgroundImageStrechMode" : "fill",
        "name" : "Ubuntu Fireplace",
        "padding" : "0, 0, 0, 0",
        "snapOnInput" : true,
        "startingDirectory" : "%USERPROFILE%",
        "useAcrylic" : false
    }
```
</br>
Theme `fireplace` json to give it fire colors
```
    {
      "background": "#002B36",
      "black": "#073642",
      "blue": "#268BD2",
      "brightBlack": "#002B36",
      "brightBlue": "#839496",
      "brightCyan": "#93A1A1",
      "brightGreen": "#586E75",
      "brightPurple": "#6C71C4",
      "brightRed": "#CB4B16",
      "brightWhite": "#FFFF00",
      "brightYellow": "#657B83",
      "cyan": "#2AA198",
      "foreground": "#FF8000",
      "green": "#859900",
      "name": "Fireplace",
      "purple": "#D33682",
      "red": "#DC322F",
      "white": "#EEE8D5",
      "yellow": "#B58900"
    }
```

That's 🔥! 

Now you can warm up by the terminal fireplace until summer returns. 😊
Why You Should Use Lead Time Instead of Cycle Time
Tags: engineeringmetrics, cycletime, leadtime, throughput
Published: 2020-01-15 19:19:10

---
title: Why You Should Use Lead Time Instead of Cycle Time
published: true
date: 2020-01-15 19:03:38 UTC
tags: Engineering Metrics,cycle time,lead time,throughput
canonical_url: https://sourcelevel.io/blog/why-you-should-use-lead-time-instead-of-cycle-time
---

Our concepts of Lead Time and Cycle Time came from the field of Operations Management and Production Engineering. As such, I think it’s beneficial to all of us to maintain coherent with them and use the same semantics in Software Engineering Management as well.

![](https://sourcelevel.io/wp-content/uploads/Untitled_Diagram.png)

## Lead Time

Lead time is defined by the amount of time each item takes to pass through the entire process or through only a specific step. So, it’s ok to have several lead times, each serving to a different purpose, each for a different metric or indicator.

Usually, that means it is as easy as `end_date - start_date` and probably truncating to days or hours, depending on the process you want to monitor.

## Cycle Time

Cycle Time is defined as the time between the output of two successive units of work in a process.

So, it resembles a measurement of frequency. Think “looking at this step, how many items come through in a period?”.

However, given the definition, cycle time is measured as the inverse of frequency. So, when we say cycle time of 1 day, it means that, after one delivery, the next one will be delivered (on average) in 1 day.

I’m not keen on using cycle time. Since so many people don’t know its meaning, I very much prefer using Throughput or other measurements of deliveries over time.

But, there’s one metric that we use in Software Engineering that resembles cycle time: frequency of deploys. When we say “we deploy 12 times per day”, we could also say, “on average, there’s a deploy coming every 2 hours.” I know, not usual to speak that way, but that’s how cycle times would work if we use the original semantics from Operations Management.

## My take on this

I think you should not use cycle time when referring to single items and how many days that item is in the process flow. That’s the definition for lead time!

However, that’s not how the Agile community has been using lead times and cycle times, leading to a whirl of confusion.

So, my tips for anyone measuring software engineering:

- Use Lead Times to describe how much time has passed for an item in the process. You can also use averages and percentiles when aggregating individual lead times.
- Don’t use Cycle Times. Using Throughput should give everyone a better understanding.

And you, what terms have you been using?

The post [Why You Should Use Lead Time Instead of Cycle Time](https://sourcelevel.io/blog/why-you-should-use-lead-time-instead-of-cycle-time) appeared first on [SourceLevel](https://sourcelevel.io).
Discussion
Published: 2020-01-15 18:49:16

<! DOCTYPE html><html>  <head>    <h2>Gourmet Thai Cooking</h2>  </head></html>
The <div> element is often used as a container for other HTML elements to style them with CSS or to perform certain tasks with JavaScript.
That element is <hr>
<! DOCTYPE html <html> <head> <em>The Daily Special</em> </head></html>
<! DOCTYPE html> <html> <head> <title>Sulfuric Acid</title> </head><p>H<sub>2</sub>SO<sub>4</sub> </html>
<! DOCTYPE html> <html> <head> <title>CSS</title> </head> <body><p><a href = mystyles.css>this links to CSS</a> </body> </html>
<! DOCTYPE html> <html> <head> <title>EM Dash</title> </head><body> <p>&mdash;8212</p> </body> </html>
<! DOCTYPE html> <html> <head> <title>Inline Image</title> </head><body> <p><img src = "awlogo.png" alt = "Art World"></p> </body></html>
Error: Request failed with status code 400 [expo-cli]
Published: 2020-01-15 18:31:42

## TL; DR
Logout from expo-cli and log in again

## Intro
Yesterday I had an issue with expo-cli. I was testing some stuff on my phone and everything was great. I have used `expo start` to preview. After a few moments I kept expo-cli running and put my computer to sleep. A few hours later I've tried to preview the project following the same steps, which threw the error shown here
![expo cli error message](https://res.cloudinary.com/practicaldev/image/fetch/s--w_5yn__1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://t410.me/resources/img/expo_issue2.png)

The issue seemed to be caused by axios. I have tried everything. I mean **everything**. 
*Removed all api calls, no help.*
*Reinstall expo, no help.*
*Reinstall expo-cli, no help.*

I have almost started pulling my hair and then out of thin air I have come up with this idea which is explained down below.

I am not sure but I think this error was caused because I have left the expo-cli open.

I won't dive deep into the details here because I am mostly certain that this error is because of expo-cli itself.

Well, I have found some solutions for the issue but non of them worked for me.

Here's how I solved the issue


## Solution
Just log out from expo-cli and log in again. *That's just it*


### More detailed approach of the solution
After start expo with `expo start` in the terminal you see an output like this
![the screen after running expo start](https://res.cloudinary.com/practicaldev/image/fetch/s--NlYdF8iw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://t410.me/resources/img/expo_info.png)

You can press question mark `?` here to open the list of commands
![expo cli available commands](https://res.cloudinary.com/practicaldev/image/fetch/s--rR1hAMT1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://t410.me/resources/img/expo_commands.png)

From here you need to hit `s` to log out.
Then you can hit `s` to log in again.

Now you won't get the same error.

That was the solution for me. If you have any better ideas or solutions, feel free to write down below.

*Cheers!*
Neo4j 4.0 is around the corner and I want to use SSIS with it. Can I?
Tags: uncategorised, neo4j
Published: 2020-02-19 09:31:53

---
title: Neo4j 4.0 is around the corner and I want to use SSIS with it. Can I?
published: true
date: 2020-01-15 18:23:00 UTC
tags: Uncategorised,Neo4j
canonical_url: 
---

Yes!

![](https://xclave.co.uk/wp-content/uploads/2020/01/image-3.png)

That’s the TL;DR; out of the way ![🙂](https://s.w.org/images/core/emoji/12.0.0-1/72x72/1f642.png) The slightly longer version is that you need to use the 1.4.0.0 version of the Neo4j SSIS Components.

<iframe src="https://player.vimeo.com/video/384802792" width="525" height="295" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

This is the main change to the components for 1.4.0.0 – there are a couple of things tidied up and hopefully a smoother experience with the syntax highlighting in the Cypher editor screens.

If you want to get your hands on the components – please visit: [http://bit.ly/neo4jssis](http://bit.ly/neo4jssis) register and you’ll be sent out the download link. Registration is only used to let you know of updates to the tools, no marketing!
How to deploy project local to production server using gulp?
Tags: github, php, javascript, sql
Published: 2020-01-15 18:10:58

 want to deploy my project local to production server. At my local machine I am using gulp build gulp serve command.

This command is redirected to me at http://localhost:3000.

When I added code on production server and run these command. it is redirect to me at http://142.93.165.118:3000

I want to display original host url like:https://example.com Currently it is displaying http://142.93.165.118:3000 on production server.
Python Project Ideas for Advanced
Tags: python, django, tkinter, kivy
Published: 2020-01-15 17:55:36

In today’s article, we have discussed 25 Python project ideas covering all the three stages of programmers. At first, we have discussed basic project ideas for beginners including number guessing, dice rolling simulator, etc. Then we have discussed some more engrossing project ideas for intermediates including a random password generator, Instagram bot, etc. In the end, we have covered some advanced projects for experts such as content aggregator, speed typing tests, etc. https://www.pythonsourcecode.com/2020/01/python-project-ideas-for-advanced.html?m=1
Introducing Our First Conference: Auth0 Assemble
Tags: identity, developer
Published: 2020-01-15 18:09:09

---
title: Introducing Our First Conference: Auth0 Assemble
published: true
description: Auth0 Assemble is Auth0's first annual Identity Conference for Application Builders.
tags: #identity #developer 
canonical_url: https://auth0.com/blog/introducing-our-first-conference-auth0-assemble/
---

We're excited to announce that we're hosting our very first conference: Auth0® Assemble — The Identity Conference for Application Builders™! The conference will be held on August 26-27, 2020, in San Francisco, CA.

What is Auth0 Assemble?
Auth0 Assemble, Auth0's annual developer and customer conference, is the only identity conference for application builders. For those who are architecting the future. The ones who understand that applications are built today by assembling the best of breed APIs and tools. Those who care about the intersection between end-user experience, privacy, and security. 

[Find out more 💪 ] (https://auth0.com/blog/introducing-our-first-conference-auth0-assemble/?utm_source=twitter&utm_medium=sc&utm_campaign=auth0_ASM)
What is the use of package.json?
Published: 2020-01-15 17:59:53

package.json is a JSON text file that contains the metadata of your project. It contains all the properties to identify the project such as it's name, current version of the module, license, author of the project, it's description etc. It also contains a list of all the dependencies which are used in the project.
JSON stands for JavaScript Object Notation. It is highly used for transmitting data from server to web application. Many document based database stores data in this format.

package.json is an indispensable part of the Node.js setup! It is written in JSON format.

This file is created automatically when we initialize our node.js working directory by :
 
>> npm init

When we download any module to work in Node.js by :

>> npm install <module_name> —save

it gets saved in the package.json file under the dependencies, as the first picture suggests. The modules itself gets downloaded in the node_modules folder.

When we send the project to someone, we don’t send the node_modules folder. We don’t even upload it to github by putting it in .gitignore file. When the user downloads our folder, he downloads automatically all the modules used in our project by :

>> npm install

Now, from where the user gets all the list of modules ??

From the package.json file under the dependencies and the source url from package-lock.json!
If you are a node.js enthusiasts follow my blog :
<a href="https://learnnodeonline.blogspot.com/">LEARNNODEONLINE.BLOGSPOT.COM | A PLATFORM TO LEARN NODE.JS</a>
Is Azure or AWS certifications are good for developers ? 
Tags: discuss, azure, aws, webdev
Published: 2020-01-15 17:53:24


Hi all :blush:, I recently came to know about two certifications which might be good for web application developers.

:point_right: Azure - [AZ-203: Developing Solutions for Microsoft Azure](https://docs.microsoft.com/en-us/learn/certifications/exams/az-203)
:point_right: AWS - [AWS Certified Solutions Architect – Associate](https://aws.amazon.com/certification/certified-solutions-architect-associate/)

**Benefits of getting certified:** 

:point_right: Proves your commitment to upgrade your skills.
:point_right: Gives credibility for responsibilities, larger projects and high salary.
:point_right: Increases chances for companies to get new customers.

**Below are few questions to discuss** :point_down:

Is `Azure` or `AWS` Certifications good for developers :question:

Is certified developers are really skilled developers :question:

Which certification do you recommend in 2020 :question: 

What are the pros and cons :question: 

What do you think :question:

*Reference:*
[1](https://www.w3schools.com/cert/default.asp)
Today I learned how to retrieve your WiFi password from Windows
Tags: todayilearned, windows, tips, wifi
Published: 2020-01-15 17:53:09

Hey guys, it's JD again! I want to share with you a little trick that I learned because a friend forgot her WiFi password and I offered to help. I'm going to show you how to retrieve your WiFi password from your Windows computer. You should consider the following:
 * This will only work with admin rights.
 * You have to be connected to the WiFi network.

#Let's begin!
First, open your **Control Panel** and locate the *Network and Internet* option. Click where it says *View network status and tasks*.
![Step 1](https://thepracticaldev.s3.amazonaws.com/i/yievvqu983ehm7fzmaaq.png)
Now, let's click where it says *Change adapter settings*
![Step 2](https://thepracticaldev.s3.amazonaws.com/i/5jtxcqkph8loj9nl23u5.png)
This will open a new window. Next, *right-click* on WiFi and click on the *Status* option.
![Step 3](https://thepracticaldev.s3.amazonaws.com/i/n4ntjgdye3uah71i0lwm.png)
On the window that pops, click the button that says *Wireless Properties* which will open yet another window. We'll click on the tab that says *Security*.
![Step 4](https://thepracticaldev.s3.amazonaws.com/i/bbvcw3u56cdhff8mkd9n.png)
And finally, click the checkbox that says *Show characters*.
![Step 5](https://thepracticaldev.s3.amazonaws.com/i/sg0nur7hmmyb7b41yzr9.png)
And there you have it! That's how you retrieve a WiFi password from Windows!
#Conclusion
This little tip may help a friend or family member that forgot their WiFi password, and that'll be your time to shine✨. It's a nice little tip to know. That's it guys, see you later! 😁
Efficient Clojure multistage docker images, with java and native-image
Tags: docker, clojure, graalvm
Published: 2020-01-15 17:47:55


Here I explore a few optimization when building docker images for your clojure apps.

# Image versions

One easy way to make it faster for you local development and for CI/CD is to just use smaller images, and to reuse images. 

Using common public images make it more likely that you will use the same image over and over again, also pinning to the most specific version help assure the base image have not changed between builds. Choosing alpine or slim images can reduce the image size. 

For the base image I use `clojure:openjdk-13-tools-deps-slim-buster` and `openjdk:13-slim-buster`. I prefer `buster` images over `alpine` due to compatibility with most native libs, and rumor has it that due to libc versions it can be faster.

# Build cache

The next step is to leverage the docker image build cache, so the order of the steps you use for building the image matter.

You generally want to set non-changing configurations like ENV, WORKING_DIR and EXPOSE first.

To decouple installing the deps from actually building the artifact, the next thing you add is your deps files and install it.

The code is what changes most, so it goes last, right before actually building the uberjar.

# Garbage collector and heap size

Not optimization of images but a tip.

Current versions of openjdk support running in containers, so it is best to use relative memory limits and container support with `-XX:+UseContainerSupport` and `-XX:MaxRAMPercentage=85` just we don`t have to mess with Xmx or Xms at runtime anymore. 

Remember that the JVM uses a little more memory than the heap, so give it some extra space.

# Multistage

To further reduce the image size and remove clutter from base image, we can start with a JVM only image and copy the generated jar over. This will remove clojure specific tools, sources-code, intermediate artifacts and others.

# Resulting Dockerfile

After applying these tips, here is the resulting Dockerfile:

{% gist https://gist.github.com/diogok/c4f3a971159019174ad3752ca543830b file=Dockerfile %}

# Native image

Now, for bonus, we can also setup a native image using graalvm tools. This will reduce image size by a lot, as it does not depend on the JVM, and potentially reduce memory usage.

Note that native-image is only compatible with linux x86-64, and is new tech, so a lot o frameworks can break it. It also does not give better performance (latency, throughput, gc times…) comparing to JVM version.
Some flags may change depending on your tools of choice.

The native image will build upon the previous tips, but has to be based of java 11 instead of latest.

Here is the dockerfile:

{% gist https://gist.github.com/diogok/c4f3a971159019174ad3752ca543830b file=Dockerfile.native %}

Note that there is a lot of netty specific config there, as I use aleph for HTTP.

# Opensource full example

All this experiments and other framework choices are available at my [github klj-api](https://github.com/diogok/klj-api/) project.

Hope it helped.
Bulk deleting local Git branches using Regex
Tags: productivity, git, webdev
Published: 2020-01-15 17:37:01

If you are reading this, you obviously have a need to bulk delete local Git branches because you are crushing all of your assigned Work Items.

So here's a shortcut to clean up your local environment.

Write your dry run using regex using this command formula:
```
git branch | grep [regex expression goes here]
```

So for example, to view all local branches that are prefixed with "feature", you would use the command.
```
git branch | grep feature*
```
Once you run that command and triple check that you wish to delete all of the local branches that are returned, run this command to delete them.
```
git branch | grep feature* | xargs git branch -D
```
BONUS TIP:
Here's how to delete all local branches except for master.
```
git branch | grep -v "master" | xargs git branch -D
```
You're welcome!
Clean Architecture + Coroutines Flows + Dagger2...
Tags: mvvm, flows, dagger2, mockwebserver
Published: 2020-01-15 17:25:36

https://github.com/ferPrieto/spaceX

The interesting things of my project are:

- Using Coroutines-Flows for asynchronous data streams
- Modularised
- Dependency Injection with Dagger (using multibinding)
- WebMockServer with dynamic configuration 
- UI tests with Robot pattern
- LiveData
- JUnit4
- Kotlin DSL
- Navigation
- Solid Adapter component (without Google boiler plate)
Will client-heavy avatar-based teleconferencing be a thing soon?
Tags: discuss
Published: 2020-01-15 17:07:52

Teleconferencing is notoriously iffy. We're pretty happy with Zoom, but even the slightest connectivity issues tend to go make things go south quickly.

Transmitting high quality live video strikes me as the bottleneck we could do without, in favor of sending minimal data in order to recreate my presence on the other end.

Our avatars could be sent once upon connection (and cached for future convos), and from there we only send audio. And even that could hypothetically be sent in a really lossy way and likely pieced together with advancements in AI. (Big risks in not getting this right) 

I've seen concepts of stuff like this, but I'm wondering what people think the timeline is, and what the quality and reliability will be like.

This conversation tends to relate to VR, but it doesn't seem entirely necessary that they are intertwined.
I want to catch the Java train
Tags: java, releases, blog, javatrain
Published: 2020-01-15 16:19:04

---
title: I want to catch the Java train
published: true
description: 
tags: Java, Releases, Blog, JavaTrain
series: Java Train
---
![](https://i1.wp.com/eldermoraes.com/wp-content/uploads/2019/11/fabrizio-verrecchia-BXwbfuM0cdk-unsplash.jpg?resize=300%2C255&ssl=1)

*What? Does Java have a new release every 6 months? My project can’t follow this… My company won’t even want that!*

*I’ve already got to deal with delayed projects, bugs to be fixed, angry customers on the phone… How am I supposed to keep up with 6 months' versions?*

Being up to date with Java versions can be huge for you and your projects. Performance improvements, to be more productive writing code… not to mention making sure you have a secure environment!

Being up-to-date is also great for your career as a developer. And there is an easier way to do that! You don’t need to do it all at once, and you don’t need to do it alone.

I’m starting a series of content that will help you along the way. Together, we can work on each feature. Join me on this journey and let’s catch the Java release train together!
Welcome Thread - v56
Tags: welcome
Published: 2020-01-15 16:42:02

---
title: Welcome Thread - v56
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
---

![kitten paws](https://media.giphy.com/media/vFKqnCdLPNOKc/giphy.gif)

### Welcome to DEV!

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

**Great to have you in the community!**
Three reasons I like PHP more than Modern Javascript
Tags: php, javascript, discuss
Published: 2020-01-15 16:38:44

I use PHP for backend and ES6 code (usually with React) for front-end. 

Here's why I like PHP more than Javascript

1. PHP has most of its features in-built. That's pretty much compared to Javascript. And, no bunch of import statements. Autoloading is absolutely cool.
2. I don't have to install 100MB+ files to start a new project. Just creating a folder and running it via a browser.
3. Async in Javascript is quite good, but not always. Sometimes, I end up with many nested callbacks.

One thing I like about Javascript (ES6) is that it's concise. No unnecessary stuff.

Ex: Defining a publish non-static function
JS
```js
class X {
    getMeta() {
 
    }
}
```

PHP
```php
<?php
class X {
   public function getMeta() {
       
   }
}
```

True, visibility in PHP is fine. But, why `function`? getMeta with `()` cannot be a property. 🤔

These are just my thoughts. What are yours?