teleren/devto huggingface dataset:
Iterm2 nuggets
Tags: iterm, bash, mac
Published: 2020-08-12 09:24:07

If you're using Iterm2 as you terminal and have Zsh installed, here are some nuggets i've recently discovered:

* Instead of the cd (change directory) command, navigate directories with just: 
`.. (parent dir)`
`... (parent from parent dir)`
`/ (root)`
`~ (home)`

* Instead of the mkdir and cd commands, use `take` command to create a directory and change the path to it

* Switch between the last and current path with a hyphen `-`

* List all alias commands with alias or filter them with grep `alias | grep git`
Sass theme variables generator?
Tags: css
Published: 2020-08-12 09:16:00

What I would like to have:

1. Consistent naming and structure of Sass theme variables across projects (e.g. `$color-primary`), so that you don't have to guess the variable names.
2. An easy way to generate these variables, for example, using an online generator.

Does something like this exist?

I know there's the [System UI specification](https://system-ui.com/theme), but it doesn't seem actively maintained and there is no Sass version.

I know TailwindCss has a pretty solid [theme structure](https://tailwindcss.com/docs/theme#theme-structure), but I don't want to depend on a CSS framework.

-- Edit
I'm now using a subset of the Bootstrap variables, but it's just too bloated with stuff that I don't need and some smart Sass functions/maps are missing.
Technical Advise
Tags: technical
Published: 2020-08-12 09:08:39

We provide Technical Help to our users by a diagnosis of their computer and other devices. And if there is an issue to be solved, we give out the solution. This helps the user to avoid any existing issues.
http://linksysextendersetups.com
http://tplinkloginn.com
http://tplinkextendersetupp.com
http://office365download.us
http://roadrunneremailus.com
http://sbcgloballogins.com
http://att-loginz.com
Why Is Retrospective Difficult And How to Learn From the Past
Tags: productivity, agile, engineering, planning
Published: 2020-08-12 08:41:51

> *“Memory never recaptures reality. Memory reconstructs. All reconstructions change the original”* — Frank Herbert

Engineering requires regular diagnostics, retrospectives, postmortems, root cause analysis, etc. We want to reflect on the past and learn something from it.

But often this doesn’t work. Some teams identify causes and still struggle with the same issues over and over again. Some people “never learn”. It seems like we don’t always learn even from the best descriptions and analysis of past events.

Many times I have seen fantastic root cause analysis, and as soon as the next day, the people reverted to the usual, almost instinctive behaviour. Everything was identified, but nothing changed.

## Why is this so?
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/s5q5kstxi7zbwdgiq6bg.jpeg)

We don’t like ambiguity, so we make stories with “logical” conclusions. It gives a sense of safety. I love the term the author used: “delusional clarity”.

When doing a retro, there is no way to know for sure if we took everything that happened into account (unknown unknowns). We may even have a preference where we wish a root cause to be (a specific person, team or a system) — and tailor our story to fit that. A mix of facts and assumptions is tough to “debug”.

Sure, some people are a bit more objective than the others, but let’s be honest; objectivity sometimes doesn’t mix well with talk about what went wrong and why (depending on the team).

## What to do about this and how to learn from mistakes?
Describing a chain of events is good to kick start a discussion. And that is all it’s suitable for.

The most valuable learning is to find out what was (and what was not) in our minds during the time of the error.

### Ask this:


* **Why did it look reasonable for us to do this the way we did?**
* **Why the important things were not important to us before the error and at the time of error?**


##Next-level retros

Do a retro when everything went well. Ask questions like *“What could have happened that would have made us fail? What can we optimize even more? What should change in the future so that our solution will require a change? How will we detect a need for change?”*
On Wednesdays We Podcast
Tags: devjournal, codenewbie, womenintech
Published: 2020-08-12 08:36:00

_This post was originally published on August 12, 2020 on [my blog] (https://alexlsalt.github.io/blog)._

Happy Wednesday! I didn't get around to scoping out my React study yesterday, so I'm hoping to do that today.

I *did* however get around to writing out all the copy for a special opt-in I'm preparing for my email list, though! So I'm very excited about that. Keep an eye on this space for that.

Seeing that today is Wednesday, I'll be working on The Ladies Code Collective Podcast all day.

In case you weren't aware (which you actually probably weren't because I don't think I've made it an official thing lol), Wednesday is Podcast Production Day and it's a big deal around here.

