teleren/devto huggingface dataset:
Blazor CSS-isolation a ::shallow quick fix..
Tags: blazor, css, cssisolation, html
Published: 2024-05-23 08:20:03

Vanilla CSS, the pure not-infected by frameworks, is IMHO the best way to do CSS. With all the nice features like native nesting and custom properties (CSS variables) it seems to me that we have what we need. That however seems not to be the understanding of many frameworks, like Blazor, Angular and others.

## The Blazor CSS-isolation issue
Here I want to share a quick fix understanding when fighting the Blazor CSS effects to your css. It seems to actually be a valid solution.

> Add `::deep` after your component root css class

It is as simple as that! (it seems).

## The Blazor CSS-isolation technique
Blazor uses like other frameworks (Angular for instance) a technique of injecting a unique attribute on component HTML. It looks like this: `b-khlzklwsq4`. It is a "b" and then a random 10 chars long GUID sort of string. This combined with the rewriting of you pretty vanilla CSS for the component allows Blazor to have scoped css. CSS which will not break other components (but only itself ;-)).

So if I have my css:

```
.my-component {
  outline: 1px black solid;
}
.my-component *:focus {
  outline: none;
}
```

Blazor will pass it at runtime into:

```
.my-component[b-khlzklwsq4] {
  outline: 1px black solid;
}
.my-component *:focus[b-khlzklwsq4] {
  outline: none;
}
```

However I need to target **any** element which has focus, not just elements in focus which **has** the attribute `b-khlzklwsq4`!

My rule-of-fix-::deep is then to simply add a `::deep` after the main component selector (`.my-component`) and get this:

```
.my-component {
  outline: 1px black solid;
}
.my-component ::deep *:focus {
  outline: none;
}
```

That way I instruct Blazor: "Please do not manipulate any of my CSS other than the main selector (`.my-component`). It seems to work! :-)

```
.my-component[b-khlzklwsq4] {
  outline: 1px black solid;
}
.my-component *:focus {
  outline: none;
}
```

That in fact was my `::shallow` quick-fix of the broken Blazor CSS-isolation functionality!
Can the VTable component achieve different hover colors for different cells?
Tags: vtable, visactor, visulization, webdev
Published: 2024-05-23 08:10:14


## Question Description
Can different cells have different hover colors?

Use case: By default, the hover color is set to blue. Under certain conditions, some cells are highlighted in purple. However, the requirement is that when hovering over the highlighted cells, they should not change to the hover blue color.


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



## Solution
It can be solved by the background color function. Set bgColor as a function to set the highlight background color for special values. Set the background color through theme.bodyStyle.hover.cellBgColor, which also needs to be set as a function to return different background colors. If some cells do not want a background color, an empty string can be returned.

## Code Example

```
let  tableInstance;
  fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data.json')
    .then((res) => res.json())
    .then((data) => {

const columns =[
    {
        "field": "Profit",
        "title": "Profit",
        "width": "auto",
        style:{
            bgColor(args){
                if(args.value>200){
                    return 'rgba(153,0,255,0.2)'
                }
                // 以下代码参考DEFAULT主题配置实现 https://github.com/VisActor/VTable/blob/develop/packages/vtable/src/themes/DEFAULT.ts
                const { col,row, table } = args;
                const {row:index} = table.getBodyIndexByTableIndex(col,row);
                if (!(index & 1)) {
                    return '#FAF9FB';
                }
                return '#FDFDFD';
            }
        }
    },
    {
        "field": "Order ID",
        "title": "Order ID",
        "width": "auto"
    },
    {
        "field": "Customer ID",
        "title": "Customer ID",
        "width": "auto"
    },
    {
        "field": "Product Name",
        "title": "Product Name",
        "width": "auto"
    }
];

const option = {
  records:data,
  columns,
  widthMode:'standard',
  hover:{
    highlightMode:'cell'
  },
  theme:VTable.themes.DEFAULT.extends({
    bodyStyle:{
      hover:{
        cellBgColor(args){
          if(args.value>200){
              return ''
          }
          return '#CCE0FF';
        }
      }
    }
  })
};
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
window['tableInstance'] = tableInstance;
})
```
## Result Display
Just paste the code in the example directly into the official editor to display it.

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


