teleren/devto huggingface dataset:
Difference between bootstrap and twitter bootstrap
Tags: bootstrap
Published: 2022-03-11 15:30:04

Bootstrap is a CSS framework used in front-end applications - that is, in the user interface screen - to develop applications that adapt to any device.

In WordPress, for example, it can be installed as a theme or used to develop plugins or even within them to stylize their functions. The framework's purpose is to offer the user a more pleasant experience when browsing a site.

For this reason, it has several resources to configure the styles of the page elements and efficiently and facilitate the construction of pages that, at the same time, are adapted for the web and mobile devices.

The above shows why it is essential to know about a potential structure of this type.

What is Bootstrap?
Initially, it was called Twitter Blueprint, and a little later, in 2011, it became open source, and its name changed to Bootstrap. Since then, it has been updated several times and is already in version 4.4.

The framework combines CSS and JavaScript to style the elements of an HTML page. It allows much more than simply changing the colour of buttons and links.

It means that the pages are designed to work on desktops, tablets and smartphones, in a straightforward and organized way.

Is There Any Difference Between Bootstrap and Twitter Bootstrap?
No, there is no difference between them. They are the same thing. Twitter Bootstrap is called Bootstrap in short form.
Hope this post helped you. Kindly share it with your friends and on all your social media platforms.
Bulk MySQL dump with bash
Tags: mysql, bash, bulk, dump
Published: 2022-03-11 15:28:53

#[Halo Sobat,]

Kali ini saya akan menyampaikan bagaimana cara melakukan bulk backup database pada mysql.

* Create file dalam server linux, dengan nama backup.sh.
`vi backup.sh`
* Paste code berikut ini dalam file backup.sh
```bash
#!/bin/sh

#your path for store backup file as filename.sql
fullpath='/path/to/backup'

#parameter for connection database
user="user"
host="your-ip-address"
passwd="pasword"
port="3306"

#name of databases, delimiter with [space]
dbnames="db_01 db_02 db_03"

#looping process for run mysqldump
for db in $dbnames; do
    filename=${db}.sql
    filepath=${fullpath}
    cd $filepath

    /usr/bin/mysqldump -u${user} -p${passwd} --databases ${db} > ${filename}

    # delete file when age is > 2 days
    find $filepath/* -mtime +1 -exec rm -rf {} \;

done
```

* Kemudian ubah permission pada file backup.sh
`chmod +x backup.sh`
Jika berhasil maka file backup.js akan berubah menjadi hijau bold
* Selanjutnya untuk menjalankan file tersebut seperti berikut
`./backup.sh`
Tunggu sampai selesai menjalan kan proses, dan cek folder ada sesuai dengan variable fullpath di backup.js
* Anda juga bisa menjalankan file backup tersebut secara scheduler menggunakan cronjob linux, seperti berikut
`crontab -e`
`0 1 0 0 0 /path/to/file/backup.sh`
Difference between metro 2033 and last light
Tags: metro, lastnight
Published: 2022-03-11 15:26:34

Metro Redux is the remastered version of Metro Last Light released last year for PC, PlayStation 3 and Xbox 360 and will arrive on August 29 for PC, PlayStation 4 and Xbox One. An ambitious project that comes with the premise of satisfying both those who have already tasted Metro Last Light and newcomers.


Metro Redux
Metro Redux is the ultimate double collection. It includes the latest versions of Metro 2033 and Metro: Last Light, each redesigned in the newest and most influential iteration of the 4A engine, resulting in a 60fps gaming experience with cutting-edge graphics.

Enjoy two of the best narratively developed shooter games of all time in one package; an epic adventure that combines gripping survival horror, exploration, tactical combat and stealth.

4A Games shows us the engine that it has used for these versions, thanks to which the resolution has tripled and has reached a stable 60 fps on both PlayStation 4 and Xbox One. Visual improvements: The game has evolved to offer an AI and improved stealth and debugging features such as cleaning the mask, the weapon customization system, or non-lethal takedowns. We will also have new hidden areas, secrets, and events in Metro Last Light.

