« first day (3977 days earlier)      last day (863 days later) » 
00:00 - 12:0012:00 - 00:00

12:01 AM
0
Q: AoCG2021 Day 19: To Hire or To Fire

pxegerPart of Advent of Code Golf 2021 event. See the linked meta post for details. The story continues from AoC2018 Day 7, Part 2. Why I'm pxeger, not Bubbler As soon as you and a few Elves successfully assemble the Sleigh kit, you spot another set of the same kit not so far away. But you noticed tha...

 
> Why I'm pxeger, not Bubbler
Damn, CGCC getting philosophical over here :P
 
It really do be like that sometimes
 
12:16 AM
TIL you can put a shulker on top of an arrow with commands, and launch it at people
Because you can load any arrow entity into a crossbow
Gonna try it with other weird stuff tomorrow
 
Because this is exactly what I needed in my life right now. Shulker arrows. Very cool.
 
12:32 AM
*C (StarC)
 
12:58 AM
i feel like i've seen something like that before but don't have the time to search for it right now - anybody else recognize it?
it wasn't phrased as reshaping a string and i think it missed the prefix limit but it was a spinoff of string division or smth
 
what does this even mean?
 
it means what i said - I think i've seen a challenge similar to yours, but i'm about to go somewhere and don't have the time to search the main site for it
 
ok i will post this challenge because ~8 revisions.
@Riker ^
 
Number of revisions isn't a good metric
 
1:06 AM
@cairdcoinheringaahing Yeah i know
 
It looks fairly clear tho to me
 
ok so i can post?
 
I'd still wait a little while, but if you feel like it you probably can
 
Then i'm reading this again and post.
done. i will post.
@cairdcoinheringaahing @RedwolfPrograms ^
 
1:10 AM
I'm surprised we don't have a tag for prefix/suffix (maybe ?)
 
tags: code-golf
string
prefix
reshape
2 unknown tags
 
prefix & reshape aren't tags and don't need to be tags
 
Can i add?
 
Don't use prefix or reshape, they don't exist
 
imo
 
1:12 AM
might apply
 
prefix could maybe use one but it's too broad imo - that is, there's too many possible interpretations to make the category useful
yeah subsequence sounds fine for this
 
ok so 3 tags. i'm done about tags?
 
.shrug looks fine to me, it's your challenge in the end
 
I'm posting
now
Wait a minute
done
 
0
Q: Check if the string is reshaped

FmbalbuenaChallenge Given an input string X, determine if X can be obtained from reshaping a strict prefix of itself (a prefix that is not X itself). Reshaping a string to a length N means repeating the string as many times as needed and then taking the first N characters of it. Examples: The string "abba"...

 
1:16 AM
Oof downvoted in <7 seconds :/
 
caird seems sus
@cairdcoinheringaahing explain your Jelly code
 
I've added an explanation
Also, I think your answer only works if enclosed in {...}, otherwise it isn't a dfn
 
@cairdcoinheringaahing the {} is a lambda
like lambda x: in Python
 
I know, but you still need it, otherwise it's just a snippet
 
edited
@cairdcoinheringaahing is there a way to get prefixes of a string without the last char?
 
1:31 AM
In what language?
@cairdcoinheringaahing no, if the Truthy value must be same — Fmbalbuena 1 min ago
@Fmbalbuena What do you mean by this? You seem to contradict your previous comment
 
@cairdcoinheringaahing non-zero truthy is allowed, but must be equal number.
 
I'd suggest editing in that the outputs must be consistent
 
@cairdcoinheringaahing Explain your code again :/
 
oh, I golfed my 7-byter that i had in mind while this was in the sandbox to 6 and then of course caird posts a 5-byter before i get back from dinner :P
 
@hyper-neutrino I had a 4 byter but Fmbalbuena wants consistent truthy values :/
 
1:44 AM
rip
 
reposting because it didn't get any answers previously:
14 hours ago, by lyxal
CMQ: What have you enjoyed/disliked about previous LYALs?
14 hours ago, by lyxal
and what would be the one thing you would recommend/change to make a LYAL better?
 
2:13 AM
Is it just me or do Java and C++ feel really...bloated?
 
Java more so than c++
 
java is much simpler
 
I wouldn't say c++ is too bloated, just a little verbose if you use templates etc
 
wait what do you mean by bloated
 
I mean verbose
 
2:15 AM
Bloated could also mean too complex/too many features (and too many features is not a problem Java has :p)
 
I mean bloated as in they're totally full of features, massive standard libraries, all sorts of overlapping and/or ancient and useless stuff
 
How is Java full of features?
3
And the standard library is nice and modilarized now, with the old stuff all marked deprecated
Java is actually a nice simple language at least until you get to frameworks and libraries other than the std lib
 
@RedwolfPrograms that could also describe js with all the different versions
 
Well, not nice :p
@lyxal idk about massive standard libraries and too many features for js
 
