teleren/devto huggingface dataset:
How practice and improve trade skills with demo trading on trading view with bar reply mode feature? (open source project)
Tags: python, github, tutorial, opensource
Published: 2022-01-14 12:00:50

[paper trading view repo on github](https://github.com/xibalbas/paper_trading_view.git)
a few weeks ago when i was practicing price action method in MT4 i found out Trading View has a feature call Bar reply , you can cut the candlestick chart to the back , so i decided to buy a pro account .

but after a while i find out this feature does not prepare paper test . if you want to practice with Bar reply mode you should write your trade on paper and this was not a good idea.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hvf8q6uak3s8crx2jh2i.gif)

[Quick installation tutorial video](https://www.youtube.com/watch?v=zW962uAD4TU&t=28s)

so i decided to search i found another package on Git hub they call tradingview-trainer but this did not help me because it was not complete .

it’s simple work with Selenium , tkinter


## paper-trading-view Features

    work with TradingView: For bar reply and getting price we use trading view.

    Limit/Market orders: you can place a Limit or Market order in 2 side "long", "Short" .

    SL/TP set: you can set stop loss and take profit for your market or limit order .

    see Open orders: you can see list of open orders.

    see Open positions: you can see list of open positions.

    see trade history: you can see list of trade history.

    Next/Play/Pause in bar reply: you can use this items in PTV and when price is changing open positions and open orders will be check.

    initial setting: you can set your initial money / commission.

    profit/loss of account: your total profit / loss calculate when your position close.

    save report: you can save your trade history in a csv file.

## paper-trading-view Github Source
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e3i93trlgc2kkpbgxkgr.png)
https://github.com/xibalbas/paper_trading_view.git

The installation instructions can be found on project page! If you have any questions or comments, feel free to leave them down below! Good luck on your practice trading, hope this tool helps!

if you like it give a start :)))

designed with love
Day 6 of 100 - Java: Classes and Fields
Published: 2022-01-14 11:58:31

fields of an object are data variables. Also, referred to as attributes or
member variables.

usually made up of primitive types like integers or characters, but can also
be objects themselves.

1. Access fields

    ```java
String title;
String author;
int numberOfPages;
//
String myBookTitle = book.title;
System.out.println(book.title);
```

2. Setting fields

    ```java
book.numberOfPages = 234;
```

3. Methods

Run actions in objects looks like calling a function.

Calling a method

```java
void setBookmark(int pageNumber);
```

Points on Classes
1. Classes is a blueprint of what the object should look like
2. Object is the actual entity created from that Class
3. Classes have all the fields and implements all the methods
4. Classes and Objects are two different words

Table - `Class` vs `Object`

| | Class | Object
| -- | -- | -- |
| What:	| A Data Type	| A Variable
| Where: | Has its own file	| Scattered around the project |
| Why:	| Defines the structure	| Used to implement to logic |
| Naming convention:	|	CamelCase (starts with an upper case)	| camelCase (starts with a lower case) |
| Examples:	|	Country | 	australia|

Table - Java classes around primitive types

| Class | Primitive type |
| -- | -- |
| Integer| int |
| Long | long |
| Double | double |
| Character | char |
| String | char[] |

code example - Pokemon `Class`

```java
class Pokemon {
    String name;
    String type;
    int health;

    boolean dodge() {
        return Math.random() > 0.5;
    }

    void attack(Pokemon enemy) {
        if(!enemy.dodge()) {
            enemy.health--;
        }
    }
}
```

What each term in main() method definition means?

```java
public static void main(String[] args) {

}
```

- `public` - Run this method from anywhere in Java program
- `static` - Does not need an object to run
- `void` - Main method doesn't return any output. It invokes the logic inside the `main` method
- `main` - name of the method
- `String [] args` - Input parameter (array of strings)

Java program won't run if the `main` method is not available or if defined more than once.

Self reference:

1. To refer an object within one of its methods or constructors, use keyword `this`.
2. `this` is a reference to the current object - the object whose method or constructor is being called.
    ```java
class Size {
    int rows = 0;
    int columns = 0;
    //
    // constructor
    Size(int rows, int columns) {
      this.rows = rows;
      this.columns = columns;
    }
}
```
3. With `this.rows` we are referring to `field` `rows` not the input parameter.
4. https://docs.oracle.com/javase/tutorial/java/javaOO/thiskey.html

