IRC logs for #openttd on OFTC at 2023-05-19
β΄ go to previous day
00:19:04 *** gelignite has quit IRC (Quit: Stay safe!)
02:14:33 *** Wormnest has quit IRC (Quit: Leaving)
02:54:20 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:00:41 *** D-HUND is now known as debdog
07:24:04 *** gelignite has joined #openttd
08:34:55 <TrueBrain> Rubidium: just because I am lazy, but you tested if things like network games with NewGRFs work?
08:42:36 <petern> sizeof()/lengthof() will do the right things with std::array, but it still feels wrong.
08:42:47 <TrueBrain> he fixed that nicely π
08:43:57 <petern> Annoyingly when switching to .size() you then need to worry about int/size_t crap all over again. At least it is constexpr.
08:45:09 <petern> Of course that tells me that sizeof/lengthof is wrong anyway π
08:45:42 <TrueBrain> and I myself have the absolutely pleasure of rewriting our AWS CDK to Pulumi ... this is going to be painful ... but keeping up with AWS CDK was impossible .. worst part is the testing .. owh well, if OpenTTD services go down in the next few days, let me know π Means I fucked up π
09:00:03 <Rubidium_> TrueBrain: yes, I did
09:00:14 <Rubidium_> and good luck with the rewrite
09:00:29 <TrueBrain> haha, tnx .. need it .. brrrrr .. stupid infra
11:17:04 <petern> Neat, pihole running on my router.
11:23:39 <andythenorth> is that a good thing?
11:23:43 <andythenorth> or do you need treatment?
11:27:56 <petern> It's a Mikrotik, and supports running Linux containers (when the device is ARM at least)
11:28:55 <petern> Hmm, ARM docker image of OpenTTD? Dedicated server time...
11:30:23 <petern> Bonus, the CPU has a bit more grunt than axet's pi 1.
11:30:57 <TrueBrain> not much needed for that π
11:31:02 <petern> Quad core, up to 1.4 GHz.
11:32:18 <Rubidium_> might even be faster than my laptop :D
11:32:30 <TrueBrain> there too, not much needed for that π
11:33:32 <petern> I guess I could try it...
11:33:48 <TrueBrain> there are several docker images for you to try π
11:33:58 <TrueBrain> some people made it really complicated .. others really opinionated π
11:37:10 <petern> This router is a bit overkill for home use, but... I have it, so...
11:37:23 <TrueBrain> there is no such thing
11:38:45 <petern> Well there probably is, but this isn't that.
11:41:15 <petern> Main issue with docker images on this is the only external storage is MicroSD. Internal storage is limited to 128MB. Not enough.
11:42:11 <petern> There is a version of it that has internal M.2 and SATA interfaces though. Tempting...
11:43:57 <TrueBrain> does it have an USB?
11:46:23 <petern> It's an older design (came out in 2017), it actually has a serial port for console access if you want...
11:46:37 <TrueBrain> I don't want that π
11:46:50 <petern> So it's a little surprising that the later software updates added docker containers.
11:47:49 <petern> My main router is a less powerful one more suited for home use, which does have USB, but it's not ARM.
11:48:28 <petern> "MIPS 1004Kc v2.15" on that.
11:54:56 <petern> Hmm, hAP ax3 would do. 1GB RAM, ARM64 4-core 1.8 GHz, and a USB port. Also has WiFi and will run off PoE.
12:02:34 <petern> andythenorth: we've been told how to do it \o/
12:02:49 <petern> I've been using them for years.
12:03:24 <petern> Replaces giant aging Cisco and other vendor kit with it back at the last job.
12:04:18 <petern> Cisco 7204VXR was a bit long in the tooth. Replaced with a CCR. Bit slower for initial BGP sync but did the job once going.
12:12:41 <petern> For this std::array push, the Motivation/Description will be getting shorter and shorter...
12:30:53 <TrueBrain> `Chat, for 15 minutes, with a Pulumi Developer Advocate once every 90 days` .. that you don't see often in an Open Source sponsoring. Owh well, guess that would be worth having the Team Edition of Pulumi for π
12:31:15 <petern> A whole 15 minutes π
12:33:13 <Eddi|zuHause> i suppose that is non-support-just-rambling talk?
12:33:28 <TrueBrain> I am sure I am going to find out between now and 90 days π
12:33:59 <petern> Also Developer Advocate != Developer.
12:34:17 <Eddi|zuHause> yeah i was wondering what that even means
12:34:24 <petern> We could charge people to talk to Andy or Eddi for 15 mintues π
12:34:40 <TrueBrain> andy already does π
12:34:51 <Eddi|zuHause> you mean i sit there in complete silence for 15 minutes?
12:35:30 <TrueBrain> the only correct response here
12:50:11 <andythenorth> that Andy Quick YT account is not me
13:00:13 <TrueBrain> just drag in sqlite if you want to do something like this
13:00:25 <petern> What does SQL have to do with it?
13:00:32 <TrueBrain> just go big or go home
13:00:45 <LordAro> feels very ranges-ish
13:00:46 <TrueBrain> just insert 1,2,3,4,5,6,7,8 in SQLite
13:00:51 <petern> Store game-state in SQL? nice.
13:01:13 <petern> Yeah, we don't have ranges though.
13:01:33 <TrueBrain> I already fixed a few compile issues π
13:01:41 <TrueBrain> we just have to fix the `u8` bullshit
13:02:41 <TrueBrain> anyway, a bit more serious: if you drag in a new library that does something similar to STL, see if you can find something that also mimics it; so if we update, that we don't have to rewrite whole parts to remove that library again π
13:02:49 <TrueBrain> similar request was done with `fmt` π
13:04:41 <petern> Did we do it though? π
13:05:15 <petern> Anyway, I'm looking at pools, which are probably a bit too custom for that anyway.
13:05:32 <petern> But maybe we can switch them to a stl container eventually.
13:06:07 <andythenorth> petern: I no longer enter into discussion with certain people, but eh, strikes me that those canset liveries could just use match the engine livery π
13:06:22 <andythenorth> I haven't used canset for a long time, so not sure what it's actually doing
13:07:26 <petern> Date-based livery refit availability.
13:08:38 <petern> Anyway, you'd put all this work in to make that work, and still be left which a system that doesn't let you preview from the purchase list.
13:09:12 <andythenorth> maybe we need an AR overlay
13:09:22 <petern> (Even if you faked a new vehicle -- because they all interdepend on different heads and dates etc)
13:09:28 <andythenorth> so you get to see a mockup of the train, but floating in your eyeline
13:09:31 <Rubidium_> can't we just make the pool stl enough for the things we need it for? I did that with the StringBuilder too
13:11:49 <petern> Yes, I have actually done that a bit.
13:16:14 <petern> That's just to make iterators more compatible though.
13:16:38 <petern> Pool is based on vector anyway.
13:17:11 <petern> Or maybe that's a vector of pools? Dunno π
13:17:26 <petern> Titem **data; ///< Pointer to array of pointers to Titem
13:19:06 <petern> I'm sure pools used to do things like allocate contiguous chunks of memory. But that may have been in the pre-C++ days.
13:21:25 <Rubidium_> good question... is it "std::vector<std::unique_ptr<type>>" or "std::vector<std::unique_ptr<std::array<type, block_size>>>"
13:26:10 <Rubidium_> a quick glance seems to imply to me that it looks more like the former
13:30:29 <petern> AllocCache is a weird bit on the side.
13:30:52 <petern> I guess it is designed to reuse previous allocated memory.
13:36:16 <TrueBrain> lolz .. so I was deploying everything IPv6-only, as it is cheaper and easier ..... turns out .... Docker Hub, doesn't have IPv6 support
13:36:39 *** gelignite has quit IRC (Quit: Stay safe!)
13:36:55 <TrueBrain> owh, it does .. kinda ... but on another URL
13:45:08 <Rubidium_> though IPv6 has been in beta for like 20 years ;D
13:46:29 <LordAro> December 1995 for RFC 1883
13:46:30 <Rubidium_> "In December 1998, IPv6 became a Draft Standard for the IETF,[2] which subsequently ratified it as an Internet Standard on 14 July 2017.[3][4]". I guess it's in a RC state for almost 6 years
13:46:51 <Rubidium_> so, only 3 years in alpha
13:51:12 <TrueBrain> owh, right, Docker by default only does IPv4 ... eeeuuhhmmm ....
13:51:22 <petern> There are still people out there who think IPv6 "doesn't work" because they once had Windows set up an unusable tunnel...
13:51:44 <TrueBrain> the worst invention EVAH
13:51:59 <LordAro> TrueBrain: hence why it's in beta!
13:52:10 <TrueBrain> well, disabled by default since Windows 10 π
13:52:16 <petern> And also those that thing if you don't have an IPv6 address then you MUST disable everything to do with IPv6 ever, including from the kernel...
13:52:25 <glx> meanwhile I have a fake IPv4
13:52:56 <petern> Shame my old NAS does not support IPv6.
13:52:57 *** glx is now known as Guest666
13:52:58 *** Guest666 is now known as glx[d]
13:53:35 <petern> Easier to just move the drives to something else that to attempt hacking it to do so, though.
13:54:29 <glx[d]> and needed to request a full-stack IPv4 instead of the default shared one
13:55:51 <TrueBrain> this is a fun battle .. every time I fix one IPv4-only thing, I find the next π
13:56:09 <TrueBrain> so from Docker Hub to docker to now cloudflared only trying IPv4s
13:57:52 <TrueBrain> (on AWS, if you want IPv4, you also need a NAT gateway, which costs ~20 dollar per month .. so it is worth trying without :D)
13:59:57 <TrueBrain> there we go, IPv6 tunnel active \o/ I AM VICTORIOUS! Or something.
14:01:19 <TrueBrain> basically, we run `nomad` in AWS, in a private subnet with egress-only internet connectivity
14:01:24 <TrueBrain> and use cloudflared to connect to it
14:03:52 <TrueBrain> the benefit of doing it like this, is that we let cloudflared handle all the security, certificates, etc etc .. which means we don't have to do that ourselves on AWS, and saves a few bucks every month π
14:03:57 <TrueBrain> I am being cheap π
14:04:16 <TrueBrain> (and cloudflare is being awesome for like: yeah, we are not going to charge you for this)
14:06:58 <petern> How do they make money...
14:07:14 <TrueBrain> by scaling in a proper way, and charging enterprise companies for things that matter π
14:10:23 <petern> Woo, pipeline successful second time around.
14:28:49 <andythenorth> hmm when is Horse 3.1 done?
14:29:12 <glx[d]> there was a nice handling difference for \n and \r between DrawNewsString() and DrawScrollingStatusText()
14:33:45 <Rubidium_> andythenorth: when you start development on Horse 3.14?
14:48:50 *** gelignite has joined #openttd
16:03:00 <TallTyler> Hmm, Drupal lets me sort a list of user accounts alphabetically by passwordβ¦why is that an option? π¬
16:09:50 *** Flygon has quit IRC (Read error: Connection reset by peer)
16:15:21 <Rubidium_> I hope it's just stupid wording and it sorts the numerical representation of the hashes or something
16:16:07 <Rubidium_> and if passwords are done correctly it sounds super pointless to have that functionality
16:30:42 *** Smedles has joined #openttd
16:37:40 *** Wormnest has joined #openttd
16:43:51 <LordAro> TallTyler: i can't do that in my install, must be some customisation
16:44:04 <LordAro> and probably just "make all columns of this table sortable"
16:48:34 *** nebulabc has quit IRC (synthon.oftc.net weber.oftc.net)
16:48:34 *** colde has quit IRC (synthon.oftc.net weber.oftc.net)
16:48:34 *** twpol has quit IRC (synthon.oftc.net weber.oftc.net)
16:48:34 *** dale has quit IRC (synthon.oftc.net weber.oftc.net)
16:48:34 *** Extrems has quit IRC (synthon.oftc.net weber.oftc.net)
16:48:34 *** mindlesstux has quit IRC (synthon.oftc.net weber.oftc.net)
16:48:34 *** dwfreed has quit IRC (synthon.oftc.net weber.oftc.net)
16:48:34 *** twpol_ is now known as twpol
16:49:44 *** nebulabc has joined #openttd
16:49:44 *** dwfreed has joined #openttd
16:49:44 *** Extrems has joined #openttd
16:49:44 *** mindlesstux has joined #openttd
17:05:17 <petern> I should let rubidium get on with it π
17:08:35 <Rubidium_> then approve my PRs ;D
17:10:40 <Rubidium_> now I'm just doing some small refactors that do not conflict with the bigger things that are awaiting approval
17:11:54 <Rubidium_> though those smaller ones are triggered by stuff that peek my interest when reviewing PRs from others
17:50:20 <TallTyler> LordAro: I have the out-of-the-box installation so who knows? I just started a non-computer science job in the rail industry and on Day 3 my boss went βhey Tyler, you know computers, right?β and now Iβm building a website. Again. That was Wednesday so I havenβt gotten very far yet. π
18:34:04 *** esselfe has quit IRC (Quit: restarting)
18:34:32 *** esselfe has joined #openttd
18:39:36 <DorpsGek> - Update: Translations from eints (by translators)
19:47:10 <andythenorth> bet that's why Iron Horse compile is slow π
19:47:15 <andythenorth> some horrific sort I'm doing
20:52:05 <TrueBrain> Owh James ... maybe just not do that?
21:09:43 <petern> It would be good to protect though.
21:14:22 <petern> Hmm, now why does VS Code not pick up the generated header files anyway...
21:15:49 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:32:21 <Rubidium_> I really hope petern doesn't have a PR pending for that change :D
21:33:13 <petern> Some of it, but not that good.
21:42:27 *** _aD has quit IRC (Ping timeout: 480 seconds)
22:03:16 *** ChanServ sets mode: +v tokai
22:10:09 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
22:10:23 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:12:58 <glx[d]> hmm scripts are not supposed to crash the game
22:18:17 <glx[d]> oh the new VS has a CMake debugger, that can be helpful I guess
22:23:41 *** gelignite has quit IRC (Quit: Stay safe!)
22:45:39 *** _aD has quit IRC (Ping timeout: 480 seconds)
22:58:18 <TrueBrain> A crash on an error? :p
22:58:35 <TrueBrain> I would blame Rb :p
23:07:05 <glx[d]> and of course with a test GS it crashes somewhere else
23:24:32 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
23:25:00 <glx[d]> but `_size` is only 0x0000000000001253 (4691) at that point (looping until 0x4000000000000000)
continue to next day β΅