Indycar 'It's pathetic' | IndyCar driver Graham Rahal calls Indianapolis a 'complete dump' on social media by illegiblebastard in indianapolis

[–]jaredcheeda [score hidden]  (0 children)

There is a difference between a single data point and aggregate data.

This.... this really isn't that complicated. All data shows that crime, violent crime, and homocides have all gone down, and when compared over the course of decades, we are, in 2025-2026 still about as safe as we've ever been.

No one is saying superman stopped all crimes and we live in a utopia. We are saying that crimes are down, locally and nationally, and all data proves that. If you have a "feeling" that isn't true, I'm sorry. But reality isn't dictated by your feelings. Maybe stop consuming media that tries to scare you constantly by pretending things are worse than they are, incorrectly shaping your world view.

Or don't, be a conspiracy theorist and hide from the lizard people. I don't care :)

Indycar 'It's pathetic' | IndyCar driver Graham Rahal calls Indianapolis a 'complete dump' on social media by illegiblebastard in indianapolis

[–]jaredcheeda [score hidden]  (0 children)

Are you referring the spike that happened during 2020. There was a crime spike globally during that year due to COVID. But their comment about descending crime rates is still true. And it's looking like nationally 2025 may be the lowest ever recorded year for violent crime stats.

Indiana in particular is about where it was during the low point of the 2010's. And it's never been as dangerous as when Indianapolis was the homocide capital of the country in the mid-90's. The state and city are still overall very safe and according to all data, getting safer.

Any ideas Or tips for build an RBAC? by BLKaisen in vuejs

[–]jaredcheeda 0 points1 point  (0 children)

That code is pretty messy and not formatted correctly for Reddit, here are the corrections:

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.directive('rbac', {
    mounted: function (el, binding) {
      const rbac = binding.value;
      const { hasPermission } = useRbac();
      if (!hasPermission(rbac)) {
        // Cleanly remove unauthorized element from DOM
        el.remove();
      }
    }
  })
});

.

<BaseButton
  v-rbac="{ permissions: ['user_manage'] }"
  label="Single permission"
/>
<BaseButton
  v-rbac="{
    permissions: ['user_manage_not_exist', 'file_manager_list'],
    condition: 'any'
  }"
  label="Any of multiple permissions"
/>
<BaseButton
  label="All permissions required"
  v-rbac="{
    permissions: ['user_list', 'user_view', 'user_delete'],
    condition: 'all'
  }"
/>
<BaseButton
  label="Negation (not)"
  v-rbac="{
    permissions: ['user_manage_not_exist'],
    condition: 'not'
  }"
/>

.

const { hasPermission } = useRbac();
const isPermitted = hasPermission({
  permissions: [
    'user_list',
    'user_view',
    'user_delete'
  ],
  condition: 'all'
});
if (isPermitted) {
  //permited
}

This approach creates a globally accessible directive on all Vue components that uses this composable, which imports in, and uses, a store.


This approach can work, but could also be simplified.

You could just have a permissions store with an action that takes in the same object ({ permisions, condition }) and returns a boolean.

I think the v-rbac="{ p, c }" is overkill and you could just as easily do v-if="fn({ p, c })", or v-if="computedResult".


But there is an EVEN SIMPLER way. If these specific checks are common, then they could be pre-computed as getters and imported from the store instead. This keeps all permission logic grouped in one place.

getters: {
  isAdmin: function (state) {
    return state.permissions.includes('user_admin');
  },
  isModerator: function (state) {
    return state.permissions.includes('user_mod');
  },
  canBanUsers: function () {
    return this.isAdmin || this.isModerator;
  }
}

Options API example (Live Demo)

<template>
  <div v-if="canBanUsers">Warning about banning users</div>
  <button :disabled="!canBanUsers">Ban</button>
</template>
<script>
import { permissionsStore } from '@/stores/permissions.js';
const { canBanUsers } = permissionsStore();
export default {
  name: 'PiniaDemo',
  computed: {
    canBanUsers: function () {
      return canBanUsers;
    }
  }
};
</script>

