teleren/devto huggingface dataset:
error: src refspec master does not match any solution
Published: 2021-07-17 17:16:26

Solved! Here is how I solved this issue:
1. Made an app on Heroku first and prepared all the codes in local_folder to push into it. 
2. Cloned the remote app using `heroku git:clone -a app_name`
3. then `cd app_name`
4. then copied all the codes into this folder from local_folder
5. then `git add .`
6. then `git commit -am "initial commit"`
7. then `git push heroku master`
8. Viola!
How to take care of yourself as a developer?
Tags: productivity
Published: 2021-07-17 16:45:01

Like it or not, as much as we love our job, if we don't take care of ourselves, we're not going to last long.

In this very short article, I decided to write about self-care instead of some technical issue I'm trying to fix.

There are different ways to approach this but I'm going for the easy ones. (Because we are all lazy here... no shame in that ;) )

The first thing we need to understand is that in order to have a healthy mind we first need to have a healthy body. 

###So how to have a healthy body?

These are the **ESSENTIAL** ones.

* Having a good diet
* Getting enough sleep
* Spending more off-the-screen time
* Getting some kind of exercise

And these are the **OPTIONAL** ones.

* Meditating
* Spending some time in the nature
* Reading books (Duh! Not the pdf version!)
* Perusing some kind of hobby

By doing these you will **slowly** feel the change taking place in your life. 

You will feel more alive, content and you'll realize you're exactly where you're supposed to be. 

Pay attention to the bold word I wrote above; you are not going to feel anything for a while after doing this. Change takes time and you have to realize that breaking the old habits and making new ones is the key to move forward. 

There is no better time to be a developer than right now. So if you wanna be in this game for the long run, I suggest you start taking care of that beautiful body of yours.

Take care🖤

