teleren/devto huggingface dataset:
How to find the version of an installed npm package?
Tags: node, javascript, webdev, beginners
Published: 2022-10-19 09:26:19

## Introduction

`npm` is a package manager for Node.js. It is used to install and manage packages for your JavaScript projects. `npm` is open source and was initially released in 2009. The `npm` repository is a collection of open-source packages and tools for Node.js.

## Check `npm` version

Let's quickly check the version of `npm` that we are using:

```bash
npm -v

# Output:
8.11.0
```

If you don't see the version number, you need to install `npm` first:

[Downloading and installing Node.js and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)

## Check the version of the installed `npm` packages

Once you have installed `npm`, you can check the versions of the installed packages for your project:

```bash
npm list
```

The output will look something like this depending on the installed packages:

```bash
├── adonis-preset-ts@2.1.0
├── luxon@2.1.1
├── pg@8.7.1
├── pino-pretty@7.2.0
├── proxy-addr@2.0.7
├── reflect-metadata@0.1.13
├── source-map-support@0.5.20
├── typescript@4.2.4
├── youch-terminal@1.1.1
```

## Check the version of the installed `npm` package globally

The `-g` flag is used to check the global packages. The output will be the same as the output of the `npm list` command, except that it will only show the global packages.

```bash
npm list -g
```

Example output:

```bash
├── @cloudflare/wrangler@1.19.8
├── @stackbit/cli@0.2.30
├── npm@8.12.1
├── pg@8.7.3
└── typescript@4.6.4
```

## Check the versions of the dependencies of your packages

If you want to check not only the versions of your packages but also their dependencies, you can use the `--depth` option:

```bash
npm list --depth=1
```

This will show you the versions of your packages and their dependencies.

## Check the version of a specific package

You can also check the version of a specific package by adding the package name to the command:

```bash
npm list pg
```

Output:

```bash
└─┬ pg@8.7.1
  └─┬ pg-pool@3.4.1
    └── pg@8.7.1 deduped
```

## Conclusion

Using the `npm list` command is a good way to check the versions of the installed packages.

For more information on what the latest version of a package is, you can use the `npm info <package>` command.

For more information, you can visit the official documentation at [docs.npmjs.com](https://docs.npmjs.com/).
Top 10 Killer Upcoming Web Design Trends to Inspire You in 2023
Tags: webdev, design, webdesign, css
Published: 2022-10-19 09:23:16

38% of people will stop engaging with a website if the content/layout is unattractive!

Hence, it is necessary to keep your website updated to attract more visitors and convert them into potential customers.

A great web design, however, can help your business stand out from the competition. Thereby, staying up-to-date with the latest web design trends is inevitably essential.

Here are the effective web design trends that will innovatively allow you to stand out from the competition.

## **Top 10 killer Web Design Trends 2023:**
1) Custom Illustrations
2) Interactive 3D Elements
3) Micro-Interactions
4) CSS Grid
5) White Space
6) Dark Mode
7) Accessibility
8) Neomorphic Design
9) Organic Shapes
10) Fresh Color
 
**1) Custom Illustrations:** can also be conceptual designs of UI or brand logos. These can also be used on business letterheads, packaging, and even office stationery.
 
**2) Interactive 3D Elements:** 3D technology has become well-established in various divisions like gaming, movies, smartphones, and AR-VR. This technology when considered with web design can do wonders.
 
**3) Micro-Interactions:** Seth Godin once said, “Every interaction, in any form is branding.” And it is so true with the micro-interactions on your website. 
The only purpose for involving micro-interactions in your web design is to create a jiff that engages the ‘human’ user.
 
**4) CSS Grid:** The CSS grid is a layout solution that allows you to control the size and placement of grid items. It provides flexibility in web designing to achieve any layout needed by web designers.
 
**5) White Space:** also known as breathing space or negative space is much more than the empty space between website elements and content.
 
**6) Dark Mode:** is one big trend. You know it when colossal companies like Google, Instagram, Spotify, WeTransfer, MasterClass, and WhatsApp have already embraced this trend.

Find all 10 Trends here in detail: https://bit.ly/3TbZNci
cloud
Published: 2022-10-19 09:19:48

