Bill

joined 1 year ago
[–] Bill@lemm.ee 28 points 11 months ago* (last edited 11 months ago) (1 children)

I was playing Baldur's Gate 3 shortly after release and got a popup from Bing over the game asking if I wanted to enable Bing in Chrome. I immediately blocked bing.com on my network. Never looked back.

[–] Bill@lemm.ee 8 points 11 months ago

We all forgetting Maggie just straight-up murdered someone for trying to take her lollipop?

[–] Bill@lemm.ee 7 points 1 year ago

Pretty attached. My parents picked it.

If I could just be "Bill" everywhere I would but it really only works on the fediverse.

[–] Bill@lemm.ee 4 points 1 year ago

"Innocent until proven guilty" only applies to the state. I wouldn't want him chasing my daughter, would you? Private companies and individuals are fully entitled to treat him like he's guilty based on their own appraisal of the evidence.

I agree with you about Google. Even though it's good that the rapist doesn't get to make bank by spreading conspiracy theories, it'd be better if they took the videos down. Whereas traditional media outlets and theatres are cancelling his shows and saying (as is their right) that they don't want to work with him, Google's like "we'll work with you but we're not paying you". Not exactly the ethical stance they make it out to be, is it?

[–] Bill@lemm.ee 6 points 1 year ago (1 children)

I still read it but I stopped posting as soon as Elon Musk bought it. I'm not creating content for free for a billionaire (derogatory) fascist. I'll tweet on Bluesky or Mastodon occasionally and still call it a tweet and if I want to say something longer I've got a blog nobody reads and if there's something I want to chat about there's Lemmy.

[–] Bill@lemm.ee 0 points 1 year ago* (last edited 1 year ago) (1 children)

It worked! It might not look like stars to you because it's your password.

[–] Bill@lemm.ee 1 points 1 year ago (5 children)

Nah because if you type in your password it will show as stars.

******* see?

[–] Bill@lemm.ee 2 points 1 year ago (8 children)

I downvoted the beans and I don't care who knows about it. I'd do it again.

This is useful to know though, thanks. I guess assume everything is public short of your password (unless your admin is particularly nefarious and has altered the code to store passwords in plaintext for some reason).

 

I developed a PowerShell script a while back to scrape the latest wallpaper from the MTG website and set it as my desktop background. I finally got around to updating it today since it hadn't worked for a while. My background changed to Frodo and I disabled the script.

If you want that though, here you go:

Function Set-WallPaper {
 
<#
 
    .SYNOPSIS
    Applies a specified wallpaper to the current user's desktop
    
    .PARAMETER Image
    Provide the exact path to the image
 
    .PARAMETER Style
    Provide wallpaper style (Example: Fill, Fit, Stretch, Tile, Center, or Span)
  
    .EXAMPLE
    Set-WallPaper -Image "C:\Wallpaper\Default.jpg"
    Set-WallPaper -Image "C:\Wallpaper\Background.jpg" -Style Fit

    https://www.joseespitia.com/2017/09/15/set-wallpaper-powershell-function/
  
#>
 
param (
    [parameter(Mandatory=$True)]
    # Provide path to image
    [string]$Image,
    # Provide wallpaper style that you would like applied
    [parameter(Mandatory=$False)]
    [ValidateSet('Fill', 'Fit', 'Stretch', 'Tile', 'Center', 'Span')]
    [string]$Style
)
 
$WallpaperStyle = Switch ($Style) {
  
    "Fill" {"10"}
    "Fit" {"6"}
    "Stretch" {"2"}
    "Tile" {"0"}
    "Center" {"0"}
    "Span" {"22"}
  
}
 
If($Style -eq "Tile") {
 
    New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WallpaperStyle -PropertyType String -Value $WallpaperStyle -Force
    New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name TileWallpaper -PropertyType String -Value 1 -Force
 
}
Else {
 
    New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WallpaperStyle -PropertyType String -Value $WallpaperStyle -Force
    New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name TileWallpaper -PropertyType String -Value 0 -Force
 
}
 
Add-Type -TypeDefinition @" 
using System; 
using System.Runtime.InteropServices;
  
public class Params
{ 
    [DllImport("User32.dll",CharSet=CharSet.Unicode)] 
    public static extern int SystemParametersInfo (Int32 uAction, 
                                                   Int32 uParam, 
                                                   String lpvParam, 
                                                   Int32 fuWinIni);
}
"@ 
  
    $SPI_SETDESKWALLPAPER = 0x0014
    $UpdateIniFile = 0x01
    $SendChangeEvent = 0x02
  
    $fWinIni = $UpdateIniFile -bor $SendChangeEvent
  
    $ret = [Params]::SystemParametersInfo($SPI_SETDESKWALLPAPER, 0, $Image, $fWinIni)
}

$result = Invoke-RestMethod 'https://magic.wizards.com/en/news#wallpapers'
$result -match "//(.*?)2560(.*?).png"
$wallpaper = $Matches[0]
$picfolder = [Environment]::GetFolderPath([Environment+SpecialFolder]::MyPictures)
$filename = $wallpaper.Split('/')[-1]
$foldername = "MTG Wallpapers"
$savefile = "$picfolder\$foldername\$filename"

