• 0 Posts
  • 126 Comments
Joined 1 year ago
cake
Cake day: November 7th, 2023

help-circle



  • An interrupt is an input that can be triggered to interrupt normal execution. It is used for e. g. hardware devices to signal the processor something has happened that requires timely processing, so that real-time behavior can be achieved (for variable definitions of real-time). Interrupts can also be triggered by software, and this explanation is a gross oversimplification, but that information is what is most likely relevant and interesting for your case at this point.

    The commands you posted will sort the interrupts and output the one with the highest count (via head -1), thereby determining the interrupt that gets triggered the most. It will then disable that interrupt via the user-space interface to the ACPI interrupts.

    One of the goals of ACPI is to provide a kind of general hardware abstraction without knowing the particular details about each and every hardware device. This is facilitated by offering (among other things), general purpose interrupts - GPEs. One of these GPEs is being triggered a lot, and the processing of that interrupt is what causes your CPU spikes.

    The changes you made will not persist after a reboot.

    Since this is handled by kworker, you could try and investigate further via the workqueue tools: https://github.com/torvalds/linux/tree/master/tools/workqueue

    In general, Linux will detect if excessive GPEs are generated (look for the term “GPE storm” in your kernel log) and stop handling the interrupts by switching to polling. If that happens, or if the interrupts are manually disabled, the system might not react to certain events in a timely manner. What that means for each particular case depends on what the interrupts are being responsible for - hard to tell without additional details.


  • It’s not like Bluetooth started demanding location permissions, the conceptual model of the permission was revised: having access Bluetooth means an app could determine your location via a form of lateration.

    In earlier versions of smartphone operating systems, this was not transparent to users lacking the technical background, so Bluetooth also requiring location access is actually an attempt at making users aware of that. I’m not an iOS developer, so I can’t comment on iPhones, but on Android versions prior to 11, having access to Bluetooth meant an app would be able to determine your location.

    Today, you can require the permission ACCESS_FINE_LOCATION, which expresses that your app might use Bluetooth to obtain location information on Android. Also, if you’re just scanning for nearby devices to connect your app to, but don’t want users to be confused why your smart fridge app needs to know your precise location, you can declare a permission flag (neverForLocation) and Android will strip beacon information from the scan results, better asserting your intentions.

    So, overall: no, there is nothing nefarious going on, it was always possible to determine your location via Bluetooth, and the update to the permission model was an honest improvement that actually benefits you as user.

    Now, there are still plenty of shady apps around, and apps that are poorly written - don’t use those.



  • scrion@lemmy.worldtoScience Memes@mander.xyzHoney
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    17 days ago

    honey bees are bad for pollinators

    Hm? What do you mean?

    From this paper:

    A. mellifera appears to be the most important, single species of pollinator across the natural systems studied, owing to its wide distribution, generalist foraging behaviour and competence as a pollinator.

    This is a genuine question btw.








  • Side note: please don’t abuse the word “toxic” until it becomes absolutely meaningless. Let’s keep that to a more fitting context, having a

    I was expressing an obviously personal opinion about the language itself, which is objectively a dull, barren wasteland that sucks out your soul while you walk it. That is precisely the reason why it’s so widespread and loved by business entities and managers - there is no excitement, no surprises, just an everlasting monotony of keys clicking produced by a horde of clones wearing button-down shirts while sitting in absolute identical cubicles, creating yet another instance of FactoryProducer. It’s very easy to plan and schedule for, while at the same time being unnecessarily verbose and mildly unproductive (compared to other languages).

    Look, the JVM is fine, just pick another language. There is plenty of work doing Kotlin. But yes, if you’re doing this only for the money, go ahead. I’ve always been unable to separate my job fromy personal life and my other interests, I couldn’t imagine being cursed by Java again.

    If you can sit somewhere for 8 to 10 hours each day, doing something that isn’t fun and separate yourself from it, not going insane, all the power to you. I also get that not everyone has the luxury of picking their favorite toy and making it their job, but I firmly believe there are options that are not Java.

    Now, if you’re one of the rare types that actually enjoys Java, meet me in the closest Denny’s parking lot, I need your cranial measurements.

    Please note: this post contains hyperbole and humor. I don’t hate any of you, I just hate Java




  • My personal recommendation:

    • Pick up Python, it’s easy to learn and highly productive. If you also learn fastAPI, you can benefit from highly validated, declarative models to build REST APIs in the backend, well fast. It will yield quick results, you won’t become demotivated and you can pick up a paid project soon.

    • Pick up Rust. It’s “in” right now and I get requests from marketing people that know nothing about programming, asking if their project could be implemented in Rust

    • Go with memorizing the shell commands first, try to understand git later. Get productive, try to get where you were with e. g. svn or cvs. If you are comfortable, look at something in depth if you have a problem that you can’t solve with the knowledge you have.

    • Fuck Java, seriously.

    • You have commercial interests, so it is probably wise to look into becoming a fullstack dev to maximize the kind of projects you can do. Look into React, vue.js, svelte. React is probably still the most widely used framework, you’ll quickly do a project with vue.js and svelte is a super interesting look into things to come.



  • scrion@lemmy.worldtoScience Memes@mander.xyzAnimals that use Drugs
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    2 months ago

    Sure. In my opinion, however, the overall context of the image does imply the jaguar enjoys similar effects to those clearly requiring the presence of DMT, as that is what is most people commonly associate with ayahuasca.

    It’s a bit of a “look at all those animals getting high, this jaguar is even talking to machine elves in the 19th dimension” kinda thing, where - if I remember correctly - they actually consume the leaves for digestive purposes.

    Again, the leaves do have an effect, e. g. they apparently act as an SSRI (that’s how common antidepressants work) and we can’t be absolutely sure about their effect on cats (catnip certainly has some effect on cats we don’t readily enjoy), so I can’t dismiss the notion of jaguars seeking them out for that reason as well.


  • scrion@lemmy.worldtoScience Memes@mander.xyzAnimals that use Drugs
    link
    fedilink
    English
    arrow-up
    57
    ·
    edit-2
    2 months ago

    Jaguars actually eat the leaves of b. capii, which acts as a MAOI in the Ayahuasca brew.

    While there is some discussion that the harmala alkaloids in b. capii might also be slightly psychoactive in high doses, the actual main compound in Ayahuasca is DMT, which is certainly very psychoactive, but not bioavailable when consumed orally without a MAOI. Unless the jaguars have figured out how to combine the two and/or brew ayahuasca, I strongly doubt that’s their intention and that they’d get comparable effects.

    I think the idea stems from the BBC show Weird Nature showing a jaguar eating yage leaves in episode 6, “Peculiar Potions”.

    I’m not really sold on how well that content was researched.