teleren/devto huggingface dataset:
NestJS CODEX: auxiliaries for CRUD using Mongoose with transactions support
Tags: nestjs, webdev, mongoose, crud
Published: 2023-11-04 09:45:00

---
title: NestJS CODEX: auxiliaries for CRUD using Mongoose with transactions support
published: true
description: Repository provides a robust CRUD service using NestJS and Mongoose, designed to simplify the development of database interactions with built-in transaction support via Async Local Storage.
tags: nestjs,webdev,mongoose,crud
cover_image: https://opengraph.githubassets.com/91711e9f7c32fdd6210c34cfd078db495514099672fd86aee4443cbabcc8bb7b/liashchynskyi/nestjs-codex
published_at: 2023-11-04 09:45 +0000
---
I've been working with Nest for quite a long. Setting up base stuff such as CRUD services, etc. is a bit of exhausting. So I've created a project that can help you with that. 

R﻿epository provides a robust CRUD service using NestJS and Mongoose, designed to simplify the development of database interactions with built-in transaction support via Async Local Storage.

# Features
* CRUD Operations: Simplify create, read, update, and delete operations using Mongoose.
* Transaction Management: Handle transactions smoothly and reliably in your services.
* Async Local Storage: Utilize Async Local Storage for context management throughout the life of a request.

F﻿or more information please refer to https://github.com/liashchynskyi/nestjs-codex/

This post was originally posted on my blog - https://liashchynskyi.net/posts/nestjs-codex-auxiliaries-for-crud-using-mongoose-with-transactions-support
Tmux a terminal multiplexer
Tags: tools, linux, tmux, servers
Published: 2023-11-04 09:23:29

---
title: Tmux a terminal multiplexer
published: true
description: Tmux is a terminal multiplexer, allows you to have many windows panes in one terminal
tags: Tools, Linux, Tmux, Servers
cover_image: https://res.cloudinary.com/mannuel/image/upload/v1699086204/mfcom/tmux.png
# Use a ratio of 100:42 for best results.
# published_at: 2023-11-04 09:19 +0000
---

