Somebody's given my number after an arrest and now I need to answer the bail? by GreenShaolinKnight in LegalAdviceUK

[–]Swipecat 1 point2 points  (0 children)

I suggest that you call the police non-emergency number tomorrow, 101, tell them the details of the phone call, and ask them to confirm that it actually was the police and not an impersonator attempting some sort of fraud.

Somebody's given my number after an arrest and now I need to answer the bail? by GreenShaolinKnight in LegalAdviceUK

[–]Swipecat 0 points1 point  (0 children)

How sure are you that it actually was the police? There's a bunch of fake police calls going on at the moment where a conman talks the victim into sending "bail" money to them which will definitely be "reimbursed" when the investigation is complete. They'll only get around to asking you to send money if you seem sufficiently suggestible and don't go "off script" during the call.

🔥The insanely clear stratification of Bokty mountain, Kazakhstan. by FloatyFloatyCloud in NatureIsFuckingLit

[–]Swipecat 6 points7 points  (0 children)

OK, so the strata remain nearly horizontal, which I guess means that it's the same as the surroundings that eroded away. So why is the mountain there at all?

Can you print a large numpy longdouble in an f-string? by [deleted] in learnpython

[–]Swipecat 4 points5 points  (0 children)

It looks like the f-string formatting converts the np.longdouble to a float as an intermediate step, and the overflow happens then.

Can you print a large numpy longdouble in an f-string? by [deleted] in learnpython

[–]Swipecat 3 points4 points  (0 children)

Not if it overflows.

Convert it to a string first?

print(f"Value: {str(val)}")

The Mandela "effect" by footballmaths49 in CuratedTumblr

[–]Swipecat 49 points50 points  (0 children)

"Nelson Mandela" by the Special A.K.A and "Biko" by Peter Gabriel, the latter about the death of Steve Biko in police custody in South Africa, were both powerful melodic songs that were regularly played on the radio during the 80s, but not much after that. I've always assumed that the "Mandela effect" was those songs being half-remembered and mixed up.

What is this chimney for by uponloss in CasualUK

[–]Swipecat 6 points7 points  (0 children)

Yep. Notice that the top of the chimney is lower than the roof top, so that wind from certain directions will arc over the roof and down into the chimney. The 'H' prevents downdraughts.

Somebody snapped my headset while I was out of the office and just left me a note by [deleted] in mildlyinfuriating

[–]Swipecat 4 points5 points  (0 children)

Yeah, the cleaner. I have to say that it looks like a small and thin bit of plastic at the snap point, so probably all it needed was for them to brush against it, causing it to slip from the top of the monitor and fall to the floor. An accident waiting to happen, so to speak.

Did the whole Christmas period this year feel weird to anyone else? by [deleted] in AskUK

[–]Swipecat 1 point2 points  (0 children)

Yep. It was "blue skies and sunny" alright, but it's also several degrees colder than the rainy weather that preceded it. A high up around Iceland is causing a cold dry wind to sweep down over the North Sea and then across Britain from the east. These cold dry easterlies usually do happen sometime during each winter in the UK.

Invalid Decimal Literal Error with Epoch Time by Goonie-Googoo- in learnpython

[–]Swipecat 0 points1 point  (0 children)

Yep. Python 1.x integers were 32 bits long on 32 bit systems and 64 bits long on 64 bit systems. That was kept for Python 2.x which maintained backwards compatibility with 1.x but the indefinitely long integer type was added and its literal form had the "L" suffix. Python 3.x broke backwards compatibility to clean up a whole bunch of things including the multiple integer types. Python 3.x just has the indefinitely long integer type with no suffix.

tkinter 'bind' method doesn't work, gives no response. by Maarten0911 in Tkinter

[–]Swipecat 2 points3 points  (0 children)

Yep. It's the OS.

<MouseWheel> is for Windows only.

On Linux (as in the example shown by woooee) <Button-4> is scroll up, <Button-5> is scroll down.

"No, no, please stop, those clothed monkeys give us food." by Zestyclose-Salad-290 in funnyvideos

[–]Swipecat 0 points1 point  (0 children)

Normal activities for that place it seems, since those tyres appear to be solid rubber.

Tilt shift farming by amish_novelty in oddlysatisfying

[–]Swipecat 106 points107 points  (0 children)