## Relevant Documents
Theme Usage Reference Demo:https://visactor.io/vtable/demo/theme/extend

Theme Usage Tutorial：https://visactor.io/vtable/guide/theme_and_style/theme

Related api：https://visactor.io/vtable/option/ListTable#theme

github：https://github.com/VisActor/VTable
Only Use Env() In Config Files
Tags: laravel, webdev, beginners, programming
Published: 2024-05-23 07:55:59

When working with Laravel you may find yourself needing to access environment variables in your configuration files. In this article we're going to look at how you can access these environment variables using the `env()` helper function.

We will use the environment variables to have different settings for our application on different machines for example you might want different settings for the app in development and production.

Laravel provides a helper function called env() that allows you to access environment variables in your application. This function takes two arguments the first is the name of the environment variable and the second is the default value if the environment variable is not set.

This will allow you to do things in your application like this:

```php
if(env('APP_DEBUG', false) === true) {
    // Do something
}
```

But there is a problem with the above code, this will work in development but there will be a problem in production.

In most laravel production applications we use the command `php artisan config:cache` to cache the configuration files. This will speed up the application as it doesn't need to read the configuration files on every request.

But the problem with the above code is that the `env()` function will not work when the configuration files are cached. This is because the `env()` function is a helper function and it will not be executed when the configuration files are cached. You will get a null response from the `env()` function when the configuration files are cached.

So how do we fix this? The solution is to use the `config()` function instead of the `env()` function. The `config()` function will work when the configuration files are cached.

The `config()` function works in the same way as the `env()` function but it will work when the configuration files are cached.

So the above code can be changed to:

```php
if(config('app.debug', false) === true) {
    // Do something
}
```

This will work in both development and production environments.

In your config files you can use the env() function as this will be used to build the configuration cache like this.

```php
'debug' => env('APP_DEBUG', false),
```

You can read more about production optimization in the Laravel documentation.

Now you know how to use the `env()` function in your configuration files in Laravel. This will help you to have different settings for your application on different machines and environments.
🔥 Vue Tip: Using Once Watchers
Tags: vue, javascript, webdev, programming
Published: 2024-05-23 07:52:18

## Vue Tip: Using Once Watchers

In Vue.js, a watcher's callback function executes every time the watched source changes. However, there might be scenarios where you only want the callback to trigger once on the initial change. This is where the once: true option comes in handy.

## How to Use Once Watchers

By default, Vue watchers are designed to listen to changes continuously. To alter this behavior so that the callback is triggered only once, you can simply add the once: true option when defining your watcher.

Example:

```
<script setup lang="ts">
watch(
  source,
  (newValue, oldValue) => {
    // when the source changes, triggers only once
  },
  { once: true }
)
</script>
```
In this example, the watcher on the source will trigger the callback when the source changes, but only once. Subsequent changes to source will not trigger the callback.

## Benefits of Using Once Watchers
Performance Optimization: Reduces the number of times the callback is executed, which can be particularly useful in performance-sensitive applications.
Simpler Logic: Avoids the need for additional logic to ensure a callback only runs once.
Use the once: true option to streamline your Vue watchers and improve the efficiency of your reactive code.
3 Konsep Sederhana Supaya Kamu Kuat
Tags: webdev, tips, trick, beginners
Published: 2024-05-23 07:49:47


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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zb0h0ml2fzh5vfsr93rc.png)
Kamu punya 3 alat tukar:

Yang manapun jadi kebutuhanmu, gunakan dua yang lain untuk mendapatkannya✅

Yuk belajar bareng serta diskusi dikolom komentar, serta di save biar ga lupa💬😝

📬DM For Business
🌱Follow : @appardana
💭Stay Young, Be Innovative and Keep Learning

#coding #programmer #code #Content #Tips #Trick #Knwoledge #Management #CSS #React #ReactJS #Frontend #JustifyContent #Javascript #Phyton #C #Web #Skills #IT #Backend #Developer #Roadmap #SelfImprovement #Growth #Aditria #Pardana #AditriaPardana #appardana #iAppTech ⚛️
WatchIT - a web3 streaming service
Tags: movie, streaming, decentralized, web3
Published: 2024-05-23 07:43:46