@lyxal Sure, there's a gazillion variations for every browser and version thereof, and the browser ones tend to have some necessary bloat for all of the DOM and browsery stuff they need to handle
 
2:18 AM
JS needs more, although they’ve been making progress
 
JS's standard library as far as actual programming type stuff like data structures, basic functions like range/max, etc. are all missing
 
which is why loash and such exist
 
I’ve just gotten back from wrangling with poorly written Java code since 8 in the morning and let me tell you, Java needs wayyyyyyyyy more features and handy stuff in its standard library :p
 
2:38 AM
I have this hat and it has almost made me click it because I thought it was that (1) thing that shows up when you have a message uncountably many times
 
@user don't you use scala
and scala prolly has a better stdlib
 
> Access to fetch at '...' from origin 'null' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
Ah yes, thank you Chrome for protecting my webserver from unauthorized use of Content-Type :p
 
cors is the bane of my existence
 
Wait, Content-Type is CORS-safelisted
Weird
Fun little project I just threw together: redwolfprograms.github.io/word-familiarity
Pick the word that's most familiar/commonly used
For example, if the choices were "potato" and "phosphoresence", you'd probably pick the first
 
3:04 AM
@RedwolfPrograms how many questions does it ask
 
Infinitely many
Well, actually it stops at about 60k
 
what if both words are just as familiar?
 
I just pick the first one in that case
Since they're in a random order it'll even out eventually
 
3:23 AM
anyone know a link shortener that supports urls with hashes
 
@emanresuA I wasn't aware any of them didn't
 
is it too long maybe?
 
3:28 AM
¯\_(ツ)_/¯
Tinyurl is fine so I'll use that
 
maybe it's the ##
 
I, too, (ab)use tinyurl to host my files
even to turn in school assignments
 
Never mind, tinyurl gives a 502 when I try to access the link
 
one of my ideas has been to abuse sites that provide storage of unlimited items but not meant for general data, and try and store files with it
e.g. try and turn a file into a video which can be uploaded and stored on youtube
 
Compression would probably ruin that
You can fit crazy amounts of data in a 4k wallpaper, so image hosting sites could work
 
3:30 AM
yeah so you couldn't just copy the data into pixels
 
shorturl.at is brokne
 
but if you start with 1 pixel per "slide", 2 colours per pixel, 1 slide per second, and work from there, you'll hopefully find a combination of settings for optimal storage vs. reliability under youtube's compression algorithm
 
I suppose with YT even doing four or so screens per second of large 16x16 or so pixel blocks in 64 colors wouldn't be impacted by compression, and could fit a lot of data in 10 hours
 
You can see the repetition in a zipped url
 
@RedwolfPrograms I think the limiting factor would be conversion
 
3:33 AM
Wdym?
 
it would take a long time to render a large file into that kind of video
 
@RedwolfPrograms This would store over 30 GiB in 720p
 
you'd need to work out what youtube's bitrate is and make sure you don't try and go over that
 
@pxeger That's true, but I doubt it'd take more than like...a day
 
but that's still not very practical
 
3:36 AM
Keep in kind that's for a full 30 GiB file though, nearly two wikipedias
I doubt you'd ever practically need more than a few GiB
 