A hospital for years relied on a mainframe platform for maintaining its data and applications. But as annual maintenance costs increased drastically also skilled mainframe personnel were scarcer the organization decided to move to the clouds. The amount of data and applications that were residing in the mainframe were huge. After thorough analysis it was found there were 54 ​data and 53 applications that needed to be moved into cloud. Thus becoming a cloud-driven organization would require a major effort to analyze the resources and define a path forward​.....


Analyze the type of cloud service and cloud model that would be opted by the hospital along with the level of virtualization that would be required to achieve the same.
Unknown unknowns 😕
Published: 2023-08-21 16:15:42

---
title: Unknown unknowns 😕
published: true
date: 2022-10-19 09:11:04 UTC
tags: 
canonical_url: https://blog.letsdote.ch/p/16-unknown-unknowns
---


 ![Unknown unknowns 😕](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5f2bf511-c205-44b8-a849-2bb1f0ade2f0_2000x1314.jpeg "[#16] Unknown unknowns 😕")


One of the reasons for increased complexities in software designs is the fact that developers are not sure about - where else would the given change impact.

When implementing a task to change a certain piece of code, experienced developers tend to wonder about its impact on the rest of the system. If you see someone who is confident in implementing the change, then there are only 2 possibilities - either they are new to development, or they are too good with the system and its customizations.

But even if you are well versed, implementing a change always gets you on your toes. There are so many questions, some of which cannot even be phrased. Have you been in this situation?

This is where it becomes important to have a good software design in place. Developing software just by writing a bunch of scripts together was, is, and will never be a great idea. It is just a proof of concept at its best. And PoCs are useless.

Honestly, I don't appreciate people who think PoCs are crucial. Partially? maybe, yes. But then there is a long pending journey to make sense of the proven concept and be useful to the people.

Software design is a huge field with so many principles and concepts that are written down based on experience. Thus, they are very valuable. I have read quite a few books on software design, however, I am currently reading "[A Philosophy of Software Design](https://www.amazon.com/Philosophy-Software-Design-John-Ousterhout/dp/1732102201)" by John Ousterhout - and I think it is great. Unknown unknowns was exactly the term I was looking for to express this moment before implementing any change.

-- Sumeet

