teleren/devto huggingface dataset:
How to use Spring Kafka JsonSerializer (JsonDeserializer) to produce/consume Java Object messages
Tags: springkafka, jsonserializer, jsondeserializer, springboot
Published: 2021-04-29 10:59:16

https://grokonez.com/spring-framework/spring-kafka/how-to-use-spring-kafka-jsonserializer-jsondeserializer-to-produceconsume-java-objects

How to use Spring Kafka JsonSerializer (JsonDeserializer) to produce/consume Java Object messages

In the previous <a href="https://grokonez.com/spring-framework/spring-boot/how-to-start-spring-kafka-application-with-spring-boot">post</a>, we had setup a <strong>Spring Kafka Application</strong> succesfully by explicitly configuration <strong>Kafka Factories</strong> with <strong>SpringBoot</strong>. But the messages had been used have <strong>String</strong> type. While in the development, <strong>POJO</strong> (Plain Old Java Object) are often used to construct messages. So with the tutorial, <strong>JavaSampleApproach</strong> will show how to use <strong>Spring Kafka JsonSerializer</strong> (<strong>JsonDeserializer</strong>) to produce/consume Java Object messages.

Related Articles:
- <a href="https://grokonez.com/spring-framework/spring-boot/how-to-start-spring-kafka-application-with-spring-boot">How to start Spring Kafka Application with Spring Boot</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/start-spring-apache-kafka-application-springboot">How to start Spring Apache Kafka Application with SpringBoot Auto-Configuration</a>

<!--more-->
<h2>I. Technologies</h2>
– Java 8
– Maven build
– Spring Boot
– Apache Kafka
– Spring Tool Suite editor
<h2>II. Overview</h2>
<img src="https://grokonez.com/wp-content/uploads/2017/06/Spring-Kafka-Application-architecture-2.png" alt="Spring Kafka Application - architecture" width="359" height="397" class="alignnone size-full wp-image-5973" />

In the tutorial, we send and receive Java object messages to/from <strong>Apache Kafka</strong>, so <strong>ProducerFactory</strong> uses <code>JsonSerializer.class</code> and <strong>ConsumerFactory</strong> uses <code>JsonDeserializer.class</code> to serialize/deserialize Java objects to Json bytes.

- <strong>KafkaProducerConfig</strong>:



More at:

https://grokonez.com/spring-framework/spring-kafka/how-to-use-spring-kafka-jsonserializer-jsondeserializer-to-produceconsume-java-objects

How to use Spring Kafka JsonSerializer (JsonDeserializer) to produce/consume Java Object messages
Another react-spring based component: react-spring-dialog
Tags: react, reactspring, components, library
Published: 2021-04-29 10:40:21

Hi to all! Today I'm happy to announce the release of my second open source library. Yes, it's another dialog component I know but, if you like, take a look at it :)

## Features

- Excelent performances thanks to `react-spring`.
- **Accessibility** ready thanks to the use of `focus-trap-react` among other things.
- Easy to style and to configure: no more headaches or hacky things trying to make the Dialog looks like we want.

## How to use it

```tsx
import { Dialog } from 'react-spring-dialog'

export function Component() {
  const [isActive, setIsActive] = useState(false)

  return (
    <Dialog isActive={isActive} onClose={() => setIsActive(false)}>
      <div>Dialog content</div>
      <button onClick={() => setIsActive(false)}>CLOSE</button>
    </Dialog>
  )
}
```