i think you can store things in google sheets
cuz i don't think those have storage limits
@RedwolfPrograms wait, wikipedia fits within ~15 GB? (or GiB - what's the different again)
 
Yeah, it's like 17 GB IIRC
I've got it on a micro sd card somewhere
I think I lost wikipedia guys
 
@hyper-neutrino What? Wow it compresses well then
@RedwolfPrograms How much of that would be images?
 
It's 51 GB uncompressed
 
@RedwolfPrograms I make it 371MiB
 
3:39 AM
@emanresuA With images it's 78 TB compressed
 
Oh.
 
720 * 1280 / (16 * 16) * 4 * 10 * 60 * 60 * log2(64) / 8
 
log2(64)
 
yes?
 
Nvm
 
3:43 AM
Oh huh. I wonder where I messed up
 
I'd place my money on just unit conversion
because I still get something close to 3x10^k
 
@RedwolfPrograms well everyone counts c++ as the hardest language, i think its because there is a gazillion ways to perform simple things.
 
@RedwolfPrograms I think the core language of Java is much smaller (relatively speaking), but it still feels bloated because of the huge number of 3rd-party utility libraries which are invariably included in every project regardless
 
is log4j open source?
 
3:52 AM
Is log4j turing complete?
 
I already asked that D:
 
Yes yo udid
 
And, with CVE-2021-44228, yes
Without it, not to my knowledge
Otherwise WAFs wouldn't be able to block most attacks
 
I don't think it's valid to say log4j itself is TC
or at least, it's misleading
 
@pxeger correct
 
3:55 AM
44228 is just downloading code from somewhere and executing it with Java, and it's Java that's TC
 
it's like saying a language is TC because it can make web requests to servers that execute code
 
Yeah. It's sort of ambiguous to ask "is log4j TC" because that could mean a number of things
 
It's like saying Vyxal is TC because you can ACE Python into it
(Although Vyxal is tc anyway :p)
 
@pxeger latest commit 2015 wow
 
I think that mirror must be out of date
 
3:58 AM
probably
 
ahah, that's the old log4j, version 1
 
4:10 AM
@RedwolfPrograms I meant including other internet communities too; but I've just failed because I was looking for correct usage of amsmath in LaTeX.
 
4:32 AM
@pxeger aha this one has a readme
 
4:52 AM
0
A: Input/Output format, scoring, and the status of The Powder Toy

PyGamer0Scoring A stamp is similar to a function and a structure block from minecraft (which is an acceptable way of counting bytes in Minecraft) and can be pasted on the screen. It is stored locally as files and hence, we may output its byte count instead of an entire save which may have many useless i...

 
0
Q: Nim style question with non continuous set of moves

user690808You have n rocks in a pile and in each turn player 1 and player 2 either take 1,2 or 5 rocks from the pile. The player whose turn it is when there are no rocks left in the pile is the loser if both play optimally find the winner of the game given any n. I was trying to solve this like the nim gam...

 
5:15 AM
@NewPosts y'all really just vtc with no comment to op :/
 
 
2 hours later…
6:56 AM
0
Q: Amy is playing the game Prince of Persia in this game, the prince has to battle against N bosses

Anumula DharmaraoAmy is playing the game Prince of Persia in this game, the prince has to battle against N bosses The prince has to fight the ith boss in the level in order to fight the bosses the pnnce needs Health Armour We are given an array Armour where A will denote the minimum number of Armours the Prince n...

 
7:36 AM
High priority issue right here
 
done
:p
 
@GingerIndustries have you made any more progress on mine
 
∴∵∴∵∴∵∴∵∴∵∴∵∴∵∴∵∴∵∴∵∴∵∴∵
cool border
 
7:51 AM
i'm worried i might be a bit too far into a grey area with the no secret keys bit but don't think they should be an issue once you've figured out what they do
but am worried about the figuring out what they do part
 
I have a kinda mean idea
 
go for it
 
8:40 AM
0
A: Sandbox for Proposed Challenges

cjquinesTwins' complements Consider a length-\$n\$ array of positive integers. The complement of the element with index \$i\$ is the element with index \$n - i\$. The twin of an element \$a\$ is its complement after removing all elements not equal to \$a\$. For example, in the array [1, 2, 3, 4, 2, 1, ...

 
I wonder... are you allowed to submit a png that's an assembly polyglot or something?
 
the first PR in flax: #1
^ flax logo?
 
flax
 
9:38 AM
> Also your actions will be reported to [...] the proper governmental agencies.
 
9:54 AM
0
Q: Find all reflexicons using roman numerals

adrianton3A reflexicon is a self-descriptive word list that describes its own letter counts. Take for example the one found by Ed Miller in 1985 in English: Sixteen e’s, six f’s, one g, three h’s, nine i’s, nine n’s, five o’s, five r’s, sixteen s’s, five t’s, three u’s, four v’s, one w, four x’s This ref...

 
10:19 AM
What is the use of \K in regex?
 
10:32 AM
@Fmbalbuena The escape sequence \K causes any previously matched characters not to be included in the final matched sequence. For example, the pattern foo\Kbar matches "foobar", but reports that it has matched "bar".
 
 
1 hour later…
11:46 AM
@UnrelatedString nope
@emanresuA damn PPCG had a Minecraft server?
 
Why my code not working (regex) [^.]@ (Finds the "@" if there is no "." at the previous of "@")
 
@Fmbalbuena ¯\_(ಠ_ಠ)_/¯
 
@GingerIndustries STOP
 
@Fmbalbuena ಠ___________ಠ
 
@GingerIndustries Please don't
 
11:52 AM
@Fmbalbuena sure fine
 
@GingerIndustries ok
 
but i'm not happy abt it
 
@GingerIndustries ( ͡° ͜ʖ ͡°)
 
@lyxal ( ಠ ʖ ಠ)
 
@GingerIndustries (´• ◡ •`)
 
11:55 AM
@lyxal (´ಠ _ ಠ`)
 
@GingerIndustries look how they massacred my boy
 
@lyxal biblical angels be like ಠಠಠಠ_ಠಠಠಠ
 
there's a reason I used that specific one lol
 
@lyxal one second
@lyxal this may take me a second
 
@GingerIndustries I don't like the sound of that
 
11:57 AM
Why my code not working (regex) [^.]@ (Finds the "@" if there is no "." at the previous of "@")
 
@GingerIndustries I really don't like the sound of that
 
@lyxal you really shouldn't
 
that makes me not like the sound of it even more
 
00:00 - 12:0012:00 - 00:00

« first day (3977 days earlier)      last day (863 days later) »