If (-not (Test-Path "$picfolder\$foldername")) {
    New-Item -Path $picfolder -name $foldername -ItemType "directory"
}

If (-not (Test-Path $savefile)) {
        Invoke-WebRequest http:$wallpaper -OutFile $savefile
        Set-WallPaper -Image $savefile -Style Fill
}

Paste that into PowerShell ISE and run it and see if it works. If you like it, save it and put a shortcut in your startup folder. By default it downloads the 2560x1600 version but if you want a different one just replace the 2560 in the line $result -match "//(.?)2560(.?).png" with 1920 or 1280. It saves images in a folder under your Pictures folder called MTG Wallpapers. You can change that too if you want by editing the $picfolder and $foldername lines.

Have fun.

1
submitted 1 year ago* (last edited 1 year ago) by Bill@lemm.ee to c/mtg@lemmy.ml
 

Hi all. I developed a PowerShell script a while back to scrape the latest wallpaper from the MTG website and set it as my desktop background. I finally got around to updating it today since it hadn't worked for a while. My background changed to Frodo and I disabled the script.

If you want that though, here you go:

Function Set-WallPaper {
 
<#
 
    .SYNOPSIS
    Applies a specified wallpaper to the current user's desktop
    
    .PARAMETER Image
    Provide the exact path to the image
 
    .PARAMETER Style
    Provide wallpaper style (Example: Fill, Fit, Stretch, Tile, Center, or Span)
  
    .EXAMPLE
    Set-WallPaper -Image "C:\Wallpaper\Default.jpg"
    Set-WallPaper -Image "C:\Wallpaper\Background.jpg" -Style Fit

    https://www.joseespitia.com/2017/09/15/set-wallpaper-powershell-function/
  
#>
 
param (
    [parameter(Mandatory=$True)]
    # Provide path to image
    [string]$Image,
    # Provide wallpaper style that you would like applied
    [parameter(Mandatory=$False)]
    [ValidateSet('Fill', 'Fit', 'Stretch', 'Tile', 'Center', 'Span')]
    [string]$Style
)
 
$WallpaperStyle = Switch ($Style) {
  
    "Fill" {"10"}
    "Fit" {"6"}
    "Stretch" {"2"}
    "Tile" {"0"}
    "Center" {"0"}
    "Span" {"22"}
  
}
 
If($Style -eq "Tile") {
 
    New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WallpaperStyle -PropertyType String -Value $WallpaperStyle -Force
    New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name TileWallpaper -PropertyType String -Value 1 -Force
 
}
Else {
 
    New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WallpaperStyle -PropertyType String -Value $WallpaperStyle -Force
    New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name TileWallpaper -PropertyType String -Value 0 -Force
 
}
 
Add-Type -TypeDefinition @" 
using System; 
using System.Runtime.InteropServices;
  
public class Params
{ 
    [DllImport("User32.dll",CharSet=CharSet.Unicode)] 
    public static extern int SystemParametersInfo (Int32 uAction, 
                                                   Int32 uParam, 
                                                   String lpvParam, 
                                                   Int32 fuWinIni);
}
"@ 
  
    $SPI_SETDESKWALLPAPER = 0x0014
    $UpdateIniFile = 0x01
    $SendChangeEvent = 0x02
  
    $fWinIni = $UpdateIniFile -bor $SendChangeEvent
  
    $ret = [Params]::SystemParametersInfo($SPI_SETDESKWALLPAPER, 0, $Image, $fWinIni)
}

$result = Invoke-RestMethod 'https://magic.wizards.com/en/news#wallpapers'
$result -match "//(.*?)2560(.*?).png"
$wallpaper = $Matches[0]
$picfolder = [Environment]::GetFolderPath([Environment+SpecialFolder]::MyPictures)
$filename = $wallpaper.Split('/')[-1]
$foldername = "MTG Wallpapers"
$savefile = "$picfolder\$foldername\$filename"

If (-not (Test-Path "$picfolder\$foldername")) {
    New-Item -Path $picfolder -name $foldername -ItemType "directory"
}

If (-not (Test-Path $savefile)) {
        Invoke-WebRequest http:$wallpaper -OutFile $savefile
        Set-WallPaper -Image $savefile -Style Fill
}

Paste that into PowerShell ISE and run it and see if it works. If you like it, save it and put a shortcut in your startup folder. By default it downloads the 2560x1600 version but if you want a different one just replace the 2560 in the line $result -match "//(.?)2560(.?).png" with 1920 or 1280. It saves images in a folder under your Pictures folder called MTG Wallpapers. You can change that too if you want by editing the $picfolder and $foldername lines.

Have fun.

[–] Bill@lemm.ee 3 points 1 year ago (4 children)

This makes total sense, but will you be revisiting this limit? Maybe when you meet a certain donation threshold? Unless mobile apps build in native support for using external image hosts using an external host will always be difficult for mobile users. Thanks.

 

Hi. The app looks great but it's unfortunately unusable with a mouse in Samsung DeX. I don't know which of those is the problem, maybe someone has a bluetooth mouse to hand and can check? It only scrolls a few pixels at a time and grabbing with the mouse cursor (so clicking and dragging) doesn't seem to work at all. Thanks.