clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
slipset 2020-09-02T06:19:46.123600Z

So, here's a short little story about a morning that could've turned this day and the following days into a true disaster.

slipset 2020-09-02T06:20:51.124700Z

Every morning, I start my day with a nice cup of cafe au lait from my trusty old Silvia. She's been serving us well for almost 10 years.

slipset 2020-09-02T06:21:08.125100Z

This morning she would not heat up.

slipset 2020-09-02T06:22:04.126300Z

I was petrified. A morning without coffee, a lunch without coffee, and then it dawned upon me. She might have to be repaired at a shop, which would mean weeks without decent coffee.

slipset 2020-09-02T06:22:47.127200Z

But luckily, Silvia is engineered in the finest of ways. She's composed of simple, small building blocks, one of which is a fuse.

slipset 2020-09-02T06:23:13.127800Z

I decomposed her slightly, got access to her fuse, reset it, and bang she was hot again.

slipset 2020-09-02T06:23:28.128300Z

Coffee was made, and the day was good.

☕ 1
🎉 4
dominicm 2020-09-02T06:35:27.128600Z

10/10. Will read the sequel.

🙂 2
2020-09-02T06:56:45.128800Z

morning

raymcdermott 2020-09-02T07:27:13.129400Z

morning

synthomat 2020-09-02T07:27:26.129600Z

a good morning!

mpenet 2020-09-02T07:27:37.129800Z

morning

2020-09-02T07:51:55.130200Z

morning

2020-09-02T07:52:06.130500Z

@slipset that is a great advert for understandable, repairable things

1
thomas 2020-09-02T08:36:03.130900Z

morning

synthomat 2020-09-02T12:10:53.133500Z

wow all of this date-time handling is driving me nuts. will there ever be the magical moment where, all of a sudden, everything appears clear and understandable?

Eugene Koontz 2020-09-05T12:55:33.165900Z

I encountered something similar: I added this to my project.clj: https://gist.github.com/ekoontz/3c80b084e48fc47c6a8a1482defd3107

synthomat 2020-09-02T12:11:27.134300Z

why do I receive a UTC time stamp, convert it to a UTC date for Postgres, PG has the UTC timezone set, but when I query my timestamps they are off by -2hrs?

synthomat 2020-09-02T12:12:37.134800Z

huh, what… does IntellIJ also convert timezones in the sql output?? :man-facepalming:

synthomat 2020-09-02T13:57:14.135500Z

okay found the issue… it’s not IntelliJs fault

2020-09-03T09:52:57.139800Z

what was the UTF-8 problem you describe, @ramart?

RAMart 2020-09-03T09:57:47.140Z

It depends. 😁 I'm the one helping to hunt these bugs down. If one of my colleagues states "I have a UTF-8 string..." I ask "How do you know?". Sometimes the source code file isn't UTF-8, so his/her assumption was wrong. Or it looks like an UTF-8 string in the debugger, but the debugger lies right into your face. Just too many layers of encoding and decoding when watching at a simple string on your screen.

RAMart 2020-09-02T14:15:00.136100Z

Is it in front of it? 😎 SCNR

synthomat 2020-09-02T14:17:43.136300Z

yes, of course! 😄

synthomat 2020-09-02T14:18:29.136500Z

what I didn’t know: apparently the pg-jdbc driver subtracts the local timezone from a LocalDateTime object to store it as a UTC timestamp

synthomat 2020-09-02T14:19:16.136700Z

i was sending a UTC date, and Postgres (or the driver?) subtracted the local TZ from it :man-facepalming:

RAMart 2020-09-02T15:33:14.136900Z

DateTime is really PITA. But Encoding is also: e.g. "I have a UTF-8 string, the JDBC-Connection is set to UTF-8, the database is set to UTF-8, the console is set to UTF-8 and even the used font is able to render UTF-8. Why the f... do I see nothing but garbage?" It's always "fun" to debug this. And it's really too hard for newbies.

RAMart 2020-09-02T15:34:05.137100Z

Back to ASCII-7! 😂