None
None
19
:marseygiveup:
None
19
:marseychonkerindignant2: :!marseyjourno:
None
None
None
17
I have been feeling the siren call of Linux recently, convince me **not** to switch from Windows

I usually don't game on this laptop, and even when I do, it seems like the games I am interested in are available on there. The only thing I can think of is that I have multiple tabs open in my browser that I plan to one day read. I would lose them if I did it.

:#marseyunresponsive:

None

orange sight: https://news.ycombinator.com/item?id=40237745

Completely free (video lectures and textbook) graduate level course on crypto

None

Kind of an neurodivergent rant so feel free to ignore, but I really hate the cute twinks on /g/ and here on rdrama that plaster the language of God onto their jap paraphilia.

Exhibit A (see the attached picture). An anime girl holding the Ritchie Kernigan C book. This is a beginner-tier book that describes how if statements and for loops work. At the time, it was ground-breaking because programming was so much more primitive. Nowadays, it's completely unimpressive. Not only is it very basic, but it is flat out wrong in some places, since most people use C99 or C11, not Ansi C nowadays.

So what would be a good C book to photoshop onto all our favorite cartoons for undersocialized men? There isn't one. Even something "official" like the ISO C99 or C11 standard diverges from reality significantly. Books like "modern C" are written by hucksters who write C at the level of an undergraduate who just finished their first C programming course. The way to tell if someone is a serious C programmer or not is if they use libc stuff like malloc or not. If they do, it means they don't really care about the underlying hardware and operating system primitives. Ironically, the x86_64 reference manual Volume 1 is probably a better source for learning how to write good C code than any C book that currently exists.

None

Alright so I have a cheap laptop that I loaded debian / plasma onto.

Keyboard cover is wonky and sometimes when I hold left or right arrow it self-inserts a '4', which is fixed with turning off the num pad.

So any time I switch to another window, any time I try to upload something and the popup comes up for me to select a file, the left or up arrow is automatically pressed. Right now it's doing it with the up arrow.

You'd think "you just said your keyboard is messed up why is this shocking" well to that I say here's the weird part.

It doesn't happen randomly, it happens specifically when I change to another window, or a window is popped up like when saving or uploading a file. As soon as I press any arrow key it stops.

For example I'm on my browser now.. if I click to groomercord it will try to edit my last message (up arrow is held), and will keep scrolling up unless I press a random arrow key. When I click back to the browser where I'm writing this post, it begins to scroll up (up arrow held) and again I have to press a random arrow key to stop it.

WTF is going on? Why is me clicking another window triggering an arrow key?!!?! It won't ever happen randomly either. It will never do it again until the window is changed.

To add a weird cherry on top, if I click my terminal (Konsole) it won't scroll up my command history. It won't trigger this weird shit, but as soon as I click to another window it'll trigger the up arrow. First half of today was the left arrow, abot an hr ago it started doing the up arrow.

Pls help solve.

None
15
Anime was a mistake

This is a recording from an official conference/workshop/whatever for xorg- something that is used by most Linux distributions for their desktop environment, so it's not some small or unknown project by any means.

I won't mention anything else, just skip around the video and tell me if you notice anything

None
Reported by:
15
tampermonkey script to make make old.reddit more tolerable
  • For large screens, centres text so it's not way over on the left (some subs have custom html styles, hence the two sections)
  • Expands images automatically
  • Hides the image hiphopcirclejerk stuck over their sub (thx j cole drama)
// ==UserScript==
// @name         old_reddit_improver
// @namespace    http://tampermonkey.net/
// @version      2024-01-26
// @description  Make old.reddit.com more usable
// @author       You
// @match        https://old.reddit.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    console.log('---- tampermonkey initiated ----');

    // Remove hhcj pic.
    let earl = document.querySelector('a[href="#EARL"]');
    if (earl) {
        earl.style.display = 'none';
    }

    // Centre page body.
    let body1 = document.querySelector('div[id="siteTable"]');
    if (body1) {
        body1.style = 'width: 70%; margin: auto;';
        console.log('body1:', body1);
    }
    let body2 = document.querySelector('div[class="commentarea"]');
    if (body2) {
        body2.style = 'width: 70%; margin: auto;';
        console.log('body2:', body2);
    }
    console.log('ran centre aligner');

    // Expand images.
    let xpath = "//a[text()='<image>']";
    let iter = document.evaluate(xpath, document, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);
    let array = [];
    let text_elem = iter.iterateNext();
    while (text_elem) {
        array.push(text_elem);
        text_elem = iter.iterateNext();
    }
    array.forEach(i => {
        let img_tag = new Image();
        img_tag.src = i.href;
        img_tag.style.maxWidth = '500px';
        i.parentElement.appendChild(img_tag);
        i.parentElement.removeChild(i);
    })
    console.log('---- tampermonkey complete ----');
})();
None
None
None
14
Weakest linux user:

None
14
Does anyone here actually work in software?

Any tips on getting a job right now?

Could you hire me? :marseybegging:

None

https://github.com/Vendicated/Vencord

Obviously, Vencord has stopped uploading their extension to addons.mozilla.org due to the long-waiting review, and they also decided not to go self-hosting. But I need to use that, therefore I decided to try build the addon.

Some packages are required to be installed in advance:

NodeJS and npmpnpm: npm install -g pnpmweb-ext: npm i -g web-ext

Here's what I've done:

Clone the repo with git clone > https://github.com/Vendicated/Vencord (let's call the directory of your clone $ROOT, which should be ./Vencord relative to your current directory.)cd $ROOT (i.e. cd ./Vencord)pnpm i && pnpm run buildWebcd $ROOT/distChange the id to vencord-firefox@sth in $ROOT/dist/firefox-unpacked/manifest.json. (Sorry for my terrible and thoughtless naming flavour 😓.) If you ever need to do it yourself, make sure your id is unique.Sign the addon with web-ext sign -s $ROOT/dist/firefox-unpacked --api-key=... --api-secret=.... The fields left empty can be acquired from here (you need to have a Mozilla account).In $ROOT/dist/web-ext-artifacts, the .xpi file is the extension.In Firefox, open about:addons and drag-and-drop the file to install.

You can download the vencord-sth.xpi file and simply do the 8th step above. The current version is 1.7.6.

None
None
Reported by:
11
About to try out OpenSUSE for the first time, anything I should know?

:#marseynotes:

None
None
None

I've been reading some Effective Altruist writings and learned that even if AI had moral goals it could be very dangerous :marseyscared:.

Like imagine an AI whos goal was to maximize the number of mosquito nets given to Africa, sounds great right? :marseyhappy2:

NO! Because the AI would be willing to do anything in order to achieve it's goals it might do something like commit one of the largest acts of fraud in history to get the money for more mosquito nets! :marseyshock:

Hmm... what does this remind me of? :marseylaugh:

None

https://github.com/redlib-org/redlib

None
Link copied to clipboard
Action successful!
Error, please refresh the page and try again.