teleren/devto huggingface dataset:
Customize ANY color in Windows PowerShell
Tags: windowspowershell, windows10, powershell, customization
Published: 2021-02-01 06:22:41

**Windows PowerShell** is one of the most powerful terminals in the Windows Operating System, and yet we are stuck to customizing its colors to those 16 fixed values in the properties menu. Today, we are gonna change that.

## Table of Contents
- [Intro](#intro)
- [PowerShell Hex Color (The Solution)](#powershell-hex-color)
- [Installation and Usage](#installation-&-usage)

## Intro
You might have noticed those RGB controls in the properties menu of PowerShell, where you’d have to individually enter the value of Red, Green and Blue to set a custom color. This process, is rather tedious since you would have to find a color of your liking, find its RGB value, and individually enter those values one-by-one 😖.

The obviously easier method would be to enter the hex value *(looks something like #123ABC)* of the color and set the color in one go. Unfortunately, such a feature doesn’t exist in PowerShell despite the terminal having the 256-bit color support.

This is where I would like to introduce you to the Project  [**PowerShell HexColor**](https://github.com/GameGodS3/PowerShell-Hex-Color). With this, you can **set any color to your PowerShell terminal** without having to go through the painful process of entering the RGB values one by one, nor editing the registry. Simply provide a hex value and voila, you can use that color in PowerShell 🌈.

## PowerShell Hex Color
![Custom Terminal Colors using PowerShell Hex Color (Yes, this is PowerShell)](https://raw.githubusercontent.com/GameGodS3/Powershell-Hex-Color/main/img/codetheme.png)
###### Custom Terminal Colors using PowerShell Hex Color (Yes, this is PowerShell!)

**Project Link: https://github.com/GameGodS3/Powershell-Hex-Color**

PowerShell HexColor, tweaks the Windows Registry to register the color values you are providing, so that PowerShell loads them as the default value of those specific colors in the color table.

The only limitation is the fact that PowerShell can still have only a selection of 16 colors at the same time in its color table. But hey, YOU can decide which should be those 16 colors! 🎨

## Installation & Usage
To download the script, simply execute the following in PowerShell and then, run the script 😁.

```PowerShell
iwr -useb https://raw.githubusercontent.com/GameGodS3/Powershell-Hex-Color/main/hexadjust.ps1 |`
     ni $HOME/Documents/WindowsPowerShell/hexadjust.ps1 -Force
```

If you do like the project, consider sharing to your friends, and **giving the project a star**. It would mean a lot to me.

Cheers & Happy Coding!

Sudev Suresh Sreedevi
UberEats Clone - Best Food Delivery Apps
Tags: ubereatsclone, ubereatsclonescript, ubereatscloneapps
Published: 2021-02-01 05:12:30

By wielding the power of a UberEats Clone that is developed by Uberdoo, everything needed to start a highly profitable food delivery business is ready.

Website:- https://www.uberdoo.com/ubereats-clone-script.html
Will Bitcoin Replace the US Dollar?
Tags: regulation, currency, economics, cryptocurrency
Published: 2021-02-02 05:39:48

---
title: Will Bitcoin Replace the US Dollar?
published: true
date: 2021-02-01 05:05:21 UTC
tags: regulation,currency,economics,cryptocurrency
canonical_url: https://medium.com/coinmonks/will-bitcoin-replace-the-us-dollar-f5598add5ef6
---

[![](https://cdn-images-1.medium.com/max/800/0*a6gKA_avYGDCqPrM.jpeg)](https://medium.com/coinmonks/will-bitcoin-replace-the-us-dollar-f5598add5ef6?source=rss----721b17443fd5---4)

Salam Nahzat

[Continue reading on Coinmonks »](https://medium.com/coinmonks/will-bitcoin-replace-the-us-dollar-f5598add5ef6?source=rss----721b17443fd5---4)
A Simple AVL Package for Go
Tags: go, jwt, opensource, ama
Published: 2021-02-01 04:57:01

I just recently finished my third open-source project. It is a simple AVL Go package to insert, search, and delete in O(log n). Please check it out on [Github](https://github.com/jrpalma/avl)

Let me know what you think. Ask Me Anything!

Thanks!
Gradient Boosting Regressor Example
Tags: machinelearning, datascience, python
Published: 2021-02-01 04:53:23

<span>Photo by <a href="https://unsplash.com/@lazycreekimages?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Michael Dziedzic</a> on <a href="https://unsplash.com/s/photos/algorithms?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span>

In the previous [post](https://dev.to/xsabzal/gradient-boosting-classifier-1de5), I briefly explained Gradient Boosting using a classification problem. Here I will do step by step explanation of how Gradient Boosting Regressor works using sklearn and Python to complement a theory given [here](https://dev.to/xsabzal/gradient-boost-for-regression-1e42). I did this exercise mainly to build an intuition of processes inside the Gradient boosted trees and by doing so to avoid using it as some sort of 'black box' algorithm.

I used a dataset with car prices ([source] (https://www.kaggle.com/adityadesai13/used-car-dataset-ford-and-mercedes)) for this purpose. So, for easy tracking of the processes inside the Gradient boosted trees, I used a small portion of the data with a minimum number of the trees(m=2), and the depth of a tree(max_depth=2).



1) First, we initialize the model, by getting initial predictions Pred_0. It is calculated as Mean value of the prices in the train dataset. Then we calculated initials residuals: Res_0 = train['price']-Pred_0. See below.
 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/xm5oq7acvps6wa9up2gt.png)

2) Here we fit all data points(= each row features and Res_0) into the first tree. This tree build by using 'MSE' as a criterion.

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

Each Value in the Leaf are calculated by the mean values of the residuals in each leaf. Then Prediction is calculated:
Pred_1 = Pred_0 + learning_rate*output_value_1

The we calculate residuals:
Res_1 = train['price']-Pred_1

Node #2, 3, 5, and 6 Predictions and Residuals:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/1k76kvd6hbpyv8y89o5f.png)


3)
Here we fit all data points(= each row features and Res_1) into the second tree. This tree build by using 'MSE' as a criterion as well.

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

Node #5 Predictions shown below.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/g8msl0ar3o2bajk6eo73.png)

4) We continue this iterative training process. Here I used only two trees for the simplicity.

You can refer for the detailed code and step by step in chapter 5 [here]
(https://github.com/xs-abzal/Blogs_stat_examples/blob/master/Decision%20Tree%20Splitting%20Criterions.ipynb).
My first look into herddb clustering.
Published: 2021-02-01 04:47:40

---
title: My first look into herddb clustering.
published: true
description: I try to create a herddb using zookeeper and bookkeeper. I talk about the challenges I found and what the current state of the project is in my opinion.
tags:
cover_image: https://i.ytimg.com/vi/fR7qH-bl1Bo/maxresdefault.jpg
---

{% youtube fR7qH-bl1Bo %}

I try to create a herddb using zookeeper and bookkeeper. I talk about the challenges I found and what the current state of the project is in my opinion.
How to a build debian package
Published: 2021-02-01 04:47:18

---
title: How to a build debian package
published: true
description: We look into how to build a Debian package from source after we have done some patching of a bug that we needed to solve in the original package. Debian is a great system with good tools for building packages.
tags:
cover_image: https://i.ytimg.com/vi/-QrvP1m7ReI/maxresdefault.jpg
---

{% youtube -QrvP1m7ReI %}

We look into how to build a Debian package from source after we have done some patching of a bug that we needed to solve in the original package. Debian is a great system with good tools for building packages.
UI = f(state); native state management for the web
Tags: webdev, javascript
Published: 2021-02-01 04:28:14

The primary APIs/tools for Web UI message passing on the frontend are [Event](https://developer.mozilla.org/en-US/docs/Web/API/Event) and [postMessage()](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage). Events have phases, security features and various useful traits, postMessage passes objects in memory around.

Events can bubble, [can be encapsulated in shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements), they can be dispatched on the global self for tight coupling, like for shared state across applications, they can be dispatched on specific elements and bubble up to any element along the way to consume and manipulate further as desired, separating concerns after the point of dispatching. This is how DOM elements work already. Whenever some user does something the various respective events notify of state changes, whatever they are, and the listeners can do their thing. Whether it’s global for storage events, ui-activity like scrolling, handled or unhandled promise rejections and on and on or for specific more specialized elements like forms, or [custom elements](https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements) extending the generic [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) and [using custom events](https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events) mixed and matched in whatever way makes sense.

More related to this approach:
* [Knowledge: Events: Open Web Components](https://open-wc.org/guides/knowledge/events/)
* [14 Events and application data flow · Web Components in Action](https://livebook.manning.com/book/web-components-in-action/chapter-14/v-9/)
* [JavaScript.info ~ Shadow DOM and events](https://javascript.info/shadow-dom-events)
* A playlist where the first 2 videos touch on state management: https://www.youtube.com/playlist?list=PLNM_ABHoF7B0qDu0GI09eCXimoL2AyMMq

A modern library that facilitates with lightweight API extensions for web UI’s is [LitElement](https://lit-element.polymer-project.org/guide/events) and the included lit-html handles state changes to views—making [views a function of the state](https://lit-html.polymer-project.org/guide/concepts#thinking-functionally) by applying a functional pattern to incoming state objects to templated views. Events are the native state communication system.
A lesson on fancy CSS examples
Published: 2021-02-01 04:21:48

When it comes to poking through examples of slick features online, it's easy to get sucked into what 'could be.'  During my most recent project, a Ruby on Rails API with a Javascript front end I decided to try to spice it up a little.

Front end work is admittedly less familiar than handling logic and backend organization, so I decided this would be my time to shine.  After selecting a couple features I wanted to integrate into my application, I quickly got to work.

And stopped shortly after.  The styling and amount of event listeners for very nuanced features was overwhelming.  Piece by piece I removed the components that made it look so attractive, until I was left with the basic HTML elements, and a learned lesson.

I gained the bulk of the functionality I was aiming for, but at a significant cost.  The final implementations took about 10% of the total time invested, the other 90% was unwinding complex styling and going down rabbit holes.  I can say for sure, I will still be scouring the web to gather ideas of an ideal product but my approach will be completely opposite.

Pairing these examples down, especially ones you can identify as being outside of your understanding, to their base elements and starting there allows for early victory.  Additionally, there is no point to having a pretty thing that doesn't work, so focusing on the nuts and bolts of the elements, prior to getting distracted with how they look will ultimately be a better user experience than something that is buggy or not functioning at all.

Lesson learned:  aim high, but find the core components of each example and be strategic about the integration process.  Most importantly, if you don't understand the basics of the example, set it aside for a time when you can properly research the implementation.
Difference between 'var', 'const' and 'let'
Tags: javascript, const, let, var
Published: 2021-02-01 04:17:40

By reading this post, you will stop searching about this topic on google. So let's get started.

<h2>var</h2>
<p>Before 2015 we had only one keyword to declare variables in javascript that was 'var'. The variable which will be assigned with 'var' keyword can me editable/ replaceable. Which is pretty risky cause you would not want to replace the value of the variable 'x'. So if you accidently replace it, it's not gonna show any error like " is not decaled ". Here is a small example below:-</p>
```javascript
var x = 10; 
console.log(x); // will return 10
var x = 20;
console.log(x); // will return 20
x = 30;
console.log(x); // will return 30
```
<br/>

<h2>let</h2>
<p>After 2015 ECMA script introduced us 2 new keyword to declare variables. They were 'let' and 'const'. Now we will know about the javascript let keyword.</p>
<p>'let' is nice way to declare variables. Cause now we are using ECMAscript/ the modern javascript. The variable assigned with let is unchageable and also changeable. Let me show you an example.</p>
```javascript
let x = 10;
console.log(x); // will return 10
let x = 20;
console.log(x); // will show an error like x is already been declared.
x = 20;
console.log(x); // will return 20
```
<p>So that's how you can change/ replace the value of x by just not including the keyword let. But if you include it, it will show an error.</p>
<br/>

<h2>const</h2>
<p>The variable declared with 'const' is unchangeable. You can't replace or change the value of a constant variable. If you try to do that, it will show an error. Like " has already been declared.</p>
```javascript
const x = 10;
console.log(x); // will return 10
x = 10;
console.log(x); // will show an error
const x = 20;
console.log(x); // will show an  error
```

So that was the difference between 'var', 'let' and 'const'. So which one should you use? I recommend you to use 'let'. It will be much effective than using 'var'. 
<br/>
<br/>

<h3>Thanks for reading that post. Hope you have got your whole informations regarding that topic. And make sure you follow me to recieve all the informational post just like that.</h3>
<h4> :) </h4>
Anyone here knows Oracle/PLSQL/Json?
Tags: oracle, plsql, json
Published: 2021-02-01 04:04:46

I'm having problem with my code and I have nowhere to find the answers anymore though I've already searched anywhere on the web. It is mainly on functions. I still can't understand how it will work with the scenario I want. Is there anyone willing to chat? I'm struggling with it for 1 week or more. :'(
¿Se puede leer un array con el ciclo while?
Published: 2021-02-01 04:04:11

Claro que si, cuando aprendí a programar recuerdo que para recorrer cualquier array usaba mucho el ciclo de repetición while y pues a lo largo lo fui dejando de utilizar tanto así que no recordaba como iba, también porque me dijeron que el ciclo no era muy recomendado entonces en este post he decido recordarlo.

```
const arreglo = [1,2,3,4,5,6,7,8,9,10];

var iterador = 0;

while(iterador < arreglo.length){
  console.log(arreglo[iterador]);
  iterador++;
}
//salida : 1 2 3 4 5 6 7 8 9 10
```
Token authentication  for Git
Tags: git, github
Published: 2021-02-01 04:03:42

In July, GitHub announced the intent to using token-based authentication for all authenticated Git operations. Beginning August 13, 2021, account passwords authenticating Git operations will no longer be accepted. The workflows affected:

1. Command line Git access
2. Desktop applications using Git
3. Any apps/services that access Git repositories on GitHub.com directly using your password

If you are still using passwords, we suggest you switch to personal access tokens or SSH keys. If you want to create a personal token, here is a document from GitHub to do exactly that: https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token .

if you want to create and SSH key (personal preference because it saves so much headache, but it has slightly few more steps to accomplish this goal), here is the document to do exactly that: https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent, follow all these steps and read thoroughly because there are 3 steps you need to accomplish in order to successfully get this to work. 
1. Check if you have an SSH key, if not create a new one.
2. Add the key to the SSH agent.
3. Add the Key to your GitHub.

Personally and preferably, setting the SSH key will save you headache, heartache, stomachache, younameitache later. SSH key allows you to push to your GitHub without having to constantly enter your name and password from you command line.

*"Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub without supplying your username and personal access token at each visit."*(2021 GitHub, Inc, online documents).

If you would like an extra layer of security for GitHub after you have set the SSH key. Here is a document from GitHub explaining and a step by step guide to creating SSH key passphrases.

*"You can secure your SSH keys and configure an authentication agent so that you won't have to reenter your passphrase every time you use your SSH keys."* :https://docs.github.com/en/github/authenticating-to-github/working-with-ssh-key-passphrases


Thank you! I hope you found this helpful, I recently found out about this and thought I should share it to save others from trouble as well.
how to load data from txt file into mysql
Published: 2021-02-01 03:53:12

>create database, table
```
mysql>CREATE DATABASE pet;
mysql>USE pet;
mysql>CREATE TABLE pet (name VARCHAR(20), owner VARCHAR(20), species VARCHAR(20), sex CHAR(1), birth DATE, death DATE);
```

>create data in pet.txt (use \N to represent null data)
```
Whistler        Gwen    bird    \N      1997-12-09      \N
Bowser  Diane   dog     m       1979-08-31      1995-07-29

```

>logout mysql and login with --local-infile=1 parameter
```
mysql --local-infile=1 -u user -p
```

>load data and check result
```
mysql>USE pet;
mysql>LOAD DATA LOCAL INFILE '/path/pet.txt' INTO TABLE pet;
mysql>select * from pet;

+----------+-------+---------+------+------------+------------+
| name     | owner | species | sex  | birth      | death      |
+----------+-------+---------+------+------------+------------+
| Whistler | Gwen  | bird    | NULL | 1997-12-09 | NULL       |
| Bowser   | Diane | dog     | m    | 1979-08-31 | 1995-07-29 |
+----------+-------+---------+------+------------+------------+
2 rows in set (0.04 sec)

```

reference:
https://dev.mysql.com/doc/refman/8.0/en/loading-tables.html
Improve Your Workday with Simple Habits
Published: 2021-02-01 03:51:38

In this competitive world your workday has to be very good because if the workday is not good then productive will be less and that is not good for your business or job.

To Improve your workday here are some tips that may help you to improve to your day and be productive.

**1.Stay Away from Multitasking**

Always focus on one task at a time doing this we can do it faster and error free with low risk. You can multitask as well by combining easy tasks.

But most time all task is not easy so if you are going to multitask at a time that is possible you will not able to complete all of the from that and may possible all task will not done with error free.

Most important to avoid multitasking to improve your productivity. 

**2. Be Disciplined**

Disciplined is most important in your workday. Because successful people use their time to further their career instead of wasting time watching you-tube, T.V. or playing online games.   

Always follow your schedule what you have created.

**3. Always check Email and Messages on Fix time**

Because every time checking messages and email boxes will break your focus from work.
Each time this happens it has a larger impact, eventually leading to full on distraction.

And maybe this is also the reason for less productivity.

**4. Always take Break**

Always take a break when you are doing your work. Like if I’m taking 60 minutes to do a task then I’m taking 10 minutes of break to start another task. 

Because if you are taking a break your mind can refresh before conquering 
more on my to-do list and can better avoid mid-day burnout.

**5. Do Exercise a No-Brainer**

Exercise is our biggest productivity. No matter what pocket of time you have, use it to sweat. It makes anyone better.

Because if you are doing exercise then your mind will always refresh, if your mind is fresh the productivity will improve automatically.

**6. Keep Track of Regular Tasks**

When you will keep track of your regular tasks then you have an idea of how much time it takes you to complete every job. By this, you can start to identify problem areas and where a drop in productivity begins to happen.

When you will do this  that time all this information is readily available if you keep tabs on everything you do in the workday.

**7. Have an End-of-Workday Routine**

At the end of your workday, take a few minutes to get any lingering tasks out of your head and down on paper, and schedule your most important stuff for the next day. Try to truly finish up so you can be completely present when you get home.

Thank you for reading please comment below your idea.

Happy Reading!!!
Day28:100DaysOfCode
Tags: 100daysofcode, programming, productivity
Published: 2021-02-01 03:51:20

bit late to post..

atcoder contest solved two question ...
practised some ques from codeforces

studied about multi threading in detail in spring boot along with parallelism nd concurrency...
...
.....then studied thread (how to create thread using both runnable interface and using java.lang.thread)

atlast studied about jstack and thread dump(implemented them practically).

Here's the github repo for the same-
https://github.com/singhtaran1005/maven_multithread


You can Follow me->
https://github.com/singhtaran1005
https://www.linkedin.com/in/taranpreet-singh-chabbra-27517918a/
Discovering GraphQL
Tags: graphql, codenewbie, webdev, react
Published: 2021-02-01 03:34:43

I recently had the opportunity to play around with GraphQL. It's been a fun experience for sure. I just wanted to list out some resources that have been helpful for me. For those of you who are wanting to explore GraqhQL, I would highly suggest trying it out! I definitely can see the benefits of working with it.

[graphql-code-generator.com](https://graphql-code-generator.com/docs/getting-started/index)
[CSS Tricks](https://css-tricks.com/a-complete-walkthrough-of-graphql-apis-with-react-and-faunadb/)

If you're using GraphQL with React and TypeScript
[nainacodes.com/blog](https://nainacodes.com/blog/intro-to-graphql-and-react-with-typescript)
[hasura.io/learn](https://hasura.io/learn/graphql/typescript-react-apollo/intro-to-graphql/3-writing-data-mutations/)

What are some of your favorite resources? Feel free to comment below.

Photo by [Anni Roenkae](https://www.pexels.com/@anniroenkae?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels) from Pexels
Common bugs in mobile apps
Tags: ios, android, mobile
Published: 2021-02-01 03:25:08

Finotes has released the report for Year 2020 on the common types of bugs reported from iOS and Android apps.

Take a look -  [https://www.blog.finotes.com/post/state-of-bugs-in-mobile-apps-finotes-report-for-year-2020](https://www.blog.finotes.com/post/state-of-bugs-in-mobile-apps-finotes-report-for-year-2020)