[Link to cover image](https://unsplash.com/photos/_f2m3mEkaaU)
What are Cookies?
Tags: webdev, php, computerscience, learning
Published: 2021-07-17 16:44:23

'**What are Cookies?**'- this question has become ubiquitous ever since GDPR came into effect.

Cookies have been of great importance in the tech industry since the advent of the digital world.

Mention “cookies” and most people expect a chocolate chip treat to appear. When talking about computers, however, cookies aren’t on the dropdown menu. 

In fact, they’re not even physical objects. Yet they do a great deal of the work that makes it more convenient for you to browse the Internet — and they can be troublesome if you don’t know how to clear or delete cookies.

## What are Cookies?
Cookies are small text files sent from the website to the person’s terminal (usually the browser), where they are stored before being transmitted again on the same website visited by the same user. 

A cookie cannot retrieve any other data from the user’s hard drive nor pass on computer viruses or capture email addresses. Each single cookie is unique to the user's web browser. 

Some of the cookies’ functions can be transferred to other technologies. In this document the term 'cookie' refers to both cookies, as such, as well as all similar technologies.

*[What are Cookies? Different Types of Web Cookies](https://www.amanchourasia.in/2021/07/what-are-cookies.html)*

*Read More:* [https://www.amanchourasia.in/2021/07/what-are-cookies.html](https://www.amanchourasia.in/2021/07/what-are-cookies.html)
Upload image in base64 in react js
Published: 2021-07-17 16:36:19

```JS
import React from "react";

class App extends React.Component {
  state = {
    file: null,
    base64URL: ""
  };

  getBase64 = file => {
    return new Promise(resolve => {
      let fileInfo;
      let baseURL = "";
      // Make new FileReader
      let reader = new FileReader();
      // Convert the file to base64 text
      reader.readAsDataURL(file);
      // on reader load somthing...
      reader.onload = () => {
        // Make a fileInfo Object
        console.log("Called", reader);
        baseURL = reader.result;
        console.log(baseURL);
        resolve(baseURL);
      };
      console.log(fileInfo);
    });
  };

  handleFileInputChange = e => {
    console.log(e.target.files[0]);
    let { file } = this.state;
    file = e.target.files[0];
    this.getBase64(file)
      .then(result => {
        file["base64"] = result;
        console.log("File Is", file);
        this.setState({
          base64URL: result,
          file
        });
      })
      .catch(err => {
        console.log(err);
      });
_
    this.setState({
      file: e.target.files[0]
    });
  };

  render() {
    return (
      <div>
        <input type="file" name="file" onChange={this.handleFileInputChange} />
      </div>
    );
  }
}

export default App;_
```
5 ultimate resources for git #1
Tags: git, webdev, devops
Published: 2021-07-17 16:27:42

Welcome my friend !

I will share with you some important resource that will improve your skill in git or teach you about git.

If you don't know git, it's very important for every developer to control it. At least know the basic !

### Basic git 📚

Check the basic command of git with this 👇

https://rogerdudler.github.io/git-guide/

If you want to learn git very fast with animation, I recommend you this 👇

https://learngitbranching.js.org/

To be honest this is thanks to this that I learn git, if you need only one resource, take this ! 

### Commands cheatlist 🕹

When you have the basic, you will need to learn a lot of command, be happy with this clean list of common & important git commands !

https://github.com/arslanbilal/git-cheat-sheet

Available in a lot of language !

For people that use `oh-my-zsh`, you can easily use `git command alias` that can be very useful 

https://github.com/ohmyzsh/ohmyzsh/wiki/Cheatsheet

For exemple you can use `gcmsg` instead of `git commit -m`.

### Make good and correct git commit message 🎨

It's important to make correct git commit message, if you work in other dev, you should have some **convention name**, if it's not the case, i *recommend* you to read the article bellow and use convention name ASAP !

https://dev.to/i5han3/git-commit-message-convention-that-you-can-follow-1709

---

I hope you like this reading!

🎁 You can get my new book `Underrated skills in javascript, make the difference` for FREE if you follow me on [Twitter](https://twitter.com/code__oz) and MP me 😁

Or get it [HERE](https://codeoz.gumroad.com/l/RXLYp)

🎁 [MY NEWSLETTER](https://www.getrevue.co/profile/code__oz)

☕️ You can [SUPPORT MY WORKS](https://www.buymeacoffee.com/CodeoZ) 🙏

🏃‍♂️ You can follow me on 👇

🕊 Twitter : [https://twitter.com/code__oz](https://twitter.com/code__oz)

👨‍💻 Github: https://github.com/Code-Oz

And you can mark 🔖 this article!
Using Open Source Tools at Your Company w/ Doron Gill of Logz.io
Tags: opensource, security, collaboration, tooling
Published: 2021-07-17 16:14:31

The open source community is the most pure expression of collaboration and engineering that exists today.

On this week’s episode of [Dev Interrupted](https://devinterrupted.com/podcast/using-open-source-tools-at-your-company/) Doron Gill, the VP of Engineering at Logz.io, answers our questions about open source security, implementation, and which companies an open source tool stack is perfect for.

#**Listen to the full episode**
{% spotify spotify:episode:6cTXOS8KPMjGWt3ZTvklLW %}

#**Episode Highlights include:**
* The pros and cons of using open source
* Is open source a security risk?
* The growing popularity and use of open source
* Open source is future-proof

{% youtube dgpCTgHNLeQ %}

#**Join the Dev Interrupted Discord Server**
With over 1200 members, the Dev Interrupted Discord Community is the best place for Engineering Leaders to engage in daily conversation. No sales people allowed. [Join the community >>](https://discord.gg/devinterrupted)
![Join the Dev Interrupted Discord Community!](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/19j3dzgz4r4kzav3w6z8.png)
Mimizu - The Copy Worm | Animated Short Film | Ravik Studio
Tags: design, showdev
Published: 2021-07-17 16:07:35

Mimizu is a funny animated moral story by Rahul Singha. In the Japanese language, Mimizu means earthworm.

Watch More: { https://bit.ly/ravikstudio-yt }
Rate: { https://www.imdb.com/title/tt15060298 }

## About the story:
Mimizu is an earthworm who was trying to copy a random snail. The snail was feeling very weird about Mimizu’s behaviour & he was trying to ignore what Mimizu was doing. Suddenly, a pigeon came into the scene and changed the whole game.

## Moral of the story:
Don’t copy others instead, make your own personality.

“In a world of copycats, being yourself is liberating & powerful.”
-T. Lewis

## Credits:
Story, Screenplay & Direction - Rahul Singha
Animation - Rahul Singha
Sound Design & SFX - Rahul Singha
Poster Design - Rahul Singha
Thumbnail Design - Rahul Singha & Souvik Paul
Title & Description - Souvik Paul
Exclusive Producers -  Rahul Singha & Souvik Paul

Backgrounds, Editing, Art Direction, and Character Design, Concept Art and Production Design, Coloring and Shading, Voice - Rahul Singha

**Social Media Partners** - Don Ka Adda, Gadgets Gadder, Bani Katha, ZeroBizz Quick & Clicking Hub.

**Animation Studio** - Ravik Studio (Souvik Paul, Rahul Singha)
© Ravik Studio 2021
Need Co-founders or at least someone to listen to some website/App concepts!
Published: 2021-07-17 16:04:53

I am  sure that you've heard it before, "Hey, I got an app idea that I need co-founders for!". Well... I have a few concepts that I have spent time and money on, and I am looking to find investors/ co-founders. But.... I am also just looking to network with people, get more ideas, and make some acquaintances. I know that many people have App and Website ideas, but at heart, I am an Entrepreneur, I don't know any better! If anyone out there is interested in rapping about this topic, feel free to throw a line!
👨🏾‍🚀 This Week I Learned #2
Tags: javascript, devjournal, webdev, braziliandevs
Published: 2021-07-17 16:01:43

**HIGHLIGHT ⚡** 

1. Webdev up skills
2. Watched videos: 3
3. Listened podcast: 1

**INSIGHT 📕**
1. Template literal
2. Array method `splice()`
3. localStorage → `setItem` and `getItem`
4. Event listenner `change`
5. Event listenner `submit`
6. Method `setInterval()`

**VIDEO 🎬**

- Fabio Akita - [Courses and Students](https://www.youtube.com/watch?v=L0hTOY5n9G8)
- Lucas Montano - [GitHub Copilot](https://www.youtube.com/watch?v=mffggAVybC8)
- Programação Dinâmica - [Career Highlight](https://www.youtube.com/watch?v=TQ9A2hAOaJo) 

**PODCAST 🎧**

- Rodrigo Branas - [Labor Market](https://www.youtube.com/watch?v=2Pn-oUrsaFY)
Alexa Presentation Language Audio Tutorial
Tags: aws
Published: 2021-07-17 15:41:16

Having spent about 10 days trying to get the new beta audio version of the Alexa Presentation Language (APLA) working I finally solved it.  So that no one else has to go through this pain I created a tutorial and source code showing how to use it.  

If you aren't familiar with APLA it lets you mix audio for your Alexa response.  In my case I added background crowd noise to my Premier League's description of various football (soccer for Americans) statistics.

Go to BrianTarbox.org/alexaskills.html for the video and source code.
Beginner's Guide to Python Lists
Tags: lists, python, programming, blog
Published: 2021-07-17 15:39:14

Hello Readers, I have written a blog, to help the beginners, familiarize themselves with python lists. The blog is quite easy-to-read, and contains all the list functions that one needs to know to kick-off with python lists. Do check it out.

https://www.analyticsvidhya.com/blog/2021/07/all-the-basics-to-begin-with-python-lists/
Learn Java: Java Programming Concepts that Must be understood
Published: 2021-07-16 09:50:23



Java Tutorials for Beginners
Have you ever thought:

"How are computer programs created?"

“How do computers execute programs?”

If, yes.. then this is the article you must read.

On this occasion, we will discuss from the basics.

So that you will understand the concept of programming.

Be it in Java, or any other programming language.

Ready?

Let's start…

What is Programming?
Programming is the process of creating computer programs .

So, any activity that you do to create a program is called programming or programming .

Typically these activities include:

Analysis (problem analysis);
Making Algorithms or Solutions;
Coding (Implementation of algorithms into programming languages).
Many people make mistakes when they first start learning programming.

They learn coding first, without knowing how to analyze and create algorithms.

Whereas coding is the final stage of programming.

As John Johnson said:

solve-first-then-write-code
"First, solve the problem, then code it"

Many people can code , but don't know what to do, and even have trouble making their own programs. This could be because he just learned to code .

Therefore, it is good to learn Algoirtma and computational thinking first before starting to learn coding .

Algorithm is a branch of mathematics that teaches us to think logically to solve problems.

At least, after learning algorithms... you can create your own solutions to the problems you want to solve.

After that, the next step is coding with a programming language.

How Do Computers Execute Programs?
Computer programs are made in a programming language. Programming languages ​​generally use English. This language is easy for humans to understand. But the computer can not understand.

Computers can only understand signals 10101010, because computers are electronic circuits that can only live on electricity. This signal is also called a digital <a href="https://daftarmerekdagang.com/">pendaftaran merek</a> signal.

Digital Signal
The numbers 1indicate the signal is on, while the signal is 0dead.

Or we can say.

1 = on
0 = off
This signal will be processed by the processor and will generate electricity in the motherboard circuit .

Intel 4004 CPU simulation (source: pixeljoint.com)
Simulation CPU Intel 4004 (source: pixeljoint . Com )
so the computer will be able to do things like display text to the screen, play music, print documents, and so on.

But…

Humans cannot provide a direct signal in the form 10101010to the processor. Therefore, assembly language was created .

Assembly language is an assembly language made from mnemonic code or symbol code.

Example:

For the command to print letters Ato the screen, the symbol code is that mov 041,ahlater this code will be converted by the assembler into 10010011.
Working Effectively With Legacy Code 
Tags: showdev, discuss, webdev, tutorial
Published: 2021-07-17 15:23:58

## What Is Legacy Code?
Legacy code is source code inherited from someone else or inherited from an older version of the software. It can also be any code that you don’t understand and that’s difficult to change.

## Working with Legacy Code
When starting work on an existing project, the most common error novices make is attempting to understand the entire system before attempting to make modifications. Big error; at that rate, you'll take a long time, if ever, to have a major influence on the project. You must overcome your initial codeblindness, and the only way to do so is to get your hands dirty.Hands down, the best way to learn a codebase is by changing it.

Here's a bit of advice that can help you get started making substantial modifications to almost any current codebase: Everything has an entrypoint. That might be a GET endpoint on a server. That might be a click handler in an SPA. That may be an exposed method for a module. If you start from the beginning, you may literally "follow the rabbit down the rabbit hole.".Once you find the entrypoint and get to the code in question, it’s just a matter of being able to read that particular piece of code to ascertain what needs to change.

This is why microservices and modular programming are so tempting. The logic stays near to the entrypoints on the surface, which are usually well-defined (after all, what good is a module you can't call?). In a way, you're "closer" to the code since you're not digging through layers and layers of cruft to get what you need.

Having said that, if you have any say in the tasks you take on, I would start with the ones that have clearly demarcated, easily found rabbit holes that don't go too deep (e.g., “paginate GET request”, “button click failing”). A good manager/lead with mentoring experience should be able to spot these as learning opportunities for junior developers.

You don’t have to understand everything, just the piece of code you’re working on. Take on small tasks that have clearly defined entrypoints. This way, you’ll gradually and naturally build an understanding of the codebase, and you’ll be working complex issues in no time.

If you've reached this point, thank you very much. I hope that this tutorial has been helpful for you and I'll see you all in the next.

If you like my work, please consider
[![Buy me a coffee](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jm11knj7d8zwcvo150q2.png)](https://www.buymeacoffee.com/cglikpo)
so that I can bring more projects, more articles for you


If you  want to learn more about Web Development don't forget to [follow me on Youtube!](https://www.youtube.com/c/ChristopherGlikpo/featured)
Характеристики качества требований
Published: 2021-07-17 15:10:15

Что делает требования хорошими? BABOK 3.0 предоставляет девять характеристик качества требований к ПО, можно использовать их, как чеклист при написании или тестировании требований:

Атомарность
Полнота
Краткость
Консистентность
Выполнимость
Приоритизированность
Тестируемость
Недвусмысленность
Понятность
Давайте рассмотрим некоторые критерии качества подробнее, а также определим, как приблизиться к идеалу.

**Атомарность**
Атомарное требование - это такое требование, которое нельзя разбить на более детальные требования (которые при этом не потеряют завершенности - то есть, требование, что юзер может залогиниться, введя имейл и пароль, нельзя разбить на 3 юзер стори (пользовательские истории): про поле для имейла, поле для пароля и кнопку входа).

Почему важно, чтобы требования к системе были атомарными? Чтобы:

* правильно приоритизировать (сложно приоритизировать юзер стори, которая включает в себя создание, редактирование и удаление поста. Но если разбить ее на 3, становится уже намного легче - из этого набора в МВП явно может входить не всё);
* трассировать (например, ставя зависимость от очень большого требования, в будущем возникает путаница - от какой именно части зависимость?);
* легче разрабатывать (меньше возможностей напутать/пропустить что-то, когда требование небольшое и простое);
требование быстрее попадет в тестирование - да, это очень важно, QA меня поймут.
[продолжить чтение на сайте](https://www.thebagirl.com/kharaktieristiki-kachiestva-triebovanii/)
tmux splitting panes
Tags: techtalks, tmux, linux
Published: 2021-07-17 14:20:30

---
title: tmux splitting panes
published: true
description: 
tags: techtalks, tmux, linux
series: tmux
canonical_url: https://waylonwalker.com/tmux-splitting-panes/
---

splitting panes is a core feature of tmux.  It allows us to split the terminal
vertically or horizontally into new panes.

``` bash
bind -n M-s split-window -c '#{pane_current_path}'
bind -n M-v split-window -h -c '#{pane_current_path}'
bind -n M-X kill-pane
```

> 🗒️ note that  '#{pane_current_path}'will keep the split in the same directory
> as it's parent, without this it will default to your home directory.

---

Be sure to check out the full youtube playlist and subscribe if you like it.

https://www.youtube.com/playlist?list=PLTRNG6WIHETB4reAxbWza3CZeP9KL6Bkr


{% post https://dev.to/waylonwalker/how-i-navigate-tmux-in-2021-2ina %}

> Also check out this long form post for more about how I use tmux.
I Coded My Own Stock Analysis Trading Tool
Tags: fromscratch
Published: 2021-07-17 14:17:25

In my journey to the finance world as a coder, I thought about helping myself trade stock with the use of technical analysis tool. 

Of course, there is TradingView, but i cant perform my own calculations, cant take the data to mix and merge with other data and few more things about data processing to help me with my  analysis.

What I do before this is go to the broker after today session come to an end, and export all the data into excel, and then manually go trough all of it. which is a real pain.

Then one day, my friend give me access to his stock historical data in API  (the best thing ever happen to me as a coder). And I begin my journey developing my own tool to analyze the stock using the Technical Analysis based on the historical data from the API.

I start with the base of everything, store the data into the DB. Choosing what the database engine will be is such a brief, since im a SQL guy, I love structuring the data, so MariaDB is the choosen one. 


##Choosing The Stack
As usual, thinking about the tech stack is the most fundamental before I even started to develop. Taking consideration about the cron job, API usage, users visit and actions to be made in the tool later on, it needs to be light, minimal and as non heavy as possible in the backend. 

##Calculations and screener

Since there are already ready made libraries to help me with technical analysis calculations, yep, I use that. cz I dont want to reinvent the wheel, whats imporant in the tool is to make the analysis with the available formula with mix and match of them and produce the results. and I finally can do the listing of the stocks that meet the criteria, calculations and pereference. yeah, it came alive~~ haha. 

## Test The Trade

After the tool has done its thing, I test the trade. Based on the stock listed in the tool, I confidently trade the stock on my broker platform. Yeah it definitely help me lessen the risk of trading the stock. Many of the trade has been having better winning rate. 

## The Tool Main Feature
![HF Trade Tool Feature](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/09jclebccj3w50zpn0y3.jpg)

As a simple trader, I believe in uncluttered interface. The simpler the interface, the better. why? because we are aiming for great result, instead of great pain. haha.

## Summary

Making my own tool to analyze stock give me the experience and excitement thats nothing like other normal coding projects, wordpress or laravel, it definitely brings joy to me as it help me with trading. 

Here is my tool if you want to check it out

https://trade.hamizulfaiz.my