teleren/devto huggingface dataset:
Access Modifiers | C# da
Tags: access, modifiers, dotnet, csharp
Published: 2024-05-19 06:09:15

Assalomu alaykum barchaga. Bugun biz C# dasturlash tilida Access Modifierlar haqida o'rganamiz

**S:** _Access Modifierlar o'zi nima ?_

**J:** _Access Modifierlar bu - `class`, `struct`, `record` va shu kabi tiplar ichidagi ma'lumotlarga tashqarida turib murojaat qilish imkoniyatni cheklashga aytiladi._

**1 -** Access Modifierlar - `public`, `private`, `protected` bularni C# dasturlash tilida keng tarqalgan asosiy access modifierlar hisoblanadi. Access Modifierlar class oldidan va class ichida ishlatilishi mumkin. 

**2 - ** _ `Public` - Boshqa namespace lardan turib ishlatishga access beradi. U shunday yoziladi. 
```
**public** static class Car 
{
     **public** string color { get; set; }
}
```
Ushbu codedagi malumotlarni va classni o'zini endi istalgan namespace orqali chaqirishimiz mumkin. Faqatgina shu bir biriga ulangan projectlar bir biriga reference qila olsa...


**protected** - bu faqat o'zini farzandlariga ko'rinadi. Yani inheritance qilingandagina ko'rinadi. Misol uchun sizda Program.cs va Car.cs file bolsa. Car.cs ichida qandaydir mashina haqida malumotlarni qabul qilgan class mavjud bo'lsa, demak siz protected orqali shu file ichida istalgancha andoza olib ishlatish imkoniga egasiz. Lekin Program.cs file ichida xuddi shu classni chaqirmoqchi bo'lsangiz, 100% xatolik beradi. Haqqingiz yo'q chaqirishga degan ma'noda. 


**private** - esa, sizga umuman qattiq cheklov o'rnatadi. Faqatgina shu bitta classingiz ichida ishlata olasiz xolos, u ma'lumotlarni. **private** so'zidan ham bilib olish mumkin qanchalik qattiq turishini.


Tushuntira oldimmi ?
ABOUT Lionel Velloz!
Tags: marketing, bussiness
Published: 2024-05-19 06:05:51


Introducing Mr. Lionel Velloz, a driven young entrepreneur whose passion for leveraging technology to solve real-world problems has defined his remarkable journey spanning over two decades across a multitude of industries. As the founder of Ace Technologies & Infrastructure Limited, he is dedicated to disrupting the infrastructure sector with innovative solutions, driven by a vision of creating meaningful change.

Mr. Velloz's illustrious career boasts a diverse range of leadership roles, each contributing to his profound expertise and invaluable insights. From spearheading ground-breaking initiatives in infrastructure development at Ace Technologies & Infrastructure Limited, to pioneering cutting-edge technological advancements in manufacturing and exports at Art of Technologies Infrastructure Limited, and subsequently revolutionizing marketing strategies at Glocal Marketing Solutions Pvt. Ltd., his trajectory exemplifies a relentless pursuit of excellence.

His entrepreneurial spirit and astute business acumen have been pivotal in navigating the complexities of various sectors, including manufacturing, international trading, information technology, and global supply chain management. Committed to continuous learning, growth, and making a positive impact on society, Mr. Velloz's strategic foresight coupled with his unwavering commitment to innovation has consistently propelled organizations under his purview to new heights of success.

Under his stewardship, all the above companies have emerged as beacons of industry excellence, adeptly addressing the evolving needs of the market with a blend of expertise and innovation. Mr. Lionel Velloz stands as a testament to transformative leadership, embodying the ethos of precision, finesse, and unwavering dedication to achieving unparalleled results.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m7pkbg28en0omref0m4p.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ss0nv9g9yybex4f3lyuk.png)
Unlocking the Magic of JavaScript: A Beginner’s Guide.
Tags: javascript, webdev, beginners, programming
Published: 2024-05-19 06:02:17


## **1. "Hello, World!" – Your First JavaScript Program**
### **Slug: `hello-world-javascript`**

JavaScript is like a friendly neighbor who greets you with a warm "Hello, World!" Let's write our first program:

```javascript
console.log("Hello, World!");
```

## **2. "Variables: The Building Blocks"**
### **Slug: `javascript-variables`**

Variables store information. Imagine them as tiny treasure chests. Declare one like this:

```javascript
let favoriteColor = "blue";
```

## **3. "Functions: The Superpowers"**
### **Slug: `javascript-functions`**

Functions are like magical spells. They take input, perform actions, and return results. Here's a simple function:

```javascript
function add(a, b) {
  return a + b;
}

const result = add(5, 3); // Result: 8
```

## **4. "Conditionals: Choose Your Adventure"**
### **Slug: `javascript-conditionals`**

Conditionals help your program make decisions. It's like choosing between ice cream flavors:

```javascript
const age = 18;

if (age >= 18) {
  console.log("You can vote!");
} else {
  console.log("Wait a few more years.");
}
```

## **5. "Loops: The Dance Moves"**
### **Slug: `javascript-loops`**

Loops repeat actions. Picture a dance floor – you keep dancing until the music stops:

```javascript
for (let i = 1; i <= 5; i++) {
  console.log(`Step ${i}`);
}
```

## **6. "DOM Manipulation: Decorating Your Webpage"**
### **Slug: `javascript-dom-manipulation`**

The Document Object Model (DOM) lets you change your webpage dynamically. Imagine redecorating your room:

```javascript
const heading = document.querySelector("h1");
heading.textContent = "Welcome to My Awesome Website!";
```

---

And there you have it! JavaScript – the language that brings interactivity and magic to the web. 🌟✨ Feel free to explore more, experiment, and create your own enchanting web experiences! 🚀🔮
study Eletron
Published: 2024-05-19 05:55:17

if you install Eletron；
you must set up a mirror otherwise the download will be extremeky slow。

```
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/

```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dfhacsclo8657tejzvam.png)
Binary Search Top Interview Problems
Published: 2024-05-19 05:52:07

`// Java implementation of iterative Binary Search

import java.io.*;

class BinarySearch {
  
    // Returns index of x if it is present in arr[].
    int binarySearch(int arr[], int x)
    {
        int low = 0, high = arr.length - 1;
        while (low <= high) {
            int mid = low + (high - low) / 2;

            // Check if x is present at mid
            if (arr[mid] == x)
                return mid;

            // If x greater, ignore left half
            if (arr[mid] < x)
                low = mid + 1;

            // If x is smaller, ignore right half
            else
                high = mid - 1;
        }

        // If we reach here, then element was
        // not present
        return -1;
    }

    // Driver code
    public static void main(String args[])
    {
        BinarySearch ob = new BinarySearch();
        int arr[] = { 2, 3, 4, 10, 40 };
        int n = arr.length;
        int x = 10;
        int result = ob.binarySearch(arr, x);
        if (result == -1)
            System.out.println(
                "Element is not present in array");
        else
            System.out.println("Element is present at "
                               + "index " + result);
    }
}
`
windows computer setting
Published: 2024-05-19 05:49:17


how to turn of virus protection？
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/msz4rebk2umi5vrzoe11.png)
2

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qveg9qoutzvyv858nj7.png)
IaaS vs PaaS vs SaaS in simple words
Published: 2024-05-18 16:00:58

Let me first set up the context for this blog. 

When I first came across these terms, reading their technical definition did not help me understand what these things are. Hence, I needed some practical explanation of what it is. Although I did not get any, here is how I would explain it in simpler terms.

`Note: This just gives you a very brief idea of what it is. It is not explained in depth.`

To learn the difference between IaaS, PaaS, and SaaS, let's consider a scenario where you want to deploy a website.

# IaaS or Infrastructure as a Service

In this scenario, you opt to buy a server or VM from a cloud service provider and set up a CI/CD pipeline to deploy your website on that server every time there is a change in the code and it is pushed to GitHub. You have full control over the infrastructure, including managing and maintaining servers.

Examples of IaaS providers include AWS, Azure, GCP, and even Raspberry Pi.

# PaaS or Platform as a Service 

Alternatively, you choose to use a third-party service provider to whom you just give access to your GitHub repository, it takes care of the deployment and provides you a link to the website.

Examples of PaaS providers include Vercel, Hostinger, and GitHub Pages, which offer deployment platforms and tools to simplify the development and deployment process.

# SaaS or Software as a Service

In another scenario where you don't have the website code, you hire a third party to develop and host the website for you, providing you with a link to access it.

