« first day (1417 days earlier)      last day (3429 days later) » 
00:00 - 19:0019:00 - 00:00

12:05 AM
Hmm anyone got any issues with meta.codegolf.stackexchange.com/a/3584/21487 before I post it?
 
Is this a typo? Note that this rectangle could also be represented as 7 8 4 9 or 4 8 7 9.
 
7 8 4 9 is switching the vertex order, 4 8 7 9 is taking the other two vertices
Or did you mean something else?
 
ok, makes sense
 
"Title must be at least 15 characters" D: awww
 
we are masters of unicode !
 
12:26 AM
Posted, thanks for checking :)
 
12:48 AM
@Optimizer any chance, that the sides of the pentagram are of integral length?
or the sides of the embedded pentagon maybe?
 
the star ?
the bounding box of star is 32 width 30 height.
if that helps.
 
@MartinBüttner Nope. 10.5209
 
integral width - sure, in some magnified view.
 
well, in the same scale where all other numbers are integers
 
When I can't reverse a Bézier curve because I'm too tired, it's a sign I should have gone to bed a long time ago. Goodnight.
 
12:50 AM
other numbers will still be integer ;)
 
@PeterTaylor lol, good night
@Optimizer not exactly, the construction of a pentagram needs a lot of golden ratios
 
PPCG front page is sure weird today
shows only 5 votes for my question after reload
well, I am gonna sleep now. Lets see what happens to the question when I wake up.
 
So, guys, I'm making another New Year's Puzzle for 2015
can't reveal anything yet because there's still 16 days left until the new year, but I thought I'd announce it first
but I'll leave you to assume whatever you like :)
 
@JoeZ. oh, I was just about to sandbox one myself :D
 
haha
 
12:59 AM
didn't you get enough rep and badges from the last one? :P
 
what is yours about?
also, I just thought I'd continue the trend :P
 
are you gonna tell me what yours is about, too? :P
 
maybe privately :>
 
What happened on new years last year?
Or is it print 2015
 
last year was print 2014
this year's would obviously be different
er, well
"this year" was print 2014
and "next year"'s would be different
as for 2013, nobody made a new year's puzzle that year :(
 
1:02 AM
well, I was going to try something new: recycling old code. you may choose any code block on PPCG (that is actually code, and not test cases or something), scramble it (i.e. form an arbitrary anagram), and that anagram must print 2015 in some language. shortest answer (i.e. shortest snippet) wins. I was also considering to add some other restriction to make it harder.
 
ah
are you sure that none of the 2014 entries would be candidates?
I could imagine one of them might be rearrangeable in some way
especially the ones that use bases
 
I'd need to check, but even so, they aren't necessarily the shortest
 
true
mine is more traditional (I suppose), but yours is a nice idea too
 
will it be restricted source again?
 
no, not this time
I can tell you that much, at least :P
 
1:05 AM
CJam sounds like if you have KF and can dump the rest...
 
the real contest is scraping the site for short code blocks I guess
 
yeah
 
@Sp3000 yeah, but then you still need to find a short one that contains those two and allows you to dump the rest
 
^KF is likely to be in Pyth code somewhere ;p
 
@feersum that's true
 
1:06 AM
DiBBCp was genius, for ASCII-only
 
1
A: The 9 Billion Names of God

isaacgPyth, 34 characters Kf<T"n"GJKFbJI>lb9Bb~Jm+bdfXVb*Y3K Explanation: Kf<T"n"G K = list of letters in the alphabet before n. JK J = copy of K FbJ For b in J: I>lb9B If length of b > 9: break b print(b) ~J J+= ~Jm+bd J+...

Pyth code indeed
I don't know enough CJam for dumping though
 
but people didn't mind scraping SO for the handful of duct tape coding challenges we had
KF"fTnGJKbJI>lb9b~Jm+bdfXVbYK"B3<*
 
That works :P it's a start
 
also, the contest won't just be about making code that prints 2015 this time around
I'm not going to do that again
 
debugging scripts called from .qmail files is bloody annoying
@JoeZ. graphical output? ;)
hm, maybe if I require answers to be in the same language they're recycling? That'll be annoying with polyglots again though.
@feersum I'm also pretty sure it won't take longer than 24 hours for someone to write a snippet using the SE API which finds the shortest 100 (or so) code blocks on the site.
I posted the draft... the bot should post it here soon
 
1:30 AM
0
A: Sandbox for Proposed Challenges

Martin BüttnerRecycling for the New Year code-golfnumberrestricted-source A good resolution for 2015 is living more sustainably, and we'll start by recycling. Recycling code, that is! Your task is to print the number 2015 to STDOUT, with or without trailing newline. However, you have to so by recycling some...

 
@MartinBüttner I'm guessing output should be the same for any input? Just checking because dumping q or l in CJam might be hard
 
