What is the newest installment of 'Random Thoughts' on Physics Forums?

  • Thread starter Thread starter Evo
  • Start date Start date
  • Tags Tags
    Random Thoughts
AI Thread Summary
The discussion revolves around frustrations with current documentary programming, particularly criticizing the History Channel's focus on sensational topics like time travel conspiracies instead of real historical content. Participants express disappointment over National Geographic's sale to Fox, fearing a decline in quality programming. The conversation shifts to lighter topics, including humorous anecdotes about everyday life, such as a malfunctioning kitchen fan discovered to be blocked by installation instructions. There are also discussions about the challenges of understanding various dialects in Belgium, the complexities of language, and personal experiences with weather and housing in California. Members share their thoughts on food, including a peculiar dish of zucchini pancakes served with strawberry yogurt, and delve into mathematical concepts related to sandwich cutting and the properties of numbers. The thread captures a blend of serious commentary and lighthearted banter, reflecting a diverse range of interests and perspectives among participants.
  • #10,151
As far as salaries go, I wouldn't consider that as making much of a killing.
 
  • Like
  • Haha
Likes BillTre and WWGD
Physics news on Phys.org
  • #10,152
Borg said:
As far as salaries go, I wouldn't consider that as making much of a killing.
Wonder the many akward cases of executors applying for the job.
 
  • #10,153
I like this journal cover:

Screenshot 2022-12-16 at 1.32.09 PM.png
Insects and similar animals (like crustaceans) have a simple computer like nervous system.
 
Last edited:
  • Like
  • Wow
Likes DennisN, pinball1970, collinsmark and 2 others
  • #10,154
Rocket powered go-kart anyone?!


I resemble that appearance. :-p
😆
 
  • Haha
  • Wow
  • Like
Likes collinsmark, pinball1970, DennisN and 3 others
  • #10,155
Astronuc said:
I resemble that appearance. :-p
Yes you do! :smile:
 
  • #10,156
  • Like
Likes collinsmark, pinball1970, BillTre and 1 other person
  • #10,157

No good deed goes unpunished​

https://www.wxyz.com/news/local-new...-did-detroit-police-accuse-her-of-stealing-it
She tried to return a lost credit card. Why did Detroit police accuse her of stealing it?
Judge calls prosecution 'absurd and ridiculous and wrong,' tosses charges
For four months, Sandra fought to clear her name. In October, the case went to a jury trial where—finally—her nightmare came to an end.

“This is unbelievable to me,” said an exasperated Judge Paul Cusick of Wayne County Third Circuit Court. “No trier of fact—even in the light most favorable to the prosecution—could ever think that Ms. Wilson is guilty beyond a reasonable doubt.”

Before the case could go to the jury, Judge Cusick threw it out.

“Absurd and ridiculous and wrong,” he bellowed. “And this was not a thorough investigation.”
 
  • Sad
  • Like
Likes collinsmark, Borg and BillTre
  • #10,158
Don't know if it is a coincidence. When I started using my step -tracking app on my phone, I'd get ads for weigh loss products, , discount food, cigarettes. Now, after a total of some 80k steps, I got one for ETFs, and one for Mazda. Im moving all up.
 
  • #10,159
WWGD said:
When I started using my step -tracking app on my phone, I'd get ads for weigh loss products, , discount food, cigarettes.
I dislike this sort of thing, which is why all my privacy settings are set to "nope".

Vaguely related: https://www.wastedtalent.ca/comic/big-mother-watching (for context, the woman in the comic is the author herself, and she got married a month or two before this one was published).
 
  • Like
Likes WWGD
  • #10,160
Ibix said:
I dislike this sort of thing, which is why all my privacy settings are set to "nope".

Vaguely related: https://www.wastedtalent.ca/comic/big-mother-watching (for context, the woman in the comic is the author herself, and she got married a month or two before this one was published).
Yes, I've been putting off doing that for a while now. I do remember, though, the story about the father who suddenly started receiving coupons for pregnancy-related products, supposedly for his daughter. And, puff, her daughter ended up pregnant. It was found that the company in question had machine-learnt the daughters purchases and concluded she either was or soon would be pregnant.
 
  • #10,161
WWGD said:
Yes, I've been putting off doing that for a while now.
I take it you mean increasing your privacy settings? I find I do actually see fewer ads and the ones I do see are largely irrelevant to me and hence much easier to ignore.
 
  • #10,162
