teleren/devto huggingface dataset:
How can I login and setup D-link router?
Tags: dlinkrouterlogin, dlinkroutersetup, dlinkrouterlocal
Published: 2021-06-01 02:55:27

In this blog, I'll tell you how to do your D-Link router login and D-Link Router setup. You'll need to do D-link router setup and D-link router Login to get access to your device. It is not a difficult or time-consuming technique. In just a few simple steps, you'll be able to log into your router. It has all of the latest features and technology, making it simple to use and control. Here's where you can learn more about the D-Link router login process, D-Link Router Setup and how to change the password.


Simple Tips for D-link Router Login and D-Link Router Setup


If you want to stream HD video online or play online video games, you must first complete the d-link router setup and d-link router login process. It's not difficult to log in; it only takes a few minutes. Take a look at the steps below to get started.

Before you can begin the login process, you must first connect your devices.
To do so, use an Ethernet cable to link your router and modem, and then use it to connect your router and modem.
After you've completed the connecting process, you'll need to open a browser on your computer.
Then type 192.168.1.1 as the default IP address in the address field and hit enter. Dlinkrouter.local is another option.
You'll be redirected to the login screen. 
It is recommended that the login password be changed to improve security.
After you've completed the login process, go to the setup page and follow the instructions to configure your device.
Easy ways to change the D-Link Router’s password
You'll want to change the router's password after you've completed the D-link router login process for more security. You can change your password fast by following the steps provided below.
To get started, open your web browser and type dlinkrouter.local or your IP address into the address bar, then hit enter.
Type admin as the default username and password on the login page, then click the Login button.
Then choose wifi settings from the drop-down menu.
You'll now be able to fill in your new password in the password field.
Then, to save the changes, select the Save option.
You can now access your router with the new password.
Conclusion
Using the information provided above, you will be able to easily log into your D-link router. You can use the troubleshooting steps in the setup instructions to address any problems you have with your device during the login process. For further information, please call our toll-free hotline. You must be satisfied with our services.
For further information you can visit us.
Contact Us: 18008108012
Visit Us: https://dlnkroute.site/
Kotlin Pure Regex Routing Logic
Tags: kotlin, regex, a
Published: 2021-05-31 09:18:09

This article is just going to be a step my step of my turn sketch of utilizing pure regex patterns to develop complex and robust routing logic that is extremely lightweight, compact and configurable. In this example we will take a look at whats going on in the code. Let's do it.

Regex.kt
==============================================================

These are regex checkers that do protocol match checks

```javascript
//     ft or ftps
var ftpReg = Regex("(ftp|ftps://)")

//    https or https
var httpReg = Regex("(?:(http|https)"

//. http://www.example.com
//takes to root directorty of any site
var httpReg = Regex("(?:(http|https)://\\w{1,})(\\.)")

//Handles site queries
//this is also dynamically expandable and contractable
var httpReqReg = Regex("(?:(http|https)://\\w+)(\\.)(\\w+\\2\\w+)/(?:\\w+[/]?){0,}(?:\\?)?(\\w+=\\\"[a-z]+\\\"&?)+")
```
These are the email links
```javascript
/*
These are the URLs being matched and routed through proxy
Sorts protocol, site+(n(directories))+(n(query/params))
*/
var ftpReg = Regex("(ftp|ftps://)")
var https  = "https://wwww.google.com"
var http = "http://wwww.nigel.com"
var ftp = "ftp://modog"
var hReqURL = "https://www.google.com/asdasd/asdasd/asdas?someVar=\"y\"&someVar=\"y\"&someVar=\"y\""
```
Here is the execution

```javascript

    var urlArray = arrayOf(http, https, ftp, hReqURL)
    for(url in urlArray) {
        when {
            httpReg.containsMatchIn(url) -> {
                println(url)
            }
            ftpReg.containsMatchIn(url) -> {
                println(url)
            }
            httpReqReg.containsMatchIn(url) -> {
                println(url)
            }
        }
    }

```
Here is the whole file now together:

