teleren/devto huggingface dataset:
5 easy paths to become a recognized Java expert. Really. For free.
Published: 2022-08-25 07:00:51

Trying to catch up with Java is a hard game to play.
The one you **will** lose, as Java has no limits and you only have 24hrs per day.

That is why I want to share these 5 absolutely free ways to become a recognized Java expert in the community, while learning only those parts of Java which you really need. 

You will land a job, a very good one, if you want it and if you follow these ideas. There are other ways too, but these ones are based on my personal experience and advice from Java Champions.

There also will be a gift from me, in the very end.

#1
Who wants to start the day with a non-alcoholic mockito?

It is one of the best and most popular mocking frameworks in Java.
Just read about it, start tweeting and you will soon become the best friend of both your Java developers and your amazing Test Engineers.

https://github.com/mockito/mockito 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6xrf35zwj4rda8i2izyv.png)
 

#2
Checkstyle.
An absolutely amazing tool for helping developers to write clean Java code.
Start contributing to that one and you will be an absolute star at any Java party.

https://github.com/checkstyle/checkstyle 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fcjuhc3rh4dnowqbskes.png)
 

#3
Spring Boot. It is a very famous tool in Java world. Millions of developers are using it, daily.
How many of them contribute? Well, not that many :(

The projects needs you to write a tweet, calling people to contribute to Spring Boot. They have 525 issues open, they really need YOUR help. 
https://github.com/spring-projects/spring-boot 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b928y4figftnz8gswfex.png)
 

#4
Have you ever heard of @Microsoft’s OpenJDK? How do you think - what is it and why is it needed?
Well, I will leave it to YOU as an opportunity to write a tweet or even a full-blown article on what this project is and why it is important. 

https://github.com/microsoft/openjdk 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/63s7hfpj67ouuftn7hbd.png)
 

#5
OpenJDK - the best from the best. JDK main-line development and community, in one place.

Start contributing today, with NO CODE.  
https://github.com/openjdk/jdk 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mpymjuidrnbb353ib4hx.png)
 


#Gift
There are so many amazing Java OSS projects. Why don’t people contribute?
Well, the main reason is - people think OSS contributions are hard and you have to be an expert.

That is where I completely disagree. Literally everybody, of any IT skills, can contribute.

Still not sure? Post your questions below, or oin #TWOSS  and help us to build bridges between people and their dreams. Using OpenSource.

https://www.meetup.com/twosseng/ 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tj7m1rscggd46y37lmwd.png)
New Issue: Checking credentials
Tags: programming, beginners, github, exercise
Published: 2022-08-25 06:50:03


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

Checking credentials 🔐
Input: 1 email, 2 password.

**Email must be in appropriate format.**

**Password must have a mixture of both uppercase and lowercase letters, a mixture of letters and numbers, 1 special character, and 1 number.**

1. Write functions to check if email and password requirements are satisfied.

2. Write unit test for different combinations and make sure that it works as expected.

Link to the issue [Checking credentials](https://github.com/ademclk/callofcode/issues/51)
💡Data Storytelling with Neo4J NeoDash 2.0 : from 0️⃣ to 🦸
Tags: datascience, tutorial, showdev, ux
Published: 2022-08-25 06:48:01

## ❔ About

In the previous post you could follow a live Story Telling about how we implemented a cartopgraphy for our information system :

{% embed https://dev.to/optnc/a-cartography-management-datascience-storytelling-1lep %}

## 🧰 Tooling and `NeoDash 2.0`

Within some slides you may have discovered some appealing visuals.
These visuals for some of them have been made with [Neodash](https://neo4j.com/developer-blog/neodash-2-0-a-brand-new-way-to-visualize-neo4j/).

## 👨‍🎓 What you'll learn

We have started to use NeoDash to deliver with ease ready-to-use portals and dashboards, some with forms.

With this demo, you'll learn how to, on an **initial totally empty Neo4J instance**, then "from scratch", **and within less than 30'**, how to

1. Load `csv` Data
2. Install `NeoDash`
3. Launch `NeoDash`
4. Create a new Dashboard from scratch
5. Create new visualizations
6. Put rich static content with the Markdown component
7. Add Schema visualisation (as a component)
8. Add a Single value Scorecard component
9. Add a Graph component
10. Enjoy a Short Data Storytelling
11. Add a Table component
12. Add a Bar chart component
13. Add a Piechart component
14. Use filters
15. Export/Import Dashboards
16. Put some data-driven style on a table
17. Put some data-driven style on a Piechart

## 🍿 Demo

{% youtube rl3sCVyDqtY %}

## 🙏 Acknowledgements

Special thanks to [Pipiena Luaki](https://www.linkedin.com/in/pipiena-luaki-0848b848/) for its Data Storytelling skills and creating awesome visualizations on top of our data on a daily basis.

## 🔖 Resources

- [NeoDash on Github](https://github.com/neo4j-labs/neodash)
- [NeoDash 2.0 – A Brand New Way to Visualize Neo4j](https://neo4j.com/developer-blog/neodash-2-0-a-brand-new-way-to-visualize-neo4j/)

{% github neo4j-labs/neodash %}
Brides in the graph
Tags: graph, algorithms, java
Published: 2022-08-25 06:45:04

```java
/*
Bridges in the graph.
Those edges in the graph whose removal will result 
in 2 or more components in the graph are called as bridges in the graph.
Consider the below example:
1-------2
|       |
|       |
4-------3
|
|
5-------6
		/\
	   /  \
	  7    9
	  \    /
	   \  /
	     8
		 |
		 |
		 10---11
		  |   /
		  |  /
		   12
		   
edge between 4 and 5 is called bridge, 
edge between 5 and 6 is bridge
edge between 8 and 10 is bride.

We will be using two things in the algorithm (We will be using depth first search algorithm)
Time of Insertion of the node
Lowest time of Insertion of the node 
Time complexity is : O(n +e)
Space complexity is : O(2n)~ O(n)
*/   
class Main{
	public static void main(String args[]){
		int n = 5;
        ArrayList<ArrayList<Integer> > adj = new ArrayList<ArrayList<Integer> >();
		
		for (int i = 0; i < n; i++) 
			adj.add(new ArrayList<Integer>());
			
		adj.get(0).add(1);
		adj.get(1).add(0);

		adj.get(0).add(2);
		adj.get(2).add(0);

		adj.get(1).add(2);
		adj.get(2).add(1);

		adj.get(1).add(3);
		adj.get(3).add(1);

		adj.get(3).add(4);
		adj.get(4).add(3);
			
		Main obj = new Main(); 
		obj.printBridges(adj, n); 
	}
	public void printBrides(ArrayList<ArrayList<Integer>> adjList, int n){
		int visited[] = new int[n];
		int timeOfInsertion[] = new int[n];
		int lowestTimeOfInstion[] = new int[n];
		int timer =0;
		for(int i =0;i<n;i++){
			if(visited[i] ==0){
				dfs(i,-1,visited,timeOfInsertion,lowestTimeOfInstion,adjList,timer);
			}
		}
	}
	public void dfs(int node, int parent, int visted[], int timeOfInsertion[], int lowestTimeOfInstion[], int timer){
		visited[node] = 1;
		timeOfInsertion[node] = lowestTimeOfInstion[node] = timer++;
		for(Integer adjNode : adjList.get(node)){
			if(adjNode == parent) continue; // if adjacent node is parent node just continue
			if(visited[adjNode] == 0){
				dfs(adjNode, node,visited,timeOfInsertion,lowestTimeOfInstion,adjList,timer);
				lowestTimeOfInstion[node] = Integer.min(lowestTimeOfInstion[node],lowestTimeOfInstion[adjNode]);
				// the case that check if the current edge is could be bridge or not
				if(lowestTimeOfInstion[adjNode] > timeOfInsertion[node]){
					System.out.println(adjNode + " " + node);
				}
			}
			else lowestTimeOfInstion[node] = Integer.min(lowestTimeOfInstion[node],timeOfInsertion[adjNode]);
		}
	}
```

[For more detailed explanation refer](https://www.youtube.com/watch?v=2rjZH0-2lhk&list=PLgUwDviBIf0rGEWe64KWas0Nryn7SCRWw&index=24)

**[Articulation point in graph](https://www.youtube.com/watch?v=3t3JHswP7mw&list=PLgUwDviBIf0rGEWe64KWas0Nryn7SCRWw&index=25)**
Shopify CLI app deploy on Heroku
Published: 2022-08-25 06:41:00

#What is the Shopify CLI app

Shopify CLI is a command-line interface tool that helps you build Shopify apps. It quickly generates Shopify apps and scaffolds app extensions. You can also use it to automate many common development tasks.

#What is Heroku

Heroku is a container-based cloud Platform as a Service (PaaS). Developers use Heroku to deploy, manage, and scale modern apps

Let's focus to deploy an app on Heroku

- create your account on heroku first
- install heroku CLI [link](https://devcenter.heroku.com/articles/heroku-cli)
- create an account on Shopify
- create an account on Shopify partners 

you can follow this [link](https://shopify.dev/themes/tools/cli/installation) to install Shopify-cli

once you install Shopify CLI, now you can log in to Shopify.
`shopify login`
` shopify app create node`

It will ask your app's name, simply enter a name related to your app, for now, you can give `tutorial-app`.

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

For this tutorial, I use node-js. 

To run the app locally  `shopify app serve`

Now you can make modifications accordingly with your required 
if not initially 
`git init`
`git add`
`git commit -m "deploy on heroku"`

create an app on Heroku
`heroku create`
it will print an app link on your terminal
`git push heroku master`
`shopify app deploy heroku`



Open your app set-up and replace your Heroku live URL with ngrok

  ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vou3pxxcf3hhjmcttaan.png)
 
Now you can your config variables 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4cahj9l9pb9wl9ahd8la.png)

Host's value will Heroku live link which had printed on terminal

Now you can visit your Shopify partner and click on your store

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

Wow we have successfully deployed our app on heroku   

Happy coding :)
I built a platform for helping Django devs to find a new job
Tags: django
Published: 2022-08-25 06:35:02

Hey everyone :),

I'm a freelance Django dev and I'm making some side projects (Big fan of the indie hacking movement)

My last one is a platform for helping Django developers to find a new job or a new freelance contract ([Djangotop](https://www.djangotop.com)).It's 100% free for developers. I put it online yesterday and I already have 8 devs that are signed up :D

Do not hesitate to give feedback and if you are interested, create your profile ! It helps me to be able to bring back more traffic from companies interested in Django developers (I will do paid ads to bring back companies that hire Django developers) !
Error Archiving iOS with watchOS project in xcode
Tags: watchos, xcode, applewatch
Published: 2022-08-25 06:30:49

The error shows during archiving project

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q6fgeze4awzrnq2cudf8.png)
 
To fix this, I went to `Build Settings` of the following targets:
- watch app
- watchkit extension

and updated the watch and watchkit extensions `Base SDK` and `Supported Platforms` to `watchOS` (you can just search for `Base SKD` in the search input textfield

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

and update the value inside

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zd115cl6f5ownjqjypu.png)
Motivation for tech beginners.
Published: 2022-08-25 06:30:15

Technology is a vast world. I was a beginner too, I understand how difficult it is to see everyone doing something different everyday and you don't know where to start from.
There was one phase where I almost gave up thinking this was not the right career for me. But that was only a phase which everyone goes through. I made connections, friends in this field and they really motivated me. To those beginners, who are frustrated seeing everyone so comfortable, seeing everyone moving forward in their career, don't worry you will get there too. It takes time for good things to happen. 
Don't give up so easily. Make a good friend circle and learn new things from them, share your ideas to them. Don't be loner, that won't take you anywhere in life.
Methods as props reactjs
Tags: javascript, webdev, beginners, react
Published: 2022-08-25 06:30:00

we have seen how a parent component can pass down Props to its children components. Any data in the parent component when passed as Props is available in the children components. Now, what if a child component wanted to communicate with the parent component? BINGO, we still use props. But this time we pass in a reference to a method as Props to the child component

To do this let’s make a new component named **Parent.js** . Now let’s make the basic layout for a class component and add a constructor in this file ,Within the constructor we set a state called Parent name with the value 'I am Parent 🤟',along that define a method inviteParent which simply alerts hello by the Parent name which is set in the state so hello ,since we are using this keyword in the method, we need to bind this method

```
export class Parent extends Component {
   constructor(props) {
     super(props)
   
     this.state = {
        first:'I am Parent'
     }
    this.inviteParent =this.inviteParent.bind(this)
   }

 inviteParent(child){
         alert(`HELLO ${this.state.first} `)
   }
  render() {
    return (
      <div>Parent </div>
    )
  }
}

export default Parent
```

Next we will create another file called **child.js** as a functional component and include the child component in the render method in parent component


```
export class Parent extends Component {
   constructor(props) {
     super(props)
   
     this.state = {
        first:'I am Parent'
     }
    this.inviteParent =this.inviteParent.bind(this)
   }

 inviteParent(){
         alert(`HELLO ${this.state.first} `)
   }
  render() {
    return (
      <div>
   <ChildComponent/>
    </div>
    )
  }
}


```
want to execute the method defined in the Parent component. Basically, a child component calls a Parent components method and as I mentioned already, this is achieved using Props.In Parent component we add an attribute to the child component ,call the attribute inviteHandler


```
  render() {
    return (
      <div>
   <ChildComponent  inviteHandler={this.inviteParent}/>
    </div>
    )
  }
```

Now in the child component, on click of this button we simply call Props inviteHandler

```

function ChildComponent(props) {
  return (
    <div>
      <button onClick={props.inviteHandler}> CHILD</button>
    </div>
  )
} 
export default ChildComponent

```
Going  to the browser. Click on the button. And you can see the alert hello, parent. So we have successfully called a method in the parent component from a button in the child component by passing the method as props to the child component

**Conculsion 🤙**
So this is pretty much how you pass methods as props in react components. In the parent component, define the method on the child component tag pass the method as a prop in the child component, access the method using the props object.
How do I find good math exam help sites?
Tags: php, javascript, beginners, programming
Published: 2022-08-25 06:29:28

When you search on Google, you will find many homework help websites that can help you to [do my PHP homework](https://www.phphomeworkhelp.com/do-my-php-homework). But it is difficult to find out which of these is the right website. You just need to research well and check the experience, reviews, support, and quality of the paper. Going through the same can assist you to reach out to the best company and have your all homework completed without any kind of glitches.

I would like you to recommend the best assignment help website in the UK based on my experience. I get at best help from “[PHP Homework Help](https://www.phphomeworkhelp.com/)” and scored A+ grades in my homework. You should also try their services once. I want to clarify that I am not here to promote this site, I am just sharing my experience with you and I think you should also take help from them at least once.
Browser extensions - Icon action
Tags: html, javascript, webdev, beginners
Published: 2022-08-25 06:23:06

So far, we have had a couple of articles around popup extensions. These typically thrive on the icon click action.

But what about our new tab experience? When clicking on that icon, nothing happens.

Let's fix that.

> Note: If you like to work along with this article, use the following [GitHub branch](https://github.com/rebelchris/new-tab-extension/tree/weather) as your starting point.

We want a new tab to open when the user clicks the toolbar icon.

## Browser extension icon action

This action, funny enough, is not defined in the manifest. Instead, we have to log a manual action in a background script.

As we don't use one for our new tab, let's add the `background.js` file inside your `public` folder.

Then open up your `manifest.json` and register the background script as a service worker (version 3).

While here, we also need to define an empty `action` object. This will ensure we can use actions.

```js
{
	"action": {},
  "background": {
    "service_worker": "background.js"
  }
}
```

Now head back to the background script. We will need to register an action for the `browserAction`.

```js
chrome.action.onClicked.addListener(() => {
  chrome.tabs.create({ url: './new-tab.html', active: true });
});
```

We register an on-click handler on the action attribute (the icon). When the user clicks this icon, we navigate them to a new tab, with our `new-tab.html` as the source.
Since this is a relative link, this will work.

When the user clicks the icon, they navigate to a new tab with our default page.

You can find the completed code samples in the following [GitHub branch](https://github.com/rebelchris/new-tab-extension/tree/action).

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Alert APP FOR LATEST POST
Tags: beginners
Published: 2022-08-25 06:16:00

Created a Website where latest information about [digital marketing](https://www.growthtakeover.com/) is posted and also update about latest investment trends update as well.
Now wanted to make app that alert people about new posts + also update them about crypto and stock price alerts. Is there any fast way to make this sort of app with minimal cost.
383. Leetcode Solution in CPP
Tags: cpp
Published: 2022-08-25 05:53:26

```
class Solution {
 public:
  bool canConstruct(string ransomNote, string magazine) {
    vector<int> count(128);

    for (const char c : magazine)
      ++count[c];

    for (const char c : ransomNote)
      if (--count[c] < 0)
        return false;

    return true;
  }
};

```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/ransom-note/
Can Construct
Tags: javascript, leetcode
Published: 2022-08-25 05:22:48

```
/**
 * @param {string} ransomNote
 * @param {string} magazine
 * @return {boolean}
 */
var canConstruct = function (ransomNote, magazine) {
  let mapRansom = new Map();
  let mapMagazine = new Map();
  let canBeCreated = false;

  for (let i = 0; i < magazine.length; i++) {
    if (mapMagazine.has(magazine[i])) {
      mapMagazine.set(magazine[i], mapMagazine.get(magazine[i]) + 1);
    } else {
      mapMagazine.set(magazine[i], 1);
    }
  }
  for (let i = 0; i < ransomNote.length; i++) {
    if (mapRansom.has(ransomNote[i])) {
      mapRansom.set(ransomNote[i], mapRansom.get(ransomNote[i]) + 1);
    } else {
      mapRansom.set(ransomNote[i], 1);
    }
  }
  for (let j = 0; j < ransomNote.length; j++) {
    if (
      mapMagazine.has(ransomNote[j]) &&
      mapMagazine.get(ransomNote[j]) >= mapRansom.get(ransomNote[j])
    ) {
      canBeCreated = true;
    } else {
      canBeCreated = false;
      break;
    }
  }

  return canBeCreated;
};

console.log(
  canConstruct("bg", "efjbdfbdgfjhhaiigfhbaejahgfbbgbjagbddfgdiaigdadhcfcj")
);

```
How to Maintain Security When Employees Work Remotely‍
Tags: cybersecurity
Published: 2022-08-25 05:15:00

Work conditions have changed in the last few years since the outbreak of the COVID-19 pandemic. Remote work has become a necessity for most organizations. According to the latest research projections, 25% of all professional jobs will be remote in North America by the end of 2022.




The benefits of remote have allowed this work mode to be maintained as lockdowns and other pandemic measures ease. The benefits include increased employee productivity and decreased office costs. However, remote working imposes additional security threats to an organization’s business continuity and data integrity.

This article discusses the challenges of working remotely and the remote work security best practices you can implement.

Work From Home Security Challenges
Hackers can expose threats on remote work computers more than on-premises ones. Many factors allow the hackers to exploit remote user sessions and eventually the internal work network. 

## Remote Work Security Best Practices

- Limit authorization: Allow remote access only to the staff who need it. Restrict the remote access rights of remote workers to the required resources and data.

- Virtual private networks (VPN): Security experts recommend connecting remotely through VPN tunnels to secure the connection between remote employees and the internal network.

- Multi-factor authentication (MFA): Enforce MFA for remote users, whether they are authenticating to VPN or cloud applications.

- Secure cloud applications: Software as a service (SaaS) is a secure alternative to some on-premises applications.

Source: [https://www.remote.tools/remote-work-community/how-to-maintain-security-when-employees-work-remotely](https://www.remote.tools/remote-work-community/how-to-maintain-security-when-employees-work-remotely)
GitHub with SSH
Tags: github, git, ssh, devops
Published: 2022-08-25 05:08:00

Ever wondered how to work with the GitHub account associated with a different email address than the one set-up in your machine? We can do it with SSH Key.

In this article, we will see how to set up a GitHub repository with SSH.

Step 1 - Create an SSH Key

```
ssh-keygen -t ed25519 -C "<your email address>"
```

---

Step 2 - Copy the SSH Key

```
clip < <path of the ssh key>
```

---

Step 3 - Add SSH key to the GitHub account
- Go to the URL https://github.com/settings/ssh/new
- Add the Title of the key.
- Paste the key in the Key field.

---

Step 4 - Check if the SSH Key is validated

```
ssh -T git@github.com
```

---

Step 5 - Link the GitHub repo to the SSH Key

```
git remote set-url origin git@github.com:<your username>/<repository name>.git
```

---

Step 6 (Optional) - Set git username and email

```
git config user.email "<your email address>"
git config user.name "<your name>"
```

---

You can now perform the Git operations for your repository.