teleren/devto huggingface dataset:
Ag: Demonstrations amplify Specifications
Tags: leadership, process, agile, manifesto
Published: 2020-12-07 15:44:19

# Demonstrations

The actual, true to life, observable behavior of a technology or system.

# Specifications

The documentation or proposal of how a technology or system should behave. Can be a prescription created before hand or a description created after the fact; or a mixture of both.

# Demonstrations amplify Specifications

Improving specs results in additive gains.

Improving operating deliverables results in multiplicative gains.

# Examples

## BigCorp

Everything must be described to the most minute detail and approved by comittee before implementation. On paper, BigCorp's technology is not just impressive, but downright magical.

But asking those actually using BigCorp's products yields some different adjectives.

## SmallCorp

Being too busy actually building great tech; SmallCorp finds no time to write any documentation. If the users only knew about some of these features they would be over the moon with how well they work.

However, aside from those who made them, no one knows about these wonderful things. How could they when nothing will tell them?

## SilverCorp

SilverCorp does not have much documentation. But the little used focuses on overarching ideas and how to get started experimenting with their tech.

They encourage experimentation with the live system in sandboxed environments to allow guided learning in the specifics each user needs.

Their documentation rarely goes out of date because it never over-described their technology or details subject to frequent change.

# Take-aways

Having too little specification makes communication more difficult. View it as a broadcast from the past to intercept questions in the present.

Having too much specification risks discrepancies between reality and spec. Sometimes misinformation is worse than no information.

Make it easy to experiment with the real implementation. Being able to quickly run through a scenario the user is questioning provides a better answer than a hundred pages of documentation.

So:
1. Keep specifications brief and high-level
2. Prioritize making real-world experiments easy (aka Demonstrations)
Adventures in PowerPC Linux Pt 1: A Choice
Tags: linux, powerpc
Published: 2020-12-07 15:43:59

Hello!
I recently stumbled upon an old Mac Mini G4. It had 10.4 Tiger on it, and it was pretty slow. So, I decided to try and install Linux on it. First, I needed to decide what distro to install.

There are three choices when it comes to PowerPC Linux: Debian, Adelie, and Gentoo.

Debian is pretty much a non-option, because it's an older version (9 Jessie) and all of the PowerPC repos for it have been removed. I'd have to compile everything from scratch, which defeats the point of Debian.

Adelie is an interesting binary distro. It has a focus on using musl (instead of glibc) and python3. It provides binary packages for PowerPC. This is probably the easiest option.

And then there's Gentoo. Gentoo is a source distro, which means that binary packages are *not* provided. Everything must be compiled from source. This gives Gentoo a lot of flexibility and optimization potential, but makes it very complex to install. This is the one I chose. 

Next post I'll be describing the initial install process, and (spoilers) all of the problems that came with it.
I need help
Tags: react, help
Published: 2020-12-07 15:36:28

