neo

joined 4 years ago
 

Trivially simple script to automatically decrease the horizontal margins on the chat and video containers on hextube. By default both left and right margins are 15px per container. I set them to 1px for a 56px gain in chat and video viewing area. It's free real estate.

// ==UserScript==
// @name        New script hexbear.net
// @namespace   Violentmonkey Scripts
// @match       https://live.hexbear.net/c/movies*
// @grant       none
// @version     1.0
// @author      -
// @description 3/1/2024, 10:31:12 PM
// ==/UserScript==
(function() {
    'use strict';
      document.getElementById("chatwrap").style.paddingLeft="1px";
      document.getElementById("chatwrap").style.paddingRight="1px";
      document.getElementById("videowrap").style.paddingLeft="1px";
      document.getElementById("videowrap").style.paddingRight="1px";
})();
What is ViolentMonkey?

ViolentMonkey is an open source browser extension and small alternative to GreaseMonkey or TamperMonkey. It can run custom JavaScript in your browser for you automatically to modify page behavior. If you install the extension you can create a new script and copy and paste the one I wrote above. Always beware of installing untrusted scripts that you don't understand.

[–] [email protected] 4 points 5 months ago

Nautilus in general is my biggest gripe with Gnome. I despise it so much that I'm willing to abandon ship to KDE when Plasma 6 reaches my distro.

 

stalin-approval

[–] [email protected] 4 points 9 months ago (1 children)

I really like LXQt for VMs. It is lightweight and fast enough to provide a very snappy environment, even beating out something like XFCE. With LXQt I get the minimally viable desktop environment with a panel, notification handler, etc.

Though most recently I have been using XFCE specifically because its notification widget gives me more info in the preview.

[–] [email protected] 5 points 10 months ago (2 children)

Desperately waiting for Gnome Nautilus to not suck major ass (type ahead search, faster performance... hell, just make it like Dolphin, pretty much).

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

My setup sounds very similar to terminhell's. I have a server where the host is running Proxmox and I have a dedicated little Debian VM in it to run PiHole. It has been very reliable and stable in the four years since I've set this up.

To get ad-blocking on the go I set up Wireguard for myself and my gf so that we are always on my VPN when we are off my local WiFi. This has been functionally set and forget.

I haven't used AdGuard so I cannot comment on it, but I have not been found wanting in the slightest with PiHole.

I have 225k domains blocked with the combination of filter lists I use. I just use a few of the good ones. You can find good lists here. https://firebog.net/

[–] [email protected] 7 points 10 months ago (3 children)

I don't get it. You could have probably maintained a Debian Sarge install and upgraded it all the way through to Bookworm. I'm kind of surprised they don't provide an upgrade path in place for Raspian when Debian can manage it.

[–] [email protected] 3 points 10 months ago* (last edited 10 months ago) (1 children)

Yeah. I think I'll end up having to do platform-specific ifdefs with either pthreads or threads.h, so I guess I may as well use the much better established pthreads and get macOS support by default. In fact, I just now learned that even glibc didn't support C11 threads until 2018, according to this https://sourceware.org/bugzilla/show_bug.cgi?id=14092#c10

9
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]
 

Without realizing what I was getting myself into, I wrote some code using C11's threads.h (EDIT: every time I use the angle brackets < and > they just get eaten, even in the code snippet block.) I'm realizing after the fact that this is basically only supported on Linux (gcc/clang). This is my target platform, but I guess if I could cross compile to Windows or macOS that would be nice, too.

C's threads nominally appear to be a great feature. Finally, a standardized and straightforward interface to threads that would be cross-platform compatible. The reality appears to be anything but.

So is it worth just replacing that code with pthreads? Is there some near-term development on C threads that might make this worthwhile to use? I'm kind of surprised it hasn't really caught on some 12 years after the standard was introduced.

[–] [email protected] 2 points 11 months ago

I use Btrfs on my secondary drives as well, just for the checksumming capabilities. If there is data errors, I would like to know about it (even if I cannot do anything about it, because I do not have redundancy set up). I have my fstab set up so that it mounts with noatime,compress-force=zstd:1

Performance-wise, Btrfs has been improving a lot even in just the past few years. I think if I were using a very weak computer (like raspberry pi 1 strength) I would not use Btrfs or a CoW fs.

[–] [email protected] 4 points 11 months ago (1 children)

I use bottles to run games and works amazing too.

Am I dullard for just using Lutris? Like literally any time I want to install a program or game I will use Lutris' GUI to select the installer, select a prefix directory, and so on. Once it's done installing, then I switch the target EXE to the actual program I want. It isn't exactly convenient but it has been reliable. So I haven't tried any other approach.

[–] [email protected] 7 points 11 months ago

"DAMN! I ran the red light. But actually it wasn't my fault, the light switched to yellow just as I was checking my rear mirror, I had no time to react by the time I glanced forward again. Oh well. It's fine."

-- Maybe me.

[–] [email protected] 5 points 11 months ago

Depending on what I'm encoding, I am trying as much as possible to do AV1 + Opus.

x264 kind of stands on its own. It is a legendary encoder with excellent encode times, but h264 is an ancient codec and it really shows if you don't give it a bitrate that's, frankly, too high. I use it most frequently these days for sharing short, low res clips of videos on Discord or through iMessage or something.

