« first day (3740 days earlier)      last day (1097 days later) » 
00:00 - 20:0020:00 - 00:00

12:00 AM
i don't think it's about SE CMs, admins, and mods
i think it's about general communities
 
This has aged well:
> Sometimes the owners or overseers of a community need to remove someone popular -- suspend a top user, boot a popular moderator, or fire a key employee. As we've seen, sometimes this causes an immediate, vehement, and very public reaction, and you have a public-relations fiasco on your hands. Not only are you losing community members (and the benefits they bring, like ad dollars), but perhaps more importantly, your reputation is taking a huge beating on the Internet.
asked Jul 3 '15 at 23:04
Monica Cellio
 
:/
> Let's take the example of Stack Exchange: I think there is no risk of a "Reddit-like" crisis on Stack Exchange. The reason is that Reddit is rather unessential, whereas Stack Exchange has become an everyday work tool for many. In absence of viable alternatives, people will always come and play by the rules, whether they agree on how the site is run or not, because they need. If your community provides value, I think you can simply run it just the way you please.
gd1
 
...
I have no words
 
That's unfortunately true I guess
 
12:21 AM
 
@Bubbler They both look good, but only if you post them after I post my next challenge :P
 
Maybe we can tie by writing the 100th challenge on the same day :P
 
The basis for the Hexagony one is actually really fascinating, it seems like it'd be really cool seeing if it's widely usable in challenges
@Bubbler That'd be a good way to get it :P
 
12:36 AM
@cairdcoinheringaahing It's pretty good for single byte output, but it quickly falls out when you need to output more than one char in a single program (without redirection commands, O(n^2) program size is needed to print n chars)
 
 
3 hours later…
3:54 AM
0
A: Sandbox for Proposed Challenges

A usernameNumber of solvable 2xN mazes Your job is to write a program that takes a number N as input and outputs the number of 2-by-N mazes that are solvable. A maze is solvable if it has a path of empty cells (represented here as .) from one end to the other. For example, xxxx..... .....x..x is solvable,...

 
 
2 hours later…
5:40 AM
I think the accepted answer to "Things to consider when writing challenges" is somewhat outdated and does not reflect the current culture well enough. Should we fix it?
(My answer is yes, in that it does contain valuable tips and it is linked from the Welcome post)
 
We can take a look at it and either rewrite it totally or just go through it and bring everything up to date
I think that'd be a good idea, especially if it's linked as something we want new users to read before participating
 
6:15 AM
Any feedback? Note Bubbler's comments at the bottom.
 
6:32 AM
@Ausername ask for output of the 2XN mazes
makes the question harder but unique
and a lot more interesting than the recurrence mentioned
 
Yeah, that's definitely an option
 
making it non code-golf would be a good idea at that point
 
How would it work without code-golf though?
 
i'm not sure
you just need to extend one of the answers to brute force all the possible binary patterns
 
True
 
6:40 AM
Hello everyone!
Have there been any challenge to draw the probability tree of n consecutive coin flips or dice rolls?
In ASCII like
 
There must be a tree-drawing ascii art challenge
 
H T
HH TT HT TH
HHH TTT...
 
Found one more challenge! (insert evil grin here)
 
Make sure to objectively describe the ascii art format though
 
6:43 AM
it'd be funny to use apl trains for binary trees
 
6:55 AM
   H       T
 H   T   H   T
H T H T H T H T
HHH HHT HTH HTT THH THT TTH TTT
Is this looking bad?
For 3 coin flips
 
if it's ascii art then ask for centering them
 
ok
 
and align each branch with the result
 
 
2 hours later…
8:41 AM
@cairdcoinheringaahing huh, (see full text) but there is no more text?
 
@Neil i think that happens when you press shift enter on a message that's "too long" according to se chat
 
9:08 AM
0
A: Sandbox for Proposed Challenges

EnderShadow8xkcd 2385 Based on this comic: https://xkcd.com/2385/ A King of the Hill in which all submissions choose a score. This represents their cybersecurity grade. Their game theory grade is the difference between their grade and 80% of the average grade. Their final score is the geometric mean of both ...

 
9:33 AM
0
A: Sandbox for Proposed Challenges

RazetimeIs it a chess cycle? code-golf chess decision-problem Inspired by a discussion from the Esolangs.org unofficial Discord Server. Instructions A chess cycle is an arrangement of a chess board where each piece must attack one other piece, and only one other piece. Here is a board example: Your subm...

 
 
