teleren/devto huggingface dataset:
VSCode: LiveServer for PHP
Tags: devops, vscode, extensions, tutorial
Published: 2023-10-04 11:37:51

A lot of developers have probably heard of the [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) extension which is available in the Visual Studio Code Marketplace. 

It primarily functions with static webpages like HTML but can also handle dynamic webpages such as PHP, NodeJs, and ASP.NET in a clever manner. 

In the example below, I'll guide you through the installation of Live Server to work seamlessly with both types of webpages (static & dynamic).

1. Install [PHP Server](https://marketplace.visualstudio.com/items?itemName=brapifra.phpserver) and [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) from the Visual Studio Code Marketplace.
2. Create a PHP file, for instance, index.php, and place it in a sub-directory (let's say 'demo') under /var/www/html/, like /var/www/html/demo/
3. Install the [Live Server Chrome extension](https://chrome.google.com/webstore/detail/live-server-web-extension/fiegdmejfepffgpnejdinekhfieaogmj/) in your Chrome browser and customize it as follows: 
![Extension Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36q4hi1mh2y5u9b74idq.png)
4. Click on the 'Go Live' button in the bottom right hand corner of the Visual Studio Code. 
![VSCode Window Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/impt7dvcrqsmm92gyh3p.png)
5. Next, open the index.php file located under /var/www/html/demo/ in Visual Studio Code. Right-click and select 'PHP Server: Reload Server', then 'PHP Server: Open file in browser'. 
![VSCode Context Menu Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f8p1zpp7p54l1fw2wifs.png)
6. In your browser, simply open the IP address `http://localhost:3000/demo/index.php`

You should not be able to use LiveServer for both static and dynamic websites :)
Unlocking the Power of React: Fresh Hooks to Expand Your Development Toolkit
Tags: react, webdev, programming, productivity
Published: 2023-10-04 11:37:36


![React hooks](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5jsf4m5ogxdryg2s877e.png)

---

React has introduced some new hooks that can make it easier to use React.
We're going to discuss some of them today. Enjoy 😉

---

## 1. useId:
- `useId` is a new release hook in React. It is used to generate unique IDs.
- It can help in many matters, especially with accessibility attributes in HTML Elements.
- Do not try to use `useId` to generate keys in a list. Keys should be generated from the data itself.

```
import { useId } from 'react';

function generateUniqueKey() {
  const uniqueKey = useId();
  .
  .
}
```

## 2. useTransition:
- You may want to update the state of `useState` hook without changing the UI, now you can do that using `useTransition`.
- In other words, `useTransition` is used to mark some states as non-blocking transitions. which means updating states won't block the UI as if nothing changed and that might be useful in some situations.
- `useTransition` accepts no parameters. But it returns 2 things:

1. **Ispending**: which indicates whether there is a transition or not
2. **transitionFn**: function  that is used to mark states as transitions by calling the set functions within its function parameter.

```
function CountComponent() {
  const [isPending, transitionFn] = useTransition();
  const [count, setCount] = useState(0);

  function markCountAsTransition(nextCount) {
    transitionFn(() => {
      setCount(nextCount);
    });
  }
  .
  .
}
```

## 3. useDeferredValue
- `useDeferredValue` is used to delay showing the new value of state or prop in the UI when you change it.
- So, when you change the state, the UI still uses the old value, and the new value is updated in the background. Then, after any other re-renders happen, the UI will use the new value.
- It accepts state or prop that is displayed in the UI as a parameter and returns the deferred value, so make sure to use the deferred value instead of the original one to delay the display.

```
import { useState, useDeferredValue } from 'react';

function DeferValue() {
  const [state, setState] = useState(0);
  const deferredState = useDeferredValue(state);
  .
  .
  .
  
  return <div> {deferredState} </div>
}
```

---

These are some of the new introduced hooks, and they're the most significant ones for now. In the future, this article might be updated with any new hooks that are released.
I hope you enjoyed and unleashed your knowledge today 😃

Have a nice day 🌹
One of the Best Plastic Surgeon in Mumbai- Dr. Vinod Vij
Published: 2023-10-04 11:37:04

Are you searching for a highly skilled and experienced [plastic surgeon in Mumbai](https://drvinodvij.com/)? Look no further than Dr Vinod Vij, widely recognised as one of the best plastic surgeon in Mumbai. With a successful track record and a commitment to delivering the best results, Dr Vinod Vij has established his name in the field of plastic surgery in Mumbai.

Plastic surgery is a specialized medical discipline that plays a pivotal role in enhancing and reconstructing various aspects of the human body. The main aim of plastic surgery is to enhance the body’s appearance. However, it can also correct congenital defects and injuries or improve the functionality of particular body parts. Plastic surgery is a constantly evolving field that utilizes cutting-edge technology, advanced techniques and methods to achieve desired results.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jhw7nvuc81oci8gk3fxw.jpg)
How to Change Your Spectrum WiFi Name and Password
Tags: wifi
Published: 2023-10-04 11:29:45

[Changing your Spectrum WiFi name and password is a straightforward process that can help enhance your network security and personalize your WiFi network. In this comprehensive guide, we’ll walk you through the steps to change your Spectrum WiFi name and password, how to change spectrum router settings discuss why it’s essential to do so, and provide tips for creating strong and secure passwords. We’ll also troubleshoot common issues and answer frequently asked questions in USA.

Why Should You Change Your Spectrum WiFi Name and Password?

Before we dive into the step-by-step instructions, let’s understand why changing your WiFi name (SSID) and password is essential:

Security: Changing your WiFi password regularly helps protect your network from unauthorized access. If someone knows your old password, they can potentially use your internet connection without your permission, leading to security and privacy risks.

Privacy: A unique WiFi name and password prevent neighbors or anyone nearby from guessing or sharing your network. It keeps your online activities confidential.

Performance: A customized WiFi name makes it easier to identify your network among the list of available connections, improving network management, especially in crowded areas with many WiFi networks.

Personalization: Changing your WiFi name allows you to personalize your network and add a touch of creativity to your home environment in USA.

Now, let’s go through the steps to change your Spectrum WiFi name and password:

Step 1: Gather Necessary Information

Before you begin, make sure you have the following information:

Your Spectrum account username and password
A device (computer, smartphone, or tablet) connected to your Spectrum WiFi network
The current WiFi name (SSID) and password, which are typically printed on a sticker on your router
](https://techomails.com/how-to-change-your-spectrum-wifi-name-and-password/)
How to Update Your Router’s Firmware
Tags: router
Published: 2023-10-04 11:27:41

[Router firmware is the software that runs on your router, controlling its functionality and security. Keeping your router’s firmware up-to-date is crucial for ensuring optimal performance, security, and compatibility with the latest technologies how do i update my router. how do i update my router how to upgrade router In this comprehensive guide, we will walk you through the steps to update your router’s firmware, helping you maintain a secure and efficient network environment in USA.

Table of Contents:

Why Update Your Router’s Firmware?
Check Router Model and Current Firmware Version
Prepare for the Firmware Update
Accessing the Router’s Web Interface
Locate and Download the Firmware Update
Performing the Firmware Update
Post-Update Checklist
how do i update my router
how to upgrade router
Troubleshooting Common Firmware Update Issues
Conclusion
1. Why Update Your Router’s Firmware AND how do i update my router?

Before we delve into the process, it’s crucial to understand why updating your router’s firmware is so important:

a. Security Enhancements: Manufacturers regularly release firmware updates to address security vulnerabilities. Failing to update your router could leave it susceptible to cyberattacks, potentially compromising your network and personal data.

b. Bug Fixes: Firmware updates often include bug fixes that resolve various issues, such as connectivity problems, crashes, or performance-related concerns in USA.

c. New Features: Some updates introduce new features or improvements, enhancing your router’s functionality or compatibility with emerging technologies.

](https://techomails.com/how-to-update-your-routers-firmware/)
Patterns Day is back!
Tags: patternsday, conference, event, brighton
Published: 2023-10-09 09:45:02

---
title: Patterns Day is back!
published: true
date: 2023-10-04 11:26:30 UTC
tags: patternsday,conference,event,brighton
canonical_url: https://adactio.com/journal/20523
---

Mark your calendar: Thursday, March 7th, 2024. That’s when [Patterns Day](https://patternsday.com/) will return for its third edition.

[Patterns Day](https://patternsday.com/) is a one-day event focused on design systems. It’s for designers, developers, project managers, writers, and anyone else who’s working with design systems, pattern libraries, style guides, and components. [Tickets are on sale now](https://ti.to/clearleft/patternsday2024)!

Once again, [Patterns Day](https://patternsday.com/) will be in the magnificent [Duke of York’s cinema in Brighton](https://patternsday.com/#venue), with its historic charm and dangerously comfortable seats.

[The first Patterns Day](https://patternsday.com/2017/) was all the way back in 2017. Then we had [the second Patterns Day in 2019](https://patternsday.com/2019/). You can watch [videos of the talks from both years](https://vimeo.com/album/4673650).

We all know what happened after 2019. Nothing like a global pandemic to stop an event in its tracks.

Now, finally, [Patterns Day](https://patternsday.com/) is returning in 2024.

After all this time, is there still a need for an event focused on design systems?

In my opinion, the answer is “more than ever!”

When [Clearleft](https://clearleft.com) first ran Patterns Day, we had been doing design systems work for a while, but other organisations were only at the start of their journey. Many of the attendees were from companies that were dabbling in design systems, or planned to put a design system together.

That situation has changed. Now most organisations either have at least some experience with design systems. Many companies have got design systems up and running.

But the challenges haven’t gone away. They’ve just changed. You might no longer need to convince anyone that a design system is a good idea, but you might well be struggling to convince people to use the design system you’ve got.

It can be lonely work. That’s why [Patterns Day](https://patternsday.com/) is so vital. It’s a chance to get together with other people going through the same struggles. You’ll have an opportunity to learn from their successes and failures. Most of all, you’ll have the reassurance that you are not alone.

I know that makes it sound more like therapy than a conference, but honestly, that’s where the true value lies.

We’ve already got some [fantastic speakers](https://patternsday.com/#speakers) lined up, but there are just as many still to come!

Can you tell that I’m very excited about this?

It would be lovely to see there. Tickets will cost £255, but you can [secure your place now](https://ti.to/clearleft/patternsday2024) at the super early bird price of just £195. Dither ye not!

Can’t wait to see you in Brighton on March 7th—it’s going to be a day to remember!
Custom Modal React.js
Tags: webdev, react, beginners, javascript
Published: 2023-10-04 11:24:35

## Exmaple-1:
To create a reusable and responsive custom **modal** in React.js that centers on screens with a minimum width of 768px and is positioned at the top 5% otherwise, you can follow these steps:

1. Set up a new React project or use an existing one.

2. Create a new component for your modal. You can name it **CustomModal.js.**

```
// CustomModal.js
import React from 'react';
import './CustomModal.css';

const CustomModal = ({ isOpen, onClose, children }) => {
  if (!isOpen) return null;

  return (
    <div className="custom-modal">
      <div className="custom-modal-content">
        <button className="close-button" onClick={onClose}>
          Close
        </button>
        {children}
      </div>
    </div>
  );
};

export default CustomModal;
```

- Create a CSS file for your modal styles. You can name it **CustomModal.css**.
 

```
/* CustomModal.css */
.custom-modal {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: auto;
}

@media (min-width: 768px) {
  .custom-modal {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.custom-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  position: relative;
  max-width: 80%;
  width: 400px;
  max-height: 80%;
  overflow-y: auto;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
```

- Create a parent component (e.g., **App.js**) where you'll use the CustomModal component.

```
// App.js
import React, { useState } from 'react';
import CustomModal from './CustomModal';

function App() {
  const [modalIsOpen, setModalIsOpen] = useState(false);

  const openModal = () => {
    setModalIsOpen(true);
  };

  const closeModal = () => {
    setModalIsOpen(false);
  };

  return (
    <div className="App">
      <button onClick={openModal}>Open Modal</button>
      <CustomModal isOpen={modalIsOpen} onClose={closeModal}>
        <h2>Modal Content</h2>
        <p>This is a reusable custom modal.</p>
      </CustomModal>
    </div>
  );
}

export default App;
```

> Now you have a responsive and reusable custom modal that centers on screens with a minimum width of 768px and is positioned at the top 5% for smaller screens. The  you can close the modal by clicking the "Close" button or pressing the Escape key.
What is my IP Address for my Router? How to Find your Wifi
Tags: router
Published: 2023-10-04 11:22:29

[Finding the IP address of your router is an essential task when it comes to managing your home network. It allows you to access your router’s web interface, where you can configure various settings, such as security, network preferences, and connected devices. In this guide, we’ll explore different methods to find your router’s IP address, troubleshoot common issues, and provide some essential tips for managing your Wi-Fi network effectively in USA.

Table of Contents:
Introduction
Why Do You Need to Know Your Router’s IP Address?
How to Find Your Router’s IP Address
a. Using Command Prompt (Windows)
b. Using Terminal (Mac)
c. Router Label
Accessing Your Router’s Web Interface
what’s my router ip address
Troubleshooting Common Issues
a. Forgot Router Password
b. Router IP Address Not Working
c. Router Reset
Essential Tips for Managing Your Wi-Fi Network
a. Change Default Router Login Credentials
b. Update Router Firmware
c. Set a Strong Wi-Fi Password
d. Enable WPA3 Security
e. Manage Connected Devices
f. Optimize Wi-Fi Channel and Frequency
Conclusion
1. Introduction
A router is a crucial component of your home network, what’s my router ip address responsible for directing internet traffic to and from your devices. To access and configure your router’s settings, you need to know its IP address. In this comprehensive guide, we’ll walk you through the process of finding your router’s IP address and offer tips on optimizing your Wi-Fi network in USA.[](url)](https://techomails.com/what-is-my-ip-address-for-my-router-how-to-find-your-wifi/)
Reset Router To Factory Default Settings
Tags: router
Published: 2023-10-04 11:20:56

[Resetting a router to its factory default settings is a common troubleshooting step when dealing with network issues or when you need to start afresh with your router’s configuration. In this comprehensive guide, we’ll walk you through the process of resetting various types of routers to their factory defaults what does the reset button do on a router. We’ll cover the basic steps, considerations, and potential challenges you might encounter along the way in USA.

Table of Contents
Introduction
Preparing for a Router Reset
Router Reset Methods
Method 1: Using the Reset Button
Method 2: Through the Web Interface
Method 3: Using Telnet or SSH
Method 4: Hard Reset (Last Resort)
After the Reset
Configuring Basic Settings
what does the reset button do on a router
Security Considerations
Firmware Updates
Reconnecting Devices
Troubleshooting Common Issues
Forgotten Router Passwords
Inability to Access the Router
what does the reset button do on a router
Lost Configuration Backup
Internet Connection Problems
Conclusion
](https://techomails.com/reset-router-to-factory-default-settings/)
📊 Unlock the Power of Data Science 🚀
Tags: datascience, powerofdata, dataservices
Published: 2023-10-04 11:19:58

📊 Unlock the Power of Data Science with Softweb Solutions! 🚀

Ready to turn your data into actionable insights? Discover how our [Data Science Development services](https://www.softwebsolutions.com/data-science-development.html) can empower your business. 

From predictive analytics to cutting-edge AI solutions, we've got the expertise to supercharge your data strategy. Don't miss out on this opportunity to drive innovation and make data-driven decisions that propel your success!

Get started today and harness the true potential of your data. 📈💡

#DataScience #MachineLearning #AI #DataAnalytics #Innovation #SoftwebSolutions #DataDrivenDecisions #datamining
How to Factory Reset Your Router
Tags: wifi, router
Published: 2023-10-04 11:10:04

[A factory reset is a crucial troubleshooting step for resolving various network issues and restoring your router to its default settings. Whether you’ve forgotten your login credentials, encountered persistent connectivity problems, or want to prepare your router for a fresh setup, performing a factory reset can often be the solution. In this comprehensive guide, we’ll walk you through the process of how to factory reset your router, covering both basic and advanced methods for different router models. By following these steps, you can ensure a smooth and secure network experience.

I. Why Perform a Factory Reset?

Before diving into the reset process, it’s essential to understand why you might need to perform a factory reset on your router:

Forgotten Credentials: If you’ve forgotten your router’s login username and password, a factory reset will revert these credentials to their default values.

Network Issues: Persistent network problems, such as slow speeds, frequent disconnects, or devices not connecting, may be resolved through a factory reset.

](https://techomails.com/how-to-factory-reset-your-router/)
VITE vs CREATE REACT APP - A Quick Comparison
Tags: programming, webdev, javascript, react
Published: 2023-10-04 11:08:52

In the modern web development world, developers are always looking for tools and frameworks that can make their work more efficient and productive. When it comes to building React applications, the two most popular options are VITE and Create React App (CRA). Let's understand what the difference is between VITE and CRA.

### What is create-react-app? 🔥

CRA is a build tool that developers can use to spin up a React project quickly. Projects created using CRA come with pre-configured things such as basic file structuring for websites and packages like Babel or Webpack, which work under the hood. CRA also provides a development server to run the website locally for faster and easier development.

The following command can be used to spin up a React application using CRA:

`npx create-react-app my-app`

### What is VITE? 🔥

VITE is also a build tool, just like CRA. VITE aims to provide a faster and leaner development experience for modern web projects. It has two major components.

1. A development server with additional features over native ES6 modules like HMR (hot module reload).

2. A build command that bundles your code

The following command can be used to spin up a React application using VITE:

`npm create vite@latest`

and then follow the prompts.

VITE can be used with various frontend frameworks and libraries like React, Vue, etc.

**🚀🔥 Following are some areas where VITE is actually better than CRA during development:**

1. Development speed

VITE is an ultra-fast development server when compared with CRA's decent development server.

2 Performance

VITE is known for its optimized production builds, which result in faster loads.


VITE is best suited for small to medium projects, but CRA is recommended when working on larger projects.


In conclusion, both VITE and CRA are powerful tools for building React applications. Your choice should be based on specific project needs.
Open source language models (LLMs) !!
Tags: lm, llms, ai
Published: 2023-10-04 11:00:00

Open source language models (LLMs) have the potential to catch up to models like GPT-4V and Google's Gemini, but it requires a collaborative effort from the open source community. Here are a few ways open source LLMs can catch up:

(https://fleszar.hashnode.dev/open-source-language-models-llms)