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!
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!
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.
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!
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.
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?
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!
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 rest of the schedule is:
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)?
If so, how's it going for you? Go to any interesting talks or events? Meet anyone new?
This sci-fi book starts out as a first contact novel. Aliens show up and say "Your planet is dying--we're here to rescue you! Come join our galactic federation!"
Here's the twist: the protagonist emphatically refuses. The world is sick, but humanity is healing it. Successfully. They have been for decades. And they refuse to leave Earth and go explore the stars until the job is done.
Thus begins this story's major conflict. The aliens have visited a few other planets with signs of advanced civilization, and in every case they've arrived too late--the other civilizations have extincted themselves by the time they arrive. The aliens are emphatic that technological societies cannot thrive on a planet's surface; in every other case, either the planet or the civilization dies. The humans are unfazed. Repairing an ecosystem is possible, they say. We've proven it. Are proving it. Yes, there's a hurricane bearing down on us, but the storms get a little less intense every year.
This is a story about meeting people utterly unlike you and finding common ground with them. It's about imagining a better future and working doggedly toward it.
Eco-focused stories usually have a back-to-the-land, pastoral vibe; they want to get in touch with nature by reducing our use of technology as much as possible. That's not this book at all. Our heroes use neural interfaces and networked decision-making algorithms to manage the restoration of the ecology. They write algorithms that weight the vote in favor of community-defined ethical preferences. Technology isn't the enemy--corporations are, which is why the corps were exiled decades ago. Networks and algorithms can be powerfully good when they're used to benefit the many instead of the few.
This book has so much heart and so much beautiful imagery. It is gloriously weird in lots of ways I'm not going to spoil. It's a hopeful book that's giving me ideas I'm starting work on now. You can find it here or in your local library.
Have you watched any TV shows recently you want to discuss? Any shows you want to recommend or are hyped about? Feel free to discuss anything here.
Please just try to provide fair warning of spoilers if you can.
The link to join is
tildes.modded.fun
It is whitelisted, so just drop your username either in the comments or in my DMs and I'll add you as soon as I see it.
I saw that @teaearlgraycold is possibly deciding to reopen the vanilla Minecraft server at some point. So, I decided that I'd start up a modded server instead of a vanilla one. Let's see how it goes. It's still in its early stages, like it doesn't have an icon as of now (still working on figuring out why not).
The spawn is at x:0 y:74 z:0 and is on the southern mooshroom island (there's two big islands, so ofc I couldn't resist that seed). The main land isn't too far away, but I'd recommend going east or west if you want a quick trip. We have a horse+boat compatibility datapack, as well. There are trees on the island and I set up a little starting area to the north, on the shore of the southern island. Just replant, breed, etc if you need anything. Also, there's a (very slow) egg farm in the cobble/water near the animals.
I figured we could have two main areas, one on the northern island and southern island (and put a Create train/monorail & bridge between them?). One for living, but also maybe we can create a shopping & gaming district to avoid the rapid progression for players via farming everything and then just taking. Hopefully that staves off boredom and losing interest. Let me know what you think. Right now, Idk what currency it would be other than diamonds or winning prizes.
The main mods we have are:
You can download the zip of mod configs/mods/required resourcepack/datapacks here:
https://www.dropbox.com/scl/fi/pz76nmyxgk7lamagg1opq/TildesModdedMinecraft.zip?rlkey=wepd36lr7g022vy4bh5juz2pq&dl=0
Some things to note:
Hold "W" to ponder items/blocks in Create to learn how they work.
Throw an egg on a painting to turn it into an easel to draw on. After drawing, save your work first, then export while holding a regular painting in your hand. Then place your drawing anywhere!
We have recipe fix datapacks as well as custom head drops from mobs and players.
Ask questions and report bugs to this thread/in my DMs.
Don't break any spawners.
FireTick is off.
Phantoms don't spawn.
keepInventory is off.
PVP is on.
The seed is -3315377300917012846.
What have you been doing lately for your own fitness? Try out any new programs or exercises? Have any questions for others about your training? Want to vent about poor behavior in the gym? Started a new diet or have a new recipe you want to share? Anything else health and wellness related?
A little over a week ago, I got an official diagnosis of hypothyroidism from my GP. Fair warning, this post is going to be a little bit of a rambly discussion of my thoughts and feelings surrounding my diagnosis and other circumstances surrounding it.
I'm a US American, but I moved to Germany to do my master's degree in 2018 and have lived here ever since. I've struggled with depression and social anxiety since before I moved to Germany, but my symptoms got notably worse in 2020 (perhaps unsurprisingly). In late summer of 2020 my psychotherapist finally suggested I go on an SSRI, but she wanted me to get a blood test to rule out any physical causes. I went to my then-doctor and got such a blood test. Everything was within the normal range except for my TSH.
For those unfamiliar, TSH is the hormone your pituitary gland sends to tell your thyroid to get a move on. It doesn't directly measure your thyroid function, but it's a pretty good indicator something's up, so doctors use it to screen for thyroid issues. High TSH is a sign of hypothyroidism, and low TSH is a sign of hyperthyroidism. Your average person with a healthy thyroid will probably have TSH between 1.0 and 2.0, but some variation exists. The normal range that doctors use here has 4.2 as its upper limit. In 2020, my TSH value was 4.8. My doctor then said that people with hypothyroidism have higher numbers than that, so I was fine. She wrote my a prescription for a low dose of an SSRI, which did help me to an extent.
I've been fat for a long time, to different degrees. After I first moved to Germany in Fall of 2018, I quickly lost a lot of weight. There were likely a lot of factors -- I wasn't living at home where snacks were constantly stocked, I was buying food on a student's budget, I was eating out and ordering takeout less because of my social anxiety and shitty German skills, and I was walking a lot more. When I came back to the US for family vacation in 2019, I constantly got compliments about having lost weight, which felt weird. I was still overweight according to the BMI, but more of a classic midsize chubby at that time. But it wasn't to last, and I did start gaining the weight back. For a while it, I attributed this to my getting more takeout and walking less. But a year or two ago it felt like it stopped being directly attached to my activity or food consumption. I went on medication that suppressed my appetite as a side-effect, but I continued to gain weight. Since I was already fat and had been gaining weight for a while, I didn't mention anything to my doctors because I was already getting lectures about how I needed to lose weight and exercise more. I don't know for sure what I weigh right now because I've avoided weighing myself for months, because I'm scared I weigh over 100kg and I can't handle seeing that triple digit on a scale.
I've tried and failed to become more active and start an exercise routine several times. I joined a sports course at university with some of my friends, but I quit after a couple sessions because I was hyperventilating before warm-up was over. I've tried to do some basic strength training, but I'd be sore for days after even incredibly beginner-level stuff. More recently, my wife and I tried to take regular walks through the nearby park during last spring and summer. But I'd tire out after an embarrassingly short distance, not even enough to get to where we see the ducks (the highlight of the park for me). As the weather got worse in winter I basically stopped leaving the apartment. It's a struggle to put my shoes on without an extra long shoehorn so I don't have to bend over, and anything that requires me to tie my shoelaces is basically off the table.
I've been struggling with work for the past several months. I can't seem to focus on it, even if I take my ADHD medication. I look at the computer screen and I just can't mentally handle the work. Every day of work is exhausting, even though I work a pretty cushy job as a data scientist and I work from home. I do way less than 40 hours of actual work a week but I'm still too physically and mentally exhausted all the time to do anything but the most trivial household chores. I haven't cooked dinner for myself in months (thank God for my wife).
I switched to a new GP at the beginning of 2024 bc I was having trouble getting timely appointments at my last one. We agree to do one big blood test covering everything, since I have a myriad of small complaints and it's been years since I've had one. That test comes back mostly normal, except my cholesterol is a little high and my TSH is a smidge above 5. My new GP then says we should do a follow-up blood test to look at other thyroid measurements (this would be directly measuring the hormones my thyroid produces) to see if I have hypothyroidism. I mention offhandedly the interaction I had with my old GP in 2020 and she says that's not how you're supposed to do that; high TSH means further testing even if it's not that high. A few weeks and another blood test later and I've now got a new diagnosis and a prescription for artificial thyroid hormone.
It turns out that pretty much everything I've been struggling with for years now? May be because of my underactive thyroid. Your thyroid is apparently pretty damn important and it not working right (in either direction) can result in a truly dizzying amount of things going wrong. Depression, brain fog, fatigue, and weight gain are all pretty classic symptoms, but apparently it can also cause problems with your lungs or even contribute to carpal tunnel syndrome. Everyone with a properly-functioning thyroid, take a moment to thank that lil butterfly-shaped guy in your neck.
I'm so glad to have something that's basically a "feel better" pill now. But I'm left with a sense of deep frustration that I've had so many problems that even I dismissed to myself because I assumed they were just cause I was a stupid out-of-shape Fatty. It turns out it's actually not normal for someone in their mid-20s at my age to struggle to put on their own shoes without assistance, even when they're obese. Being unable to take a short walk without needing to sit down because I'm exhausted and out of breath isn't just because I'm fat and out of shape. I've had no shortage of symptoms heavily impacting my life, but most of them I hadn't even bothered to mention to my doctor because I assumed they were just Me Being Fat and that all I'd get was (yet another) lecture.
This is, of course, coupled with a lot of anger at my old doctor for not even running any follow-up tests. I've only been on levothyroxine for about a week and I already feel like I have a little more energy. I could have been spared years of suffering if that doctor had only done what she was supposed to. Fuck that.
But at the same time, I feel such relief. This all wasn't just me being a bad and lazy person. There was actually something wrong. And, even better, hypothyroidism is pretty easy to treat. I just wish I hadn't gone through over three years of unnecessary suffering when I could have gotten this treatment then.
This topic is part of a series. It is meant to be a place for users to discuss creative projects they have been working on.
Projects can be personal, professional, physical, digital, or even just ideas.
If you have any creative projects that you have been working on or want to eventually work on, this is a place for discussing those.
It's funny. I've been using Linux since the old Mandrake days (year 2000 I think). I've used Slackware, Gentoo, Void, Fedora, OpenSuse, Arch and so on. I love Linux in general, there is not other OS I would use.
Every distro has it's ups and downs and the only one I am content with is Void Linux, but I still don't really love it.
Void uses runit instead of systemd, which I prefer as an init system, but this means that if you want to use a major DE like Plasma you end up with some functionalities not working right.
So I want a minimalish system like Void that has access to the latest KDE Plasma, uses systemd and all the regular stuff, but IT IS NOT ARCH.
Why I don't like Arch? I think it tends to break too often, you have to stay on top of updates and having only one version of the kernel installed bugs me. Void Linux is rolling and NEVER breaks. I'm not exaggerating here. It never broke on me.
OpenSuse Tumbleweed is an alternative, but like Fedora, it does not ship with proprietary codecs so you have to jump through hoops to install the correct packages. It is just a matter of installing opi and typing "opi codecs", but you can bet that in the next weeks some breakage when updating will happen.
This happens to me with Fedora too. I install the RPMFusion repository and install the codecs. Every now and then things break because of it and I need to troubleshoot things.
Not to mention that when you install Plasma with Fedora or Opensuse, it ends up installing a thousand unnecessary things. I can disable the recommended packages/weak dependencies, trim things down and cut here and there, but I always feel like i lost control of things.
Oh and OpenSuse TW always gave me trouble with the wayland session of Plasma not working properly.
Gentoo is out of the question. I used it for years and had fun, but I don't care about all the compilation anymore.
Debian would be a great choice if packages weren't too old. I prefer a rolling release model or at least something like Fedora that is pretty up to date.
So in the end I stick with Void (without using Plasma), but still bitter about it.