yay -Rd hyprwayland-scanner # (or -Rdd but danger ahead)
yay -S --asdeps hyprwayland-scanner-git
yay -Rd hyprwayland-scanner # (or -Rdd but danger ahead)
yay -S --asdeps hyprwayland-scanner-git
Great wizard of the bitrates, grant me your wisdom…
I can’t wrap my head around bitrate - if I have a full hd monitor and the media is in full hd then how is it that the rate of bits can make so much difference?
If each frame in the media contains the exact 1920 × 1080 pixels beamed into their respective positions in the display then how can there be a difference, does it have to do something with compression?
MAS is open-source meaning anyone with the skill can verify what the powershell code does. This does not mean it’s absolutely safe and trustworthy but does give it a big plus.
(the way I understand it is that) It also uses a loophole in the free upgrades from older win versions to 10/11 to get you a valid license from Windoze servers directly - it is not a keygen or cracker.
So, I will vouch for MASgrave but care has to be taken to download it from the official site/repository.
In what part exactly?
The example is not perfect I can see that myself. If I read into it too much there could be an overlap with concurrency, e.g. the (IO) tasks awaited & delegated to the OS could be considered a form of concurrency but other then that I do think it’s close to describing how async usually works.
So, the word here is parallelism. It’s not something specific to python, asyncio
in python is just the implementation of asynchronous execution allowing for parallelism.
Imagine a pizza restaurant that has one cook. This is your typical non-async, non-threading python script - single-threaded.
The cook checks for new orders, pickups the first one and starts making the pizza one instruction at the time - fetching the dough, waiting for the ham slicer to finish slicing, … eventually putting the unbaked pizza into oven and sitting there waiting for the pizza to bake.
The cook is rather inefficient here, instead of waiting for the ham slicer and oven to finish it’s job he could be picking up new orders, starting new pizzas and fetching/making other different ingredients.
This is where asynchronicity comes in as a solution, the cook is your single-thread and the machines would be mechanisms that have to be started but don’t have to be waited on - these are usually various sockets, file buffers (notice these are what your OS can handle for you on the side, asyncIO ).
So, the cook configures the ham slicer (puts a block of ham in) and starts it - but does not wait for each ham slice to fall out and put it on the pizza. Instead he picks up a new order and goes through the motions until the ham slicer is done (or until he requires the slicer to cut different ingredient, in this case he would have to wait for the ham task to finish first, put …cheese there and switch to finishing the first order with ham).
With proper asynchronicity your cook can now handle a lot more pizza orders, simply because his time is not spent so much on waiting.
Making a single pizza is not faster but in-total the cook can handle making more of them in the same time, this is the important bit.
Coming back to why a async REPL is useful comes simply to how python implements async - with special (“colored”) functions:
async def prepare_and_bake(pizza):
await oven.is_empty() # await - a context switch can occur and python will check if other asynchronous tasks can be continued/finalized
# so instead of blocking here, waiting for the oven to be empty the cook looks for other tasks to be done
await oven.bake(pizza)
...
The function prepare_and_bake()
is asynchronous function (async def
) which makes it special, I would have to dive into Event Loops here to fully explain why async REPL is useful but in short, you can’t call async functions directly to execute them - you have to schedule the func.
Async REPL is here to help with that, allowing you to do await prepare_and_bake()
directly, in the REPL.
And to give you an example where async does not help, you can’t speed up cutting up onions with a knife, or grating cheese.
Now, if every ordered pizza required a lot of cheese you might want to employ a secondary cook to preemptively do these tasks (and “buffer” the processed ingredients in a bowl so that your primary cook does not have to always wait for the other cook to start and finish).
This is called concurrency, multiple tasks that require direct work and can’t be relegated to a machine (OS, or to be precise can’t be just started and awaited upon) are done at the same time.
In a real example if something requires a lot of computation (calculating something - like getting nth fibonnaci number, applying a function to list with a lot of entries, …) you would want to employ secondary threads or processes so that your main thread does not get blocked.
To summarize, async/parallelism helps in cases where you can delegate (IO) processing to the OS (usually reading/writing into/out of a buffer) but does not make anything go faster in itself, just more efficient as you don’t have to wait so much which is often a problem in single-threaded applications.
Hopefully this was somewhat understandable explanation haha. Here is some recommended reading https://realpython.com/async-io-python/
Final EDIT: Reading it myself few times, a pizza bakery example is not optimal, a better example would have been something where one has to talk with other people but these other people don’t have immediate responses - to better drive home that this is mainly used on Input/Output tasks.
Not necessarily a trick that’s always useful but I always forget this.
You can get async REPL by calling python -m asyncio
.
Also, old trick - in need of simple http server serving static files?
python -m http.server
A bit offtopic but either way, have you ever tried applying NN agents on games with incomplete information, card games with opponents and alike?
I don’t have time to browse all the tried solutions but this happens to me when my DNS gets wonky, especially systemd-resolved with dnssec enabled sometimes just stops resolving random domains, even with allow-downgrade.
Does anyone here already have daily-driving experience with the NVK? Couldn’t find much information about general stability, not even Arch Wiki has a page for it (which could be considered a good sign in a way).
Afaik you have to replicate the same wave but in opposite “direction” (up/down sinus) to cancel out incoming sound so any anc earbuds have to have microphones and are dynamically shaping the sound.
I know HEALTH.
Are you telling me I have been listening to cum metal?
lemmy.one has disabled downvotes, it’s up to admins of each instance if they allow viewing and making downvotes.
Maybe this https://github.com/Alinto/sogo
I wouldn’t recommend putting ssh behind any vpn connection unles you have a secondary access to the machine (for example virtual tty/terminal from your provider or local network ssh). At best, ssh should be the only publicly accessible service (unless hosting other services that need to be public accessible).
I usually move the ssh port to some higher number just to get rid of the basic scanners/skiddies.
Also disable password login (only keys) and no root login.
And for extra hardening, explicitly allow ssh for only users that need it (in sshd config).
I’d guess this has something to do with xdg/xdg-open but I haven’t got to trying out river yet
I don’t see a mention of PocketBook so here it is, last time I checked they are running a linux kernel and the source is available and the device should be moddable/hackable.
I am in love with my PB Touch HD 3, does exactly what it needs without any annoying stuff (but with goodies like backlight and blue filter). I did opt into using their cloud for book syncing (which is not required at all, usb cable works too or other clouds) but there was never an ad or intrusive thing, love it.
ah the -F
might be wrong then actually, I was playing with custom kernels recently and my dkms is a mess, wouldn’t worry about that option
I think I had this occur to me once and it was something really dumb but I can’t remember what.
@thomasdouwes@sopuli.xyz just for the sake of trying everything, you could rebuild the dkms and initrams, then reboot:
dkms autoinstall -F -a kernel-6.8.5-arch1 # change the kernel version according what you have now (read from uname -a)
mkinitcpio -P
E: Exhaustive of what I would try
How did you fail?
VLANs (Virtual LANs) are for isolating devices from each other (while still being plugged to the “LAN” ports of the same router).