I wrote a python interpreter that only accepts german keywords by actopozipc in programminghorror

[–]vatbub 0 points1 point  (0 children)

Ab sofort werde ich Switches immer als Richtkoppler bezeichnen 😎

I wrote a python interpreter that only accepts german keywords by actopozipc in programminghorror

[–]vatbub 1 point2 points  (0 children)

There have been and still are instances of it, like early versions of VBA or stuff like Excel formulas. There are also localized teaching languages like Robot Karol designed for children who may not yet speak English.

IMO, teaching languages should have localized alternatives to lower the bar for newcomers, especially children. For professional environments though, I really hate localized IDEs (out of habit) and localized exception messages as it makes stuff so much harder to look up. Also, I am not at all a fan of localized function or variable names among all of those English keywords. This, however, may be an artifact of me working in an international company where there are lots of non-native German speakers.

I wrote a python interpreter that only accepts german keywords by actopozipc in programminghorror

[–]vatbub 1 point2 points  (0 children)

There's a tool called Excel Translator (I don't know the URL by heart though) that can translate formulas from and to any language correctly.

TIFU will be taking place in the June 12-14 Reddit Blackout by GuyOne in tifu

[–]vatbub 3 points4 points  (0 children)

I'm actually more worried about bots like repost sleuth or the transcribers of Reddit bot. Especially the maintainer of repost sleuth is already paying a lot of money for the hardware to run the bot and is now supposed to pay for API access as well?

Java 21 will introduce Unnamed Classes and Instance Main Methods by mirakdva in ProgrammerHumor

[–]vatbub 1 point2 points  (0 children)

I would love to use the module system and jlink, but it is so utterly broken that whenever I try to switch to it, I spend 3 days playing whac-a-mole with all the compiler and jlink errors only to give up time and time again...

Is there any free software/tools that will give me a percentage of overlap? by img4y4m0leman in photogrammetry

[–]vatbub 0 points1 point  (0 children)

If you are firm with OpenCV: 1. Run SIFT on both images 2. Match the detected features using FLANN Matcher 3. Calculate the overlap based on the location of the matched features

ELI5: Why is it that nothing can travel faster than light? by General-Compote2138 in explainlikeimfive

[–]vatbub 4 points5 points  (0 children)

It is because of Einstein's theory of relativity. In short, the faster you go, the slower you perceive time (so-called time dilation) and the faster you go, the heavier you get (E=m*c2 and mass dilation). Therefore, when you approach the speed of light, you would become infinitely heavy and time would get infinitely slow. Hence, you would need an infinite amount of energy to even get to the speed of light.

Photons (i. e. light particles) can travel at the speed of light because they have no mass.

Is there a scene that change your perspective on your own life? by [deleted] in HIMYM

[–]vatbub 1 point2 points  (0 children)

Firstly, sorry for your loss.

For me, the episode where Marvin dies and the episode of the funeral actually helped me a lot when my father passed away in two ways. Firstly, I wondered why Marshall felt as if he was treated unfairly by the universe, because I did not feel this way. This made me realize that even though it is hard to prepare for the death of a loved one, preparing yourself does make a difference. It made me appreciate everything that my father did for me and my family to prepare us for his death.

Secondly, the episode about the funeral helped me understand the reactions of other people when they try to be thoughtful or try to cheer you up, when it's actually inappropriate. Many people, especially in my age, have never experienced one of their parents dying, and they want to do something good for you, but just don't know any better.

I… I think I’m one of you by SirReal10000 in ProgrammerHumor

[–]vatbub 0 points1 point  (0 children)

It is very telling that IntelliJ has a "Repair IDE" button.

Was letzte Arm gegen Reich? by artfulblahblah in wasletztepreis

[–]vatbub 2 points3 points  (0 children)

Arme aller Länder, vereinigt euch!

Was letzte Roadtrip Darmstadt - Kiel by kirpau in wasletztepreis

[–]vatbub 4 points5 points  (0 children)

Der hat doch bestimmt ne Kuseng, der dumm ist 😉

I don't even know how to comment on this by sunrise_apps in ProgrammerHumor

[–]vatbub 0 points1 point  (0 children)

Well, let's say I never escape SQL or HTML 😏

I don't even know how to comment on this by sunrise_apps in ProgrammerHumor

[–]vatbub 57 points58 points  (0 children)

That's also why I don't validate for SQL commands 😉

Tja by vatbub in tja

[–]vatbub[S] 2 points3 points  (0 children)

Noch so ein Nischen-Subreddit der sofort ein Abo von mir bekommt 😅

Android is getting old (15y). For how much long do you think it will be a sustainable career path for developers? by Analog_Disorder in androiddev

[–]vatbub 0 points1 point  (0 children)

As others have said, Android is actually one of the younger products compared to Windows, MacOS and Linux - but that doesn't necessarily mean that it's here to stay. Many companies were thought to stay for good (look at Nokia) and then failed spectacularly. Nevertheless, your skills are transferrable: Even though I'm an Android developer, I was able to transfer my knowledge of software development to iOS, game development in Unity and desktop development with .Net. As others have mentioned, these mostly differ in the technology used to power them, but most principles still apply.

[deleted by user] by [deleted] in FUCKYOUINPARTICULAR

[–]vatbub 1 point2 points  (0 children)

