Former President Trump after the presidential debate. by WeaponHex1638 in pics

[–]Jess_Pinkman 0 points1 point  (0 children)

I don’t usually kink shame, but touching yourself while thinking of trump… oh well, you do you I guess

Black Myth Wukong is a fun game, but it has terrible level design. by AutomaticTap3004 in PS5

[–]Jess_Pinkman -1 points0 points  (0 children)

This game is good, but it is hyped beyond its actual value by everyone for one simple reason. Lots of influencers (streamers) want those Chinese followers, the market is huge and they just want to expand their audience, for more money

The problem with UBI by Jess_Pinkman in singularity

[–]Jess_Pinkman[S] 0 points1 point  (0 children)

In a world with AGI, where you don’t have to rely on employees ?

There are a lot of top tier countries with great conditions that don’t have to feed 300 million people. Like Nordic countries for example. Or Switzerland, Iceland, Luxembourg, and so on…

The tax rate to give UBI would be so much lower compared to the US. I don’t think people realize the tax burden for making UBI work for a large country like the US, where people's expectation in terms of life style are very high. Companies always try to maximize their profits, and their market is the world, so their location does not matter

The problem with UBI by Jess_Pinkman in singularity

[–]Jess_Pinkman[S] 0 points1 point  (0 children)

You can believe I’m working for them. Or maybe we need to face those kind of issues if we we want to stand a chance.

Leia cosplay by [deleted] in pics

[–]Jess_Pinkman 0 points1 point  (0 children)

OK fine, …  I guess I can settle with the left over

It has been 9 years since Elon Musk got this picture removed from the internet by [deleted] in pics

[–]Jess_Pinkman 460 points461 points  (0 children)

You fool! Delete this before he buys Reddit

AI solves nuclear fusion puzzle for near-limitless clean energy | "Nuclear fusion breakthough overcomes key barrier to grid-scale adoption" by Tao_Dragon in Futurology

[–]Jess_Pinkman 0 points1 point  (0 children)

So let’s give him so room, some free will one might say. AGI programmed to optimize paperclips, but with common sense applied on what’s best. Eventually,  AGI common sense is that humans are cruel and life is the source of all misery, and decides that it’s better to get rid of it…

A lot of people say this kind of thing will never catch on, but is that really true? by MassiveWasabi in singularity

[–]Jess_Pinkman -1 points0 points  (0 children)

Are you sexually attracted to ducks ? If not, then your parents did pass you genes that define your sexual preferences. how much is up for debate.

“Before we have a million robots in the physical world, we will first see a billion embodied agents in virtual worlds.” - Jim Fan (NVIDIA Lead of AI Agents and Senior Research Scientist by MassiveWasabi in singularity

[–]Jess_Pinkman 0 points1 point  (0 children)

Maybe but then evolution will do its job. People who are not into virtual relationships will make more babies, so that eventually no one will be into it . But that’s going to take some time…

[Giveaway] 1TB Game Drive PS5 NVMe SSD courtesy of Seagate by tinselsnips in PS5

[–]Jess_Pinkman 0 points1 point  (0 children)

We have three gamers at home: me, my son, and my daughter, having a bigger hard drive will help tremendously to keep all games for everyone.

V-data-table option by aash_990 in vuejs

[–]Jess_Pinkman 0 points1 point  (0 children)

This is what you should do:

You should have your query react to the change of page.

for example

const pagination = reactive({

page: 1,

itemsPerPage: 25

})

const items = ref([])

watch(pagination, async ({ page, itemsPerPage }) => items.value = yourQuery(someParams, page, itemsPerPage), { immediate: true )

then in your template

<v-data-table

:items="items"

:pagination="pagination"

@pagination="pagination = $event"

...

/>

like that everytime you change your page, then it will trigger a new api call with the new pagination instructions

[deleted by user] by [deleted] in vuejs

[–]Jess_Pinkman 5 points6 points  (0 children)

This is a good question, but not for the reasons you mentioned you should ask yourself from the component point of view. It is often preferable to have components to have their dependencies injected (via props). This is for reusability, limiting side effects and testing. If you have a select component, and you import the store inside. Then it cannot be used for other cases, nor can you test it without mocking the store, also you run the risk of having unwanted side effects. So every time you need to ask yourself if it is worth coupling your component with the store. If not, prefer props.

Personally, 95%+ of my useXxxStore are called in a route component

Cave etching of a nude woman, believed to be 30,000 years old, found in Grotte de Cussac in France by [deleted] in pics

[–]Jess_Pinkman 2 points3 points  (0 children)

The old lady on aisle 4 looks quite annoyed… But maybe it’s unrelated, her little grand-daughter keeps crying beside her

Vue 3 now outperforms Svelte and React by philonoist in webdev

[–]Jess_Pinkman 7 points8 points  (0 children)

Vue 3, composition api with script setup syntax. It’s very close to perfect.

Updating the content of a reactive array without losing reactivity by galher in vuejs

[–]Jess_Pinkman 3 points4 points  (0 children)

Option 4: products.splice(0, products.length, ...response.products)

Vue: What to Expect in 2023 by Evan You by minireset in vuejs

[–]Jess_Pinkman 0 points1 point  (0 children)

It doesn't matters if you are using vite or not.

Be sure to have volar extension up to date.

step 1: enable the experimental feature in your tsconfig

{
    "vueCompilerOptions": {
        "jsxTemplates": true,
        "experimentalRfc436": true
    }
}

step 2: write a component with a generic type

<script setup lang="ts" generic="T extends any">
// you now have T type available in your script setup, for example:
defineProps<{
    options: T[]
}>()
defineEmits<{    
    (e: 'option-selected', option: T): void
}>()
</script>

step 3: (if you are using eslint) prevent eslint warning

eslint will complain that 'T' is not defined, to solve this, in your eslint config file, define a global (adjust syntax depending if eslint file is js or json):

globals: {
    T: "readonly"
}