##Repository
[Visit here](https://github.com/Emiliano-Bucci/react-spring-dialog)

## Official documentation

[Visit here](https://react-spring-dialog.emilianobucci.com)

Accessible, easy to use, smooth animations, and fully configurable!
ActiveMq – Explicitly configure Spring ActiveMq ConnectionFactory with SpringBoot
Tags: activemq, springboot, connectionfactory
Published: 2021-04-29 10:40:01

https://grokonez.com/java-integration/spring-jms-explicitly-configure-spring-activemq-connectionfactory-springboot

ActiveMq – Explicitly configure Spring ActiveMq ConnectionFactory with SpringBoot

In the past <a href="https://grokonez.com/spring-framework/spring-boot/use-spring-jms-activemq-jms-consumer-jms-producer-spring-boot">tutorial</a>, we had learned how to start a Spring JMS ActiveMQ application with auto-configured ConnectionFactory by SpringBoot. 
But in the software development, there're many cases that we need to override the ContainerFactory, so How to do it? <a href="https://grokonez.com">JavaSampleApproach</a> makes the tutorial to guide how to explicitly configure <strong>Spring ActiveMQ ConnectionFactory</strong>.

Related posts:
- <a href="https://grokonez.com/spring-framework/spring-boot/use-spring-jms-activemq-jms-consumer-jms-producer-spring-boot">How to use Spring JMS with ActiveMQ – JMS Consumer and JMS Producer | Spring Boot</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/how-to-start-spring-kafka-application-with-spring-boot">How to start Spring Kafka Application with Spring Boot</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/spring-jms-activemq-send-java-object-messages-activemq-server-specially-bi-directional-relationship-java-objects">Spring Jms ActiveMq – How to send Java object messages to ActiveMQ server (specially with Bi-Directional relationship Java objects)</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/activemq-work-spring-jms-activemq-topic-publisher-subcribers-pattern-using-springboot">ActiveMq – How to work with Spring JMS ActiveMq Topic (Publisher-Subcribers pattern) using SpringBoot</a>

<!--more-->
<h2>I. Technologies</h2>
– Java 8
– Maven 3.6.1
– Spring Tool Suite: Version 3.8.4.RELEASE
– Spring Boot: 1.5.4.RELEASE
- Apache ActiveMQ 5.13.0
<h2>II. Spring ActiveMq connection-factory</h2>
For configuring <strong>ActiveMQ ContainerFactory</strong>, we need to setup a new bean <code>ConnectionFactory</code> to override the auto-configured connection-factory bean of SpringBoot.

More at:

https://grokonez.com/java-integration/spring-jms-explicitly-configure-spring-activemq-connectionfactory-springboot

ActiveMq – Explicitly configure Spring ActiveMq ConnectionFactory with SpringBoot
ActiveMq – Explicitly configure Spring ActiveMq ConnectionFactory with SpringBoot
Tags: springboot, activemq, conntectionfactory
Published: 2021-04-29 10:37:50

https://grokonez.com/java-integration/spring-jms-explicitly-configure-spring-activemq-connectionfactory-springboot

ActiveMq – Explicitly configure Spring ActiveMq ConnectionFactory with SpringBoot

In the past <a href="https://grokonez.com/spring-framework/spring-boot/use-spring-jms-activemq-jms-consumer-jms-producer-spring-boot">tutorial</a>, we had learned how to start a Spring JMS ActiveMQ application with auto-configured ConnectionFactory by SpringBoot. 
But in the software development, there're many cases that we need to override the ContainerFactory, so How to do it? <a href="https://grokonez.com">JavaSampleApproach</a> makes the tutorial to guide how to explicitly configure <strong>Spring ActiveMQ ConnectionFactory</strong>.

Related posts:
- <a href="https://grokonez.com/spring-framework/spring-boot/use-spring-jms-activemq-jms-consumer-jms-producer-spring-boot">How to use Spring JMS with ActiveMQ – JMS Consumer and JMS Producer | Spring Boot</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/how-to-start-spring-kafka-application-with-spring-boot">How to start Spring Kafka Application with Spring Boot</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/spring-jms-activemq-send-java-object-messages-activemq-server-specially-bi-directional-relationship-java-objects">Spring Jms ActiveMq – How to send Java object messages to ActiveMQ server (specially with Bi-Directional relationship Java objects)</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/activemq-work-spring-jms-activemq-topic-publisher-subcribers-pattern-using-springboot">ActiveMq – How to work with Spring JMS ActiveMq Topic (Publisher-Subcribers pattern) using SpringBoot</a>

<!--more-->
<h2>I. Technologies</h2>
– Java 8
– Maven 3.6.1
– Spring Tool Suite: Version 3.8.4.RELEASE
– Spring Boot: 1.5.4.RELEASE
- Apache ActiveMQ 5.13.0
<h2>II. Spring ActiveMq connection-factory</h2>
For configuring <strong>ActiveMQ ContainerFactory</strong>, we need to setup a new bean <code>ConnectionFactory</code> to override the auto-configured connection-factory bean of SpringBoot.

<pre><code class="language-java">
...
@Bean
public ConnectionFactory connectionFactory(){
    ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
	...
    return connectionFactory;
}</code></pre>

Then use the <code>ConnectionFactory</code> bean to configure 2 beans <em>{JmsListenerContainerFactory, JmsTemplate}</em>:

More at:

https://grokonez.com/java-integration/spring-jms-explicitly-configure-spring-activemq-connectionfactory-springboot

ActiveMq – Explicitly configure Spring ActiveMq ConnectionFactory with SpringBoot
How to Increase Productivity by Improving Time Management
Tags: productivity, timemanagement
Published: 2021-04-29 10:06:39


Time Tracking Software
In the current challenging business scenario, complexities and competition always keep you on your toes. In such a situation, as a manager, you need to find ways to keep all employees active and engaged to ensure that the work is done properly and on time. Here are some of the top ways for increasing the productivity of your team members through time tracking tool. 

Top Tips to Increase Productivity of Employees
1. Time Audit
Most people have no idea of how much time they are wasting. Though occasional breaks are good for productivity, it is dangerous to get distracted or taking longer for completing the tasks. It can disrupt productivity badly, and therefore, project managers need the time audit. It can raise awareness among the team members or employees on how time is spent.  

Employees can easily track how much time they are spending on particular activities through a time tracking tool. It can give them a day’s picture for all activities. However, time audits need honesty because the hours spent can directly relate to the duration of a job to be completed. It is fair to mention that time audit is a tricky task and requires micromanaging for getting optimum output. 

2. Workload Reassessment
The task management software can show the real-time status of all tasks and subtasks. Project managers can easily see which employees are working on the task and who are free to assign workloads. All they need to blur the traditional barriers between KRAs and allocate additional tasks to free resources to complete the project on time. 

With clear communication and a trustworthy work environment, employees can avoid stress efficiently and free or underworked employees can get productive activities. 

3. Breaks
Taking breaks is a welcome step as they have a significant impact on productivity. Five minutes to walk around and get a sip of water can refresh the brain and keep it charged to handle difficult tasks. 

4. Stand-up Meetings
It is a concept of agile project management and nowadays, many enterprises use it on a daily basis. Though this is a useful concept for software development, your employees can easily identify challenges or barriers that prevent them to complete their goals. 

Original Source: https://www.taskopad.com/blog/how-to-increase-productivity-by-time-management/
How to use Recursion in Java
Tags: java, recursion, programming, competitiveprogramming
Published: 2021-04-29 10:03:27

Hey Everyone, We all know that recursion is very important concept for competitive programming. In this article. You will get the idea that how to use recursion in java. So before start coding we will know that what is recursion.

##What is Recursion?
Recursion is the process when a method call itself again and again till the give problem is solved or base statement is hit to stop recursion. Know we know that how recursion works so, Now we will discuss about How recursion works.

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

**Now We know that how recursion Works. Now we have to know how to create recursion.**

##Steps to create recursion:-
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rs8qgeiqwn8icewbdx0t.png)

##Example of Recursion with Code
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h3ec95c1r8jm9xip52q6.png)
 