```javascript

fun main(){
    var httpReg = Regex("(?:(http|https)://\\w{1,})(\\.)") //just the sit
    var httpReqReg = Regex("(?:(http|https)://\\w+)(\\.)(\\w+\\2\\w+)/(?:\\w+[/]?){0,}(?:\\?)?(\\w+=\\\"[a-z]+\\\"&?)+")
    var ftpReg = Regex("(ftp|ftps://)")
    var https  = "https://wwww.google.com"
    var http = "http://wwww.nigel.com"
    var ftp = "ftp://modog"
    var hReqURL = "https://www.google.com/asdasd/asdasd/asdas?someVar=\"y\"&someVar=\"y\"&someVar=\"y\""
    var urlArray = arrayOf(http, https, ftp, hReqURL)
    for(url in urlArray) {
        when {
            httpReg.containsMatchIn(url) -> {
                println(url)
            }
            ftpReg.containsMatchIn(url) -> {
                println(url)
            }
            httpReqReg.containsMatchIn(url) -> {
                println(url)
            }
        }
    }
}

```
Tips To Better Manage Your Time As A Developer
Tags: career, webdev, tips, time
Published: 2021-06-01 02:31:55

Find it hard to manage your time as a developer? These tips will help you better manage your daily time :alarm_clock:

## :clipboard: Plan Ahead
Planning ahead is a critical part of time management. It's a good idea to plan ahead for the week or at least the day before. Once knowing what needs to be done for the day or week, you'll stay organised and focused.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oyjaosnk7evt4hlg5fjy.jpg)

## :heavy_check_mark: Set Tasks/ Goals correctly
Make sure your tasks/ goals are achievable and measurable. Use the **SMART** method when setting goals. In essence, make sure the goals you set are **S**pecific, **M**easurable, **A**ttainable, **R**elevant, and **T**imely.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ap2tfc7rwtq1o4088388.gif)

## :thumbsup: Prioritize Wisely
Prioritize tasks based on importance and urgency based on the Eisenhower Matrix. For example, look at your daily tasks and determine which are:
- **Important and urgent:** Do these tasks right away.
- **Important but not urgent:** Decide when to do these tasks.
- **Urgent but not important:** Delegate these tasks if possible.
- **Not urgent and not important:** Set these aside to do later.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zy0n70b4emoys65lmbjn.jpg)

## :point_up: Do One Thing at a Time
Once choosing a task, keep doing it to the end. Working on your project then suddenly checking your email for no reason and writing replies is not only bad time management but also bad for your concentration.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xmwgf3c83bmt053vv3ud.jpg)

## :wastebasket: Remove Unimportant Tasks/ Activities
It is important to remove excess activities or tasks. Figure out what is significant and what deserves your time. Removing non-essential tasks/ activities frees up more of your time to be spent on important things.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ozj7ah4vdi4e59pcviyd.jpg)

## :two_men_holding_hands: Delegate
To be honest, you can't do everything by yourself, so cut yourself some slack and delegate. Maybe it's time for you to find or train someone to do some simple processes in your work. That frees you up to focus on the bigger projects or the more complicated tasks.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4tppezslehr151r4hx0o.jpg)

## :iphone: Keep in Touch
If you like this article, don't forget to follow and stay in touch with my latest ones in the future by following me via:

- **Twitter:** https://twitter.com/RichardWynn01
- **Medium:** https://richard-wynn.medium.com
- **Github:** https://github.com/richard-wynn
App Highlights: GitHub

Published: 2021-06-01 02:20:54

![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6cmaztbgz8hveor2q22k.png)
What is Git?

Git is a free and open-source distributed version control management system that provides centralized and distributed models. It is used to coordinate the workflow among project team members and track their progress over time. It also benefits both programmers and non-technical users by keeping track of their project files.
What is GitHub?

GitHub is a web-based hosting site that provides a graphical interface to access git repositories. It is one of the most popular platform on the internet for coders to publish and collaborate on code. If you are a programmer, adding a code or project to GitHub increases the visibility of your work. You can then use the command line to make and keep track of any changes.

GitHub is a go-to platform for programmers. It is the world’s largest code-sharing community. Using the GitHub interface, coders can host projects and share code with friends or the public. You can store your work in one centralized place, review previous versions, and share your work with other team members. Using Git, coders keep track of any changes made to their programs. GitHub also provides a GUI for working with Git, with visualizations of branches and commits from over 30 million users.
Pre-built journeys

When a new ticket is added via Freshdesk, create a new issue on GitHub

Use this workflow

Make a new Github issue from newly added Airtable records

Use this workflow

When a new issue on GitHub is created, create a corresponding new JIRA issue

Use this workflow

When a new JIRA issue is created, create a corresponding new GitHub issue

