teleren/devto huggingface dataset:
what is Trend micro antivirus security? 
Tags: security, software, antivirus, cybersecurity
Published: 2021-04-25 11:30:53

In this post, we will know <a href="https://dev.to/clabsandy0/what-is-trend-micor-antivirus-security-16jm/	">what is Trend micro antivirus security?</a> and how can we use it and download it on our computer:-

Trend Micro security software protects your computer from ransomware, virus, and also saves time and reduces hacking efforts. and it works best inside the network, Very user-friendly, anyone that knows how to read can use it. This performance of security is hit, no hardened browser, webcam protection, and very useful feature for us. that is why we need this type of securities for our daily life then we will feel safe.

[![clabsandy0's DEV Community Profile](https://d2fltix0v2e0sb.cloudfront.net/dev-badge.svg)](https://dev.to/clabsandy0)


<h2>Here how about people interested in trend micro security software can download it on their computer:</h2>

How to Install Trendmicro with activation code? 

To install Trend Micro Activation Code you need to <a href="https://activationpage.com/trendmicro-exe-file/">Visit  download trend micro exe file !</a>
 first. Now again there are several trend micro exe files depending on the variant you are going to install. We will discuss this further in this blog. Additionally, you can talk to any of our online experts with chat to get the exact TrendMicro exe file.

<b>Which is better webroot or trend micro?</b>

Webroot not only offers more security-enhancing features and extra utilities in its security suite but provides better malware protection with minimal impact on system performance. Also, trend micro security suites are cheaper than webroots.
Day 42 of 100 days of SwiftUI
Tags: swift, 100daysofcode
Published: 2021-04-25 11:16:49

I just completed day 42 of 100 days of SwiftUI. Today I took the review exercise for the moonshot app and I also worked on the moonshot challenges. I wasn't able to solve all of them so I will take a stab at it later. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bis39k6vhjf1rkq41ned.png)
Understanding Kubernetes in a visual way (in 🎥 video): part 11 – Liveness & Readiness
Tags: kubernetes, devops, docker, beginners
Published: 2021-04-25 11:07:02

---
title: Understanding Kubernetes in a visual way (in 🎥 video): part 11 – Liveness & Readiness
published: true
description: Serie of videos about Kubernetes. Explaining in a visual way Kubernetes principles.
tags: Kubernetes, DevOps, Docker, beginners
series: Understanding Kubernetes in a visual way - (in video) in video
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g1nyw97y8nciylxvdy6v.jpg
---

Understanding Kubernetes can be difficult or time-consuming. In order to spread knowledges about Cloud technologies I started to create sketchnotes about Kubernetes, then I've auto-published a book and since now I've started a new serie of video! :-)

I imagined a serie of short videos with a mix of sketchnotes and speech.

I think it could be a good way, more visual, with audio & video to explain Kubernetes (and others technologies).

This episode is focused on Liveness and Readiness probes.

{% youtube brsRcTQW9eQ %}

The video is in French BUT I done the subtitles in english (and french too).

If you liked the video and are interested to watch another ones, please give me some feedbacks (and you can also subscribe to [my Youtube channel](https://www.youtube.com/channel/UCrRk0kOP58lBMl9B8ZS8Vlg), if you want to ❤️).

If you are interested, I published all the sketchnotes on Kubernetes (and new ones!) to make a "book" of 165 pages: ["Understanding Kubernetes in a visual way"](https://gumroad.com/aurelievache#uCxcr).

If you like theses sketchnotes, you can follow me, I will publish others sketchs shortly :-).
I made a small weekend project, thoughts?
Tags: webdev, javascript
Published: 2021-04-25 11:01:06

So, someone I knew had a google sheet of a lot of youtube channels that are live and I thought, hey we can make a small website out of this. 

Introducing [YT Live](https://yt-live.vercel.app/), it has a list of all the youtube channels mostly news channels, that are live. 

It's made with Nuxt, Firebase, and Nuxt content module.

The code is [open source](https://github.com/fayazara/YT-Live).

Let me know if this is helpful, or just another small project that will I will be forgetting soon.
Spring Jms ActiveMq – How to send Java object messages to ActiveMQ server
Tags: springboot, activemq, jms
Published: 2021-04-25 10:59:43

https://grokonez.com/java-integration/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)

The previous <strong>Spring ActiveMQ</strong> tutorials, We had learned <a href="https://grokonez.com/spring-framework/spring-boot/use-spring-jms-activemq-jms-consumer-jms-producer-spring-boot">How to produce and consume JMS messages with String format</a> and configure <a href="https://grokonez.com/spring-framework/spring-boot/spring-jms-explicitly-configure-spring-activemq-connectionfactory-springboot">Explicity ActiveMq ConnectionFactory</a>. But How to send <strong>Java object messages</strong> to <strong>ActiveMQ</strong> server? With the tutorial, <a href="https://grokonez.com">JavaSampleApproach</a> will show you how to <strong>produce/consume</strong> Java object messages with <strong>Spring JMS ActiveMq</strong> for both case: <strong>normal Java objects</strong> and <strong>complex Java objects</strong> with <strong>Bi-directional</strong> relationship.

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/spring-jms-explicitly-configure-spring-activemq-connectionfactory-springboot">ActiveMq – Explicitly configure Spring ActiveMq ConnectionFactory with SpringBoot</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/resolve-json-infinite-recursion-problems-working-jackson">How to resolve Json Infinite Recursion problem when working with Jackson</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. Sending Java object messages to ActiveMq</h2>
<h3>1. Jms MessageConverter</h3>
We start with a simple model:

<pre><code class="language-java">
public class Company {
    private String name;
	
    public Company(){
    }
	
	...
}</code></pre>

Send a <code>Company</code> object to <strong>ActiveMq</strong>:

<pre><code class="language-java">
jmsTemplate.convertAndSend(queue, new Company("Apple"));
</code></pre>

-> thrown <code>MessageConversionException</code> exception:

More at:

https://grokonez.com/java-integration/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)
JavaScript Promises 101
Tags: javascript, tutorial, beginners
Published: 2021-04-25 10:44:06

Hey there! Are you new to JavaScript? Well, this post is right for you! Mastering promises is a must if you want to become a JavaScript developer!

> A Promise represents a value that's unknown now that may become known in the future; in other words an asynchronous value.
![alt text](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/promises.png "promise")

A Promise is always in one of these states:
- pending: initial state, neither fulfilled nor rejected.
- fulfilled: meaning that the operation was completed successfully.
- rejected: meaning that the operation failed.

___

Now, let's imagine you're hungry (I am now actually) and you're about to order food using a delivery app. You open the app. You find what you want and click order. At that moment, the restaurant/app makes a `Promise` that they will deliver you food. While you're waiting, the delivery is `pending`. In the future, if everything goes according to plan the restaurant/app will `resolve` to deliver you food at which point your order has been `fulfilled`. But in some cases, the restaurant/app might `reject` your order in which case you'll have to order something else. Either way, the original request is finally settled.

### More technical explanation

Now, let's explain it in a more technical language. As a developer, you create a Promise to represent an asynchronous value. But, what you'll actually do more often is consuming promises to use the result of an asynchronous operation in your code.

#### Let's create a Promise.

```javascript
const food = new Promise((resolve, reject) => {
                               //☝️*
  if (delivered) {
    resolve("food delivered 🥘");
    // resolve fulfills promise with passed value
  } else {
    reject("you're still starving... 😭");
    // reject triggers when operation fails
  }
});
```
*👉 executor, f-on that resolves a value or rejects (error)

#### Now let's consume the Promise.
```javascript
food
  .then(value => {
    console.log(value); // food delivered 🥘
  })
  .catch(error => {
    console.log(error); // you're still starving... 😭
  })
  .finally(() => {
    console.log("all settled!");
  });
```
`then` is a function that handles fulfilment. `catch` handles rejection; catches the error. And finally, `finally` is there if you want to run some code no matter what.
___

I hope this helped you get the basic knowledge, an overview of JavaScript Promises :) 

As always, any feedback is greatly appreciated!

Have a great one,
Dalibor
How to use @JsonView to serialize/de-serialize and customize JSON format from Java Object.
Tags: java, springboot, jsonview
Published: 2021-04-25 10:43:29

https://grokonez.com/json/use-jsonview-serializede-serialize-customize-json-format-java-object

How to use @JsonView to serialize/de-serialize and customize JSON format from Java Object.

In the tutorial, <strong>JavaSampleApproach</strong> shows you how to use the <code>@JsonView</code> annotation of <strong>Jackson</strong> library to serialize/de-serialize Java objects and customize the fields of JSON view.

Related articles:
- <a href="https://grokonez.com/java/java-advanced/jackson-converting-java-object-tofrom-json-string">Jackson to convert Java Object to/from Json String</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/integrate-spring-restapis-jsonview">Integrate Spring RestAPIs with @JsonView</a>
- <a href="https://grokonez.com/spring-framework/spring-boot/resolve-json-infinite-recursion-problems-working-jackson">How to resolve Json Infinite Recursion problems when working with Jackson</a>

<!--more-->
<h2>I. Technologies</h2>
– Java: 1.8
– Maven: 3.3.9
– Spring Tool Suite: Version 3.8.4.RELEASE
– Spring Boot: 1.5.4.RELEASE
- Jackson library
- Json library
<h2>II. @JsonView annotation</h2>
For the tutorial, We create 2 models <strong>Company</strong> & <strong>Product</strong>:

- <strong>Company</strong>

<pre><code class="language-java">
public class Company {
	private int id;
	
    private String name;

    private List<Product> products;
	
	...
</code></pre>

- <strong>Product</strong>

https://grokonez.com/json/use-jsonview-serializede-serialize-customize-json-format-java-object

How to use @JsonView to serialize/de-serialize and customize JSON format from Java Object.
Git tip: get back to work after a revert on master 
Tags: git
Published: 2021-04-24 22:02:28

![Git diagram](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/903inki3qfkgkp8efgeq.jpg)

Shit happens.

Sometimes, a **sneaky bug** hid itself into the beautiful change you worked on. It even flew below unit tests' radars and tiptoed without being noticed during manual tests.

Now, this nasty **bug** is live in production and **EVERYONE notices it**, you have to **revert** your changes from master. 😢 

## ↩ The revert

Ok, this is the time where you revert your code:

```bash
# Assuming that you have to create a PR
# for the revert
git checkout master
git pull
git checkout -b fix/revert-superb-change
git revert HASH-OF-MERGE-COMMIT
git push -u origin fix/revert-superb-change
```

Once your PR gets approved, your revert just cancelled everything that was in your cool change.

## 👷 Work on a fix

At this point, the easiest thing to do is to just make a fix on the branch containing all your changes.

```bash
git checkout feat/superb-change
# Work on a fix
# ...
# ...
# ...
git commit -a -m "fix: sneaky bug"
git push
```

## 😨 OMG, if I merge master on my branch, I lose almost all my work

That's it, if you want to prepare your branch to be merged again on master, you'll face another problem:

> Master contains a commit that **removes** the work from your branch.

If you merge master into your feature branch as usual, it will actually remove a large proportion of your changes on your branch. 🤯 

## 🚒 Merge mastery to the rescue

This is the trick: you can **tell git** that a particular commit **had been merged** **without** actually **merging it**.

```bash
git checkout feat/superb-change

# This will allow you to apply all 
# changes between your first merge 
# and the revert, if any
#
# ⚠ It's important to carefully choose
# the commit JUST BEFORE the revert commit
git merge HASH-OF-COMMIT-JUST-BEFORE-REVERT

# This is how you tell git to merge
# without really merging the revert
git merge HASH-OF-REVERT-COMMIT --strategy=ours
```

The option `--strategy=ours` tells git to keep all our **current changes** when merging. 

It means that it will only **record** the merge **without changing anything** in your branch.

It's important to note that you should first merge all changes made **before the revert** in order to correctly apply them. This way, only the revert will be merged without changes on your code.

Once everything had been done, you can proceed as usual:

```bash
# Will merge all changes made after the revert
git merge master
git push
```

And now, your branch is ready to be merged into master, with all your changes!

---

<small>Thanks to [@bryanbraun](https://gist.github.com/bryanbraun) for his awesome [git diagram template](https://gist.github.com/bryanbraun/8c93e154a93a08794291df1fcdce6918).</small>
Best way to convert Word docx to ASCII doc by Pandoc w/o loosing styles
Tags: pandoc, ascii, docx, help
Published: 2021-04-25 10:39:34

Hello Folks,

I have a huge set of content in docx format that i need to move to ASCII docs / adoc format. I have followed the instruction at page https://docs.asciidoctor.org/asciidoctor/latest/migrate/ms-word/ to convert few docs. 
Many custom defined styles in the original word docx template ( such as code block, fonts, styles, ) end up breaking (loosing / misaligned / messed up) and moreover searching such style elements and content and comparing both adoc and docx file side by side for all converted elements is too much painful. (Imagine 300 -400 pages docs of manuals! :( ) . I did try to modify the custom style to match ascii docs format - still not much improvement. 

What are the various customization I could use with Pandoc in such conversion ( docx to Ascii ) to minimize manual work for fixing styles?  ( in particular code blocks, inline code blocks, etc. .)

Is there a way to use a custom variable or style ( highlighting may be? ) that could be tagged to different original word styles so it can be visible (marked distinctly from other styles and elements after conversion so it can be searched and manually fixed) ? 

I dig up the post at https://learnbyexample.github.io/customizing-pandoc/
to find some useful pointers. Planning to test these and see how adoc converted file shows up. Does converting markdown to pdf is similar to converting word docx to Ascii format - does all the customization may hold true in such cases? Any particular command or syntax I could use or look out for?

I would be really thankful if the community could provide useful pointers and thoughts.

PS: Pardon my lack of knowledge and feel free to point out any particular details you may need - I am noob to tech world or programming. 

Appreciate the help! 
Thanks
7 Most popular casual outfit ideas for men. To try in 2021             
Published: 2021-04-25 10:21:33

7 Most popular casual outfit ideas for men. To try in 2021             


1 Black jeans with Grey full sleeves t-shirt
2 Blue jeans with white shirt
3 Ripped jeans with Huddy 
4 Low rise jeans with white t- shirt 
5 Black jeans with Black t-shirt
6 Ankle jeans with Huddie 
7 Navy blue jeans with sky blue shirt.



1 Black jeans with Grey full sleeves t-shirt:-
                                              Black jeans is style that can be easily dress-up with Grey full sleeve T-shirt these casual outfit make you help in look better. Black jeans are the fashion forward finisher in your denim collection this concept of  Black jeans with Grey full sleeves t-shirt create a cool vibes any time in the year. Black denim is a way to differentiate your-self from the else. this is best outfit for the boys.
 

2 Blue jeans with white shirt: 
                               You can choose any color without being wrong but  Blue jeans with white shirt Always match perfectly. it is the best outfit for men of any age. this outfit always comes rescue when you just cant figure out . this is best clothes for boys they can apply any where ( Party, occasion, casual )
 

3 Ripped jeans with Huddy : 
                           if you are planning of an outing wit  fried nothing can be suitable than a Ripped jeans with Huddy when you wear outfit you can wear your gean jacket with you ripped jeans this casual outfit look totally cool & amazing. This is the best casual outfit for men.

4 Low rise jeans with white t- shirt :-
                                       The pair of low rise jeans & white t-shirt with Black jacket will give you a different & energetic look . you will definitely like to wearing it & this out fit give you courage .

5 Black jeans with Black t-shirt:-
                                 This is best outfit for the boys. this outfit looks very alluring & charming ever-time. You should bear on in any where. It is casual as well semi-formal look. It is very classy combination you should try in this year.

6 Ankle jeans with Huddy:-
                          Get leave the boring t-shirt abstraction outfit try something new which are very enticing & comfortable. this outfit best for the boys as well for girls ankle jeans with buddie . this clothes looks very alluring & you feel more comfortable & lively. This is best casual outfit for men.

7 Navy blue jeans with sky blue shirt:- 
                                    This outfit concept looks very prodigious.it is a perfect combination with each other navy blue jeans with sky blue shirt.it gives you attention at the party as well date. it is a best  outfit for men as well alluring outfit forever. you can apply many  color with  navy blue jeans but the sky blue shirt is fabulous combination with each other. best outfit for the boys nowadays.
Can you hack this? #2
Tags: challenge, fun, javascript
Published: 2021-04-25 10:02:21

Write an `isEven` function to check if a number is `even` without using the `modulus` operator.

```javascript
const isEven = (n) => ...

isEven(2) // => true 
isEven('127') // => false
isEven('12abc2') // => false 
```
Throttle API calls
Tags: javascript
Published: 2021-04-25 09:58:32

Sometimes the server may have a limitation to respond to the number of API calls at the same moment.  Making 100s of concurrent calls to a single server will have an impact & it may be assumed as DOS attack.

This can be handled if we could throttle the API calls during implementation.

While throttling the API calls can still be handled from the developer's perspective, however proper checks needs to be done at load balancer or proxy to avoid any type of DOS attacks.

While there are a lot of fantastic npm modules available, I thought of doing a short POC and write a simple one for my own understanding using some generators.

Let me know in the comments if this is the proper approach :)

```
const fetch = require("isomorphic-fetch");
const totalPromiseLength = 5;
const requestMethod = url => () => fetch(url).then(response => response.json());
let promiseArray = [...new Array(totalPromiseLength).keys()].map(index =>
  requestMethod("https://jsonplaceholder.typicode.com/todos/" + (index + 1))
);
function* chunks(arr, limit) {
  for (let i = 0; i < Math.ceil(arr.length / limit); ++i) {
      console.log("requested")
    yield [...arr].slice(i * limit, i * limit + limit);
  }
}

new Promise(async resolve => {
  let generated = chunks(promiseArray, 2);
  let result = [];
  for (let bla of generated) {
    await Promise.all(bla.map(param => param())).then(response => {
        console.log('resolved')
      result = [...result, ...response];
      if (result.length === promiseArray.length) {
        resolve(result);
      }
    });
  }
}).then(response => {
  console.log(response);
});

```
JS interview in 2 minutes / value vs reference
Tags: javascript, typescript, beginners, career
Published: 2021-04-25 09:39:26

---
title: JS interview in 2 minutes / value vs reference
published: true
description: Let's try to figure out how to answer common JS questions in an interview.
tags: javascript, typescript, beginners, career
cover_image: https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/Unofficial_JavaScript_logo_2.svg/1920px-Unofficial_JavaScript_logo_2.svg.png
---

**Question:**
Explain passed by value and passed by reference.

**Quick answer:**
In JavaScript, all primitive values are passed by value, but all non-primitive types are passed by reference. This means you can change params and this change will be isolated (with no side-effects).

**Longer answer:**
So the [primitive types in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures) are `undefined`, `Boolean`, `String`, and others.

Structural types (non-primitive) are `Object` and `Function`. Needed to mention that arrays and other structures have an `Object` type too.

This means when you pass some value to the function its behavior will depend on its type.

![carbon (4)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gd8km98kc719jcs8e1xg.png)
 
**Real-life example:**
In real-life apps, you need to be extra careful when changing any of provided function params, because debugging issues like this can be super tricky and time-consuming.

![carbon (5)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4nt2efdrs9o0ycmpmbke.png)
 
This is how you can fix this issue:

![carbon (3)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wi961w4bhmyyo047livu.png) 

UPD: As @lukaszahradnik mentioned in comments, it is actually based [by sharing](https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_sharing), but not [by reference](https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_reference). Thanks for clearing this up! 🙏
 
---

Other things to read:
* [JS interview in 2 minutes / == vs ===](https://dev.to/kozlovzxc/js-interview-in-2-minutes-vs-1f58)

Also, I will post more fun stuff here and on [Twitter](https://twitter.com/kozlovzxc) let's be friends 👋