1 hour later…
10:42 AM
CMC find median of a list/array of integers
one point per language :)
 
11:45 AM
Ruby: ->a{s=a.size;(a[s/2]+a[(s-1)/2])/2.0}
 
12:03 PM
Factor, median
 
12:32 PM
@Anush BQN, {2÷˜(≠𝕩)⊑»+˝˘2↕2/∧𝕩}: mlochbaum.github.io/BQN/…
 
0
Q: Sejarah dan Pengertian Togel Yang Sering Dimainkan

Marvis VermillionSejarah perjudian Togel telah ada sejak era kolonial belanda. Game togel ini sudah ada sejak zaman kolonial Belanda. Pada waktu itu, pusat perjudian Togel didirikan di banyak tempat, seperti Batavia, yang merupakan pusat komersial kolonial belanda. Inilah penjelasan shio Judi Togel atau yang dise...

 
Arn uncompressed, :-(?:v:-#&+?:^:-#. I should probably add a median function
 
This has to be the fastest downvoted challenge ever.
 
certainly looks like it
according to google translate, it's indonesian
it's an advertisement for an online gambling website lmao
 
@NewMainPosts Flag as spam y'all
 
12:43 PM
I have already
 
It's also the third indonesian gambling spam post in the last 8 hours
 
maybe the think code golfers are really interested in indonesian gambling :p
 
12:57 PM
@rak1507 :)
@JohnDvorak nice
@Lyxal too short!
@Razetime that's confusing. the median of 1,4,3,2 is either 2 or 3. You don't normally say it is 2.5 do you?
 
@Anush Jelly, 2 bytes: Æṁ. 5 bytes as a non-builtin: L‘HịṢ
 
@NewMainPosts RIght, the amount of butter you need to put in waffles to make them the right texture is astounding!
 
@Anush i think you should read up on median
 
@Anush APL, too many bytes: (2÷⍨⊢(⊃⍨∘⌈+⊃⍨∘⌊)2÷⍨1-⍨≢){⍵[⍋⍵]}
@Razetime That looks really cool! How does it work?
 
1:15 PM
took a look at BQN, it looks really interesting
 
It does, yeah
 
@user golfed it further to this: {2÷˜(≠𝕩)⊑»+˝˘2↕2/∧𝕩}
with help from mlochbaum
 
Nice!
Are you making a range from ⌊n÷2 to ⌈n÷2?
 
You forgot 3 more links for monads :P
Looks good to me, though
 
@user I was confused for a second, as Jelly calls things links :?
 