4A Games
4A Games has joined levels making the game much more fluid and the world we move through more realistic thanks to the incorporation of global lighting, new textures and better weather effects.

At game modes, existing ones will add two new Spartan and Survival. The first one is close to the Metro Last Light experience. In contrast, the second is for those who like even stronger emotions, offering more aggressive enemies, smaller resources, and a reload time and weapon change. Higher.

In addition to all the Metro Last Light DLCs, Metro Redux includes:
Seven new single-player missions.
A Tower challenge.
Additional weapons.
The shooting gallery.
The AI arena.
Why you should choose to learn Python as a begginer in coding?
Tags: programming, python, codenewbie, computerscience
Published: 2022-03-11 15:24:42

Many beginners today want to learn coding but don't know where to start, so today Iam here to suggest to choose Python as your first programming language. Iam sharing what I learnt when I was a beginner in coding.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3rxje6dcffl8bp0iqaa5.jpg)

The Advantages of Python are:

*Easy to Read, Learn and Write. Python is a high-level programming 
 language that has English-like syntax. 
*Improved Productivity. Python is a very productive language. 
*Interpreted Language. 
*Dynamically Typed. 
*Free and Open-Source. 
*Vast Libraries Support. 
*Portability.

Basically Python is mostly used in Artificial Intelligence and Prototypes of huge projects. Python is not used in big projects like C/C++, the reason is Python have its disadvantages too!

The disadvantages of python are:

*Speed Limitations. We have seen that Python code is executed line 
 by line. 
*Weak in Mobile Computing and Browsers. While it serves as an 
 excellent server-side language, Python is much rarely seen on the 
 client-side. 
*Design Restrictions. 
*Underdeveloped Database Access Layers.
*Not suitable for Mobile and Game Development

Basically, with some outstanding advantages and too many disadvantages, python is not used in big projects, but still it's advantage matters. Since python is easy to understand, once if we learn python, then we can learn any other programming language easily since all programming languages are of some concept even if they have different code syntax. And imagine your building a game which requires a lot of lines of code and after coding you find that the game don't work properly! In this case, can python act as a prototype language or a Planning language. If we need the assumed game to have 10 functions which requires about 100 lines of codes, python can do the same job in 30-50 lines, thus, its a great time saving work, and after checking everything is okay with the game we can replace the python code with c++ , with the knowledge and confidence that the concept of function will work for sure!

   So I hope this blog might have helped you especially beginners who want to learn coding, comment down your thoughts and also stay connected to build a good Developer Network across the globe. Thank you.😊
Unix vs linux difference
Tags: linux, unix, difference
Published: 2022-03-11 15:24:31

If you are starting to look for information about Linux, then the term "Unix" may have appeared among the options available to you. Although these two terms are very similar, there is a significant difference between them. Here we will tell you what they are.


Linux vs Unix
Although they are related, Linux and Unix are terms that mean very different things. How are they related? For starters, they are both operating systems, and one is based on the other. Here we will tell you the history of both operating systems.

Main differences between Unix and Linux
These are the main differences:

Linux is free and free. The original Unix system is not, although some of its distributions are.
Linux is a clone of the original Unix system, although it does not contain its code.
Linux is just the system's kernel, while Unix is a complete operating system.
Linux was developed to run on PCs, while Unix was developed primarily for large workstations and servers. Linux currently supports more platforms than Unix.
Linux supports more types of file systems than Unix.
The confusion between both operating systems is generally given because they have different meanings. Whatever the meaning assigned to it, the truth is that Unix was first on the market and Linux later due to a strong desire for portable and free software. But following the same Unix philosophy. We can confirm that we have to be very grateful for the free software movement. Otherwise, the world would be much darker technologically speaking.
Difference between forwarding and routing
Tags: forwarding, routing
Published: 2022-03-11 15:21:36

More extensive IT networks are divided into smaller ones that have connections. Multiple intermediate stations may be required between two nodes for a transmission. Routing is the process of delivering your data from one node to another.


