« first day (2033 days earlier)      last day (2804 days later) » 

2:02 AM
@ConorO'Brien question: do u know if filter returns new array or modified existing?
 
@Downgoat new earray
 
RIP, http://cheddar.tryitonline.net/#code=Rml4IENoZWRkYXIgYXJndW1lbnQgcGFzc2luZy4&input=

PLZ HALP MY CODEZ
 
:D okay that's good
 
@NathanMerrill I really don't like the idea behind Gravatar. In general, I prefer people not to know that my accounts on different sites are related...
 
> argument passing
@Dennis maybe have an option to show gravatar or not?
if not just show generic user icon
 
2:04 AM
Again, profiles won't be browsable. Only you would see your image.
 
Why did my chat gravatar automagically automajikally change ?
 
It's a site for running programs, not a social network.
 
@Dennis gravitar don't list all accounts attached to your gravitar, right?
 
2:05 AM
> automagically
 
But login to allow you to browse saved programs in a nice place is good.
 
@feersum Strawpoll is also not a social network but it has profile pictures
 
> automajikally
ftfy
 
so its only by chance if somebody sees that two accounts share an image/acocunt?
 
@Downgoat Step back a moment... why does it have profiles?
 
2:05 AM
@feersum so you can save polls and edit them later (IIRC)
 
@EᴀsᴛᴇʀʟʏIʀᴋ fixed
 
Well, that goes to show that they like to add useless features.
 
why do people associate profile pictures with social network and not "account system" .__.
 
"Useless features" are in the eye of the beholder. The features clearly have a use to someone or they wouldnt be added
 
@Downgoat profile pictures are definitely a social feature
 
2:07 AM
A developer can code a feature without it being useful to anyone.
 
@NathanMerrill No, but even if I'm just called Dennis on multiple sites, having the same identithingie means that it's the same Dennis.
 
@NathanMerrill TIL SE & strawpoll are definitely a social network
 
Gravitar is an arcade game btw.
 
@Downgoat TIO is not a social network, so I agree with no profile pictures
 
> identithingie
10/10
 
2:08 AM
Strawpoll pathetically wants to be a social network, like many companies.
 
@Dennis you should add a prefix to it so that it scrambles the identicon
 
@NathanMerrill JSFiddle is a similar enoguh concept to TIO v2 (write program, execute it, save it). it has profile pitures...
 
@Downgoat @NathanMerrill they are both not social networks, but many sights have a social aspec to them, where you can interact with users if you wish
 
(warning, I have only a vague idea about identicons)
 
@Downgoat which is silly, IMO
 
;_; y u haet profiel pictures
 
@trichoplax on Puzzling.SE I don't have to know the answer, right?
 
:O mocha tests only took 6 seconds to run!!!
 
@HelkaHomba yeah
 
2:15 AM
@Downgoat It's not that I hate them, but why would I spend my time writing code that displays a profile picture nobody but you would ever see?
 
@Downgoat PPCG design script is borked
 
oh. well i meant if you show like "by user [profile picture]" at the top it would useful to quickly identify who wrote it
 
^^^ sandbox, ^^ main page
 
@EᴀsᴛᴇʀʟʏIʀᴋ wait for image to load
 
1. It didn't.
2. I meant the neon green text.
 
2:17 AM
@Downgoat I'm hesitant to implement features some people may not want. It's these kind of things that usually prevent me from signing up on pages.
 
@EᴀsᴛᴇʀʟʏIʀᴋ clear cookies, reset local storage, referesh page, restart browser, restart copmuter
 
@EᴀsᴛᴇʀʟʏIʀᴋ translation goat->English It's a feature, not a bug, blame it on the user :D
:D
In all seriousness that is the true and proper way to handle bug reports
 
@EᴀsᴛᴇʀʟʏIʀᴋ what's the problem with the text?
 
It doesnt look to bad lol
 
if you're talking about the contrast it's because the background image is sstll loading
 
2:23 AM
The headers are supposed to be that color
 
