Recent comments in /f/explainlikeimfive

Tsikura t1_ixts9hf wrote

Every file has a header. Basically a string of information encoded within the file that helps programs identify what kind of file it actually is even if you rename or even delete the extension. A good image viewer will be able to identify based on that.

If Photoshop can't do it, then that just means it doesn't bother checking for the right file format or it's just a bug.

−1

Fat_IRL t1_ixts9e2 wrote

Whatever application you're using to open the file in question knows how to display the file in question.

File extensions don't actually matter, they're for humans, not computers. More or less.

Most every file of any type has a piece of info at the beginning that tells your computer how it would like be opened and what type of file it is. Basically a hidden 'real' file extension. But you can open a .jpg in a text editor any time you want. Your computer assumes that's not what you really want to do, so it generally doesn't give you that option without you forcing it to.

If you wanna go deeper, it's all numbers and letters and the extension does not matter at all. Like almost every computer game you play, the file that saves your progress is very often just a .zip file renamed.

2

Nemesis_Ghost t1_ixts3tj wrote

They can.

If you are talking about double-clicking the file in a folder you have to set that up in your OS. In Windows you can right click & do "Open With" and select your preferred app. In the Open With menu you can pick "Choose another app" & then there's a check box "Always use this app to open...". Check that check box & pick your app, then next time you double click that file type it'll open with that app.

If you are trying to use the Open File dialog box, you can change the extension(s) it's looking for. You can manually type in *. followed by the extension. So for jfifs, you'd type in "*.jfif". Or most times there's a drop down next to where you can type in the file name & you can pick a file type or set of types.

14

nuclearrwessels t1_ixtrn9s wrote

I used to go the a full service gas station every week across from my job for a fill up. The attendant hit on me every single time. One day, I was distracted on a Bluetooth phone call and just started to drive away while he was mid pump. I stopped and thankfully nothing got damaged but I was too mortified to go back for weeks.

I finally went back one day and he goes “ahhh, hello! Very beautiful, not very smart.” Lmaoo i was like yah fair play.

15

donal23 t1_ixtqwfc wrote

In any software that's written, never should a file be tried to open based on extension alone. Because that would mean that renaming an executable to an .jpg and having someone open it in said software, executes the file.

So Photoshop already does the actual checking of a file by its contents. What might be happening is that it already rejects the file based on extension however. But the second part is definitely already there.

−7

CMG30 t1_ixtos4a wrote

The risk of fire is very low with the engine running or not. Slightly higher with the engine running, but not much.

I would imagine that the biggest reason is that it's simply bad practice to leave any machine on when you're away from the controls. A kid could knock the gear shift. A crook could jump in. Let your imagination run wild. Any manner of remote but real possibilities can be avoided by simply turning the thing off. Kind of like wearing a seatbelt. Most people never need it, but that one time they do makes all the difference...

1

Frednotbob t1_ixtoeue wrote

I didn't know for sure, so I did a quick search:

>“It's is safest to shut off your vehicle to avoid a fire, static electricity or a check engine light,” says Lauren Fix, an ASE certified technician and sector analyst at The Car Coach. “The fire risk is that the fumes burn, not the liquid. This could lead to an explosion.”

>
>https://www.familyhandyman.com/article/can-i-pump-gas-with-my-car-on/#:~:text=%E2%80%9CIt's%20is%20safest%20to%20shut,could%20lead%20to%20an%20explosion.%E2%80%9D

3

ScandInBei t1_ixtoaoo wrote

The sw has to explicitly decide (and a programmer implement it) to check the file if it's a renamed file.

The simpler way is to try to open the file and decode it according to the file format and if it fails show an error message.

So it Photoshop could do it, but someone has to program it and it would cost money to do it.

−4

iblastoff t1_ixto1xd wrote

do you have to? probably not. but i think the obvious answer is unless you're driving some ancient car, turning off your vehicle is literally gonna save you on gas since you're not wasting it idling for 5 minutes or however long it takes to fill up.

now imagine everyone leaving their car on when filling up? that'd be a huge waste of fuel overall.

15