Routing:
Routing is used in a system of at least one network; none of these networks is isolated. If a leased line must be established, for example, in the phone system, routing is used to select the nodes between you and the person you are talking to.

If data packets are to be exchanged, routing means transferring these packets from sender to recipient. Different packets can be routed differently, even if they are considered part of the same communication at a higher level.

In both types of networks, routing refers to the totality of all decisions about the connection of individual nodes—low forwarding to the decision regarding the individual nodes handled by these node data packets.

Forwarding:
Both are used at the network layer to send data over different routes.

In the forwarding network layer function, data or packets are transferred from one incoming link, and then the other outgoing link is reached; the main thing is that all these packet transfers are done within a single router. When any packet comes from the router's inbound link, it must transfer the packet to its correct outbound link.

On the other hand, the routing function sends the packets from one PC to another PC within two different routers. It means that the routing occurs between the two routers in the network; their combined communication through routing protocols decides the routes or paths that the packets acquire on their journey from the origin to the destination.

It is the responsibility of the network layer to decide the appropriate route for the packet, to send it to the desired receiver. The network layer uses the routing algorithm to select the correct route to send the data. The routing algorithm is responsible for choosing the best route among many routes. It means the most precise, shortest and most unobstructed path.
Does steam tell you if someone blocked you
Tags: steam
Published: 2022-03-11 15:19:55

Does Steam tell you if someone blocked you? No, Steam doesn't notify you directly if someone blocked you, but you can check it manually by going to their public profile. If you can see it, but can't add or send a friend's request, then they have probably blocked you.


What is Steam?
It is a video game company created by Valve Software, founded by the same owner of Steam, Gabe Newell. If you purchase its products through a digital platform and download it, it counts as a digital game. It helps avoid contamination costs and makes the game acquisition process easier for the user.

How To Block Someone On Steam:
Here are the methods to block someone on Steam (Android and Windows).

For Android:
To block someone, go to Steam.
Next, go to the menu by clicking on the three sticks icon in the corner of the screen.
You must go to the friends' list. For this, go to the You and Friends tab and then select Friends from the list.
Click on the friend you want to block when you are on your friends' list.
When you are in this friend's profile, click on the three-dot icon at the beginning of the profile, and select the item Block all communications in the expanded menu.
Now confirm the lock by clicking the green button in the middle of the screen. Yes, lock them.
It is perfect! You have successfully restricted access to this user; now, you can block people you don't need on Steam.

For Windows:
Go to the Steam website, then click over your nickname in the centre of the Steam window and then click on the Friends tab.
Select the user that you want to block and click on it.
From the top right of a user profile, click the tab with three dots.
Select the Block all communications item in the drop-down menu to block the Steam user.
Now, select Yes, lock them to confirm the lock in the window that appears.
It's fine! Now you know how to block a user on Steam.

Does Steam tell you if someone blocked you?
When you are blocked on Steam, you cannot access the profile or UGC of that character. If that character has blocked you, they will show you unavailable in your friends' list. However, if you go to the Friends tab within the user and he's playing the game, you'll notice that he's online.

If anyone removes you from their friends' list, you won't be able to contact them on Steam. At the same time, you won't be able to see any stuff they've placed as private, or only your friends will be able to see it.

You can't contact them in any of the following methods if you've prohibited communications:

Making comments on the profile or community items.
Using Steam Chat to send messages.
Sending or adding invites to friends or groups.
The person's online status is not visible, yet the user can be seen playing a game.
As you can see, figuring out how to tell if someone on Steam has blocked, you is simple. Hope you enjoyed the article, like and comment to get more!
Power of destructuring
Tags: javascript, beginners, typescript, programming
Published: 2022-03-11 15:15:49


Destructuring is a blessing to JavaScript and TypeScript developers.
Destructuring works for both **Object** & **Arrays**.

## Object Destructuring
Consider the below object:
```typescript
const myObject = {
  userFirstName: 'Rahul',
  userLastName: 'Raj',
}
```

