-
51 votes
-
Trains on the Moon
8 votes -
Tastes like chicken? Think again—edible ants have distinctive flavor profiles.
16 votes -
Why do some companies borrow and others sell shares?
9 votes -
Rage Against the Machine's first public performance (10/23/91 @ Cal State North Ridge)
29 votes -
Memecoin trading at levels last seen before crypto bubble burst
20 votes -
Jacob’s Dream - MAGA meets the Age of Aquarius
3 votes -
"The university campus is rapidly becoming a locus of infantilizing social control that any independent-minded student should seek to escape"
42 votes -
The Israeli settlers shrugging off sanctions to menace the West Bank – Measures against extremists do little to temper a movement emboldened by the Gaza war
18 votes -
Alien: Romulus | Official teaser trailer
23 votes -
Tesla's gear-shifting problems known long before Angela Chao's death
36 votes -
Athletes likely to have higher levels of PFAS after play on artificial turf – study
9 votes -
Marvel 1943: Rise of Hydra | Story trailer
7 votes -
Investigating touchscreen ergonomics to improve tablet-based enrichment for parrots
19 votes -
Chappell Roan: Tiny Desk Concert (2024)
7 votes -
Seems like all socials are being scraped for AI and personal/aggregate data. Is Tildes?
I was just reminded of that again when going back and looking at some of my old posts on reddit which is openly selling online data. Prompted me to use Redact which erases and overwrites comments...
I was just reminded of that again when going back and looking at some of my old posts on reddit which is openly selling online data. Prompted me to use Redact which erases and overwrites comments before deleting them. But that got me wondering if the same is true of Tildes? And how would we know?
34 votes -
Solar viewer for the upcoming eclipse
21 votes -
The creeping politicization of the US Military
17 votes -
A pill to make exercise obsolete (2017)
19 votes -
New Music Fridays: Kacey Musgraves, Four Tet, Tierra Whack and more
This is a thread to discuss 2024 releases that have recently arrived on our doorstep, or been announced for the future. Feel free to share albums, singles, EPs or reissues that have caught your...
This is a thread to discuss 2024 releases that have recently arrived on our doorstep, or been announced for the future. Feel free to share albums, singles, EPs or reissues that have caught your eye and interest, or share your thoughts about any new music that you've had the chance to listen to this week.
Discussion Points
Is there anything you've been looking forward to listening to?
Any releases that have surprised you?
Have you listened to any new music recently? What are your thoughts?
What have you enjoyed from these artists in the past? How does their latest work compare?Links:
Pitchfork - Out This Week
AllMusic - All New Releases
Stereogum - New Music~~ Feedback on the format welcome
7 votes -
Teemu Pukki: ‘It is a big thing, one of the biggest games in Finnish football history’
4 votes -
Show Tildes: mapping almost every law, regulation and case in Australia
14 votes -
Populist parties’ divisions jeopardise chances of setting EU agenda
6 votes -
Scientific research suggests it might be a good idea to add python to your diet
20 votes -
100,000 years and counting – how do we tell future generations about highly radioactive nuclear waste repositories?
20 votes -
Novo Nordisk Foundation is entering into a partnership with Nvidia to establish a national AI research centre in Denmark – will be home to one of the world's most powerful supercomputers
5 votes -
Has anyone here received any benefit as a consumer from algorithmic ad targeting?
I always get ads for items I have already purchased and won't need again for years if ever.
40 votes -
Indonesia’s e-bike shops are building their own batteries
10 votes -
Let's talk about Eurovision Song Contest 2024
The contest is still 6 weeks away, but the national finals season is over and all songs have been released. So let's hear your favourites, predictions, opinions, hot takes, and wild speculations!
15 votes -
Root cause of Alzheimer's may be fat buildup in brain cells, research suggests
22 votes -
Queer time: The alternative to “adulting”
23 votes -
US judge rules YouTube, Facebook and Reddit must face lawsuits claiming they helped radicalize a mass shooter
47 votes -
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 -
The left is smeared as the angry mob again and again. In reality, it is the target of political violence.
32 votes -
Overwatch 2 devs fear story missions have been canceled
15 votes -
NASA’s x-ray telescope faces a long goodbye
12 votes -
Michael "BrolyLegs" Begum, competitive Street Fighter player with arthrogryposis, passed away at 35
18 votes -
What have you been watching / reading this week? (Anime/Manga)
What have you been watching and reading this week? You don't need to give us a whole essay if you don't want to, but please write something! Feel free to talk about something you saw that was...
What have you been watching and reading this week? You don't need to give us a whole essay if you don't want to, but please write something! Feel free to talk about something you saw that was cool, something that was bad, ask for recommendations, or anything else you can think of.
If you want to, feel free to find the thing you're talking about and link to its pages on Anilist, MAL, or any other database you use!
5 votes -
Is a NAS for me?
Hi, I keep reading about this thing called a "NAS" and I don't have in my social network a bunch of reasonable geeks to figure out if this is something for me or if it is overkill and I can get by...
Hi, I keep reading about this thing called a "NAS" and I don't have in my social network a bunch of reasonable geeks to figure out if this is something for me or if it is overkill and I can get by with less -- trying to be frugal and all.
The Situation
At the moment, I have a Raspberry Pi 3 (that a colleague gifted me) which runs Jellyfin, mostly for music. I'd use it for watching series and movies, but given how slow it is at transferring files and the fact that it has a 1GB (maybe 2GB) RAM... I was afraid to break it. On top of that, its storage is a years-old external hard drive.
I use Jellyfin mostly to have music on my iPhone. I can access it when I'm out and about on Tailscale. I hope to find a solution for my photos as well.
I'd also occasionally use the pi to experiment with some self-hosted open-source apps.
I constantly find myself wanting to upgrade because I want to also backup my important photos (with face recognition if possible) and documents "offline" (i.e. in my local network) to something more stable than an aging hard drive. They're all in the cloud, but a second backup option could be great.
What I understand from reading about NAS's is that I basically have one, it's just not... reliable?
The Question
I understand there is definitely a buy-in cost for buying an actual NAS, I'd like to know how much... so that I can make an informed decision on if and when I would buy it. What is an entry-level NAS and how much will it cost? What could it NOT do that an RPi could, and vice-versa? Am I missing an in-between or even an alternative solution for my use case? Is it overkill and should I just upgrade the pi? What are my options?
Thanks in advance for reading my post!
20 votes -
India electrified 45% of its railway network in just five years
30 votes -
Movie of the Week #21 - High Noon
Warning: this post may contain spoilers
Third movie of Best Picture nominees that didn't win is High Noon from 1952 directed by Fred Zinnemann and starring Gary Cooper and Grace Kelly. Gary Cooper won for best actor, Dimitri Tiomkin won for the score and for the title song "The Ballad of High Noon ("Do Not Forsake Me, O My Darlin'")"
Besides any thoughts on this movie, have you seen the other nominees that year and do you think this deserved the win instead?
The other nominees:
- The Greatest Show on Earth (winner)
- Ivanhoe
- Moulin Rouge
- The Quiet Man
The rest of the schedule is:
- 25th: Saving Private Ryan
10 votes -
Other artists like Freya Catherine, Jillian Aversa, Erutan?
I really like listening to video game music covers, some of my favorite artists are Freya Catherine, Jillian Aversa, Erutan, Malukah, Karliene. Does anyone else enjoy this kind of music, and do...
I really like listening to video game music covers, some of my favorite artists are Freya Catherine, Jillian Aversa, Erutan, Malukah, Karliene. Does anyone else enjoy this kind of music, and do you have any recs for similar artists (especially if they are still actively posting music) (and bonus points if they have a bandcamp page)?
3 votes -
Joe Biden administration announces rules aimed at expanding US electric vehicles
22 votes -
Is anyone else at GDC?
If so, how's it going for you? Go to any interesting talks or events? Meet anyone new?
18 votes -
Black LGBTQ+ youth need spaces that embrace them fully, researchers say
7 votes -
US President Joe Biden just signed the largest executive order focused on women’s health
23 votes -
Elon Musk on racism, bailing out Donald Trump, hate speech, and more - The Don Lemon Show (full interview)
29 votes -
Welcome to the ‘Poohniverse’: ‘Winnie the Pooh: Blood and Honey’ team to unite Pooh, Bambi, Tinkerbell and more in low-budget horror crossover
9 votes -
Suspicious discontinuities
8 votes -
How does Paris stay Paris? By pouring billions into public housing.
17 votes