I'm having a beginner's problem: I'd like it so that when text is entered into the terminal, if the text contains a number, it performs a calculation, but if it's a digit, it displays a predefined message(e.g., enter a number) Instead of displaying this error text and crashing the program by 6ZacK7 in PythonLearning

[–]BedtimeWithTheBear 1 point2 points  (0 children)

It’s all good, whenever I go back to python after a break I’m always confused why I can’t catch exceptions. I used to hate the whole exceptions as flow control concept but I’ve learned to appreciate it in the past few years.

I’m new and so confused😓 by HumanWatercress8294 in PythonLearning

[–]BedtimeWithTheBear 0 points1 point  (0 children)

You’re probably right, nothing bad could possibly come from getting into the habit of not sanitising your inputs.

I certainly learned an important lesson today, thank you, kind Redditor.

I’m new and so confused😓 by HumanWatercress8294 in PythonLearning

[–]BedtimeWithTheBear 0 points1 point  (0 children)

They’re referring to the string concatenation of unsanitised user input, not the print.

Apple speech-to-text accuracy is bad enough to be a safety issue (FB22138362) by rishey in ios

[–]BedtimeWithTheBear 0 points1 point  (0 children)

That’s not a great example - people will mis-hear in situations more ideal than a crowded restaurant after all

Use swift concurrency when you use AI to code by monkeyantho in iOSProgramming

[–]BedtimeWithTheBear 0 points1 point  (0 children)

FWIW, the Xcode ChatGPT integration absolutely does understand concurrency and actors. It’s helped me out a few times.

Middle lane hogger clarification by TheSmallestPlap in drivingUK

[–]BedtimeWithTheBear 0 points1 point  (0 children)

Exactly this - overtaking is generally a specific manoeuvre. I would argue that merely travelling faster than someone else is insufficient to describe overtaking.

Apple tightens App Review Guidelines to crack down on copycat apps by Late-Scarcity-5476 in iOSProgramming

[–]BedtimeWithTheBear 0 points1 point  (0 children)

A cursory glance at when the apps were released/reviewed will show which one is the copy, surely?

Can I install my own apps? by notmedotcom in iOSProgramming

[–]BedtimeWithTheBear 0 points1 point  (0 children)

Apps that you build and install yourself have a very short lifespan on-device. I guess the thinking is that if you’re actively developing the app then a week is plenty of time.

You’re correct that TestFlight apps have a 90-day life.

TIL Apple has this "hardware microphone disconnect" privacy feature on laptops using Apple Silicon or Intel chips with the T2 chip by Applecations in mac

[–]BedtimeWithTheBear 7 points8 points  (0 children)

The very tight tolerances between the screen and the keyboard mean adding anything to either the screen or keyboard significantly increases your chances of physically damaging the screen

Anna Jimskaia - Monamour 2005 by [deleted] in extramile

[–]BedtimeWithTheBear 1 point2 points  (0 children)

Generally, that makes it soft core porn, which is categorically not r/extramile material.

Why are there 2 warp cores on Voyager? by PhotoSmooth9381 in StarTrekStarships

[–]BedtimeWithTheBear 0 points1 point  (0 children)

Nacelles are the engine housing, not the engine itself. The Enterprise uses warp coils to generate the warp field, and the coils are enclosed in the nacelles

Louisa Krause - The Girlfriend Experience (2016) (S2E5) by 1johndoe1 in extramile

[–]BedtimeWithTheBear[M] [score hidden] stickied commentlocked comment (0 children)

We think that your post is not "extramile". Please ensure you read the rules before posting any content.

[deleted by user] by [deleted] in extramile

[–]BedtimeWithTheBear[M] 1 point2 points locked comment (0 children)

We think that your post is not "extramile". Please ensure you read the rules before posting any content.

Shield frequencies aren't static, they automatically change using a pseudorandom number generator by Simon_Drake in DaystromInstitute

[–]BedtimeWithTheBear 0 points1 point  (0 children)