An example implemented here: https://github.com/j143/untitled-java

Private vs public access

1. Use getters and setters if the public access required for a field
2. Declare all fields as private where possible
3. `package public` is the default. It will label `public` only in the same package/folder.
4. Set helper methods to `private`
5. Set action methods to `public`
Zebrunner and LambdaTest
smart test execution and
transparent test analytics
Published: 2022-01-14 11:51:52

{% youtube t86qAmICBEg %}

**Brief**
Keeping the effective test automation process usually requires much effort and time from QA teams. To simplify test execution and analysis, Zebrunner and [LambdaTest](https://www.lambdatest.com/?utm_source=dev to&utm_medium=organic&utm_campaign=jan_14&utm_term=nt&utm_content=webpage) are happy to present an innovative combo solution that helps QA engineers perform testing in an easier way.

Now users can run tests via LambdaTest Selenium Grid, report test results directly into Zebrunner, and quickly analyze them with a wide range of artifacts (video, screenshots, test logs), AI/ML failure classification, and quality trend reports. With Zebrunner, it’s also possible to keep traceability between systems using integrations with the most popular Project Management/Quality Assurance tools on the market.

Join this 1-hour webinar with Zebrunner and LambdaTest to dive deeper into effective test automation with the combo solution.

**Here are the key takeaways:**
Overview: what are the benefits of LambdaTest + Zebrunner integration
Getting started: how to configure LambdaTest and Zebrunner accounts
Smart execution: how to launch tests on LambdaTest side from Zebrunner
Advanced test analysis: how to detect failures with rich artifacts and AI/ML
Customized test reporting: how to track product quality with live dashboards
String to Integer (atoi) – LeetCode Solutions
Tags: leetcode, leetcodesolutions, atoi, stringtointeger
Published: 2022-01-14 11:21:31

LeetCode has a Medium coding Problem in Its’ Algorithm Section in Python “String to Integer (atoi)”. Today We are going to solve this problem. LeetCode Link of the Problem is HERE.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/co182ujvqjd14qwp0abj.jpg)

String to Integer (atoi)
Question
Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++’s atoi function).

The algorithm for myAtoi(string s) is as follows:

Read in and ignore any leading whitespace.
Check if the next character (if not already at the end of the string) is '-' or '+'. Read this character in if it is either. This determines if the final result is negative or positive respectively. Assume the result is positive if neither is present.
Continue reading the characters until you reach the next non-digit character or the end of the input. Ignore rest of the string.
Convert these digits into an integer (i.e. "123" -> 123, "0032" -> 32). If no digits were read, then the integer is 0. Change the sign as necessary (from step 2).
If the integer is out of the 32-bit signed integer range [-231, 231 - 1], then clamp the integer so that it remains in the range. Specifically, integers less than -231 should be clamped to -231, and integers greater than 231 - 1 should be clamped to 231 - 1.
Return the integer as the final result.
Note:

Only the space character ' ' is considered a whitespace character.
Do not ignore any characters other than the leading whitespace or the rest of the string after the digits.
Examples

Input: s = "42"
Output: 42
Explanation: The underlined characters are what is read in, the caret is the current reader position.
Step 1: "42" (no characters read because there is no leading whitespace)
         ^
Step 2: "42" (no characters read because there is neither a '-' nor '+')
         ^
Step 3: "42" ("42" is read in)
           ^
The parsed integer is 42.
Since 42 is in the range [-231, 231 - 1], the final result is 42.
Input: s = "   -42"
Output: -42
Explanation:
Step 1: "   -42" (leading whitespace is read and ignored)
            ^
Step 2: "   -42" ('-' is read, so the result should be negative)
             ^
Step 3: "   -42" ("42" is read in)
               ^
The parsed integer is -42.
Since -42 is in the range [-231, 231 - 1], the final result is -42.

 
Input: s = "4193 with words"
Output: 4193
Explanation:
Step 1: "4193 with words" (no characters read because there is no leading whitespace)
         ^