Ibix said:
I take it you mean increasing your privacy settings? I find I do actually see fewer ads and the ones I do see are largely irrelevant to me and hence much easier to ignore.
I had taken a roundabout approach, offering false information, to throw them off. I recently was congratulated on my fourth birthday of the year by Google, and my bank. Just curious as to what type of rapport my bank believes I have with them to inject themselves into my private life.
 
  • Haha
Likes berkeman
  • #10,163
So what's the big deal with leap years ? Arent they just the ones that are divisible by 400?
Just looking at other definitions that seem unnecessarily complicated, that consider division
by 4, by 100, etc. Just test whether it's divisible by 400!
 
  • #10,164
WWGD said:
So what's the big deal with leap years ? Arent they just the ones that are divisible by 400?
Just looking at other definitions that seem unnecessarily complicated, that consider division
by 4, by 100, etc. Just test whether it's divisible by 400!
So the next leap year will be 2400?
 
  • #10,165
DrGreg said:
So the next leap year will be 2400?
I believe so. I've seen some very long, roundabout definitions that just seem to amount to that. Wonder if I'm missing something.
 
  • #10,166
WWGD said:
I believe so. I've seen some very long, roundabout definitions that just seem to amount to that. Wonder if I'm missing something.
You mean NOT leap years?
 
  • Like
Likes collinsmark and Borg
  • #10,167
Bystander said:
You mean NOT leap years?
Aren't 2000, 2400, 2800, etc. Leap years?
 
  • #10,168
Leap years are every four years except if the year is divisible by 400. The year 2000 was not a leap year.
 
  • #10,169
WWGD said:
Aren't 2000, 2400, 2800, etc. Leap years?

Yes, but so is 2024.

Borg said:
Leap years are every four years except if the year is divisible by 400. The year 2000 was not a leap year.

That's not quite right. The year 2000 was a leap year.

Every year evenly divisible by 4 is a leap year, unless...

Unless it is also evenly divisible by 100, in which case it is not a leap year, unless...

Unless it is also evenly divisible by 400, in which case it is a leap year.

[Edit: this is how the Gregorian calendar works. Other calendars may have different rules.]
 
  • Like
Likes WWGD and Borg
  • #10,170
Ah. My bad. It's been a while and I got thrown off a bit.
 
  • Like
Likes collinsmark
  • #10,171
A bit of messed up, leap-year trivia for ya from https://learn.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year

"Because versions of Microsoft Excel earlier than Excel 97 handle only years from 1900 to 2078, only the year 1900 is subject to the 100/400 exclusion rule of leap years in Microsoft Excel. However, in order to be compatible with other programs, Microsoft Excel treats the year 1900 as a leap year."​

So, because Microsoft wanted to maintain backwards compatibility with older systems that did things wrong, they continue to be wrong. Gahh! :headbang:

TLDR take-home: Don't inherently trust Microsoft Excel when it comes to leap-years (particularly 1900 or before).
 
  • #10,172
collinsmark said:
Don't inherently trust Microsoft Excel
Even shorter. <Once bitten twice shy emoji>
 
  • Like
Likes collinsmark
  • #10,173
Some people had a bad day.
https://www.yahoo.com/news/train-derails-crashing-truck-carrying-220213463.html

In this day and age of rapid communication, why can't the responsible individuals communicate? The trucking company, or perhaps the escorts, should have conferred with the railroad as to the schedule, or that simply should have check the line to see if it was clear to take a 134 foot beam across the line. It's not clear from the video why the truck was stopped on the crossing, but ordinarily, one does not stop on a crossing - ever. Trains have the right of way - always.
 
  • Wow
  • Sad
Likes Rive and pinball1970
  • #10,174
Astronuc said:
In this day and age of rapid communication, why can't the responsible individuals communicate?

I don't know the exact requirements there but transferring irregular/oversized cargo usually requires special permit (with detailed plan about the whole route) and often done with security cars around and checkup points on the way... This one looks quite amateurish - or, rather: done attempted cheap...
Astronuc said:
It's not clear from the video why the truck was stopped on the crossing
Let me guess: the newbie driver got lost, so stopped to check the map - and totally forgot the actual length of the truck :doh:
 
  • #10,175