yes, the submissions shouldn't take any input
(I mean they can read STDIN, but they mustn't crash if it's empty)
 
... so using q/l is allowed then? If it doesn't crash
 
clarified
well it's not
l crashes I think
not sure about q
yeah, q works once
l doesn't
 
Well basically I'm asking because codegolf.stackexchange.com/a/26833/21487
 
1:39 AM
I don't think that works
how would you get rid of the STDIN contents?
 
Well I was just showing why I was asking :P
Had you said input from STDIN is always empty or something it'd have been viable
 
true
also added a note about using the current date
otherwise an answer from last year can be reused
 
Team PPCG assemble. I have a challenge for you.
 
hm, I'm growing more fond of the idea to require the source to be valid in the same language as the answer
@Rainbolt you should sandbox it
 
Create some data in Excel and then hide the columns. Create a line chart using that data. Get the value to appear on the line chart when you hover over it.
You have the thanks of many tired developers if you solve the challenge. And you win.
 
1:47 AM
I almost would have written "I don't really Excel"... sorry Rainbolt, I don't really use MS Excel.
 
-1 for not using a pun ;)
2
 
It is sad that shortly after I fix this problem, we'll be moving to strictly web-based reports. Goodbye Excel, hello modern world.
But this does not absolve me of fixing the problem :(
 
You know, if I get this submission working this could be a pretty hilarious solution :P (might save it for when it comes out)
 
@Sp3000 "this submission"?
 
For recycle
 
1:51 AM
but which one?
is that a secret? ^^
 
Saving it for when you post the question ;D
 
lol k
@JoeZ. are you still willing to tell me about your challenge in private? :P
 
whenever I try to make a graph in Excel it's PLEASE JUST KILL ME NOW
 
Yep it works, now to wait for new years :P
 
how long is it? does it ruin the challenge? :P
you seem so happy about it.. any rule abuse? :D
 
1:57 AM
Shorter than the one above, is in the same language as it originally was. I'm just happy because of the irony - I can tell you in secret but I don't know how
 
^ Quick everyone spam martin >:D
 
Oh right, email - that thing
 
@FryAmTheEggman I can (and will) delete that address any time
@Sp3000 have you got it?
 
that's why the spam needs to be quick!
 
hope you've got it, it was getting close to the 2 minutes ^^
 
1:59 AM
Yup got it
Sent
 
thanks
anyone know how I pass the STDIN of a bash script on to a program called within that bash script?
 
But yeah, re: email I think I like the same language restriction. Makes it more interesting
esp. in Python and such with keywords - maybe a per-language scoreboard?
 
yeah, I'll include one
@Sp3000 updated spec, is that part clear?
well, I should really sleep
good night everyone
 
2:18 AM
Valid syntax eh, interesting :P
Yeah I think that works, just make sure the original code runs without crashing in the language you chose, right?
(But yeah, night :P)
 
2:40 AM
I crumbled and asked a real question: superuser.com/q/853064/399241
 
 
1 hour later…
3:44 AM
@MartinBüttner I'd have to find a channel for that first
 
anyone know what version python starting having enumerate return an iterator?
or, did it ever return a list?
alternatively, is there a shorter way to convert an enumerate object to a list without the six chars of list() in Python 2?
starred assignment doesn't exist, unfortunately
 
I think you could use []?
 
how do you mean?
 
Nope, I was wrong
Hrm, I don't think you can get shorter than list... what are you enumerating?
 
a variant of feersum's minsweeper answer: codegolf.stackexchange.com/a/42344/20260
except I'm not wrapping the enumerate in a dict
 
3:59 AM
hrmm.. do you use range or len on what you are enumerating?
You might be able to use zip
 
you mean zip(range(len(L)),L)?
 
that works but is long
 
Guessing you tried already ;)
 
longer than list(enumerate(L))
 
4:00 AM
Yeah that's why I asked if you used range/len elsewhere
 
nope
 
4:22 AM
R=range requires 3 uses of ranges to save bytes
 
Not if it lets you use a different algorithm. It saves an additional 2 bytes in this case, which means it only needed 2 (not that it matters ;p )
 
 
4 hours later…
8:41 AM
Must dash but, Martin, what on Earth is the ellipse in your hat image? It looks nothing like the dimensions of the ellipse in the SVG.
 
 
2 hours later…
10:21 AM
@PeterTaylor ummm, I didn't participate in that challenge
@JoeZ. I've got a temporary email address, which I can give you if we're both in chat at the same time
 
