[10:51:17] is there a reason why TPT ids must be an integer? fandom's version allows for strings but not the mw ext [11:14:55] kind anti-logic from me [11:15:06] they must be a string when you define them in wikitext [11:15:23] however they're converted to an integer in the API [11:24:04] (I will lift this restriction this weeking fwiw) [15:16:08] it also adds a weird border to it [17:20:57] huh, how does that work? hashing? [17:21:47] No, (int)$value 😆 [17:22:25] thats crazy [17:22:31] oh. [17:22:41] And getBodyParam is set to integer for that one so MediaWiki enforces that only an integer is sent to the API [17:23:36] Do you need to cast it in a rest api class? In action apis you get an int automatically if you set the param type accordingly [17:23:54] how- [17:24:09] that's just how you convert a string to an int lol [17:24:15] what else did you expect [17:25:01] No but I am paranoid that WMF Developers don't know what they're doing so [17:25:12] understandable [17:25:35] I trust the action API but I wouldn't trust Rest APIs [17:27:24] Well yeah but like what does that look like [17:27:33] like is it the numerical values of the characters in the string [17:27:35] Or wait [17:27:37] Am I dumb [17:27:51] Is it a string of numbers? I understood it as a letter string [17:28:40] no, (int)"2" is 2 for example [17:28:47] I would assume so [17:29:22] [1/2] Okay I understood it as [17:29:23] [2/2] (int)"Wawa" = ???? [17:30:32] I don’t like that syntax ugh [17:30:40] ^ [17:31:44] hm [17:31:57] (:python:❤️) [17:32:15] imagine this but in c xD [17:32:59] show me [17:34:07] it's just gonna be a random ptr [17:36:48] [1/2] godbolt said no [17:36:49] [2/2] https://cdn.discordapp.com/attachments/1006789349498699827/1477358893335056524/Screenshot_20260301-043631.jpg?ex=69a47930&is=69a327b0&hm=74e05d89d9a99cf668c7fd6fac172c8163bd204e6bdbf1de35694bd13d1255c1& [17:37:03] It returns 0 [17:37:18] @pixldev ^ [17:37:30] Interesting [17:37:39] But interestingly if you do (int)"123abc" you will get 123 back and PHP will drop the ABC [17:38:13] The inverse is not true and abc123 will also yield 0 [17:38:24] https://cdn.discordapp.com/attachments/1006789349498699827/1477359294352593037/image0.jpg?ex=69a4798f&is=69a3280f&hm=33b803ba56340fe3bfa445a0dacb1403a1f5c137d6f5d2066c09a79c85d94a9c& [17:38:31] ???? [17:38:51] im gonna explode your default term color [17:38:53] Well it exits at the first character it can't convert [17:38:54] jolly times are OVER [17:39:02] This isn’t my usual default [17:39:09] it better be PINK [17:39:32] https://cdn.discordapp.com/attachments/1006789349498699827/1477359578944639006/image0.jpg?ex=69a479d3&is=69a32853&hm=70c3918efd470ba579d7d6515848e38d5098361a0318a4620a042b928ae9f357& [17:39:36] that’s why lol [17:40:19] yaas queen~ [17:53:14] What if you did 124banana456? [17:53:33] Would you get 123456? [17:53:37] god you are a demon [17:53:43] what are those colors [17:54:02] The VPS is named Crimson [17:54:21] It's like kpop demonhunter: Christmas edition. 😁 [17:54:22] What, do you all not color code your shells? [17:54:42] Well now I need this in my life [17:54:44] n..ot really? [17:54:47] GitLab would like a word [17:54:51] What? How did you end up coloring it to the name of VPS??? I am crine 😭 🙏 [17:54:52] (Yeah neither do I) [17:55:00] Who does?!? [17:55:11] I should though [17:55:26] Well it’s the name of the organization the VPS belongs to [17:56:04] Is not a good explanation for choosing this color.... M [17:56:21] (Jokes aside, I do like an IDE that color-codes different things inside a script for simple visual ID) [17:56:34] I have a plugin for VSCodw for that [17:56:50] This one is a random color but I know there’s one I can pick the color [17:56:54] If I find it again is better [17:57:04] well, i too. But this color choice is very bad. Crimson on black? [17:57:08] they invented a thing called reading for seeing which host you're on visually /j [17:57:16] Crimson code is red, miraheze projects are yellow, automation script may be blue [17:57:33] Visual parsing that combo is a little tough, yes [17:57:38] When you have 4 different projects windows open on VSC, it helps [17:57:59] stop procrastinating and work on one smh [17:58:09] i forgot who im speaking to [17:58:17] im putting more stimulants in your water [17:58:37] falls asleep [17:58:42] why does coffee make me sleepyyyyyy [17:58:50] brain is funky [17:59:16] ADHD moment [18:00:40] i rlly should get diagnosed [18:00:46] i'm just... procrastinating on it [18:00:50] ba dum tss [18:13:30] https://cdn.discordapp.com/attachments/1006789349498699827/1477368126680338482/Screenshot_20260301-051239.jpg?ex=69a481c9&is=69a33049&hm=4209f173800e835978b13823d0507650f7c6395e7acc0850db0e9bd47b9f0a51& [18:19:28] No, 124 because PHP would exit at B (the first character it can't convert to a int) [18:31:46] Neat, I suspected that might be the handling because PHP, but not all languages handle 'gimme numbers only' the same. [19:11:21] too much caffeine causes this. same with me [22:17:58] I just saw the notice about somewhat automating the server usage table based on individual pages [22:18:14] i have to wonder if that is the way go though [22:18:33] what are your concerns [22:18:35] the individual pages have so little content, that i have to wonder if we really need them [22:18:45] the table on its own may be enough [22:18:52] hmm [22:18:59] and we can add a few more columns for the missing info [22:19:26] each page is not much more then the infobox + one sentance [22:20:41] which is kinda why i stopped linking nonexistent server pages [22:59:06] pretty sure there has been a discussion about this in mattermost, but i cant find it rn [23:00:42] [1/2] i would agree, and it is true we dont use the pages themselves for much, but I do think there is value in having their own pages [23:00:42] [2/2] at some point we may/may not have histories/changelogs for individual servers. or we may start using other service providers more widely where server-specific notes might be useful [23:02:26] and a small personal preference is that i find it easier to work with separate pages and pulling data from templates than a huge manual wikitable [23:03:30] Are we using Cargo or another extensions to gather the info [23:03:37] dpl4 [23:09:14] As cursed as DPL syntax is at least it won't expose Meta users to a much higher risk of XSS. That's the last thing we want on Meta. [23:10:26] i do feel like installing bucket on meta just for server usage would be overkill [23:10:44] let's use SMW 👍 [23:10:55] shaking my wiki [23:11:53] also using the dtech's developed flavor of data yoinking is fitting (obviously this means whenever we happen to change dtechs they must have developed their own) [23:37:09] when's yaron koren becoming DTech