teleren/devto huggingface dataset:
Hello World()
Tags: javascript, challenge
Published: 2020-08-06 07:54:06

Hey Everyone,
Im Don, Amazing to connect with everyone here who share a passion to build and design apps,machines and tools to help people to connect and grow.
I'm a Mechanical Engineer by day,software engineer by night.My passion is towards Robotics,IoT Automation,AI,Machine Learning and love to code.I have been using GitHUB for a while but new around here at DEV community and love this platform to connect and grow together. I have been mostly with the Javascript environments using MERN and MEAN stack,with lately learning and exploring the Python language with frameworks for application API development such as Pyrevit for Autodesk Revit and also machine learning frameworks for computer vision and NLP such as Scikit-Learn,Pytorch,etc.

My fav Editor: VS Code❤️.

Im open to any suggestions and tips that can help me grow around here.

Happy to.

Thankyou & Hi Again Everyone👋!!!

#welcome #newbie #learn&share #vscode #javascript #python #discuss #challenge
RabbitMQ series for beginners
Tags: devops, developers, programming, rabbitmq
Published: 2020-08-06 07:39:00

Are you new to Message brokers, Queue and messaging services ?
If you're a programmer or a DevOps engineer, this one's for you. 🤓

I've started a new series on RabbitMQ 📺
In the first video, we cover:

* How to run RabbitMQ
* What is a message queue
* What is asynchronous messaging
* What role RabbitMQ plays in microservice architectures

We also cover basic features, configurations and we finally write some code that produces a message and another application that consumes the message from the queue.

During this video, I showcase the entire process and provide you with source code on GitHub so you can follow along

Let's start with the basics of RabbitMQ:
{% youtube hfUIWe1tK8E%}

Once we get the basics right, we'll learn how to run a RabbitMQ cluster in a highly available manner with replication and clustering
{% youtube FzqjtU2x6YA%}

Now that we've learnt how to run RabbitMQ in HA, the best place to run containers would be on a platform like Kubernetes.
In this video we take everything we learned and see what it takes to get it running on Kubernetes.

This focuses on:
* Storage
* Persistence
* The Statefulset
* Deployment
* Failover testing
* Replication testing

{% youtube _lpDfMkxccc%}
Adding Document Properties in Excel in Java Application
Published: 2020-08-06 07:32:53

Excel document properties are some descriptive information like author, title, subject, keywords, and category. Adding document properties in Excel can make the documents management more convenient.  This article will introduce how to add built-in document properties and custom document properties in Excel by using Free Spire.XLS for Java.

**Installation**
**Method 1:** Download the [Free Spire.XLS for Java](https://www.e-iceblue.com/Download/xls-for-java-free.html) and unzip it. Then add the Spire.Xls.jar file to your project as dependency.

**Method 2:** You can also add the jar dependency to maven project by adding the following configurations to the pom.xml.

```java
<repositories>
        <repository>
            <id>com.e-iceblue</id>
            <name>e-iceblue</name>
            <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
        </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>e-iceblue</groupId>
        <artifactId>spire.xls.free</artifactId>
        <version>2.2.0</version>
    </dependency>
</dependencies>
```

**Add built-in document properties:**

```java
import com.spire.xls.ExcelVersion;
import com.spire.xls.Workbook;

public class BuiltinProperties {
    public static void main(String[] args){
        //Load an Excel file
        Workbook workbook = new Workbook();
        workbook.loadFromFile("Input.xlsx");

        //Add built-in document properties to the file
        workbook.getDocumentProperties().setTitle("Add Document Properties");
        workbook.getDocumentProperties().setSubject("Test File");
        workbook.getDocumentProperties().setAuthor("Mary");
        workbook.getDocumentProperties().setManager("Paul");
        workbook.getDocumentProperties().setCompany("AAA");
        workbook.getDocumentProperties().setCategory("Demo");
        workbook.getDocumentProperties().setKeywords("Excel Document Properties");

        //Save the resultant file
        workbook.saveToFile("BuiltinDocumentProperties.xlsx", ExcelVersion.Version2013);
    }
}
```

![](https://dev-to-uploads.s3.amazonaws.com/i/nc17sh8s3ot499myd2xb.png)



**Add custom document properties:**

```java
import com.spire.xls.ExcelVersion;
import com.spire.xls.Workbook;

import java.util.Date;

public class CustomProperties {
    public static void main(String[] args){
        //Load an Excel file
        Workbook workbook = new Workbook();
        workbook.loadFromFile("Input.xlsx");

        //Add custom properties to the file
        workbook.getCustomDocumentProperties().add("_MarkAsFinal", true);
        workbook.getCustomDocumentProperties().add("The Editor", "Mary");
        workbook.getCustomDocumentProperties().add("Phone number", 12345678);
        workbook.getCustomDocumentProperties().add("Revision number", 7.12);
        workbook.getCustomDocumentProperties().add("Revision date", new Date());

        //Save the resultant file
        workbook.saveToFile("CustomDocumentProperties.xlsx", ExcelVersion.Version2013);
    }
}

```

![](https://dev-to-uploads.s3.amazonaws.com/i/e5eobfx6fyfzm7o5la1b.jpg)
Laravel 7.x Dynamically Add More Input Fields using Handlebars Js
Tags: laravel, handlebarsjs, addmore
Published: 2020-08-06 07:28:17

Hello Artisan

In this tutorial i will discuss about dynamically add multiple input fields and submit to database with jquery and laravel. We can see addremove multiple input fields dynamically with jquery laravel from scratch so that we can understand easily.

You can use jQuery only to do laravel add more fields example in your application. But in this example i will use handlebars js as well as jQuery to create laravel dynamic form fields validation example.

Link : https://www.codechief.org/article/laravel-7x-dynamically-add-more-input-fields-using-handlebars-js
Create Your Own Multilingual Website in Laravel 7.x
Tags: laravel, localization, multilingual
Published: 2020-08-06 07:27:12

Hello Developers

In this brand new tutorial i am coming with a very helpful tutorial like how to create multilingual website in laravel 7.x. In this laravel multilingual example tutorial i will discuss from scratch so that you can understand better.

Link: https://www.codechief.org/article/create-your-own-multilingual-website-in-laravel-7x
Laravel 7.x Queues Example with Redis and Horizon
Tags: laravel, queue, redis, horizon
Published: 2020-08-06 07:26:15

Hello Artisan

In this tutorial i will show you a simple laravel app that interpret how to use Laravel Queues and how to run Laravel Queue with redis and Monitoring with Laravel Horizon. I will show you database as well as Redis queue connections. We’ll see how Horizon can provide us a beautiful configuration and monitoring capabilities to queues.

Link : https://www.codechief.org/article/laravel-queues-example-using-redis-and-horizon
Laravel 7.x Livewire Form Submit Example Tutorial
Tags: laravel, livewire, form
Published: 2020-08-06 07:24:25

Hello Artisan 

In this tutorial i am going to discuss about laravel livewire form submit example. I will create a simple contact form and then i will submit it and save it into database. To submit contact form i will use laravel livewire package.

This tutorial i am going to show you laravel livewire form example. I’m going to show you about how to create form with laravel livewire. let’s discuss about laravel livewire tutorial example. you will learn how to install laravel livewire to laravel.

In this laravel 7 livewire example, we will create a simple form using laravel livewire. you can use laravel livewire with laravel 6 and laravel 7 version. We will save data without page refreshing using Laravel livewire.

Link : https://www.codechief.org/article/laravel-7x-livewire-form-submit-example-tutorial
How to give CSS link in HTML file?
Tags: webdev, html, css, beginners
Published: 2020-08-06 07:21:30

This post was originally published at https://www.blog.duomly.com/6-most-popular-front-end-interview-questions-and-answers-for-beginners-part-3/#how-to-give-css-link-in-html-file

---

{% youtube z4VaJ2IfZE8 %}

In the previous section, we talked about what CSS external files are, how to create that, when it’s a good idea to use that method, and why.

It’s great you have that knowledge already, but when you know what’s that, and how to create it, you need to know one more, and probably the most important thing.

How to import CSS file in the HTML file, to be able to use it?

In this section, I would like to show you how we can add the external CSS file, and why in that place.

There are few ideas on how to import CSS into the files, and in the Front-End Interview Questions PART 2, I’ve shown you how to do it in React.js.

Now, let’s go into the HTML file.

In the code example, you can see the CSS file is added just as a link into the header.

In the head, we add the files that should be loaded before the page renders, so in most cases, it’s right for stuff like styles or critical js (in some cases).

You need to remember that the URL of the link can be added as the 3rd party styles, you can add the whole URL with HTTP or add just relative path to the file.

```html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Learn coding on Duomly.com</title>
    <link rel="stylesheet" href="filename.css">
  </head>
  <body>
    
  </body>
</html>
```
<a href="https://www.duomly.com/?code=lifetime-80">![Duomly - Programming Online Courses](https://dev-to-uploads.s3.amazonaws.com/i/bde89cw4h64z765g2l4r.png)</a>

Thank you for reading,
Radek from Duomly
c# windows service tutorial using topshelf
Tags: csharp, tophself, windowsservices, tutorial
Published: 2020-08-06 06:53:53

Ever wanted to learn how windows services can be built in c# check out this tutorial.

https://generalistprogrammer.com/csharp/c-windows-service-tutorial-using-topshelf/

https://youtu.be/8PAGoUYwuXQ
Getting Started with Deno 🦕
Tags: deno, javascript, typescript
Published: 2020-08-06 06:46:17

Today, we'll be covering getting started with Deno! Deno is a `JavaScript` server language like `node.js` but built in `Typescript`.
It's designed to improve the shortcomings of `node.js`.

It's been quite hyped over the last couple months, and even when writing this article, I have zero experience with it, so this guide is also my guide.

## What is TypeSript?

As mentioned, `TypeScript` is a superset of `JavaScript`. TypeScript is a strongly typed language, meaning types must be defined when declaring variables. This makes it more strict and easier to spot errors and faults.

## Setting up Deno

To get started, we need to install Deno locally first.

If you are on Linux/Mac run the following command:

```bash
curl -fsSL https://deno.land/x/install/install.sh | sh
```

If you're on Windows:

```bash
iwr https://deno.land/x/install/install.ps1 -useb | iex
```

> Note: You can find your install package on the [Deno website](https://deno.land/)

You can verify the installation by running:

```bash
deno --help
```

## Our First Deno Application

So let's start by creating our first Deno application.

Create a new folder and our starting file `server.ts`

```bash
mkdir deno && cd deno
```

Let's start adding lines to our `server.ts` file

```js
import {serve} from 'https://deno.land/std@0.63.0/http/server.ts';
```

This tells our server to import the `serve` module from a URL; in `node.js` we would have to use `npm install` first!

Now we are going to create a new Deno server:

```js
const server = serve({port: 1337});
```

We are starting our server on port 1337.

Sending a response to the browser

```js
for await (const req of server) {
  req.respond({body: 'Hello Deno!!'});
}
```

So this is a bit different then what we see in `node.js`.
We loop through each incoming request, and for each request, we are returning a body!

## Running Our Deno Server

To run our deno server, we can run the following command in our terminal.

```bash
deno run --allow-net server.ts
```

Now we can open our browser and go to `localhost:1337`. We should now see our body!

Awesome, getting started was really quick and easy!

You can download my starter project on [GitHub](https://github.com/rebelchris/deno)

### 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)
71: JavaScript Windows
Published: 2020-08-06 06:37:31

###**The Browser Object Model (BOM) allows JavaScript to "talk to" the browser.**
The Window interface represents a window containing a DOM document; the document property points to the DOM document loaded in that window. A window for a given document can be obtained using the document.defaultView property.

A global variable, window, representing the window in which the script is running, is exposed to JavaScript code.

The Window interface is home to a variety of functions, namespaces, objects, and constructors which are not necessarily directly associated with the concept of a user interface window. However, the Window interface is a suitable place to include these items that need to be globally available. Many of these are documented in the JavaScript Reference and the DOM Reference.

In a tabbed browser, each tab is represented by its own Window object; the global window seen by JavaScript code running within a given tab always represents the tab in which the code is running. That said, even in a tabbed browser, some properties and methods still apply to the overall window that contains the tab, such as resizeTo() and innerHeight. Generally, anything that can't reasonably pertain to a tab pertains to the window instead.

------------

##**The Browser Object Model (BOM)** 
There are no official standards for the Browser Object Model (BOM).

Since modern browsers have implemented (almost) the same methods and properties for JavaScript interactivity, it is often referred to, as methods and properties of the BOM.

------------

##**The Window Object**
The window object is supported by all browsers. It represents the browser's window.

All global JavaScript objects, functions, and variables automatically become members of the window object.

Global variables are properties of the window object.
Global functions are methods of the window object.

Even the document object (of the HTML DOM) is a property of the window object:
```javascript
window.document.getElementById("header");

is equal to

document.getElementById("header");
``` 

------------

Reference
1) [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Window)
2) [W3schools](https://www.w3schools.com/js/js_window.asp)
How Salesforce is a Platform for Improving Customer Relationships
Tags: salesforce, crm
Published: 2020-08-06 06:34:42


It is inevitable that most organizations utilize effective Salesforce techniques, as well as custom tools, that are built on the Salesforce platform to provide better sales opportunities and stay ahead of the market. this is the main reason why Salesforce certification is incredibly necessary to better take advantage of the IT opportunities that are presented.

As everyone already knows, [Salesforce](https://www.cloudanalogy.com/) is a platform to improve customer relationships and present your brand as a renowned brand in the market. A company that uses Salesforce services is already ranked as one of the most loved industries with enhanced CRM, and not everyone knows the other vital areas where they can help the company, which is obviously the media. social and software implementation, which is cloud-oriented. Sales Cloud in Salesforce is one of the best services available, which helps the company to have safe and secure access to their data, and sharing this data becomes easier and more convenient.

Today, Salesforce is not just limited to CRM, it helps customers have better content, better workflow, mobile apps, and all the technical support they need, making it a must-have for any business that looks to become big in the market in no time. of time.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/veqncm5wxf04acl8l27o.png)

**Salesforce Certification**

By now, you've probably understood the value of implementing Salesforce in your organization, so here are some areas where Salesforce certification can literally help you.

**Administrators:** Installation and configuration of Salesforce and its software can follow a basic and advanced administrator record.

**Deployment experts:** Deploying cloud-based solutions can improve application design and build, increasing productivity while effectively managing data and designing analytics to take action. Helps distinguish between cloud sales consultant credentials and cloud services consultant credentials when the latter are used in design solutions using cases, portals, and information.

**Developers:** Building client applications with ADE platforms to create data models, logic, security, user interface, reports, and dashboards can keep track of primary developer credentials. and advanced

**Architects:** can help identify system architects evaluating the Salesforce customer environment and design a high-performance, secure platform. They can provide technical solutions to all [business](https://www.cloudanalogy.com/) needs and have the ability to lead design and implementation through to completion.
Subscripts
Tags: swift, subscript, basics
Published: 2020-08-06 06:34:33

Subscripts?, have you ever listened about this?, probably yes, if not, believe me, you have used them.

I'll make this post really basic to get involved with this.

> If you are reading this, you are interested on iOS development or just Swift stuffs.

What are subscripts?, when I said that you have used them, it is because they are on `Arrays`, `Dictionaries`, `Sets`.

At the time we do something like this

```swift
var characters = ["Jill", "Claire", "Carlos", "Leon", "Ada"]

characters[0] // <- Here we are using our subscript
```
> I'm a Resident Evil fan in case it wasn't clear 😁

Just think of `subscripts` as overloading the `[]` operator, it is an easy way to be familiar with them, and they are useful to create shortcuts for accessing elements.

> This can be used on `collections`, `enumerations`, `structures` and `classes`

## How to use subscripts

The `subscript` syntax is really easy, it is just like this.

```swift
subscript(parameters) -> ReturnType {
  get { ... }
  set(newValue) { ... }
}
```

The nice part is that you may be related with this syntax, it looks like a `function`'s signature combined with `computed properties`.

Let's make a list of the stuffs you **CAN** and you **CAN'T** do

* You **CAN** use [variadic parameters](https://docs.swift.org/swift-book/LanguageGuide/Functions.html).
* You **CAN'T** use `inout` parameters.
* You **CAN'T** use `default` parameters.
* You **CAN'T** `throw` errors.
* You **CAN** make it `read-only`, making the `set` optional.
* You **CAN** omit `newValue`

Now let's do the funny part! the example!

## Example

Just because of my love for Resident Evil games, let's create a `Character` class to be related with games!

```swift
struct Character {

  let name: String
  let costume: Costume

  enum Costume: String {
    case `default`
    case stars
    case re3Style
  }
}

let jill = Character(name: "Jill Valentine", costume: .re3Style)
```

Now, let's try to get the name of our `character` object, of course we could just do it like with `dot-notation` but c'mon, this is a `subscript` post, so we want to read it like this `jill["costume"]`

If we try to use that line we will receive a very beautiful error! 🤯.

> *"Value of type 'Character' has no subscripts"*

Now, let's fix it extending our `struct` in order to add our `subscript`

```swift
extension Character {
  
  subscript(key: String) -> String? {
    switch key {
    case "name":
      return name
    case "costume":
      return costume.rawValue
    default:
      return nil
    }
  }
}
```

Now, with this code we can call our line again

```swift
jill["costume"] // <- Now we got "re3Style"
```

There you go! You have created your own custom subscript!, of course this is not all, but I want to keep this post as simple as I can, so later on, I'll create more about `subscripts`

Happy coding devs!

## Wanna go further?

{% link https://dev.to/fdorado985/subscripts-parameters-static-3koh %}

{% link https://dev.to/fdorado985/subscripts-dynamic-member-lookup-2dgk %}
70 : What is the point of Using Event Handler? 
Tags: javascript
Published: 2020-08-06 06:34:04

#**Event handlers** 
Imagine an interface where the only way to find out whether a key on the keyboard is being pressed is to read the current state of that key. 

To be able to react to keypresses, you would have to constantly read the key’s state so that you’d catch it before it’s released again. It would be dangerous to perform other time-intensive computations since you might miss a keypress.

Some primitive machines do handle input like that. 
A step up from this would be for the hardware or operating system to notice the keypress and put it in a queue. 

A program can then periodically check the queue for new events and react to what it finds there.

---------------

Of course, it has to remember to look at the queue, and to do it often, because any time between the key being pressed and the program noticing the event will cause the software to feel unresponsive. This approach is called polling. 

Most programmers prefer to avoid it.

*A better mechanism is for the system to actively notify our code when an event occurs. Browsers do this by allowing us to register functions as handlers for specific events.*

---------
```javascript
<button>Click me</button>
<p>No handler here.</p>
<script>
  let button = document.querySelector("button");
  button.addEventListener("click", () => {
    console.log("Button clicked.");
  });
</script>
```

[ELS: Handling Events
](https://eloquentjavascript.net/15_event.html)
Laravel 7 Ajax Form Request Validation
Published: 2020-08-06 06:15:34

In this tutorial, I will show you how submit form using ajax with jquery validation in laravel 7/6 App.

In this tutorial, you can submit the form using jQuery ajax and without refresh the whole web page. When submitting an ajax form in laravel, you will add csrf token in ajax post request.

### Laravel 7 Form Submit Using Ajax jquery with validation

Follow below simple and easy steps to send form data to controller using ajax with jQuery validation:

1. Install Laravel Fresh Setup
1. Configure .env file
1. Create One Model and Migration
1. Make Route
1. Generate Controller by Command
1. Create Blade View
1. Start Development Server

Read Full Post Here => [https://www.tutsmake.com/laravel-6-jquery-ajax-form-submit-with-validation-example/](https://www.tutsmake.com/laravel-6-jquery-ajax-form-submit-with-validation-example/ "https://www.tutsmake.com/laravel-6-jquery-ajax-form-submit-with-validation-example/")