How will you fetch the firstName and lastName in separate variables.
```typescript
const userFirstName= this.myObject.userFirstName;
const userLastName= this.myObject.userLastName;
console.log(userFirstName) // Rahul
console.log(userLastName) // Raj
```
**OR**
You can use the destructuring.
```typescript
const {userFirstName, userLastName} = this.myObject;
console.log(userFirstName) // Rahul
console.log(userLastName) // Raj
```
This simple 1 liner will get you your values in the keyName variable.

**You don't like the lengthy variable name** 🤔
Change it to your desired names by giving an alias name.

```typescript
const {userFirstName: fN, userLastName: lN} = this.myObject;
console.log(fN); // Rahul
console.log(userFirstName); // Will through error
```

So you have learnt almost everything about object destructuring.

## Array Destructuring

Array destructuring is similar to Object destructuring but it is used when we know the number of elements or need the initial element to work with.

```typescript
    const userDetails:string = "Rahul,dev.to,rahulrajrd";
    const [name, website, username, noItemCheck] = userDetails.split(",");
    console.log(name); // Rahul
    console.log(website); // dev.to
    console.log(username); // rahulrajrd
    console.log(noItemCheck) // undefined
```
🟥 Important Note.
>  If the returned value is less than the assigned value as shown above the value will be undefined.


If you like the post follow me for more
{% user rahulrajrd%}
Paracetamol.js💊| #76: Explica este código JavaScript
Tags: javascript, webdev, beginners, spanish
Published: 2022-03-11 15:15:08

## **Explica este código JavaScript**

```js
const arr = [];
console.log(Array.isArray(arr)); // ??
```

A. `true`
B. `false`
C. `[]`
D. `ReferenceError`

Respuesta en el primer comentario.

---
Bag 2 - Upload with ExpressJS API
Tags: node, express, upload, multiparty
Published: 2022-03-11 14:49:31

#[Halo sobat]

Melanjutkan https://dev.to/irpankusuma/upload-file-dengan-xhr-2a3a. Sekarang saya akan menampilkan script API dengan ExpressJSnya. Pertama saya harap Anda sudah biasa menggunakan expressjs dan sudah pernah membuat sebuah API.

Kemudian sebelumnya install package multiparty berikut ini
```bash
npm i connect-multiparty
```

Selanjutnya dalam file route yg akan digunakan codenya seperti berikut ini
upload.js
```javascript

const router = require("express").Router();
const CPM = require("connect-multiparty");
const helper = require('helper.js');
const multiparty = CPM();
const target_path = `target_path`;

///// route file for access data from API
router.post("/", multiparty, async (req, res, next) => {
  try {
    const file = req.files.upload.path;
    let obj = {
      files: req.files,
      temp: req.files.upload.path,
      filename: req.files.upload.originalFilename,
      ext: req.files.upload.type,
      target_path: target_path,
    };
    
    ///// file berikut yg bertugas melakukan transfer file 
    ///// dari temp file ke local folder pada API project
    await helper.uploadFile(obj, file, target_path)
      .then(async (r) => {
        let data = {
          image_type: r.data.ext,
          real_path: r.data.target_path,
          real_filename: r.data.filename,
        };
        res.status(200).send(r);
      })
      .catch((e) => {
        throw e;
      });
  } catch (err) {
    res.status(401);
    console.log(`error ${err}`)
  }
});

module.exports = router;

```

Kemudian selanjutnya adalah create helper.js
helper.js
```javascript
const fs = require('fs')
const mv = require('mv')

module.exports = {
  uploadFile: (obj={},tmp_path,path) => {
    return new Promise((resolve,reject) => {
      try {
        const filename = path+obj.filename;
        if(!fs.existsSync(path)){
          fs.mkdirSync(path);
          mv(tmp_path,filename,function(err){
            if(err) reject(err)
            fs.unlink(tmp_path,function(){
              if(err) reject(err)
              resolve({status: true, message: 'Data uploaded success'})
            })
          })
        } else {
          mv(tmp_path,filename,function(err){
            if(err) reject(err)
            fs.unlink(tmp_path,function(){
              if(err) reject(err)
              resolve({status: false, message: 'Data uploaded failed!'})
            })
          })
        }
      } catch (error) {
        reject(error)
      }
    });
  }
}
```

