teleren/devto huggingface dataset:
Should You Buy Bitcoin? An In-depth Analysis — The Finance Brief
Tags: blockchain, cryptocurrency, bitcoin, economics
Published: 2020-11-30 11:03:59

---
title: Should You Buy Bitcoin? An In-depth Analysis — The Finance Brief
published: true
date: 2020-11-29 15:38:41 UTC
tags: blockchain,cryptocurrency,bitcoin,economics
canonical_url: https://medium.com/coinmonks/should-you-buy-bitcoin-an-in-depth-analysis-the-finance-brief-d4adeeb1e976
---

[![](https://cdn-images-1.medium.com/max/1280/1*XxVQWCFqdud2qD1qB1Y0TQ.png)](https://medium.com/coinmonks/should-you-buy-bitcoin-an-in-depth-analysis-the-finance-brief-d4adeeb1e976?source=rss----721b17443fd5---4)

An Interesting Turn of Events for Bitcoin

[Continue reading on Coinmonks »](https://medium.com/coinmonks/should-you-buy-bitcoin-an-in-depth-analysis-the-finance-brief-d4adeeb1e976?source=rss----721b17443fd5---4)
Creating Postman Environment
Tags: postman, testing, tutorial, beginners
Published: 2020-11-29 15:35:50

In this post, we will be creating a Postman environment and take a look at how to work with multiple Postman Environments.

#### **What is a Postman Environment?**
An environment in Postman is kind of like a virtual space where you can store a set of variables. Every time you switch from one environment to another, your environment variables will get updated in your requests on the fly.

#### **Creating and Managing Environment**
In Postman, you can create and manage multiple environments and store variables specific to that environment. A common example of that would be creating a baseUrl environment variable which will be switched based on the environment you are in (ex: test, prod, etc…)

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

---

### **Check out the video below to learn more about Postman Environments**
{% youtube 6pniHdiOlSo%}

---

#### To learn about API Test Automation using JavaScript, check out my free tutorial series here –
[JavaScript API Test Automation Tutorial Series](https://www.youtube.com/watch?v=ZSVw3TyZur4&list=PL6AdzyjjD5HDR2kNRU2dA1C8ydXRAaaBV)

---

I hope this video helped you out, let me know if you have any questions in the comments below!

Happy testing! 

...

📧 Subscribe to my [mailing list](https://automationbro.com/mailing-list) to get access to more content like this 
👍 Follow @automationbro on Twitter for the latest updates
Setup TypeScript Playground on your local system
Tags: typescript, javascript
Published: 2020-11-29 15:24:00

You can setup a really nice TypeScript playground in just 3 simple and easy to follow steps.
But,
Before following the steps it is assumed that you already have [npm](https://www.npmjs.com/get-npm) setup in your local machine.

So, jump in and let's get it started.

###Step 1

If you don't have [TypeScript Compiler](https://www.tutorialspoint.com/typescript/typescript_overview.htm#:~:text=The%20TypeScript%20Compiler%20%E2%88%92%20The%20TypeScript,that%20are%20editor%2Dlike%20applications.) installed in your local machine you can download in just one command on your terminal (or command prompt). That is, 
```console
                    > npm install -g typescript
```
After installation check, if it is installed correctly or not by
```console
                             > tsc -v
``` 
(In case you are facing any error just google it or comment below)

###Step 2

After having TypeScript Compiler in your local machine. 

Open up the terminal (or command prompt) and install, [nodemon](https://github.com/remy/nodemon) and [ts-node](https://github.com/TypeStrong/ts-node) 
```console
                 > npm install -g nodemon ts-node
```

**nodemon:** _nodemon is a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected_.

**ts-node:** _TypeScript execution and REPL for node.js, with source map support. Works with `typescript@>=2.7`_.

###Step 3

Last step:
Create a directory inside which you want to play with TypeScript.

* Create a file inside the created directory with extension `.ts` and write some pseudo code, like

```typescript
const arr: number[] = [2, 3, 4, 5, 6, 7, 8, 9];

for (let a in arr) {
  console.log(arr[a]);
}
```

Save the file and open up the terminal (inside the created folder, for example: C:\Users\TS_Playground> )
And run, 

```console
             C:\Users\TS_Playground> nodemon sample.ts
```

And the script will run as long as you want. If you want to terminate the process just press `Ctrl+C` in terminal or command prompt.
 
So, go -> code -> make changes -> save and see the result in the console.

That's it.

Happy Coding 🙂.
Siyamex Blog
Tags: siyamex, dhivehi
Published: 2020-11-29 15:01:27


[SIYAMEX](siyamex.com) - A personal blog. Developer, Animator, Editor, Photographer . Passionate about trying things free. Dhivehi and other opensource contents

**About**
 I am Mohamed Shiyam. Developer, Designer, Photographer and Animator. siyamex.com Personal blog to share own posts. #siyamex.

**Photos**
Siyamex photo gallery have amazing photos owned by @siyamex. which include nature, portrait, landscape, and beach photos.
Desestructuración con valores por defecto en Javascript
Tags: spanish, javascript, beginners, tutorial
Published: 2020-11-29 14:57:32

En la [entrada anterior](https://coffeebytes.dev/desestructuracion-de-objetos-anidados/) traté brevemente el tema de la desestructuración con objetos anidados en javascript. En esta publicación voy a hablar un poco sobre como podemos especificar valores por defecto al momento de desestructurar un objeto en javascript.

Para hacerlo crearemos un objeto bastante sencillo:

```javascript
const user = {
  userIsLoggedIn: true, 
  email: "email@example.org",
  accountType: "premium" 
}
```

Este objeto podría ser la respuesta a una petición API. Del objeto anterior podriamos desestructurar tres propiedades, _userIsLoggedIn_, _email_ y _accountType_.

```javascript
const { userIsLoggedIn, email, accountType } = user
```

Pero, ¿qué sucedería si hay un cambio en la API y ahora esta ya no retorna la propiedad el _accountType_?, esto bastaría para que toda la parte del frontend que dependa de la presencia de esa variable tenga errores.

```javascript
if(accountType==='Admin'){
  showAdvancedMenu()
}
if(accountType==='basic'){
  showBasicMenu()
}
```

Bien pues para evitar que suceda eso podemos asignar un valor por defecto cuando la desestructuración no encuentre la propiedad que queremos desestructurar. Si estás siguiendo este ejemplo recuerda limpiar la consola de javascript y volver a declarar el objeto principal o tendrás un error.

## Asignar un valor por defecto al desestructurar un objeto

Esta vez declaremos el objeto user sin la propiedad _accountType_:

```javascript
const user = {
  userIsLoggedIn: true, 
  email: "email@example.org"
}
```

Bien, si nosotros intentemos desestructurar el objeto y asignar un valor por defecto si no se encuentra la propiedad adecuada lo haremos de la siguiente manera:

```javascript
const { userIsLoggedIn, email, accountType="basic" } = user
accountType
"basic"
```

La constante _accountType_ devuelve 'basic', una propiedad de la cual carecia el objeto original, pero que ahora tendrá un valor por defecto si es omitida. Esto nos permite mantener el frontend sin cambios grandes ante una modificación de una respuesta HTTP y manejar la ausencia de alguna propiedad en un objeto.

Sé que a veces puede ser bastante difícil este tema, a mi también me costó algo de trabajo comprenderlo la primera vez, la desestructuración hace mucho más legible el ya de por sí confuso código de Javascript. Si aún te parece confuso Javascript te dejo una entrada donde hablo del que yo considero el [mejor libro para aprender Javascript](https://coffeebytes.dev/el-mejor-libro-para-aprender-javascript-moderno/) desde cero a nivel intermedio.

Sígueme en [twitter](https://twitter.com/neon_affogato) publico un tweet cada que tengo una nueva entrada. Además Twitteo frecuentemente información interesante sobre tecnología que puede servirte.
What is the best language to develop a mobile app for my college graduation work?
Tags: doubt, help
Published: 2020-11-29 14:28:45

---
title: What is the best language to develop a mobile app for my college graduation work?
published: true
description: My course conclusion work is about a linear algebra mobile app.
//cover_image: https://direct_url_to_image.jpg
---

My course conclusion work is about a linear algebra mobile app. It is a simple app, basically the user logs in and when logged in there will be some video lessons linked from youtube and when the video is completed a series of content fixation questions is asked. 

My question is which language to use because I only have 6 months to learn from scratch and implement everything! 

My intention is to use react native, but if anyone has a better suggestion, please tell me :)
Daily Developer Jokes - Sunday, Nov 29, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-11-29 14:16:17

---
title: "Daily Developer Jokes - Sunday, Nov 29, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Sunday%2C%20Nov%2029%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12588a43d6b.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ What do you call an idle server?

___A:___ A waiter.
 -->
How to set up environment variables in Linux Machine.
Published: 2020-11-29 14:07:43

If you ever took a tutorial on Node.Js you will often here instructors saying listen the server to the `process.env.PORT` but where is this PORT thing.

In this video i show you quickly how to setup your own environment variables, step by step

1. Edit the `/etc/environment` file with `sudo` privileges.
2. Add your variable name without any space in be between like this
`name="me"`
3. Reboot the system
4. You can now use that environment variable.
I Want To Read More Demo
Published: 2020-11-29 12:36:29

This is a short article to demonstrate the [I Want To Read More](https://iwanttoreadmore.com) integration with Dev.to.

Here are different examples of vote links:

* Interesting topic [📖](https://iwanttoreadmore.com/vote/haltakov/iwanttoreadmore/example)
* Interesting topic ✋
* Interesting topic [(vote)](https://iwanttoreadmore.com/vote/haltakov/iwanttoreadmore/example)
* Interesting topic (I want to read more about this)

```
[<text or emoji>](https://iwanttoreadmore.com/vote/haltakov/iwanttoreadmore/example)
``` 

You can see the results on the [Live Demo](https://iwanttoreadmore.com/demo) page.
Budget Calculator using bootstrap and JS
Tags: html, javascript, cwb, purehtml
Published: 2020-11-29 14:02:57

Budget calculator is made with HTML and JS. They are usually used to calculate budgets for you. It is very usefull and You can also use it by copy pasting the code from my site.
<a href="https://codewithbishal.com/example/pure-html-budget-calculator-cwb" rel="nofollow"> View it on our website </a>

At first, on our webpage, there is the overview of our blog then there is the example of our Budget calculator . When you click on view code after visiting our website the whole code will appear, there is a also a button to copy the codes (HTML and JS).

You can view and copy the source code files through the link given below. <a href="https://codewithbishal.com/example/pure-html-budget-calculator-cwb" rel="nofollow">View and Copy Source Code</a>
Tips for Developers
Tags: webdev, productivity, devops, career
Published: 2020-11-29 13:59:40

I wont talk about code, devOps or linting in this article. this post will list down some useful tips you can put in practice and i am sure it will help you in future.

1.) *Create a doc immediately and write down solution you just approached for solving some bug. why ?*


**Answer:** you dont do this because you are smart and lazy. this has happened many times in my life. i was struggling to fix some bug for days and once i resolved this, i just moved on and the next project i was assigned has exactly same bug and i wasted few days again.

2.) *Create an Excel file and mention your daily work with Date and Time. why ?*


**Answer:** incase attendance system crashes this will help if your company dont consider your attendance because of system failure. most company hire you for some other client and those client pay the company on hours of job you do. at the end of month, your company share your attendance to the client and client pays. what happens when company you are working with forgot record of your work OR client does the same ?


3.) *if you are* **Introvert** *, your life wont be smooth. why ?*

**Answer:** Introverts can only survive in corporate if they are excellent at their work. its also a truth, 90% introverts are more productive. Introverts dont like to bother orhers however they do like if someone comes to them and talk. problem is, your seniors would expect you to keep talking to them(boss-*itch) stuff and i dont think you are there to entertain others. i have one liner solution: *use headphones and focus on your work(Best method) OR learn some butterForkMechanism*. 

4.) *your Communication matters. why ?*

**Answer:** you are good team member but company will only consider you for lead position if you are good at communication skills. i have seen many developers who have been working as software engineer for 7-8 years and some developer who's leading a team even they have overall 4 years of experience. when company creates list of employee they are going to fire, this perimeter is a vital one because they increase your pay every year but they cant put you on lead position. 


5.) *Dev Etiquette Important. why ?*

**Answer:** there are some workplace etiquette you should follow. company monitors your behaviour with team and this adds point when your appraisal comes. they also take feedback from each member of the team. keep your workstation neat and clean. if you have big ego/attitude problem, make sure **you are best member of the team(Skills)**.

this is what i have experienced. i fixed them slowly. dont take stress. remember, you succeed when you start making every situation interesting.

thanks.
Project 1, Week 1: WebRTC
Published: 2020-11-29 13:58:56

The quest officially starts tomorrow, thought it never hurts to start early.

_Project_: Create a webRTC app using socketIO and some "peer" library
_Goals_: Make the project human friendly and snappy
_Timeline_: 30 Nov 2020 to 04 Nov 2020

Update daily on the status of the project.
Write a project summary on 04 Nov 2020 about challenges faced, lessons learned.

I'm excited. :)
Metro 4 changes group on Facebook
Tags: metroui, html, css, javascript
Published: 2020-11-29 13:54:25

[Metro 4](https://metroui.org.ua) is a free open-source impressive components library built on HTML, CSS, and javascript for expressive web development.

If you interesting info, examples, discussions, please, join the new [Metro UI/UX group](https://www.facebook.com/groups/metrouicss) on Facebook - https://www.facebook.com/groups/metrouicss. The [old page](https://www.facebook.com/metrouicss) is archived and information on it will no longer be published.
Super quick way to set up opendiff or Perforce p4merge as git diff
Tags: git, diff
Published: 2020-11-29 13:53:09

There is a super simple way to set up `git` to use `opendiff` or `p4merge` as the diff tool:

```bash
git config --global alias.diffy 'difftool -t opendiff -y'
git config --global alias.diffp 'difftool -t p4merge -y'
```

after we do that, in the future, we can use

```bash
git diffy    # to use opendiff
git diffp    # to use p4merge
```

Alternatively, Bash or Zsh aliases can be used:

```bash
alias gitd='git difftool -t opendiff -y'
alias gitd2='git difftool -t p4merge -y'
```

To see what diff tools can be used:

```bash
git difftool --tool-help
```

Details:

There are methods to set up `git diff` to use Xcode's FileMerge, or `opendiff`, or to use Perforce's `p4merge`.  Usually the method is to set up an external shell script, and then set the `diff.external` to use that script.

The command `git difftool`, can readily perform the task without needing any external scripts. An extra advantage is, we can use `opendiff` or `p4merge` without altering `diff.external`

Note that when we use `p4merge`, we will need to add it to our path, which, for example, is `/Applications/p4merge.app/Contents/MacOS` on the Mac.
Project a week challenge
Published: 2020-11-29 13:47:15

The inspiration was another [dev post](https://dev.to/fgauna12/i-wrote-a-daily-blog-post-for-100-days-here-s-what-happened-3673), which I did not read completely. It was a post about a blog a day for 100 days.

I feel I have been wasting a lot of time the last few weeks on YouTube. Averaging at least two hours a day. Which I'm quite ashamed to admit. So if I decide to quit YouTube, I'll have to fill up my time with something else. There have been quite a lot of projects I have started but never finished. 

So this is the plan, it's really simple. Every week tackle one project a week that I've wanted to do for the next 12 months. If a project is more ambitious, divide it into a cluster of mini projects that can be completed in a week. I think accountability is going to be key. So everyday, I'll will write a tiny post here on the status of the project, challenges faced etc.

I've conveniently decided this on a Sunday so I start tomorrow. I already have a project in mind :)
Handling Folds that require non-empty data structures
Tags: javascript, functional, node
Published: 2020-11-29 13:06:58

---
title: Handling Folds that require non-empty data structures
published: true
description: 
tags: #javascript #functional #nodejs
//cover_image: https://direct_url_to_image.jpg
---

Some folds (aka reduce) don't include an accumulator or initial value and thus require a non-empty foldable data structure, a variadic `maxn` fold for instance. Such folds come along with two issues though.

The first issue concerns the type. With reduce we can express asymetric types, because the accumulator can have a different type than the elements of the Foldable, e.g. we can reduce `[Number,Number,Number]` to `String`. Without an accumulator we can only express symetric types.

The second issue concerns the case when we pass an empty data structure. Without an accumulator there is nothing to return. We can through an error what would render the function partial.

Here is a fold for non-empty Foldable types that solves both issues in a clean functional way:

```javascript
const arrFold1 = f => g => xs => {
//                    ^ A
  let acc;
  
  if (xs.length === 0)
    return None;
//         ^^^^ B

  acc = g(xs[0]);

  for (let i = 1; i < xs.length; i++)
    acc = f(acc) (xs[i], i);

  return Some(acc);
//       ^^^^^^^^^ B
};

const maxn = ({fold1, max}) => tx =>
  fold1(x => y =>
    max(x) (y)) (x => x) (tx);

const numMax = m => n =>
  n > m ? n : m;

maxn({fold1: arrFold1, max: numMax})
  ([1,2,30,4,5,6]); // Some(30)

maxn({fold1: arrFold1, max: numMax})
  ([]); // None
```
[run code](https://repl.it/@scriptum/RichSufficientCores#index.js)

Instead of an accumulator `arrFold1` expects an unary function (A) that may or may not transform the first element's type. If an empty structure is provided, it returns `None` and `Some(a)` (B) otherwise.

This mimplementation is part of the [scriptum](https://github.com/kongware/scriptum/blob/master/index.js) FP lib
Can AI/ML solve this Puzzle ?
Tags: computerscience, devops, devjournal, algorithms
Published: 2020-11-29 13:05:27

Okay, first of all, i assume you dont think the earth is **flat** (just kidding)

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

(source: [Insta/My Profile](https://www.instagram.com/p/CFcqJW_jUhk/))


🎭 //Personal Opinion// 🎭


this will sound Z[f(z) = f(y)] perhaps but how machine learning gonna reveal the reality of multiverse or time reversal ?


people say, we have parallel universe which is just a replica that means, time is reversible. I mean spacetime is like a log file ? e=mc² says energy, mass are only transformed but never destroyed.



If we take this perception further, literally time is never destroyed because it's fourth dimension of universe and hence it gets transformed as a log format you can say(backup files)


Quantum computing has different thought they say nothing gets destroyed in an isolated system(universe) that means if Einstein was alive yet, we perhaps had solution for time reversal


Quantum computing has big trouble with Schrodinger's cat theory which says find my cat dead "and" alive which makes everything a puzzle


Now we say, artificial Intelligence can solve all this puzzle. I dont understand how. how can all this be modelled. Big bang, blackhole, speed of light, superposition bit-flips(0 becomes 1 automatically) and all.

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

Dont say we can start collecting data since big-bang was happend(srsly no 👏) But this is total amazing and dangerous if somehow this puzzle gets solved.


Note: i copied this post from my [facebook page](https://www.facebook.com/itsmukulmishra/posts/1450538221804485). its an old post but i thought i should share this with you guys too.

thanks for reading
Showing Wildfires on Google Maps with Blazor Server
Tags: dotnet, blazor, webdev, tutorial
Published: 2020-11-29 13:00:48

One of my favorite web programming YT channels presented this idea during the past weeks. Traversy Media's tutorial was about showing Wildfires using React and Google Maps.

Please, have a look on his approach:
https://youtu.be/ontX4zfVqK8

As I am checking out Blazor Server, I decided to give it a try, to reproduce something similar, using C# and Blazor Server.

The aim of this app is just to show the wildfires of the world, on a map centered on California, using the above mentioned technlogies.

*Prerequisites:*
- basics of Blazor server
- intermediate C#
- using free component for maps from Radzen Blazor
- using Nasa Web Api

**The application is live:** [Link](wildfires.zoltanhalasz.net)

*Github Repo with code:* https://github.com/zoltanhalasz/WildFiresBlazor

**Steps for the application:**

* Create a Blazor Server App with Asp.Net Core 3.1
* Install Blazor Radzen for Server: https://blazor.radzen.com/get-started
* See the tutorial for the Httpclient in Blazor from Tim Corey: 
https://www.youtube.com/watch?v=cwgck1k0YKU&feature=emb_err_woyt
* Our Api will be inserted in appsettings.json
```
  "NasaAPI": "https://eonet.sci.gsfc.nasa.gov/api/v2.1/categories/8"
```
Please visit the link to examine the structure of json data, that will be deserialized.
* Create folder Data in the project and insert class named Event.cs
Have a look on my approach, how to deserialize the json string coming from Nasa, by preparing the corresponding structure of classes.
* The page with the wildfires, will be using Google Maps Component, please study that also on Radzen Blazor https://blazor.radzen.com/googlemap
* The main logic of the display is presented in the Index.razor component. I will not reproduce it here, since would be just a copy paste from my repo.

I hope this was useful and somebody learnt a bit of Blazor from this.