« first day (3986 days earlier)      last day (860 days later) » 

12:08 AM
@Fmbalbuena \z only ever matches at the very end of the string. \Z is the same as (?=\n?\z). $ is the same as \Z unless you turn on multiline mode, in which case it's (?=\n|\z).
 
12:21 AM
@Neil and (A|(?2))((?0)) errors
i want without *
 
0
Q: AoCG2021 Leftover: HexaGoL

BubblerThis challenge is one of the two challenges which were planned for Advent of Code Golf 2021, but didn't fit into the 25-day schedule. Related to AoC2020 Day 24, Part 2. Given a binary configuration on a hexagonal grid, output the next generation of Hexagonal Game of Life using AoC rules: A livi...

 
0
A: Sandbox for Proposed Challenges

Fmbalbuena[1], [2], [1, 1], [3, 2] Sequence Challenge: The sequence starts with [1] And multiply by the reversed indices plus one. And make an extra list containing 0 length of the list times. If the number is greater than reversed indice plus two, then modulo by indice plus two, add number integer divided...

 
^ Any feedback?
 
1:39 AM
@lyxal are you active?
 
lyxal are you active
@Bubbler i'll explain
what is the sequence?
[3, 2]
 
@cairdcoinheringaahing I agree with the comments there, especially the part that the task as-is may be unsolvable. How about a code challenge (tiebreak code golf), where you write three programs but overlapping properties are not counted, and the count of properties covered is the main score?
 
[9, 4] [0, 0]
[9, 1] [1, 0]
 
I got to that part, yes
?
 
[1, 1] [2, 1, 0]
RETURN [2, 2, 1]
 
2:05 AM
Oh, reversed index plus 2 is [4, 3]
okay, so 4 mod 3 remains and 4 div 3 goes to the extra list
 
ok, can you implement?
to add test cases?
 
Hmm
I think it's easier to explain as a number system instead of arrays
 
i said implement
 
No, you don't have any right to make me implement it.
 
ok
i can't do it in my head
@Bubbler is there a way to improve?
@emanresuA hi
 
3:11 AM
These bounties are ridiculous
 
lol yeah
 
You gave away an insane amount of rep
 
only 55x the amount you usually get
Imagine if it hadn't stopped
 
3:54 AM
@user LoTMs are usually pretty expensive rep wise
 
@Bubbler I don't think this should be starred, Fmbalbuena's message seems pretty clearly to be unintentionally rude due to a language barrier/misunderstanding.
Although I initially read it as "I said implement!", like a demand, on second read it seems more like a bad translation of "I meant implement"
Which would make sense given the context.
 
True, I'm aware of that
 
4:08 AM
@lyxal Not really - jq lotm cost me ~1/4 of what I made during the month, and that was pretty popular
@RedwolfPrograms I read it as #2 :P
I'm doing a maths lesson about infinite sequences and half the answers are 1.
 
Is it about limit of sequences?
How to solve limits: Roll a d6. If it is 1/2/3 then the answer is 1. If 4 then the answer is infinity. If 5 then the answer is 0. If 6, toss a coin. If it is heads, the answer is e. Otherwise, surrender.
3
 
e? I've never gotten that one before
 
You will see it in certain forms
lim(n->inf) (1+1/n)^n = e
 
That sounds oddly ominous for some reason
Ah
 
@Bubbler Yep, pretty much
lim(n->inf) ln(n)^e is cursed tho
 
4:19 AM
And once you learn that equation, you get weird exercises like "continuous compound interest" that no one uses in real life
 
because banks don't want to lose all their money
 
Nah, they'd just use it on loans :P
 
True lol - imagine interest is compounded yoctosecondly in the small print
 
Imagine continuously swallowing money from customers' wallet
 
Imagine getting a dog to do ^
@Bubbler If there's a minus sign, toss a coin and negate if heads
 
4:32 AM
^ what is lgtm saying here ?
 
