teleren/devto huggingface dataset:
Are you using Lombok? Your classes don't need constructor with parameter Annotation.
Tags: java, lombok, tutorial
Published: 2021-08-10 09:08:47

Are you thought how to solve it with lombok?

```java
@Service
public class SomeService {
  private final OtherService otherService;

  public SomeService (@Lazy OtherService otherService) {
    this.otherService = otherService;
  }
}
```

I want use lombok like this:

```java
@Service
@RequiredArgsConstructor
public class SomeService {
  @Lazy private final OtherService otherService;
}
```

but `@Lazy` annotation won't work. lombok will marked as just a field annotation.
but I found this answer and it helped a lot:

{% stackoverflow 59505213 489575 %}

Yes. create `lombok.config` in your project root, and add this line.

```
lombok.copyableAnnotations += org.springframework.context.annotation.Lazy
```

or, copy this line and bind another annotation such as `@Value`, `@Qualifier` or you want. (note: use full annotation signature!)

And, don't worry about annotation working and use lombok!

```java
@Service
@RequiredArgsConstructor
public class SomeService {
  @Lazy private final OtherService otherService;
}
```

Then lombok will processed like this:

```java
@Service
public class SomeService {
  // 30 Sep, 2021: Annotation still remains because of copyableAnnotations.
  @Lazy private final OtherService otherService;

  public SomeService (@Lazy OtherService otherService) {
    this.otherService = otherService;
  }
}
```

Gotcha!
Happy Coding!
Admit One Ticket - SOUR Prom (CodePen challenge)
Tags: codepen, design, html, css
Published: 2021-08-10 08:37:35

This is my Admit One ticket for CodePen's The Typography of Summer - Tickets challenge this week.

I created a "concert ticket stub" for Olivia Rodrigo's SOUR Prom concert film.