Ah, sorry. I saw that you were making queries about integer dimensions, then I saw that you'd edited the question and an image had appeared, and I didn't check whether there had been multiple edits.
 
@Sp3000 well it could still crash with a runtime error
 
@Optimizer, what on Earth is the ellipse in the hat JPEG? It looks nothing like the dimensions of the one in the SVG.
 
@PeterTaylor no I only removed an obsolete sentence
 
@Howard Congratulations on getting 20k!
 
10:25 AM
@PeterTaylor @Optimizer also, the corner radii look closer to 10 than 20
 
Talking about corner radii makes a nonsense of the original "an exact construction as appearing below", which is still immediately above the SVG. The SVG mainly uses Bézier curves, not circular arcs.
Makes me wish I hadn't withdrawn the vote to close as unclear until the spec was finalised, because in effect I've written an answer and the spec has changed in the meantime.
 
The SVG draws a bezier curve only for the two dark grey blocks, for rest all , its a normal border radius
@PeterTaylor which one are you talking about ?
 
The big red one which is cropped at the bottom
 
@MartinBüttner that is definitely not 10. Look at one of the dimensions, its 8 and the border radius is not a full quadrant of a circle
@PeterTaylor that is a circle representing the arc in dark grey color
 
The SVG draws Bézier curves for every single curve apart from one ellipse (the top of the middle grey bit) and two circles (one red, one yellow). And that one ellipse is much much smaller than the red outline in your JPEG.
 
10:38 AM
Obviously SVG draws a bezier curve because the complete rectangle is a single curve
but the question is that is that bezeir curve not a circle ?
let me draw that in CSS and tell.
 
The path spec supports elliptical arcs, but this particular SVG doesn't use them.
Read the SVG. The only instances of the character a are in attribute names, element names, RGB values, and the transform.
 
10:54 AM
@PeterTaylor let them be bezeir, that does not mean they are not a circle. See this pen. - codepen.io/scrapmac/pen/yyOmWW
And yes, the 20 is too high. I blame late night spec writing.
 
It does mean they're not a circle. It's impossible to create a perfect circle using non-rational Bézier curves.
 
Look at that codepen. All three div are perfectly overlapping the curves
 
@PeterTaylor for the recycling spec draft in the sandbox... do you think "syntactically valid" could be ambiguous/ill-defined for some dynamic/esoteric languages?
 
@Optimizer It's an approximation. math.stackexchange.com/a/873589/5676
 
