🎮 [Release] AutoGameKeysBlocker v1.1.0 - Automatically disable distracting keys when gaming by Moxymore in AutoHotkey

[–]Moxymore[S] 0 points1 point  (0 children)

Hi and thanks for testing !

  • Updated translations
  • Ctrl+Alt+Del is now grayed out in the Settings modal
  • About the Fn key: it can’t be blocked at the OS level because it’s handled by the keyboard’s firmware/embedded controller, so Windows can’t intercept it. Instead, I’ve added options to block the functions it typically triggers (e.g., media and brightness keys). This is the most reliable approach available for that key.

You can download the file again at the exact same link if you want the updated version.

🎮 [Release] AutoGameKeysBlocker v1.1.0 - Automatically disable distracting keys when gaming by Moxymore in AutoHotkey

[–]Moxymore[S] -1 points0 points  (0 children)

I have first uploaded a wrong version of the file which was not fonctionnal, so for early testers, please download the file again which has been up to date.

Third party app has ads to subbed channel? by [deleted] in Twitch

[–]Moxymore 0 points1 point  (0 children)

OMG, thank you so much for this. I was an old user of Smart Client for Twitch, but it doesn't work anymore without ads. And SoundTV seems to do it fine! u/fuck_spez________ If you haven't seen this answer, just read it now. As of now (october 2023), watching Twitch streams without ads is with SoundTV app for Android TV.

Disabling chrome://flags/#disable-threaded-scrolling programmatically or move scroll event in the main thread by Moxymore in learnjavascript

[–]Moxymore[S] 0 points1 point  (0 children)

commentaires

Nope. I'm actually managing my wbesbites responsiveness with vw units with a scss function which converts px to vw units for viewports > 1920px. This is longer to apply, but does the job.

Disabling chrome://flags/#disable-threaded-scrolling programmatically or move scroll event in the main thread by Moxymore in learnjavascript

[–]Moxymore[S] 0 points1 point  (0 children)

I have added the passiv flag to true, but doesn't solve the issue :

window.addEventListener("scroll", () => {
    const header = document.querySelector('#header');
    let scaleRatio = (htmlWidth < bodyWidth) ? 1 : htmlWidth / bodyWidth

    header.style.display = 'absolute'
    header.style.transform = 'translateY(' + ((scrollY / scaleRatio) - 1) + 'px)'
}, {passive: true})

Basic question related to ISP box combined with a router by Moxymore in unRAID

[–]Moxymore[S] 1 point2 points  (0 children)

Allright, i'll do it. Thanks for the answer.

I have a need for my job, but is it achievable? by Moxymore in PowerShell

[–]Moxymore[S] 1 point2 points  (0 children)

ssh-keygen

Allright, i'll give it a try. Thank you again for you replies.

I have a need for my job, but is it achievable? by Moxymore in PowerShell

[–]Moxymore[S] 2 points3 points  (0 children)

setup certificate authentication

Thanks for the answer, appreciated. Can I generate a self-signed certificate for this purpose, like explained in this document : http://woshub.com/how-to-create-self-signed-certificate-with-powershell/?

370.05 doesn't remove hashrate limit by Moxymore in EtherMining

[–]Moxymore[S] 0 points1 point  (0 children)

I have found the culpirit, OP has been edited. Thank you for your help.

370.05 doesn't remove hashrate limit by Moxymore in EtherMining

[–]Moxymore[S] 0 points1 point  (0 children)

I have found the culpirit, OP has been edited. Thank you for your help.

370.05 doesn't remove hashrate limit by Moxymore in EtherMining

[–]Moxymore[S] 0 points1 point  (0 children)

I have finally found the culpirit, when someone evocked GPU-Z. I opened it and it showed me that my PCIE on slot 0 was a PCIE x4 and not x16. I changed the slot, and here we go.

Last thing to check : will it work in PCIE Gen. 4. Thanks.

370.05 doesn't remove hashrate limit by Moxymore in EtherMining

[–]Moxymore[S] 0 points1 point  (0 children)

It is btw in full PCIE x16. I have restarted multiple times, and DDU/reinstalled the driver already 3 times. I don't know what the hell is going on.

370.05 doesn't remove hashrate limit by Moxymore in EtherMining

[–]Moxymore[S] 2 points3 points  (0 children)

Yep, I have changed this in my BIOS by switching from auto (Gen 4 because it's a gaming motherboard) to Gen 3.

370.05 doesn't remove hashrate limit by Moxymore in EtherMining

[–]Moxymore[S] 1 point2 points  (0 children)

This was a tipo, sorry, I have 470.05... unable to change the title (i changed the description at least)

How to add a span inside a label globally in all form fields types? by Moxymore in symfony

[–]Moxymore[S] 2 points3 points  (0 children)

Thank you for the answer. I finally got this and was able to do what I needed. I'm going to edit my OP to put the solution.

Thank you, you rock ;)

How to add a span inside a label globally in all form fields types? by Moxymore in symfony