Speed Code on [YouTube](https://youtu.be/SukP7Z33Ktk).

Somewhat loosely inspired by <a href="https://dribbble.com/shots/9165032-Luke-Combs-Ticket-Stub" target="_blank">https://dribbble.com/shots/9165032-Luke-Combs-Ticket-Stub</a>.

Fonts: 
- Staatliches
- Nanum Pen Script

[Color Scheme](https://coolors.co/d83565-4a437e): 
- #D83565 - for date, artist, and background
- #4A437E - for show name

{% codepen https://codepen.io/anniedotexe/pen/ExmGvOM %}
What is the lightest bundler output?
Tags: javascript, help
Published: 2021-08-10 08:34:05

I have to convince a group of non developer people that bundling is good, Introducing a build step will be a strange concept to them, but I really need a module system, common or es, the code is running in the Java JS engine RhinoJS

What is the lightest most 1:1 build output to the source code, and who outputs it? Eg we pack, rollup, esbuild, etc. We still have to copy and paste the output to a platform so not minifying either
How to Hide Admin Bar in WordPress?
Tags: wordpress, php, action, hooks
Published: 2021-08-10 08:18:47

There are many ways to [hide the admin bar](https://yourblogcoach.com/how-to-hide-admin-bar-in-wordpress/) and many reasons you may want to hide the admin bar. You can do this by adding some code in your theme’s __functions.php file__.

__Disable the WordPress Admin Bar for All Users__
```
add_filter(‘show_admin_bar’, ‘__return_false’);
```
__Disable the WordPress Admin Bar for Specific User Roles__
```
function hide_admin_bar( $show ) {
	if ( current_user_can( 'subscriber' ) || current_user_can( 'author' ) ) :
		return false;
	endif;

	return $show;
}
add_filter( 'show_admin_bar', 'hide_admin_bar' );
```
__Disable the WordPress Admin Bar for All Users Except Administrators__
```
function hide_admin_bar( $show ) {

	if ( ! current_user_can( 'administrator' ) ) :
		return false;
	endif;

	return $show;

}
add_filter( 'show_admin_bar', 'hide_admin_bar' );
```
You can hide admin bar on any condition based. More wordpress tutorial on [www.yourblogcoach.com](https://yourblogcoach.com/)
How to Create Bar Chart Race in JavaScript
Tags: javascript
Published: 2021-08-10 08:07:17

In this article, I am going to show you that How to Create Bar Chart Race in JavaScript very easily. You must watch many bar chart data visualization videos in this tutorial you can make data visualization with bar chart race. I have found this code snippet on codepen.io by Carlos and chart created by amCharts Library.

Read More: https://www.phplift.net/how-to-create-bar-chart-race-in-javascript/
How to check if all elements in a array are equal
Tags: code, c, cpp
Published: 2021-08-10 07:49:47

**An array** is a very simple and important topic. In programming, if you are creating a program, an array makes our task very easy.  Like other variables, arrays also need to be introduced. Suppose you have variables of the same data type, then you find it very difficult to name them separately. We need to do this.  We need a suitable method in which we can easily use the same type of data type. An array is provided to solve this problem. With the help of this we can use different suffixes or numbers for the same variable name.  Used to save different items by counting. In programming language it is called subscript .

 Today we will create two arrays to see if they are equal or not.  It is important that the data type and length of the array should be the same if the data is in a character or in a float or a string.  If the first index has value kodlogs and the second index has the same value then they will be equal otherwise they will not be. Let's take two arrays then we use loop or solve it with the help of conditional operator so that you can  Visit our website kodlogs to get more information like this.

Example:-
```
Input  : arr1[] = {1, 2, 5, 4, 0};
         arr2[] = {2, 4, 5, 0, 1}; 
O/P : Yes

Input  : arr1[] = {1, 2, 5, 4, 0, 2, 1};
         arr2[] = {2, 4, 5, 0, 1, 1, 2}; 
O/P : Yes
 
Input : arr1[] = {1, 7, 1};
        arr2[] = {7, 7, 1};
O/P: No
```
Python Foundation with Data Structures & Algorithms - Part 01
Tags: python, showdev
Published: 2021-08-10 07:21:42

##**Introduction to Python Programming Language**

####**What is Python?**

Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.

####**It is used for:**

artificial intelligence
big data
web development (server-side)
software development
mathematics
system scripting

**First Python Program**

     print("www.machinelearning.org.in")

www.machinelearning.org.in

     print("Python")
     print("Data Science")
     print("Machine Learning")

Python
Data Science
Machine Learning

#####*Single Line Comment*

Comments start with a #, and Python will render the rest of the line as a comment:

     'print("Hello")  #This is a comment'

 Hello

     'print("Python")
     print("Data Science")
     #print("Machine Learning")
     print("Deep Learnig")
     print("Artificial Intelligence")'

 Python
 Data Science
 Deep Learnig
 Artificial Intelligence

#####*Multiline Comment*

Python will ignore string literals that are not assigned to a variable, you can add a multiline string (triple quotes) in your code, and place your comment inside it:

     '''
     print("Python")
     print("Data Science")
     print("Machine Learning")
     print("Deep Learning")
     '''
     print("Artificial Intelligence")

Artificial Intelligence

#####*Assign Value to a variable*

     a=10
     b=3.134
     c="Machine Learning"
     print(a)
     print(b)
     print(c)

 10
 3.134
 Machine Learning

     print("Value of a :",a)
     print("Value of b :",b)
     print("Value of c :",c)

 Value of a : 10
 Value of b : 3.134
 Value of c : Machine Learning

     print(a,b,c)

 3.134 Machine Learning

     print("Value of a :",a,"Value of b :",b,"Value of c :",c)

 Value of a : 10 Value of b : 3.134 Value of c : Machine 
 Learning

     print("Value of a :",a,"\nValue of b :",b,"\nValue of c 
    :",c)

 Value of a : 10 
 Value of b : 3.134 
 Value of c : Machine Learning

     print("Value of a :",a,end='\n')
     ("Value of b :",b,end='\n')
     print("Value of c :",c,end='\n')

 Value of a : 10
 Value of b : 3.134
 Value of c : Machine Learning

     print("Value of a :",a,end=' ')
     print("Value of b :",b,end=' ')
     print("Value of c :",c,end=' ')

 Value of a : 10 Value of b : 3.134 Value of c : Machine 
     Learning 

#####*Accepting User Inputs*

input( ) accepts input and stores it as a string. Hence, if the user inputs a integer, the code should convert the string to an integer and then proceed.

     a=input("Enter any value:")
     print(a)

Enter any value:Machine Learning
Machine Learning

     print(type(a))

<  class 'str'  >

*Note that type( ) returns the format or the type of a variable or a number*
jsPolicy – Kubernetes Policies 
Tags: kubernetes, javascript, typescript, policy
Published: 2021-08-10 07:00:34

Lightning Fast & Secure Policy Execution – jsPolicy runs policies with Google’s super fast V8 JavaScript engine in a pool of pre-heated sandbox environments. Most policies do not even take a single millisecond to execute
Great Language For Policies – JavaScript is made for handling and manipulating JSON objects (short for: JavaScript Object Notation!) and Kubernetes uses JSON by converting your YAML to JSON during every API request

[jspolicy](https://kali-linuxtr.net/jspolicy-kubernetes-policies-using-javascript-or-typescript)
Fix the Norton automatic renewal on your account
Tags: software, norton
Published: 2021-08-10 06:57:52

You probably have a Norton Account if you use Norton Software. This account is typically created when you first install Norton Software. It is useful because it helps you keep track of your product keys, which many people lose, and other important information about your subscription.

Norton recently added an "automatic renew" feature to these accounts. This allows Norton to charge your credit approximately one month before your subscription expires. This feature is automatically enabled by default.

Norton will disable this feature for you if asked. BUT YOU MUST ASK! You cannot change the automatic renewal setting yourself.

Norton's online chat support is the best way to reach them.

If you are concerned that the auto-renew function has charged your credit card, you can ask for a refund via chat support.

Norton appears to have changed the way they handle auto-renew. It used to be possible to disable auto-renew from your Norton account. You can now stop Symantec or Norton from renewing your subscription automatically by filling out an online form. Chat with one of our support representatives online to disable the feature.

**Know [how to cancel norton account](https://technicalsquad.net/how-to-cancel-norton-subscription-service-and-request-for-the-refund/) by yourself**

Symantec makes it simple to enable or disable the Auto-Renewal function. These are the detailed instructions.
•	Log in to your Norton Account. You can find the URL by going to Google and typing "My Norton account" into Google.
•	Click on the link "Automatic Renewal"
•	The box defaults to being checked. To uncheck the box, click on it again. Auto-renewal will be enabled if the box has been checked. Auto-renewal will be disabled if it isn't checked. When you're done, click the Update button.
•	Make sure you click the "Turn off" link in the yellow window next to it.
JavaScript Self Typewriting
Tags: javascript, html, css, codenewbie
Published: 2021-08-10 06:54:15

Get Pumped 😃😃😃 Guys, Because Today we'd be Exploring the world of Self Typewriting in Javascript..

I'm Pretty sure most of you must have seen it, this automated and dynamically typing stuff all over the web today.

#Have you wondered how it's been made??
Well, i'm here to let you know how.
This Here explains it in Javascript.

You have to create a function , then use the _this_ keyword attached with some attributes which does the same thing as referring to the function you just created as shown below

![Best on Javascript Typewriting](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k2leksw1ua3cupqixlrl.png)

Secondly, you use the prototype syntax of writing,
also all logic goes in here, e.g the length, speed of movement etc..

![Best on Javascript Typewriting](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w0c5dd17t1k2a20cw7n8.png)

Lastly , You initialize and use it on the DOM , depending on what you want or how you want to use it.

![Best on Javascript Typewriting](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x3w0c11bk1iwj3wyxfss.png)

READ, CLAP, SHARE
#techforeveryone
follow for more [devsinstitute(https://instagram.com/devsinstitute)
Free Tabnine Pro for Students!

Tags: productivity, programming, devlive, codenewbie
Published: 2021-08-10 06:33:21

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y8vydx18qhv1hu4y2g99.gif)

Tabnine knows that tuition, rent, and food can get expensive, that’s why we’re committed to supporting the community and the dev superstars of tomorrow with FREE Tabnine Pro Student licenses renewable for as long as you’re a student.

Get Your Tabnine Pro Free Student Pass Now!

Providing hundreds of thousands of dollars in free Tabnine Pro licenses ensures that dev students from around the globe are given access to professional coding tools without having to bear the burden of additional costs.

If you’re a software development student in São Paulo or San Francisco, Toronto or Tel Aviv, Beijing or Bangalore you can power through school projects with all the perks of Tabnine Pro absolutely free, for as long as you’re in school.

Tabnine supports all the most popular languages, libraries, and frameworks including:

Python, Javascript, Java, extended JS, React, PHP, Typescript, C Header, Bash, ML, Swift, Ruby, Perl, Rust, SQL, Vue, F#, Scala, Julia, TOML, Shell, YMAL, C / C++/ C#, HTML, Lua, Markdown, Haskell, Go, Objective C, JSON, CSS / SCSS, Angular, and Kotlin.

Tabnine Student Pass includes all the perks of Pro

- Advanced ML Model
- Unlimited Code Completions
- Customizable Experience
- Priority Support

Tabnine knows that the cost of an education can be overwhelming and we are proud to do our part to help lighten the load.

You focus on coding – Tabnine will cover the cost of AI code completion.

Get Your Tabnine Pro Free Student Pass Now!

More Great Student Packs

Tabnine is in great company when it comes to recognizing the importance of investing in education and the community – Check out these other great student deals and discounts!

GitHub – Free GitHub Pro for students | Powerful collaboration, code review, & code management

JETBRAINS – Free annual subscription for students | Professional IDEs: IntelliJ IDEA, PyCharm, and more

Stripe – No transaction fees on first $1000 in revenue processed | Web and mobile payments, built for developers
List in Python
Published: 2021-08-10 06:33:03

TechSnippet#1 :

1.List in Python are similar to ArrayList in Java.It is a container of sorts to hold multiple items . 
2. They are ordered and mutable
      Now, What does ordered mean?  
        - The Output of ordered list is in the same order as 
          specified initially
          
          l1 = [1,2,3 ,'Hello']  #Create List
          print(l1)  # Print List
          Output : [1,2,3 ,'Hello']
 
      Next, What does mutable mean? 
        - The elements of the list can be modified

         l1 = [1,2,3 ,'Hello']
         l1[0]=4
         print(l1)
         Output : [4,2,3 ,'Hello']

Note : l1[0] - The 0 here denotes the index which in layman language means a way of accessing the value in the list. 
Index starts at 0 . 
So, l1[0]= 4 ,l1[1]= 2,l1[2]= 3,l1[3]= 'Hello'
How to fix problems with esbuild in Yarn
Tags: yarn, npm, esbuild, javascript
Published: 2021-08-10 06:32:13

This plugin lets you use Yarn with esbuild. We use it in order to build Yarn itself!

1. Add the plugin to your dependencies:
```
yarn add @yarnpkg/esbuild-plugin-pnp
```

2. Reference it via your esbuild configuration [build API only](https://esbuild.github.io/plugins/):
```
import {pnpPlugin} from '@yarnpkg/esbuild-plugin-pnp';

await build({
  plugins: [pnpPlugin()],
  // ...
});
```
Enabling Flutter desktop applications
Tags: flutter, dart
Published: 2021-08-10 06:29:04

A super cool thing in Flutter is that it can compile too many different outputs.
We've seen mobile apps, but Flutter can also output to native desktop apps!

Today we are doing just that. We'll take our [Flutter side menu application](https://daily-dev-tips.com/posts/flutter-drawer-sidebar-menu/) and convert it to work on desktop!

![Flutter Mac application](https://cdn.hashnode.com/res/hashnode/image/upload/v1627969935510/-VgvdLnrK.png)

## Requirements for desktop

First of all, we need Flutter installed, but for desktop, we also need some additional resources.

- `Windows`: Visual Studio 2019 (Not visual studio code)
- `MacOS`: Xcode and CocaoPods installed
- `Linux`: Clang, Cmake, GTK development headers, Ninja build, and pkg-config.

## Enable Flutter desktop

To enable Flutter we can run the following command to enable it installation wide:

```bash
flutter config --enable-<platform>-desktop
```

Where the platforms will be:

```bash
flutter config --enable-windows-desktop
flutter config --enable-macos-desktop
flutter config --enable-linux-desktop
```

Next up, you can run the following command to get a list of connected devices. This should show at-least one more.

```bash
flutter devices

1 connected device:

Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.18362.1082]
macOS (desktop)   • macos   • darwin-x64  • macOS 11.2 20D64 darwin-x64
Linux (desktop)   • linux   • linux-x64   • Linux
```

## Creating the Flutter desktop app

In the case of a new application, you can run the following command:

```bash
flutter create myapp
```

If your application already existed, you can navigate to the folder above it and execute the following command:

```bash
flutter create --platforms=macos flutter_app
```

Where the last part, `flutter_app` is the name of your existing folder. This command will rebuild the folder with the desktop config.

## Run Flutter app on desktop

To run the app on the desktop, we can use the run command.
It should ask us for which device:

```bash
flutter run
```

Or we can specify the device right away:

```bash
flutter run -d macos
flutter run -d windows
flutter run -d linux
```

And that's it. We now have a Flutter application that can run natively on a desktop!

Very excited about this addition and looking forward to trying desktop apps out.
The styling part of your applications will convert right away. However, some plugins might need platform-specific configuration changes.

If you want to download this converted demo, you can find the complete code on [GitHub](https://github.com/rebelchris/flutter/tree/flutter-desktop).

### 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)
Method Chaining in JavaScript
Tags: javascript
Published: 2021-08-10 06:24:34

Hello,
In this article we will see how we can chain methods in javascript. This is most commonly asked questions in interviews for front end developers. An example of it could be `person.walks().talks().laughs().listens()`

We can chain this till any level, let's see this in code:

```
class Person{
    constructor(name){
        this.name = name;
    }
    walks(){
        console.log(this.name +' Walks')
        return this;
    }
    talks(){
        console.log(this.name +' Talks')
        return this;
    }
    laughs(){
        console.log(this.name +' Laughs')
        return this;
    }
}

let person = new Person('Person 1');
person.walks().talks().laughs();

//Output: 
Person 1 Walks
Person 1 Talks
Person 1 Laughs
```


Here, `return this` helps in chaining the methods which passes the complete object with all of it's prototypes and with that we can chain the methods.

**Hope you liked it, please mention in comment for any suggestions or feedback **
HTML tags | output
Tags: html, tags, output
Published: 2021-08-10 06:19:26

It is used to **represent the result of a calculation or the result of a user action**.

Like all form elements, it has two attributes: `name` to indicate its name and `form` to indicate the form to which it is associated, and whose value will be the `id` of a `<form>` of the document.

It has a third `for` attribute that consists of a space **separated list with the** `id` **of the form elements** that contribute or affect the output displayed in `<output>`.

Regarding accessibility, **many browsers implement this element as an** `aria-live` **region**. Therefore, assistive technology will announce changes to the value displayed in `<output>` without removing the focus from the form element that caused the change.

- Type: *inline*
- Self-closing: *No*
- Semantic value: *No*

[Definition and example](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output) | [Support](https://caniuse.com/mdn-html_elements_output)
Hello World!
Tags: firstpost, techsnippets
Published: 2021-08-10 06:14:16

Hi! I am a techie dribbling in Database and Java for a while. I have ventured into upskilling on  Cloud and IOT and other stuff. 

Well, I have been wanting to document my everyday learning for a long time. Aaaand , I started here. 

I m planning to post a snippet everyday regularly. .

Drop a comment if you found it useful!!
Show us your coding setup!
Tags: discuss, programming, productivity
Published: 2021-08-10 06:14:15

Hello everyone!

We all have our own configuration which we have been tuning and fine-tuning over the years. I would like to see how everyone here has their editors/terminals/stuff setup.

I'll start with mine:

![cooler](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k9xhu99u1u0vb5ezidw3.png)

That's tmux + vim + iTerm + zsh

Check out the [dotfiles](https://github.com/siddshy/dotfiles)
 
The vim theme is [material.vim](https://github.com/kaicataldo/material.vim). I also use NERDTree.

Share your setup:rocket: