teleren/devto huggingface dataset:
S2E1 Learn JMeter Series - CSV Data Set Config
Tags: performance, webperf, tutorial, testing
Published: 2020-11-21 02:27:24

Welcome to Learn JMeter Series!

In this season two, episode one, you will the learn following:

* Data Parameterization
* CSV Data Set Config

{% youtube 7pljGt-kDv0 %}

☑ Buy me a tea 🍵 : https://www.buymeacoffee.com/qainsights
☑ [My Blog](https://qainsights.com)
☑ [My Udemy Course](https://www.udemy.com/course/performance-testing-using-truweb)
Jupiter Debbarma:Building an Online KokBorok Dictionary for Tripura
Tags: javascript, code, tripura, kokborok
Published: 2020-11-21 01:48:29

<h2>Introduction</h2>
<h3>What is Kokborok</h3>
First of all, Kokborok is the main native language of Tripura. It is spoken by the indigenous communities of Tripura "Tiprasa" people. Kokborok is the official language of the state of Tripura, India from the year 1979. 

<a href="https://kokdictionary.com">Kok Dictionary</a> is the first digital "<a href="https://kokdictionary.com"><b>Kokborok Dictionary</b> </a>"initiative taken so far to grow the Indigenous language from the state Tripura to promote KokBorok language individually. Currently, it is the Tripura's largest digital educational platform.

<h2>Languages Used to Build?</h2>
The online digital dictionary platform(Online Kokborok Dictionary Web App) is built solely on javascript on the front end and in the backend, I used PHP along with JSON & XML file.

<h2>Feature of the digital platform:</h2>
The online Kokborok platform composed of main features such as:
<ul>
<li>Auto Kokborok Translator</li>
<li>Custom Word Translation made with Google Translation Api </li>
<li>Kokborok word Talk Back Features</li>
<li>Payment gateway with paytm</li>
<li>1000 + <a href="https://kokdictionary.com">Kokborok Word</a> meaning database</li>
<li>Live Audio Podcasting</li>
</ul>
<h2> Major Difficulty you faced in Completing Project</h2>
I faced the following trouble while completing this project.
<ul>
<li>1. Financial Problem as I was an under graduate student studying in final year</li>
<li>2. Giving time to the project </li>
<li>3. Making a strong team to finish up the project</li>
<li>4. Lastly, searching an investor to finance it.</li>
</ul>
<h2>Major Step by Step Journey in Completing the Project?</h2>
1. The first difficult thing was to develop its base i.e the search bar using Php & Ajax which Gradle the data's stored in the database along with making the home page.
2. Its front end is done in HTML, CSS and javascript taking some help from my friend(Tripura Coder's).
2. The Digital platform's unique talk-back feature is made by converting the word to voice through Google Api separately and placing it in the individual words. 
2. Kokborok Auto Translator is developed using Javascript, Php, and XML files.

* <h3>Version 1.0</h3>
<hr>
![1st Version](https://dev-to-uploads.s3.amazonaws.com/i/jxgjhtwf63rldnubnv46.jpg)

* <h3>Current Version</h3>
<hr>
![Current Version](https://dev-to-uploads.s3.amazonaws.com/i/a26wb16phf3ufh15cnu8.jpg)

<h2>Final Thoughts?</h2>
In the future, we are planning to roll out the android and ios versions of Kok Dictionary. Also, We are working to upgrade the present features along with fixing some bugs which is a headache to all developers Isn't. :p

Thank you!
Break the code
Published: 2020-11-21 01:37:28

Eh, nothing to say too much this month....

Oh wait, there is!

A new [hackathon](https://breakthecode.tech/) has just begun!!!


BreakTheCode, sponsored by .tech domains, is a brand new Hackathon that intends to bring new challenges to our average programmer selves. The competition ends on December 2nd, So i'd suggest you join asap!
How do I start preparing for competitive programming?
Tags: productivity, programming, github, computerscience
Published: 2020-11-21 01:36:40

If you are a programmer you might have understood the deep meaning of these lines quoted by Steve Jobs and you might have also experienced that even after shutting your computer you keep on thinking about programming stuff or code you have written in your project. Once you enter in programming you just don’t learn how to code but you also learn the “art of thinking”, by breaking your code into smaller chunks and then using your logic-based creativity to solve a problem from different angles.
Programming is fun, programming is an exercise for your brain, programming is a mental sport and when this sport is held over the internet involving sport programmers as a contestant then it is called Competitive Programming.

Programming is a challenging role and once you enter this field you will encounter new challenges and you may have to solve some problems which no one has solved before or their solution doesn’t exist anywhere. At that time you are expected to come up with a solution in the least possible time using your problem-solving and logical ability. So the one and clear goal behind these competitive programming are “To prepare a programmer such that his/her logical ability increases and he/she is able to write code for the challenging situation.”
How to prepare yourself for Competitive Programming?::::::::::::::::::
Tags: devops, discuss, codenewbie, computerscience
Published: 2020-11-21 01:35:00



1. Choose a Programming Language

2. Understand the Concept of Time and Space Complexity

3. Learn the Fundamentals of Data Structures and Algorithms

4. Take the Challenge and Solve Coding Problems

5. Practice and Do it Regularly
MVC - What is it?
Published: 2020-11-21 01:29:38

Model. View. Controller. 
What are those?

Model: They represent the data. That's it! They don't depend on controllers, but they can communicate with them.

View: They display the models data, by way of the controller and send user actions back to the controller.

Controller: They send model data to the view and interpret user actions. 

What's the big deal?
MVC helps keep our concerns separated. We have three moving parts: data, display of data and communication between the two. Keeping these jobs separate makes creating simple and less buggy code a lot easier. If we had all that code in one file, we'd be pulling all of our hair out pretty quickly.

Real Life Example:
Let's think about it like we're going out to eat. You (a user) sit down at your table and take a look at a menu (sounds like a view to me). After a few minutes, you decide what you'd like to eat (a user request). Your server (controller) takes that order back to the kitchen (the model). After your server brings your order to the kitchen, the cooks start preparing it. If all goes according to plan, your server should be bringing the food you ordered back to your table in a reasonable amount of time. There is now a nice looking plate of food sitting in front of you, which may be the best kind of updated view there is!
How to write Godoc?
Tags: discuss, go, vscode
Published: 2020-11-21 00:59:23

These pretty much says it.

- https://github.com/aws/aws-sdk-go/blob/master/aws/types.go#L23
- https://godoc.org/github.com/aws/aws-sdk-go/aws#LogLevelType

In short, starting with a sentence with Function name as first noun. Markdown might also be supported. (At least for hyperlinks, and)

```
    // to `nil` or the value to `""` to use the default generated endpoint.
    //
    // Note: You must still provide a `Region` value when specifying an
```

_Nothing near the level of JSDoc, JavaDoc, or several of Python docstring conventions, though_; where `Arguments` and `Returns`, as well as `Errors`, are documented. Also, **syntax highlighting** for JSDoc/JavaDoc are far superior (with `@annotation`).
Golang doesn't recommend you do these; Golint prevented you from doing these; but they might actually be good.
Tags: discuss, go, vscode
Published: 2020-11-21 00:41:31

Issues I have found are

## Godoc

Part of them is also problems with an IDE, VSCode. It doesn't render multi-line Godoc correctly, unlike JSDoc, JavaDoc, or even Python docstrings.

[Adapted from Gin Swagger,](https://github.com/swaggo/gin-swagger#canonical-example)

```go
// MainRouter main router
// @title Swagger Example API
// @version 1.0
// @description This is a sample server Petstore server.
// @termsOfService http://swagger.io/terms/

// @contact.name API Support
// @contact.url http://www.swagger.io/support
// @contact.email support@swagger.io

// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html

// @host petstore.swagger.io
// @BasePath /v2
func MainRouter(r *gin.Engine) {
	url := ginSwagger.URL("http://localhost:8080/swagger/doc.json") // The url pointing to API definition
	r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler, url))
}
```

When hovering in VSCode, only the last two lines of comments shows; also Golint prevents from compiling, due to `MainRouter main router` not being directly above the last two lines.

Solution? Easy, via the unrecommended comment style "plus" indentation, as VSCode will recognize this as quotes in Markdown.

```go
// MainRouter main router
/*
  @title Swagger Example API
  @version 1.0
  @description This is a sample server Petstore server.
  @termsOfService http://swagger.io/terms/

  @contact.name API Support
  @contact.url http://www.swagger.io/support
  @contact.email support@swagger.io

  @license.name Apache 2.0
  @license.url http://www.apache.org/licenses/LICENSE-2.0.html

  @host petstore.swagger.io
  @BasePath /v2
*/
func MainRouter(r *gin.Engine) {
	url := ginSwagger.URL("http://localhost:8080/swagger/doc.json") // The url pointing to API definition
	r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler, url))
}
```

If I use JavaDoc or JSDoc, or [Python (plus an extension)](https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring), these will be automated, plus better options.

## Linter suggests using reserved words for variable names

I cannot use `type_` as variable name. Maybe I can use `type0` as a smartie; but Golint doesn't yet suggest correctly.

{% github https://github.com/golang/lint/issues/393 %}

And you cannot turn Golint off at all.

{% github https://github.com/golang/lint/issues/263 %}

## Varidiac function with `interface{}...` argument, for function "same-name" overloading

I am not saying that this is good, but why stick to "idiomatic Go"? Good reasons?
API documentation from Postman collection
Tags: postman, api, documentation
Published: 2020-11-21 00:01:07

Automate documentation generation from Postman collection is very helpful.

There are some open source projects to achieve the goal.

In the past I used [postmanerator](https://github.com/aubm/postmanerator) and in the last weeks I switched to [docgen](https://github.com/thedevsaddam/docgen).

Have you already heard about this tools? Do you use a different one?
How to check if a key or property exists in an object in JavaScript?
Tags: javascript
Published: 2020-11-21 00:00:00

---
  title: How to check if a key or property exists in an object in JavaScript?
  published: true
  tags: JavaScript
  date: Sat Nov 21 2020 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/check-if-key-exists-in-object-javascript
  cover_image: https://melvingeorge.me/_next/static/images/main-a54802fd7de1a1ce7baaecd7290c989b.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/check-if-key-exists-in-object-javascript)
  
To check if a key exists in an `object`, you can use the `in` operator in JavaScript.

Let's say we have a `person` object like this,

```js
// an object
const person = {
  name: "John Doe",
  age: 23,
  isCustomer: true,
};
```

What if we want to check for key `age` in the `person` object?

Let's use the `in` operator to check like this,

```js
// an object
const person = {
  name: "John Doe",
  age: 23,
  isCustomer: true,
};

// check if key age
// exists in person object
// using the "in" operator
if ("age" in person) {
  console.log("Key: age exists!", person.age);
} else {
  console.log("Key: age doesn't exists!");
}
```

See this example live in [JSBin](https://jsbin.com/xoquvikevu/4/edit?js,console).

The `in` operator also checks to see if the `key` is present on inherited properties. If you don't want that and need to check only on the current instance of the object, you can use the `hasOwnProperty()` object method like this,

```js
// an object
const person = {
  name: "John Doe",
  age: 23,
  isCustomer: true,
};

// check if key age exists
// but checks only the current
// instance of object and not
// inherited properties!"
if (person.hasOwnProperty("age")) {
  console.log(
    "Key: age exists, Checks only the current instance of object and not inherited properties!",
    person.age
  );
} else {
  console.log("Key: age doesn't exists!");
}
```

See this example live in [JSBin](https://jsbin.com/nagevazata/4/edit?js,console).

### Feel free to share if you found this useful 😃.

---
Quickly view project dependencies on the cli
Tags: cli, webdev
Published: 2020-11-21 23:31:59

---
title: Quickly view project dependencies on the cli
published: true
date: 2020-11-21 00:00:00 UTC
tags: cli,webdevelopment
canonical_url: https://blog.jonesrussell42.xyz/2020/11/21/quickly-view-project-dependencies-on-the-cli.html
---

Ahnee! I frequently find myself on the command line wanting to know which dependencies and devDependencies are in the package.json file.

I do it frequently enough that I decided to experiment with commander and create a command line utitlity in JavaScript/TypeScript.

![packages screenshot](https://blog.jonesrussell42.xyz/assets/img/screenshot-packages.png)

Check it out at [https://github.com/jonesrussell/packages](https://github.com/jonesrussell/packages) or simply:

```
npm i -g @jonesrussell42/packages

```

Meegwetch!
[19c Multitenant] Automatically launch an instance
Tags: oracle
Published: 2020-11-20 23:20:36

Seems to be the first article about Oracle on dv.io
Enable autostart with oratab

```
# vi /etc/oratab
orclcdb:/opt/oracle/product/19c/dbhome_1:Y
```

Create a unit definition file

```
# cd /etc/systemd/system
# vi dbora.service
[Unit]
Description=Oracle Database Service
After=network.target

[Service]
Type=forking
User=oracle
Group=dba
ExecStart=/opt/oracle/product/19c/dbhome_1/bin/dbstart /opt/oracle/product/19c/dbhome_1
ExecStop=/opt/oracle/product/19c/dbhome_1/bin/dbstart /opt/oracle/product/19c/dbhome_1

[Install]
WantedBy=multi-user.target
```
Reload the daemon and start the service

```
 systemctl daemon-reload
# systemctl enable dbora
Created symlink from /etc/systemd/system/multi-user.target.wants/dbora.service to /etc/systemd/system/dbora.service.
# systemctl start dbora
#
```
Oracle has started properly

```
# su - oracle
#
# sqlplus / as sysdba
SQL> select instance_name, status from v$instance;

INSTANCE_NAME    STATUS
---------------- ------------
orclcdb          OPEN
```
Buttons, Buttons and more Buttons
Tags: sinatraproject, clickhere, ihaventlearnedthisyet, javascriptfordummies
Published: 2020-11-20 20:42:07

So this week was project week for phase 2 of my time at Flatiron school.  I was a little flustered coming into the week - more because of technical difficulties than anything - but once I got started on this project, I really enjoyed it.
  
This project was essentially about using Sinatra and the basic CRUD actions.  Setting up the initial base of this project was super easy and I need to give some serious props to the Corneal gem and its creator.  This gem is a serious time-saver and this guy is a genius.

During the creation of my project, I learned so much about everything from Flexbox [Link](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) to color schemes [Link](https://colorhunt.co/), but the one thing I really found myself spending WAY too much time on were the buttons!  Now, I know this is just a styling thing and possibly not critical in the grand scheme of things but I will say I learned a TON while trying to make these darn buttons work (thanks Google!).

Just some quick advice to anyone on a similar journey with buttons, don't go it alone.  There are tons of websites out there to help you create a button [Link](https://www.bestcssbuttongenerator.com/).  Once you get the general idea, copy the code they give you.  It will look something like this:
`.myButton {
	background-color:#44c767;
	border-radius:28px;
	border:1px solid #18ab29;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:17px;
	padding:16px 31px;
	text-decoration:none;
	text-shadow:0px 1px 0px #2f6627;
}
.myButton:hover {
	background-color:#5cbf2a;
}
.myButton:active {
	position:relative;
	top:1px;
}`
Once you get this into your program, you can mess around with the background-color to change the color of your button, color to change the text color, padding to change size relative to the text - just play around until you love it!  

During one of my arguements with buttons, I found myself in a loop with Google continually telling me I needed Javascript to do what I wanted.  The problem with this - I don't know Javascript!  But, try as I might, I couldn't find a satisfactory alternative.  So, Javascript it was.  Needless to say, I know 2 lines of Javascript now, just enough to get through exactly what I wanted.  But sometimes that's enough for now.  And everything worked out in the end.

Check it out if you would like and give me ideas on how to make it better!
[Link](https://github.com/mimirandi21/sinatra-chores-project)
Day 261: Feel Good
Tags: hiphop, code, coding, lifelongdev
Published: 2020-11-20 22:52:15

_liner notes_:
- Professional : Another day that flew by! Can't believe it's already the weekend! Had a team meeting and got to show what I've been working on with the CLI. Received some really good feedback that I was able to take back to the CLI team meeting I had later in the day. A chill and productive day to end the week, I feel good.

- Personal : Last night, I was able to edit the recording of the radio and submitted to the station to get played tomorrow. Also went through a bunch of tracks to play this week.

![An island with a large stone mass covered in trees sticking out of the ocean in Hvítserkur, Iceland](https://dev-to-uploads.s3.amazonaws.com/i/eathj7ti4tahez14g0ap.jpg)

Going to finish up the pre-work for the radio show tomorrow and work on my new side project. It gets so dark so quick! haha

Have a great night and weekend!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube HyHNuVaZJ-k %}
reduce() method explained : JS
Tags: javascript, java, webdev, codenewbie
Published: 2020-11-20 22:41:52

The `reduce()` method is used to apply a function to each element in the array to reduce the array to a single value.          
Let's see the syntax:- 

```javascript
let result = array.reduce((acc, v, i, a) => {
  // return the new value to the result variable 
}, initVal);

// result - the single value that is returned. 
// array - the array to run the reduce function on. 
// acc - the accumulator accumulates all of the returned values. 
// v - the current value being processed
// i - the curret index of the value being processed
// a - the original array
// initVal - an optionally supplied initial value. 
// If the initial value is not supplied,
// the 0th element is used as the initial value. 
```
The `reduce()` method can be thought of like a for loop, that is specifically for using the values of an array to create something new. Take a look at this example. 

```javascript
var array = [11, 12, 13, 14];
var sum = 0;
for(var i = 0; i  < array.length; i++) {
      sum += array[i];
 }

  // sum = 50
``` 
The goal of the code above is to find the sum of all of the values in our array. Yes, it works, but there is an easier way to archive the same result. 

Rewriting the previous function using the `reduce()` method. 

```javascript
let array = [11, 12, 13, 14];
let sum = array.reduce((bcc, v) => bcc + v); 
    // sum = 50
```
Just see. Without any loop. 

We've used the variable **bcc** to represent our accumulator. As our **reduce** function works through the array, the **bcc** value will increase until the function has completed. 

<hr>
### Needy Extras.

Remember when I specified that we can use an optional initial value? It's pretty easy to set that up. We'll use the same example as above. We're going to sum our array, but this time, we want to start with an initial value of 250. 

So how does it look when we start with an initial value of 250? Just see the example below and you'll get to know.

```javascript
let array = [11, 12, 13, 14]; 
let sum = array.reduce((bcc, v) => bcc + v, 250);
``` 
As you can see, the code above is almost identical to the previous example. All that's changed is we've added a second argument after our callback. I've passed in the number 250 as our starting point. Now, when we run the function, the sum will equal 300.

Read more;-
- [map() method explained](https://rahulism.co/map-method-explained-js)
- [filter() method explained](https://rahulism.co/filter-method-explained)
<hr>
Thanks For Reading 😁 <br> 
Hoping This Is Helpful for you.
Easy learning
Tags: learning
Published: 2020-11-20 22:40:54

Who says that every blog post should be long?
Here is a very short tutorial on a method i find very useful, at least for data retention.

I will write a follow up post, presenting my views on data retention role, in the process of learning.


The method

Create MCQ’s (Multiple Choice Questions) from the information that you would like to study.



Example

Let's say that i want to follow a tutorial on jenkins.
The tutorial lists these steps:


1. Install Java:
   sudo yum install -y java-1.8.0-openjdk-devel

2. Install wget:
sudo yum install -y wget

3. Download the repo:
   sudo wget -O /
   /etc/yum.repos.d/jenkins.repo 
   https://pkg.jenkins.io/redhat/jenkins.repo

4. Import the required key:
   sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

5. Install Jenkins:
   sudo yum install -y jenkins



Now you can use any free MCQ generator (just search the internet), to make something that looks like this:

1. Install Java:
   a. sudo yum install -y java-1.8.0-openjdk-devel
   b. sudo wget -O /
   /etc/yum.repos.d/jenkins.repo 
   https://pkg.jenkins.io/redhat/jenkins.repo
   c. sudo yum install -y wget
   d. sudo yum install -y jenkins
   e. sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

2. Install wget:
   a. sudo yum install -y wget
   b. sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
   c. sudo yum install -y java-1.8.0-openjdk-devel
   d. sudo yum install -y jenkins
   e.sudo wget -O /
   /etc/yum.repos.d/jenkins.repo 
   https://pkg.jenkins.io/redhat/jenkins.repo

3. Download the repo:
   a. sudo wget -O /
   /etc/yum.repos.d/jenkins.repo 
   https://pkg.jenkins.io/redhat/jenkins.repo
   b. sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
   c. sudo yum install -y wget
   d. sudo yum install -y java-1.8.0-openjdk-devel
   e. sudo yum install -y jenkins

4. Import the required key:
   a. sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
   b. sudo yum install -y java-1.8.0-openjdk-devel
   c. sudo yum install -y jenkins
   d.sudo wget -O /
   /etc/yum.repos.d/jenkins.repo 
   https://pkg.jenkins.io/redhat/jenkins.repo
   e. sudo yum install -y wget

5. Install Jenkins:
   a. sudo yum install -y wget
   b. sudo wget -O /
   /etc/yum.repos.d/jenkins.repo 
   https://pkg.jenkins.io/redhat/jenkins.repo
   c. sudo yum install -y jenkins
   d. sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
   e. sudo yum install -y java-1.8.0-openjdk-devel


I will write a follow up post tomorrow explaining a bit more about this method, possible tools to use, and my opinion regarding its benefits.

Thanks for reading :)