Use this workflow
Top Apps To Integrate With GitHub

    Trello: Create Trello cards from new GitHub issues
    Slack: Get direct messages on Slack for new GitHub mentions
    Google Sheets: Add new GitHub issues to Google Sheets as new spreadsheet rows
    Twitter: Share new GitHub commits on Twitter
    Gmail: Create GitHub issues from new emails on Gmail [Business Gmail Accounts Only]
    Todoist: Add new GitHub issues to Todoist as new tasks

Explore our GitHub page to know more about automating GitHub, and get in touch with us in case you don’t find an app you’d like to pair GitHub with!
LeetCode 146. LRU Cache (javascript solution)

Tags: algorithms, javascript
Published: 2021-06-01 02:19:46

###Description:
Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.

Implement the LRUCache class:

LRUCache(int capacity) Initialize the LRU cache with positive size capacity.
int get(int key) Return the value of the key if the key exists, otherwise return -1.
void put(int key, int value) Update the value of the key if the key exists. Otherwise, add the key-value pair to the cache. If the number of keys exceeds the capacity from this operation, evict the least recently used key.

###Solution:

```javascript
class LRUCache {
  constructor(capacity) {
    this.cache = new Map();
    this.capacity = capacity;
  }

  get(key) {
    if (!this.cache.has(key)) return -1;

    const v = this.cache.get(key);
    this.cache.delete(key);
    this.cache.set(key, v);
    return this.cache.get(key);
  };

  put(key, value) {
    if (this.cache.has(key)) {
      this.cache.delete(key);
    }
    this.cache.set(key, value);
    if (this.cache.size > this.capacity) {
      this.cache.delete(this.cache.keys().next().value);  // keys().next().value returns first item's key
    }
  };
}
```
How To Generate or Export Excel File In Laravel
Tags: webdev, laravel, php, programming
Published: 2021-06-01 02:04:38