:P
@cairdcoinheringaahing (that's one weird emoticon, btw)
 
"7 commands that always takes a single positive integer argument" "+ takes a left and a right argument and returns their sum" This is confusing me
 
Maybe you should clarify that the entire program takes a single argument
 
1:36 PM
Yep, reworded to "It is a tacit programming language that always takes a single integer argument and that has 7 (or maybe 16) commands."
Removed "positive" as that affects my related metagolfer challenge. The interpreter challenges till says "take a positive integer and a program and interpret it"
 
@user nah I borrowed an idea from user98105
I just replicate twice
add that tot the shifted input
sum overalpping pairs
and then take len(input)'th element
 
Oh cool
That's really smart
 
 
1 hour later…
3:00 PM
/((?<![a-zA-Z0-9_\.])([0-9_]*\.[0-9_]+|[0-9_]+\.?)([a-zA-Z][a-zA-Z0-9_]*)?(?![a-zA-Z0-9_\.]))|((?<!\*)\*\*?(?!\*))|((?<!-)--?(?!-))|[+\/!|&:()\[\]\\]|((?<![a-zA-Z0-9_])[a-zA-Z][a-zA-Z0-9_]*(?![a-zA-Z0-9_]))/g
I am a horrible person
 
What a monstrosity
 
@RedwolfPrograms What's that checking for?
 
That is the entire tokenizer for something I'm making for computer science class lol
I can't be bothered to do it properly
 
3:13 PM
good news everyone
the tour page updated to the new revision of the question
i can FINALLY status-completed that
 
That is cursed
 
Remind me never to use random chat commands without checking the text it gets replaced with first
 
ಠ_ಠ I'm one VLQ review away from a Reviewer badge, but we haven't had any for 4 days (except for Redwolf's one a couple of hours ago)
 
3:16 PM
I'd have left it for you if I'd know you needed it for Reviewer :p
 
I'd help out, but...
 
@RedwolfPrograms Nah, I wasn't at my computer 2 hours ago (on mobile), so I'd probably just be ninja'd by WW instead :P
 
I haven't done many reviews recently :/
I've been very busy
 
Good, leave some for us non-userscript-powered mortals :P
 
imagine having reviews
i have 21 reviews total on VLQ :/
my most reviewed queue is 31 on close votes
 
3:21 PM
I still find it wild that WW has >1000 reviews in multiple queues
 
@RedwolfPrograms why are you using [a-zA-Z0-9_] instead of \w?
 
@Neil Oh, I forgot about \w
 
Why does Python's range have a .count attribute? Isn't the return always going to be either 0 or 1, which makes it a more complicated version of x in range?
 
3:38 PM
Probably for consistency with the sequence abstract class.
 
@cairdcoinheringaahing so you can use range().count instead of lambda x:x in range() or range().__contains__
 
4:40 PM
CMC: given a list, return its pairs like [a,b,c,d,e,f] => [(a,b),(c,d),(e,f)]. You can choose what to do with odd-length inputs.
 
think s2 in jelly
 
prolog, 38 bytes, p([A,B|R],[A-B|O]):- p(R,O). p([],[])., outputs as list of any - any
 
lambda x:[x[i:i+2]for i in range(0,len(x),2)] or something like that maybe
 
@Wezl Can we assume the list only contains numbers?
 
yes
 
4:47 PM
d=>(d+[]).match(/\d+,\d+/g).map(r=>r.split`,`)
 
you can limit it to one digit numbers if you want, to save 2 bytes :)
 
I am back
Well its too easy in python `list(zip(a[::2],a[1::2]))`
When a is the list
slicing is like magic
you can add a lambda
if you like to turn it into a function lambda a:list(zip(a[::2],a[1::2]))
 
oh right
 
I'm considering doing a , but I'm worried what I currently have is too easy
 
CMC: Given two integers n and m calculate n-based log of m, without using any log() builtin or imported function
 
4:59 PM
Is integer logarithm fine?
 
@RedwolfPrograms yes
no answers yet
should I reveal solution
 
Is anyone here good at JS (with lots of knowledge of its weird quirks)?
 
f=lambda n,m:(m<n or 2+f(n,m/n))-1
 
I need someone to help me determine if a programming puzzle I wrote is too easy to be a standalone challenge
 
@hyper-neutrino my god you beat me! f=lambda n,m,k=1:m**(1/k)==n and k or f(n,m,k+1)
was my original
 
5:06 PM
@Wasif Kinda cheating, but *⍣¯1 (APL)
 
can you give some explanation?
I don't speak APL
 
I was completely wrong about the median
just for the record :)
and I am ashamed (sort of )
 
inverse of exponent function
 
oh thats too clever
 
*⍣¯1
*     exponentiation
 ⍣    function power / repetition
  ¯1  -1
 
5:07 PM
@Wasif repeats a function some number of times. * is the exponentiation function, so *⍣¯1 applies that -1 times (finds the inverse)
 
I should have banned all builtins
 
@Wasif ?
 
* exponent repeated ¯1 negative once ninja'd by two people or bots
 
If you ban all builtins, you won't be able to do anything
 
no accessing the computer's ALU because that's a builtin /s
 
5:08 PM
It's worth noting that the inverse of the exponentiation function could also be a root the other way
 
@user you can do actually with only arithmetic and recursion
 
@Wasif Yes, but it's hard :P
 
arithmetic is still a builtin :p
 
I didn't mean that
 
so no builtin functions? (which is still unclear)
 
5:09 PM
yes
 
I think Wasif meant no exponentiation-related builtins
 
@Wasif well in APL, arithmetic is in functions
 
then APL is disqualified
 
CMC given a positive integer n, find the next prime p and two integers a, b each chosen uniformly at random from 1...p.
I just had to write code to do this
and I wish it was shorter
 
@Wasif >:|
 
5:11 PM
@Anush That sounds like two different challenges
 
@user could be. But I want to see how much shorter it is all in compared to my code
I would never ask this on main :)
 
@Anush Vyxal has a bulltin for the first one
 
@Wasif cool.. but how is it for the a, b part?
 
is the range inclusive?
 
do a,b have to be inequal or in a particular order
 
5:15 PM
@hyper-neutrino no.just chosen independently and uniformly
@Wasif yes
 
@RedwolfPrograms Mind accepting my answer to this now it'd been completed?
 