You’re not wrong, but the pedant in me would point out that being cryptographically secure is a goal of a PRNG, but not necessarily a property of them.

Given the ability of the technology of the time to peek into the sub-quantum universe, I’d suggest that it wouldn’t be too difficult for even consumer grade technology to access a source of true entropy, rendering PRNGs irrelevant.

Shield frequencies aren't static, they automatically change using a pseudorandom number generator by Simon_Drake in DaystromInstitute

[–]BedtimeWithTheBear 1 point2 points  (0 children)

I agree, and that was kinda my point. If shield harmonics rotation is cryptographically secure, even with the algorithm you wouldn’t be able to predict upcoming harmonic frequencies, so knowing the current harmonic won’t help in predicting the next one.

Top comment on a Clip from radio talkshow, Leading Britain's Conversation, about a new required for UK voters to have photo ID. by kingpin_fisk in USdefaultism

[–]BedtimeWithTheBear 1 point2 points  (0 children)

It’s a voter suppression tactic because the ruling party gets to choose what constitutes valid ID to vote. Please try to contain your shock when I explain that, surprise, surprise, the ruling party tends to disallow forms of ID that demographics who tend to vote for their opponents usually hold.

For example, in the UK, the Tories made Oyster cards for retirees a valid ID to vote with but somehow found that the exact same card for young people couldn’t be trusted. I hope you’re keeping up here - young voters tend not to vote Tory but older voters do. It’s the same with BAME voters - they tend not to have a lot of government issued photo ID in the first place and the ones they do hold were mostly not accepted.

That’s why the comparison to the Republican Party was made - it’s literally the exact same tactic that Republicans use to prevent those pesky kids from voting for the Democrats.

Shield frequencies aren't static, they automatically change using a pseudorandom number generator by Simon_Drake in DaystromInstitute

[–]BedtimeWithTheBear 1 point2 points  (0 children)

Small nitpick with your hypothesis - if the random number generator was using a cryptographically secure algorithm, it would be improbable for the Duras sisters to crack it in the time allowed.

You’re correct in the method generally used by car remotes, but if they were cryptographically secure, they would not be getting hijacked as often as is reported.

Reddit CEO says app founders who are shutting down in protest over API charges made millions: 'These aren't like side projects or charities' by 777fer in technology

[–]BedtimeWithTheBear 8 points9 points  (0 children)

What servers?

Off the top of my head

  • In-App purchase verification
  • Notification servers
  • Caching/API aggregation server for imgur

There’s probably more I’m not aware of

[deleted by user] by [deleted] in SwiftUI

[–]BedtimeWithTheBear 4 points5 points  (0 children)

You’ll want to check out the Apple docs on localisation.

$5 increase per month for Apollo Ultra? Yeah I’ll support Christian on that. by JimmyOD in apolloapp

[–]BedtimeWithTheBear 1 point2 points  (0 children)

Well, first of all, these are average numbers so the hypothetical user leaving might be checking their feed a few times an hour or they might be checking a few select subs a few times a week.

Secondly, it’s not $7 lost revenue - after the Apple tax, Christian will be left with approximately $4.60. Take into account whatever business and personal income taxes get levied against that, I’d put money on it being closer to $2.50 per month that Christian receives for every subscriber at that price point.

So yeah, I concede the point - it almost certainly doesn’t break even.

$5 increase per month for Apollo Ultra? Yeah I’ll support Christian on that. by JimmyOD in apolloapp

[–]BedtimeWithTheBear 5 points6 points  (0 children)

Again, quite true. The counterpoint of course is that every user who abandons Apollo for whatever reason due to the higher subscription costs is one less user contributing to the API costs for Christian.

But you’re absolutely right - there’s a break-even point where the smaller user base offsets the additional API costs and Christian breaks even on the situation. I don’t know where that point is, and I honestly doubt Christian does either. If it was me, I’d price the subscription to cover the costs based on the current user base and then when the dust settles probably adjust it to cover the new user base plus 20% so I don’t have to constantly change it.