WatchIt is a movie and TV show streaming app. It has a clean and intuitive interface, with a search feature that makes it easy to find specific movies or shows. Users can also browse by genre, get prefered titles and discover new movies to add to their watch lists.

One of the key features of WatchIt is its ability to sync across multiple devices. Users can access their watch lists and discover new titles whether they're using their phone, tablet, or computer. The app also allows users to set notifications for when a new episode of their favorite show is released, or when a movie they want to watch becomes available on the streaming service.

In addition to tracking what to watch, WatchIt also offers a wealth of information about movies and TV shows. Users can read summaries, view trailers, and see cast and crew information. The app also provides user ratings and reviews, as well as links to popular social media and movie discussion forums.

Another useful feature of WatchIt is its ability to create custom lists. Users can create lists for specific genres, moods, or even movie nights with friends. This makes it easy to quickly find the perfect title to watch, no matter the occasion.

WatchIt also offers a social aspect, allowing users to connect with friends and see what they're watching. Users can also share their watch lists and custom lists with others, making it easy to plan movie nights or just get recommendations from friends.

Overall, WatchIt is a comprehensive and user-friendly app for anyone who wants to stay organized and discover new movies and TV shows. With its syncing, notification, and social features, it offers a seamless and engaging experience for any film or TV enthusiast. Whether you're a casual viewer or a hardcore fan, WatchIt has something to offer.
Why I Use AWS Cloud9 IDE to Practice Bash ...
Tags: beginners, bash, aws, devops
Published: 2024-05-23 07:40:35

# I never typed anything in shell or terminal before