I'm going to post a , I think it's a bit too easy but it's kind of neat
 
@Anush Will n be prime?
 
5:16 PM
@RedwolfPrograms Link?
 
Æn,X$⁺ in jelly if structure doesn't matter
add F after if you need it to be a flat list
 
@cairdcoinheringaahing it might be and might not. If it is you can set p=n
 
built-in for next prime in jelly is a 2b :c
 
@user Not posted yet (can't sandbox it for obvious reasons :p)
 
@Anush Jelly, 6 bytes: ÆnµX,X
@hyper-neutrino That won't work
It'll select b from 1...a, not from 1..p
 
5:17 PM
@RedwolfPrograms Oh right. Let me know when you post it so I can fug-wit it :P
 
@cairdcoinheringaahing you have n = 16 so a=17 should be possible. Is itr?
 
see this is the problem with testing random things
 
Wait, no, it's even more broken
 
it looked right to me
 
5:18 PM
@Anush Yes
 
It looks like only 2 answers on the fibonacci question meet the criteria (the brainf*ck and Haskell ones)
 
wait I see
the second X picks from P, a
oops
 
@Anush The µ means that both Xs will have p as their argument
 
@cairdcoinheringaahing oh yes. very nice answer then!
 
@Anush should the output be p,a,b or just a,b
 
5:19 PM
@hyper-neutrino just a, b
 
bruh
i thought i needed to output the p too
lol
 
g=lambda p:[random.choice(range(p+1))for _ in range(2)] for python, you need to import random
 
wouldn't random.randint be shorter
also this assumes p is prime, doesn't find next prime
 
and can't you do for _ in [0,1] for golfiness points
 
Without the space
 
5:21 PM
aren't they two seperate programs?
 
g=lambda p,x=random.randint;[x(0,p+1),x(0,p+1)]?
 
@Wasif can't that choose 0?
@pxeger a == 0 is banned
 
@user oops, for _ in[0,1], thanks. How dare I use whitespace >:P
 
Then just add 1
 
for _ in" "
 
5:22 PM
good night i am gonna sleep
 
good night!
 
@hyper-neutrino ?
 
whatever time zone you are in :)
 
in general you should do for _ in" "*x or for _ in[0]*x if you don't need the value of the loop
@user afaict you don't need the _ so you can just loop through any length-two iterable?
 
Oh
 
5:24 PM
@hyper-neutrino I so wish the ? placeholder gets implemented. for?in" " is something I really want to see in Python golf :P
 
i agree
 
@cairdcoinheringaahing Because it's clearer than _ or for golfiness reasons? :P
 
ಠ_ಠ
 
I hate college board so much, they say their digitial testing app is available for Chromebooks, but they refuse to let you download itself and assume you're on a school-owned device.
 
5:26 PM
Even if you're on a school-owned device, why don't they let you download it?
 
That's fun; strikes through the red mod-only tags on meta have red strikes
 
Lol
This is why you use Windows
 
Yeah, but what if I'm on a non-school managed Chromebook? Checkmate, Atheists.
 
@RedwolfPrograms TBH there are a lot of reasons to hate college board
 
5:27 PM
So it's not possible to download it manually? That's dumb
 
I think they even have it available for Linux
 
Luckily I think it's available for Linux so I can download it on my Minecraft laptop when I get home
@user Samurai'd
lol
 
Backward ninja?
 
lmao
 
5:29 PM
Let's change the subject
You have a laptop dedicated to Minecraft?
 
Basically yeah
Minecraft and Haskell
 
The two most important things in life
 
Haskell doesn't work on Chromebooks?
 
It probably does but I got lazy
 
@cairdcoinheringaahing Zombies and laziness?
@RedwolfPrograms That tends to happen when learning Haskell
 
5:30 PM
ha. ha. ha.
 
I am to jokes as ice boxes are to meat
 
I really like drinking brake fluid, but I'm not addicted. I can stop at any time
7
 
reminds me of that one quote (forget from whom) that went like "quitting smoking is easy! i've done it a hundred times"
 
@RedwolfPrograms Is it JS specific?
 
5:32 PM
Boo :P
 
For the first time in forever, I haven't starred half the messages on the starboard
 
@cairdcoinheringaahing why status-planned?
 
@hyper-neutrino Ask JNat
 
@cairdcoinheringaahing Kinda hard to make multi-language programming puzzles :p
 
oh wait
 
5:35 PM
I can't edit the tags, I just updated the edit message
 