[Original post](https://mannuelferreira.com/posts/tmux-terminal-multiplexer)

Tmux is a terminal multiplexer, it allows you to have multiple processes open in multiple window panes on your server.

All the window panes can be manged from one terminal. Servers don't have fancy multi tab terminals so yeah this is the answer.

The processes will run in the background on a tmux server. The process and windows will remain open and running even when you log out of your SSH session.

You can use it on your localhost machine as well to have multiple window panes running any process, like `npm run watch`, `npm run start` or what ever your heart desires.

![example](https://res.cloudinary.com/mannuel/image/upload/v1699087124/mfcom/tmux-example.png)

Here I have four panes opens and I can move between each pane by pressing `Ctrl+b` then `Up` or `Down`, `Left` and `Right`.

The leader key is `Ctrl` plus 'b' and  some "other key".

## Install

### Ubuntu

Do not use snap it's outdated, the latest version lives on apt.

```bash
sudo apt install tmux
```

### Mac/OSX

```bash
brew install tmux
```

## Using it

In the terminal enter:

```bash
tmux
```
This will start a tmux server and session with one window pane.

For horizontal window split: `Ctrl+b %`

For vertical window split: `Ctrl+b "`

Move up: `Ctrl+b Up`

Move down: `Ctrl+b Down`

Move left: `Ctrl+b Left`

Move right: `Ctrl+b Right`

Resize window: Press and keep pressing `Ctrl+b` while tapping `Up` or `Down` repeatedly this will increase/decrease window size in which ever direction you have chosen.

List all the commands `Ctrl+b` then `:`

### Docs

```bash
man 1 tmux
```

Deep dive the docs [here](https://github.com/tmux/tmux/wiki/Getting-Started)

That's it have fun with it.
Latest version of Yup and Typescript issues that annoy me!
Tags: yup, react, frontend
Published: 2023-11-04 09:06:29

Hey everyone, I've recently started a project where I am using Yup with Vite and the latest version of React, but I'm facing some issues.

---

Namely, I've used Yup to generate validation schemas for data received from an endpoint, such as a POST request body. Then, I realized I could infer my entire Entities from the Yup schemas.

So, I wrote code like the following:

```tsx
export const questionEntitySchema = Yup.object().shape({
  questionText: Yup.string().required(),
  id: Yup.string().required(),
}).required();

export const getQuestionsSchema = Yup.object().shape({
  questions: Yup.array().of(questionEntitySchema).required(),
});

```

And I expected the type of getQuestionsSchema to be like the following: 

```tsx
// to infer the type with Yup utility
export type TGetQuestions = Yup.InferType<typeof getQuestionsSchema>;

// what I expect as the inferred type for TGetQuestions
type TGetQuestions = {
    questions: {
        questionText: string;
        id: string;
    }[];
}
```
However, the problem is that I don't get what I expected; everything I get becomes OPTIONAL, which contradicts the required statements in the schema definition.


```tsx
// example of what is actually inferred 

type TGetQuestions = {
    questions?: {
        questionText?: string;
        id?: string;
    }[];
}
```

If it worked as described in the official docs, it would be very convenient to declaratively describe the Entities and DTOs with Yup schemas and then accurately infer them. But from my testing, it doesn't seem to work. I'm not sure if it's a TypeScript-specific issue. 

it would be nice to have some additional eyes on this. Maybe I'm doing something wrong here.

Thanks!
The Importance of Expert-Level Certifications in Today's Competitive Job Market
Tags: javascript, webdev, beginners
Published: 2023-11-04 08:52:24

Foundational certifications provide individuals with a pathway to enter a specific industry or field, even if they have little to no prior experience. Competitive Edge: Certification holders have a competitive edge in the job market, as they demonstrate a commitment to learning and a foundation of knowledge and skills. Skill Development: These certifications help individuals develop practical skills that are valuable in the workplace. Structured Learning: Foundational certifications provide a structured learning path, ensuring that professionals acquire a broad and essential knowledge base. Prerequisite for Advanced Certifications: Many intermediate and expert-level certifications require candidates to hold foundational certifications as prerequisites. This ensures that professionals have a solid foundation before pursuing more advanced learning. Networking Opportunities: Professionals who earn foundational certifications often have the opportunity to network with peers, mentors, and industry experts, opening doors to mentorship and career guidance.

Click here for more info…>>>>>>>>>     https://dumpsmedia.com/education/juniper-certification/
How to Structure your Resume After your First Job
Tags: questions, career, resume, discuss
Published: 2023-11-04 08:49:46

---
title: How to Structure your Resume After your First Job
published: true
description: Questions about career.
tags: questions, career, resume, discuss
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-11-03 21:26 +0000
---

After about one or two years experience in software development, how did you strucutre your resume? Like did it still have personal projects and work experience or did you just focus on adding the projects that you have done for your organization because I am genuinely stuck about this. Advice would be appreciated.😁
Leetcode Blind75 Challenge.
Tags: leetcode, challenge, coding, development
Published: 2023-11-04 08:47:44

Hi! Abhishek this side. 
I have taken Leetcode Blind 75 Challenge to practice and revise my Data structure and algorithm concepts.

## Past of My _Leetcode_ Profile.
I have been coding since my first year of the college. I am continuously coding since then. I have solved around **900+** Coding problems. 
Few days back I got my Leetcode T-Shirt also.😜

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i9w3qnfl0kjr6gkzuaxj.jpeg)

## Present Situation of Leetcode
Now I have opted Leetcode challenge to solve Leetcode 75 Blind to revise my concepts. 
Side the line, I am focusing more and more on Leetcode Contests. 

Currently! I am only able to solve 2 / 4 question of Leetcode.
My short term goal is to reach 3 / 4 in leetcode contests.

That's all for now!
Will update as I go along the path!
Abhishek😉.
Started a repo for my new game engine
Tags: javascript, bunjs, gamedev, napl
Published: 2023-11-04 08:42:41

I just wanted to start by sharing the repo where I'll be building my JavaScript game engine. It's part of my [NAPL project](https://dev.to/jacklehamster/starting-project-napl-a-new-free-web-based-game-engine-3ado), discussed in previous posts.

https://github.com/jacklehamster/bun-engine

It's built using bun.js, because it's the only framework that doesn't constantly break whenever I bring in a new dependency.

There's not much at the moment. You just have an image rendered using WebGL, and you can move around to look at it.

_I usually try to have something more interesting before sharing it out, but I guess this time I thought I'd better share this early, in case anyone wants to contribute in any way._

## Goal

Ultimately, the goal is for this is to make a engine that makes it easy for creating games. You could have a bunch of JSON files and assets describe your game, with no programming code involved.

## Immediate iteration

- For now, I need to enhance sprite support. A set of images will be uploaded into WebGL textures, separated in slots of 256x256. That's the basic sprite size, but if larger sprites are needed, it can take multiple slots.

- Animation support: A spritesheet will be uploaded into the textures, so that a sprite can animate by moving the slot within that texture.

- Movement and transform for a sprite will be coded properly so that we can provide a snippet of JSON to define a sprite. For example:

```json
{
  "name": "turtle",
  "anim": "turtle-animation",
  "size": [1000, 1000],
  "rotation": [-90, 0, 0],
  "position": [0, 0, 0],
}
```

Note that I already have a game that uses this entire schema (namely [World of Turtle](https://worldofturtle.com/)). But I found myself still writing too much game specific code for it, so that's why I decided to redo my game engine from scratch.

As I iterate on the engine, you can check the [DEMO](https://jacklehamster.github.io/bun-engine/example/), which hopefully will look more and more interesting as time goes on, and eventually entire games will be created using this engine.

Cheers.
What is flatmap and Advantage of using flatmap ?
Tags: react, javascript, flatmap, programming
Published: 2023-11-04 08:37:31

**What is Flatmap?**

FlatMap is a higher-order function commonly found in functional programming and many programming languages, including JavaScript, and Java. Its primary purpose is to transform and manipulate collections (such as arrays or lists) in a concise and efficient way.


**The flatMap function is used to perform the following operations**

**Flattening nested collections:** When you have a collection of collections (e.g., an array of arrays), you can use flatMap to flatten the nested structure into a single, flat collection. This is particularly useful when working with multidimensional arrays or when you want to remove the nesting of elements.

`const nestedArray = [[1, 2], [3, 4], [5, 6]];
const flatArray = nestedArray.flatMap(arr => arr);
// flatArray is [1, 2, 3, 4, 5, 6]
`
**Transforming and filtering elements:** FlatMap allows you to transform each element of a collection while potentially reducing the number of elements. You can also use it to filter elements based on certain criteria.


In summary, flatMap is a versatile function that can simplify and improve the readability of code when working with collections, especially in cases involving nested structures, mapping, and filtering. It's a powerful tool for functional programming and can lead to more concise and expressive code.
deploy django on Render
Published: 2023-11-04 08:28:46

(to make it easier you just need to have these in your `requirements.txt` and pip install them as well ): 
```
django
gunicorn
packaging
whitenoise

```


Then to run server,  `guicorn` is used for it:
```
gunicorn -w 4 <site_name>.wsgi:application
```

`<site_name>` - is name of main folder in your project !



- Add this in `<site_name>/settings.py`:
```python
MIDDLEWARE = [
    'whitenoise.middleware.WhiteNoiseMiddleware',
    # ... all your other middleware
]
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'


... 

# and also set this as well. 
DEBUG = True
ALLOWED_HOSTS = ['*']


```
Meme November: Day - 4
Tags: webdev, javascript, programming, beginners
Published: 2023-11-04 08:16:00

 
 

Hello there! I am excited to announce that we will be starting a series in November where we will be sharing some funny programming memes with you every day. We understand how important it is to have a good laugh, especially when you're a programmer, and we believe that these memes will give you just that. So, make sure to stay connected with us throughout November, and keep an eye out for some hilarious programming memes that we will be sharing with you every day!

---


[![How to end a frontend developers career](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3rrhcu26sdjt3phq4exh.jpg)](https://twitter.com/AlarmsSnooze)


---

---

Check my website [Demo coding](https://democoding.in/) for updates about my latest CSS Animation, CSS Tools, and some cool web dev tips. Let's be friends!

Don't forget to subscribe to our channel : [Demo code](https://www.youtube.com/@democode)
Uber for snow removal - SpotnRides
Tags: uberforsnowremoval, snowremovalapp, snowremovalsoftware, uberforsnowplowing
Published: 2023-11-04 07:56:40

Empower your snow clearing business with SpotnRides tailored app development. Enhance efficiency and streamline operations effectively.
Visit: https://www.spotnrides.com/uber-for-snow-removal-and-lawn-care-app

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b25tlw0p75o58f7i1ch2.jpeg)
Python query IP address range and get Hostname
Tags: python
Published: 2023-11-04 07:35:14

Recently, [LinkedIn's web crawlers](https://www.pdflibr.com/crawler/linkedin-bot) have been extensively scraping websites. To identify which of these are LinkedIn's crawlers, we performed [reverse IP address lookups](https://www.pdflibr.com/reverse-dns-lookup) and determined the hostnames.

After identifying the IP address ranges, we needed to confirm if each IP's hostname matches 'x.fwd.linkedin.com'.

Below is a Python code example for determining the hostname of each IP address:

```
import socket

# Define a list of IP addresses to check
start_ip = "108.174.2.0"
end_ip = "108.174.255.255"

# Convert the IP address string to an integer for iteration within the range.
def ip_to_int(ip):
    parts = ip.split(".")
    return (int(parts[0]) << 24) + (int(parts[1]) << 16) + (int(parts[2]) << 8) + int(parts[3])

start_ip_int = ip_to_int(start_ip)
end_ip_int = ip_to_int(end_ip)

# Perform a reverse DNS lookup to get the hostname
for ip_int in range(start_ip_int, end_ip_int + 1):
    ip = ".".join(str((ip_int >> i) & 255) for i in (24, 16, 8, 0))  # Convert the integer back to an IP address string.
    try:
        hostname, _ = socket.gethostbyaddr(ip)
        print(f"IP: {ip} -> Hostname: {hostname}")
    except socket.herror:
        # If the hostname cannot be resolved, print "N/A."
        print(f"IP: {ip} -> Hostname: N/A")
```
This way, you can determine which IP addresses belong to LinkedIn's web crawlers.
How X formally Twitter Slashed Costs by 60% Without Sacrificing Quality
Published: 2023-11-04 07:13:25

## **How Twitter Slashed Costs by 60% Without Sacrificing Quality**

Twitter recently announced that it has reduced its monthly cloud costs by 60% by moving a significant amount of its workload back on-premises. This is a remarkable achievement, especially considering that the company was previously spending $100 million per year on cloud computing.

To move off the cloud, Twitter migrated its media and blob artifacts to on-premises storage and optimized its cloud data processing infrastructure. The company also reduced its team size by 75% from 8000 to just 2000.

Twitter's cloud exit has been a success story so far. The company has been able to significantly reduce its costs while improving performance and reliability. Twitter's engineers have also been able to move more quickly and innovate more freely with their own infrastructure.

## Lessons for Other Businesses

Twitter's cloud exit is a case study that other businesses can learn from. If you are considering moving off the cloud, here are a few things to keep in mind:
**Identify your needs.** Not all businesses are alike. Some businesses may benefit from moving completely off the cloud, while others may find that a hybrid approach is best.
**Do your research.** Once you have identified your needs, take some time to research different on-premises and cloud-based solutions.
**Plan carefully.** Moving off the cloud is a complex undertaking. It is important to have a well-defined plan in place before you start.
**Partner with experts.** If you don't have the in-house expertise to move off the cloud, consider partnering with a managed service provider.

## Conclusion
Twitter's cloud exit is a significant event that has the potential to change the way businesses think about cloud computing. If other businesses can follow Twitter's lead and successfully move off the cloud, it could save them billions of dollars and give them more control over their data and infrastructure.

## Reference
{% embed https://twitter.com/XEng/status/1717754398410240018 %}
[Basecamp cloud exit](https://basecamp.com/cloud-exit)
How to create a Maven project in Eclipse
Tags: maven, beginners, automation
Published: 2023-11-04 07:09:04

This is one of the methods to create a Maven project. But in this rather than creating a project outside Eclipse and then importing it to Eclipse, we will directly create a maven project into Eclipse.

Step 1: Open your Eclipse and Go to File > New > Others. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0urowhsetx6xp4rk1ajf.png)

Step 2: Select Maven Project and click on Next. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9m8fc2leeworfclj3shy.png)

Step 3: Un-check the 'Use default Workspace location' and with the help of the Browse button choose your workspace where you would like to set up your Maven project.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ay7ik098rnixuvrllivj.png)

Step 4: Select the archetype, for now just select the 'maven-aechetype-quickstart' and click on Next.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b6k8k54jsuzs7oiajhzr.png)

Step 5: Enter the Group Id & Artifact Id and click on Finish button.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/svltisb2warpykmrvzda.png)

Step 6: Go to the project location to see the newly created maven project. Now open the pom.xml file, which resides in the project folder. By default the POM is generated as below screenshot:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ks3obaafhi31bzckfis4.png)

Step 7: Look at the default folder structure of the Maven project.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/txs84umo6438xajbkk79.png)

Step 8: Modify POM.xml with the latest Junit and other required dependencies and save the POM.xml
Need Your HELP! Developers
Published: 2023-11-04 06:45:11

I'm new to API integration and need help from developers. I want to integrate another website into my own, but to do so, I need API keys to interact with their API. I reached out to the account manager to request these API keys, but they are asking for the server IP. I'm a bit confused because if I provide the server IP of my website, which is hosted on Hostinger, it will be challenging to test the API. My intention is to test the API in my local environment before making it live. In this situation, I would like to know which server IP I should provide to the account manager.

!Facing error, and this is the temporary IP which changes dynamically, so I can not provide this server IP to account manager(https://dev-to-uploads.s3.amazonaws.com/uploads/articles/20rog3hy3y6ca8j35b6e.jpeg)
A Big Thank You for Hacktoberfest 2023!
Tags: hacktoberfest, hacktoberfest23
Published: 2023-11-04 06:40:06


---

🎉 A Big Thank You for Hacktoberfest 2023! 🎉

As Hacktoberfest 2023 comes to a close, I wanted to take a moment to express my heartfelt gratitude to the organizers, contributors, and the entire open-source community. This event has been an incredible journey of learning, collaboration, and giving back.

🌟 To the Organizers:
Thank you for orchestrating this fantastic event and providing a platform for open-source enthusiasts to come together. Your dedication and hard work have made this experience possible.

🙌 To the Contributors:
A huge shoutout to all the incredible individuals who poured their time and energy into improving open-source projects. Your contributions are invaluable, and you've made a real difference in the world of software development.

🤝 To the Community:
The camaraderie and support within the open-source community are unparalleled. Thank you for your patience, mentorship, and for making newcomers feel welcome.

🚀 What I've Gained:
Hacktoberfest 2023 has been a tremendous learning experience for me. I've honed my coding skills, collaborated on exciting projects, and made connections that will last a lifetime.

Let's carry this spirit of collaboration, innovation, and open-source forward beyond Hacktoberfest. The beauty of open-source is that it's a year-round endeavor, and there's always room for more contributions.

Once again, thank you to everyone who made Hacktoberfest 2023 a success. I can't wait to see what we'll achieve together in the future. Until then, keep coding, keep contributing, and keep the open-source spirit alive! 🚀✨

#Hacktoberfest #OpenSource #ThankYou #CodingCommunity #Gratitude
YouTube 13k Subscriber crossed! Exciting Giveaway
Tags: kubernetes, devops, cka, aws
Published: 2023-11-04 06:27:52


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8l91iincv3whky45pnmx.JPG)

Dear Friends,

My YouTube channel, [@alokkumar](https://www.youtube.com/@AlokKumar), has just reached a remarkable milestone of 13,000 subscribers. 

To celebrate this incredible achievement, I'm thrilled to announce a special giveaway. 

I'll be offering a generous gift of 100 free enrollments for my highly acclaimed Udemy course, "Certified Kubernetes Administrator (CKA): 100% Lab Course," exclusively to those candidates who have scheduled their CKA exam on or before January 31, 2024. 

My best wishes and good luck to all of you amazing individuals aiming for CKA success! 🚀🎉

Please DM me on LinkedIn and provide me your CKA exam enrollment acknowledgement receipt.

Please share it with your friends and repost this post.

[LinkedIn](https://www.linkedin.com/in/alok-kumar-devops/)

[YouTube](https://www.youtube.com/@AlokKumar)

[CKA Udemy Course Link](https://www.udemy.com/course/certified-kubernetes-administrator-cka-lab-course/)

Thanks

#kubernetes #cka #aws #devopscommunity #giveaway #keeplearning #youtube #udemycoupon #udemyfree #udemy