teleren/devto huggingface dataset:
how to use inline, internal, and external CSS in HTML
Tags: programming, beginners, html, css
Published: 2024-06-29 16:27:25

**1.Inline CSS:**
Inline CSS is applied directly to HTML elements using the style attribute. 
```
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sudhanshu Developer</title>
</head>
<body>
    <h1 style="color: blue; text-transform: uppercase;">Sudhanshu Developer</h1>
    <p style="font-size: 16px; color: gray;">This is an example of inline CSS.</p>
</body>
</html>

```
**2.Internal CSS:**
Internal CSS is defined within a <style> tag inside the <head> section of the HTML document.

```
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sudhanshu Developer</title>
    <style>
        h1 {
            color: green;
            text-transform: uppercase;
        }
        p {
            font-size: 18px;
            color: darkgray;
        }
    </style>
</head>
<body>
    <h1>Sudhanshu Developer</h1>
    <p>This is an example of internal CSS.</p>
</body>
</html>

```
**3.External CSS:**
External CSS is written in a separate .css file and linked to the HTML document using the <link> tag.
First, create a `style.css` file in your project

**styles.css:**
```
/* styles.css */
h1 {
    color: red;
    text-transform: uppercase;
}
p {
    font-size: 20px;
    color: darkblue;
}

```
After That, You create an Index.html File in your project and 
link the `style.css` `<link rel="stylesheet" href="styles.css">`
  file in the `index.html` File.

**index.html:**

```
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sudhanshu Developer</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <h1>Sudhanshu Developer </h1>
    <p>This is an example of external CSS.</p>
</body>
</html>

```
In this way, we can use **CSS** in **HTML**.
Open Source Contributions: How Giving Back Can Boost Your Career
Tags: opensource, beginners, tutorial, learning
Published: 2024-06-29 16:16:44

1. **Skill Enhancement**: Contributing to open source projects allows you to practice and improve your coding skills in real-world scenarios, enhancing your technical expertise.

2. **Portfolio Building**: Your contributions serve as a public portfolio showcasing your abilities, which can impress potential employers and clients.

3. **Networking Opportunities**: Engaging with the open source community helps you connect with like-minded professionals, expanding your professional network.

4. **Learning from Experts**: Collaborating with experienced developers provides valuable learning opportunities and mentorship, accelerating your growth.

5. **Problem-Solving Skills**: Tackling diverse issues in open source projects hones your problem-solving abilities, making you a more effective and versatile developer.

6. **Reputation and Recognition**: Regular contributions to popular projects can build your reputation in the tech community, earning you recognition and respect.

7. **Career Opportunities**: Many companies value open source contributions and may prioritize candidates with a proven track record of involvement in such projects.

8. **Understanding Best Practices**: Exposure to high-quality codebases helps you learn and adopt industry best practices, improving your coding standards.

9. **Boosted Confidence**: Successfully contributing to open source projects can boost your confidence, encouraging you to take on more challenging tasks and projects.

10. **Giving Back to the Community**: Contributing to open source is a way to give back to the community that has provided you with tools and resources, creating a positive impact and fostering a culture of collaboration.

Happy Learning 🎉
Arrays in JavaScript.!
Published: 2024-06-29 16:11:27

**Arrays in JavaScript - javaScriptda massivlar.!**



<u>`Ta'rif:`</u> <u> massivlar bir necha o'zgaruvchilarni o'z ichiga oluvchi maxsus o'zgaruvchi hisoblanadi.!</u>

 JavaScriptda massiv literalidan foydalangan xolda massiv hosil qilish eng qulay usul hisoblanadi.!
**<u>sintaksis:</u>** `const array_name_ = [item1,item2,item3,...]`



<u>Misol uchun:</u> Biz mevalar ro'yxatini bor va uni bitta o'zgaruvchida saqlash quyidagi misoldagidek bo'ladi.