Hello 
first of all I´m from Germany so sorry for my bad english. I´m applying for a job and I got a task to code in React a lottery ticket with 49 numbers where you need to click 6 to go on. Like Lotto (here an example https://www.lotto.de/lotto-6aus49/spielen). The thing is I never wrote in React and I´m completly new. I also need to change all numbers if clicked and you cant click more than 6 numbers. After that you can click a button that shows every number sorted. Now my problem I created the programm and I also have 49 buttons for the numbers but if I want to count them the count is undefined and when you click a number it doesnt change to green what I wanted to do. I coded in Codesandbox (https://codesandbox.io/s/lotto-spielschein-n4ztu?file=/src/App.js) that you can see everything. I hope somebody can help me.
What's your most used shortcut?
Tags: productivity, hottips, vscode, zsh
Published: 2020-12-07 15:35:34

As I’m writing this article, I just finished adding two new commands alias to my git config file :
* `git config --global alias.list-old-branches "!git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}'"` - to list all the branches that exist on my local repository but have been deleted from remote
* `git config --global alias.clean-old-branches "!git list-old-branches | xargs git branch -D"` - to pick the list of branches returned by the previous command and delete them from my local repository

And then it made me think **'How can we improve our productivity with more of these shortcuts? 🤔'** 

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

I hope that each one of us has one or more shortcuts added either to our terminal/VSCode/git. So I decided to write this article for it to work as a centralized repository of shortcuts that can easily be shared among us.

It's not convenient to go through the whole history of 'that'-hot-tips channel. Or having to go through individual SO questions, to look for that [VSCode shortcut](https://medium.com/doctolib/automated-rails-tests-in-vs-code-331ac26f71ec) that allows you to run all the tests from a single file.

Hope this article helps everyone, from an experienced programmer to a newbie! And please, add your own shortcuts in the comments.

Take care, BEAR hugs ฅʕ•ᴥ•ʔฅ
Use RxJS instead of setTimeout
Tags: codepen, rxjs, javascript
Published: 2020-12-07 15:19:41

---
title: Use RxJS instead of setTimeout
published: true
tags: codepen, RxJs, javascript
---

<p>A small example of using RxJs.
<br><br>
Here we create an observable with <code>of</code>, we then use <code>pipe</code> to take the values (here just "true") into a flow.
<br><br>
Using <code>delay</code> operator to wait for a number of ms. The <code>tap</code> operator lets us "tap into" a stream and "do something".
<br><br>
We log some information, and repeat that pattern 3 times, after which the stream ends.
<br><br>
To start the pattern we use <code>subscribe</code> and after the flow has ended we <code>unsubscribe</code> to the observable stream.</p>

{% codepen https://codepen.io/netsi1964/pen/XWjKWmQ %}
ReactJS - Flux Concept
Tags: react, reactnative
Published: 2020-12-07 15:16:08

Flux is a programming concept, where the data is uni-directional. This data enters the app and flows through it in one direction until it is rendered on the screen.

Flux Elements => Following is a simple explanation of the flux concept. In the next chapter, we will learn how to implement this into the app.

Actions => Actions are sent to the dispatcher to trigger the data flow.

Dispatcher => This is a central hub of the app. All the data is dispatched and sent to the stores.

Store => Store is the place where the application state and logic are held. Every store is maintaining a particular state and it will update when needed.

View => The view will receive data from the store and re-render the app.

Flux Pros
--------
Single directional data flow is easy to understand.
The app is easier to maintain.
The app parts are decoupled.
Demystifying the find command
Tags: linux, tools, productivity, shell
Published: 2020-12-07 15:12:37

---
title: Demystifying the find command
published: true
description: 
tags: linux, tools, productivity, shell
cover_image: https://antjanus.com/assets/demystifying-find-1.png
canonical_url: https://antjanus.com/digital-garden/demystifying-the-find-command
---

## 📃 Cheatsheet

List all files and folders in current directory:

```sh
find
```

Find files/folders that match a pattern:

```sh
find -name "*pattern*"
```

Run a command per result. Substitute `command` with your actual command.

```sh
find . -name "*pattern*" -exec command {} +;
```

## What is find?
`find` is a command I rarely come across but it turns out, it's one of the more powerful commands in Unix-like system. Find, at its basest, lists all the files and folders in a directory. Kind of like a recursive `ls`. This can be piped into any command. But find also has other features like filtering and the ability to execute a command on each matching file.

Find is also sometimes used as the "backend" for fuzzy file searchers. For example, `fzf` uses `find` under the hood to employ fuzzy search in the command line (which is super useful).

## Plain "find"

Using `find` alone will print out all directories and files located under your current working directory. This is useful for piping or other actions.

```sh
find
```

Just for the sake of completeness, you can also specify a path but `find` will assume you want to search your current directory by default.

```sh
find /path/to/dir
```

## Find file or directory by pattern

To find a file or directory, one can specify its name and pass it in as an argument. Both files or directories will match.

```sh
find -name "package.json"
find -name "node_modules"
```

Find will return *any* matches including nested directories. Note that the match isn't done on the path but on the actual directory/file name itself.

You can also specify a pattern using `*` as a wildcard like so:

```sh
find -name "pattern*"
find -name "*.spec.js"
```

## Execute a command on all found files

`find` allows you to execute logic on every single match it finds via the `-exec` flag. There are 2 ways to execute commands: once on all the results or run it per result.

Here's once for all results:

```sh
# substitute any kind of command for the keyword "command"
find . -name "*.js" -exec command {} \;
```

The command has several parts. We're already familiar with the pattern matching so next comes the `-exec` flag. After `exec`, you can type out your command and end it with `\;`. The `{}` braces will be substituted with the `find` results. 

To run the command separately *per* result, end your command with `+` instead of `\;`.

```sh
# substitute any kind of command for the keyword "command"
find . -name "*.js" -exec command {} +
```

## Other demystifying articles

- [Demystifying GREP](https://dev.to/antjanus/demystifying-grep-a1o)
- [Demystifying Rsync](https://dev.to/antjanus/demystifying-rsync-3jac)
- [Demystifying TAR](https://dev.to/antjanus/demystifying-tar-351l)
IPAD VS MONITOR 
Published: 2020-12-07 15:07:29

I want a second screen for my ios development. I am confused between iPad 8th gen and a monitor ...
Ipad is costing me 21,570 RS and monitor + second-hand iPhone is costing me 18,500 RS.
If I buy an iPad I will use it for second screen and app testing and monitor for same.

Can anyone help me here.....
Quick Tip: A Keyboard Shortcut to Start a Taskbar App as an Administrator
Tags: windowsterminal, windows10, windows
Published: 2020-12-10 17:06:12

---
title: Quick Tip: A Keyboard Shortcut to Start a Taskbar App as an Administrator
published: true
date: 2020-12-07 15:00:00 UTC
tags: windowsterminal,windows10,windows
canonical_url: https://seankilleen.com/2020/12/quick-tip-a-keyboard-shortcut-to-start-a-taskbar-app-as-an-administrator/
---

I can’t believe I hadn’t come across this yet! Posting in case you can benefit from it, too.

## Challenge

On Windows, I often need to open a taskbar app as an admin, such as Powershell or Windows Terminal.

I thought my options were limited to:

- Right-click the icon, (and in the case of windows terminal, right-click again), and select “Run as Administrator”.
- Set the app to always run as an administrator via the security settings in the shortcut – not something I love doing from a security standpoint, and not an option with Windows Terminal to my knowledge.

## Solution: A Keyboard Shortcut!

I had no idea about this and I absolutely love it.

You can use `Win` + `Ctrl` + `Shift` + `[Position number]` to open a pinned taskbar app as an admin.

For example, I have the windows terminal pinned as the farthest left icon on my taskbar. `Win + Ctrl + Shift + 1` opens it as an admin.

## Bonus: Another Thing I’d Apparently Missed

You can also hold `Ctrl + Shift` and then click the icon to start it in admin mode. I feel more productive already.

Happy elevating!
What is the best way to create PDF files with PHP
Tags: php, pdf
Published: 2020-12-07 14:57:33

Hello, what is the best and easiest way to create PDF files with PHP?

I know about libs like fpdf, tcpdf and wkhtmltopdf. But they have all their own limitations.

What is your preferred way to create pdf files with php, optimaly by transforming a html file?
Don't struggle with extending the service worker in Create React App anymore. Upgrade to version 4!
Tags: react, javascript, typescript, pwa
Published: 2020-12-07 14:50:28

No need to struggle with how to customize and extend the service worker without ejecting [Create React App](https://create-react-app.dev/) anymore. Version 4, released in October 2020, comes with a service worker file available for extension in the src folder.

I wrote a post about [the simplest way to extend the default service worker in CRA](https://dev.to/m3h0w/the-easiest-way-to-extend-create-react-app-service-worker-without-ejecting-bfg) to help others who were dealing with this task. A strangely easy task requiring a dreadful amount of research and trial and error. But that was before I found out that there is an even simpler way: upgrading to the new CRA version.

The previous post generated some attention so I figured that I'm not the only one, who doesn't realize that one can now access the Service Worker file and edit it directly in the new CRA version.

Simply initialize the project with:
`npx create-react-app my-app --template cra-template-pwa`

or:
`npx create-react-app my-app --template cra-template-pwa-typescript`

And the service worker will be available for extension the src folder. Check out the [official guide](https://create-react-app.dev/docs/making-a-progressive-web-app/) for more information and instructions.

Upgrading is quite straightforward too. I recommend creating the new project on the side, comparing the package.json files to update the old one, copying and merging the files generated in the src folder to the old project, and then fixing compile errors if any occur. It didn't take more than 20 minutes for my relatively large project.
Entity Developer and ADO.Net Data Providers Now Support Entity Framework Core 5
Tags: oracle, mysql, postgres, sqlite
Published: 2020-12-07 14:27:27

Devart announced an update for Entity Developer and dotConnect ADO.NET data providers for Oracle, MySQL, PostgreSQL, and SQLite. The new versions now support Entity Framework Core 5.0.

Devart, a recognized vendor of professional database management software and world-class data connectivity solutions for various data connection technologies and frameworks, introduced support of the Entity Framework Core 5.0 in Entity Developer and dotConnect providers.

Entity Developer 6.10 can now detect many-to-many associations and table-per-type inheritances automatically when generating an Entity Framework Core 5.0 model from a database. Also, these inheritances and associations could be created manually via the corresponding editors or Model Refactoring Wizard.

Standalone Entity Developer application now targets Entity Framework Core 5.0 by default, when creating new Entity Framework Core models. 

The newly released dotConnect ADO.NET data providers for Oracle, MySQL, PostgreSQL, and SQLite got significant changes to their NuGet packages with Entity Framework Core functionality. 

These packages now contain new assemblies for the following Entity Framework Core versions:
EF Core 1 assembly (.NET Standard 1.3)
EF Core 3 assembly (.NET Standard 2.0)
EF Core 5 assembly (.NET Standard 2.1)
At the same time these packages do not contain an assembly for Entity Framework Core 2 anymore. This assembly is now available only via the provider installer.

For more information on how these changes may affect projects, using dotConnect providers and Entity Framework Core, please visit   
https://blog.devart.com/entity-framework-core-5-support-in-entity-developer-and-dotconnect-providers.html

About Devart

Devart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration and backup solutions. The company also implements Web and Mobile development projects.
For additional information about Devart, visit https://www.devart.com/.
Has anyone tried writing a letter to Money?
Tags: watercooler, money, letter, financialplanning
Published: 2020-12-07 14:23:46

---
title: Has anyone tried writing a letter to Money?
published: true
description: Writing a letter to Money
tags: watercooler, money, letter, financialplanning
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/3hpn5nl4ad3anpkqejfb.jpeg
---

Dear Money,

time to talk..

For context -

> In the book, [You are a Badass at Making Money](https://www.goodreads.com/book/show/30900534-you-are-a-badass-at-making-money), by Jen Sincero one of her suggestions is to write a letter to money to get a better feel for what our relationship with it is like and how to change the negative beliefs, thoughts, and feelings we have toward it.

# Wrote My First One Today

![letter](https://dev-to-uploads.s3.amazonaws.com/i/yb06v4w8g9q4fnst90z6.jpeg)

Also posted on [medium](https://byrslf.co/dear-money-3593ec6cab15).
Responsive Ecommerce Product Cards In HTML/CSS
Tags: html, css, webdev, uiweekly
Published: 2020-12-07 14:20:05

An e-commerce card is used to show product details in the shot with price and names. Here we design a responsive eCommerce product card using HTML and CSS with an image.

In this element, we used a custom grid with the help of flex CSS properties. Also, we used the height and width to set this element properly. we used the button in the card at the bottom of rating stars and to make responsive, we used media queries. On the other outside of the card, we used hover effects when you hover your mouse on the card it will go topside a little bit and also we used hover effects in icons.

Make it yours now by using it, downloading it, and please share it. we will design more elements for you.

[Source code] (https://w3hubs.com/responsive-ecommerce-product-cards-in-html-css/)
Learn Laravel as a Nodejs Developer using AdonisJS
Tags: node, laravel, adonis, learning
Published: 2020-12-07 14:19:47

If you have been willing to develop Laravel applications as a Nodejs developer and don't know PHP, you can take the Adonis.js path. Adonis.js is an opinionated Node.js MVC framework for developing full-stack applications and APIs. Learning Adonis will give the chance to learn some concepts like migrations and working with a CLI. The best part is that you still develop using JavaScript!

As you may know, Laravel is a PHP framework that offers a lot of goodies out of the box. At the core, Laravel and Adonis share the same philosophy.

## Similarities between Laravel and Adonis
1. They have a similar MVC structure.
2. They come with an Object Relational Mapper (ORM). Laravel comes with Eloquent while Adonis comes with Lucid
3. They handle session-based auth out of the box. Adonis goes two steps forward by handling JWT and personal token auth. 

## Differences
1. Laravel is more opinionated than Adonis. In fact, Laravel 7 comes out of the box with Bootstrap as the default CSS library.
2. Laravel is more mature than Adonis. Laravel has been around since 2011 while adonis has been in active development since 2017.

## So how do I learn Adonis.js?
The [official documentation](https://adonisjs.com/docs) is by far the best way to learn the bits and pieces of Adonis.js. But if you will like someone to hold your hand while you learn, you can check this awesome [AdonisJS series](https://hashnode.com/series/build-a-cgpa-calculator-api-using-adonisjs-cki5pkyk00avebos17rg2fc56) (shameless plug) on building a real-world API using AdonisJS.

DesignCourse has a crash course on [adonis.js](https://www.youtube.com/watch?v=4Xe4DUHka1o)
Adonis Mastery YouTube channel has a [full series](https://www.youtube.com/playlist?list=PL9gT3zlT0C1Ngrii-NCPpuRvUO1mIGzwf) on Adonis. 

## So after learning Adonis, how do I learn Laravel?
After learning Adonis, you will have a good overview of the core concepts behind Laravel and might not need a tutorial. If you do need a tutorial, you will find tons of amazing tutorials on laracasts.io. 

## Benefits of developing with Laravel
1. Out of the box configuration for authentication, Redis, 2FA, Mail and much more.
0. Ability to build Single Page Apps (SPAs) without a different server setup. Think of it as a modern monolith approach. This is achieved either through [Livewire](https://laravel-livewire.com/) or [Inertia](https://inertiajs.com/).
0. Automatic frontend asset compilation with Mix.
0. Vibrant community so you never get lost.

Check out both frameworks, learn the pros of each and save yourself set up hassle. Do leave a star on the [Laravel github page](https://github.com/laravel/laravel) and also one for [Adonis](https://github.com/adonisjs/core). Thanks for reading. Adios ✌🏾🧡.
About productivity for the other half of the planet
Tags: help, productivity
Published: 2020-12-07 14:07:48

I am really really tired of reading "awesome productivity tips" that are oblivious about a half of the planet (I'm making this number up), the half that has a family, that have children, that has a life other than work and comfortable sleep.

I have found many techniques, tips and advice related to productivity that has certanly improved mine, but I have to say that most of the times I end up crashing against reality and thinking "this is just not possible for me", or "this is unrealistic" or "I wish I were 10 or 20 years younger to be able to do this".

When you have a demanding life, a family, responsabilities and time-consuming daily occupations, when you live with other people under the same roof and you can't just decide to do whatever you need whenever you need however you need, it gets a little anoying when all advice seems to be targeted to single, young, wealthy people. 

I am baffled by the lack of productivity related material targeted at... well, people like me. People who really need to squeeze the very last drop of productivity out of a busy, crowded and interrupted schedule. These are not the ideal conditions to be productive, believe me, I KNOW, but that's precisely why we need to focus on those type of problems.

It's not just about what tools to use, or how to track time, or what to do when you wake up, it's also about how to deal with interruptions, how to deal with frustration, how to cope with the reality that maybe the productivity that you once had and that you wish you could go back to is never coming back, not fully anyway.

I don't want this to just be a rant. I really want to find quality content about productivity made by and for people other than youths in the pinacle of their lives. 

Got any and care to share?