• 1 Post
  • 183 Comments
Joined 3 年前
cake
Cake day: 2023年7月1日

help-circle




  • I was getting marked as “away” in Microsoft Teams every day, even though I was working. I just wasn’t using Microsoft Teams, so it marked me as idle.

    I wrote this Autohotkey script after my boss started complaining. It clicks on Teams every 2 minutes:

    global running := 0
    
    ^+1::
    {
    	global running := 1
    	while running == 1
    	{
            CoordMode("Mouse", "Screen")
            oldx := 0
            oldy := 0
            MouseGetPos(&oldx, &oldy)
            prev_active := WinActive("A")
    
            Try
            {
                WinActivate("ahk_class TeamsWebView")
            }
            Catch TargetError as e
            {
            }
            CoordMode("Mouse", "Window")
            Send("{Click 80 40 Left}")
    
            Try
            {
                WinActivate("ahk_id " prev_active)
            }
            Catch TargetError as e
            {
            }
            CoordMode("Mouse", "Screen")
            MouseMove(oldx, oldy, 0)
    
            sleep(115000)
    	}
    }
    
    ^+2::
    {
    	global running := 0
    }
    
    

    It has the side effect of preventing my computer from entering screensaver/lock screen when I really am away.




  • Limonene@lemmy.worldtoGames@lemmy.world#StopPayingGames
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    30 天前

    When you buy software on a DVD, you own the software, at least until you install it and agree to the clickwrap agreement that revokes your ownership.

    In the olden days, we installed software by copying it off floppy disks onto our hard drives. There was no clickwrap agreement, because there was no installer. We owned that software.

    GOG advertises that purchasers own the software they buy. https://www.gog.com/en/news/welcome_to_gog

    Lots of open source software can be owned. You have to do something that grants you ownership in the first place, like buying it on a disc. Downloading it for free might or might not, I don’t know. But no FOSS license I know of has any clause that revokes ownership. The GPLv2 has a specific clause that says

    You are not required to accept this License

    so you can always choose to reject the whole GPL, and revert back to the implicit rules of commerce, “Pay money, receive thing” which confers ownership.



  • chmod can do 95% of everything I’ve ever needed, just with the “user” and “other” category. Private files, public-readable files, public read-write files, programs I compile but anyone can run… all that is just in the “user” and “other” category of chmod.

    It gets 99% if you add the sticky bit (used on /tmp) and the “group” category. Serial ports are owned by root:dialout, and mode 660. To get serial port access, just add the user to the dialout group. For group assignments in college, each partner pairing had their own group they could use. Group work files were mode 660 so groups could edit each others’ work, but other groups couldn’t peek.

    For the last 1%, use setfacl. It does everything that explorer.exe’s security tab can do.









  • Limonene@lemmy.worldtomemes@lemmy.worldGabe the GOAT Newell
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    3 個月前

    their anti-competitive practices

    Do you have any examples? For reference, Steam does allow developers to list games on Steam and other platforms, and even to have lower prices on the other platforms. I haven’t been able to find any true examples of anti-competitive practices by Steam.



  • I have to use Windows 11 at work. Whenever I complain about it to any of my friends, they say, “it’s easy to work around that. You just have to…” and then they say to modify some registry key, or set up a group policy, or run a powershell command, or use some cleaning tool.

    But even if it’s easy to do that, it’s not easy.

    1. You have to know about the key or the cleaning tool, and there’s a different one for every problem.
    2. You have to keep up to date with the new user-hostile behavior introduced to Windows every month.
    3. You have to keep up to date because Microsoft removes those circumventions, because they don’t want you to be able to remove their trash.
    4. You have to vet the tools, make sure they’re not malware. And continuously make sure it’s not replaced by malware in the future. There’s no central repository of Windows programs like there is for Debian or Ubuntu, so if you just web search for the tool name every time, you might click on a malvertising link in the search results instead.