code logs -> 2021 -> Wed, 29 Sep 2021< code.20210928.log - code.20210930.log >
--- Log opened Wed Sep 29 00:00:49 2021
00:07 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
00:12 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
00:26 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
00:26 mode/#code [+o himi] by ChanServ
00:44 macdjord is now known as macdjord|Factorio
00:44 macdjord|Factorio is now known as macdjord|Satisfactory
01:01 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [[NS] Quit: -a- Connection Timed Out]
01:01 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
01:58 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
03:32
<&McMartin>
Ladies, Gentlemen, Distinguished Enbies: macOS programming. https://pastebin.com/nRKNELXG
03:32
<&McMartin>
In which I open a file in a mere 43 lines of code
04:13
<@celticminstrel>
Wow.
04:14
<@celticminstrel>
I’m fairly sure CoreFoundation’s predecessor wasn’t even quite that bad…
04:14
<@celticminstrel>
Oh, I guess it didn’t have to deal with app bundles tho…
04:14
<@celticminstrel>
Or did it? I’m not 100% when those were introduced but I do remember seeing them on MacOS 9…
04:15
<&McMartin>
CoreFoundation's predecessor is either Foundation itself, which I guess you can say does do this more cleanly (definitely does if you get to rely on ObjC's final form with automatic refcounting and property syntaxes)
04:15
<&McMartin>
But my understanding of the classic Mac OS is that you'd accomplish this with the special functions for extracting stuff from the resource fork
04:15
<@celticminstrel>
Well yes, that’s true.
04:15
<&McMartin>
This is that equivalent, so there really is some stuff being gained here -- if you have different menu button images for different languages, for instance, this code will just completely transparently handle that.
04:16
<@celticminstrel>
Assuming getting stuff from the resource fork is your intention.
04:16
<&McMartin>
Yeah, that's what this is supposed to be
04:16
<&McMartin>
Resource "forks" in macOS are just directories with files in
04:16
<&McMartin>
Which is all well and good, but...
04:16
<@celticminstrel>
It’s kinda incongruous that all that just leads up to an fopen call.
04:17
<&McMartin>
My favorite part is indeed that when I ask for the path here it gives me a CFURLRef that represents a file:/// URL, which I must then explicitly convert into the file system representation fopen expects.
04:17 Degi [Degi@Nightstar-qkgtpu.pool.telefonica.de] has quit [Operation timed out]
04:18
<&ToxicFrog>
Meanwhile I'm just over here with my (-> name jio/resource jio/as-file)
04:19
<@celticminstrel>
Maybe it’s not that much better after all… https://github.com/calref/cboe/blob/master/src/gfx/qdpict.mac.cpp#L465
04:19 Degi [Degi@Nightstar-rlfp0u.pool.telefonica.de] has joined #code
04:19
<@celticminstrel>
(I should probably rewrite that code so it can compile on newer Macs tho.)
04:20
<@celticminstrel>
(I assume it won’t, at least?)
04:20
<@celticminstrel>
(I can’t remember if I tried yet.)
04:21
<&McMartin>
Is this Carbon?
04:21
<@celticminstrel>
(Also that’s compiled as C++ so it might be “cheating” slightly.)
04:21
<@celticminstrel>
I think so?
04:22
<@celticminstrel>
Not quite sure. The header is CoreServices.h apparently.
04:22
<&McMartin>
CoreServices is still around, I think, but Carbon overall has been dead since 64-bit became mandatory.
04:24
<&McMartin>
With swift that whole thing is just
04:24
<&McMartin>
if let logoPath = Bundle.main.path(forResource: "logo", ofType: "png")
04:25
<@celticminstrel>
You mean your pastbin is reduced to that?
04:25
<@celticminstrel>
^+e
04:25
<&McMartin>
That's everything in the pastebin except the fopen call, yes
04:26
<&McMartin>
Which you probably would not use in Swift, anyway, 'cause you'd instead pass the path to something like "init image with contents of file" or whatnot
04:36 KiMo|autorejoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
04:47 Kimo|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
04:47 mode/#code [+o Kimo|autojoin] by ChanServ
05:18 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has joined #code
05:18 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:54 VirusJTG [VirusJTG@Nightstar-b00.oti.104.208.IP] has quit [Connection closed]
05:54 VirusJTG [VirusJTG@Nightstar-b00.oti.104.208.IP] has joined #code
05:54 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
06:37 macdjord|Satisfactory is now known as macdjord
09:21 Kimo|autojoin is now known as Kindamoody
10:32 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
13:17 abudhabi [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
13:18 abudhabi_ [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
13:19 abudhabi [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has joined #code
13:32 abudhabi_ [abudhabi@Nightstar-tmeb02.dynamic.t-mobile.pl] has joined #code
13:47 abudhabi_ [abudhabi@Nightstar-tmeb02.dynamic.t-mobile.pl] has quit [Ping timeout: 121 seconds]
14:01 abudhabi_ [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has joined #code
14:19 catalyst_ [catalyst@Nightstar-sckkt4.dab.02.net] has joined #code
14:20 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
14:37 abudhabi_ [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
14:51 abudhabi_ [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has joined #code
14:52 catalyst_ is now known as catalyst
15:07 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:07 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:14 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
15:16 catalyst [catalyst@Nightstar-sckkt4.dab.02.net] has quit [Ping timeout: 121 seconds]
15:54 abudhabi [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
15:55 abudhabi_ [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
15:56 abudhabi [abudhabi@Nightstar-tmeb02.dynamic.t-mobile.pl] has joined #code
15:56 abudhabi_ [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has joined #code
16:21 abudhabi_ [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
16:22 abudhabi_ [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has joined #code
16:34 abudhabi_ [abudhabi@Nightstar-sn1hnn.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
16:35 abudhabi_ [abudhabi@Nightstar-j0ji7d.adsl.tpnet.pl] has joined #code
16:58 Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:12 abudhabi [abudhabi@Nightstar-tmeb02.dynamic.t-mobile.pl] has quit [Ping timeout: 121 seconds]
17:29 abudhabi [abudhabi@Nightstar-j0ji7d.adsl.tpnet.pl] has joined #code
18:01 catalyst [catalyst@Nightstar-sckkt4.dab.02.net] has joined #code
18:03 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer]
18:05 catalyst [catalyst@Nightstar-sckkt4.dab.02.net] has quit [Ping timeout: 121 seconds]
18:05 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
20:16
<&ToxicFrog>
Just got a recruiting email from Facebook and I'm trying to figure out how to politely say "lol fuck no"
20:17
<&McMartin>
<Report as spam>
20:20
<&ToxicFrog>
Tempting, but I don't want to preemptively burn bridges in case the same recruiter later changes companies and tries to poach me for a job I'm actually interested in~
20:31
<&jerith>
"I'm not interested in working at a social media company at the moment, which is why I remain at Google."
20:32
<&jerith>
You are still at Google, right?
20:33
<&McMartin>
The generic polite refusal message is "thank you for your interest but I am not seeking new opportunities at the moment"
20:34
<&McMartin>
The fact that it lacks boilerplate about how "should this change in the future I will keep you in mind" is what makes it the Hell No instead of just a No.
20:37 * Tamber snork at jerith
20:49
<&ToxicFrog>
jerith: I am, mercifully not in any of the social-media parts of the company
20:54
<&jerith>
Google is notoriously unsuccessful in the social media market, though.
20:55
<&ToxicFrog>
That doesn't mean it doesn't try!
20:55
<&jerith>
It keeps *trying* to be a social media company but never quite manages.
20:57
<&jerith>
How many social media products has it killed now?
21:00
<&ToxicFrog>
As if I have time to keep track
22:24
< ErikMesoy>
The Google Graveyard suggests: Google Hangouts, Google Plus, Google Spaces, Orkut, Meebo, Google Wave, Friend Connect, Google Buzz, Slide.Com
22:24
<&jerith>
I don'g the Hangouts was trying to be a social network.
22:24
<&jerith>
*don't
22:24
<&jerith>
*think
22:33
< ErikMesoy>
*shrug* it had group chats, that's at least marginally social
23:16 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
23:31
<&[R]>
https://img.joemonster.org/mg/albums/092021/main_14niezawodny_system_bezpiecze_stwa.jpg
23:40
<&Reiver>
If you wish to be /very specific/
23:40
<&Reiver>
To riff off McM's boilerplate
23:41
<&Reiver>
"thank you for your interest but I am not seeking new opportunities at the moment; should this change in future if you happen to have positions at other organisations I may keep you in mind" >_>
--- Log closed Thu Sep 30 00:00:51 2021
code logs -> 2021 -> Wed, 29 Sep 2021< code.20210928.log - code.20210930.log >

[ Latest log file ]