So that leaves us with with our modern choices: hevc, vp9, and AV1.
Off the bat I would say VP9 is irrelevant just because it's way too slow to encode, and is effectively superseded by AV1. To whatever extent possible I try to use AV1, reencode into AV1, download AV1, and so forth. When done correctly it will shrink files even smaller than hevc can, it can encode relatively quickly with SVT-AV1 and is patent unencumbered so it's actually supported in web browsers. If the video is an AV1 .webm it will play in Firefox. If I need subtitles, I can put them in a .mkv.

HEVC (with x265) is a pretty strong choice. I will not avoid downloading torrents in this format but I will avoid encoding into it. It maybe has better compatibility in certain cases, like if you have a "smart" TV (ugh) that can natively decode it. In which case that might override any decision you will make: you just want the best compatibility with your existing hardware.

As for audio, that's Opus. Every time. It absolutely whips. For stereo audio I can do Opus at 96 or 112kbps and it is transparent. Another source with more going on (maybe loud explosions and effects and all that) could possibly benefit from 128. It's great.

The final thing to mention about encoding is no matter which codec you use you will have to learn a bit about how to use it. You can one and done the encoders with default choices, but at minimum you do need to factor in what happens when you do things like change preset speeds. From there you can consider things like what about changing the keyframe interval (for shorter vids I will do more frequent keyframes to make seeking tolerable. For something like a full movie a keyframe every 10 seconds is probably fine. But what about scene detection? What about bit depth?). Potentially much to consider.

[–] [email protected] 3 points 11 months ago

Many times that's true, too. One of the saddest things in torrents is seeing two torrents with identical contents that were created separately, or one just recreated so someone can add their website to it or something, thereby dividing the pool of possible peers.

I think one of the most interesting ideas in BitTorrent v2 is that hash trees are formed per-file, not per-torrent. So two torrents with identical contents could, if I understand this right, basically be considered one and the same. It would be cool to see more wide adoption and promotion of BT v2 https://blog.libtorrent.org/2020/09/bittorrent-v2/

[–] [email protected] 8 points 11 months ago

So by chance I was in university and invited into what by my roommate. I literally bought more internet bandwidth from my uni to handle an early freeleech event where I got to mega game the system (By accident! I didn't really know what I was doing. And good thing it was a private tracker because I was on a bare connection. I didn't know what A VPN was at that time, much less how to hide my identity online).

I thought my ratio was totally unfair so I never really abused it, but that's kinda the problem. Only by chance I had like a 500 ratio, whereas someone like you had no chance ever to catch up to the earlier established players. Even though I wasn't a victim of the ratio, the concept of your story is just another reason why I dislike private trackers.

That said, the best thing about what.cd was just how well organized and categorized it was. Library of Alexandria style shit, now lost to us. Plus the forums with some real music-heads were great, too, and you could really expand your music horizons by talking with those people. I liked that it was NOT a Reddit-style forum, so when something new dropped everyone had a say. Upvotes didn't influence that kind of conversation. At any rate, I stopped pirating music so much maybe beginning in 2013 or 2014, but every time I look now the uploads are either 320kbps (overkill bitrate, garbage ancient codec) or FLAC (nice for archiving, but not what I want). So I end up DLing FLACs and then converting them into 128kbps Opus. It works, but my music horizons aren't broadened without that what community. I guess all I mean is I don't miss the private nature of what, but I do miss the community.

 

AntiFascist Linux, folks. Get your fresh AntiFascist Linux right here! gold-antifa

Primer for those who don't know what AntiX Linux is: It's a Debian derivative without Systemd. There are sysVinit and Runit versions available. AntiX can be used on newer computers, obviously, with the new release and up-to-date Linux kernel. But it is probably one of the best choices for extremely low spec hardware today, like if you have a computer you're running from the mid 2000s and insist on keeping it going.

Its default desktop is run with IceWM. It will leave something to be desired, it's not the prettiest thing, but it is an extremely lean base system. Your CPU and RAM will all get blown up the moment you launch a modern web browser, of course. shrug-outta-hecks

1
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Hi. If you can buy the podcast and wish to listen, please send Brendan and Noah some dollars. Support indie creators.

If for whatever reason you cannot, I have reencoded all of the episodes into 72kbps Opus for substantial space savings with a practically imperceptible quality difference, and cleaned up the metadata so the files look good in a good audio player. These files will work in any decent audio/podcast player (there are many crappy ones).

I'll delete this post in the near future.

https://mega.nz/folder/dJRFhYbA#kyePGqDouWOo1QdCxZKS8w

 

IP is a joke. Fuck copyright. Fuck patents. Nintendo is out here patenting physics.

"The movement of movable dynamic objects placed in the virtual space is controlled by physics calculations, and the movement of the player’s character is controlled by user input. When the player’s character and a dynamic object come in contact in the downward direction relative to the character (in other words, when the character is on top of an object), the movement of the dynamic object is added to the movement of the player’s character.”

These aren't even inventions. They are just obvious models of the real world that would occur to anyone who is trying to replicate physical interactions in a virtual world. https://en.wikipedia.org/wiki/Classical_mechanics

These are Japanese patents but I also have no fucking doubt a lot of this stuff has very obvious prior art even in gaming, to say nothing of other physics-based software packages.

view more: next ›