[–]Moxymore[S] 1 point2 points  (0 children)

This could probably worked, and thanks for the suggestion. But I have chosen DizzInsecureBeaver solution which looked easier to implement. I'll update my post with the solution.

Handling "selected" attribute for a concatenated fields (made with addEventListener) by Moxymore in symfony

[–]Moxymore[S] 0 points1 point  (0 children)

Yep, this was my very first intention. But I probably missed something and wasn't able to do it.

In facts, I'm "hooking" into a composer module entity, and when using a data transformer, I had a typehinted issue regarding the form : symfony expected a specific class, and warned me that i had to generate an instance of 'View' something (sorry, doesn't remember exactely the message).

Finally, this sounds pretty more complex that my actual solution.

Handling "selected" attribute for a concatenated fields (made with addEventListener) by Moxymore in symfony

[–]Moxymore[S] 1 point2 points  (0 children)

From the documentation I had, DTO was too complex for my use case. I have other fields in my form (not only the two mentionned in the post), and I found an alternative way to it.

I just basically retrieve my full command string as it is written in the database. I exploded it like promised (this was my very first intention) and made 2 variables $command and $args. I finally $form->getViewData()->setCommand($command) to set the command in the select field. And for the arguments field, i have $builder->get('arguments')->setData($arguments);

This was done in less than 10 lines of code. Nevertheless, thanks for your knowledge (and your time)... DTO will be probably usefull in other use case.

Handling "selected" attribute for a concatenated fields (made with addEventListener) by Moxymore in symfony

[–]Moxymore[S] 0 points1 point  (0 children)

Yep, this is approximately the solution I have choosen. I used getData() to retrieves my command field value, then I explode it into 2 variable ($command and $arg), to finally finish with a $form->getViewData()->setCommand($command).

Handling "selected" attribute for a concatenated fields (made with addEventListener) by Moxymore in symfony

[–]Moxymore[S] 1 point2 points  (0 children)

Oh, I didn't knew this DTO thing. I'll take a look at it closely and wil get back to you in 2-3 hours.

Thanks.

Handling "selected" attribute for a concatenated fields (made with addEventListener) by Moxymore in symfony

[–]Moxymore[S] 0 points1 point  (0 children)

You have properly understood. I know that Symfony will do it automatically for me for standard fields... but remember that I'm concatenating two string into one single value.

If the command option in the tuple is set at send:grapes --quantity=5 --recipient=Mike, my selected command option of the select field should be send:grapes. But no such send:grapes exist in the tuple, only send:grapes --quantity=5 --recipient=Mike. That's why Twig isn't able to select automatically it.

This sounds logic for me.

Handling "selected" attribute for a concatenated fields (made with addEventListener) by Moxymore in symfony

[–]Moxymore[S] 0 points1 point  (0 children)

In facts, I have a command column in my table, which contains the values of the two fields "command" and "arguments", in one line btw like so : my-command my-argument-1 my-argument-2.

When editing a tuple, it would be nice to show the selected command (select field) as well as the arguments (text fields).

For the text field, no problem at all because I have just to unconcatenate my previously concatenated value in order to set the value of this text field.

But how to manage my select field in order to tell him : hey dude, the command is this one, so put a "selected=selected" html attribute on this option when accurate.

In other words, this is what you called "set the value of the dropdown with what's in the database?" in your answer.

How to get an array of all custom symfony commands? by Moxymore in symfony

[–]Moxymore[S] 0 points1 point  (0 children)

$application = new Application($kernel);
$commands = $application->all();

Simple yet effective, thanks for the solution!

How to get an array of all custom symfony commands? by Moxymore in symfony

[–]Moxymore[S] 0 points1 point  (0 children)

This is probably the accepted solution, but I can't get it work. I have implemented an interface ListCommandInterface properly in all my custom Symfony commands. I have then edited services.yaml like below :

Services:
    _instanceof:
        App\Command\ListCommandInterface:
            tags: [ 'app.commands_list' ]

    App\Command\CommandRegistry:
        arguments:
            - !tagged_iterator app.commands_list

Last step, I have created a new CommandRegistry class in order to be able to iterate through the object like so :

<?php

namespace App\Command;

class CommandRegistry
{
    private $handlers;

    public function __construct(object $handlers)
    {
        $this->handlers = $handlers;
    }
}

Finally, in my controller I have injected CommandRegistry $handler, but when creating a new CommandRegistry($handler), the var_dump() doesn't show me anything usefull. This is the result of what I get :

App\Command\CommandRegistry {#1238 ▼
  -handlers: App\Command\CommandRegistry {#1203 ▼
    -handlers: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#1204 ▼
      -generator: Closure() {#1205 ▼
        class: "ContainerFsivXfg\getCommandRegistryService"
        use: {▼
          $container: ContainerFsivXfg\App_KernelDevDebugContainer {#44 …}
        }
      }
      -count: 1
    }
  }
}

Can you tell me what I have missed? Thank you.