i forgot you couldn't have been the one to change the tags
wow i'm dumb (shut up lyxal)
must mean they've moved it from their "look at this" list to their to-do list, hopefully
 
I was addicted to the hokey pokey, but I turned myself around
 
@pxeger What will it take to stop you? :P
 
I was addicted to curtains, but I pulled myself together
 
@pxeger you became a regular expression?
 
5:36 PM
I had a problem with making only left turns, but don't worry, I'm on the right track now
 
@pxeger What's with the addiction jokes? You seem to be..err...addicted to them.
 
I was addicted to HGH, but I've grown as a person now.
 
I used to be addicted to deli meats, but I quit cold turkey
 
My car had a problem with break downs, so I joined AA
(Is it AA outside of the UK? I've heard Americans refer to "triple A" before)
 
I'm addicted to prescription glasses, but I don't see a problem with that
 
5:40 PM
ಠ_ಠ
 
@cairdcoinheringaahing AA = Automobile Association; in the US it's the AAA = American Automobile Association
 
You should join AA too, judging from your puns
 
@pxeger Ah, the US, making everything 33% more patriotic
 
how can you round up to the nearest power of 2 in python?
 
x&x+1? Or is it x&-x I can't remember
Something like that
 
5:44 PM
thanks
 
find it on StackOverflow lol
 
2**(x - 1).bit_length() is odd. I mean I guess . has higher precedence than **
 
I managed to get -90 rep on a question today. How? I offered a -100 bounty, then got an upvote, which makes the system report -90 ¯\_(ツ)_/¯
 
Why wouldn't that make -90?
 
And here I was thinking you'd gotten 45 downvotes :P
 
5:48 PM
@pxeger I'd expect it to report the bounty and the upvote separately
 
6:26 PM
Before I post my programming puzzle, anyone want to look at the intro and make sure it's clear?
Chat-mini-sandbox hehe
 
btw if you add a newline at the end the ``` won't show
 
Oh I didn't notice it was showing
Thanks
 
6:45 PM
@RedwolfPrograms Are there other ways to solve your puzzle?
 
Not that I'm aware of (other than other properties), but since the criterion is first to solve it accepting yours is fine
 
Yay for trivial solutions found after 1 minute of Googling :P
 
0
A: Sandbox for Proposed Challenges

knosmosPlz Help I Need Investors ASAP Bob has a startup which has developed “SuperAIGolfer”, a product which uses “advanced AI” and “black magic” to automatically codegolf computer programs. Unfortunately, Bob is running out of cash and desperately needs money from investors to keep his company running....

0
A: Sandbox for Proposed Challenges

quaragueCompute a real root of a cubic polynomial. You are given a cubic polynomial of the form $x^3 + a x^2 + b x + c$ and your task is to compute one real root of this polynomial, or equivalently a solution to the equation $x^3 + a x^2 + b x + c = 0$. Input is the triple $a, b, c$. These are guaranteed...

 
Lol I can't find a way to get around what Wezl pointed out
__lookupGetter__ works as a bandaid, but that still doesn't stop one from doing "__lookupGetter__": "foo"
 
I'll just clarify that the usernames are [A-Z]\. [A-Z][a-z]*
 
6:56 PM
Using a Symbol doesn't help either :(
 
3
Q: Circumvent this credentials validator

Redwolf ProgramsThis is a program I wrote in JavaScript to validate some inputted credentials, with an intentional vulnerability. The credentials_validator function takes an object as input, with usernames and passwords. It returns a function, which takes a username and password and returns true if the credentia...

 
7:26 PM
CMC: Given a list of integers L and an integer n, return the elements of L, sorted by their absolute difference with n. E.g. [1, 2, 3, 4, 5, 6, 7, 8, 9], 5 -> [5, 4, 6, 3, 7, 2, 8, 1, 9]. The sort should be stable
 
my extremely intelligent solution that was very difficult to figure out:
ạÞ
 
is that a zero byte program in the language ạÞ :P
 
Meta-Jellyscript :P
 
@cairdcoinheringaahing Ash: ỤΔ₇
Wait no that doesn't work
Make that an
Take that Jelly, three bytes, no two byte built-ins.
 
That's not a builtin in Jelly :P
 
7:31 PM
Oh
 
Þ - sort by the previous link. absolute difference
 
Take that Jelly, just a byte longer
 
00:00 - 20:0020:00 - 00:00

« first day (3740 days earlier)      last day (1097 days later) »