teleren/devto huggingface dataset:
Responsive Neumorphism Navigation Bar in HTML & CSS
Tags: css, navbar, neumorphism, navigationbar
Published: 2020-12-17 16:48:01

Hello friend, today in this blog I'm going to create a Responsive Neumorphism Navigation Bar using HTML & CSS only. In a previous blog, I have Shared,<a href="https://www.codinglabweb.com/2020/12/side-bar-menu-using-html-css.html">How to Create a Transparent Sidebar Menu using HTML & CSS</a> and now I'm going to create a navigation menu in neumorphism style using pure CSS.

Generally, neumorphism means a minimal way to design with a soft, extruded plastic look. A navigation bar is a section where one logo and various hyperlinks exist. It allows users to quickly visit any particular section within the website. Nowadays the Navigation menu is the most important part of the website.

In this program[Responsive Neumorphism Navigation Bar], on the webpage, there is a logo at the top left side and some navigation links at the top right side of the navigation bar. On pc, you will see the navigation menu align in horizontal form, and on mobile devices, you will see this navigation align in vertical form. I have used only HTML & CSS.

You Might Like This:
<a href="https://www.codinglabweb.com/2021/01/responsive-website-with-html-css-glass.html">Glassmorphism Website Design</a>
<a href="https://www.codinglabweb.com/2020/12/neumorphism-side-bar-menu-using-html-css.html">Neumorphism Sidebar Menu</a>
<a href="https://www.codinglabweb.com/2020/12/responsive-footer-html-css.html">Responsive Footer Section</a>
<a href="https://www.codinglabweb.com/2021/02/how-to-make-calculator-using-html-css.html">Glassmorphism Calculator Design</a>

Neumorphism Navigation Menu [Source Code]
You can download all source code files from this given link. <a href="https://www.codinglabweb.com/2020/12/responsive-neumorphism-navigation-bar.html" target="_blank">Click here to download code files</a>
How can you implement multiple interfaces in java?
Tags: java, oop, programming
Published: 2020-12-17 16:44:13

In this article, we will learn about some Multiple interfaces with the sample code that is how to write more than one interface and how the class can implement it.
Some easy interface implementation. We will learn by the example code. we should be familiar with the concept follow.
• The concept of interface in java
• How to implement the interface methods in java
 
---
title: How can you implement multiple interfaces in java?
tags: java
canonical_url: https://kodlogs.com/blog/2160/how-can-you-implement-multiple-interfaces-in-java
---

Now, let us understand some of the interface in java with examples.
In the example program below, there are two interfaces flyable and eatable. flyable interface contains a method fly () and edible interface contains a method eat (). Both methods are implemented.
There is a class called "Bird", which will implement both interfaces with the syntax given below:
Bird class flyable tool, eatable
Then, the bird classes will override and implement methods of fly and eat from both interfaces. See below, complete code examples, how the bird class implement multiple interfaces in Java.
 
Examples of some of the implementation of interfaces in Java

```
/ *
 * Implementation example some java interface
 * /

flyable interface {
void fly ();
}

eatable interface {
cancel eat ();
}

// Bird class will implement both interfaces
Bird class flyable tool, eatable {

public void fly () {
System.out.println ( "Flying Bird");
}

public void eat () {
System.out.println ( "Birds eat");
}
// This can have more methods alone.
}

/ *
 * Test multiple interfaces examples
 * /
public class Example {
public static void main (String [] args) {
Bird bird b = new ();
beat();
b.fly ();
}
}
```

Output:
eating birds
flying bird
Animated Login Form using HTML CSS
Tags: css, loginpage, loginform, logindesign
Published: 2020-12-17 16:40:11

Hello, Readers Today in this blog I'm going to create an Animated Login Form by using HTML & CSS only. In my earlier blog, I have Shared <a href="https://www.codinglabweb.com/2020/12/responsive-footer-html-css.html">How to create a Responsive Footer Section for Webpages</a>, now it's time to design a login form.

In simple language, a login form is a form where users need to enter his/ her email and password to enter a particular webpage. We can take the example of Instagram. In Instagram when we are going to enter our Instagram, first of all, we need to enter our email address and password, that form is called the login form. There are various designs of login form but its main work is the same.