Step 2: "4193 with words" (no characters read because there is neither a '-' nor '+')
         ^
Step 3: "4193 with words" ("4193" is read in; reading stops because the next character is a non-digit)
             ^
The parsed integer is 4193.
Since 4193 is in the range [-231, 231 - 1], the final result is 4193.
Conditions

0 <= s.length <= 200
s consists of English letters (lower-case and upper-case), digits (0-9), ' ', '+', '-', and '.'.

Solution to String to Integer (atoi)
https://hecodesit.com/string-to-integer-atoi-leetcode-solutions/
Skills to acquire for landing on a Data Science job ... 
Tags: datascience, python, developers, analytics
Published: 2022-01-14 11:27:11

Data Science professionals are on high demand in the industry currently and the boom will be expected to continue on the coming years..

Below are some of the skills that you need to learn to get in to a data science job.

---

## Must have skills:
* **Programming Language** : Python/R
* **Data Science packages** : Pandas ,numpy, matplotlib , scikit-learn etc..
* **Databases / SQL knowledge**

* **IDEs :** Jupyter notebooks , EMR/Zippelin notebooks , Amazon Sagemaker studio

## Good to have skills:
- Visualization tool knowledge(e.g.: Tableau , Power BI)
- Cloud ( AWS/AZURE/GCP )


---
Thanks!
Clerin

