zptc's recent activity

  1. Comment on Police are not primarily crime fighters in ~life

    zptc
    Link Parent
    I don't know if they changed it since you posted but "Police are not primarily crime fighters, according to the data" isn't particularly sensationalist imo with the added context of it being...

    I don't know if they changed it since you posted but "Police are not primarily crime fighters, according to the data" isn't particularly sensationalist imo with the added context of it being data-based, not an opinion.

    4 votes
  2. Comment on I am a witch. Well, a well witcher... in ~talk

    zptc
    Link Parent
    The dowsers participating did not seem to feel the quantity of water was a factor in their failure. Of course they may have said that off camera or such statements were edited out, but it seems...

    The dowsers participating did not seem to feel the quantity of water was a factor in their failure. Of course they may have said that off camera or such statements were edited out, but it seems reasonable they'd go for "not enough water" before "God is having a laugh."

    6 votes
  3. Comment on I am a witch. Well, a well witcher... in ~talk

  4. Comment on US Justice Department says Boeing violated deal that avoided prosecution after 737 Max crashes in ~transport

    zptc
    Link

    Boeing has violated a settlement that allowed the company to avoid criminal prosecution after two deadly crashes involving its 737 Max aircraft, the Justice Department told a federal judge on Tuesday.

    Glenn Leon, head of the Justice Department criminal division’s fraud section, said in the letter filed in Texas federal court that Boeing failed to make changes to prevent it from violating federal anti-fraud laws — a condition of the the 2021 settlement.

    The determination means that Boeing could be prosecuted “for any federal criminal violation of which the United States has knowledge,” including the charge of fraud that the company hoped to avoid with the $2.5 billion settlement, the Justice Department said.

    However, it is not clear whether the government will prosecute the manufacturing giant.

    9 votes
  5. Comment on Sony backed down from the PSN requirement to play Helldivers 2. How will this change how the community reacts to game changes? in ~games

    zptc
    Link Parent
    Do we know for certain who delisted the game in the affected regions? Valve or Sony?

    Do we know for certain who delisted the game in the affected regions? Valve or Sony?

    6 votes
  6. Comment on Saudi Arabia’s 105-mile long Line city has been cut a little short – by 103.5 miles in ~design

    zptc
    Link
    This short opinion piece is based on this article from Bloomberg which has more info.

    This short opinion piece is based on this article from Bloomberg which has more info.

    15 votes
  7. Comment on Save Point: A game deal roundup for the week of April 14 in ~games

    zptc
    Link Parent
    I played it some, didn't beat it, but for less than a dollar it's well worth checking out if you like turn based games.

    I played it some, didn't beat it, but for less than a dollar it's well worth checking out if you like turn based games.

    1 vote
  8. Comment on How one author pushed the limits of AI copyright | US Copyright Office grants copyright for work made with AI, with caveat in ~tech

    zptc
    Link

    “We’re seeing the Copyright Office struggling with where to draw the line,” intellectual property lawyer Erica Van Loon, a partner at Nixon Peabody, says. Shupe’s case highlights some of the nuances of that struggle—because the approval of her registration comes with a significant caveat.

    The USCO’s notice granting Shupe copyright registration of her book does not recognize her as author of the whole text as is conventional for written works. Instead she is considered the author of the “selection, coordination, and arrangement of text generated by artificial intelligence.” This means no one can copy the book without permission, but the actual sentences and paragraphs themselves are not copyrighted and could theoretically be rearranged and republished as a different book.

    4 votes
  9. Comment on Favorite hobby / subculture YouTube channels? in ~hobbies

    zptc
    Link
    Angela Collier is a physicist who talks about a variety of science-related content, mostly but not all physics.

    Angela Collier is a physicist who talks about a variety of science-related content, mostly but not all physics.

    7 votes
  10. Comment on Please proofread this AI-generated AutoHotkey script in ~comp

    zptc
    Link Parent
    thanks, edited with more info

    thanks, edited with more info

  11. Comment on Please proofread this AI-generated AutoHotkey script in ~comp

  12. Comment on Please proofread this AI-generated AutoHotkey script in ~comp

  13. Please proofread this AI-generated AutoHotkey script

    For my job I need to copy a person's name out of a field and split it into first and last names. I have a AHK script that can do this but my version only works with simple, one-word,...

    For my job I need to copy a person's name out of a field and split it into first and last names. I have a AHK script that can do this but my version only works with simple, one-word, non-hyphenated names. I tried prompting Gemini as below.

    There is a line of text consisting of one or more words, a comma, then one or more words. write an autohotkey 1.1 script to select everything before the comma, store it to a variable called firstname, then select everything after the comma and store it to a variable called lastname. thanks

    (the firstname and lastname variables should be swapped as the last name would come before the comma, that was my error)

    Here's the AutoHotkey 1.1 script to achieve what you described:

    ; This script splits a text line into first and last name based on a comma
    
    #NoEnv  ; Recommended for performance and compatibility.
    SendMode Input  ; Simulates keystrokes for reliable input.
    
    ; Function to split the text
    Func SplitText(_text, firstName, lastName) {
      StringSplit, parts, _text, `,`
      if (parts[1]) {
        firstName := parts[1] ; Assign first name
        lastName := SubStr(_text, 1 + StrLen(parts[1])+1) ; Extract last name after comma (including space)
      } else {
        firstName := _text ; Handle cases without a comma
        lastName := ""
      }
    }
    
    ; Hotkey to trigger the script (replace F2 with your desired key)
    F2::
      Send, ^c ; Copy the selected text to clipboard
      clipText := ClipboardAll  ; Read the clipboard content
      SplitText(clipText, firstName, lastName) ; Call the function to split the text
      MsgBox, First Name: %firstName%`nLast Name: %lastName%
    
      ; Optional: Clear clipboard to avoid unintended pasting (comment out if not desired)
      ; Clipboard := 
    Return
    

    Explanation:

    #NoEnv and SendMode Input: These lines are included for performance and reliable input simulation.
    Func SplitText(_text, firstName, lastName): This function takes the text (_text) as input and assigns the split parts to variables firstName and lastName.
    StringSplit, parts, _text, ,:** Splits the text based on the comma (,`) delimiter.
    if (parts[1]):** Checks if there's a second part (i.e., text after the comma).
    If true, the first part is assigned to firstName and the text after the comma (including the space) is extracted using SubStr and assigned to lastName.
    else:** If there's no comma, the entire text is assigned to firstName and lastName is set to an empty string.
    F2::: This line defines a hotkey. When F2 is pressed, the following actions occur:
    Send, ^c:** Copies the selected text to the clipboard.
    clipText := ClipboardAll:** Reads the copied text from the clipboard and stores it in the variable clipText.
    SplitText(clipText, firstName, lastName):** Calls the function to split the copied text into first and last names.
    MsgBox:** Displays a message box showing the extracted first name and last name.
    Optional: Clear Clipboard: The commented line Clipboard := clears the clipboard content after processing. Uncomment this line if you want to avoid accidentally pasting the copied text elsewhere.

    Edit: To answer questions, and provide info I probably should have from the beginning: I'm a medical transcriptionist using AHK with my job's software (Emdat Inscribe) and a word expander (Instant Text). Inscribe seems to be browser-based but functions as a standalone app. I already have dozens of AHK 1.1 macros; my .ahk file has over 2000 lines, although I'm sure it's terribly written code. This is also why I'm disinclined to switch to AHK 2.0 since I have no desire to rewrite everything unless absolutely necessary. The first part of this macro is a bunch of keypresses to jump to the relevant patient info field, then this part would be used to store the names appropriately. I already have hotkeys to use the variables as needed and most macros are limited with #ifwinactive to Inscribe.

    6 votes
  14. Comment on Boeing is withholding key details about door plug on Alaska 737 Max 9 jet, NTSB says in ~transport

  15. Comment on Who are the pop stars, from any era, who have extraordinary skills? in ~music

    zptc
    Link Parent
    For some John Mayer that feels quite a bit less "John Mayer" try the John Mayer Trio, which is a blues trio with Steve Jordan and Pino Palladino (drummer and bassist, respectively, and both highly...

    For some John Mayer that feels quite a bit less "John Mayer" try the John Mayer Trio, which is a blues trio with Steve Jordan and Pino Palladino (drummer and bassist, respectively, and both highly respected musicians).

    2 votes
  16. Comment on Elon Musk sues OpenAI, Sam Altman for breaching firm’s founding mission in ~tech

  17. Comment on Harbor Freight cannot easily develop their own flesh detection table saw in ~life.home_improvement

  18. Comment on EA offering players $600 and a free game to appear in College Football 25 in ~sports.american_football