Examples of SaaS solutions include WordPress and Wix, which provide website-building and hosting services.
What do you think about my website?
Tags: beginners, discuss, api, coding
Published: 2024-05-19 05:12:04

I have a project that I want to show everyone and it is about a food recipe finder app. I want to get some feedback from everyone so please help me I really need everyone's feedback by comment down below. I really appreciate your feedback!

What I used in this project:
- API: [TheMeal](https://www.themealdb.com/)
- Frontend: [React js](https://react.dev/)

Thank you for your feedback 😊😊

**Link of the Website:** [Food Recipe Finder](https://foodrecipefinder.online/)
Enhancing User Experience: Implementing Dark Mode on Your Website with CSS
Published: 2024-05-19 05:00:00




Introduction:
In today's digital age, user experience (UX) is paramount. One way to enhance UX is by offering dark mode on your website. Dark mode not only reduces eye strain but also adds a touch of modernity to your site. In this article, we'll delve into the CSS tips and tricks for seamlessly implementing dark mode on your website.

Understanding Dark Mode:
Dark mode, also known as night mode or dark theme, presents content with dark backgrounds and light text. To implement dark mode effectively, it's essential to understand how it impacts your website's design and readability.

CSS Variables:
CSS variables (or custom properties) play a crucial role in implementing dark mode efficiently. By defining variables for colors, you can easily switch between light and dark themes by updating these variables.

```
:root {
  --background-color: #ffffff; /* Default light mode background */
  --text-color: #000000;       /* Default light mode text color */
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
}

```
Media Queries:
Media queries allow you to apply CSS styles based on the user's device characteristics, such as screen size and color scheme preference. Utilize media queries to detect if the user prefers dark mode and adjust your styles accordingly.

```
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #121212; /* Dark mode background */
    --text-color: #ffffff;       /* Dark mode text color */
  }
}

```
Toggle Switch:
Offer users the flexibility to switch between light and dark modes with a toggle switch. Use JavaScript to toggle a CSS class that applies the appropriate color scheme.

```
<div class="dark-mode-toggle">
  <input type="checkbox" id="darkModeToggle">
  <label for="darkModeToggle">Dark Mode</label>
</div>

```

```
.dark-mode-toggle input[type="checkbox"] {
  display: none;
}

.dark-mode-toggle label {
  cursor: pointer;
  user-select: none;
}

.dark-mode-toggle input[type="checkbox"] + label:before {
  content: "☀️";
}

.dark-mode-toggle input[type="checkbox"]:checked + label:before {
  content: "🌙";
}

```
Accessibility Considerations:
Ensure that your dark mode implementation is accessible to all users, including those with visual impairments. Maintain sufficient color contrast between text and background elements to ensure readability in both light and dark modes.

Conclusion:
By incorporating dark mode into your website using CSS, you can enhance the user experience and keep your site visually appealing. Remember to prioritize accessibility and usability throughout the implementation process. With these tips and tricks, you can create a seamless transition between light and dark modes, catering to the preferences of your diverse user base.

---
Thank you for reading my article! For more updates and useful information, feel free to connect with me on LinkedIn and follow me on Twitter. I look forward to engaging with more like-minded professionals and sharing valuable insights.
11 Format Image Converter and Online Photo Compressor to any Size
Tags: imageconverter, photocompressor
Published: 2024-05-19 04:51:28

Are you looking for a reliable and easy-to-use image converter? Look no further! Our online tool is designed to be the best image converter available, allowing you to save your images in any format you need—all for free. Whether you're a professional photographer, a graphic designer, or simply someone who wants to convert a few photos, our tool is perfect for you.

**Key Features**
**Wide Range of Formats:** Convert your images to and from popular formats such as JPEG, PNG, GIF, BMP, TIFF, and more.
**High-Quality Conversion:** Maintain the quality of your images with our advanced conversion algorithms.
User-Friendly Interface: Simple, intuitive design ensures that anyone can convert images without any hassle.
**No Software Installation:** Use our tool directly from your browser—no need to download or install anything.
Fast and Efficient: Get your images converted quickly, with minimal waiting time.
**Secure and Private:** Your images are processed securely, and we ensure your privacy is protected.

## How to Use Our Image Converter?
**Upload Your Image:** Click the "Upload Image" button and select the image file you want to convert from your device.
Choose the Desired Format: Select the output format you need from our extensive list of supported formats.
**Convert and Download:** Click the "Convert" button and wait for the process to complete. Once done, download your converted image.
Supported Formats
Our tool supports a vast array of image formats, ensuring you can convert your files to exactly what you need. Supported formats include:

**JPEG:** Ideal for photographs and images with lots of colors.
**PNG: **Perfect for images that require transparency.
**GIF:** Great for simple graphics and animations.
**BMP: **A lossless format suitable for high-quality images.
**TIFF:** Commonly used in professional photography and publishing.
**

## Why Choose Our Online Image Converter?
**
Free of Charge: Enjoy all the features of our image converter without any hidden costs or subscriptions.
Convenience: Convert images anytime, anywhere, as long as you have an internet connection.
No File Size Limits: Convert images of any size, whether it's a small icon or a high-resolution photograph.
Regular Updates: We continuously improve our tool to ensure you have the best experience possible.

[11 Format Image Converter and Online Photo Compressor to any Size](https://downloader4u.com/online-photo-compressor/)
Error : attempted to assign id from null one-to-one property Contact.user
Published: 2024-05-19 04:41:47

I have USER(id) and CONTACT(user_id, first, last) table. CONTACT.user_id is the foreign key to USER table.

In User.java:

@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer id;

@OneToOne(cascade = CascadeType.ALL)
@PrimaryKeyJoinColumn
private Contact contact;




in Contact.java

@Id
@Column(name="USER_ID")
private Integer userId;

@MapsId 
@OneToOne(mappedBy = "contact")
@JoinColumn(name = "USER_ID")
private User user;
I use userRepository.saveAndFlush(user) to save USER object. Since I am using USER.ID as the foreign key in CONTACT, I need to insert USER before CONTACT, but JPA is Inserting CONTACT first, it sees CONTACT as a member of USER. So I am getting a USER_ID can not be NULL error when inserting CONTACT. What should I do to fix this the order of insert?
I am Developing the Mind reader for the developers & Programmers! Will this work?
Published: 2024-05-19 04:16:16

Greetings everyone!

I'm excited to introduce you to EdenBand .io, where we're revolutionizing the way people manage their mental well-being. Our innovative device allows users to effortlessly track and optimize their mental state, helping them overcome anxiety, stress, fatigue, and other mental hurdles, enabling peak performance in their daily lives.

We're already gaining momentum with 345 signups and counting! Now, we're on a mission to reach 1000 signups, and I invite you to join us in this journey toward better mental health and enhanced productivity.

Visit our website at EdenBand .io and be a part of our growing community. Let's pave the way to a brighter, more balanced future together!

Looking forward to having you onboard as part of our hall of fame users!

Cheers,
David

#ai #flutter #css #javascript #c++ #python #web3 #socialmedia #robotics
Buy Pre-Built Shopify Store from Shopifico
Tags: webdev, react, learning
Published: 2024-05-19 04:00:20

Starting an online business can be overwhelming, especially if you're new to the world of e-commerce. Shopify has become one of the most popular platforms for building and managing online stores due to its ease of use and robust features. But what if you could bypass the initial setup and jump straight into selling? That's where Shopifico comes in, offering pre-built Shopify stores that are ready to go from day one.
https://shopifico.com/blogs/news/is-myshopify-legit
https://shopifico.com/collections
https://promptigo.com/blogs/news/homeworkify-alternatives
cryptocurrency recovery Success Stories with Cyber Asset Recovery
Published: 2024-05-19 03:35:14

Please beware there are many fake bitcoin mining/clouding out there, I have been a victim once but now a certified blockchain consultant and I know better. The whole plan was so smooth I could not doubt it. Bitcoin is actually a great investment option but one thing I discovered over time is that it is not possible to mine bitcoin so don’t be deceived. I invested $25000 on a particular website called eurekaminingblock, I monitored the profit yielding but was told to open a new blockchain account to receive my payout. A public wallet was imported into the account and I was made to believe that was my profit. The bitcoin was labelled non spendable and it took me 2 years to be able to access it without the knowledge of the company. The non spendable bitcoin is the scam out there now and a lot of people are falling victim of it. I found Cyber Asset Recovery ( A certified cryptocurrency recovery expert and trader) on Quora who helped me access a significant part of my investment together with the profit without the knowledge of the scammers. You can reach Cyber Asset Recovery through their email: Cyberassetrecovery@ protonmail. com 
WhatsApp:  +1 (202) 773 -9556
Telegram:  @CyberAssetRecovery

They can also help you track, spy and catch a suspected cheating spouse
Sex Toys For Men
Published: 2024-05-19 03:28:58

Enjoy all sex toys for men on Sextoy4men. Explore where to buy men sex toys and how to use them probably. Sex toys for sale are included to save money. 
Address: 777 Kansas Star Dr, Mulvane, Kansas 67110, United States
Phone: (316) 719-5000
Email: contact@sextoy4men.com 
Website: https://sextoy4men.com/
https://www.facebook.com/sextoyformen01/
https://www.pinterest.com/sextoy4men/

https://www.youtube.com/@sextoy4men/about
https://www.veoh.com/myprofile
https://hashnode.com/@sextoy4men
https://hub.docker.com/u/sextoy4men
https://issuu.com/sextoy4men
https://sextoysformen.contently.com/
https://www.trepup.com/@sextoy4men
https://www.tumblr.com/sextoy4men/
https://www.victoriaeducation.co.uk/members/sextoy4men/
https://www.walkscore.com/people/207179366877/sex-toys-for-men
https://www.weddingbee.com/members/sextoy4men/
https://www.yourquote.in/toyformale-team-dssq2/quotes
https://linkhay.com/u/sextoy4men
https://www.yourquote.in/toyformale-team-dssq2/quotes
https://www.linkedin.com/in/sextoy4men
https://www.reddit.com/user/xtoysformen/
My mistake with resolve and return resolve
Tags: javascript, webdev, beginners, learning
Published: 2024-05-19 03:22:45

TLDR : Just calling resolve does not stop further code execution, return resolve is the right way to stop further code execution.

Lets see this example.
```
function fun1(){
  returns new Promise(){
      console.log("Before calling fun2");
      fun2().then(response){
          if(response == 1234){
             resolve(response);
          }
          console.log("After resolve");
      }
  }
}
```
Now if you run this, the console prints
```
Before calling fun2
After resolve
```
But ... I had called resolve so the code at "After resolve" should not have been reached.
WRONG!

***Correct use***
```
fun2().then(response){
          if(response == 1234){
             return resolve(response);
          }
          console.log("After resolve");
      }
```
Now it works as expected and returns where intended stopping further code execution.

This was a small oversight but it leads to unexpected behaviour in the logic flow if ignored.

Just sharing my experiences, small things that will save time, sweat and hair on the head.

Cheers.
[DAY 3] First Time Using CSS To Add An Animated Gradient Background To My Webpage
Tags: beginners, learning, webdev, css
Published: 2024-05-19 03:21:26

Today, I had a clear agenda for advancing my CSS skills and enhancing my webpage's aesthetics.

First on my list was cropping my banner to achieve the look that I want. Next, I aimed to introduce an animated gradient background for added flair, followed by incorporating rectangular shapes to encase my paragraphs.

However, the day was not without its challenges, I encountered difficulties in precisely cropping my images and in seamlessly integrating an animated gradient background. Additionally, creating rectangular backgrounds to encase my text elements proved to be a hurdle.

To overcome these obstacles, I delved into CSS techniques. I utilized properties like `object-fit: cover` and `object-position: center` to crop my images the way I want it to. For animated gradients, I used the _@keyframes_ property and leveraged the _:root_ property to utilize CSS variables, I named it, _var gradients_. I also experimented with 6-8 colors to create dynamic gradient effects that emphasize blue colors. Lastly, I used the _background-image_ property in CSS to frame my text elements within colored background images for a visually appealing touch.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qgcfd0k1sue4rl88ryq3.PNG)![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1czmiycy28k86gmyubc.PNG)![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h6d81rjrck8jpflkgnx4.PNG)
By day's end, while I managed to achieve the desired look for my website, I recognized there's still work to be done. The responsiveness across different browsers and screen sizes remains a challenge. On larger and smaller monitors, the layout collapses, highlighting the need for refinement.

Nonetheless, I'm content with the progress I made today. This hands-on approach has reinforced my learning process. I've discovered that I grasp concepts better when I’m actively building something using what I just learned and problem-solving along the way, rather than passively studying. The ability to immediately apply newly acquired knowledge is proving to be my most effective learning method.

As I look forward to tomorrow, I'm eager to tackle these remaining challenges and continue honing my skills as a developer.