@RohanJhunjhunwala huh>
 
I am saying I don't notice any issues with Easterly's picture
Is there anything wrong with those screenshots?
 
2:34 AM
@Downgoat i actually did all of that
>_>
it didn't work
@Downgoat in the sandbox one, it should be fairly obvious
@RohanJhunjhunwala the neon green color is not supposed to be there
 
@EᴀsᴛᴇʀʟʏIʀᴋ why not?
 
it looks ugly
 
cheddar> (3&(-))(2)
1
cheddar> ((-)&3)(4)
1
\o/ \o/ \/o \/o \/o \/o \/o\/ \o/o\/
@ConorO'Brien ^^
 
he's asleep
> \/o ... \o\/
IIRC there is 1 arm on either side, not 2 on either
 
@EᴀsᴛᴇʀʟʏIʀᴋ no i am doing goats, we have two legs on each side
@EᴀsᴛᴇʀʟʏIʀᴋ >_> oh, I've thought I've seen him up at this time before
 
2:39 AM
@Downgoat oh okay
@Downgoat ye, he got up at 9am today though
he never does that
he sleeps until like 12 - 1 pm
 
does he not have school o_O
 
it starts tomorrow for him
 
:(
rip
 
i start next wednesday
2
Q: What base is this number in?

DJMcMayhemHere's a nice easy challenge: Given a string that represents a number in an unknown base, determine the lowest possible base that number might be in. The string will only contain 0-9, a-z. If you like, you may choose to take uppercase letters instead of lowercase, but please specify this. You...

why does that only have 2 votes
i mean it's pretty epic
 
@EᴀsᴛᴇʀʟʏIʀᴋ ur homeschooled tho right?
 
2:43 AM
ye, but 8th i'm doing public
 
@EᴀsᴛᴇʀʟʏIʀᴋ ah ok. (question: do u get free extensions on assignments when homeschooled?)
 
@Downgoat nice! My sleep schedule is variable but I start school tomorrow. Just turning off my phone rn before I sleep
 
3:05 AM
@Downgoat Eliminate the trailing space to save one more byte. :P
 
@Dennis >_>_> thank you very very much for catching that >_>
 
:D
Now just update the permalink.
 
done \o/
 
And remove Requires uppercase letters since they don't even work anymore.
 
@Dennis oh yes, whoops >_> apparently my brain shuts off after 8:00
 
3:08 AM
AM or PM? :P
 
PM :|
 
My brain gets going at 20:00. I've always been a night owl.
 
I'm a morning person but schools stats rather late in my area (8:25AM) so I've adjusted my sleep schedule as so
My IRL name in fact means "Morning/Dawn"
 
^ not you
@Downgoat Rather late? The last time I got up before 9:00 was years ago. I usually wake up between 10:00 and 11:00.
 
@Dennis make it a sheep (remove the beard). And you've got my nemesis Night Upsheep
 
3:12 AM
hahaha
 
speaking of mornings:
GOAT MORNING https://vine.co/v/MltYAmZw29i
 
@Downgoat I have a feeling I know your real name then.
 
@Dennis >_> its on my github and my website domain
 
It also used to be your PPCG username. I just didn't know that it was your real name.
 
3:38 AM
1
Q: Text animation format Code Golf

ChaoticWorking with old files from DOS, I found an ancient text animation format, that specify how much time each frame must be shown in the screen. It's very simple: F1W5F2W3 This example above indicates that Frame 1 must be shown for 5 units of time, and frame 2 for 3 units more. Now I want to c...

 
@Downgoat wat school starts 9am for me and i think it's too early
@Dennis but you could use cookies and have it off by default
 
That seems like a lot of effort for something that, imho, doesn't really add something to an online interpreter.
 
0
A: Sandbox for Proposed Challenges

Nathan MerrillThe goal of this challenge is to take a list of possible numbers in a permutation, and deduce which possibilities can be eliminated. For example, lets say you have the following array of possibilities: [[0,1], [1,2], [1,2]] There are 2 possible permutations that can be constructed: [0,1,2] a...

 
Guys, what can be done with exec?
 
Context?
 
3:50 AM
They say I shouldn't have allowed exec
 
Oh, on Anarchy Golf.
Eek! The alphabet challenge are speading!
 
@LeakyNun exec on anarchy isn't like Python exec, it's process exec IIRC
 
> Added Bash again as Bash (builtins). This is the same as the previous Bash, but in problems where exec is denied, you cannot use any external commands.
 
@Sp3000 then what does it do?
 
Basically what Dennis said
(external commands)
 
3:54 AM
I don't understand how external commands save bytes
 
In Bash, they usually do.
 
So it just affects Bash?
 
Depending on the problem, it might be useful for other languages too if there's external commands that would save a lot of bytes
 
@LeakyNun @LeakyNun :O wat hav u done
 
@Dennis :/ this is just getting annoying.
I'm tired of alphabet challenges.
 
4:02 AM
@EᴀsᴛᴇʀʟʏIʀᴋ I don't care
 
halp how to use cheddar in golf.signh
 
@Downgoat get a stable version first
 
i do
see: release-1.0.0 branch
npm releases are stable builds
 
I mean bug-free
 
4:05 AM
@LeakyNun Not really. Say the Ruby solution is a lot shorter than the Python solution (hypothetical scenario). Then you can just do import os;os.system("ruby -e'whatever'").
 
@Dennis ugh, alright
 
@LeakyNun cheddar is bug free
pls find bug and let me know
 
It's all features?
 
No cheese weevils?
 
@Downgoat Please don't request to add it any time soon :/
(in case you were serious)
 
4:06 AM
;___;
y u do dis
(but actually: why not?)
 
Cheddar's way too far from ready, and I don't think updates happen often on anarchy
 
@EᴀsᴛᴇʀʟʏIʀᴋ y u have a y u do dis without ";_;" ;_;
 
4:46 AM
@Lynn the mix of decimal and hexadecimal :o
 
5:24 AM
10
Q: Is homicidal smiley gas possible?

DJMethaneManIn the original Batman movie[1], My question is simple; is there currently, or is there a way to make, a chemical that can make someone "smile to death". I imagine that such a substance would cause the muscles in ones' face to contract into a "smile", though it really doesn't matter to me how...

Dat username do
 
Holy cow
I just found a RNG in C:
main(a){printf("%d\n");}
 
Not very random though.
 
-1 for tutorials point - low quality.
 
@Dennis why not?
 
If you've been reading that, that could explain why you think it's a random number generator.
 
5:29 AM
reading what?
 
tutorialspoint.com
 
@LeakyNun does RNG stand for "Really Not a Good idea"?
 
@feersum No, I just discovered it myself in the tutorialspoint sandbox
 
I wasn't implying that you found this program on there.
 
@Dennis I just used the "copy snippet to clipboard" and debug hexdump for V.TIO for the first time. Holy crap it was so helpful! Thanks for all the work you've done on it, it's a ridiculously invaluable tool
Writing the answer was like 50% faster than usual
 
5:33 AM
main(a){printf("%d\n",a+a*(a=5));}
30
evaluation order please
 
@DJMcMayhem Thanks, but all credit for the clipboard thingie goes to @ASCII-only.
 
@Dennis Yeah, but that wouldn't exist without the server
 
@LeakyNun That's undefined behavior. The compiler can literally do anything in this case, including ordering pizza or formatting the hard drive. (In practice, most compilers won't.)
 
