teleren/devto huggingface dataset:
india
Published: 2024-05-20 14:35:40

As for me, this site is very convenient in India - [https://aviator-gg.com/](https://aviator-gg.com/) - and there are a lot of cool slot machines here. I often play here because it's very difficult to find a site like this in India, so I recommend it to you if you live in India and don't know where to play slot machines. Bye.
Next JS Brutalism Style
Published: 2024-05-20 14:31:35

Excited to share something special with all #NextJS enthusiasts out there! Check out Neubrutalism, a meticulously crafted Next.js frontend template with a  modern design. Elevate your web development game today! 🔥 Free Get it now: 


https://parkjonggun.gumroad.com/l/neubrutalismnext #frontend
MariaDB Dump Bash-Script
Tags: mariadb, mysql, linux, devops
Published: 2024-05-20 14:31:07

I published a my utility script for backing up a mariadb to GitHub:
https://gist.github.com/MaaxGr/b0ed9675a9d581518543bd70a6b514ac

It has the following features:
* Help with list of all available databases
* Standardized output directory: `/root/backups/mariadb`
* Standardized file name with datetime and db name
* Progressbar
* Success-Message with filename, size and first 10 rows of dumpfile
New Feature Update: Compare metrics across sub-orgs and components
Tags: devsecops, security, reporting, cicd
Published: 2024-05-20 14:20:27

One of our well-received platform features is the range of [analytics reports](https://www.cloudbees.com/blog/introduction-to-cloudbees-platform-analytics-reports) offering insights for a deep dive into engineering efficiency, risk mitigation, and quality assurance. 

We continue to optimize these reports not only for insights but also for overall usability. Our latest update for these reports is your ability to gather and contrast insights across sub-orgs and components.  

## Let’s lean on a real-world use case to take a closer look. 

Assume you’re an **engineering director**. As part of your multiple mandates, **you have to uncover where your engineering team spends their time and whether it aligns with business objectives**. It’s the classic case of allocating your resources to high-value projects. 

One way to do this is to look at your entire organization’s commits and pull requests in the software delivery report. Check out the snapshot below for starters. 

![Commits Trend CloudBees Platform](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z9k31r7v8wdsqs6amtgj.png)

You can click the highlighted icon (available on almost every widget) to slice down the pull requests further. The icon opens a drawer to the right to show the pull requests by sub-orgs and components. Drill deeper by looking at the breakdown across multiple sub-org layers. Sort the list by clicking the table header in the drawer. 

A key point to remember is that any breakdown depends on which org/sub-org/sub-sub-org (for ex) you select. 

![Pull Requests](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jfiuhpb1skeojw7c2db1.png)

In the above example, ~62% of the pull requests (557 out of 903) relate to the ‘reports-service’ component. This serves as a checkpoint on whether you should reallocate your resources as an engineering director. It’s particularly problematic if ‘reports-service’ is not a business priority. 

Again, this is one way to use this feature update for every single widget across the different analytics reports. Stay tuned for more updates and new feature releases in the next few weeks. In the meantime…

## Try the CloudBees Platform for [FREE](https://id.cloudbees.io/realms/cloudbees/protocol/openid-connect/auth?client_id=nextgen-ui&redirect_uri=https%3A%2F%2Fcloudbees.io%2F&response_type=code&scope=openid+profile+email&state=56e73fe931b2425587abd3b5741e689f&code_challenge=8wfcuMieXaoTNF-2570BptaCnus3sTpJjc7wjnVnPrY&code_challenge_method=S256&response_mode=query) today!
Setting up MongoDB using Mongoose in Node.js
Tags: beginners, javascript, mongodb, mongoose
Published: 2024-05-20 13:49:13

## **How to Set up MongoDB using Mongoose in Node.js**
MongoDB is a popular NoSQL database that allows for flexible and efficient data storage. Mongoose is a popular ODM (Object Data Modeling) library for MongoDB that makes it easy to interact with the database from Node.js applications. In this article, we will go through the steps to set up MongoDB using Mongoose in Node.js.

### **_Step 1: Install MongoDB_**
First, we need to have MongoDB installed on our machine. You can download the Community Server edition from the official MongoDB website if you don't have one yet. Follow the installation instructions for your operating system.
### **_Step 2: Install Mongoose_**
Once you have successfully install MongoDB, you need to install Mongoose in your Node.js project. You can do this using npm by running the following command in your terminal:

```
npm install mongoose
```
## **_Step 3: Establish a Connection_**
Next, we have to create a new JavaScript file and require Mongoose:

```javascript
const mongoose = require('mongoose');
```
Then, use the `mongoose.connect()` method to connect to your MongoDB database:

```javascript
mongoose.connect('mongodb://localhost/mydatabase', { useNewUrlParser: true, useUnifiedTopology: true });
```
Replace 'mongodb://localhost/mydatabase' with the connection string to your MongoDB database.
## **_Step 4: Define a Data Structure_**
After connecting to database, define a schema for your data using the `mongoose.Schema` object:

```javascript
const userSchema = new mongoose.Schema({
  name: String,
  email: String
});
```
## **_Step 5: Create a Model_**
Once you have defined a schema, you can create a model using the `mongoose.model()` method:

```javascript
const User = mongoose.model('User', userSchema);
```
## **_Step 6: Use the Model_**
Finally, you can use the model to interact with your database. For example, you can create a new user document using the create() method:

```javascript
const user = new User({ name: 'John Doe', email: 'johndoe@example.com' });
user.save();
```
This creates a new user document in your database.
By following these steps, you'll be up and running with MongoDB and Mongoose in Node.js, ready to build powerful and scalable applications.
Checking for palindrome with nodejs
Published: 2024-05-20 14:07:11

_This is a very common technical interview question, where they ask you to build a server that can check whether a string is a palindrome or not._

A palindrome is a string that reads the same forwards and backwards.

For example, **RADAR**, radar is the same when you spell it backwards.

Another example is **CIVIC**,

Now, how do you write the query that validates whether a string is a palindrome or not?

Let's get started.

### **Step 1:**
Initialize your project with `npm init -y`

### **Step 2:**
Install necessary dependencies

_**Express**_: To create an express app and a server,
**_body-parser_**: To parser request body to the server

```js
npm i express body-parser
```

### **Step 3:**
Create an `app.js` file and create your server there

```js
// import dependencies
const express = require('express');
const bodyParser = require('body-parser');

// create an express app
const app = express();

// add body parser middleware
app.use(bodyParser.json());

// create a server
app.listen(4000,()=>{
console.log('Server is running on port 4000')
})
```
### **Step 4:**
Create a route to validate whether a string is a palindrome

```js
// import dependencies
const express = require('express');
const bodyParser = require('body-parser');

// create an express app
const app = express();

// add body parser middleware
app.use(bodyParser.json());

// create a route to validate string
app.post('/validate-string',(req,res)=>{
  // get string from request body;
     const { string } = req.body;

  // check if request body is empty;
  if(!string){
    return res.status(400).json({
    error:true,
    message:'Invalid string'
  })
 }

// validate string.

// step 1: convert string to an array
   const newString = string.split('');

// step 2: reverse the array
   const reversedArray = newString.reverse();

// step 3: convert the array back to string using join() method;
   const convertedString = reversedArray.join('');

// send a response to client;
   return res.status(200).json({
   success:true,
   isPalindrome: convertedString === string ? true : false
 })
})

// create a server
app.listen(4000,()=>{
console.log('Server is running on port 4000')
})
```

Just like that we have been able to write a query to validate if a string is a palindrome, you can proceed to start the server and test this query in `postman`.

Let me know what you think about this approach in the comments section and share if you have a better and easier way to achieving this.
B.. i'm so blueee
Tags: css, html
Published: 2024-05-20 14:04:08

Beginners luck,
Some things are **bold**
_Did you heard the song ?_
There is no link yet. 

Commandor Cat
_beginners luck

....
.......
....
.....
.......
.........
...........
ASCII never diss-apoints. 
nah
CSSBattle | #32 Band-aid
Tags: css, challenge, bandaid, cssbattle
Published: 2024-05-20 13:57:03

Welcome to CSSBattle Challenges!

In this short article, I review my solution for [CSSBattle - #32 Band-aid](https://cssbattle.dev/play/32) challenge. Please refer to the code snippet below for better insight into my thought processes and the implementation details.

---

> #### Challenge:

![Band-aid Challenge](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0zj4n567fde8qx3ltfry.png)

---

> #### Solution:

```html
<div class="container">
  <div class="layer-1"></div>
  <div class="layer-2"></div>
  <div class="layer-square"></div>
</div>

<style>
  body, * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  .container {
    width: 100vw;
    height: 100vh;
    position: relative;
  }
  .layer-1 {
    width: 50px;
    height: 200px;
    background: #F3AC3C;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .layer-2 {
    width: 200px;
    height: 50px;
    background: #A3A368;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .layer-square {
    width: 50px;
    height: 50px;
    background: #FBE18C;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg)
  }
</style>
```

---

> #### Key Takeaway(s):
- use multiple transform attributes as translate and rotate to shift and rotate elements

As always, I welcome any feedback or questions regarding the implementation details of the challenge. Otherwise, I hope this was useful!
Enhance Home Security with Smart Alexa Door Sensor
Tags: webdev, javascript, beginners, programming
Published: 2024-05-20 13:44:12

In today’s era of smart technology, safeguarding your home has become more seamless than ever. Enter the [Smart Alexa door sensor](https://smart-in-home.com/collections/zigbee-light-switches/), a revolutionary device designed to elevate your home security system. Compatible with Amazon’s Alexa, this sensor provides real-time monitoring of your doors, ensuring peace of mind and enhanced safety for you and your loved ones.

Gone are the days of worrying about whether you left the door unlocked or if someone has entered your home unnoticed. The Smart Alexa door sensor sends instant alerts to your smartphone whenever a door is opened or closed, allowing you to stay connected to your home no matter where you are. Whether you’re at work, running errands, or on vacation, you can always keep tabs on the security of your property.

Installation is a breeze, requiring no complicated wiring or technical expertise. Simply attach the sensor to your door using the adhesive backing or screws provided, and pair it with your Alexa device via the user-friendly app. Within minutes, you’ll have a fully integrated smart security solution at your fingertips.

But the benefits of the Smart Alexa door sensor extend beyond just security. With its compatibility with Alexa, you can seamlessly integrate it into your smart home ecosystem. Use voice commands to check the status of your doors, set up routines to automatically arm or disarm your security system, or even integrate it with other smart devices for enhanced automation and convenience.

Moreover, the sleek and discreet design of the sensor ensures that it seamlessly blends into any home decor, without detracting from the aesthetics of your living space. Its compact size also means that it won’t protrude or become obtrusive on your doors, maintaining the clean lines of your home interior.

In conclusion, the Smart Alexa door sensor is a must-have addition to any modern home security setup. Its seamless integration with Alexa, real-time alerts, and effortless installation make it the perfect solution for enhancing the safety and convenience of your home. Say goodbye to worries about home security and hello to peace of mind with the Smart Alexa door sensor.
What is your best DIY Hack
Tags: diy, keyboard, coding
Published: 2024-05-20 13:42:03

I recently found a neat hack to make my MacBook Pro more comfortable to use: filing down the sharp edges! It’s a simple mod that can significantly improve your experience, especially if you spend a lot of time on your laptop.

10/10 would do it again :P Happy coding out there.

[A video tutorial on the topic](https://www.youtube.com/watch?v=NnGAlf1hjs4)

Do you guys have any interesting hacks like this?
What Is Scope Creep and How Can You Avoid It?
Tags: productivity, career
Published: 2024-05-20 13:38:13

Have you ever started a project with a clear vision, only to see it gradually expand beyond control?

That’s scope creep—_a silent project killer_.

Imagine you begin a project without a solid plan, and before you know it, you’re drowning in endless revisions and unanticipated additions.

But fear not! By embracing strategic project planning, you can sidestep this nightmare.

I am hosting a **workshop** on:

- _Setting clear goals_
- _Defining project scope_
- _Anticipating potential roadblocks_

This proactive approach leads to smoother execution and happier stakeholders.

**Ready to conquer scope creep and ensure project success?** Join the workshop to dive deep into the power of strategic project planning [**here**](https://martinbaun.com/workshop00/#contact)
Upcoming 5 Best IT and Technology Trade Shows in UAE
Published: 2024-05-20 13:35:16

Discover the five most popular Trade Shows in UAE belonging to IT and Technology sector that are scheduled in upcoming months. Read More : [Upcoming 5 Best IT and Technology Trade Shows in UAE](https://www.expostandzone.com/blog/top-5-upcoming-it-and-technology-trade-shows-in-uae)
Install Ubuntu 20.04 on Virtualbox on Ubuntu 20.04
Tags: ubuntu, virtualbox
Published: 2024-05-20 13:31:40


## Problem: can't use sudo
When creating VM, check the option "Skip Unattached installation"
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p0gidzfm4ensoht2d9o4.png)
If you didn't check that and have completed the installation and find some problems, unfortunately, it's too late, you need to recreate VM and reinstall the OS. (If there is some easier way to fix it, please tell me, I would like to know) 


## Problem: Can't open terminal (worst thing ever)
1. Settings -> Language -> English (Canada)
2. reboot

Then you can open terminal. (I don't know why)
After that, even you switch to another language, the problem  won't appear again.  

## Problem: The window is too small (like 800x800)
1. On the VM's top menu, select Devices -> Insert Guest Addition CD image
2. On the opened window's top right corner, click "Run software"
3. reboot
4. On the VM's top menu, select View -> Auto-resize Guest Display.

## The time shown the top bar is in other langauges
edit /etc/default/locale to language you want
Is the tech interview process broken? 🚨
Tags: careerdevelopment, interview, career
Published: 2024-05-20 13:26:46

Is the tech interview process broken? 🚨

Lately, I've noticed a troubling trend in the tech hiring landscape. Companies are ramping up their interview demands, subjecting candidates to 6-10 rounds, and presenting complex coding challenges that barely reflect the actual job. Despite assurances that "it's the thought process that counts," many find that anything short of perfection can disqualify them—a standard so high, even AI might not solve them!

But the hurdles don't end there. Even the best performers are getting undercut on salary offers, with companies citing an overcrowded market due to layoffs. And if you're not chosen? Written feedback is a rare gem, as firms shy away from giving written critiques that could be "misinterpreted."

In the end, I keep seeing the same jobs posted online for months. Doesn’t look like this system is working, does it?
New Data Center in UAE - Equinix DX1!
Tags: cloudcomputing, programming, productivity, news
Published: 2024-05-20 13:07:56

Serverspace expands its presence in the Middle East by connecting the [Equinix DX1 data center](https://serverspace.us/about/news/new-data-center-in-the-uae-equinix-dx1/) in Dubai. Users can now deploy [cloud infrastructure in the UAE](https://serverspace.us/services/vps-server/cloud-servers-in-the-uae/) using the hyperconverged [vStack](https://serverspace.us/services/cloud-servers/) platform or [VMware](https://serverspace.us/services/iaas/) virtualization platform.

**Key features of the Equinix [DX1](https://serverspace.us/infrastructure/data-center-dubai/) data center:**

- Electrical power: 5.6 MW
- N+1 backup power supply
- N+20% cooling system
- Compliance with international standards Tier III, ISO 27001, ISO 9001, and PCI DSS
- vStack-R-SL201-25RE servers with 16-core Intel Xeon Gold 3.0 GHz CPUs

DX1 is part of the Equinix, Inc. data center network, a leader in the design, development, and support of modern data infrastructures.

📍 Our data centers: [New Jersey](https://serverspace.us/infrastructure/datacenter-new-jersey/), [Amsterdam](https://serverspace.us/infrastructure/datacenter-amsterdam/), [Toronto](https://serverspace.us/infrastructure/data-center-toronto/), [São Paulo](https://serverspace.us/infrastructure/data-center-sao-paulo/), [Istanbul](https://serverspace.us/infrastructure/datacenter-istanbul/), [Almaty](https://serverspace.us/infrastructure/data-center-almaty/), and [Dubai](https://serverspace.us/infrastructure/data-center-dubai/). More locations coming soon!

_Want to know more? Read the [full press-release](https://serverspace.us/about/news/new-data-center-in-the-uae-equinix-dx1/) on our website!_
Beginning of Something Good - Day #8
Tags: devksa
Published: 2024-05-20 13:04:29

Engineer turned software developer, will be my introduction to the fellow readers. 
Starting from scratch with nothing to build my career into software developer field coming from mechanical engineering field.
I have started learn Software Development 8 days ago, still learning the ropes of the programming, I started with html then go for css, learnt JS a bit just clear most of the basics nothing indepth, now I'm currently trying to get good grasp of react. Following the roadmap of full stack dev.

From this point onwards, I will try to make everyday count as I keep progressing, sharing my progress.

**Progress:**

I going knee deep on react and other frameworks to get the job so I speedrun the javascript not learning syntax but understanding what does what.
so I can know exactly what is happening when I will be learning react from videos
How to update outdated npm packages
Tags: npm, node, javascript
Published: 2024-05-20 12:59:46

---
title: How to update outdated npm packages
published: true
description: Stay ahead of potential vulnerabilities and ensure your project is running with the latest enhancements by following these simple steps. 
tags: npm, nodejs, javascript
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2024-05-20 12:42 +0000
---

Keeping your npm packages up-to-date is crucial for maintaining the security and performance of your projects. In this guide, I'll walk you through the steps to identify and update outdated npm packages. 

The `npm outdated` command checks the registry for outdated installed packages. It shows direct dependencies by default, but with the `--all` flag, it includes all outdated meta-dependencies. Key output fields include `wanted` (maximum version satisfying semver in `package.json`), `latest` (latest version in the registry), `location`, and `depended by`. Red indicates a newer version matches semver requirements, and yellow indicates a newer version above semver requirements. Various flags like `--json`, `--long`, and `--global` modify the output format and scope.

For more details, visit [npm outdated documentation](https://docs.npmjs.com/cli/v10/commands/npm-outdated).

Note that by default `npm update` will not update the `semver` values of direct dependencies in your project package.json. If you want to also update values in `package.json` you can run: `npm update --save` (or add the `save=true` option to a [configuration file](https://docs.npmjs.com/cli/v10/configuring-npm/npmrc) to make that the default behavior).

For more details, visit [npm update documentation](https://docs.npmjs.com/cli/v10/commands/npm-update)