As you can take a look at the image of a login form which I have given on the webpage. is also a login form. Today we will build this login from in this program. As you can see, I already have filled in my email and password in this login form. Also, we can see two social media buttons for Facebook and Twitter. Users can log in through these two social media buttons.

You Might Like This:
<a href="https://www.codinglabweb.com/2020/11/responsive-login-form-using-only-html.html">Responsive Login Form Form</a>
<a href="https://www.codinglabweb.com/2021/01/responsive-registration-form-in-html-css.html">Responsive Registration Form</a>
<a href="https://www.codinglabweb.com/2020/12/login-form-with-icons-using-only-html.html">Login Form WIth Social Media Icon</a>

Animated Login Form [Source Code]
You can download all source code files from this given link. <a href="https://www.codinglabweb.com/2020/12/animated-login-form-using-html-css.html" target="_blank">Click here to download code files</a>
We just released free analytics to empower OSS!
Tags: productivity, tooling, analytics, opensource
Published: 2020-12-17 16:40:05

You write code for more than just work, but how do you translate those contributions into growth, career outcomes, or skill development? We've created a product to solve exactly these challenges, articulating hidden value!

We started Merico to empower developers, and we can think of no better way to do so than to release a version of our product specifically geared towards the individual developer, at no cost, so that's what we've done. 

https://www.producthunt.com/posts/merico-build

I hope you'll try it, and if you like it, that you'll share it! Thanks DEV family! :-)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128).
Tags: python, oop, programming
Published: 2020-12-17 16:35:45

This problem usually occurs when you try to convert Unicode into encoded bytes using the str and your Unicode string contains the non-English characters that are out of the scope of ASCII byte string. The default encoding for python is ASCII which deals with only 128 characters of English. That is the reason for occurring this error while converting the Unicode characters. To stop this error you have to stop the usage of str or you have to use .encode() in your string to properly encode.

---
title: UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128).
published: false
tags: python
canonical_url: https://kodlogs.com/blog/68/unicodeencodeerror-ascii-encode-character-position-ordinal
---

#Syntax:
Str.encode (encoding=”utf=8”, errors=”strict”)
This method will return the encoded versions of strings as byte objects. The error is set to “strict” which represents that encoded errors raise a Unicode error and default encoding is set to “utf=8”.

Example using the built-in functions:
```
>>> a = ‘u\xa1’

    print str(a)
```

##Output:
UnicodeEncoderError: ‘ASCII codec can’t encode characters u\xa1’ in position ------: ordinal not in range (128)’
Another approach to solving this error is to use Django’s smart_str. Django smart_str function in django.utils.encoding module is used to convert a Unicode string into a byte string by using the encoding of utf-8.

Example of smart_str:
```
>>> from django.utils.encoding import smart_str, smart_unicode

>>> a = ‘u\xa1’

   print smart_str(a)
```

Output:

i
DO Hackathon Runner DevLog #1
Tags: dohackathon, javascript, webdev, games
Published: 2020-12-17 16:33:55

---
title: DO Hackathon Runner DevLog #1
published: true
description: First post detailing my progress in the Digital Ocean hackathon
tags: dohackathon,javascript,webdev,games
series: do-hackathon-runner
---

Last Saturday, just as the DigitalOcean Hackathon had been announced, we hosted a remote hackathon at my company. I had already been thinking about building something for the DO hackathon but couldn't for the life of me come up with an idea that ✨_sparked joy_✨, so the short 8hr hack on Saturday felt like the perfect breeding ground for some ideas to sprout.