11:14 AM
@Sp3000 now with the same-language rule I was considering to allow any code block (even if it's test cases or something), but I'm afraid there'll be an example output like 0512 in some code block on the site.
 
Hmm I think anything that was code or meant to be code is fine
Test cases don't seem like they'd end well
 
probably
 
You could do a *2 penalty for using a different language block?
Or something
 
hm, no, the simpler the better, I think (specwise)
 
Ahaha k. But yeah I'm trying to look into example output blocks atm
 
11:27 AM
@MartinBüttner If you're worried, state that it may not produce compile-time or run-time errors of any kind.
 
Hmm different questions format cases differently - some separate input/output, per case, and some have everything in one big code block
 
@PeterTaylor I was thinking that would run into some form of halting problem.
 
Why? You're expecting all submissions to halt, surely?
 
but the original source doesn't necessarily halt
(I'm talking about errors in the original code block, not the submission itself)
 
11:42 AM
Ah. "You must be able to show that the original source block is syntactically valid in your language. In the best case you can do this by showing that it runs without compile-time or run-time errors."
 
thank you
 
12:04 PM
So, longer than JS...
 
@PeterTaylor cool
 
Added an outline image, so you can see what I mean about the ellipse.
 
Is it possible to approximately map it to a circle ?
 
12:36 PM
Not very well. If you fit a circle through the top of the ellipse and the points where it meets the other mid-grey bit then there's an error of about 3 pixels in my 50% (713-pixels wide) export.
 
I see. IMO, it would been harder to spec out an ellipse there.
 
^ This is what I don't understand. Yesterday you said

> the reference SVG is there, which is vector
> so I cannot see anyway which can invalidate any existing answers if they followed the spec of "exact construction"

but then you went on to add a second, contradictory, spec, and today you've made a series of comments which suggest you don't actually understand the SVG spec. `<ellipse cy="43" cx="101" rx="53" ry="27.4" fill="#424143"></ellipse>` isn't exactly hard to convert to a bounding box.
 
12:53 PM
I mostly meant on the lines of , there is a vector graphic file present which can be used to get proportions etc.
not that it should define what types of curves to be used
3 px error in a 713 px wide means less than 1 px in the original resolution of 192 by 192 pixels
 
This must be some meaning of "exact" with which I'm not familiar.
 
@grc your star still is smaller and not centered
 
grc
@Optimizer have you seen my comment?
 
Wait, font ?
 
grc
is that cheating?
 
1:04 PM
now I can see why its smaller and towards left
not really.
 
grc
yeah I'm using unicode for the star
 
I just did not notice that u are using a font there
can you move to any other unit than px in the 105px font size ?
 
grc
do you think a monospace font would work cross-browser?
 
I think percentage based will fit well
it should
I am on Firefox only. so cross-browser is not the case
but both my windows 7 and 8.1 laptops show the start like in the image i commented
 
grc
try the snippet now
I'm using '790% monospace'
 
1:08 PM
nope
exact same as before
 
grc
how about now?
 
are you using 105px arial or is the script not updated ?
 
grc
yeah it's arial
 
2:02 PM
(I hope we don't get a draw X wave of questions...)
2
 
2:15 PM
yantra is hard
 
2:28 PM
hello
 
3:05 PM
Anyone who wants to play a chess game? en.lichess.org/tournament/OlYdufdK
(password = winterbash)
 
can i play even if i'm terrible at chess?
 
Every SE member can join if they want.
 
neat
oh god the signup captcha is a chess puzzle
1. i'm bad at these
2. i think computers are good at these
 
Yes, and sometimes they are difficult ones.
 
@grc can you see if the star in this renders correctly for you
 
grc
3:09 PM
@Optimizer not quite
 
screenshot please ?
 
grc
 
ok, so relying on font-size is not the right way
 
grc
does compatibility matter for code golf?
 
well, its not an answer if it only works on my computer
 
3:15 PM
^ I think if you can specify precisely when it will work, you are usually ok
 
chrome ?
 
Chrome 31, Windows
 
non-standard CSS properties.
but what's with that wiggle wiggle wiggle ?
 
Wiggle wiggle wiggle?
 
3:17 PM
its arms are wavy
the star
@grc can you refresh now and see ?
 
grc
it looks slightly better but not enough
 
I just want to know if the size is consistent using real life measurement scale millimeter
 
It's what I commented on grc's answer: the star in Arial Unicode MS has a different shape.
 
@PeterTaylor oh, so its not from my codepen ?
 
It is. The two of you have the same problem.
 
3:22 PM
so its using arial in your browser.
it uses segoe for me
let me fix that
@PeterTaylor how does it look now ?
 
grc
oh well, I'm off to bed
good night
 
gn!
@ProgramFOX how did u get waffles on PPCG :O
Martin too
 
hahaha :D
The real question is: should I tell you?
 
I know :/
but does it work without suggesting an edit but directly editing it ?
 
Yes.
 
3:31 PM
nice
I was up late trying to figure out hairboat, but it was too late and by the time i woke up, someone figured it out. Although, he also did not get a eureka for it
 
@Optimizer Identical to before.
 
can you check which font is actually being used ?
 
Arial Unicode MS is being used for one glyph which isn't in the selected font, Times New Roman.
 
weird..
When I say Times, why does it choose Arial
your system does not have Times New Roman installed ?
 
It does, but (its version of) TNR doesn't include the star.
 
3:39 PM
oh!
is that okay enough limitation ?
 
What OS are you testing with that has a version of TNR with a star?
 
Windows 7 and 8.1 both work
oh, it falls back to Segeo
Segoe UI Symbol
 
I'm on Windows 7
 
so its not falling back to Segoe UI ?
it looks a bit tad weird for me in Chrome. But it still says Times new roman as being used.
 
3:58 PM
@PeterTaylor did you see the latest answer. SVG is down to 470 bytes.
I am testing via browser stack on various configurations..
yeah, Chrome has some issues on windows 7 and 8 in the size and shape of the star
 
4:27 PM
...
 
LOL :(
weird , I am not getting my selfie hat ..
 
@MartinBüttner I just checked the input data of polyominoes... and zero outputs are because the sum of lengths is odd
 
@feersum huh, that shouldn't have happened
or did are talking about some test data you generated yourself?
 
never mind, I think I missed coping the last number.
copying
 
3 digit numbers in CJam are so annoying... they're really long, but too short replace them by some computation
 
4:39 PM
@MartinBüttner That seems to happen to you far more often than it happens to me
 
@Rainbolt well, I've got a few more (especially recent) questions and a lot more answers, so I'd expect anything voting related to happen to my posts more often ^^
 
Currently, Stack Overflow is that it summarizes the seven million or more questions, each supports the programmer of the month 44 million people. - Oh Google translate ;)
Also, how did martin's serial voting amount to 53? Was he serially up and down voted? o.0'
 
hi all
 
4:55 PM
How many points is a downvote?
Is it -3 or -2?
 
If I reversed a downvote into an upvote, you would then net 7 points.
 
If you compare with the reputation after the downvote, yes.
 
So here's a theory: whomever serially voted on Martin's posts had already downvoted a few of them. So when it got reversed, he lost an odd number (53)
 
But does the algo take that into account? Wouldn't the downvote still be reversed?
 
4:57 PM
I'm thinking he was downvoted slowly over time by some user. The downvotes were NOT serial.
And then one day the user upvoted all of Martin's posts.
Those upvotes WERE serial.
 
I have a coding question
I would like to iterate over lists of length 12 where the elements come from [-1,0,1] and each list has exactly four 1s, and four -1s
 
does it involve inner products of 0s and 1s?
 
is there an elegant way to do this?
@feersum almost :)
@feersum although I think the stereotyping is mean :) codegolf.stackexchange.com/users/9206/lembik?tab=questions
 
elegant ? on PPCG ?
 
PPCG is beautiful AND elegant :)
what do you mean?
 