[LDT](https://letsdotech.dev/) | [Guest Posts](https://letsdotech.dev/guest-posts/) | [Resources](https://letsdotech.dev/resources/) | [Wisdom](https://letsdotech.dev/wisdom-newsletter/)
How to Use Filters with Arrays
Tags: javascript, tutorial, webdev, programming
Published: 2022-10-19 09:06:21

Filtering an array is useful when you’re working with multiple columns of corresponding data. In this case, you can include and exclude data based on any characteristic that describes a group in your array.
To filter an array, use the filter() function.
Example snippet:

```
const cars = [
  { make: 'Opel', class: 'Regular' },
  { make: 'Bugatti', class: 'Supercar' },
  { make: 'Ferrari', class: 'Supercar' },
  { make: 'Ford', class: 'Regular' },
  { make: 'Honda', class: 'Regular' },
]
const supercar = cars.filter(car => car.class === 'Supercar');
console.table(supercar); // returns the supercar class data in a table format
```

You can also use filter() together with Boolean to remove all null or undefined values from your array.

Example snippet:

```
const cars = [
  { make: 'Opel', class: 'Regular' },
  null,
  undefined
]

cars.filter(Boolean); // returns [{ make: 'Opel', class: 'Regular' }] 
```

Okay! Thanks for reading. Happy coding!
You can follow me:
[Twitter](https://twitter.com/tanzirul_huda)
Packers Movers Delhi
Tags: movers, packers, transportation, iba
Published: 2022-10-19 08:59:55

Still, also u can communicate with us If you want to transfer your effects from the Livshift **[Packers Movers Delhi](https://www.livshift.com/packers-movers-delhi)** to a station or location. We've branches in other countries of India besides Delhi, but in Delhi, we've been furnishing this service to our guests for the last five times. One of the essential effects of our workers is professional communication with the client, and We trained our workers for that.
Our professional ways	
Our workers work veritably precisely, but if any of your effects are damaged by us for any reason also you must be compensated by our company. Our company and our workers are always active in this work. If you want to enjoy our work you can communicate to us by phone call.
How to use formData Web API to collect form data
Tags: javascript, beginners, webdev
Published: 2022-10-19 08:47:30

You are given the following form and asked to complete a simple task to gather data from the form fields

index.html

```javascript
<div class="container">
  <div class="header"> <h4> Register </h4>
	</div>
<form class="myForm">
	 
  <div class="message">
    <label for="msg">Message</label>
    <textarea id="msg"></textarea>
  </div>
  <div class="contact">
    <label for="name">Name</label>
    <input type="text" id="name">

    <label for="favSong">Your favourite song</label>
    <input type="text" id="favSong">

    <label for="email">Email Address</label>
		<input type="email" id="email"> 
		<label>Choose Image for your profile</label>
		<input type="file" name="profile-image" id="form-profile-image" accept="image/*">
    <button onclick="submitProfile()" >Submit</button>
  </div>
</form>
</div>
<script src="src/index.js"></script>
```
**Task**

Using the[ FormData web API ](https://developer.mozilla.org/en-US/docs/Web/API/FormData) complete the submitProfile() function which will let us send post data of the field values to API URL given below

```javascript
//index.js

const API_URL = "http://localhost:3000/api/user";

const submitProfile = ()=>{
   //complete the code
}
```
The example post object should look like this
```javascript
{
name:"",
msg:"",
email:"",
imageFile:"",
favSong:""
}
```

**Steps to solving this**

1. Assign a variable to the value of the field using getElementByID, for example for name we can something like `const name=document.getElementById('name')`

2. Initialize formData() and assign it to a variable 'data'

3. Append all the values to `data` variable using .append()

4. Then use fetch() to post the data object to the API url given.

These steps can be implemented as follows
{%gist https://gist.github.com/NaveenDK/95def0fd7a38aa113e4df4acacc8e528.js %}

Complete code for this can be found here https://codesandbox.io/s/shy-moon-n0jdtx?file=/index.js
Movers in Delhi | IBA Approved
Tags: ibaapproved, iso, transportation
Published: 2022-10-19 08:45:08

Livshift Movers is one of the **[Best Packers & Movers in Delhi](https://www.livshift.com/packers-movers-delhi)** with the most affordable range of services. Livshift Movers have many branches in Delhi City. it provides quality packing service with best quality material.
Using quilting material-
1. Thermoplastic distance
2. Stretch Belting
3. Cello Taping
4. Polythene	
5. Cargo Distance Belting
6. Air Bubble
7. Froth Wastes
8. Card Board Boxes etc.    

![Uploading image](...)
What is Push-to-Talk Over Cellular (PoC)?
Tags: pushtotalk, pttovercellular, ptt
Published: 2022-10-19 08:38:27


We live in a mobile-first world where networking is the way to functional effectiveness. Today, there are countless ways of remaining associated with individuals from any place on the planet utilizing cellular and WiFi networks. Albeit the present-day methods of communication including calls, messages and instant messages work really hard of keeping the world associated, the deep rooted push-to-talk (PTT) technology surpasses these present-day methods of communication concerning rate and convenience. For this reason, Push-to-Talk over Cell and WiFi networks is acquiring quick prevalence among field businesses.

## What does Push to Talk Over Cellular (PoC) Mean?

Push-to-Talk Over Cell (PoC) combines the fundamental PTT idea and cell phone technology into a solitary gadget. With PoC, users can leverage the half-duplex communication mode for 2-way availability over 3G, 4G or WiFi networks to overcome the restricted inclusion issues introduced by customary PTT.

There are no extra foundation prerequisites, you can use the cellular network to offer worldwide availability to your clients. [Push to Talk Over Cell (PoC) solution](https://blog.nuovoteam.com/what-is-push-to-talk-over-cellular-poc/) recreates the usefulness of two-way radios on the user's cell phones with the assistance of an application. This strategy breaks the obstructions to restricted inclusion and invalidates the requirement for the field labor force to convey different gadgets on location.

## Benefits of Push To Talk Over Cellular (PoC) Over Other Modes of Communication

**Push-Button Connectivity:**

PTT over cell frameworks permit users to use moment-distant networks at the simple push of a button. Users need not participate in extended processes engaged with direct-dialed calls or typing detailed messages and instant messages.

**Easy to Use:**

Writing formal messages, working business messaging tools and other communication modes, for example, video conferencing requires the user to be decently educated. PTT over cell frameworks operateon the PTT usefulness which requires the user to press a button and talk, making it very easy to understand just.

**Barge Calls:**

PTT calls permit the field workforce to hear the approaching PTT message in a eyes-freeand hands-free way as and when the messages are received. These flatboat calls guarantee that the field workers never miss the business-critical messages in any event, when taken part in on-field activities.

**Crisis Communications:**

The field workforce works in labor-intensive and danger inclined regionsincluding mines,throughways, building locales, and so on. In the midst of an emergency, when there are lives on the line, field workers should possess the ability to get fast assistance. Push to Talk Over Cell (PoC) empowers the field representatives to skirt the dialing methodology and gain help at the press of a button. Modern-day PTT apps even empower the field workforce with SOS channels to leverage faster help.
Poultry Trends & Technologies Shaping the Future of the Industry
Tags: poultry, erp, poultrysoftware, technologyinpoultry
Published: 2022-10-19 08:27:30

The poultry industry has seen many challenges to meet the rising consumer demands. Learn about the latest tech trends contributing to meeting the many requirements by the poultry industry.

https://www.livine.io/blogs/poultry-trends-and-technologies-shaping-the-future-of-the-industry

#PoultryIndustry #TechtrendsinPoultry #FutureofPoultryIndustry #PoultrySoftware #Livine #TechnologyinPoultryIndustry
How to Inspire Your Design Team to Deliver the Best Results
Published: 2022-10-19 08:21:40

Design teams are tasked with the difficult job of creating products that are both beautiful and functional.

It can be challenging to keep [design teams](https://blog.pics.io/7-ways-to-drive-best-results-of-your-design-team/) motivated and inspired to do their best work. Designers are often under a lot of pressure to meet deadlines and expectations. Here are a few ways to help inspire your design team so they can deliver their best results:

1. Promote creativity by facilitating collaboration and brainstorming.

2.Set realistic goals and objectives but also challenge the team to push themselves.

3. Communicate regularly and openly with the team, letting them know what is expected of them.

4. Provide feedback and praise when appropriate, and constructive criticism when necessary.

5. Encourage team members to take care of themselves physically and mentally, so they can perform at their best.

6.Be available to answer questions and offer support when needed.

7. Finally, trust the team—they are the experts, after all—and give them the freedom to do their jobs well.

By following these tips, you can help ensure that your design team is motivated and inspired to deliver their best results.
Extreme Coupon Tips for Normal People
Published: 2022-10-19 08:18:01

Join in on the Jargon-fest
The next step is to get familiar with coupon lingo and policies. Are your coupons stackable? (Meaning you can use a manufacturer’s coupon in tandem with a store coupon.) Do stores in your area offer double coupon deals? (Meaning at certain times you can use a coupon and it’ll be worth twice its face value.)

Next, brush up on the acronyms. OYNO? MIR? BOGO? You need to learn terms like these in order to maximize savings. We’ll give you these three for free: On Your Next Order, Mail-in Rebate and Buy One Get One. But there are many more you may run across as you navigate the world of extreme couponing. Learn to talk the talk before you try to walk the walk.

You’ll also want to get a handle on pricing. A “sale” doesn’t always mean significant savings, so start keeping track of how much products typically sell for. There are also price-comparison Web sites which you can reference to tell whether you’re getting the best rate. With a little practice, you’ll get better at recognizing real savings.

Get Familiar with Navigating the Marketplace
You might want to dive into couponing headfirst, but easing in is probably the better route.

Start with a single store while you’re getting your feet wet; you can branch out later as you get used to bargain pricing and coupon policies. Find a couple of favorite cashiers to frequent who don’t mind the drill. Make sure to thank those cashiers and compliment them often. Warn people who get behind you in line that they may want to choose another aisle. Smile whenever a situation seems like it’s starting to sour.

The point is that it’s important to remember that while you’re learning an exciting and cost-saving new practice, other people are just trying to pick up a few things for dinner after a long day at work. Which reminds us of another tip: Avoid shopping during peak hours and trips to the store will tend to go a lot more smoothly.

Buy in Bulk
Extreme couponers don’t buy an item when they need it — they buy it when they can get it at the lowest price. These savvy shoppers then stock up when the going’s good (and cheap), so they save money in the long run. Think about it: if you run out of toilet paper, you’ll be stuck paying whatever the retailer is charging to get this much-needed essential. Extreme couponers, however, plan ahead by purchasing numerous rolls when the cost is low so they avoid such expensive emergency trips to the store.

If you buy in bulk, though, you need to have space to stockpile your reserve items. The free space available in your home may determine how “extreme” of a couponer you become. Only buy what you can fit in that extra pantry, closet or garage. Otherwise, your home itself might start to look like a supermarket!
RPM Sistemlerde NFS Sunucusu Oluşturma
Published: 2022-10-19 08:13:06

   NFS açılımıyla Network File System, dosyalarımızı ağ üzerinden paylaşmamıza olanak sağlayan bir sistemdir. **_NFS_** kullanarak sunucu olan bilgisayarda paylaşılan dizinleri client olan bilgisayarlara **_mount_** edebiliriz. 

   Mount işlemini gerçekleştirmek için en iki makinaya ihtiyacımız var, bunlardan biri NFS server ve diğerleri de sunucuya bağlamak istediğimiz client makinalar olabilir.

# NFS Sunucu Kurulumu

## 1. Sistemin ve paketlerin Güncelliğinin Kontrol Edilmesi (Opsiyonel)
```bash
sudo yum update -y
```
   Yukarıdaki komutu çalıştırarak sisteminizin ve içlerindeki paketleri güncelleyebilirsiniz.

## 2. NFS Paketlerinin Yüklenmesi

Aşağıdaki komutu çalıştırıyoruz.
```bahs

sudo yum install nfs-utils -y

``` 
## 3. Paylaşım Yapmak İstediğimiz Dizini Oluşturuyorz

Eğer paylaşmak istediğiniz dizin zaten sunucunuzda varsa, bu adımı atlayabilirsiniz. Yoksa _**mkdir**_ komutunu kullanarak oluşturabilirsiniz.

```bash
mkdir /Data
```
Dizini oluşturduktan sonra içerisine istediğiniz verileri ekleyebilirsiniz. Şimdilik aşağıdaki komutu kullanarak _deneme.txt_ adındaki dosyayı oluşturabilirsiniz.

```bash
touch /Data/deneme.txt
```

**Nano** editörünü kullanrak _deneme.txt_ dosyasının içeriğini düzenleyebilirsiniz.

```bash
nano deneme.txt
```

## 4. Exports Dosyasını Düzenliyoruz

Exports dosyasında, **NFS** sunucusuna hangi makinanın hangi yetkilerle erişlebileceği konfigrasyonunu yapıyoruz.

```bash
nano /etc/exports
```

dosyanın içeriğini aşağıdaki gibi kendinize göre düzenleyebilirsiniz.
```
/<Paylaşılacak Klasör Adı>   <Paylaşılacak IP veya aralığı> (<Yetkiler ve özellikler>)
```

Örnek gösterecek olursak

```
/Data   192.168.2.100(rw,sync)
```

Ayrıca aşağıdaki gibi IP aralığına da paylaşabilirsiniz

```
/Data 192.168.2.0/24(rw,sync)
```

Yukarıda Parantez içerisinde belirttiğimiz **rw**, belirtilen ip veya ip aralığındaki client makinaların dosya üzerinde **read** ve **write** işlemlerini yapabileceklerini belirtiyor.

## 5. NFS Server Servisini Yeniden Başlatıyoruz

```bash

systemctl restart nfs-server

```

## 6. NFS Servisini Bilgisyar Açıldığında Açılacak Şekilde Ayarlıyoruz

```bash

systemctl enable nfs-server
```

#Not:
##Selinux ve Firewalld,  NFS paylaşımınıza dışarıdan erişilmesini engelleyebilir.

Selinux'u Kapatmak için,
```bash
nano /etc/selinux/config
```
komutunu çalıştırıp, sonrasında `SELINUX=enforcing` veya `SELINUX=permissive ` yazan alanı `SELINUX=disabled` olarak değiştirdikten sonra makinayı aşağıdaki komutu kullanarak yeniden başlatabilirsiniz.

```
sudo reboot now
```

Firewalld servisini durdurmak için,

```
systemctl stop firewalld

```

Bu komutu çalıştırdığınızda güvenlik duvarını kapatmış olusunuz (tavsiye etmiyorum), bunbun yerine güvenlik duvarından kural ekleyebilirisiniz.

Firewalld servisini başlangıçta kapalı olacak şekilde ayarlamak için,

```

systemctl disable firewalld

```

komutunu çalıştırabilirsiniz.