So, when I follow the [6-Month Cloud Bootcamp](https://www.madebygps.com/cloudcamp/)

the first step required me to learn Bash

and I was perplexed.



### These are a few tutorials that I watch to learn Bash:

[Source recommended by Bootcamp itself](https://www.youtube.com/playlist?list=PLlrxD0HtieHh9ZhrnEbZKhzk0cetzuX7l)

[A Top bash scripting from Freecodecamp](https://www.youtube.com/watch?v=tK9Oc6AEnR4&t=1025s)



### But I'm stressful about the IDE to write down the Bash itself

I do ...
* use Windows OS
* work every day for a minimum of 9 hours day - making me frequently have to code on my company's computer
* broke - so $1 for you could afford me a day of meal

So I need an IDE that could be accessed by any computer, free, and easy UX experience will be plus plus plus (+). 



### I have tried ...

1. the hardest way (for me) - [use VirtualBox and install Ubuntu](https://www.youtube.com/watch?v=wqm_DXh0PlQ). I need to install and reinstall software on my laptop and company's computer. Did experience forgot password, problem was solved, but very bad experience for myself. Please tell me if you experience otherwise. 


2. [CodeSpace](https://www.youtube.com/watch?v=dfYTrhQuSdA&list=PLlrxD0HtieHh9ZhrnEbZKhzk0cetzuX7l&index=3&t=14s). Ok, but my company's wifi did not support it. The loading takes way too much time that I lose motivation.

3. I did try to use WSL, install [second OS Linux on my Windows](https://www.youtube.com/watch?v=X-DHaQLrBi8). and to be honest I never use it anymore after first installation. as far as I remember it is about the password - again.

So here's what I think, I am already comfortable with AWS SSO and use some of AWS service. 



### Does AWS have an IDE?

And I stumbled upon this video when learning Terraform ...
{% embed https://www.youtube.com/watch?v=0F2YjF9gclA&t=206s %}




### Cloud9 
It is free, easy simple UX, could be accessed by any computer from a single link with AWS SSO.

I do highly recommended SSO. You might be notice I am a loser when it comes to password, but believe me after the hard part of SSO installation, you will save a lot of time, brain memory, and less energy drain. 

So far, I don't have any big problem with Cloud9. It may seems like basic, but that what I ask for. Basic IDE for me to practice Bash.

That's all and thank you. Hope it helps.
Leveraging the power of Proxy in Javascript
Tags: webdev, javascript, proxy
Published: 2024-05-23 07:37:05

JavaScript Proxy objects are an advanced technique introduced in ES6 to provide developers with more flexibility to intercept and customize internal operations on ordinary objects. This addition opens up a range of possibilities for developers to add new dynamic behaviors that are useful for logging, validating, formatting, and sanitizing inputs. This blog post will examine the conceptual implementation of Proxy, its syntax, usage, and practical examples.

Link to my full article: https://blog.bravebits.co/leveraging-the-power-of-proxy-in-javascript.
Book tour guide for Taj mahal
Tags: travel, tajmahal, tour
Published: 2024-05-23 07:30:35

 I have been working as a Govt. Approved Professional local tour guide in Agra since 2001, with my associate team of Govt. Approved local guides.
I have tour guide license by Ministry of tourism, Govt. of India. [Book tour guide for Taj mahal](https://tajtourguide.com)
As well as, My tour co. (Taj Tour Guide) is registered & approved by Govt. of India ETAA (Enterprising Travel Agents Association) India.
I am professionally qualified. M. A in history &amp; Post Graduate Diploma in tourism management, from Agra university, I usually receive great comments "excellent service" by my clients.
specialist disability accommodation ndis
Published: 2024-05-23 07:29:49

Philips Home Care: Your Trusted SDA Provider
Philips Home Care is a registered NDIS provider of Specialist Disability Accommodation (SDA), proudly offering essential disability housing across NSW, QLD, Adelaide, and Perth.

What is SDA?
Specialist Disability Accommodation (SDA) is specifically designed to enhance liveability, accessibility, freedom, and independence for individuals with disabilities. These accommodations include purpose-built modifications, optimal locations, and secure environments that prioritize safety. Residents also benefit from the high level of specialized care provided within these homes.

Our Commitment as SDA Providers
As a leading SDA provider, Philips Home Care understands the importance of tailored solutions for individuals with disabilities. Our expertise in disability support services, combined with our commitment to enhancing quality of life, ensures that our SDA accommodations promote independence, dignity, and inclusion.

Comprehensive Support Every Step of the Way
Finding suitable accommodation can be challenging for individuals with disabilities and their families. At Philips Home Care, we simplify this process by offering comprehensive support:

Identifying the Right Accommodation: We help you find the perfect SDA home to meet your needs.
Coordinating Support Services: Our team ensures a smooth transition and provides ongoing assistance tailored to individual requirements.
NDIS SDA Homes
NDIS SDA homes are specialized housing options designed for individuals with significant disabilities in Australia. These homes aim to provide suitable living arrangements that meet specific needs, incorporating various modifications and features to enhance accessibility, safety, and independence.

Features of SDA Homes
High-Quality Standards: Built or modified to meet rigorous standards.
Accessibility: Features like wider doorways and accessible bathrooms.
Assistive Technology: Incorporation of technology to aid daily living.
Support Services: Continuous care and support tailored to residents' needs.
SDA is a crucial component of the National Disability Insurance Scheme (NDIS), ensuring individuals with disabilities have access to suitable housing options that promote their well-being and quality of life.

At Philips Home Care, we are dedicated to making this a reality for all our residents.
Help Needed: Learning Vue.js Under Tight Deadline!
Tags: vue, help
Published: 2024-05-23 07:29:36

Hi Vue.js Community,

I am a full-stack developer with 1.5 years of experience in PHP, MongoDB, HTML, SASS, jQuery, JavaScript, RabbitMQ, and OOP. I am eager to dive into Vue.js and need to learn it quickly to build a portfolio site for my project.

## What I'm Looking For:
- **Cheat Sheets**: Any concise and comprehensive cheat sheets or quick reference guides for Vue.js.
- **Important Topics**: Key concepts and topics that are essential for production-level development.
- **Learning Path**: A structured learning path that I can follow to master Vue.js as quickly as possible.
- **Resources**: Recommendations on where to study (documentation, courses, tutorials, etc.) and how to study effectively.

## My Goal:
I need to build a portfolio site integrated with Frappe as the backend. The site will have common portfolio components and should be production-ready. In future, it will grow as well. I have limited time.

## Experience:
- **Frontend**: PHP, HTML, SASS, jQuery, JavaScript
- **Backend**: MongoDB, RabbitMQ
- **Frameworks**: Experience with other frameworks but new to Vue.js

## Any Advice?
Any advice, tips, or resources you can provide would be greatly appreciated. I want to ensure I am learning efficiently and covering all the necessary topics to build a robust and professional portfolio site.

Thank you in advance for your help!

Best regards,
Hariharan
Delhi Agra Same Day Tour by Car
Tags: travel, tour, tajmahal
Published: 2024-05-23 07:28:25

"AgraSameDayTour" provides private same day tours by exploring the most popular cities of North India (Delhi & Agra) for travelers through our carefully selected network of Local Tour Guides & Team Members of Agra City, each of whom is keen to share their knowledge, experience, and expertise. We serve the unique things to our guest with our experience and by the reality of a place and see its culture through the eyes of a local Tour Guide. They are 'sensibly curious', socially conscious and value seeing their travel spending directly benefit the people who live in the communities they visit.[Delhi Agra Same Day Tour by Car](https://www.agrasamedaytour.com)
ndis short term accommodation providers
Published: 2024-05-23 07:27:01

Short Term Accommodation
 The National Disability Insurance Scheme (NDIS) is an Australian government program that provides funding and support for people with disabilities. NDIS accommodation refers to the housing options available for people with disabilities who are supported under the NDIS program.

NDIS Short Term Accommodation Sydney
Short-term accommodation and respite (STAR): This provides a short-term stay in accommodation that is designed to support people with disabilities who require respite or short-term accommodation.

Enjoy your stay at Philips Home care and have all your disability support needs and medical support needs taken care of under one roof. Fun activities are included, such as weekend scenic drives, dinner outings and celebration barbecues.

NDIS Respite Accommodation:
✓ TV in each bedroom

✓ International cuisine & nutrition

✓ Comfortable, safe environment

✓ Carers are with you 24/7

✓ Have fun and meet friends

✓ Enjoy privacy when you need it
Component-based coding vs repeated code
Published: 2024-05-23 06:24:15

I hate to write repeated codes that have the same logic!

What happens when companies start using component-based coding? 

A project starts and then we begin to write the first line of the code Developers gather information, set logic, and work on the code from scratch.

But what if the logic from your past projects was reusable? 

As developers already know, in a project, some of the logic is similar, or even the same as the previous project. 

Then why shouldn’t we build these logic components into our coding tools that could be used whenever necessary? 

Component-based coding will

⏳ Save your time
📖 Increase readability
♻ Make your code reusable 

With component-based components, you’ll have easy backtracking, and error finding, and hone your skills in better code-structure planning!

[Wooffer](https://wooffer.io/) was built with this coding technique. You can apply it too!

Don’t you agree?



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ndekha6bz3uei775st7s.png)
Website Designing In Agra
Tags: laravel, php, webdev, html
Published: 2024-05-23 07:25:34

KD Software Pvt. Ltd. is a professional website design, software development and app development company based in Agra, Uttar Pradesh India since 2015 Call Us: +91976185356. We offer a wide range of Website Design, Web Development, Software Development, App Development, SEO, PPC and Digital Marketing services that are all delivered using the latest and greatest technologies. Our goal is to provide our customers the means to adequately present and market themselves online successfully. We deliberately help build your brand, improve your global web presence, and develop more significant relationships with your customers.
[Software Company in Agra](https://kdsoftware.in)
[website designing in Noida](https://websitedesigningnoida.com)
Teesmithy Store – Teesmithy Store
Published: 2024-05-23 07:25:20

Teesmithystore has increased its inventory of t-shirt designs and apparel options for customers. We listened to feedback asking for more styles and have delivered with over 100 new designs added across various categories from pop culture to motivational sayings. Whether you're looking for the latest movie or TV show graphic, quotes to inspire, or just something fun and unique, our expanded selection has what you need.
Our in-house graphic designers worked hard to develop prints that will appeal to a wide range of tastes. From subtle and understated to bold and eye-catching, there is a design for every personality. We also focused on trending themes that are popular right now like wellness, positivity, and pop satire. As trends evolve so does our merchandise—you can rely on Teesmithystore to keep offering the latest and greatest.
In addition to more graphic designs than ever before, we expanded into new categories o - tpfjmxeeja - https://teesmithystore.wordpress.com/?unique_id_tk07te1t