```
const fruit1_ = 'lemon';
const fruit2_ = 'banana';
const fruit3_ = 'nut';
```
<u>Ammo</u> biza mevalar soni ro'yxatda sanoqlik emas juda ko'p bo'sachi.? Ro'yxatdagi mevalardan aynan birini tanlab olmoqchi bo'lsakchi.? ETC...  
Albatta bu xolda yechim massiv(Array).! 

```
const fruits_ = ['lemon','nut','banana','apelsin','mango','peach']
```



Biz massiv hosil qilibbo'lgach elementlarni taqdim etishimizham mumkin, va misolda ko'rishimiz mumkinki.!
`typef` funcsiyasidan foydalanib massivimiz qaysi data tipga tegishli ekanini aniqlaganimizda `object` tipiga mansub ekanini ko'rishimiz mumkin, bir so'z bilan aytganda massivlar obyektlarning maxsus turi.!
```
const colors = [];
colors[0]='white';
colors[1]='black';
colors[2]='yellow';
colors[3]='blue';
colors[4]='red';

console.log(colors);
//natija - ['white', 'black', 'yellow', 'blue', 'red']


console.log(typeof colors)
natija - object
```




**new Array** konstruktoridan foydalanibham quyidagi usulda  massiv hosil qilish mumkin, ammo doim literal usulda array hosil qilish tavsiya etiladi.!

```
const new_array = new Array('length','toString','indexOf','includes');
console.log(new_array);
//natija - ['length', 'toString', 'indexOf', 'includes']
```

<u>JavaScript da massivlar  raqamlangan indekslardan foydalanadi.</u>
OOP Concepts: What's Your Biggest Challenge?
Tags: php, oop, coding, webdev
Published: 2024-06-29 16:05:40

Hey, fellow developers!🧑🏼‍💻

I'm currently working on a book about Object-Oriented Programming in **PHP** and **TypeScript**, and I'm curious about your experiences with OOP.

As developers, we all have those concepts that make us scratch our heads from time to time. So, I want to ask: Which OOP concept do you find most challenging to master?

- Inheritance
- Polymorphism
- Encapsulation
- Abstraction

Drop your answer in the comments, and let's discuss why! Your insights might even help shape some explanations in my upcoming book.

To kick things off, here's a quick PHP 8 snippet showcasing polymorphism:

```php
interface Logger
{
    public function log(string $message): void;
}

class ConsoleLogger implements Logger
{
    public function log(string $message): void
    {
        echo "Console: $message\n";
    }
}

class FileLogger implements Logger
{
    public function log(string $message): void
    {
        file_put_contents('log.txt', "File: $message\n", FILE_APPEND);
    }
}

function doSomething(Logger $logger)
{
    $logger->log("Operation completed");
}

doSomething(new ConsoleLogger());
doSomething(new FileLogger());
```

This example demonstrates how different classes can implement the same interface, allowing for flexible and extensible code.

What's your take on polymorphism? Love it? Hate it? Share your thoughts! 

-----

Photo by <a href="https://unsplash.com/@sigmund?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">rivage</a> on <a href="https://unsplash.com/photos/woman-in-pink-shirt-sitting-in-front-of-black-laptop-computer-AQTA5E6mCNU?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>
Creating and Managing IAM Users from Your EC2 Instance
Published: 2024-06-29 15:48:58

**Introduction:**
Managing user access on your EC2 instance is a fundamental task for maintaining security and efficiency in your AWS environment. In this guide, we'll walk you through creating a new user from the EC2 instance, setting up SSH access, and verifying the new user. Let's get started!

**Step-1:** Create a EC2 instance
Create a ec2 instance in the console.

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

**Step-2:** Connect to your EC2 instance
Connect to your EC2 instance using SSH. Open your terminal and run the following command

```
ssh -i path_to_your_key.pem ec2-user@your_ec2_public_dns

```
Replace path_to_your_key.pem with the path to your private key file and your_ec2_public_dns with the public DNS of your EC2 instance.

**Step-3:** Create a new user
Once connected to your EC2 instance, you can create a new user. Use the following command, replacing new_username with the desired username:

```
sudo adduser new_username

```
This command creates a new user and sets up a home directory for them.

**Step-4:** Set a password for the new user
Next, set a password for the new user. Use this command to set password for the new user.

```
sudo passwd new_username

```
**Step-5:** Verify the New User
To verify that the new user has been created successfully, use this command

```
cat /etc/passwd

```
You should see an entry similar to this:

```
new_username:x:1001:1001::/home/new_username:/bin/bash

```
This confirms that the new user has been added to the system.

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

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

**Conclusion:**
Creating and managing users on your EC2 instance is a straightforward process that enhances your system's security and accessibility. By following these steps, you can efficiently add new users, set up SSH access, and verify their presence on your system.

Regularly review and manage user accounts to maintain a secure and organized environment. Happy managing!
Improve Your Python Regex Performance Using Rust
Tags: python, rust, regex, programming
Published: 2024-06-29 15:46:34

I've made a wrapper over the Rust regex crate using PyO3 and maturin. I've named it flpc because it is short and easier to write. It works blazingly fast ⚡
(Only problem is that, it is not a full drop-in replacement for native re module)
```
pip install flpc
```
[Here's the link to the repository](https://github.com/itsmeadarsh2008/flpc)
SEOSiri: Stop Playing Small: Unlock Your Website’s True Potential with Digital Marketing
Tags: digitalmarketing, seo, webdev, marketing
Published: 2024-06-29 15:45:36

Your website is your online home. It's where you showcase your brand, connect with potential customers, and ultimately, grow your business. But a beautiful website alone isn't enough. It would be best if you had a powerful digital marketing strategy to succeed in today's digital world.

Think of it this way:

But how do you throw the ultimate digital marketing party?

It's not about random noise or fleeting trends. It's about creating a strategic plan that attracts the right audience, builds trust, and drives results.

Here's what a winning digital marketing strategy looks like:

Unlocking Your Website's Full Potential

At SEOSiri, we understand that digital marketing can feel overwhelming. That's why we offer many potential digital marketing services to help you simplify, strategize, and succeed.



We help you with your digital marketing needs:

SEO Services:

On-Page SEO Optimization: Technical website audits, keyword research, content optimization, meta-data optimization, etc.
Off-Page SEO: Link building, directory submissions, social media engagement, etc.
Local SEO: Optimizing for local searches, Google My Business management, citation building, etc.
E-commerce SEO: Product page optimization, category page optimization, schema markup, etc.
Content Marketing Services:

Blog Post Writing & Editing: Creating engaging, informative, and SEO-optimized content for your blog.
Website Copywriting: Crafting compelling copy for your website that converts visitors into customers.
Social Media Content Creation: Developing engaging content for your social media platforms.
Email Marketing Strategy: Develop email campaigns that nurture leads and drive sales.
Paid Advertising Services:

Google Ads Management: Setting up and managing Google Ads campaigns to target your ideal audience.
Social Media Advertising: Running paid ads on platforms like Facebook, Instagram, and LinkedIn.
Retargeting Campaigns: Reaching out to people who have shown interest in your products or services.

Read more- [SEOSiri Digital Marketing Services](https://www.seosiri.com/2024/06/unlock-digital-marketing.html).
🚀 Elevate Your QR Code Game with Our Cutting-Edge Tools! 🚀
Tags: techtools, devtools, api, softwaredevelopment
Published: 2024-06-29 15:44:06

🚀 Elevate Your QR Code Game with Our Cutting-Edge Tools! 🚀

🌐 Check out our user-friendly QR code generator website: QR Code Generator - Create QR codes in seconds!
[Website](https://api-chief.github.io/QRCodes/index.html)

💻 Developers, take advantage of our powerful and easy-to-use API: QR Code API on RapidAPI - Integrate seamless QR code generation into your applications.
[API](https://rapidapi.com/rizzards-of-oz-rizzards-of-oz-default/api/qr-code90)

✨ Whether you're looking to enhance your marketing, streamline operations, or add a tech-savvy touch to your projects, we've got you covered. Generate, customize, and share with ease!
Azure Virtual Machine Scale Set.
Tags: azure, productivity, computerscience, softwareengineering
Published: 2024-06-29 15:43:47


   Azure Virtual Machine Scale Sets (VMSS) allow you to create and manage a group of identical virtual machines. In this blog, we'll explore how to create a VMSS on Azure.

Step 1:  Log in to Azure Portal
Log in to the Azure portal and navigate to the Virtual Machine Scale Sets.

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

Step 2: Create a New VMSS
Click "Create" and select "Virtual Machine Scale Set".

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

Step 3: Configure Basics
Configure the basics, including name, resource group, and location.

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

Step 4: Choose a Virtual Machine Image
Choose a virtual machine image from the Azure marketplace or upload your own.

Step 5: Configure Instance Size and Capacity
Configure the instance size and capacity, including the number of virtual machines.

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

Step 6: Configure Networking
Configure networking, including virtual networks and load balancing.

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

Step 7: Configure Autoscaling
Configure autoscaling to automatically add or remove virtual machines based on demand.

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

Step 8: Review and Create
Review and create the VMSS.

Conclusion:
Creating a virtual machine scale set on Azure offers a flexible and scalable solution for managing multiple virtual machines. By following these steps, you can create a VMSS that meets your needs.

Note: This is a basic outline and may require more detailed instructions and technical expertise to execute.
New Ui libaratu @unix-ui
Published: 2024-06-29 15:40:30

Building a  ui library, soloely focused on flexibitlity and performance. The goal is to give developer the power of customizations in a ui library with the core features, theming etc. You can now look the components of at yeah just lazy work here, right now the core focus is just flexibility and performance in a very small bundle size for a ui library. the official docs will be there as soon as the core library work is done.
Library: [@unix-ui/react](https://www.npmjs.com/package/@unix-ui/react)
Showcase: [unix-ui](https://unix-ui.netlify.app/)
Interface v.s. Functional Interface
Tags: interview, java
Published: 2024-06-29 15:29:27

For the Java crowd, here's one that some like to use.

Explain the difference between an interface and a functional interface.

Ok let's start with what an interface is.

An interface defines a set of methods required by an implementing class. Consider it a blueprint for a class.

An interface may inherit from multiple interfaces. It may contain abstract methods, constants, static methods and default methods.

a class may implement multiple interfaces.

Ok, now what is a functional interface?

Functional interface can also be called a single abstraction interface.

A functional interface can have only one abstract method. This is the key difference to an interface.

However, a functional interface can have default methods and static methods just like a plain interface.

So, what is the point of a functional interface. The literature suggests that functional interfaces are designed to facilitate the use of lambda expressions where one may want to pass a function as an argument or return one as a result. It is said this makes code more expressive.

So there you have it.
Front-end, stage zero
Tags: frontend, webdev, react, svelte
Published: 2024-06-29 15:26:39

In our modern world in tech where choosing the right framework, languages and library plays a very crucial role in the productivity of our projects or products, I will be comparing a popular front-end tool which is React and a Not-so popular tool which is Svelte.
I know we will all agree that react is a very popular framework adopted by a lot of big tech companies, eg facebook, Instagram, spotify, just to mention a few.
React has powerful features like Virtual dom which enables smooth updating of the UI by re-rendering when neccesary which improves performance, Component base-it helps manage and manipulate states and it also has a large ecosystem supported by a vast communities and infinite libraries
While on the other hand, Svelte is use by some big companies like yahoo, meta, apple. It's unique feature is allows smooth production process with fewer codes, it is also said to be truly reactive and has no virtual dom, The framework uses smaller app bundles but gives a better outcome. In addition, the environment is more approachable for people with limited tooling ecosystem experience. 
I recently started my journey with React and it has been a bittersweet experience because it offers us varies of flexibilities that allow us manipulate and update states for a better performance, React has been quite complex, but I most say i enjoy using react.
I hope to learn alot from Hng, I have been preparing for a well and i really hope to do better than i did last year.
https://hng.tech/hire
https://hng.tech/internship
Better Animations... in Latest Doodle
Published: 2024-06-29 15:24:32

Animations in [Doodle 0.10.2](https://github.com/nacular/doodle/releases/tag/v0.10.2) can be chained within an animation block using the `then` method. This makes it easier to have sequential animations and avoids the need to explicitly track secondary animations for cancellation, since these are tied to their "parent" animation.

    val animation = animate {
        0f to 1f using (tweenFloat(easing, duration)) {                   // (1)
            // ...
        } then {
            0f to 1f using (after(delay, tweenFloat(easing, duration))) { // (2)
    
            } then {                                                      // (3)
                // ...
            }
        } then {                                                          // (4)
            // ...
        }
    }
    
    animation.completed += { /* ... */ }  // applies to entire chain
    animation.pause ()                    // applies to entire chain
    animation.cancel()                    // applies to entire chain

This release also includes lots of other great features including:
 - Desktop Accessibility Support - Accessibility features now work on Desktop
 - SpinButtons now support basic Accessibility
 - Improved Sliders - Sliders can now represent values of any Comparable type T between two start and end values.
 - Non-linear Sliders

Check out the [docs](http://nacular.github.io/doodle) for more details.


[Doodle](https://nacular.github.io/doodle) helps you create beautiful, modern apps entirely in [Kotlin](http://kotlinlang.org/). Its render model is intuitive yet powerful, making it easy to achieve [complex UIs](https://nacular.github.io/doodle-tutorials/docs/introduction) with pixel level precision and layouts. This simplicity and power applies to everything from user input to drag and drop. Doodle lets you build and animate anything.
Sai satcharitra telugu pdf
Published: 2024-06-29 15:22:23

If you are searching [Sai Satcharitra Telugu PDF](https://saisatcharitrapdf.in/), then you have arrived at the right website saisatcharitrapdf.in and you can directly download it from our website.Sai Satcharitra is a blessed biography book, all about the miracles and life history of Shri Sai baba. This book was considered a holy sacred book in the mid of Sai devotees all over the world. Sai Satcharitra was written by Hemadpant. Sai Satcharitra authors have divided chapters to maintain a proper flow in the lifetime events of Shirdi Sai Baba.Our website provides sai satcharitra pdf format in many languages,such as sai satcharitra Tamil pdf, sai satcharitra English pdf,  Sai Satcharitra Hindi pdf, Sai Satcharitra Bengali pdf, Sai Satcharitra Kannada pdf, Sai Satcharitra Marathi pdf, Sai Satcharitra Malayalam pdf, Sai Satcharitra Gujarati pdf.The Sai Satcharitram was written by Shri. Govind Raghunath Dabholkar alias Hemadpant. This book was written Marathi language. Then it was translated into many other languages like English,Hindi, Gujarati, Kannada, Tamil, Telugu, Bengali,  Nepali, Punjabi, and Konkani languages. In the 19th century, The Shirdi Sai Baba movement started while he was living in Shirdi. Nowadays, the movement has reached many other countries like the Netherlands, the Caribbean, Nepal, Canada, the US, Australia, the United Arab Emirates, Malaysia, the UK, Germany, France, and Singapore. Sai Baba teaches good things throughout his life and incidents to the people around him. Worship Lord Sai Baba will give you more positive vibes and improvement in your goals. Millions of Sai Baba devotees live all over the world. Start reading the Sai Satcharitra PDF today to make positive and good energy in your life. Thursday is considered to be the best day to worship Lord Sai Baba. you can get inner peace of the soul if you worship Sai Baba with a pure heart on Thursdays. Our website provides Sai Satcharitra in PDF format, here you can easily read and share Sai Satcharitra chapters with your friends and family members. Reading Sai Satcharitra will help you to learn about living a peaceful life. Huge magical things will happen in everyone's life once you start reading today Sai Satcharitra.