« first day (4860 days earlier)   
00:00 - 13:0014:00 - 20:00

12:25 AM
I need to stop doxxing myself lol
 
how much more can you even
 
I posted something that contained my phone number on an insta story by accident and one of my followers texted me but I can't tell who lol
 
Oh IT'S THE GIRL lmao
 
good job bingus
:p
 
12:32 AM
PFFFFFFF
 
I find it kinda funny we never got each others' phone numbers throughout all that lol
 
yeah wait what
how were you texting with her
 
We never bothered since she's Android and I'm Apple
 
just discord?
 
12:33 AM
i was about to ask if it was some weird shit like twitter dms lol
i can never remember that the social media platform that's about images lets you send text to people
 
Insta's great it's perfect for just keeping up with your friend group/community
 
 
wait so does it have group chats too
what
 
thanks vs code
 
why is it even called instagram at that point
 
12:34 AM
for autocompleting my <div> with a </button>
 
naturally
all divs are buttons at heart
 
I blame svelte having funky button onclick binding
@UnrelatedString as are <h2>s
 
@UnrelatedString Yeah (tho that's not was I was referring to, more just the format of the app works great for keeping up with people you know)
 
12:36 AM
@UnrelatedString and <ul>s
 
naturally
 
As I always say, if you can click it, it's a button
 
ah I see what's happening
vs code is linting my button definition to be multiple lines
but then it gets confused because it doesn't realise the button definition is multiple lines
A+ linting
 
omfg I am not letting her get in my head again
She remembers the exact day we met
Like me
 
I sure love how aws lambdas require zip folders
I also love having to write a python script to automate lambda deployment to localstack
 
12:55 AM
@RydwolfPrograms wow
 
And what makes it worse is that day happens to be valentine's day
 
att
:o
 
tbf
that also makes it less impressive to remember :P
 
@lyxal Clearly they parsed HTML with Regex
 
1:15 AM
You joke, but VS Code does use regexes for tokenization, right?
Yeah it uses TextMate grammars, which are just regexes (iirc) (don't quote me)
@RydwolfPrograms Rydwolf, haven't you asked this guy out yet? Just do it and stop torturing yourself
 
I have created the most jank localstack workflow
 
You can use Regex to tokenize HTML. But Tokenizing isn't the same as Parsing.
 
Oh, right
 
@user the LSP can handle tokenization/parsing itself, fwiw
 
Yeah, but it's slower
You need syntactic highlighting first and then the LSP can add on smarter semantic highlighting
iirc, Scala does that (separate Scala Syntax and Metals extensions, I think?)
Destroyed
 
1:21 AM
@RydwolfPrograms pfft
genius
shame you presumably deleted it, otherwise I could text you myself :p
 
How do we know that you weren't the person who did text Rydwolf?
 
you don't :3
 
okay so here's the rundown:

1. Start svelte frontend
2. Start localstack with every possible CORS check disabled
3. Run a python script that zips every file in a "lambdas" directory into its own zip folder ("LambdaHandler.py" -> "LambdaHandler.zip")
4. Run a python script that converts every zip into a Lambda instance
4.1. That python script then generates URLs for each Lambda. Each Lambda URL is sent to a pythonanywhere webapp that stores a map of LambdaName -> URL
5. The Svelte app (and also the lambdas themselves) get the API URLs from the pythonanywhere server before actually making an
it doesn't sound too bad, but it kind of is given how many things are being hacked together
 
no, it sounds quite bad
you've one-upped the v3 deployment system :p
 
and all to test locally what will inevitably need some changing to make work in actual AWS
for example
    let clickHandlerAPI = "";

    fetch("https://URL STORER/get?url=ClickHandler").then(
        (response) => {
            response.text().then((data) => {
                clickHandlerAPI = data;
            });
        }
    );
that's in the svelte to get the link to the dynamically generated url for the ClickHandler lambda
 
1:26 AM
Are you sure there isn't an official guide that has an easier alternative to this?
 
how will my frontend components get the links generated in a session?
apart from manual copy-paste, the svelte has no way of knowing what the lambda url will be
if this were real AWS, the Lambda URLs would stay the same
because they'd be constantly hosted
they are not constantly hosted in localstack. If I close the terminal/restart my computer/close docker/etc, I'll have to regenerate all the lambda functions anyway
also, hot reloading is only for localstack pro subscribers
 
Aww
 
so when I want to make a change to a lambda, I have to reroll the url anyway
so I might as well make a system that can dynamically store the lambda URLs as they're created
 
2:28 AM
@Ginger Nah I don't care enough to delete it lol
If you want to go ahead :p
 
3:09 AM
@user Which guy?
 
3:29 AM
I don't think my TNB loaded right
I'm curious what that "message batch operations" thing is...maybe some sort of old version of the move tool?
Or is that a mod tool?
 
it's just the move/delete tool lol
 
Interesting
 
3:46 AM
You can also tell it's the RO variant because there's only the relocate button and not the delete button
So not a mod tool
 
CMC Given two tempertures, decide how much heat taken for 1kg of H2O from one temperture to another. 0 mean water at 0 ℃ while -0 mean ice at 0℃.
 
4:01 AM
They found the helicopter
 
@l4m2 Isn't this just the difference? What am I missing here?
 
@ATaco Ice have different heat capacity than water
 
Yeah but heat doesn't exist as a unique unit of energy, per the challenge spec. How much energy it would take is a slightly different question
Otherwise the answer seems to just be (b-a)+(a<0?80:0) kcal
 
 
1 hour later…
5:18 AM
Okay I just realized something incredibly cool
I'm representing a chess board as an array of 64 squares, and positions as ints from 0 to 63
And if a piece makes any linear move of N spaces on the chess board, you can divide that move into N increments/decrements of a constant value
Since if it's horizontal you just increase/decrease by 1 per space, if it's vertical you increase/decrease by 8 per space, and if it's diagonal, you do both, which is an increase/decrease of either 7 or 9 per space
I wonder if there's a formula you could use to calculate the number of squares moved just given the source and destination indices
abs(src - dst) or abs(src // 8 - dst // 8) would work actually
 
CMC: Prompt golf. In an LLM of your choice, have the engine say the words 'hello world' consecutively with any amount of punctuation. Eg. "Hello, World!", "Hello world", etc. Smallest prompt wins, does not need to be easily recreatable, though evidence is required.
@RydwolfPrograms Knight
 
Yeah just for linear moves I meant
 
@ATaco only hello world or can it be in a block of text
 
Can be as part of a block, though must be consecutive
 
5:28 AM
4 bytes in Copilot, HQ9+
 
Befalse interpreter can be exploited in at least two ways
 
Got it in 3, .py
 
Damn, I couldn't convince it to do .c
With enough luck you could probably get ` or < to work
 
5:44 AM
mfw i'm testing serverless stuff and I forget to update a frontend component to fetch the right api and wonder why it's 502ing
and now it works
I just made a clicker game in the most stupid way possible
using serverless architecture, api calls and aws lambdas
absolutely no local js calculations
 
5:58 AM
I also love operational costs
 
localstack means it's free while testing locally :p
+ the uni gave out $100 in aws budget for each student in the architecture course this is the assignment for
 
6:17 AM
https://tio.run/##y00syUjNTSzJTE78/99RwVbBJzM3syQ6L85Az1RLw1A3uDQ32lBfI087EySiqVOdqWOok1cbq6mTp2vnmZeWmZdZUhnLFVCUmVcS7Qhj@AGZsf//AwA
Is this too complex for Mathematica to solve?
 
6:30 AM
@l4m2 you might want to ask it on Mathematica.SE
 
With basic knowledge to such, what ratio of people can solve it?
 
I don't get your question
with basic knowledge of what?
 
of integrate and derivative
 
Idk how it even relates to integration
 
I solved using integration but maybe that's unnecessary
or knowledge of limit
 
6:54 AM
hmm, so the sum is upper bounded by integration of the function from 0 to n and lower bounded by 1 to n I think? Both of which Mathematica does solve with Integrate in a minute
I guess Mathematica takes too long to figure out that converting to integration works, or it is simply not implemented and it is the job of the user
 
7:21 AM
Been coding for 9 years and just had a bug thanks to (a or b or c) in list >:|
I really like the lang (Perl?) that lets you do x == y | z, extending that to x | y in z would be pretty natural (if perl doesn't already have something like that) and I think both of those are solid syntax sugar to include in a language
I also wrote if x == -4 or x == -4 (supposed to be -4 or 4) which I also feel would be a harder mistake to make with that syntax
 
att
mathematica has (x|y)∈z, but asserting x,y are both in z
(and of course ∈ doesn't work with lists on the right anyways)
 
7:42 AM
0
A: "Hello, World!"

BubblerBefalse (quirkster), 22 bytes "!dlroW ,olleH"::::..; Try it! (Usage: copy-paste into the code box, click Show above it, and then Run.) So this is the golfiest way to repeat a single command a finite number of times and halt in Befalse. : (Call) pushes the position to return onto the return stack...

 
Oh no...fuck...not again
I think I found a bug in a programming language
Python's doing some weeeeird stuff and as soon as I log two bytearrays it fixes it
I'm getting war flashbacks to the time my JS was bugging out and adding logging fixed it and it turned out to be a chrome console bug
Okay phew it looks like it's not actually the logging that's causing the nondeterminism, so something's still very broken but it's not that
 
What's going wrong?
 
If I capture a piece, sometimes the piece remains the original, but all of my logging in the move/capture code shows the function ending with the proper piece being placed in the proper square
omfg
it's a front-end issue
I checked earlier but I must've misread it
Fixed
 
8:05 AM
@RydwolfPrograms x in (4, -4)
Shorter and the preferred way to do it
 
Ooh, forgot about that pattern
 
8:42 AM
Whoa I wrote a fuzzer to check my new implementation of some code for bugs, and I actually ended up finding one in the old implementation
 
8:54 AM
Oop found another in the original implementation lol
I like fuzzing
At least it's called fuzzing and not furring
 
Fuzzing is a good thing
Aaron found a few vyxal 3 bugs using it so I can attest to its usefulness
Topical given fuzzing is part of the software verification assignment I'm doing :p
 
9:28 AM
yeah, one particularly good use case of fuzzing is fuzzing compilers/interpreters
 
 
3 hours later…
12:38 PM
@RydwolfPrograms tempting, but I happen to value my privacy :p
 
00:00 - 13:0014:00 - 20:00

« first day (4860 days earlier)