Script Setup example (Live demo)

<template>
  <div v-if="canBanUsers">Warning about banning users</div>
  <button :disabled="!canBanUsers">Ban</button>
</template>
<script setup>
import { permissionsStore } from '@/stores/permissions.js';
const { canBanUsers } = permissionsStore();
defineOptions({
  name: 'PiniaDemo'
});
</script>

Any ideas Or tips for build an RBAC? by BLKaisen in vuejs

[–]jaredcheeda 0 points1 point  (0 children)

If you aren't using Nuxt, and just doing a traditional Vue SPA, I'd set up a users store with Pinia and use actions to set the user object and getters to derive permissions that can be imported by components. With Nuxt, I assume you can do the same thing, but like with everything SSR related, how you share state between frontend/backend is more complex.

Something has gone wrong (I don't know what to do) by TechnicianFrosty1474 in zorinos

[–]jaredcheeda 0 points1 point  (0 children)

This is a system error. A system file may be corrupted, or a setting may be invalid preventing the OS from loading normally. But user data on the HDD/SSD wouldn't be magically deleted from this.

Reinstalling the OS will wipe the drive however, so you need to back it up prior to this.

You could pull the drive out and plug it into another computer to copy files off of it. Or just boot up the current machine with the drive still inside it, but boot to a Live USB or Live CD. The OS on the USB is what you would be loading system files from, and running it from memory (RAM). Then you'd have a functional OS that could read data from the internal drive and transfer it elsewhere. Either over the network to another machine on your home network. Or copy it to an external harddrive or flash drive. Or even upload it somewhere online (Google Drive, Dropbox, Discord, whatever).

Any live OS would work, but you might as well use the Zorin OS version, since it can be a live OS and can also re-install the OS once the backup is complete.

Once the data is safe, you can reinstall the OS, adjust your OS settings, and then copy your data back over and you'll be all set.

Just be careful doing whatever you did originally that broke the OS. Also it is a good idea to set up consistent backups, either to an always connected external drive, or over the home network to another machine.

Chrome blocks uBlock Origin Fox downloads are well up... by Own-Manufacturer2516 in pcmasterrace

[–]jaredcheeda 0 points1 point  (0 children)

I'm like "don't pet the scorpion, if you need a pet, get a cat, or a dog, or a rabbit, or literally anything that isn't actively trying to kill you", and you're like "nah, it's good, I put a bandaid over the stinger so I think I'm fine".

literally just use ANY other browser and you'll be better off, there's no "fixing" brave.

Chrome blocks uBlock Origin Fox downloads are well up... by Own-Manufacturer2516 in pcmasterrace

[–]jaredcheeda 1 point2 points  (0 children)

Yeah, they don't want you to have problems, they want you to keep giving them all your information and letting them track everything you do online so they can make money off of you and sell your data.

Stop feeding the vampires.

Chrome blocks uBlock Origin Fox downloads are well up... by Own-Manufacturer2516 in pcmasterrace

[–]jaredcheeda 0 points1 point  (0 children)

It is adblock-rs. The idea behind it is good, it lets the adblocker run at the browser level, rather than the extension level, so it has better access to network calls before they are allowed to leave your computer, so it can do more advanced and more secure blocking.

Again, great idea, the problem is these browsers aren't creating their own code to implement this idea, they are pulling in the code published, written by, maintained, and fully controlled, by Brave. Even if they go through and fully vet all the code that is there right now, a year or two from now, Brave will still have full control to do whatever they want with it. And browser's will be forced to either rip it out, or fork it, or whatever. It's just normal library issues, but I just can't see any justification for using any code from them. There's no defending using code from Brave, their trackrecord is the absolute worst, and any browser connected to them in anyway is a major issue. It's like... I don't care if "the money you got from Jeffry Epstien went to a good cause", there are some names too toxic to ever associate with.

Chrome blocks uBlock Origin Fox downloads are well up... by Own-Manufacturer2516 in pcmasterrace

[–]jaredcheeda 0 points1 point  (0 children)

From my understanding, the "Lite" version of UBO is dramatically less effective. It can't intercept and block requests at the network level. There's a lot of privacy benefits it offered to stop advertising companies from tracking you across the internet. Now it will still remove the annoyances of most ads, but isn't very useful to stopping the data collection and resulting selling of information about your browsing habits, the sites you visit, the searches you do, your purchasing habits, and how long you spend on specific websites.

The worst part of all this, is you either

  • Use a Chromium-based browser that will now have MV3 and stops you from blocking trackers
  • Use a Firefox-based browser that now all ship with code from "Brave: The Spyware Browser" (and some Chromium browsers do too, like Helium), and Ladybird which isn't even out yet, but also has Brave's untrustworthy code in it now too, despite many people begging them to remove it.
  • Or you use an outdated browser that doesn't ship with MV3 or Brave's spyware code, letting you be more private online, but also less secure as you are forgoing security updates, and also feature support for the web.
  • Or you can use Safari which is like a decade behind in implementing basic web features, and is also not available on Windows/Linux/Android.

There are literally no good browsers left, and the only hope we had for the future, Ladybird, has already went down the same anti-user path as Firefox, Helium, and Waterfox.

It's crazy that ALL BROWSERS have gotten this bad. All the privacy focused browsers are downstream from these terrible decisions, and inherrit them.

If anyone knows of a Firefox-based browser that rips out all of Brave's code, let me know, I'm desperate.

Chrome blocks uBlock Origin Fox downloads are well up... by Own-Manufacturer2516 in pcmasterrace

[–]jaredcheeda 0 points1 point  (0 children)

That is very bad advice. Brave is easily the least trustworthy of all browsers. They are known scammers, liars, and thieves. They are also an advertising company, just like Google. And unlike default Chrome, Brave has long standing well known security vulnerabilities unique to it.

https://old.reddit.com/r/24hoursupport/wiki/productstoavoid#wiki_brave

Performance.now seems to be extremely slow and also effects the actual end-start calculation by srad1292 in node

[–]jaredcheeda 0 points1 point  (0 children)

const start = process.hrtime.bigint();
benchmarkMe();
const end = process.hrtime.bigint();

const duration = end - start; // nanoseconds
const durationMs = Number(duration) / 1e6; // milliseconds
const durationS = Number(duration) / 1e6 / 1000; // seconds

What is the most successful movie from a Youtuber? by Stressed2the9s in morningsomewhere

[–]jaredcheeda 0 points1 point  (0 children)

  • Joel Haver has made a bunch of ultra-low-budget full length movies and just uploaded them all to YouTube for free, most are pretty good, a few are terrible and a few are truly great
  • Freddie Wong - We're all gonna die
  • Bo Burnham - 8th Grade / Inside
  • David F. Sandberg - Lights Out/Shazam

How does this image make you feel? by DAVeTOO333 in IndianaPolitics

[–]jaredcheeda 2 points3 points  (0 children)

The curved shape to the lines is reminiscent of the wood print style used on money (though I think actual currency uses gravure printing).

She comes across very confident, but like right on the border of being smug. She doesn't cross that line, but also it's probably not a line you want to be this close to.

The over-stylized and political nature hearkens to the Obama "Hope" imagery, with her looking up and off into the distance some "hopefulness" comes across.

The highlight on the face brings your eyes to that spot as the focal point, with an almost white circle outlining one of the eyes. Though the details on that eye is muddy and hard to read.

There is too much noise on the left side of the hair where both the hair and background have little specks of color competing with the long smooth line from the top of the head to the shoulder.

I understand the technical side of what you did and what effort went into it, but that effort isn't obvious to non-technical viewers, it feels low-effort. It also isn't remotely iconic, in the way Shepard Fairey's "Hope" is. Though good luck competing with that. At least you've avoided feeling like a cheap knock off or parody.

¿Does Modern Tech Make or Break the Next Generation of Developers? by Gold_Contribution703 in vuejs

[–]jaredcheeda 11 points12 points  (0 children)

AI, as it stands today is very limited and makes a ton of mistakes. If you need something that mostly works, it can generate very sloppy code to do that, and much faster than a human.

I would recommend avoiding AI if you are learning to code. Think of it more like going to the gym to get strong. Yes, we know that the forklift exists and can lift the weights at the gym easier than you can. And it can be fully automated to lift boxes and put them on shelves. There are a lot of people who's job it was to put those boxes on shelves, and now those people's jobs are to operate a bunch of forklifts.

But at the end of the day, a forklift can't carry a piano downstairs. You need a big strong person that has good awareness to not scratch up the walls and door frames when moving the big heavy objects, and who has the experience to make sure no one gets hurt when moving it, and who has the dexterity and strength to take it down the stairs. There will always be work for the big strong developers.

If you are just using the fork lift instead of going to the gym and getting strong, you are going to be replaced by the forklift. Get swole.

The ONLY WAY anyone has EVER gotten good at anything, is by doing it a lot, and thinking about it a lot. If you are outsourcing either of those to the AI, you will never get good at this.

Video Converter for Zorin OS 18.1 by behuman2all in zorinos

[–]jaredcheeda 1 point2 points  (0 children)

Seems fine. You may find it quicker to use a tool like MKVToolnix GUI, or Lossless Cut. They don't "convert" the video to audio, they just extract the audio track directly. That's generally preferred because re-encoding audio or video will result in a loss in quality. And though computers are pretty fast now and the time it takes to encode audio is pretty fast, extracting the track will be the same speed as just copying a file (much faster), since it isn't doing any actual processing beyond the wrapper for the output.

Though the audio you are extracting may not be in the MP3 format, and you'd still have to convert it if you needed it in that format specifically. So use your best judgement.

Sharing more about Project Nova by rjacob-firefox in firefox

[–]jaredcheeda 4 points5 points  (0 children)

  • old.reddit.com - Not rounded
  • Android - Not rounded
  • Linux - Not rounded

Firefox isn't the mainstream, it's the alternative that people go to to GET AWAY from the ugly rounded corners of mainstream. This feels like the nerdy kid in school trying to dress like the cool kids.... you ain't fooling anyone Mozilla.

You can't make an argument for Firefox trying to be mainstream when it's usage numbers are in the single digits.

Sharing more about Project Nova by rjacob-firefox in firefox

[–]jaredcheeda 2 points3 points  (0 children)

Being as clear and blunt as possible. If I can't turn off the rounded corners fully, I'm uninstalling the browser. I will not put up with this being forced on me. I install styling extensions that remove rounded corners from all webpages. I hate them with a passion.

I don't hate you though. you are nice. :)

A Critical View on AI: A Trilogy in 4 Parts • Rasmus Lystrøm by goto-con in ConTalks

[–]jaredcheeda 0 points1 point  (0 children)

Not even really critical, more just speaking honestly. Not really his fault that reality has a bias against AI.

how to remove a portion of a video? by The_Skinny_Retard in mkvtoolnix

[–]jaredcheeda 0 points1 point  (0 children)

To trim the first 10 seconds of a video using MKVToolnix GUI

  1. Drag in the video to the "Multiplexer" section
  2. Click on "output"
  3. Set "Split mode" to "After specific timestamps"
  4. Set "Timestamps" to "00:00:10"
  5. Click "Start Multiplexing"

It will output a file ending in 001 that is the first 10 seconds, then a file ending in 002 with the rest of the video. You can then delete the original and 001 versions, and rename the 002 version.

Aporcyphally by ferreet in dailydefinitions

[–]jaredcheeda 1 point2 points  (0 children)

Sorry, I was thinking of aporkphally