zlacker

[parent] [thread] 13 comments
1. agilob+(OP)[view] [source] 2024-11-11 07:48:28
It's really cool that such standard exists, the worst thing about Pixel phones is stupid filenames of pictures and videos, not only it's not following this standard, but contains WRONG timestamp. For example, picture with name `PLX_20241101_115855.jpg` was taken at 12:58:55, not 11 as the name suggests, but also picture with name `PLX_20240913_191525.jpg` was taken at 19:15:25. A video on the other hand would have a timestamp offset -1, the offset changes depending on time of the year and it's different for pictures and videos. It's annoying af, because pictures and videos in the same folder will not be sorted chronologically by filename.
replies(4): >>nasret+t >>waltha+52 >>jval43+V4 >>rob74+C5
2. nasret+t[view] [source] 2024-11-11 07:55:46
>>agilob+(OP)
Potentially daylight savings related? E.g. file names are in UTC, whereas local time obviously isn't
replies(1): >>agilob+w
◧◩
3. agilob+w[view] [source] [discussion] 2024-11-11 07:56:47
>>nasret+t
Yes, it's DST related. Now explain why DST offset is different for pictures and videos ;)
replies(2): >>nasret+N >>InDubi+s5
◧◩◪
4. nasret+N[view] [source] [discussion] 2024-11-11 08:02:16
>>agilob+w
Well they need to be different in _some_ way, right :)? Why not use timestamp offset for this
replies(2): >>berkes+Wa >>catsma+aa1
5. waltha+52[view] [source] 2024-11-11 08:20:02
>>agilob+(OP)
British? Sounds like it's recording UTC time in the file name, which is only correct during winter.
replies(2): >>agilob+W3 >>sampo+Qd
◧◩
6. agilob+W3[view] [source] [discussion] 2024-11-11 08:46:46
>>waltha+52
> British?

Nope, but it's a Pixel thing

7. jval43+V4[view] [source] 2024-11-11 09:02:03
>>agilob+(OP)
FWIW that is not a Pixel-specific issue. I encountered this on other cameras (IIRC Olympus and GoPro) as well. It's maddening.

The issue stems from the fact that images are written with proper EXIF time and timezone metadata while videos from the same camera might only store a timestamp field. Whether that's local time, UTC, or something else depends on the camera and how you configured it.

◧◩◪
8. InDubi+s5[view] [source] [discussion] 2024-11-11 09:08:38
>>agilob+w
Programming employment-creation measure - to prevent them doing damage elsewhere by adding abstraction madhouses.
9. rob74+C5[view] [source] 2024-11-11 09:12:05
>>agilob+(OP)
A lot of the DCF standard is designed around the limitations of FAT file systems, e.g. filenames limited to 8+3 characters, directories limited to 9999 "items" (which I assume is to make sure that there won't be more than 65,536 files in a directory). As Pixel phones don't use FAT, Google probably doesn't feel bound by this standard. Their naming convention allows the phones to store all photos/videos in a single directory.
◧◩◪◨
10. berkes+Wa[view] [source] [discussion] 2024-11-11 10:10:01
>>nasret+N
While this comment is a joke, it's tragicomically true as well.

Way too often have I encountered, or hacked in myself, such "business rules".

"Except for these seven transactions from before [random date/time] all transactions made between 01:00 and 01:15, with a round amount, are recurring payments to X. Can we not just use that instead of this data-migration that you've budgetted?" (not literal request, but close enough).

The danger -off course- lies in that this over time becomes actual business logic and that meaning is assigned to (meta)data that was never intended to carry such meaning.

The solution -I've found- starts with what DDD calls "ubiquitous language", where everyone (within a domain!) assigns the same meaning to the same things¹. And model the software around that, never the other way.

¹ So maybe there's a 150 year old rule that states that recurring transactions are those that happen between ...etc. etc. That this is actually a settled and used meaning within the domain experts/users/stakeholders. In that case - IMO - it's far better to lean into it rather than assign some is_recurring_for_x boolean or such that has no meaning in the domain.

◧◩
11. sampo+Qd[view] [source] [discussion] 2024-11-11 10:42:15
>>waltha+52
2024-11-01 is in winter, 2024-09-13 is in summer. So the effect seems to be the opposite of what you say.
replies(1): >>CRConr+LMa
◧◩◪◨
12. catsma+aa1[view] [source] [discussion] 2024-11-11 19:21:24
>>nasret+N
because the extensions are already different. jpg and mp4
replies(1): >>nasret+yj1
◧◩◪◨⬒
13. nasret+yj1[view] [source] [discussion] 2024-11-11 20:48:32
>>catsma+aa1
Ok, fair point... I guess it's just that different teams were doing photo and video then
◧◩◪
14. CRConr+LMa[view] [source] [discussion] 2024-11-15 13:25:24
>>sampo+Qd
> 2024-11-01 is in winter, 2024-09-13 is in summer.

Not in... What's in the same time xone, but southern hemisphere; Sawth Effrika?

[go to top]