4:43 AM
0
Q: Minimum difference between cartesian product of 3 elements that add up to a certain number

U12-ForwardLet's say I've got a list (or array) of: l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] I want to get the Cartesian Product of the above list, where every sublist would have 3 elements. Then I want to filter and only keep the sublists where the sum of that sublist equal to the maximum value of the list. Th...

 
4:54 AM
Colour me very confused
 
@PyGamer0 i think it's recommending that you override __eq__ when making a subclass with new attributes (which should either be considered when comparing equality or consciously ignored)
 
@LYXal Lol, the first parts of our answers are identical.
I like my vƒε rho
 
5:16 AM
@emanresuA because that's basically the shortest way to do the first part lol
 
Yeah. I lost my vƒε :(
 
The worst part is that I can't use bubbler's observation because then I'd just get the same answer
 
Sorry
 
 
1 hour later…
6:49 AM
@UnrelatedString although that's stupid in this case, because __dict__ obviously doesn't need to be compared (in fact, it would cause infinite recursion). @PyGamer0 just ignore that one
 
7:09 AM
is it possible to set up lgtm with private repos
i can't seem to figure it out
i did give the integration access to all repos in the org
 
lgtm is only free for open source repos
 
ah. ok makes sense
if i don't include a license the default is disallow taking/using the code, right? or am I remembering that wrong
 
@hyper-neutrino in general that is how copyright works yes, although GitHub's terms of service include this provision
 
7:37 AM
interesting. so am I reading that wrong, or is it impossible to have a public repo on git for which you can fully deny permission to reproduce
 
If you wanted to do that, you wouldn't be using a public github repo
 
?
i don't see there being a contradiction with wanting to license your code to not be able to be taken while also not being opposed to it being publicly visible
 
8:02 AM
136
A: What can I assume if a publicly published project has no license?

RubberDuckIf a repository has no license, then all rights are reserved and it is not Open Source or Free. You cannot modify or redistribute this code without explicit permission from the copyright holder. I'm unsure of the legal implications of actually pulling the source local and building/using the softw...

Looks like the default licence is read-only
 
hmm, i see. okay, so that seems to line up with what the TOS says about being able to use and display your code under the limitations of github's functionalities
oh well, i don't care enough about code review to deal with licensing; if i needed my code looked over i have people to ask lol
thanks anyway
 
@pxeger ok
 
8:42 AM
> Unless you include a license that specifies otherwise, nobody else can copy, distribute, or modify your work without being at risk of take-downs, shake-downs, or litigation. Once the work has other contributors (each a copyright holder), “nobody” starts including you.
If you ever were bothered to add a license, I'd suggest the MIT license. From choosealicence.com:
> The MIT License is short and to the point. It lets people do almost anything they want with your project, like making and distributing closed source versions.
Fun fact: github can add a licence to your repo for you if you go to the insights tab and then go to the community section
 
i think i like GNU GPLv3
or Mozilla Public License 2.0
eh whatever
 
9:02 AM
I’ve given up on parsing HTML with regex for today
2
 
@emanresuA ok then parse flax with regex
 
Fun fact: on iPhones, you can only type actual quote characters in a URL by having your phone vertical - horizons will do smart quotes
 
in flax, 18 secs ago, by PyGamer0
IT IS ALIVE
^ when i am super exited that my code worked
 
also flax now has 60 commits, just 9 more and i am done
 
9:16 AM
Dammit auto correct
 
@emanresuA +/¨
      {⍵[⍋⍵]}¨(3 4 2 5 7)(1 5 3 7 8)
┌─────────┬─────────┐
│2 3 4 5 7│1 3 5 7 8│
└─────────┴─────────┘
@PyGamer0 ^^
 
 
1 hour later…
10:21 AM
CMC print a random printable Unicode character
 
Define "printable Unicode character"
 
Something you can see
 
That depends on the font.
 
Can you explain?
 
Unicode defines the meaning of each code point, but not their exact look (even though there is a reference rendering, but fonts definitely don't have to follow that).
E.g. a font can choose to render every character as a box with the code point number inside. That's perfectly valid, and some fonts do this.
 
10:28 AM
^
 
@graffe What you do is say "Print a random Unicode character that neither has the White Space property nor is in the Unassigned category", but you should also specify which versions of Unicode are acceptable.
 
what is the unassigned category, the private use areas?
why was PUA added to unicode?
so people can make Nerd Fonts :p
 
Unicode can encode many more characters than are currently in use.
 
10:43 AM
o_o
 
 
3 hours later…
1:51 PM
@Bubbler We all know the best way to solve limits is to plug the equation into desmos and see what happens :P
 
2:10 PM
@cairdcoinheringaahing or if you hate desmos, use geogebra :)
or if you are jdh, just make your own calculator
 
2:55 PM
Hello
...
knock knock
 
i just got a matrix multiplication problem right
 
3:40 PM
 
differences between {1,} and +?
in regex
 
None, afaik.
 
@lyxal MIT is usually what I use but in this case I specifically want to deny copying/distribution/modification
i do license almost everything i do with MIT by default tho
 
4:20 PM
@Bubbler realistically, though, Gruntz algorithm is fairly good.
i do agree that limits are pseudomath though
i plan to turn kamilalisp into a CAS and i won't say how much i hate limits now :P
i already hated them being a mathematician professionally, but now i hate them even more
it's mainly just human intuition - this dominates that, this doesn't matter, etc...
very hand-wavey
 
so when is windows 10 gonna get deprecated?
 
probably once windows 11 is actually good
 
Currently, the official date is January 13, 2032.
 
phew
cause my computer's processor is not supported
and probably my computer will die before 2032 lol
 
10 years? Not that long for a computer.
I guess they are not built the way they used to be. My father's PC he bought in '87 worked just fine when it got thrown out in '12.
 
4:36 PM
@Adám hmmm (a.){1,} and (a.)+?
 
+ is probably a bit more efficient than {1,}. idk though; I'm just assuming there are some optimizations that can be done for it
though if they really are exactly the same like I think they are, a good regex engine will probably just simplify {1,} down to +
 
Agreed.
 
What about \Q{1,}\E and \Q+\E?
 
welp, I plugged my code into LGTM and it gave me 50 alerts :c no warnings or errors though!
 
LGTM?
 
4:40 PM
 
What does alert do?
 
the site checks your code and gives you information
 
Which info?
 
such as unused imports
 
@Fmbalbuena Those are not at all the same!
 
4:42 PM
Or unused while loop in brainfuck?
 
 
1 hour later…
6:10 PM
0
Q: Implement C++-style cout, cerr and endl objects

Richard NeumannThe goal is to implement objects that behave like cout, cerr and endl of c++. I.e.: Objects of types that can be explicitely or implicitely converted to strings can be written to the cerr and cout objects using the left shift << operator. Writing to cout writes to STDOUT, while writing to cerr w...

 
6:43 PM
@user Can I join in as well?
 
oh are you making an online interpreter too lmao
 
I was (dso.surge.sh) - with proper incentive I might start on it again
Although look at the language list
 
that's a lot of dead fish
 
All the interpreters are handwritten JS :P
 
7:00 PM
 
Probably going to add oK, risky, (ultrarisky?)
@Fmbalbuena Favourite xkcd
 
no
Is your favorite xkcd comic?
 
CGCC recently hit 500 total hats in Winter Bash btw :P
 
including my hats
 
@cairdcoinheringaahing 2% of those are mine
 
7:09 PM
And 3.1% are mine :P
 
me?
 
I'm a whole 0.8% ahead at the top of the leaderboard :P
@Fmbalbuena 9/506 = 1.77%
 
@cairdcoinheringaahing Where is the leaderboard?
 
From the winter bash website, click "Leaderboard" at the top and scroll to find CGCC
 
7:23 PM
@emanresuA Same!
@hyper-neutrino Yeah, by default you own any code you write (unless it's specified in something like an employment contract that the company you work for does). In order for anyone else to have any rights to do stuff with it, you need to explicitly give them permission, and a license is basically just that but available to everyone.
Oh wait like ten other people have already replied the same thing lol
 
Wonder what the most replied message here is
 
I can check, give me a second
Okay, it's pretty boring
This CMC, with 27 replies
 
7:38 PM
I was hoping for something more interesting
 
Yeah same
 
\○/
 
3rd place is this, where somebody replied with a proof, one message at a time, for 19 messages
Wait not a proof
It's just results of running it lol
I wonder if caird's time-on-drugs message really is the most quoted in TNB
I'll check that too
Nope, it is not
Nov 12 '15 at 22:26, by Doorknob
okay seriously stop abusing stars
This has now been quoted 41 times in TNB
 
Also most starred lol
@RedwolfPrograms Can you put the top five in a gist or something?
 
Second place is an avocado juicing message
Likely the original
 
7:52 PM
do you know where the time on drugs message ranks? lol
 
Nope, having to go through the ids one by one and paste them into the URL bar
Okay it's 7th place
 
There is this:
Aug 6 at 8:13, by exedraj
user image
 
I'll put the top 100 in a gist
 
Aug 6 at 8:13, by exedraj
The poor soul must have tried for thirtee minut with no results. Very sad.
 
It seems that people reference is without directly quoting it quite often, which is probably responsible for it feeling much more commonly referenced than the numbers show (plus they're a tiny bit out of date, so it's been quoted twice more since then)
So it's actually tied for third, since every spot below first is extremely close
 
7:59 PM
I dislike your way of ranking with ties
 
Oct 27 '15 at 20:53, by Zizouz212
HOLY MACAMADOOLES WHY THE HECK AM I HERE WHAT THE HELL IS THIS DARN IT ALEX!!!!!!!!
Dec 22 '15 at 22:34, by New Sandboxed Posts
HELLO I AM BOT FEED ME BUTTER
The feeds seem so long ago...
 
I love Alex's "do the thing" after that :P
 
Well now I'm a little worried...I got an email from the hard drive company saying they had "a few questions about my order"
 
what have you done
 
8:04 PM
oh i think sandbox vtc has happened a few times by now
 
People casting CVs to get hats targetting the Sandbox
 
Yeah I wasn't paying attention to chat lol
 
Don't think the sandbox has ever actually been closed tho
 
8:06 PM
Oh, even worse, the email says to call them
 
redwolf
what have you done
 
@RedwolfPrograms what kind of evil have you committed that requires a phone call to fix?
 
I'm sure they'd be even more confused when they learn the drives were ordered by a 16 year old
Since I'm sure I sound like a teenager
I'll just reply and ask if we can communicate through email instead lol. Any convenient excuses y'all can think of?
 
Open the phone call with "Hi yes, I am a 16 year old teenager. How can I help?"
 
@RedwolfPrograms Your cat died, so you have to keep the freezer open, and your phone cord only works when it runs through the freezer.
 
8:10 PM
I don't think you need an excuse, just reply to their question by email instead of accepting a phone call
 
@RedwolfPrograms Your phone is only able to send emails, not phone calls
 
also my guess would be that this phone call is actually gonna be a sales call on the assumption you're procuring for a big company
so they want to give you a deal so you'll buy more hard drives
 
redwolf, don't buy more hard drives
 
It's my dad's credit card, so why not
2
 
1. needs more focus (aged)
2. opinion-based (aged)
3. duplicate (cleared)
4. opinion-based (cleared)
5. opinion-based (cleared)
6. opinion-based (cleared)
-- close review: completed (leave open)
7. needs more focus (cleared)
the sandbox has received 7 close votes
 
8:11 PM
I get sales calls from Oracle for that reason, despite only spending about £0.10 a month
 
@hyper-neutrino wait, "cleared"?
what's the difference between cleared and aged?
 
idk, it says cleared, which i've only seen when it got closed ¯\_(ツ)_/¯
i think it says cleared because a close review left the question open
whereas the other votes just expired
 
> 9069 events
The Sandbox has been busy
 
9537 for me lol. it gets flags so often...
 
I just realised why this is a bit of a pointless builtin (in my Jelly fork):
> ÐF Like ¡. Returns the number of intermediate results, not counting the initial result <link><repetitions>ÐF <link><repetitions>СL’
 
8:15 PM
293 edits
@cairdcoinheringaahing ಠ_ಠ
 
I'm glad I've been refreshing the order status page every 10m for the last few days, since the email about the phone call went right to spam
 
Idea: vectorise function calls on the left-hand-side. So [f,g,h](x) is [f(x),g(x),h(x)]
 
But I am glad they called me, since I forgot to turn my alarm on and that woke me up at the usual time it's set for (though I didn't answer of course, since it was some random number in Ontario)
 
Jul 21 at 12:55, by Adám
Expert golfers REVEAL: You won't believe how GREAT this chat room is!
Jul 21 at 13:04, by caird coinheringaahing
I'll be auctioning off my rep and badges in a few days, see y'all there :P
 
I wonder what the longest chain of replies in TNB is
I'm not actually going to check that though
Wait, I kinda have to now. I wanna know.
 
@hyper-neutrino the second I saw that tio I knew it had to be proton
you never disappoint me lmao
 
oh you know what's fun
[f, g] errors
for functions f and g
without even calling it. you just can't make a list of functions
 
what does the & do? Is it currying?
 
@hyper-neutrino Proton's wiki is kinda unfinished
 
& is argument binding
 
oh, it's BMG in 3 hours
get drafting!
 

 BMG Drafts

Draft voting for Biweekly Mini Golf
 
9:04 PM
Anyone willing to help me fix this horrible JS?
f1=(l,n)=>{l.sort((a,b)=>a-b);r=[];for(i=0;i<l.length;i++){if(l[i]==n){r=r.concat(i)};return r}}
The idea is to collect the indices where n appears in the sorted l
(And yes, I know there are better and shorter ways to do this.)
Ugh, how do I sort l inside the function, without affecting the array I called it with?
 
you'll have to copy it
[...l] works I think
you also need to do r=r.concat([i]) (or just r.push(i))
 
Thanks.
 
9:34 PM
And note that that won't change l in the function either, it just sorts a copy, so you'd need to do l=[...l].sort(...)
 
9:53 PM
particularly cursed approach: (l,n)=>l.map((_,i)=>i).filter(i=>[...l].sort((a,b)=>a-b)[i]==n)
 
@emanresuA Of course, why not
@Neil Does that...create a new copy and sort it for every index? That's beautiful
 
Interesting to see that a lot of rep is lost due to the cap
 
10:11 PM
Wow, Giuseppe's only gotten 2 downvotes
 
I've found that challenges get downvoted much more than answers, and Guiseppe almost only answers
 
Ah
 
Take a look at the users with 100+ downvotes - a lot of them have Socratic, and those that don't are close
In fact, Eric, Adám and Dennis are the only users with 100+ downvotes and <100 questions, and Adám's on 95 :P
 
11:05 PM
And Geobits
Oh wait, is this recieved
 
Yeah, total number of downvotes you've received
 
I've recieved -25
And +2017
 
I guess I should post another 5 questions.
 
Wait wtf martin's got more upvotes than dennis
 
Martin repcapped more :P
 
11:08 PM
We need a meta question with default rules for stateful challenges
(Might already exist, couldn't find one though)
 
is a relatively new-ish tag IIRC, so it's likely it doesn't
 
@RedwolfPrograms Such as...
 
Questions like "how should functions be handled" will likely need roughly the same rules specified in every challenge with the tag
 
Oh true
 
personally, implies to me that full programs are required but ¯\_(ツ)_/¯
 
11:11 PM
And to me it doesn't, which is a good indicator we need some consensus lol
 
@cairdcoinheringaahing Wow, anna328p has nearly ⅓ as many downvotes as upvotes
and kninnug has 0 downvotes and 0 upvotes despite having 1.4k rep
 
Having a question at -22, and another one at -12 doesn't help
 
ouch
 
yeah, they posted a lot of very basic ones
 
11:13 PM
@pxeger Wait how? They don't have any bounties either
 
which are pretty controversial
 
> contraversial
Mwahaha, I have caught pxeger making a spelling mistake!
 
@pxeger Wait what
 
@user going by their "Great Answer" badge, they must have a deleted post
 
Your pedant status has been revoked!
 
@pxeger You keep rep from deleted posts?
 
I guess you must do yeah
 
If they're older than 60 days
 
According to this I have roughly sqrt(3) Socratics
 
@cairdcoinheringaahing @RedwolfPrograms I've edited the schrödinger's cat challenge - is it better now?
 
11:17 PM
@Bubbler it's closer to cuberoot(5)
 
No
The issue is about functions, your edit doesn't address those
 
Your edit doesn't really seem to change anything other than wording, right?
 
Oh... I thought it was that that was why it was unclear
 
CMP: Should I aim for Socratic (<=1 Q per day) or Legendary (>=2 Q per day)?
 
If a function is allowed, it's not obvious to me whether it should be tested by multiple function calls in one run, or re-executing the code and calling the function once each time. The first seems much easier to accomplish. — xnor 23 hours ago
 
11:18 PM
@Bubbler Can you get multiple socratics?
 
Apparently yes
 
@Bubbler Socratic, you can get Legendary through answers as well
@emanresuA Yep, Calvin has 2
 
and WW got their 2nd this year too
 
How can I see my progress towards a tag badge?
 
@cairdcoinheringaahing One problem is, I'm not writing that many answers these days
 
11:21 PM
@Bubbler I have no idea how you'd be able to post >2 Qs a day, I'd run out of ideas so fast
 
@pxeger Click the options menu next to the tag badge in your activity page to show a list, or if a tag badge isn't showing, then switch from tracking the next privilege to the next tag badge
 
Plus, you'd lose a lot of rep with 2 Qs a day, as you'd likely get 100-150 from each
 
@RedwolfPrograms thanks, that's pretty non-obvious...
 
@cairdcoinheringaahing Randomly browsing the Internet + digging the OEIS
 
50.2% of the way to code-golf gold
 
11:23 PM
Tracking badges vs privileges is a bit of a weird compromise UI feature
 
and I have weird affection to domino/polyomino problems, which have unlimited variations
 
@cairdcoinheringaahing I like to take inspiration from the real world, based on problems I find myself solving
 
My nephew got a game for Christmas, which has given me a list of about 10 potential challenges
 
But I don't do a massive amount of problem solving, plus all of my challenges that come from those inspirations feel like "filler" challenges
 
11:24 PM
I'm coming to get you,
 
I haven't had a challenge score above 20 since August :/
 
I've had precisely three such questions in total lol
 
also I go through CP regularly and some of them make pretty interesting problems (when I/O restrictions are lifted)
 
CP?
 
Competitive programming
 
11:26 PM
competitive programming a.k.a. online judge sites
 
ah
 
@pxeger I've had 26 challenges of 25+, and 50 challenges that have scored 20 or higher
About 1/3 of my challenges score 20+
 
My top scoring challenge recently got to +50
 
@pxeger I love the fact I said "precisely" here, and then proceeded to write the wrong number on the first revision
 
Schrodinger's uncertainty principle lol
 
11:40 PM
Heisenberg's cat just died somewhere xD
 
How fast did it die though?
 
Now that its dead, we know its momentum, so we can never truly find it :P
 
T minus 10 minutes till BMG
 
11:58 PM
2 minutes
All we have are my AIDrafts
 

« first day (3986 days earlier)      last day (860 days later) »