Just kidding. Kind of. It's more just the result of a hard and fast habit I've built, which feels amazing because even on the days where I'm dragging my feet, the habitual nature takes over and it's almost as if I have no other choice than to Just Do It. Win.

Keep an eye out for the podcast episode that launches today! Pro-tip: you can [sign up for my email newsletter] (https://www.ladiescodecollective.com/podcast) to stay ahead of the curve on episode releases ;)

![The Ladies Code Collective Podcast cover art](https://dev-to-uploads.s3.amazonaws.com/i/t4fpusn1id3l6c9ph55i.png)


----------


P.S. Did you know I have a podcast with new episodes each Wednesday? Go listen [right over here >>] (https://www.ladiescodecollective.com/podcast)

P.P.S. Have a coding project you want to work on in a supportive environment of other creative coding women? Come apply for a spot in my upcoming Ladies Code Collective Cohort (space is limited!) >> [More info here] (https://www.ladiescodecollective.com/cohorts)
Basic tips to get rich - Ziad K Abdelnour
Tags: business, entrepreneur
Published: 2020-08-12 08:24:54

https://www.ziadabdelnourfinance.com/so-you-wanna-get-and-stay-rich/
Ziad K Abdelnour: I get a lot of questions about how to get rich &amp;my answer is don’t spend too much. Mostly save. Always invest. 10 basic tips to get rich
How I use A.I to help me code
Tags: ai, javascript, tutorial, codingtip
Published: 2020-08-12 08:03:31

Hey everyone! In this video, I respond to your requests and show you how I use an A.I extension in my code editor in order to help me code faster and better!

I got together with TabNine by Codota to give you a tutorial on how to install it and use it in your code editor, for it to suggest the most correct snippet of code back to you.

By the end of this video, you will have an understanding of TabNine and how to use it in your next project.

Useful links for this video: 
https://bit.ly/TabNine

Thanks for watching, please don't forget to Subscribe and Like so I know to make more videos :)

{% youtube xAHLb8o-Fsg %}
Update: new scaffolder vscode extenstion!
Tags: javascript, react, productivity, vscode
Published: 2020-08-12 07:31:57

[Scaffolder](https://github.com/galElmalah/scaffolder) got a new [vscode extension](https://marketplace.visualstudio.com/items?itemName=ctf-vscode.scaffolder-vscode) that makes the usage super intuitive and boosts your development velocity even more!

![Usage gif](https://dev-to-uploads.s3.amazonaws.com/i/4pjjlxuob4r1ddm9ati7.gif)

---------

check out the previous blog post I have written about Scaffolder to quickly get started and become much more productive!

{% link https://dev.to/galelmalah/what-is-scaffolder-and-how-you-can-use-it-to-increase-your-team-dev-velocity-558l %}

----------

P.S there are some advanced features that aren't in the blog post, check out the [Scaffolder repo](https://github.com/galElmalah/scaffolder) to see all features.
hoo and feel free to star it, open issues/feature requests and contribute :)
Docker for Devs and Security Professionals
Published: 2020-08-12 07:20:26

Docker, and the containers it makes possible, has revolutionized the software industry and in a few years, their popularity as a tool and platform has skyrocketed and Docker containers have become a massively popular technology. 

{% medium https://medium.com/@vasantkumarchinnipilli/docker-for-devs-and-security-professionals-67fd14a75078
 %}

In this blog post, I will walk you through the basic components, architecture, and basic commands of docker that help with da-to-day activities.
Webpack output based upon environment variable     
Tags: webpack
Published: 2020-08-12 07:20:14

My first dev.to post - I've been wondering what to write for a while. But recently had a problem at work and found what I thought was a nifty solution. So I thought I'd share and help out others and perhaps even be told what I'd done wrong.

For my day job I'm a developer on a mature Java webapp.  (And when I say mature I mean it's old enough to remember the Christopher Eccleston as Doctor Who.)

So as part of this we've decided to start building a React based client project to replace our older parts of written with JSPs, JSTL and JQuery.  I wanted the React code to be quickly editable and viewable during development app with as small a delay as possible.

To keep the react client seperate it's partitioned under {appname}/react so it doesnt interfere with any of the older client code.

I could get the project deployed as part of the webapp but to refresh anything when react source changed required a tomcat restart, which would be a cycle time of 45 to 60 seconds, plus I'd have to login again.  

Not a good way to write UI code.  What I needed was the compiled react app to get updated within the running tomcat as it changed (and I could use webpack's watch option to automate that).

The first issue was to know where to put it.  Eclipse doesnt deploy to tomcat but runs tomcat with apps deployed somewhere in whatever tomcat integration plugin it's using.  Fortunately you can change that by editing the server settings in Eclipse.

![Eclipse webapps destination folder](https://i.imgur.com/nGTZGuQ.png)

The solution was the edit where Eclipse deployed the webapps (so I knew where it was) and have webpack build stright into the /react folder there.

My **webpack.config.js** looked like this:

```
output : {
    path :path.join(__dirname, "../.metadata/eclipse_wtp/wtpwebapps/app/react/dist")
},
```

But that wasnt ideal. It used a hardcoded output folder that was only applicable on **my** work machine, not any other developers and (more importantly) not for Jenkins.

The solution was to use an environment variable to specify where the output folder was and use a default if it wasnt set.  I choose **APP_REACT_DIR** for my variable name .

Just ahead of my module exports I defined a new constant

```
const distFolder = process.env.APP_REACT_DIR ?
  path.join(__dirname, process.env.APP_REACT_DIR ) 
  : 'dist';
```
Then inside **webpack.config.js** the output config then looked like this:
```
output : {
    path : distFolder
}
```

Bingo!  Now setting whenever webpack is run in watch mode the updates happen in seconds.  It will deploy to **APP_REACT_DIR** if set, but if not to the project's dist folder.
Vulnerability Management of Containers Images using OpenSource
Tags: devops, docker, kubernetes, security
Published: 2020-08-12 07:11:57

Containers have revolutionised application development and have taken the enterprise by storm — in particular, the way they are built and scaled.

The same flexibility that makes containers useful to developers also poses many security challenges. The biggest cloud security threat facing container users is the false assumption that containers equal security.

In every container, there are naturally going to be many different and individually complex components that can all introduce security risks and vulnerabilities. As container adoption continues to grow, a strong focus on security is an absolute must.

{% medium https://medium.com/@vasantkumarchinnipilli/vulnerability-management-of-containers-using-opensource-1d864ccaaf83
 %}

In this Blog Post, we will be looking at the various open-source image scanning tools to identify and secure the container images from vulnerabilities.
Tracker Prevention for WKWebView
Tags: webkit, swift, ios
Published: 2020-08-14 05:54:59

---
title: Tracker Prevention for WKWebView
published: true
date: 2020-08-12 00:00:00 UTC
tags: webkit,swift,iOS 
canonical_url: https://blog.rizwan.dev/blog/trackers-prevention-for-wkwebview
---

In 2017, Apple WebKit team announced [“Intelligent Trackers Protection”](https://webkit.org/tracking-prevention/) feature which blocks cross-site trackers and cookies. Slowly WebKit team is adding new features to WebKit and bringing the same to Safari.

## Safari 14

Safari 14 improves ITP and by default, it will block all the cross-site trackers by using on-device machine learning to identify trackers and the known trackers are identified by DuckDuckGo. Safari not only blocks the trackers, but it will also list all the trackers and websites in detail. Here is the screenshot of all trackers blocked from Safari 14. I have been using it from beta 1.

[![Safari Privacy Report](https://blog.rizwan.dev/static/61af2272658ea2680407b37ab9ebe180/fcda8/safari-privacy-report.png "Safari Privacy Report")](/static/61af2272658ea2680407b37ab9ebe180/71c1d/safari-privacy-report.png)

## WKWebView

The interesting thing with ITP is we (third party developers) can start using it for our in-app browsers which uses `WKWebView` without any extra effort. It comes free when you use `WKWebView` and you have iOS 14 or macOS Big Sur installed.

In case if we want to opt-out from this default behaviour, we could simply set the purpose string `NSCrossWebsiteTrackingUsageDescription` in `Info.plist`. When present, this key causes the application’s Settings screen to display a user control to disable ITP. The setting cannot be read or changed through API calls.

NOTE: As of beta 4, I couldn’t get the settings even after adding purpose string. Probably it will work on upcoming beta’s

Incase if the app wants to be [“Default Browser”](https://developer.apple.com/documentation/xcode/allowing_apps_and_websites_to_link_to_your_content/preparing_your_app_to_be_the_default_browser_or_email_client), purpose strings is not necessary.

## Links

- WebKit App Bound domains [blog post](https://webkit.org/blog/10882/app-bound-domains/)

> Special thanks to [Stuart](https://twitter.com/stuarticus) who introduced to me this feature in NetNewsWire Slack channel when we discussed having tracker protection for app.
How to Use DELTA Function in Microsoft Excel 365? – (With Examples)
Tags: deltafunctioninexcel, excelfunctions
Published: 2020-08-13 04:08:47

---
title: How to Use DELTA Function in Microsoft Excel 365? – (With Examples)
published: true
date: 2020-08-12 06:43:20 UTC
tags: DELTAFunctioninExcel,ExcelFunctions
canonical_url: https://geekexcel.com/how-to-use-delta-function-in-microsoft-excel-365-with-examples/
---

## DELTA Function in Excel:

Here we come up with the syntax, explanation, and examples of **DELTA Function in Excel** 365 to make you understand easily. Get official version of **MS Excel** from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)



## DELTA – Function Description:

- DELTA function test whether the two values are equal or not.
- If the two values are equal ( **Num1 = Num2** ), it will return 1 else return 0.
- This function is mainly used to calculate the count of the equal pairs from the list.

## Syntax:

**=DELTA(number 1, [number 2])**

### Arguments Description:

**Number 1** – Give the first number.

**Number 2** – It is optional. If you do not assign the second number, by default it will be assigned as 0.

### **Note:**

- If you give any of the arguments as non-numeric value ( **Letters and Special characters** ), it will return **#VALUE!** Error.

## Examples:

The following are the examples of the DELTA function for your reference.

### Example 1: Test if the two decimal values are equal or not

- Refer to the below image.

![Example 1](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/08/1-18.png)<figcaption id="caption-attachment-11558">Example 1</figcaption>

### Example 2:

- If you give any of the arguments as non-numeric value, it will return **#VALUE!** Error.

![Example 2](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/08/2-16.png)<figcaption id="caption-attachment-11559">Example 2</figcaption>

## End of the Article:

In this article, you can clearly understand how to use **DELTA function in Excel** 365 with syntax, description, and examples. Share your valuable **queries/suggestions** in the below comment section. Thanks for visiting **[Geek Excel.](https://geekexcel.com/)** Keep Learning!! 

### Read Also:

- [XOR Function in Microsoft Excel 365 – How to use?](https://geekexcel.com/xor-function-in-microsoft-excel-365-how-to-use/)
- [How to use TIMEVALUE Function in Microsoft Excel 365?](https://geekexcel.com/how-to-use-timevalue-function-in-microsoft-excel-365/)
- [How to Use “BITAND Function” in Excel 365? – { with Examples }](https://geekexcel.com/how-to-use-bitand-function-in-excel-365-with-examples/)
How to Use BITXOR Function in Microsoft Excel 365? – [With Examples]
Tags: bitxorfunctioninexce, excelfunctions
Published: 2020-08-13 04:10:23

---
title: How to Use BITXOR Function in Microsoft Excel 365? – [With Examples]
published: true
date: 2020-08-12 06:34:25 UTC
tags: BITXORFunctioninExce,ExcelFunctions
canonical_url: https://geekexcel.com/how-to-use-bitxor-function-in-microsoft-excel-365-with-examples/
---

## BITXOR Function in Excel:

In this tutorial, we will guide you to learn how to use the **BITXOR function in Excel 365** with syntax, explanation, and examples. Let’s get into this article!! Get official version of **MS Excel** from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)



## BITXOR – Function Description:

- This function performs **bitwise XOR** of two decimal numbers and returns the output as a decimal value.
- It will perform logical XOR operation for each individual bits represented in the binary value of the given input number.

## Syntax:

**=BITXOR(number 1, number 2)**

### Syntax Description:

**Number 1 and Number 2** – Both the parameters are should be represented in the decimal form that is equal to or greater than 0.

### **Note:**

- If any parameter you have given is less than 0, it will return **#NUM!** Error value.
- If you give any of the parameters as non-numeric value ( **Letters and Special characters** ), it will return **#VALUE!** Error.
- The parameters should be less than ( 2^48)-1, else it will return **#NUM!** Error.

## Examples:

Let’s see some examples to understand this concept easily.

### Example 1: Bitwise XOR of two decimal numbers

- Refer to the below image.
- The two parameters are given in the cells ( **B2 and B3** ), the output is placed in the active cell **B4**.

![Example 1](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/08/1-17.png)<figcaption id="caption-attachment-11552">Example 1</figcaption>

- If any argument you have given is less than 0, it will return **#NUM!** Error value.

![Example 2](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/08/2-15.png)<figcaption id="caption-attachment-11553">Example 2</figcaption>

- If you give any of the arguments as non-numeric value, it will return **#VALUE!** Error.

![Example 3](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/08/3-14.png)<figcaption id="caption-attachment-11554">Example 3</figcaption>

## A Short Synopsis:

To sum up, hope this article helped you to understand the usage of the **BITXOR function in Excel** 365 with syntax, explanation, and examples. Leave your **feedback** in the comment section. Thanks for visiting **[Geek Excel.](https://geekexcel.com/)** Keep Learning!!

### Keep Reading:

- [Use N Function in Microsoft Excel 365 -Simple methods!](https://geekexcel.com/use-n-function-in-microsoft-excel-365-simple-methods/)
- [How to Use ISNUMBER Function in Microsoft Excel 365?](https://geekexcel.com/how-to-use-isnumber-function-in-microsoft-excel-365/)
- [How to Use BIN2HEX Function in Excel 365? {With example}](https://geekexcel.com/how-to-use-bin2hex-function-in-excel-365-with-example/)
The Legend of Data - Ep.11 - Decision Tree
Published: 2020-08-12 06:30:47

---
title: The Legend of Data - Ep.11 - Decision Tree
published: true
description: Decision tree-based algorithms are a family of common algorithms to be used in many machine learning applications. By drawing conclusions based on the labelled data provided, it can build a decision path to give a prediction based on the different values of different features given.
tags: 
---
Decision tree-based algorithms are a family of common algorithms to be used in many machine learning applications. By drawing conclusions based on the labelled data provided, it can build a decision path to give a prediction based on the different values of different features given.

If you have any questions or any suggestions about which Python or Data Science topics to cover, please leave your comment at my [Twitch channel](https://www.twitch.tv/cheukting_ho)

You can get the slide deck [here](https://slides.com/cheukting_ho/legend-data-pandas1/). The notebook that I used can be found [here](https://github.com/Cheukting/legend_data).
Sidecar pattern and Ursc
Tags: sidecar, ursc, pattern
Published: 2020-08-11 17:39:41

---
title: Sidecar pattern and Ursc
published: true
description: 
tags: #sidecar #ursc #pattern 
//cover_image: https://direct_url_to_image.jpg
---
## Sidecar pattern

https://github.com/rafapaezbas/ursc

The sidecar pattern is a distrbuted single node application pattern where a side application is used to extend functionality of the main application. Ursc can keep track of registration and login of users for another application.

## Ursc

Ursc is a containerized sidecar application that help on keeping registration and login of user for any application.

Ursc has a very simple API:

*/user/register*
```
curl -v -X POST -H "Content-Type: application/json"  -d '{"name":"name","password":"password"}'  localhost:8083/user/register
```
Returns 201 if user is created, if there is already  a user with the same name, response is code 403.

*/user/login*

```
curl -v -X POST -H "Content-Type: application/json"  -d '{"name":"name","password":"password"}'  localhost:8080/user/login
```
Returns 200 and a signed JWT token if credentials are correct, otherwise response will be code 403.

*/user/check*

```
curl -i -H "Authorization: Basic eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhYSIsImlhdCI6MTU5NzA3OTUwMCwiZXhwIjoxNTk3MDgzMTAwfQ.VCGsGjpAMEVUzQu2twamNUrbFeyjNECGjeq0nxlDlm1" -X GET localhost:8080/user/check
```
Check validity of the token sent in the Authorization header and returns 200 code with the name of user if the token is valid, if not response is 422.

## Tutorial

If you want to deploy Ursc you also need a MongoDB instance. Make sure your database is up and running then have a look on the configuration file config.conf:

```
jwt_sign_secret=0123456
encryption_salt=0123456
mongodb_url=mongodb://mongodb:27017
```

Change the jwt signature and encryption salt to make your application saver. Then run init.sh, now you should have a Docker container running Ursc!



```
# Link mongodb container with alias "mongodb", expose application on port 8083
./init.sh -l mongodb:mongodb -p 8080 
```