More images and video of the collision and aftermath. The truck driver was unharmed, but two crew members, the locomotive engineer (operator) and conductor, were injured. The lead locomotive ended up on its side in a creek. Fortunately, hazardous cargo was not involved, but diesel fuel did leak from at least one locomotive (lead).

https://newschannel9.com/news/local...d9xcYFnHJ61jQf3nLvALwN6Z1ICOqfkLKCSuIoLT_hEq0

Twitter feed
 
  • #10,176
Christmas preparations has a certain fractal-like property.
Be it cleaning or shopping: the closer it is, the more and more details popping up endlessly.
We planned to finish up everything by the end of November, but still working on it o0)
 
  • #10,177
Borg said:
Leap years are every four years except if the year is divisible by 400. The year 2000 was not a leap year.

collinsmark said:
Yes, but so is 2024.
That's not quite right. The year 2000 was a leap year.

Every year evenly divisible by 4 is a leap year, unless...

Unless it is also evenly divisible by 100, in which case it is not a leap year, unless...

Unless it is also evenly divisible by 400, in which case it is a leap year.

[Edit: this is how the Gregorian calendar works. Other calendars may have different rules.]
So 2100 is lap, but 2060 is not?
 
  • #10,178
Trying to see how to get Python to take a positive Integer as input and output the string 1234...n
I know how to use 'a'+ 'b' , to get the string ab when a,b are given , but my efforts to do from this a loop from 1 to n haven't
worked . Thinking of starting with n as an integer, then adding ##1*10^{n-1} +2*10^{ n-2} +...n*10^{0} ## and then converting it into a string using 'str'.
 
  • #10,179
Use str(i + 1) to convert the integer to a string and then just append it to your string, no? Or you could make a list of integrrs-as-strings snd use str's join method.
 
  • Like
Likes WWGD
  • #10,180
Ibix said:
Use str(i + 1) to convert the integer to a string and then just append it to your string, no? Or you could make a list of integrrs-as-strings snd use str's join method.
Thanks, yes, I was thinking of using recursion starting with the trivial string 1 and then appending/concatenating 2, then 3, and so on , up to n.
 
  • Like
Likes Ibix
  • #10,181
I wouldn't call that recursion, but yes it should work.
 
  • Like
Likes WWGD
  • #10,182
WWGD said:
So 2100 is lap, but 2060 is not?
The other way around. 2100 will not be a leap year, but 2060 will be.

1600: Leap year
1700: Not leap year
1800: Not leap year
1900: Not leap year
2000: Leap year
2100: Not leap year
2200: Not leap year

A leap second skips a whole second, but a leap year only skips a day. What month should we leap?
 
  • #10,183
Algr said:
The other way around. 2100 will not be a leap year, but 2060 will be.

1600: Leap year
1700: Not leap year
1800: Not leap year
1900: Not leap year
2000: Leap year
2100: Not leap year
2200: Not leap year

A leap second skips a whole second, but a leap year only skips a day. What month should we leap?
Ok, my program to determine leaps will include a link to a page with a list of leaps.
And a comment: If you don't like it, go take a leap!
 
  • Like
Likes Algr
  • #10,184
At the supermarket:
" Have you seen the egg nog?"
No, I watch it all the time, and it never nogged.
" Ok, where's the Jojoba "
( Stoning): " You cannot say the name Jojoba!"
 
  • #10,185
I like this picture (looks kind of like a hammerhead shark):

Screenshot 2022-12-22 at 9.40.31 AM.png
 
  • Like
Likes pinball1970
  • #10,186
Screenshot 2022-12-22 at 12.28.14 PM.png
 
  • Like
  • Haha
Likes Ibix, collinsmark, pinball1970 and 1 other person
  • #10,187
Dang. Wind chill is -25 degrees F here right now. :oldcry:
 
  • Wow
Likes pinball1970 and berkeman
  • #10,188
Ibix said:
I wouldn't call that recursion, but yes it should work.
( This was re Python code that a positive integer n and ouputs the string 123..n )

I ended up using:
Python:
n=int(input)
for i in range(1,n+1):
     print(i, end = "")