@Dennis how many UBs are there?
 
The GIGO principle.
You only need one.
 
5:36 AM
What makes it UB?
 
@LeakyNun That's also undefined behavior. A compliant interpreter could always return 0 in this case.
 
I'm guessing it's that you assign to a in the middle of an expression.
 
@LeakyNun Your reassigning a variable and use it before the next sequence point.
 
@LeakyNun Are you trying to write C answers for anarchy?
 
@feersum Oh, I am golfing this answer:
1
A: No strings (or numbers) attached

Leaky NunC, 78 bytes a-a //1-1 a //1 a+a //1+1 a+a+a //1+1+1 ++a*a //2*2 ++a+a++ //3+2 ++a*a++ //3*2 a+++a+a+a //1+2+2+2 ++a<<a //2<<2 ++a*++a //3*3 a+++a*++a //1+3*3 ...

But nice idea, I could do my challenge with C
 
5:39 AM
@DJMcMayhem Have you thought about my question regarding byte strings?
 
@LeakyNun Huh? None of this is even valid code.
 
Yeah, I was just about to answer that. I don't see why not.
 
@feersum snippets
explicitly allowed by OP
 
Those likely wouldn't even give the same value each time for the same compiler version and optimization settings.
 
@feersum No, a is the first argument of main which is 1
See the boilerplate I just added
 