### Contact : 
[Website](https://clerintom.github.io) | [Github](https://github.com/clerintom) | [LinkedIn](https://www.linkedin.com/in/clerintom/)
How to override your dependency's dependencies
Tags: node
Published: 2022-01-14 11:09:19

---
title: How to override your dependency's dependencies
published: true
description: Override and enforce dependency versions using npm "overrides".
tags: node
canonical_url: https://www.stefanjudis.com/today-i-learned/how-to-override-your-dependencys-dependencies/
---

[npm released version `8.3` of their CLI client in December](https://github.com/npm/cli/releases) and it looks like an unspectacular release but includes a helpful new feature - "overrides".

The JavaScript ecosystem has been on fire since Node.js and npm appeared. There's always a package for everything, and people YOLO-publish whatever they please. It's a vibrant and enabling ecosystem feeling like the wild wild west. And of course, there are pros and cons to countless dependencies.

I love that I can "just install another package" but share the concerns about the increasing project complexity. Suppose your project relies on one dependency that depends on another dependency that again depends on another one just to add two numbers. In that case, countless things could go wrong. "npm overrides" give you more power over what's installed in your dependency tree.

Let's say one of your dependencies (1st level) relies on another dependency that includes outdated other dependencies (2nd level). There hasn't been an easy way to update dependencies down the tree other than forking and fixing your first-level dependency.

```
your-project
  |_ some-module @1.0.0
      |_ another-module-which-should-be-updated @1.0.0
```

You can now specify an `overrides` property in your `package.json` to override and enforce dependency versions in the tree.

```json
{
  "overrides": {
    "bar@2.0.0": {
      "foo": "1.0.0"
    }
  }
}
```

The new feature comes in handy to

- patch a dependency with a known security issue
- replace an existing dependency with a fork
- make sure that the same package version is used everywhere.

It's such a welcome addition; thanks, npm! 🎉

[Read more about it in the npm docs](https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides).
DASA DevOps Awards 2022: Nominations Open
Tags: agilewebandappdevelo
Published: 2022-01-25 13:20:29

---
title: DASA DevOps Awards 2022: Nominations Open
published: true
date: 2022-01-14 10:53:56 UTC
tags: Agilewebandappdevelo
canonical_url: https://apiumhub.com/tech-blog-barcelona/dasa-devops-awards-2022-nominations-open/
---

The DevOps Agile Skills Association (DASA) recognizes and honors the best DevOps efforts through the inaugural [DASA DevOps Awards](https://www.devopsagileskills.org/awards/) on Wednesday, 20 April 2022. With 11 [Awards Categories](https://www.devopsagileskills.org/award-categories/) focused on transformation, leadership, business value, and community, there is space for all the individuals, teams, organizations, and service providers to celebrate their DevOps successes.  
  
The participation will bring you substantial benefits, such as global industry recognition, valuable feedback, expanded network, motivation, and opportunity to learn.

[Enter Now](https://www.devopsagileskills.org/awards/)

Applications should be submitted before the 1st of February. 

## **Categories DASA DevOps Awards **

### **DevOps Transformation Awards**  

1. DevOps Transformation Team Award
2. DevOps Talent Transformation Award
3. DevOps Cultural Transformation Award

### **Exemplary Leadership Awards**  

1. Inspirational DevOps Leadership Team Award
2. Inspiring DevOps Leader Award
3. Outstanding DevOps Coach Award 

### **Business Impact Awards**  

1. DevOps Business Value Award
2. DevOps Learning Solution Excellence Award
3. Partnership for DevOps Project Award

### **DevOps Community Member Awards**  

1. DevOps Service Provider Award
2. DevOps Community Member Award

## **Process**

The steps to enter the competition are easy:  
  
1. **Select a category suitable for your achievements or nominate an organization**  
Select a category that your company has outstanding results in, or propose an organization that might be a good candidate for the category.

2. **Complete and submit your application**  
To enter the competition, submit the online application. A predetermined set of questions should be answered for each category.

3. **Attend the DASA Awards Summit**  
On 20th of April, we will announce the winners of the category through a formal online event. Registration will open shortly.

Entries will be reviewed by an international panel of 30+ judges, representatives of the Agile & DevOps global community. 

## **Important Dates**

**1 February  2022:** Deadline for submitting your application

**1 March 2022:** Finalist announcement

**20 April 2022:** DASA DevOps Awards Summit

We are looking forward to honoring and celebrating DevOps successes together!
akra bazzi formula for calculating time complexity
Published: 2022-01-14 10:46:39

The Akra-Bazzi method

The master method does not apply to a recurrence such as
T(n)=T(n/3)+T(2n/3)+O(n)

In such case, we use another more powerful and general method known as Akra-Bazzi method. The Akra-Bazzi method solves the recurrence relation of the form

T(n)=∑i=1kaiT(bin)+f(n)

where,

ai>0 is a constant for i≤i≤k
bi∈(0,1) is a constant for 1≤i≤k
k≥1 is a constant and,
f(n) is non-negative function
The solution of recurrence given in (2) is,
T(n)=Θ(np(1+∫n1f(u)up+1du))

Provided,
∑i=1kaibpi=1 where p is a unique real number.

Example 1: Consider a recurrence,
T(n)=2T(n/4)+3T(n/6)+Θ(nlogn)
For this recurrence, a1=2,b1=1/4,a2=3,b2=1/6,f(n)=nlogn. The value of p can be calculated as,
a1bp1+a2bp2=2×(1/4)p+3×(1/6)p=1

p=1 satisfies the above equation.

 The solution is

T(n)=Θ(np(1+∫n1f(u)up+1du))=Θ(n(1+∫n1uloguu2du))=Θ(n(1+log2n2))=Θ(nlog2n)
Level up your terminal
Published: 2022-09-09 06:05:52

---
title: Level up your terminal
published: true
date: 2022-01-14 09:05:31 UTC
tags: 
canonical_url: https://rayanabid.hashnode.dev/figio
---

## Introduction

Well, how many of you think while working on your terminal that why do I have to write everything, Can't there just be some kind of auto-complete. Oh, no one here, maybe my Mom is right that I'm spoiled, Anyways let me introduce you to fig.io IntelliSense for your terminal.

### What is fig

Fig is an open-source terminal that autocompletes most of your commands on your terminal. Whether it's installing **npm packages** , committing to **Github** or just changing directories with your terminal.

Fig is also open source which means if fig already does not have the commands available for your needs you can go ahead and add them yourselves.

### Installing fig

Installing fig is super simple just visit the link [fig.io/invite](https://fig.io/invite?code=7fvL3MigEU) or [fig.io](https://fig.io/) which will then take you to their homepage and you can simply download it from there.

![Screenshot 2022-01-14 at 1.13.20 PM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1642148006181/Ksp4wgR4j.png)

After it's done downloading, open it up and go through the installation process.

You can check out the installation process [here](https://fig.io/docs/getting-started)

But their installer does a good job of getting you through it and familiarizing you with there terminal as well.

### Time to enjoy

Now that you have fig installed you should be able to have the autocompletion. The gif below shows **Fig** in action.

![fig.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1642150878974/4TznNfwsx.gif)

Hope you found it useful. If you did please do let me know in the comments and by reacting to the blog. Plus if you have any topic ideas do let me know as I'm starting out and would love if you suggested something.

Thanks.

Bye for now.
JavaScript Coding Challenges for Chunkies! - JSCodebox launched! 🎉
Tags: javascript, challenge, webdev, showdev
Published: 2022-01-14 10:19:57

## Hello JavaScript Developers!👋

_[JSCodebox](https://jscodebox.com/?ref=dev-new) is a new platform for JavaScript challenges. You can try to learn or to improve your JavaScript skills - **complete free and withtout registration!**_

![JSCodebox Landingpage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xeuvr6msrvge0r1o6qgb.gif)

## What's the special about us?
- Exciting JavaScript challenges with **ressources**, **hints** & **user comments**
- A global **Ranking** (most Experience, most solved challenges and most comments)
- A level system to **compete with other Developers**
- Challenges across **different levels of difficulty** and **categories** (e.g. Arrays, UIs, Recursion)
- Save your progress without account
- Optional free account to **share your skills** with the JSCodebox Community
- ...and a few more (And yes: we have a Dark theme😋)

_________
➡️ __[jscodebox.com](https://jscodebox.com/?ref=dev-new)__
_________


More than 2 years ago I started with this project. I got a lot of good feedback (thanks!💜) and improved the platform, added new features and a lot of new challenges. But my outreach was not big enough to promote this project, so I dropped the platform after a few months.

Now I feel I have to give the platform another chance so that all my work is not in vain.

I would be very happy about feedback and a few new users on [JSCodebox](https://jscodebox.com/?ref=dev-new).



![Challenge Example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8xi7r1puclwbemf8jo85.gif)

## What is JSCodebox?
JSCodebox is a platform for learning JavaScript. There are challenges for beginners, advanced users as well as for professionals to challenge you. The challenges are also divided into different categories, e.g. strings, arrays and recursion.

You determine the degree of difficulty yourself and do what you want! 😇

## Is it free? 💵
**Yes!** JSCodebox is and remains completely free of charge. **Knowledge should have no price today and be accessible for everyone!**

## Do I need a user account?
**No!** You can complete all challenges without a user account and have the complete range of functions.

Nevertheless there is the possibility to create a user account with your e-mail address. The code of your challenges and other settings will be saved, so that you can easily start programming anytime and anywhere.

## How can I support this project?
You can support us by recommending this site to other JavaScript Developers and thereby increase our reach.
We also need a lot of challenge ideas, bug reports and other suggestions for improvement.

_You can read everything about JSCodebox on our [About page](https://jscodebox.com/about)_
____
Since the platform is not yet so well known, I would be happy about your support by sharing this platform with other JavaScript developers! This platform is also super interesting for participants of #100DaysOfCode.

If you want to stay up to date follow [JSCodebox on twitter](https://twitter.com/jscodebox)

**Thanks!** 💜
How to create Hubspot contact using API in NodeJS
Tags: hubspot, node
Published: 2022-01-14 10:18:00

Get the API key in Settings -> Integrations -> API Key section of the Hubspot dashboard.

Install the Hubspot API client package:

```
npm install @hubspot/api-client --save
```
or using yarn:
```
yarn add @hubspot/api-client
```


Import the Hubspot API client library:

```javascript
const hubspot = require('@hubspot/api-client');
```

Instantiate Hubspot API client:
```javascript
const hubspotClient = new hubspot.Client({
    apiKey: process.env.HUBSPOT_API_KEY,
});
```

Create Hubspot contact:
```javascript
const properties = {
  email: 'user@example.com',
  firstname: 'Jack',
  lastname: 'Jones',
}
const { response, body } =
  await hubspotClient.crm.contacts.basicApi.create({
    properties,
  });
```