Code from last line is pretty handy. Prints everything (here in the range (1,n+1)) and adjoins/appends that which is at the 'end' part = (Here the empty string ), therefore output is 1234..n (not sure why we're using n+1 rather than n)

There was another way of adjoining through ("".join(i,j) ), which does output the string 'ij' , but I would have had to iterate with a base case. Will try it some other time.

Though nots ure why I was told to include:

if __name__ == '__main__':
 
  • #10,189
dlgoff said:
Dang. Wind chill is -25 degrees F here right now. :oldcry:
The wind is not letting up. Here is what a Google search shows:
Dangerously cold wind chills from 25 below zero to 40
below zero.
 
  • Wow
Likes pinball1970 and Ibix
  • #10,190
dlgoff said:
The wind is not letting up. Here is what a Google search shows:
Dangerously cold wind chills from 25 below zero to 40
below zero.
Sorry to hear. Are you required to go out? Do you have enough provisions to last you through it?
 
  • Like
Likes pinball1970
  • #10,191
WWGD said:
(not sure why we're using n+1 rather than n)
Because range(a,b) gives a, a+1,..., b-1, consistent with range(b) giving 0, 1,..., b-1.
WWGD said:
There was another way of adjoining through ("".join(i,j) ), which does output the string 'ij' , but I would have had to iterate with a base case. Will try it some other time.
This lets you do it as a one-liner, assuming you've read in n already:
Python:
print("".join([str(i+1) for i in range(n)]))
(You may be able to omit the square brackets - not 100% sure off the top of my head.)
WWGD said:
Though nots ure why I was told to include:

if __name__ == '__main__':
__name__ stores the name of the python module, and if it is __main__ then it's the entry file - i.e., the user ran python thismodule.py, rather than the module being brought in via an import statement. If you put any "script" style code (rather than class/variable/function definitions) in that if statement then you can include the module via import in another program, and all your classes etc are available to that program without whatever script you wrote getting executed. The primary use I've made of this is to write some working demo code inside a library:
Python:
class MyClass:
    def whatever(self):
        return "whatever"
if __name__ == "__main__":
    print("Demo of MyClass' whatever() method:")
    c = MyClass()
    print(c.whatever())
Then if a user runs this module they get a little demo, but if they import it they just get the class and no random output from my little demo script. It's a bit pointless if your python file doesn't define anything you could ever possibly reuse, but using it anyway is probably not a bad habit to get into.
 
  • Like
Likes WWGD
  • #10,192
WWGD said:
Sorry to hear. Are you required to go out? Do you have enough provisions to last you through it?
I'm retired, so will be staying inside. I will only go out to drive to my mailbox. I've got enough to eat for a while. Thanks.
 
  • Like
Likes pinball1970, WWGD, Ibix and 1 other person
  • #10,193
dlgoff said:
I'm retired, so will be staying inside. I will only go out to drive to my mailbox. I've got enough to eat for a while. Thanks.
Just in case, the US Soccer team may be flying over , something may happen to the flight. In case you get too hungry. ;).
 
  • Haha
Likes dlgoff
  • #10,194
Still unclear why/how Quic/Http3 with UDP is preferred to Https with TCP/IP . Of the two, only Https with Tcp/Ip has ways of verifying whether packets arrived.

 
  • #10,195
WWGD said:
Still unclear why/how Quic/Http3 with UDP is preferred to Https with TCP/IP . Of the two, only Https with Tcp/Ip has ways of verifying whether packets arrived.

 
  • Like
Likes WWGD
  • #10,196
dlgoff said:
Dang. Wind chill is -25 degrees F here right now. :oldcry:
It's 17 degrees F and the wind chill is still -25 degrees F and every thing is ice covered. I hate winter.
 
  • #10,197
dlgoff said:
It's 17 degrees F and the wind chill is still -25 degrees F and every thing is ice covered. I hate winter.
I think of it this way: it's the season to eat rich, heavy foods that would knock you out if you ate them in winter.
 
  • Like
Likes dlgoff
  • #10,198
  • Like
Likes Borg
  • #10,199
Merry Christmas Physics Forums.
 
  • Like
Likes WWGD, BillTre, OmCheeto and 3 others
  • #10,200
Merry Christmas! 🍻
 
  • Like
Likes WWGD, pinball1970, BillTre and 2 others

Similar threads

35
Replies
2K
Views
52K
Replies
3K
Views
155K
Replies
2K
Views
167K
Replies
4K
Views
230K
Replies
3
Views
2K
Replies
8
Views
2K
Back
Top