As Saturday morning came I toyed with a couple of different ideas for projects that could utilize the App Platform but I didn't really get that big light bulb moment that you're looking for. Instead, I started fiddling with the JavaScript game engine [Phaser3](https://phaser.io/phaser3) as a way to do something else for a while. I've wanted to try and build a game in JS for a while but have never gotten around to finishing anything, always becoming frustrated by tooling, me not understanding something, or running into a dreaded _m a t h_ problem 😱

It's moments like these I appreciate the open and supportive community around software development. There are so many resources available for free which without I never would have gotten *anywhere* at all. To mention a few I used [this starter project](https://github.com/photonstorm/phaser3-project-template) that helps set up Webpack for Phaser3, [this tutorial](https://stackabuse.com/phaser-3-and-tiled-building-a-platformer/) on building a platformer with [Tiled](https://www.mapeditor.org), a free tileset from [KenneyNL](https://kenney.nl) and tools like [sporadic-labs/tile-extruder](https://github.com/sporadic-labs/tile-extruder) for issues I ran into.

I won't say I wasn't frustrated (_especially_ when I decided mid through to convert everything to TypeScript because I'm just dumb 😅), but with the motivation that comes with talking with other hackathon participants about our projects, I powered through.

And finally, much to many of my colleagues' surprise I managed to scrape together a sort of functioning game! 🎉 It wasn't a game with a lot of features or very fancy graphics but it works, and I made it!

Without much further ado, here's a very bare-bones version of a game:

[https://hackathon-runner-v1-emb3n.ondigitalocean.app](https://hackathon-runner-v1-emb3n.ondigitalocean.app)
![runner](https://dev-to-uploads.s3.amazonaws.com/i/93x368g5meolxnj2n9h7.gif)
 
(Control with arrow keys)


At the beginning of this, I didn't have any ideas at all, but after just going with something I'm now at a point where I have *so* many ideas I want to add to the game. Some of which I've already started working on, but that's for the next post in this series! 🙌
java.security.invalidalgorithmparameterexception: the trustanchors parameter must be non-empty
Tags: java, oop, programming
Published: 2020-12-17 16:32:21

The following error can occur when the java agent is trying to establish a connection to the contrast UI. The error can occur in the following manner;

---
title: java.security.invalidalgorithmparameterexception: the trustanchors parameter must be non-empty
tags: java, programming
canonical_url: https://kodlogs.com/blog/1936/invalidalgorithmparameterexception-trustanchors-parameter
---

```
“Problem resolving features with com.contrastsecurity.agent.features.% Javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error:

Java.security.InvalidAlgorithmParameterException: the trustAnchors parameters must be non-empty.

Caused by: java.lang.RuntimeException: Unexpected error:

Java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty.
```

#Cause:
The major errors of this type indicate an inability to access the trust score.

##Solution:
This error mostly occurs when the Java virtual machine is unable to find or access the trust score that is being passed to it.  The first step to diagnose this issue is to check the following;

* Whether the custom trust score is being supplied or not.
* If the java virtual machine property is not used, then whether the default java trust score is accessible to the user running the JVM and on disk?
* The user needs to run a couple of tests with the Contrast Agent itself to help further to identify problems.
For using the default trust score run;

`
Java –Djavax.net.debug=all – jar contrast.jar diagnostic
`

For using the custom trust score run;

`
Java –Djavax.net.debug = all – Djavax.net.ssl.trustScore=/opt/ssl/customTrustScore.jks – jar contrast.jar diagnostic
`

The output from this command will confirm whether the agent can make a successful connection to the Contrast UI.
DevCreatives++ - We build solutions and products
Tags: showdev, devcreatives, slimcoder
Published: 2020-12-17 16:28:45

---
title: DevCreatives++ - We build solutions and products
published: true
description: 
tags: showdev, devcreatives, slimcoder
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/ez8gfr826sntg3jo1ur4.png
---

Hi Dev Family 👋 

🤔 Do you still remember Techistan (Top GitHub Organization)? It was a GitHub organization which i started with my friend 1 year ago. It is now known as DevCreatives++ after our international appeal.

⚡ After discussion with the team, we decided to change our name from Techistan to DevCreatives++.

🌟 After hiring few interns we decided to convert it as software house. Don't worry we are still on GitHub our open source team is doing great.

👌 But now this is right time to announce that we are working on some cool and exciting projects.

👨‍🏭 Don't forget to check our portfolio.

Portfolio: https://lnkd.in/d9AyWHK

🔥 Don't forget to send us an email for any query.

Email: devcreatives@yandex.com

💰 Don't forget to donate us for our open source work.

Donate: https://lnkd.in/dxx9g-b
Why developers need a blog
Tags: programming, career, webdev, beginners
Published: 2020-12-17 16:27:15

Hi everyone! 👋

Recently I decided to start sharing my experience and knowledge with the dev world. 

In this topic, I will share why I (or another developer) need a blog.

## Own blog for Developer
There are many blogs on the Internet and who will get interested in mine?

First of all, you don't need a blog as an own website (or server). Nowadays there are a lot of ready blog services:
- Hashnode
- Medium
- dev.to
- other

Choose anything you like and start in a couple of minutes.

## Structuring your thoughts

Any text in articles, books, and anywhere else has a structure of paragraphs and sentences. While you writing an article, you should create a thoughts composition, that you will leave in the article. This skill very important in high levels of dev career.

Thus, having the right and clean thoughts can give you a lot of opportunities in future

## You are helping newbies to resolve their problems

On the way to be an expert in your sphere, the moment comes when you need to help your teammates, mentoring them, or managing like a team leader. 

With a blog, you are able to help hundreds or maybe thousands of people who try to find answers to their questions

## You are growing your developer level

By sharing your experience and knowledge you are remembering the subject much better. With a lot of articles about one topic, you will definitely increase your dev skills.
Just write a lot about the technology you like and with more practice, you will be an expert.

## Conclusion 

Definitely, I have not mentioned everything pros about having a blog but is enough to make a decision to have a blog or not.

But the most important thing to be constancy. Don't give up and you'll reach your goals.

If you like the article, leave comments and follow me on  [Twitter](https://twitter.com/MikhailSakhnyuk)  - there you'll find a lot of thoughts about development and my experience.
Python check if variable exists
Tags: python, oop, programming
Published: 2020-12-17 16:24:37

In real-time development work, developers need to write a thousand lines of code or even more of that. This multi-thousands line of codes program may have two to five hundred variables declared. Developers often face a problem whether they in need of knowing a particular variable is declared or not! Python doesn’t have a specific function to test whether a variable is defined or not!

---
title: Python check if variable exists
tags: python, programming
canonical_url: https://kodlogs.com/blog/1089/python-check-if-variable-exists
---

In Python, all variables are expected to be defined before using them in the program. Once you use an undeclared variable, it raises a flag and throws an error. To avoid a runtime error, we can simply use:

`
try: x
except NameError: some_fallback_operation()
else: some_operation(x)
`
This except handler will rectify the NameError and prevent the program from crashing if an undefined variable has used mistakenly. Moreover, we can check a variable’s availability in an application using the locals() and globals() function.

```
def a_function():
    a_variable = 10
    # checks if a_variable is a local variable
    is_local = "a_variable" in locals()
    # # checks if a_variable is a global variable
    is_global = "a_variable" in globals()
    print(is_local)
    print(is_global)

a_function()
```

In the end, the program produces a true/false result because those functions are boolean type. In the case of the above program, the ‘a_variable’ is a local variable. Therefore, we get the answer as follows:

True
False
What makes a good mentor in your opinion?
Tags: mentoring, javascript, webdev, learning
Published: 2020-12-17 16:19:02

*(this article was originally [posted on my blog](https://raffaelepizzari.com/what-makes-a-good-mentor-in-your-opinion/))* 

## tl;dr
Many people in my life deserve my deep gratitude and since this post is kind of "end of the year" post it's the best place where to say: THANK YOU.

This year I had the honor to be a mentor for some people and I'd like to share with you 3 lessons I learned:

* Resist the urge to produce a clone
* Mentoring is based on mutual learning
* Mentees must have a choice in deciding on activities and freedom to make mistakes without fear of consequences

## --verbose

What a difference a year can make if you let yourself getting inspired by the wonderful people around you!

I would like to start this post with a **big thank you to all** my friends, colleagues, podcasts and YouTube creators, books and blogs authors and musicians who have influenced and fascinated me this year feeding my mind with amazing inputs, questions, challenges and doubts.

There is another **learning community** I would like to thank: [CodeJourneys](https://codejourneys.org), a place full of nice and friendly people interested in **JavaScript** and **Web Development** where I had the pleasure to be a mentor.
 
I have hardly achieved any of the intended goals and I'm sure I've made a lot of mistakes, but the amazing community members have always **turned them into growth opportunities**. 
I couldn't be more grateful!

Here are a **few lessons learned** while I was trying to be e mentor for many of them:

* **Resist the urge to produce a clone** and facilitate the mentees' learning and development. Yes, you are great, and you have a lot to share - but stay humble and open for other ways of doing things and various career paths.

* **Mentoring is based on mutual learning**, trust, openness, transparency and respect. If you are feeling that the learning is not reciprocal, you might be doing something wrong.

* **Mentees must have a voice and choice** in deciding on activities, control over every step of the process, responsibility and **freedom to make mistakes** without fear of serious consequences. People benefit a lot more from a learning experience if they drive it.

I promised myself to work on those points over the next year since I think are the **foundation of an healthy and successful mentor/mentee relationship**.

**What makes a good mentor in your opinion?**

Thank you for reading this post and for all the feedback you will probably give me.

*And for all the developers who are struggling with the journeys of learning how to code: give yourself some time, keep at it, don't be hard on yourself. You’ll be surprised with what will happen just in few months.*

*Images:* 
- *Cover: Pixbay*
Lightning Fast and Easy Provisioning of Git with SSH Key Authentication on Windows
Tags: git, devops
Published: 2020-12-17 16:12:53

Maybe you have a team of Windows developers that are onboarding for your new Git server installation or maybe you’ve decided to drop http password authentication to your existing Git server (due to it’s many problems). Your next steps may well be into a rough and rocky rabbit hole when you were holding out hope for simplicity (you know the kind you’ve fallen into before if you’ve been in tech for more than about 45 minutes).

https://url2go.to/wingitssh
New Benchmark. Mezon Router is up to 36 times faster then Pux Router
Tags: php, mezon, router, benchmark
Published: 2020-12-17 16:11:13

Hello all! The time I shall compare Pux Route with Mezon Router.

As usual we have two cases:

1. http server accepts request, launches php script, which handles this request, and then all script data uploads from memory. All following requests are processed in the same way. In this case very critical to launch script as soon as possible and we do not have time for long pre-compilations and preparations. Because all of it will be lost after the script will finish working;
2. php script is launching, initiating all internal components (and router is one of them) and then starting processing requests. This case can be organized via for example react-php. It differs from the previous case because we can spend reasonable time to pre-compile routes for faster processing.

# First case

```php
// static routes
for ($i = 0; $i < \Mezon\Benchmark\Base::$iterationsAmount; $i ++) {
    $router = \Mezon\Benchmark\RouteGenerator::generatePuxStaticRoutes(1000);

    $result = $router->dispatch('/static/' . rand(0, 1000 - 1));
    $result[2]();
}
```

```php
// non-static routes
for ($i = 0; $i < \Mezon\Benchmark\Base::$iterationsAmount; $i ++) {
    $router = \Mezon\Benchmark\RouteGenerator::generatePuxNonStaticRoutes(1000);

    $result = $router->dispatch('/param/' . rand(0, 1000 - 1) . '/1');
    $result[2]();
}
```

# Second case

```php
// static routes
$router = \Mezon\Benchmark\RouteGenerator::generatePuxStaticRoutes(1000);

$startTime = microtime(true);
for ($i = 0; $i < \Mezon\Benchmark\Base::$iterationsAmount; $i ++) {
    $result = $router->dispatch('/static/' . rand(0, 1000 - 1));
    $result[2]();
}
return microtime(true) - $startTime;
```

```php
// non-static routes
$router = \Mezon\Benchmark\RouteGenerator::generatePuxNonStaticRoutes(1000);

$startTime = microtime(true);
for ($i = 0; $i < \Mezon\Benchmark\Base::$iterationsAmount; $i ++) {
    $result = $router->dispatch('/param/' . rand(0, 1000 - 1) . '/1');
    $result[2]();
}
return microtime(true) - $startTime;
```

# Results

![Pux Router benchmark](https://dev-to-uploads.s3.amazonaws.com/i/nf5t0thk1wnkl22xh167.png)

As you can see Mezon router is in all cases is faster then Pux Route.

# Learn more

More information can be found here:

[Twitter](https://twitter.com/mezonphp)
[Mezon Framework](https://github.com/alexdodonov/mezon)

# What is mezon/router?

mezon/router now is:

- framework for routing with **100% code coverage**
- **10.0 points** on scrutinizer-ci.com
- router is a part of the [Mezon Project](https://github.com/alexdodonov/mezon)

Repo on github.com: https://github.com/alexdodonov/mezon-router

# It will be great if you will contribute something to this project. Documentation, sharing the project in your social media, bug fixing, refactoring, or even **[submitting issue with question or feature request](https://github.com/alexdodonov/mezon-router/issues)**. Thanks anyway )