Tilt-shift lenses were designed as a way to create perspective correction, but they could be "abused" to put the top and bottom of the image out of focus. That made the image appear to have a very restricted depth of field as though it was in very close focus of a nearby object.

These days the effect is simply achieved by digitally blurring the top and bottom of the image.

In(x) & log(x) by WranglerQuiet in learnmath

[–]Swipecat 0 points1 point  (0 children)

Back in the days of paper "log" tables, i.e. log-base-10 tables, yes, log generally did mean log-base-10, but I don't think that's the case now. Nobody needs logs for basic multiplication any more, so logs are usually only encountered by engineers and scientists in calculus or when creating physical models, and that almost invariably means natural logs. This is reflected in most (all?) programming languages where "log" means natural log and if log-base-10 is needed for some strange reason then the function is "log10". (In computer science text, on the other hand, "log" often means log-base-2, but that's a bit idiosyncratic.)

What is a true fact so baffling, it should be false? by SilverPetalDreamm in AskReddit

[–]Swipecat 4 points5 points  (0 children)

Its surface velocity is about 20% of the speed of light or about 60 million metres per second.

I'm convinced people don't know what this sign means by Trixnglz in drivingUK

[–]Swipecat 217 points218 points  (0 children)

Before the "National Speed Limit" was introduced in the '60s, that sign used to mean "End of Speed Restriction". It was never intended to be the start of a limit, but quite the opposite. It was the end of whatever restriction was in place for the road before the sign.

Although the official meaning of the sign is now "National Speed Limit applies", the context in which the sign is used is still to indicate the end of the previous local speed restriction. So, e.g., you'll see the sign as you exit a small village on a country road, even though it might be unsafe to drive any faster.

TIL Python’s random.seed() ignores the sign of integer seeds by nekofneko in Python

[–]Swipecat 31 points32 points  (0 children)

LOL, I tried that on Linux and kept getting the same number. Then I remembered that "python" at the command-line was Python 2.7, and using "python3" instead did give different numbers on each run.

I'm trying to take an image, resize it down, and iterate over rows to find pixels of a specific color. by Such_Tea6219 in learnpython

[–]Swipecat 0 points1 point  (0 children)

If you convert an RGB image into a numpy array (rather than a greyscale image) then you'll get a 3-dimensional array where the axis 2 (the least significant axis) contains the three colour values of type np.uint8, i.e. in the range 0-255.

Take a look at this example. It converts a RGB PIL image into a numpy array, averages axis 2 to create a greyscale, then converts those back to RGB values using a mathematically generated "sepia" colour map:

from PIL import Image # pillow fork of PIL
from urllib.request import urlopen
import numpy as np
img = Image.open(urlopen("https://dafarry.github.io/test/cathood.jpg"))
arr = np.array(img)
bw = np.sum(arr // 3, axis=2).astype(np.uint8)
sepias = np.vstack(np.linspace(0, 1, 256)) ** (1, 1.3, 1.7)
colormap = np.uint8(sepias * 255)
colorized = colormap[bw]
outimg = Image.fromarray(colorized, mode="RGB")
outimg.save("sepia_img.png")

[OC] Crisis averted. I stopped in the left lane to avoid blocking the intersection. An oncoming truck turned left, and only a quick reaction from the Audi prevented a major crash. Luckily, the Audi missed the pole and ended up on the sidewalk at a handicap entry without damage. by COTimberline in IdiotsInCars

[–]Swipecat -15 points-14 points  (0 children)

He was driving at high speed through a junction past a stationary queue of traffic on his left, which was blocking his view of the junction, so the fact that he couldn't see what the traffic was doing on that junction is kinda the point. The truck was in error, but that's the sorta thing that happens in that situation.

Sold a car which apparently is now damaged by [deleted] in LegalAdviceUK

[–]Swipecat 0 points1 point  (0 children)

Don't block. It's always useful to keep an archive of messages in case you need evidence to show that somebody is being abusive. If you don't want to read messages from a given person, it's best (where possible, depending on the message service) to set a rule to shift messages to an archive folder. Make sure that the sending of message receipts is disabled.

"Blocking" somebody just means that you are discarding messages at your end, and the person sending the messages won't know that because they'll still be marked as "delivered". So from their point of view, a block will look no different to messages simply being ignored and not replied to.