teleren/devto huggingface dataset:
Why and how a plagiarism checker is important for students?
Tags: beginners, tutorial
Published: 2022-11-29 07:01:45

[Plagiarism](https://www.ox.ac.uk/students/academic/guidance/skills/plagiarism) is defined as the illegal use of parts or the entirety of a work without proper acknowledgment to the original creator. The content loses its originality and credibility when it is copied illegally because it is considered stealing.

Plagiarism is viewed as academic dishonesty by educational institutions all around the world. Plagiarism is a long-standing issue that is becoming more of a concern for societies as a whole as well as for educational institutions and teachers. Teachers create, use, and enforce unique classroom management strategies as well as start disciplinary actions to address this.

**Why Is It Important to Have Your Content Checked for Plagiarism?**

Even if you have created original information, you should still check it for plagiarism because it can correspond with something that has already been published online without your knowledge.

Avoiding using material or ideas from previously published works that have already been used elsewhere is the major objective of plagiarism detection. To assist you compare your work to several sources, employ a plagiarism detector. You can receive both a complete and comprehensive plagiarism report from an online plagiarism checker. This will ensure that your content is entirely unique and that you keep the rights to your creation.

**Plagiarism detection tools provide more resources.**

The majority of students decide to cross-check their assignments online using a search engine, line by line. So, additional references and a wider range of cross-reference sources are provided by [plagiarism checker]. The majority of books and papers that are not available online are kept in repositories that have anti-plagiarism software and cannot be accessed by copying and pasting the text into Google.

In addition, a lot of scanners search a vast archive of previously submitted work from other students. The following time you assume Google is sufficient to check your job, reconsider! Utilizing its own sizable database, plagiarism detection software makes greater use of the Internet.
Dio Interceptors
Tags: flutter, dart, dio, interceptor
Published: 2022-11-29 06:51:45

Bir dio interceptor (önleyici), dio nesnesiyle ilgili bir olay gerçekleştiğinde tetiklenen onRequest, onResponse, onError geri çağrılarına (callback) sahip bir nesnedir. Aynı dio nesnesine birden fazla interceptor eklenebilir.

Tüm API isteklerine aynı header grubunun eklenmesi gerekiyorsa, bu, dio interceptor'ları aracılığıyla verimli bir şekilde yapılabilir.

Örneğin **her istekte** bir zaman damgası göndermemizin gerektiği bir durumu ele alırsak:

```

import 'package:dio/dio.dart';

class AppendTimestampInterceptor extends Interceptor {
  @override
  void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
    options.queryParameters['ts'] = DateTime.now().millisecondsSinceEpoch.toString();

    return super.onRequest(options, handler);
  }
}
```


dio nesnesine eklendiğinde, onRequest methodu her requestte ts query parametresini ekler:

```
// dio_factory.dart

...
    
class DioFactory {
  const DioFactory(
    ...
    this._appendTimestampInterceptor,
  );

  ...
  final AppendTimestampInterceptor _appendTimestampInterceptor;

  Dio create() => Dio(...)
      ..interceptors.add(_appendTimestampInterceptor);

  ...
}
```

Bu şekilde interceptor'ları örneğin apiKey gibi her isteğe eklememiz gereken bir parametrenin olması gerektiği durumlarda kullanabiliriz.




Kaynak:
https://medium.com/@foxanna/basic-and-advanced-networking-in-dart-and-flutter-the-tide-way-d922fb65a01c
what program do you recommend for code analysis?
Tags: explainlikeimfive
Published: 2022-11-29 06:39:44

HI
Tell me, guys , what program do you recommend for code analysis?
I am writing projects for a company, the projects are similar, but due to the identical code, the applications do not pass through the AppStore.
I’m not ready to completely rewrite the code, a friend told me that there should be code analysis services
If there are proven services, I will be grateful
Thank you !
【Laravel】How to allow cross-origin in Laravel
Tags: laravel
Published: 2022-11-29 06:36:34

*Laravel version...8.75

##What is cross-origin##
"Origin" a combination of "scheme", "hostname" and "port."
If a request is from the same origin as the web server, the server enables web clients to access to it (process their requests). If not, the web server reject the access from them.

##How to allow cross-origin in Laravel##
###1.Install "fruitcake/laravel-cors"###

```
composer require fruitcake/laravel-cors
```
###2.Add "laravel-cors" to the global middleware.###
```
//app/Http/Kernel.php
 protected $middleware = [
        \Fruitcake\Cors\HandleCors::class,//<---add
```
###3.Create a file to set CORS.###
```
php artisan vendor:publish --tag="cors"
```
##4.Set "allowed_origins_patterns" to "[]" in cors config. ##
```
//config>cors.php
<?php
return [
    'paths' => ['api/*', 'sanctum/csrf-cookie'],
    'allowed_methods' => ['*'],
    'allowed_origins' => ['*'],
     //↓Added
    'allowed_origins_patterns' => [],
    'allowed_headers' => ['*'],
    'exposed_headers' => [],
    'max_age' => 0,
    'supports_credentials' => false,
];
```
##5.Then your Laravel server allows CORS!!
The deal you've been waiting for is finally here!
Tags: ai, productivity, programming, tooling
Published: 2022-11-29 06:28:01

All Tabnine Pro features, half the price!

Advanced completions

- Whole-line code completions
- Full-function completions
- Natural language to code completions
- Learns your coding patterns & style

[50% off Tabnine Pro](https://app.tabnine.com/checkout/purchase-details?promotionCode=CM2022SOC&utm_source=email&utm_campaign=black-friday-22&source=account-info)
Moq: How to specify the argument with detail condition when mock a method?
Tags: unittest, csharp, moq
Published: 2022-11-29 06:24:34

This is my own note to remember how we can pass argument to mocked method in various ways.

## Method to mock
I mock following service as an example, though this does nothing anyway.

```csharp
public class DummyService
{
    public virtual string DummyMethod(string input)
    {
        return input;
    }
}
```

## Mock method with any value

We can use ``It.IsAny<T>`` to mock the method which accepts any value of ``T``.

```csharp
[Fact]
public void Test()
{
	Mock<DummyService> mockedDummyService = new();
	mockedDummyService.Setup(x => 
		x.DummyMethod(It.IsAny<string>())).Returns("dummy result");
}
```

## Mock method with specify value

We can pass actual value to mock the method which triggered only when the argument exactly matches.

```csharp
[Fact]
public void Test()
{
	Mock<DummyService> mockedDummyService = new();
	mockedDummyService.Setup(x => 
		x.DummyMethod("testInput")).Returns("dummy result");
}
```

## Mock method with more detail condition

Or, we can specify more detail condition by using ``It.Is<T>(Func<T, bool>)``. The method will be triggered when I pass string such as ``MyInput``, ``MyValue``, etc.

```csharp
[Fact]
public void Test()
{
	Mock<DummyService> mockedDummyService = new();
	mockedDummyService.Setup(x => 
		x.DummyMethod(It.Is<string>(x=>x.StartsWith("My")))).Returns("dummy result");
}
```

## And more

Moq.It has way more methods to control input patterns. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ffpxulqjfp8z5gdg041.png)
Storybook - Additional integrations
Tags: stroybook, webdev, beginners, testing
Published: 2022-11-29 05:56:56

Besides the many excellent examples we saw in the [previous article](https://daily-dev-tips.com/posts/storybook-examples/), there are also amazing integrations we can add to our Storybook.

These integrations vary from themes to specific tests to organizing tools.

The website itself has them categorized into the following categories:

- Popular
- Essentials
- Code
- Data & state
- Test
- Style
- Design
- Appearance
- Organize

And for each, we can quickly see a description and how many downloads that integrations have.

![Overview of the Storybook integrations](https://cdn.hashnode.com/res/hashnode/image/upload/v1668942191184/jTKPPA-yj.png)

## What do we need?

Many extensions are already available if you use the default installation.
For instance, the Essentials are shipped with the base installation, so we don't have to go into further details for those.

Then depending on your needs you might want to look into some specific ones.

This could be either for your specific code base (React, Angular, Bootstrap, and so on) or extensions.
Or maybe more global extensions like accessibility, snapshots, pseudo-states, etc.

And besides all of those, we can get some new themes to make our Storybook more unique.

## Using integrations

So how do we use these integrations?

They are covered as add-ons so that we can install them.

```bash
npm install -D @storybook/{addon-name}
```

And once installed, we can modify our `.storybook/main.js` file to include it.

```js
module.exports = {
  addons: [
    // Other Storybook addons
    '@storybook/{addon-name}',
  ],
};
```

And that's it. If we spool up our Storybook, we should now have access to the additional integration.

I'd recommend you look at all the fantastic integrations available, as they could help your Storybook become more outstanding.

### 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)
j8583 version 2.0
Tags: j8583, iso8583
Published: 2022-11-29 05:43:15

---
title: j8583 version 2.0
published: true
description: New features coming to j8583
tags: j8583, ISO8583
//cover_image: https://direct_url_to_image.jpg
---

It's been a long time since I've done any work on the j8583 library. Mostly because it works, but I have received requests for improvements, which I haven't worked on because I just don't have the time for it.

But, I think it's high time for a major release. Version 2.0 of j8583 will contain the following features:

* First and foremost, Java 8. Or, more likely, Java 11. I mean, Java 7's been dead for a while, and while I understand that Enterprise environments are not using the most recent Java versions, I think even 8 is really old now.
* What does it mean to use Java 8? Well, CustomEncoder and CustomDecoder can now be functional interfaces. IsoMessage can have accessors for fields and values that return an Optional, and, most importantly...
* Support for the new Java Date/Time API. The fields of type DATEx, DATE_EXP and TIME should use the new classes such as LocalDate, ZonedDateTime and OffsetTime. Obviously backwards compatibility with the old Date API needs to be maintained, so support will have to be programmatically enabled at first.
* Internally, upgrade to junit 5 and Gradle 7.

If things go well, the release might be ready before the year ends.
Docker course: getting help
Tags: docker, tutorial, beginners, devops
Published: 2022-11-29 03:56:00

---
title: Docker course: getting help
published: true
description: An overview on how to get help with Docker
tags: docker, tutorial, beginners, devops
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
published_at: 2022-11-29 03:56 +0000
canonical_url: https://code-maven.com/docker-course-getting-help
series: docker
---

{% youtube m270lPL8eaw %}


In order to [get help with Docker](https://code-maven.com/slides/docker/docker-help-cli) you can use the following
commands:

```
docker --help
docker help run
docker help ps
docker help images
docker help rm
docker help rmi
```

If you type in on the command line:

```
docker --help
```

then you will see a list of the command available for Docker. You might need to scroll-up to see the beginning of the output
or on Linux and OSX you could run it through `less`

```
docker --help 2| less
```


You can ask for help by typing `docker help` and then the name of one of the commands so `docker help rmi` for example
and then it gives you some kind of an explanation of what does the `rmi` command do.

You will find a lot more detailed documentation on the web site of the [documentation of Docker](https://docs.docker.com/).
There you can search using the name of the command and find all kinds of documents.
For example the [reference page if docker rmi](https://docs.docker.com/engine/reference/commandline/rmi/).

That's basically how to get help, though you can just search on your [favorite search engine](https://duckduckgo.com/).
Reflecting on my family
Tags: family, reflection, legacy, life
Published: 2022-11-29 05:38:15

I am going to write about the most important people in my life and how their legacies have affected and influenced me.

From my mother Tammy, I learned how to think and express myself clearly and carefully. She was an accountant teaching me mathematics and the importance of hard work when I was a kid. She taught me how to stay positive when I was sad and in the face of obstacles. My mum also enabled me to self-study effectively. She would read books and I started to enjoy reading when I was young. She would listen to me and I would describe to her what I had learnt in school or the book. I would share my thoughts and she would debate with me to stimulate my critical thinking. She shaped my view on life and morals. I learnt best and can think by articulating my thoughts into words.

From my father Tony, I learned the importance of family. As an engineer, the books he studied initiated my love of learning computer software. He reminds me to maintain physical health and be disciplined about my lifestyle. My dad also acts as a negative role model to me sometimes. We share different political views and I did not agree with certain aspects of his behaviour. It reminds me how different people think and behave so differently and I have to keep an open mind to embrace those differences. It would be a nightmare if I tried to argue with him because he would not be able to express himself rationally and logically. It would be nearly impossible to try to change his mind by simple argument as he would not listen.

My ex-girlfriend Jo, taught me how to love and be loved. Although she decided to leave me and I faced depression alone, eventually. I have learnt to take responsibility for my actions in a painful way. It was my fault for the silly actions that made her feel hurt, and I have to learn to be aware of my own and others' feelings. My ex-girlfriend forced me intently and unintentionally to be a better man. There are many important qualities I have to demonstrate, such as patience, being able to communicate my emotions, and being able to improve and fix my mistakes. Lesson learnt on how to live together and face the difficulties in life. After she broke up with me, I had the darkest period in my life. I appreciate the book by Jordan Petersen. After reading his book 12 rules of life, I was able to get myself back up and overcome the depression.

Overall, my parents and ex-girlfriend had given me the above legacies in my life and I appreciate all the influences that have shaped me today.
Fun with GO Concurrency
Tags: go, concurrency, programming, tutorial
Published: 2022-11-29 05:37:18

For those People who are fascinated about concurrency in GO.
i created a small funny program to understand the concurrency in Go with intuitive example.

Steps:-
1. Create a buffered channel to hold at-least values in channels will being utilized by two go routines in further
   ch := make(chan int,2)

2. create two go routines which will consume data from the channel which we created in step 1
   go iAcceptOnlyNegativeFolks(ch)
   go iAcceptOnlyPositiveFolks(ch)

3. send initial signal/data to the channel 
   ch<-1
4. keep some sleep /use select case / some other strategy to block the main from exiting.
   time.Sleep(time.Millisecond*5)

```
package main

import (
	"fmt"
	"time"
)

func main() {
	ch := make(chan int, 2)

	// initiate +ve & -ve folks
	go iAcceptOnlyNegativeFolks(ch)
	go iAcceptOnlyPositiveFolks(ch)

	// ignite fire between +ve & -ve folks 😅
	ch <- 1

	// this is just simple way to block main else go routines will exit along with main
	time.Sleep(time.Millisecond * 5)

}

func iAcceptOnlyPositiveFolks(ch chan int) {
	for {
		select {
		case x := <-ch:
			if x > 0 {
				fmt.Println(x, " is a positive folk")
				ch <- x + 1
			} else {
				// giving some motivation to -ve folk to become +ve folk
				ch <- x * (-1)
			}
		}
	}
}

func iAcceptOnlyNegativeFolks(ch chan int) {
	for {
		select {
		case x := <-ch:
			if x < 0 {
				fmt.Println(x, " is a negative folk")
				ch <- x - 1
			} else {
				// giving some motivation to +ve folk to become -ve folk
				ch <- x * (-1)
			}
		}
	}
}

sample output 1:-
-1  is a negative folk
-2  is a negative folk
-3  is a negative folk
4  is a positive folk
-5  is a negative folk
-6  is a negative folk
7  is a positive folk
-8  is a negative folk
9  is a positive folk
10  is a positive folk
11  is a positive folk

sample output 2:-
1  is a positive folk
2  is a positive folk
3  is a positive folk
-4  is a negative folk
-5  is a negative folk
6  is a positive folk
7  is a positive folk
```
Explanation:-
1. we are creating a buffered channel as a communication medium between two go routines
2. iAcceptOnlyNegativeFolks & iAcceptOnlyPositiveFolks functions
will read data from the channel concurrently (which routine is accessible at that point of time it will read that data from the channel)
3. After running the above program we will get different out put for every execution because it is running concurrently we don’t know which routine will access the channel data at a point of time.

Please feel free to add any comments/suggestion/ mistakes etc…👍


please follow medium for interesting things {% embed https://medium.com/@tejasai651 %}
What is an API?
Tags: beginners, programming, tutorial
Published: 2022-11-29 05:36:54

Hey folks!

In today's post, I'm going to break down everything you need to know about APIs. Don't worry, it's not going to be that difficult :). So without further ado, let's get started!

##**Definition**
Application Programming Interface (API) is a software interface that allows two applications to interact with each other without using user intervention. In simple terms, API means a software code that can be accessed or executed.

##**Types of APIs**

**Open APIs**
Also known as Public APIs. These APIs are publicly available and there are no restrictions to access them.

**Partner APIs**
These APIs are not publicly available so you need specific rights or licenses to access them.

**Internal APIs**
Internal or private. They are developed by companies to use in their internal systems. It helps you to enhance the productivity of your teams.

**Composite APIs**
This type of API combines different data and service APIs.

##**Web Services API**

**SOAP**
It defines messages in XML format used by web applications to communicate with each other.

**REST**
It makes use of HTTP to GET, POST, PUT or DELETE data. It is basically used to take advantage of the existing data.

**JSON-RPC**
it uses JSOn for data transfer and is a light-weight remote procedural call defining few data structure types.

**XML-RPC**
It is based on XML and used HTTP for data transfer. This API is widely used to exchange information between two or more networks.

##**Features of API**
- It offers valuable services (data, function, audience).
- It helps you to plan a business model.
- Simple, flexible, and quickly adopted.
- Managed and measured.
- Offers great developer support.

##**Examples of API**
1. Razorpay API.
2. Google Maps API.
3. Spotify API.
4. Twitter API.
5. Weather API.
6. PayPal API.
7. Hubspot API.
8. YouTube API.
9. PayTm API.
10. Amazon's API.
11. Travel Booking API.
12. Stock Chart API.

Wondering if there are any testing tools? Well, lets dive in!

![Testing](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uosljili91q0rj25mkg5.gif)

##**API Testing tools**

**Postman**
It is a plugin in Google Chrome, and it can be used for testing API services. It is a powerful HTTP client to check web services.
For manual or exploratory testing, Postman is a good choice for testing API.

**Ping API**
It allows us to write test script in JavaScript and CoffeeScript to test your APIs. It will enable inspecting the HTTP API call with acomplete request and response data.

**vREST**
vREST API tool provides an online solution for automated testing, mocking, automatic recording, and specification of REST/HTTP APIs/RESTful APIs.


That's it! Don't forget to read through my article for more information on how to build your own API :- https://dev.to/mitchiemt11/build-an-api-in-less-than-3-minutes-b21

Cheers.
Best plants in shaded areas
Published: 2022-11-29 05:35:33

Want to utilize the shaded area in your garden? There are some plans that grow best in shade. 
 
Here’s our guide on the [best plants in shaded areas](https://gardenhomelife4u.com/gardening/garden-tips-best-plants-for-shaded-area-2021/). Read till the end and learn how to use the shaded area in your garden.
Laravel 9 Send Bulk Mail Using Queue
Tags: laravel9, mail, queue, php
Published: 2022-11-29 05:30:00

In this article, we will see laravel 9 send bulk mail using queue. 

Laravel queue is used for sending bulk mail with a background process, as we know if we are sending single mail laravel application it is working properly without taking much more time but if you want to send multiple emails in laravel then it will take too much time and also you can not do any operation during this time periods. 

Also, we will use mailtrap for sending mail.

So, let's see how to send bulk mail in laravel 9 using the queue, and laravel 9 send email using the queue.

```
Step 1: Install Laravel 9

Step 2: Create Route

Step 3: Create Queue Table

Step 4: Create Controller 

Step 5: Create Job

Step  6: Create Mail Blade
```
Planning to Work on Project from Scratch
Tags: javascript, opensource, senecaosd600, myphotohub
Published: 2022-11-29 05:16:09

As my final goal of Seneca OSD600 course, I picked `my-photohub`. [My Photohub](https://github.com/humphd/my-photohub) is a web app to take images and optimize them, and create HTML page. Created app will be hosted in GitHub repository. Basically anybody can create a webpage to show their great photos without much of programming knowledge. So the idea is to create a webpage via `GitHub Pages` using `GitHub Action`. And it removes any information contained in photos. What's interesting about this project is that no one has built anything yet. I have contributed seven repositories so far. They are all pretty mature projects which I don't have to create something from scratch. 

The issue that I picked up is [image optimization in GitHub Action](https://github.com/humphd/my-photohub/issues/3). At the beginning, I thought I just had to create `node` app that removes GPS information and optimize images and it could be doable enough for me. Once I left my comment on the issue, I had a response that I need to write a shell script to run in GitHub Action. I didn't think about writing a shell script. After some thoughts, I think I can write a process to take the image folder and run a function or program to do image optimization and store new images in a new folder. 

Also I should write Javascript program that optimize images. I found `ExifReader` and `Sharp` to extract metadata and resize. Both are well maintained libraries that are suitable for the project. 

I have many questions like where image folder is, where new images are stored, and what image sizes and formats need to be added. My plan is to share my initial plan and have a good discussion before implementing any of these. I will write more about the discussion and how I'm implementing in next article.