Dalam expressJS mapping file upload.js pada routing seperti berikut ini
```javascript
const router = require('express').Router()

router.use('/upload',require('./upload'))
```

Selanjutnya Anda bisa mencoba menggunakan postman seperti berikut
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/25f6a1kh1dl33ajhm322.png)
How to make Custom Pagination Component in React with Hooks
Published: 2022-03-11 14:32:56

![Pagination with Hooks](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vjom02e63wikbrrwpvxn.png)
 
We often find ourselves in a situation where we have to deal with large sums of data in our Application for user experience. If we render the data, in the same way, using the map function, the DOM Tree and the efficiency of our app will suffer the consequences like effect on speed and loading time, etc.

There are four solutions for this problem, and pagination is one of them. It divides the content into pages decreasing the pressure on the DOM Tree and keeping our efficiency unharmed.

Here, we’ll discuss a way of creating pagination without using any package in React with the help of React Hooks.

## Index

1. React App
2. Creating a table for the data
3. Applying Hooks
4. Displaying the data
5. Creating the pagination

Let’s begin….

## Creating our React App

Creating a React App is very easy, just type the following command in the command prompt

```
create-react-app react-pagination
```

For this to work, you should have npm and node installed in your system and then navigate using the cd command to the folder where you want to create your react app.

Bootstrap will be used from their CDN links for this project, you can use it any other way too.
Creating the table for our data

An API for getting our large sum of data. Now we will create our table for displaying this data.

Click here for the full [article](https://tekolio.com/how-to-make-custom-pagination-in-react-js-with-hooks/).
New features of HTML5
Tags: html, beginners
Published: 2022-03-11 13:29:50

HTML stands for Hypertext Markup Language, and it is a markup language used to create online pages and applications. 
HTML5 is the fifth version of the HTML markup language.

## Audio and Video

HTML5 has two important additions: audio and video tags.  The `<audio>` tag is used to embed sound material, such as music or other audio streams, in a document. HTML supports three different audio formats: MP3, WAV, and OGG.
`<audio controls>
  <source src="sound.mp3" type="audio/mpeg">
</audio>`
A video is shown on a web page using the HTML `<video>` element. The controls attribute adds video controls like play, pause, and volume. HTML supports three different video formats: MP4, WebM, and Ogg. 
 `<video controls >
   <source src="video.mp4" type="video/mp4">
 </video>`

## Vector Graphics

It may be used to generate graphics in a variety of shapes and colors using scripting, most commonly JS. SVG stands for Scalable Vector Graphics, and it is a language for describing 2D graphics and graphical applications in XML; the XML is then rendered by an SVG viewer. 
SVG is mostly used for vector diagrams, such as pie charts, two-dimensional graphs in the X, Y, and so on. 
How to create SVG on a web page
The `<svg>` tag can be used to embed SVG into a web page. You can use this element to hold SVG graphics and use it as a container for SVG.

## header and footer

The HTML `<header>` element denotes introductory information, which is usually a collection of introductory or navigational support. 
It could have some heading elements, as well as the author's name and other things.

`A page header looks like 
<header>
   <h1>Main heading of the page</h1>
   <p>some text here</p>
 </header>`

The `<footer> `tag defines a footer for a document or section.
A <footer> usually includes information about the section's author, copyright information, or links to related papers. 
`<footer>
   <p>Reference here</p>
 </footer>
 `

## nav tag
The nav tag represents the set of navigation links. The `<nav>` HTML element defines a portion of a page that contains navigation links, either within the current document or to other documents.
A `<nav>` element does not have to contain all of a document's links. 
Only important blocks of navigation links should be included in the <nav> element

`<nav>
   <a href="/reference1/">Reference 1</a> |
   <a href="/reference2/">Reference 2</a> |
 </nav>.`