5:42 AM
-1, you shouldn't post garbage which has non-reproducible behavior.
 
non-reproducible? I produce it every time on tutorialspoint.com/compile_c_online.php
Language is defined by implementation.
 
That doesn't mean it isn't undefined
 
You don't even specify an implementation.
 
Does your C compiler produce different results?
 
@LeakyNun When you play with UB, yes drastically. Otherwise only if there's a compiler bug.
 
5:43 AM
@DJMcMayhem I'm specifically asking about your C compiler
 
oic
 
$ cat x.c
main(){printf("%u\n");}
$ gcc x.c 2>&-
$ for i in {1..1000}; do x=$(./a.out); echo $[x%16]; done | sort -n | uniq -c
   1000 8
 
I haven't checked
 
It might be reproducible if you specify an exact compiler version and flags.
 
@LeakyNun 2/10 very random
 
5:44 AM
Relevant meta:
13
Q: Is an answer allowed to use undefined, but consistent behaviour?

David MulderA lot of languages have behaviour that is not defined in the official spec, or might lack a spec in the first place. If the behaviour is consistent and even well known, can such behaviour be used despite being stated in the spec? E.g. in JavaScript the order of keys in an object is officially und...

 
Added, thanks
@feersum Does your C compiler produce different results?
 
"My" C compiler?
 
Don't you have a C compiler?
 
I have many C compilers.
 
Just pick one
 
5:48 AM
OK, I tried the last one with MSVC and got 20.
What is it supposed to be?
 
42
So ++a*a++ got evaluated to 4
 
How do you reckon that?
 
@feersum what about GCC?
@feersum because that would make sense for 4*4+4
 
@LeakyNun 42
5.2, so it's close to the one you tested.
 
ok
 
5:51 AM
@LeakyNun Except that it still wouldn't make sense. The compiler can do literally anything it wants to and it is still valid C
Kindof a long read, but totally worth it
 
Clang also gives 20.
 
Undefined behaviors are the most interesting behaviors imo.
 
@DJMcMayhem \o/
 
6:06 AM
@someoneWhoKnowsMoreAboutSEThanMe What does the edit-tags button do? Is there any point to it since there's already an edit button?
 
It doesn't perform a different action, no. It might save you some scrolling though.
 
0
Q: Can I take your order: a Chipotle concept conund

SahibPrimeChallenge Your program will take in a string from stdin, and output multiple lines to stdout. An example of input looks like this: My favorite Chipotle order: B1113YNNY Let's break it down: The first character is either A (burrito), or B (burrito bowl). The second character is 1 (bla...

 
@DJMcMayhem I mean it would make sense seeing that 4*4+4 == 20
 
-1
A: When you check someone, do you have to say "check"?

shazzello, i dont no much bout chess, but i think ya dont have ta say check if ya dont wanna cause its a free country

Sounds legit.
 
I'm gonna do that for my next code golf answer "ello, i dont no much bout dis fanshy 'cod-goolf' u folks do heer, but you cud prolly do dat in pyfon iffen ya want to"
@LeakyNun Except that there is no guaranteed evaluation order.
 