5:00 PM
elegance is one byte shorter and 100 times slower!
 
Oh, apparently if you vote too much on one person, each kind of vote you passed is reverted
 
If each list has four 1, four -1, and four 0, isn't that just all permutations of [-1 -1 -1 -1 0 0 0 0 1 1 1 1]?
 
no, its 19 bytes shorter and 40000 times slower
 
@Geobits yes it is
 
meta.stackexchange.com/a/126857 @how does the system detect voting fraud
 
5:21 PM
@Geobits err.. no it isn't :)
you want [-1,-1] to be the same as [-1,-1]
I solved it in any case
 
Ah, right, good point.
 
There are 34650 such lists, yeah?
 
so its unique permutations.
 
right.. bpaste.net/show/c41ab450457a will do it
just involves some actual coding :)
 
12C4*8C4
 
5:26 PM
Funny, I used 12!/(4!^3) ;p
 
isn't first one (mine) more intuitive ?
 
Probably, but I was taught the way I did it... Both make sense, imo.
 
they are same
ofc.
 
Yours says pick from 12 seats the 4 spots for the ones, then pick from the 8 remaining seats 4 for the -1s
 
also, they haven't mentioned it anywhere, but Selfie hat requires and upvote. To prevent random self answers. Like other hats (read "Fear and Loathing") are quality driven hats
 
5:29 PM
Mine says arrange 12 unique things into 12 seats, then divide by the number of ways you can arrange 4 people into 4 seats 3 times
 
mine says pick all possible four locations, then pick all possible four locations from remaining ones and you are done
 
Yeah, I shouldn't have said ones or -1s but that's basically what I said ;P
 
5:45 PM
@MartinBüttner I'm here now, but dunno if you are.
 
6:00 PM
@MartinBüttner What algorithm are you using there in the last sundays problem ?
 
6:16 PM
How can people be on 20 hats ?
 
6:29 PM
I had 20+ last year, just haven't been bothered much about it this time around. Call me crabby this year I guess.
 
:|
 
:D
 
what I meant was, that there is a hat which is awarded when you get 20 hats
get it now ?
 
Uh, SE server delay?
 
maybe
 
6:33 PM
I'm now unsure of the question. I thought you were asking how people had managed to get that many hats in the short time it's been going.
 
I have 19 hats, so I could not possibly ask that
 
^ That seems a tad extreme ;p Anyway, he meant given that you get a hat for having 20 other hats, logically nobody should ever have exactly 20 hats
 
You only get the Aztec hat if you have 20 hats on one site. If you have, for example, 18 hats on site A and 2 different hats on site B (total 20 hats), you won't get the Aztec hat.
 
oh!
that is the answer I was looking for.
 
Ninja'd by FOX ><
 
6:36 PM
lol
 
2 more 2 go
hairboat hat is impossible to get on PPCG
 
Indeed :(
 
we should ping her to post something here :P
she likes pancakes, so maybe a pancake based code-golf ? :P
 
Isn't there already a question on that?
30
Q: Coating Every Pancake

Calvin's HobbiesYou have a stack of pancakes on a plate with a glob of syrup on top so thick it can't run down the sides. You won't be happy to eat until both faces of each pancake have at least touched the syrup, but right now only one face of the top pancake has. You know that the syrup will never soak throug...

 
that one is weird. something involving creating the perfect pancake shape or spread
 
00:00 - 19:0019:00 - 00:00

« first day (1417 days earlier)      last day (3429 days later) »