**I hope this article help you to learn recursion better.**
>If you have time to understand recursion more better and you know hindi that you can watch my youtube video to learn recursion in a more better way.
[here is the video](https://youtu.be/aMTN6kJyHsM)
Thanks for reading this article.
Have you ever attended pointless meetings?
Tags: watercooler, productivity, career, communication
Published: 2021-04-29 10:02:25

---
title: Have you ever attended pointless meetings?
published: true
description: 
tags: watercooler, productivity, career, communication
cover_image: https://www.billhighway.co/wp-content/uploads/2020/03/Virtual-Meeting-thegem-blog-timeline-large.jpg
---
All business organizations rely on meetings as an essential component of coordinating work and people, yet most of us would agree that many of these meetings are inefficient and ineffective.

Poorly organized meetings and meetings just for the matter of them being held are just two examples, where you might feel you are wasting your time and would do something more productive instead.

Have you ever come across situations like these? How did you manage to deal with those cases?
Match your CTO with a software robot!
Published: 2021-04-29 10:01:28

The world is changing, and businesses are exploring ways to make these changes work for their long-term achievement. One of the numerous improvements in recent years is that the availability of automated operations through [RPA](https://fastpathautomation.com/). 

[Robotic Process Automation](https://fastpathautomation.com/) changes the way a company operates, from the ground floor to the executive suite. For the ones that find themselves in the role of Chief Technology Officer (CTO), these changes will have a large effect on their day-to-day work in addition to the length of their future career path.

<b>RPA brings the change</b>

For a company to be profitable, it's vital to avoid making changes for the sake of making changes. Every decision, every procedure, every alteration to the current way things are done should have a purpose and an objective. When it comes to integrating RPA, the changes will resonate throughout the whole organization. Therefore, it is important that somebody oversees these changes and makes tactical decisions regarding processes.

Automating infrastructure performance monitoring is a purely IT-related procedure, whereas making changes in the production area isn't. That means that there could be a disconnect between what falls under the operations umbrella and what is happening in IT.

<b>Plan your business future</b>

The fear that automation and robotics will replace the need for human workers (in other words, the older “robots are stealing our jobs" story) is becoming more widespread as AI and automation evolve. The ultimate objective of integrating RPA would be to steer business toward the future, helping it stay competitive in a shifting business landscape. Again, this in-depth understanding of the supply chain setting provides the CTO invaluable insights into not only how integrating RPA into the company model will change the business enterprise, but also where it can take the company in the future. This offers the CTO a key part in long-term tactical planning.

They will need to work with the larger executive staff to identify how robotic process automation will affect each area of the company, how it could be scaled over time, what possible challenges and barriers can restrict the chance for success, and how to bring it all together. This requires being able to handle a team that could identify even the minor impacts; it is often the tiny changes that get overlooked and cost the company time and money in supply chain openings.

<b>Conclusion</b>

For RPA to be successfully implemented into a company, the CTO will need to advocate for the workers that fall under their umbrella. They'll have to be equally open to change, but ready to identify when something is not going to work. Implementing RPA can drastically change the processes of the company, both today and in the future. Having the right person in the CTO's seat may be the deciding factor on the success of their execution.
heksadecimal java rustlang phur digitization
Tags: typescript, flutter, webdev, rust
Published: 2021-04-29 09:38:01

heksadecimal in skotlish ( [scots](https://en.wikipedia.org/wiki/Scots_language) )= hexadecimal in English , where spelling is only option.
maths can have decimal or heksadecimal as base :
decimal maths : 0123456789 , 5+5=10=ten=5*2
heksadecimal maths : 0123456789LJQWXF , 8+8=10=vnti=4*4
to see images phur heksadecimal maths pliiz vizit [zava810](https://github.com/zava810/kontent/blob/main/imez/zpg_png/h40kaunt.jpg)
Do you default to empty Object when destructuring function parameters?
Tags: javascript, discuss
Published: 2021-04-29 09:31:45

Destructuring function parameters is so handy:

```js
const fn = ({ foo, bar }) => console.log(foo, bar)
```

However, calling with no args yields to `TypeError: Cannot destructure property 'foo' of '_ref' as it is undefined.`

How do you approach this (consistently; by convention)?

a) just let the code run into this error and let it bubble up to a higher-order try-catch?

```js
const fn = ({ foo, bar }) => console.log(foo, bar)

exort const whatever = function (argsFromOutside) {
  try {
    return fn(argsFromOutside)
  } catch (e) {
    // log error etc.
    return null
  }
}
```


b) default to empty Object?

```js
const fn = ({ foo, bar } = {}) => console.log(foo, bar)
```

If so, do you also default the Object's parameters to defaults? Like so:

```js
const fn = ({ foo = {}, bar = {} } = {}) => console.log(foo.y, bar.x)
```

I had this particular case and it made the code more and more unreadable...

c) destructure inside the function

```js
const fn = (args) => {
  if (!args) return
  const { foo, bar } = args
  console.log(foo, bar)
}
```

This obviously is not really the same parameter destructuring as in the original example.

d) Something else?
How many domains have you let expire?
Tags: watercooler, webdev, domain
Published: 2021-04-29 09:28:57

---
title: How many domains have you let expire?
published: true
description: 
tags: watercooler, webdev, domain
cover_image: https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Teaser/sperrfrist-domains-t.jpg
---
Unsuccessful project ideas, thoughtless domain structure, or domains purposely bought for temporary projects/testing might all be reasons to let the domain names expire.

How many have you let expire and what were the reasons?
Wordlist and Password Generator
Tags: security, password
Published: 2021-04-29 09:12:26

Easily create permutations and combinations of words with predefined sets of extensions, words and patterns/function to create complex endpoints, wordlists and passwords. Easy UX, Checkout Usage

[Cook – Wordlist and Password Generator](https://kali-linuxtr.net/cook-wordlist-and-password-generator)
Installing MySQL on MacOS
Tags: mysql, macos
Published: 2021-04-29 09:11:59

Well, we think the easiest way to install MySQL, in that case, is to use open-source software called Homebrew.

Homebrew is a powerful package management system that helps us install software tools on MacOS and any other Unix-based system. Therefore, you’ll need to make sure you’ve set up Homebrew before installing MySQL.
You can refer to Homebrew’s website to learn more details.

https://brew.sh/

That said, we will now guide you through its installation.

Step #1 Installing Homebrew
Open Terminal and execute the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Whether you are using MacOS or another Unix-based system, this command will access the GitHub repository where the source code of Homebrew has been stored. All you have to do is download it and install it on your system.
Once you’ve set up Homebrew correctly, you can proceed with Step #2.
 
Step #2: Installing the MySQL Server and Workbench.
At that stage, there will be no easier job than installing these two. To install the MySQL Server, open the terminal window again, if you had closed it, and execute the following command:

brew install mysql

Very quickly, the MySQL Server will be all set up and configured for you. However, we need to make sure that it has been started. A way to do that is to start an instance of that server.
You can start a server instance by running the following command in Terminal:

brew services start mysql

Then, you can check anytime if the server has been started successfully by executing the following command in Terminal:

brew services list

As you do that, a list with the Homebrew-related services will appear and the service of the MySQL Server should read started.
At that point, what’s left to do is download MySQL Workbench from the official MySQL page:

https://dev.mysql.com/downloads/workbench/

Scroll down to select the operating system you are using and install Workbench in the same way you would install any other application.

That’s it! You can now launch Workbench and proceed with the next section.
Prettier and Standard in VSCode
Tags: writing, vscode, tools, javascript
Published: 2021-04-29 08:59:24

---
title: Prettier and Standard in VSCode
description: The easiest way to use Prettier and Standard together in VSCode
canonical_url: https://zellwk.com/blog/prettier-standard/
tags: writing, vscode, tools, javascript
cover_image: https://zellwk.com/images/2021/prettier-standard/prettier-standard.gif
published: true
---
[Prettier](https://prettier.io) is an opinionated tool that helps you format code. I love Prettier, but I don't like its opinions with JavaScript. I prefer using [Standard](https://standardjs.com) for JavaScript because it doesn't have semicolons (which makes the code cleaner to read). 

It used to be complicated to use Prettier and Standard together. We had to [disable Prettier for specific languages](https://zellwk.com/blog/prettier-disable-languages). Thankfully, there's a simpler way now. 

We can use an extension called [Prettier Standard VSCode](https://marketplace.visualstudio.com/items?itemName=numso.prettier-standard-vscode). It changes JavaScript from the Prettier default format into Standard.

I've tested this extension and it continues to work like all other Prettier extensions like `.html` and `.css`. 

The good thing about using Prettier Standard VSCode is we can continue to use Standard in files with mixed syntaxes like HTML and markdown. 

Here's an example where I edited markdown with Prettier:

<figure role="figure">
  <img src="https://zellwk.com/images/2021/prettier-standard/prettier.gif" alt="Markdown edited with Prettier">
</figure> 

And here's one with Prettier Standard. 

<figure role="figure">
  <img src="https://zellwk.com/images/2021/prettier-standard/prettier-standard.gif" alt="Markdown edited with Prettier Standard">
</figure> 

For languages that Prettier doesn't support, you can always [overwrite Prettier with a different formatter](https://zellwk.com/blog/prettier-disable-languages#enabling-prettier-globally-but-disabling-it-in-specific-languages), like this: 

```json
"[nunjucks]": {
  "editor.defaultFormatter": "okitavera.vscode-nunjucks-formatter"
},
```
I hope this helps you set up your JavaScript environment!

<hr>

Thanks for reading. This article was originally posted on [my blog](https://zellwk.com/blog/prettier-standard/). Sign up for [my newsletter](https://zellwk.com) if you want more articles to help you become a better frontend developer.