teleren/devto huggingface dataset:
JAVA WITH NOTEPAD
Tags: java, programming
Published: 2020-12-29 03:05:18


- 
**Create Notepad**





> 
How to create Notepad?
>
Right Click > New > Text Document





> 
OR


> 
touch programName.txt [only for pro people]


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1609209356239/TyIN4WpAR.png)



- 
Give some name to file

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1609209584245/np5VDCFdX.png)



- 
Open File


> 
How to open File?

> 
Right Click on file > Open 

> 
OR 

> 
Just double click on file


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1609209684803/v9-D20FA8.png)

- 

Write some java code


> 
How to write Java Code?


> 
Learn From Youtube or Udemy


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1609210333776/GcjicTqoB.png)


- 

Save file with programName.java extension


> 
How to save with java extension?

> 
File > Save as > programName.java

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1609210398782/W_bj1LMJU.png)


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1609210434370/JhN3qSTCk.png)


- 
Open CMD

If you don't know how to open cmd in current directory visit: 

> https://newgendeveloper.hashnode.dev/how-to-open-cmd-in-current-directory


- 

Type 
```
javac programName.java
``` 

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1609210670982/f6VkQVL5T.png)

> 
it will give you a new file programName.class file [Compiled version]


- 

Then Type


```
java programName
``` 


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1609210718484/k8CpixuTR.png)


- 

Twitter

https://twitter.com/NewGenDeveloper
My Portfolio, You can customize to your own in 5 minutes [My submission]
Tags: dohackathon
Published: 2020-12-29 03:03:55

## What I built
I have built a portfolio website that can be customize in 5 minutes.You just have to change `src/Name.js` file which contains the complete information about the user.

### Category Submission: 
Personal Site/Portfolio