**Generate** **Excel** **Files** **in** **Laravel** - The generate or export excel file feature may be needed in a system, especially if the system is an information system or a back office system for example. Now to generate or export excel files in the laravel framework is very easy. We can use the package from laravel-excel.com. In this post, I will explain how to make an excel file generate or export feature in laravel. And in this experiment, I will use the source code of the company profile website that I previously shared on [Bisabos.com/Laravel-Company-Profile](https://bisabos.com/source-code/download-source-code-website-company-profile-laravel-8-bootstrap).

Alright, let's start with the following steps:

1. Open the project company profile folder

2. Open a terminal and go to the project directory

3. Run the command to install the laravel excel package from the maatwebsite in the project we are using.

```
composer require maatwebsite/excel
```
4. Because in this experiment, we will try to add the export excel feature in the team menu so we need to create a TeamsExport file. To create the Export file, you can use the command below.
```
php artisan make:export TeamsExport --model=Team
```
With the command above, it will create us the TeamsExport file in the new export folder.

5. In this experiment we use a project that uses the laravel framework version 8, so we need to adjust the code created in step no. 4.

Go to the App\Exports\TeamExports.php file then make the changes as below.
```php
use App\Team;
```
change to
```php
use App\Models\Team;
```
6. Open the TeamController.php file, then make changes as below.

Add code
```php
use App\Exports\TeamsExport;

use Maatwebsite\Excel\Facades\Excel;
```
And
```php
public function export()

{

return Excel::download(new TeamsExport, 'team.xlsx');

}
```
7. Then in the route>web.php file add the code as below
```php
use App\Exports\TeamExport;
```
And
```php
Route::get('teams/export/', [TeamController::class, 'export'])->name('export');
```
8. Then lastly, we need to add an export button in the view. Open the index.blade.php file in resources>views>admin>team>index.blade.php

Then add the code below, just below the "create team" button.
```php
<a href="{{ route('export') }}" class="btn btn-primary">Export Excel</a>
```
![Laravel Excel Generate](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5lkrf6j63qsebm3ww62v.png)
Done. Now we can try to run php artisan serve and go to admin>team menu. There is already an export excel button that can be directly used to generate or export excel.

Thank's for your attention and don't forget to visit [Codelapan.com](https://codelapan.com/post/membuat-fitur-import-excel-di-laravel-8), to get articles about web programming, web design, and others.
Sql vs Mysql
Tags: php, programming, codenewbie, webdev
Published: 2021-06-01 01:51:06

In today’s world where we are surrounded by a large amount of data handling and maintaining this amount of data is a task well its easier with a lot of database technologies around us by making use of powerful languages like sql and other flavors of sql as well.

 In this article we are going to have a quick comparison between sql and my sql and see what it has to offer to us . so without further ado lets jump right in.

#What is sql?
Sql(standard query language) is a standard language for accessing and manipulating databases.
The goal of sql is to have a querying language which is powerful, simple and efficient at the same time. An advantage of sql is that it stores data in a very structured way, accessed easily and can be worked on efficiently.

#What is mysql?
Mysql database stands for “mysql or my sequel”. It was the first open source database in the world. It is an **RDBMS** which keeps data in the database organized. My sql database is used alongside PHP and Apache web server to create a powerful package. Mysql database system consists of a wide range of database that can store lots of type of data. Mysql is one of the most popular database software out there today.
Mysql provides a multi-user access to database. Mysql uses sql to query databases and work with it at the same time. It is used by a wide range of companies.

#Sql vs Mysql
**Meaning:** Sql stands for structured query language. It is used in managing relational databases(RDBMS). Mysql is an RDBMS which uses SQL to perform operations such as storing, retrieval modification of a database.

**Complexity:** Sql needs to be learnt and worked on and practiced to make sure it can be used effectively. Mysql is readily available software which can be downloaded and installed.

**Type:** Sql is fine language which is used for querying a database, on the other hand mysql is an entire database software or a platform which uses sql to query the database.

**Purpose:** Sql is the language used to query and operate on a database system. Mysql is the tool which allows sql to perform operations such such as data handling, data storage, modifications and deletion operations and much more.

**Usage:** Thee are various techniques which Sql uses, there are multiple code segments, code snippets, multiple commands a used in various RDBMS systems including mysql. Mysql is used as an RDBMS database which ensures languages such as sql can run on top of it.

**Updates:** Sql is a fixed language, commands and the codes remain the same mostly. Mysql being a software, gets frequent updates based on the changes.

#Summary
Sql has been a major player throughout the world of IT, it is very vital to in most applications.

Mysql brings about a software which pretty much makes the best possible way to store, structure data into a database and to work with it later on.
this
Tags: java, javascript, python
Published: 2021-06-01 01:44:42


- 
There is a Car class -> Car{this.something}
- 
There is 2 objects of Car class -> car1, car2
- 
When I access Car with car1 -> 
[this == car1][this.something == car1.something]
- 
When I access Car with car2 -> 
[this == car2] [this.something == car2.something]
Start new docker container to run duplicacy to back up specific directory
Published: 2021-06-01 01:07:55

```
CONTAINER_NAME="duplicacy-somefolder"
PATH_TO_SOURCE_DATA="/path/to/data/to/backup"
SNAPSHOT_ID=10001
PATH_TO_BACKUP_STORAGE="/path/to/duplicacy/repository"
DUPLICACY_PASSWORD="password-to-encrypt-backup"

docker run \
  -d \
  --name $CONTAINER_NAME \
  -v $PATH_TO_SOURCE_DATA:/data:ro \
  -v $PATH_TO_BACKUP_STORAGE:/backup-target \
  -e BACKUP_CRON="0 0 * * 0" \
  -e SNAPSHOT_ID=$SNAPSHOT_ID \
  -e STORAGE_URL=/backup-target \
  -e FILTER_PATTERNS=$FILTER_PATTERNS \
  -e DUPLICACY_PASSWORD=$DUPLICACY_PASSWORD \
  azinchen/duplicacy:latest

```
Tiny DevOps Episode 4: Working with technical debt
Tags: video, technicaldebt, legacycode, testing
Published: 2021-06-02 07:36:39

---
title: Tiny DevOps Episode 4: Working with technical debt
published: true
date: 2021-06-01 00:00:00 UTC
tags: video,technicaldebt,legacycode,testing
canonical_url: https://jhall.io/archive/2021/06/01/tiny-devops-episode-4-working-with-technical-debt/
---

{% youtube p-fh9dSUr70 %}

Peter Morlion helps organizations reduce bugs in their software so that they can release more confidently. In this episode, he talks with me about how he does this by identifying, then overcoming technical debt and legacy code.

Or [listen to the podcast](https://share.transistor.fm/s/7f7942e2).

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
BFE.dev #34. implement `Promise.any()` 
Published: 2021-05-31 22:39:15

> [BFE.dev](https://bigfrontend.dev) is like a LeetCode for Front End developers. I’m using it to practice my skills.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y2tjr6cxftwyj0hnxzwt.jpeg)


This article is about the coding problem [BFE.dev#34. implement `Promise.any()`](https://bigfrontend.dev/problem/implement-Promise-any)

## Analysis

AS MDN says,
> Promise.any() takes an iterable of Promise objects and, as soon as one of the promises in the iterable fulfils, returns a single promise that resolves with the value from that promise
e item one by one randomly from rest possible positions.

We can follow the definition and create a new Promise that resolves when any promise passed in resolves.

Problem is when all promises reject, we need an array to hold all the errors, and finally reject the returned promise by counting.

## Show me the code

```js

/**
 * @param {Array<Promise>} promises
 * @returns {Promise}
 */
function any(promises) {
  // return a Promise, which resolves as soon as one promise resolves
  return new Promise((resolve, reject) => {
    let isFulfilled = false
    const errors = []
    let errorCount = 0
    promises.forEach((promise, index) => promise.then((data) => {
      if (!isFulfilled) {
        resolve(data)
        isFulfilled = true
      }
    }, (error) => {
      errors[index] = error
      errorCount += 1
      
      if (errorCount === promises.length) {
        reject(new AggregateError('none resolved', errors))
      }
    }))
  })
}
```


## Passed

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0j260p05k769dhhtpy0s.gif)

Here is my video explaining: https://www.youtube.com/watch?v=fYTmLpFJPdw


Hope it helps, you can have a try at [here](https://bigfrontend.dev/problem/implement-Promise-any)
Start Kubernetes Live Stream: Pods, ReplicaSets, and Deployments 
Tags: kubernetes, beginners, devops
Published: 2021-05-31 22:58:17

---
title: Start Kubernetes Live Stream: Pods, ReplicaSets, and Deployments 
published: true
description: Kubernetes for beginners
tags: kubernetes, beginners, devops
//cover_image: https://direct_url_to_image.jpg
---

I did my first YouTube live stream this weekend. I took a couple of days to edit the video - not because there was a lot of edits, but because it takes 8+ hours for YouTube to process the changes :)

In the first video I am talking about Kubernetes Pods, ReplicaSets, and Deployments.

{% youtube tsAH_Vv8GOI %}

Here are the topics covered in the video:

00:00 Introduction
05:22 Container orchestration
08:32 Kubernetes introduction
10:21 Kubernetes architecture
18:37 Kubernetes resources
22:40 Anatomy of a resource
26:56 Labels
27:27 Selectors
29:19 Annotations
31:46 Namespaces
34:53 Pods
47:17 Creating a cluster in GCP
01:02:04 Pods Demo
01:09:40 ReplicaSet
01:16:40 ReplicaSet Demo
01:34:14 Deployments
01:37:11 Deployment strategies
01:44:57 Deployments Demo
01:53:50 Deployment strategies Demo
4 Underrated Skills of Developers
Tags: skills, devops, programming, codenewbie
Published: 2021-05-31 22:52:31

**Coding Terminology**

Ensuring you understand coding terminology will help you be a more confident coder. It will allow you to grasp concepts and techniques at a faster rate in comparison to those who aren't familiar with the terminology. There is a lot of jargon associated with each coding-based language, so it does require time and patience to understand everything, but by having a firm grasp on basic programming vocabulary, you can exceed the time it takes and develop a stronger learning strategy. 

**Communication**

Good communication is a skill that is as important as technical-based knowledge. Quality and consistent communication are at the core of every strong team as, without it, you are likely to experience severe setbacks and ongoing issues. Collaborative coding also goes along with communication as it involves working with your team and tackling problems together to find solutions in ways you may not have been able to when working alone. 

**Documentation**

Documentation is done with the purpose of creating a map for others to understand your work and it should be as important to a developer as all other facets of development. Documentation can look like comments, video recordings, or anything written in addition to your code to help people understand how it works.

**Efficiency**

Efficient coding is learning where to implement specific techniques while ensuring a healthy dose of productivity. It's linked with the speed at which software is being executed, the ability to make use of reusable components wherever possible, and to create programming code that ensures data integrity and consistency. 

Continuing to discover and practice new and innovative ways of being an efficient coder will allow you to level up your skills as a developer.