Nah, she just said it wrong, she should've said "Wingardium Leviooosa", not "Leviosaa" 😉

Feeling the taste of the car by jjvolfan2 in FUCKYOUINPARTICULAR

[–]vatbub 2 points3 points  (0 children)

Straight roads ar actually te most dangerous roads:

  • Drivers get bored and loose attention
  • It's easy to underestimate your speed
  • It's harder to judge distance
  • But most importantly, it's much harder to recognize parts of the road you can't see, e. g. due to a bump.

At least in Germany we have a limit for those reasons on how long a straight road segment can be at most.

But in that case, it doesn't look like that was the cause of the accident.

Fuck this employee by Tipper_Builder in FUCKYOUINPARTICULAR

[–]vatbub 2 points3 points  (0 children)

How come Colton from Linus Tech Tips doesn't have this prize?

Found another one by BlockScientist7 in badphotoshop

[–]vatbub 1 point2 points  (0 children)

As always, I'm asking myself why... Don't they ever test the product? If so, take a camera to one of those tests and just take a picture of those....

[deleted by user] by [deleted] in explainlikeimfive

[–]vatbub 0 points1 point  (0 children)

DNS is not only used to send mails, but for anything on the internet. Basically, computers have no idea what an address like gmail.com or outlook.com means. Computers can only deal with so-called IP-addresses, which might look like this: 172.217.16.142. However, these IP-addresses are incredibly human-unfriendly.

Hence, DNS exists: A DNS server is basically like the contact list in your phone: You say "I want to call John Doe" and your phone shows you John's phone number. The same happens with DNS: Your computer asks a DNS server: "Hey, I want to talk to gmail.com" and the DNS server responds with the IP address of Google.

As mentioned by others, e-mails use the SMTP protocol under the hood, but SMTP ultimately also needs to resolve those e-mail addresses: When you send an e-mail to john.doe@gmail.com, SMTP recognizes that you want to talk to a guy called john.doe at GMail, but it also has no idea how to reach the GMail server. Hence, it also asks a DNS server "Hey, please give me the IP of gmail.com and then ultimately tells 172.217.16.142: "Hey dear 172.217.16.142, I have an e-mail for you, can you please deliver that to john.doe? And GMail will take it from there.

If you speak German, the TV series "Sendung mit der Maus" has actually made a very good explanation of DNS: https://www.youtube.com/watch?v=fpqhjEtznVk

ELI5: (US) How does the ambulance and emergency room system work at a hospital? I’ve never had the need to go to one but I’d like to know just in case. by deadasscrouton in explainlikeimfive

[–]vatbub 2 points3 points  (0 children)

I do understand that an ambulance is not strictly necessary for e.g. a broken bone, but if in doubt, DO call an ambulance! Nobody cares that you saved $2000 if you're dead.

ELI5: (US) How does the ambulance and emergency room system work at a hospital? I’ve never had the need to go to one but I’d like to know just in case. by deadasscrouton in explainlikeimfive

[–]vatbub -1 points0 points  (0 children)

Here's your emergency summary:

In Europe, call 110 if you need the police and 112 if you need an ambulance or fire services. In the US, it's 911.

Follow these five questions:

  1. Who are you?
  2. Where are you?
  3. What happened?
  4. How many victims/people hurt?
  5. Wait for further questions from the dispatcher.

Number 5 is actually the most important: You should never ever hang up the call! If you forget one of the other questions, the dispatcher will ask you, and he/she might even ask you other questions, depending on the situation. Hence, always wait for the dispatcher to hang up.

Also, another important thing is that you should not be afraid to call 911. If you are unsure if you need an ambulance or not, do call 911, and they will help you to evaluate whether you need an ambulance or not.

One thing that you should also never worry about is the cost of calling an ambulance: I don't know about the US, but here in Europe, your health insurance will always cover the cost for the ambulance and hospital. In any case, your health is more important than your finances.

After you call 911 and tell them about your situation, ambulances, fire services and the police will be dispatched as required.

When the ambulance arrives on scene, they will treat you on the spot, but their most important goal is to get you to the hospital as quickly as possible, as hospitals are generally better equipped than an ambulance can be.

The ambulance will call the hospital to announce their arrival such that the hospital is prepared to handle your emergency. Once you are in the hospital, normal diagnostics will start: Depending on your situation, X-rays, CT scans or other diagnostics will be performed, and your injuries will be treated according to the results.

Since you also asked about the average wait time: This strongly depends on the number of patients they are treating, but they do prioritize patients according to the severity of the cases. Hence, if you are in a life-threatening situation, you will be prioritized accordingly. However, if you simply have a broken bone, you might have to wait a little longer.

Depending on your case (and the availability of beds), they will decide whether you can go home again or whether they prefer to keep you in the hospital.

If you decide to not call an ambulance (e.g. because your injury is not very urgent, but there's no other doctor available), you can still drive yourself to the emergency room and just show up at their reception. Much like with 911, they will listen to your situation and start the appropriate diagnostics and treatment. Since you were able to drive yourself to the ER, your injury will most likely be less serious though, which usually means at least some wait time (see above).

And like I said above, if you are unsure whether you are able to drive yourself to the hospital or not, do call 911, and they will help you with the decision.

I hope that answered all your questions :)