### App Link
[vimal.websense.tech](https://vimal.websense.tech/),[other link](https://master-portfolio-eg63x.ondigitalocean.app/)

### Screenshots
![home](https://dev-to-uploads.s3.amazonaws.com/i/ya49rg6zib0gtskrh27t.png)
![Edu](https://dev-to-uploads.s3.amazonaws.com/i/daytfjmzwkpcret4npdx.png)
![project](https://dev-to-uploads.s3.amazonaws.com/i/xjfbmz69i29ql2551nqd.png)
![blog](https://dev-to-uploads.s3.amazonaws.com/i/u5d4fe7ou0u7n8sl3b6n.png)

### Description
Highly customizable Portfolio website with 6 pages ([Home](https://vimal.letskhabar.com/), [About](https://vimal.letskhabar.com/about), [Education](https://vimal.letskhabar.com/education),[Project](https://vimal.letskhabar.com/projects), [Blog](https://vimal.letskhabar.com/Skill), [Contact](https://vimal.letskhabar.com/contact) ).

 

### Link to Source Code
[vimalverma558/Master-Portfolio](https://github.com/vimalverma558/Master-Portfolio/tree/DO_Dev)

### Permissive License
[MIT](https://github.com/vimalverma558/Master-Portfolio/blob/DO_Dev/LICENSE)

## Background
Portfolio website is the best Place to show your Project, Skill, And other information So, I decided to build a Portfolio that can customize by anyone.

### How I built it 
This Website is build on React.js and And Deployed on DigitalOcean


### Additional Resources/Info
- This portfolio is highly customizable
- It fetch Devto articles in portfolio
- You can customizable Tools in each section
- Colourful tools icons
- Demo Link - https://demo.letskhabar.com/
- Website - https://master-portfolio.js.org/


Thanks
Gitea on OpenBSD from Source Code: Update
Tags: gitea, selfhosted, openbsd, git
Published: 2020-12-29 02:23:13

---
title: Gitea on OpenBSD from Source Code: Update
published: true
description: Gitea server on OpenBSD. Here is how to update it via command line: Stop the service, git fetch the latest tag, build the newer binary to be replaced, and start the service again.
tags: gitea, selfhosted, openbsd, git
series: Gitea on OpenBSD
---

## Introduction

I have a Gitea server on OpenBSD.
Here is how to update it via command line.

## Summary

The way is simple.
Stop the service, git fetch the latest tag, build the newer binary (with the same name) which will be replaced the current automatically, and start the service again.

```console
# rcctl stop <gitea-daemon>

$ cd <gitea-dir>
$ git fetch --tags
From https://github.com/go-gitea/gitea
   ...
 * [new tag]             vX.X.X        -> vX.X.X
$ #or: git tag | tail # the latest release will be shown as vX.X.X
$ git checkout vX.X.X

# chown -R <update-user>: ./{data,gitea-repositories,log}

$ env TAGS="bindata" make -f BSDmakefile generate build
$ # or use GNU make
$ #env TAGS="bindata" gmake generate build
$ # ---
$ # use `max_old_space_size` option in Node.js in case that server has small memory
$ #env TAGS="bindata" NODE_OPTIONS="--max_old_space_size=1024" make -f BSDmakefile generate build

# chown -R <gitea-user>: ./{data,gitea-repositories,log}

# rcctl start <gitea-daemon>
```

## Steb-by-step descriptions

First of all, stop the Gitea service carefully.

---

### in \<gitea-dir\>

Just for the reference, you can get the latest version via command line:

```console
$ git describe --tags
v1.13.1
```

and it's also possible to show all:

```console
$ git tag -l
...
v1.12.x
...
v1.13.1
...
```

Besides, as to branches:

```console
$ git branch -l
* (HEAD detached at v1.13.0)
  master
```

Well, let's begin to update tags list:

```console
$ git fetch --tags
$ git checkout v1.13.1
```

If you have changed permission when building the Gitea server, change them temporarily:

```console
$ chown -R <update-user>: ./{data,gitea-repositories,log}
```

and then build the newer binary, which takes a minute or more:

```console
$ env TAGS="bindata" make -f BSDmakefile generate build
$ # or use GNU make
$ #env TAGS="bindata" gmake generate build
$ # ---
$ # use `max_old_space_size` option in Node.js in case that server has small memory
$ #env TAGS="bindata" NODE_OPTIONS="--max_old_space_size=1024" make -f BSDmakefile generate build
```

```console
...
writing bindata.go
...
```

If the permission has been changed beforehand in this process, revert them:

```console
$ chown -R <gitea-user>: ./{data,gitea-repositories,log}
```

---

Now the gitea executable binary has been updated.
Start the service again :)
You don't have write permissions for the /usr/local/bin directory
Published: 2020-12-29 02:15:04

`gem install pry` GIVES the following error:

``ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/local/bin directory.``

To fix, RUN:

// ♥  cd /usr/local

// ♥  sudo chmod -R a+w bin/

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/39lwzqkbz5qnqkj7g60a.png)
A step-by-step guide to installing Node.js on Ubuntu
Tags: javascript, node, ubuntu, typescript
Published: 2020-12-29 01:48:00

# Introduction 

JavaScript server side programming is supported by Node.js. It's constructed using the JavaScript V8 engine from Google Chrome. It enables programmers to make swift, greatly scalable, and data-intensive applications.

The installation of **nodejs** on Ubuntu 20.04 and later is demonstrated in this guide. To install particular versions of the **nodejs**, we will install it using the **apt** PPA software repository.

# Using apt and the NodeSource PPA to install node.js

A personal package archive (PPA), which is actively handled and maintained by NodeSource, can be used to upgrade or install a new type of **nodejs** version. **Nodejs** versions are accessible in a wider variety on the PPA than in the official Ubuntu repositories. There are **nodejs** versions 12, 13, 14, 15, 16, and 18 available. Take a look at the [NodeSource documentation](https://github.com/nodesource/distributions/blob/master/README.md) for more information.

- Installing the PPA will let you to access and use its packages, so let's do that first. Use curl to get the installation script for your choice version from your home directory, being sure to replace **16.x** with your chosen version string. Any software should be installed in LTS versions.

```shell
$ cd ~
$ curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
```

- The PPA will be added to your configuration and local package cache after you take the aforementioned action. You'll now have the freedom to install the **nodejs** package because it will be updated automatically:

```shell
$ sudo apt install nodejs
```
- Run node with the -v version flag to ensure that **nodejs** is properly installed:

```shell
$ node -v
```
- Output 

```shell
v16.16.0
```
Npm does not need to be installed individually because it is included in the NodeSource **nodejs** package together with the node binary.

With apt and the NodeSource PPA, you have successfully installed **nodejs** and **npm**.
Readme for a Productive 2021
Tags: webdev, beginners, remote, productivity
Published: 2020-12-29 01:09:56

---
title: Readme for a Productive 2021
published: true
description: Starting 2021 on the right foot starts today.
tags: Webdev, beginners, remote, productivity
cover_image: https://i.imgur.com/VZ83QpY.jpg


---
I recently wrote in a #devdiscuss about motivation
```
Take days off, don't burn out
Have a project you enjoy
Learn on your own
Ask for help if you need it
```
I should expand on it quite a bit. For reference, I've been a Remote Developer since 2014. It's lonely and frustrating, staying productive can be tough. These are just my general observations to try to help.

---
## Prep Work, pick a theme (optional)
Start by picking a yearly theme instead of a goal. 

For References: [Yearly Themes explained by CGP Grey](https://www.youtube.com/watch?v=NVGuFdX5guE)



Example: I want to save $X amount this year, changes to the year of Finance. It's less a pass or fails like specific goals and more of a did you improve.

My theme for 2021 is The Year of Refinement, some things that apply to my theme are less time on social media, more time writing posts, becoming more active. All those things become encapsulated in my theme. 

Having a theme to focus on makes it easier to review the progress over the year. 


---
# Into the mandatory
---
## Organize
If you have a home office, clean it. Those old downloads that have been on your computer for 2 years, remove them. I'm no Marie Kondo, but a neat workspace is a big relief. Begin 2021 on a "clean" slate, you never know what's going to happen.

`Does this bring me joy?`

---
## Schedule off time
Don't fall into the trap of always busy is always good. Take time off for yourself when you need to. Reduce eye strain and get a hobby away from the computer if you want. 

Taking breaks increases productivity: [Source](https://www.work-fit.com/blog/how-effective-breaks-at-work-increase-productivity#:~:text=Taking%20breaks%20at%20work%20does,the%20last%20hour%20or%20so.)

---
## Your Project and learning
Having a project that is uniquely yours is healthy. You get to decide what it is, what you want it to do. Design, code, build. As a developer, not much of a designer it's nice to have tools out there like [Tailwind](https://tailwindcss.com/). Learning will always be part of the web, embrace it. 

A few years ago I needed to learn AngularJS 1.X, I joke about it now, but it made learning VueJS a few months later easy for a side project. If you have good fundamentals you'll adapt better in the future.

---
## Asking for Help and Feedback
Spinning your wheels and getting frustrated is a spot every developer has been in. Don't be ashamed of it. I've been lucky enough to work with amazing people who will take time and talk through a problem. There are discords/slack channels/StackOverflow and of course DevTo. 

You can get feedback, but don't ask without trying first.


Please leave me feedback on how I can improve these posts moving forward.

---
Up next: Tools and resources for 2021
iOS GPA/Class Tracker App - Swift and SwiftUI
Tags: swift, ios, programming, ux
Published: 2020-12-29 00:45:52

This is an **iOS Application** that lets you enter the classes you took and then tracks and calculates your overall GPA.

- Built in the **Swift Programming Language**
- User Interface built using **SwiftUI**
- Code linted using **SwiftLint** and **GitHub Swift Style Guide**

Great SwiftUI project that is now available for download on the Apple App Store under the name 'GPAce'. Feel free to download!

Feel free to check out on GitHub and please Star if interested!

[Link to Github](https://github.com/juneadkhan/GPACalculator)
🛠Build an Admin Dashboard with Express and Vue: Getting Started
Tags: vue, express, dashboard
Published: 2020-12-29 00:34:29

📖Learn how to use the Auth0 Management API to build an admin dashboard with Express and Vue.
[Read more...](https://auth0.com/blog/build-an-admin-dashboard-with-express-and-vue-getting-started/?utm_source=content_synd&utm_medium=sc&utm_campaign=express_vue)
Favorite Resource of the Week: Coding Fonts
Tags: beginners, codenewbie, todayilearned, productivity
Published: 2020-12-29 00:06:55

In the world of software development, things move fast. New tools, new libraries, new languages! As technology changes to meet the needs of today's problems, it is important as a developer to keep up to date with what tools work best for you. I am always watching for tools that will help improve my workflow, making me a better designer and developer, and making my work more effective. I would like to share the tools I find that seem to make a difference in my work, and might just help solve some of the problems you are facing in your own!

This week my favorite resource is a newly found web app on the [CSS-Tricks](https://css-tricks.com/) site, which helps developers in choosing which coding font's they like best, find most useful, and most effective for their code editing environment.


### CSS-Tricks: Coding Fonts
[https://coding-fonts.css-tricks.com/](https://coding-fonts.css-tricks.com/)
![Image of the CSS-Tricks web app titled Coding Fonts](https://imgur.com/IXwzqGD.png)

Coding Fonts allows you to switch between 35 of the most popular fonts used by developers in their code editors, and it allows you to see the differences between and the unique aspects of each. Many of these fonts contain unique ligatures, use of italics, variables, and character shapes that help developers see the functions or markup they are calling more accurately and quickly. This web app not only lists the differences between these commonly used fonts, but also allows you to see them in action. Choosing a font that is easy for you to differentiate between characters and visualize unique calls and comments can improve workflow, and be a real productivity booster in your development toolkit! 

**What is your favorite coding font of choice? Is it listed in Coding Fonts? And why do you find it most effective for your daily work use?**

[![Custom badge](https://img.shields.io/badge/Visit%20Site%20-->-CSS_Tricks:_Coding_Fonts-blue)](https://coding-fonts.css-tricks.com/)
My Movie List: On reflection.
Tags: react
Published: 2020-12-29 17:23:04

---
title: My Movie List: On reflection.
published: true
date: 2020-12-29 00:00:00 UTC
tags: react
canonical_url: https://d-fisher.com/blogs/my-movie-list-on-reflection
---

I decided to look at the My Movie Application after completing the Podcast app to see how I could improve it. I have made some minor tweaks since, but I could polish it even further.

### Good Git workflow

In hindsight, I should have used a good and common git workflow. Using git-flow and working with issues, pull requests and branches will be something that I'll be regularly doing when I become a full-time developer. I would also commit much more and have better comments.

### Testing

I would also use testing at the beginning of the project rather than implementing at a later stage. I did testing on the podcast app from the beginning, and it was very beneficial. It also would help with planning the app, as testing puts the design into focus.

### Design

I'm quite happy with how the app looks, but perhaps some fonts and colours could work better together. I'm not a designer, so I'm overly unhappy.

### Docker

Docker enables application portability, so someone can download my repository and quickly build the application without the need to install Node or other dependencies. I may deploy the app with a Docker container in the future.

### Unnecessary code

Using an error handler hook was overkill for this project, but I implemented this feature as I was trying to learn as much as possible about hooks. Creating separate JSX style scripts to the component script keeps the app more organised and more comfortable to read. I have re-organised the app this way, but I should have followed this workflow from the beginning.

You can find the repo here: https://github.com/cam71101/My-Movie-List.
How to get the filename of the currently executing script in Node.js?
Tags: node
Published: 2020-12-29 00:00:00

---
  title: How to get the filename of the currently executing script in Node.js?
  published: true
  tags: Nodejs
  date: Tue Dec 29 2020 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/get-filename-of-currently-executing-script
  cover_image: https://melvingeorge.me/_next/static/images/main-efd8c39a8e8c569d3b2d226667cd581d.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/get-filename-of-currently-executing-script)
  
To get the filename of the currently executing script, you can use the `__filename` environment variable in Node.js

For example, let's say we have a file called `myscript.js` inside a directory called `scripts`.

Inside this `myscript.js` file let's log the value of the `__filename` environment variable like this,

**scripts/myscript.js**

```js
console.log("Filename of executing script:", __filename);
```

If we were to execute the script using the command `node scripts/myscript.js` from the terminal, we would get the absolute path to the filename of the currently executing script,

```bash
Filename of executing script: /Users/melvingeorge/scripts/myscript.js
```

like this.

See this example live in [repl.it](https://repl.it/@melvin2016/get-filename-of-currently-executing-script#index.js).

### Feel free to share if you found this useful 😃.

---
6 Month Update: The best one yet...
Published: 2020-12-28 23:23:02

*~*~*~*~*~**~*~*~*~*~*~*~*~*~*~*~*

FULL-CIRCLE MOMENT

*~*~*~*~*~**~*~*~*~*~*~*~*~*~*~*~*

April of this year... I discovered that I had found my sweet spot. My greatest passion, had finally met my greatest talent. I had discovered programming! I found Treehouse by searching for great learning platforms and was immediately drawn in by the teachers and teaching style, the quizzes, and the supportive community of students. I taught myself as much as I could cram into in a day (But I felt like I was missing something important).

Suddenly, *A wild July appeared* and Treehouse announced that they would be having a festival! Attending the festival changed my entire outlook on many things. I did not think I could love Treehouse as a corporation more... this festival proved that wrong. The lineup of talks alone made me realize that this company walks it's talk when they say their mission statement is to diversify tech and making learning more accessible, and empowering people to achieve their dreams. Treehouse immediately rose to the top of the list of companies that I wanted to work for.

One of the biggest takeaways for me was the importance of networking in the tech industry. Networking was such a scary unknown territory for me, but I was ready. The League of Feminist Coders was born. I started networking by creating a space where I felt safe and wanted others in tech to feel the same. A space for womxn, poc, and lgbtq+ folks in tech to just *exist*. The friendships I have made through this group have turned into friendships that I hope last forever. My mission is Treehouses mission. Today, I received the incredible news that my journey is now to work hard for the company that I believe in. To work hard for the students that are sitting right where I was just 6 months ago. All the while, sticking to the mission that we all have in common... making this world a better place by celebrating diversity.
Top 10 SEO Predictions for 2021
Tags: seo
Published: 2020-12-28 23:09:11

Here are my top 10 SEO predictions for 2021:

1 - Long-form content continues to rule

Content length has been important for a number of years and the importance keeps increasing. 

Articles and content with over 2000 words outrank content with 1000 words. 

This trend will continue.

2 - Importance of performance and UX

Google has indicated that core web visuals will become a ranking factor. 

Making sure that your website loads fast and meets other UX metrics will be very important.

3 - Fixing SEO errors and issues

Find SEO errors and issues on your website and fix them. 

This is a table-stakes exercise and should be done on a weekly and monthly basis. 

Automate this as much as possible.

4 - Mobile-first SEO

This one goes without saying. 

With more and more users coming to your website via mobile, design with mobile-first in mind. 

This goes for performance and SEO tuning as well.

5 - Incorporating structured data

Incorporating structured data is going to become more and more important. 

This can land you feature snippets on Google and help you outrank your competition. 

Check out https://schema.org for more info

6 - Tune for voice search

Voice search will become more and more important. 

When tuning your website for keywords, consider how people would ask a question in a conversational way. 

FAQs and schema can help you here.

7 - Tune for landing feature snippet SERPs

Featured snippets can help you outrank the competition. This will continue to be the case. 

You can land these on the search engine results pages (SERP) if your content answers a user's query directly. 

Schema can help you here as well.

8 - Focus on search intent

This one is hard to pull off with long-form content especially. This is becoming more and more important.

Did the user find an answer to their query when they landed on your website or did they bounce right away? 

Tune for stickiness.

9 - Incorporating other types of content 

Including other types of content on your pages can improve your ranking. 

Including things like images and videos will improve your page ranking. 

Long-form content still rules, however. 

10 - Focus on local SEO 

Good local SEO will continue to reign supreme. 

This is because Google will always try to deliver the most relevant search result to the user. 

Create a Google Business Profile and fill out as much info as possible.

If you want to learn more about web development or SEO, visit <a href="https://cliowebsites.com" target="blank">Clio Websites</a> or <a href="https://twitter.com/natmiletic" target="blank">follow me on Twitter</a>. Happy learning! 

<a href="https://iwanttoreadmore.com/vote/nat/seo/2021-predictions/" target="_blank" rel="noopener">Vote For This Article</a>
🛡Log streaming: What it is and why it matters
Tags: streaming, security
Published: 2020-12-28 23:05:27

🛠Log streaming helps you respond to incidents in near real-time.
[Read more](https://auth0.com/blog/log-streaming-what-it-is-and-why-it-matters/?utm_source=content_synd&utm_medium=sc&utm_campaign=log_streaming)