6:24 AM
@DJMcMayhem right
 
@Downgoat Uhhh... could you have the actual name of the website in the banner?
 
6:47 AM
SE chess looks pretty nice.
 
@Dennis wonder which country he's talking about..
 
Just the chess UI though, it doesn't look good at all.
Also, no comments.
 
@aditsu It's free. That should narrow it down.
 
lol
 
I reckon ya don av ta muv da hoses in dat weerd way eever
welp, cant crack that:
1
A: Enterprise Quality Code Prime Sieve

histocratRuby, 25209 bytes require"______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________...

I thought maybe one could reduce it by a single . but don't think so... (never done any ruby before)
 
7:20 AM
A brain**** program with few loops would probably win a heckuva lot of points
I just can't program one right now :/
better look through the prime number golf
ehhhh, to difficult to deconstruct into larger program
 
@Dennis hmm.. some Scandinavian country? The Netherlands? Canada? Definitely not US or China or Russia
 
Anonymous
Wait you can get countries for free now? I always thought they were super expensive?
 
its a perk of teaching math
 
7:38 AM
@Mego no, they're libre, like in software
it's annoying that English conflates two different things into one word
 
@aditsu In Soviet Russia, "check" says you aloud.
 
and the mate checks you
 
7:57 AM
CMC: least square-free positive integer that divides the positive-integer input
testcase: 360 -> 30
oops, i meant the greatest square-free positive integer
@Mego you can do that with 2 bytes in Actually
(the input will not be 1)
 
Anonymous
The long way is 11: ÷`w♂NM1=`░M
 
Anonymous
I'm tired so I don't see a 2-byte solution
 
@LeakyNun J, 9 bytes: *&.(_&q:)
 
@Zgarb how does it work?
 
8:14 AM
@LeakyNun _&q: computes prime exponents. * takes element-wise signum of those, and &.applies the inverse of _&q: to the result.
 
I see
 
Golfed to 6 bytes: ~.&.q:
Same idea, but q: computes the prime decomposition, and ~. removes duplicates.
 
nice
CMC: produce the reusable number 32747 (largest 16-bit signed prime) with no digits in the source code (0x30 - 0x39)
 
Pyth, 4 bytes: C"ë
 
8:28 AM
please
 
Anonymous
 
@DJMcMayhem As a broad generalization, C.SE is about doctrine whereas BH is about what the text explicitly says.
 
Anonymous
I think you're looking for 32749
 
Oops, I meant 32749 @Mego
 
@Mego Correct
(can actually remove the first =)
 
8:40 AM
@quartata Oooh, hefty. How long did it take?
@quartata Haha, yeah...
 
Anonymous
Actually, 11 bytes: ` u⌐;²⌐PP*PP`
 
@Mego Actually?
 
@LeakyNun Brachylog, 19 bytes: *^*^*^*:I#>=-.$pl1,
 
@Fatalize how on earth does the first part work
 
It computes 32768
as 1*2 squared times 2 squared times 2 squared times 2
shit
 
8:47 AM
I know, but where does the 1 come from
 
theres a digit in my code
 
oh lol
 
@LeakyNun Input has no value so it can be any integer, but the #> will force it to be strictly positive so the first it will take is 1
 
8:48 AM
18 bytes with no digits
 
can remove the last comma
 
mine is shorter xd
I outgolfed the lang creator
havent you implemented base conversion...
 
No
 
bonus: do it imperatively
Also, I thought I wrote 2^n as a feature request?
 
1
Q: How secure are my locks?

Pietu1998You have been assigned the task of installing new locks to the company's building. However, the locks you use are quite unusual: they require some combination of keys to open. Now, you want to figure out which locks are the most secure, so you can prioritize the most important locations. The key...

 
@Mego Your solution is nice.
 
@Fatalize Of course I know you can do it, I'm asking for built-in
@Mego Would the construction "2^15 - 19" save bytes?
 

« first day (2033 days earlier)      last day (2804 days later) »