« first day (1557 days earlier)      last day (3278 days later) » 

3:00 PM
I wouldn't understand MVC, JavaScript, JQuery, or the .NET page lifecycle nearly as well as I do without Pluralsight. I can Google the more advanced stuff, but having a teacher to learn the basics is nice.
 
I've posted my first question, and had an answer...Problem is i forgot to specify i didnt want any external libraries to be used...where do i stand with adding that rule in and therefore making an answer incorrect?
 
5
Q: How should we deal with chameleon questions

Johannes KuhnMany answers get invalidated by an edited question. One of the reasons might be that I look for loopholes and exploit them. Examples: Shortest program whose concatenated program+output is a permutation of the 95 printable ASCII characters (invalidating edit) Implement division using only addi...

Well, that covers what to do after a change was made. But that's not exactly what you asked
 
Yeah thats more for the Answerers
 
3
A: Sandbox for Proposed Challenges

randomraDigits Digging a Dungeon code-golf simulation numbers Given a non-decreasing list of one-digit positive integers, you should determine how deep dungeon they will dig. Before the start of the digging the ground is level. ███ ███ A dungeon with 5 blocks removed and a depth of 3. ███ ███ ███ ...

are there any missing test cases or other comments?
 
9
A: When is it allowable to change the rules?

DoorknobI have created this very complex infographic; I hope my hours of effort will solve this problem. The only possible exception is if the answer in question is exhibiting one or more obvious loopholes that the question-asker clearly meant to close.

 
3:05 PM
@Joshpbarron Here is what I would do, and I may not speak for everyone else:
If the challenge is significantly flawed, then the answerer is at fault for not pointing it out and proceeding to abuse it. Make the change.
If the challenge is not significantly flawed, then leave it alone.
 
0
A: You call it Centering, I call it Code Golf

dieterPython 3, 120 bytes from PIL.Image import*;from PIL.ImageOps import* i=open(input()).convert('RGB') i.crop(invert(i).getbbox()).save('o.png') it Reads the image file name from stdin, and saves the output image as 'o.png'. for example : echo s2rMqYo.png | python3 script.py It accepts at leas...

 
Err... what Doorknob said in the post Geobits linked to is pretty much the same as what I said
 
This is the question...I was hoping to make a rather difficult question!
 
And it turned out to be trivial?
 
I was going to test it, but forgot I don't have PIL installed here.
 
3:06 PM
Pretty much :D
 
I would categorize that as not a significant flaw
 
Guess I need to work harder on my next one!
 
Does it work, though? The crop function has me feeling odd about it.
 
yeah I don't think this produces an image with the same dimensions
 
I can't test atm, i'll test later on. I have raised those concerns in a comment on the answer already.
 
3:08 PM
If it's broken, tell him, then while there aren't valid answers, you can change it :P
But if you wait until other valid ones are there, it'll be much harder to justify.
 
Keeping in mind that you'll also invalidate the answers of anyone currently working on it that haven't posted yet, which may frustrate some
 
I should really wait till I get back to my hotel to do that
 
What exactly do you want to change?
 
Disallow third party image libraries, I believe.
 
Basically remove the ability to add an external library
So that the answerer (answeree?) must create the bounding box themselves
Right
 
3:12 PM
Ok, I think this challenge needs a bit of cleanup.
Remove "2) All languages are allowed." because it is inherently true even without you saying it.
Remove "5) This is code golf." because you already state this in the tags and in the title.
Remove "7) Answers are to be submitted with the "#" format, as below:" because everyone follows that format anyway, and it's not like you have a stack snippet collecting scores.
Remove "8) Bytes are to be counted as per this link." because we already have a standard method of counting bytes that is described in the code golf tag.
 
Just tested it. Answer doesn't meet the criteria. I'll do an edit now and include @Rainbolt
 
And maybe capitalize Geobits while you're at it
 
What did you mean "you get the header"?
 
I get the joke now, because I see the header.
 
It's been a long day....Can you go even more basic than that?
 
3:16 PM
Ahh, the rules look relevant to the challenge now. That's much nicer.
 
3:43 PM
Finally sandboxed my first MTG challenge. We'll see how it goes
 
0
A: Sandbox for Proposed Challenges

RainboltCan you cast the spell? In Magic: the Gathering, mages (known as "planeswalkers") battle each other by casting spells. Spells cost mana. Five colors of mana exist: White, represented as {W} Blue, represented as {U} Black, represented as {B} Red, represented as {R} Green, represented as {G} ...

 
@Rainbolt that is your first sandbox proposal in how many years ?
 
I sandbox all of my challenges
 
@Sp3000 about the polynomial u gave me
i think i figured out a way to shorten it
syms x;a=factor(x^5-x^3+x^2-1);
C = textscan(char(regexprep(char(a),'[)*(]','_')), '%s', 'delimiter', '()_');
C = C{1};min=99;l=1;
C(any(cellfun(@isempty,C),2),:) = [];
for i=1:numel(C), if char(C{i}(1))=='^', for j=numel(C)+1:C{i}(2)-48+numel(C)-1,C{j}=strcat(C{i-1},'*1^',num2str(j));end,C{i}='1';end,end;
for i=1:numel(C), K=nchoosek(C,i);
for j=1:numel(K),
M(l,1)= (prod(sym(K(j))));
M(l,2)= (prod(sym( setdiff(C,K(j)) )));
op=length(strfind(regexprep(char(M(l,1)),'[*/^+-]','_'),'_'))+length(strfind(regexprep(char(M(l,2)),'[*/^+-]','_'),'_'));
 
@Optimizer Including this one from just under two months ago.
 
3:50 PM
ahhh .. I totally forgot about that
 
The one before that was 6 months prior. Long gap there
 
that gave me six operations outcome
(x + 1)^2*(x^2 - x + 1)
 
How can I get 1, 2 and -1 from '/ '\ and '^ respectively using maths ?
feel free to use their ascii codes
 
@AbdouAbdou How does that work? I don't think you can square...
 
@Optimizer char mod 11 mod 5 - 2 at first try
 
4:02 PM
the first occurence square is replace by 2 operations, so it is totally 7 , does that equal ur assumption ?
i think i should include exponent thu
 
Yeah 7 was what I thought
Exponentiation doesn't make things any easier :P
 
its not golfed yet and i think it works somehow with important range of polynomials
 
btw the output you have wasn't my original polynomial - you seem to be missing a factor of (x-1)
 
well it is , as long as people handle it using mathematica or matlab
really ?
 
yesterday, by Abdou Abdou
x^5-x^3+x^2-1 = xx*(x*(xx-1)+1)-1
The one above is x^4 + x^3 + x + 1
 
4:11 PM
When did sandbox posts become community wiki?
 
yea right
 
all the factorisations and simplifications werent perfect enough to give birth of optimal value ? i think im gonna forget the hell of it
 
@randomra that's nice, but overall it makes my 45 byte to be 46
 
@trichoplax I do mean to follow our default. It's probably not necessary to say that all the time.
 
4:22 PM
@Optimizer In that case, how many bytes do we get? Because two operations might not be doable
 
you can assume that 8% is implicit
so if something is like char % 12 % 8 - 2, then it would save be 2 bytes
 
and 11..20 are 1 bytes too right?
 
yes
10..20
 
and %8 is imlicit only at the very end
 
yes
but you can do + - after that
 
4:29 PM
so more like % 12 - 2 % 8
sure
 
yes
 
4:46 PM
oh, and instead of -1, 7 also works ..
 
5:34 PM
@Rainbolt I like the mtg challenge but is there any reason you insist on Yes and No instead of allowing any truthy/falsy result?
also, more test cases would be nice
 
6:12 PM
@MartinBüttner I figured that Yes and No would be simpler for people unfamiliar with the site, but I guess I can just link to the meta post describing what truthy and falsy are. I'll change it in a sec.
I'll add more test cases. Can you name a specific case you think would have been well served by an example?
 
@Geobits Nice! Seems like there is room to play fortunately.
 
Well I guess you just need choose whether you'd rather cater to people not familiar with the site, or people who like weird esolangs ;)
 
I can definitely see some of the people here being upset by a required "Yes" and "No", or flat out refusing to even answer the challenge because of it.
 
As for test cases. It would be good if there is one that requires the more expensive choice in a 2/G cost, and one where there are multiple hybrids that overlap in one colour.
 
I guess that's the attitude that develops when challenges cater to golfing languages, and not the other way around
@MartinBüttner What do you mean by "one that requires the more expensive choice in a 2/G cost"
 
6:17 PM
A truthy test case which can't be paid for by using G for a 2/G hybrid.
 
For hybrids that overlap in one color, {R/G},{R/G},{R/G}
 
I meant more like R/G G/B B/R.
 
I just realized that technically a hybrid could contain other hybrids the way I worded it
I will restrict Y and Z to not hybrid
 
@randomra Yea, I started this off with a monte carlo on all stacks under length 50 or so to find patterns. I've seen some better results, but I haven't figured out the pattern behind them. Still looking.
 
@MartinBüttner How about pool: {R},{R},{R},{G} cost: {1},{G},{2/G}?
 
6:22 PM
Yes, something like that. Or even 1, R, R/G, 2/G, with pool B, B, R, G
Eh, one more B
 
@MartinBüttner I was trying to back up my examples with cards, but it appears that it won't be possible. No card exists for which different non colorless hybrids are used.
Oh well. Makes the challenge shorter if I don't include all of that nonsense anyway
But it will be less flavorful
Edited to add examples and clarify that hybrids can't be nested. If nobody else finds any issues with the sandbox post, I'll post it tomorrow morning.
OH, I forgot the truthy falsy thing
 
what's the correct etiquette for who should get the bounty at codegolf.stackexchange.com/questions/49218/… ?
I don't want to offend anyone
one person made an effort that wasn't as good as old answers and one person just copied the old answer... more or less
their own old answer :)
 
@MartinBüttner Hah! I can cater to everyone! "prints or returns true (or some truthy value) if and only if the mana in that pool can satisfy the cost, else false (or some falsy value)"
 
@Lembik not awarding the bounty manually has it automatically award it based on the stuff on the bounty page.
 
And the text is exactly long enough to avoid orphans on the next line of the post
 
6:36 PM
@Compass would that be the right thing to do here?
I think it only awards half the bounty in that case, right?
 
I usually state who will receive the bounty when I post the bounty, using the custom reason box (or additional info... whatever it is called)
Who were you planning on giving it to?
 
@Rainbolt someone who beat the previous record
but no one did and I didn't really state that explicitly in any case
@Rainbolt right...then I was going to award it to the best new answer
but the best answer is old
 
best meaning winner?
 
If it's old, it's not the best new answer...
 
basically.. I didn't cover the case that actually happened
@Geobits right but I didn't say that
@Rainbolt highest score
 
6:38 PM
let autopick decide for half credit
 
is that mean?
I meant not to give the whole credit
 
no
 
what is going to offend Peter T least? :)
 
It's your bounty so you can do whatever you want with it. Just leave a comment saying "Nobody beat the old record, so I decided to award the bounty to the highest scoring new answer. That's you! Congratulations!"
 
In the end, it's your rep. You can dance around trying not to offend, or just make a choice. Live and learn.
 
6:39 PM
if you were hoping to win an internet popularity contest
this would not affect your rating
sometimes people win bounties
 
@Compass I am trying not to win an internet unpopularity contest :)
 
sometimes they dont
 
and really just trying to do the right thing
@Rainbolt ok thanks
 
"this would not affect your rating" Not true. I will never think of Lembik the same way again.
 
@Rainbolt don't! :)
 
6:41 PM
We're all secretly popularity judges
 
You are dead to me
 
I am secretly sad none of the old competitors tried
it seems justhalf has disappeared
as well as Suboptimus Prime
 
Rest assured you will never be as good at Stack Exchange as this guy: stackoverflow.com/users/22656/jon-skeet
 
Who keeps starring and then unstarring my messages? Do my messages become less useful and interesting as they age?
6
 
@Compass :)
bounty awarded!
I await the wrath of Peter
 
6:46 PM
@Rainbolt I'm not sure stars have ever only meant "useful or interesting", despite the tooltip.
 
Isn't there a star-related badge?
 
Yes
 
" hey @JonSkeet, how the hell are you able to elaborate such a response in 5 mins?! "
I like that comment :)
 
Jon Skeet is immutable. If something's going to change, it's going to have to be the rest of the universe.
 
6:48 PM
You realize that's probably going to ping him, right?
 
:)
 
Jon Skeet doesn't have performance bottlenecks. He just makes the universe wait its turn.
yes i am copying from there
 
At least give credit to the guy
 
Jon Skeet doesn't need credit, he's already declared.
 
When I steal Professor Ramamurti's jokes, I give him credit
 
6:49 PM
look at successful professional members , they r never pioneers of puzzling or gaming or even mathematical forums
 
should i really be giving credit to Jon Skeet facts to Jon Skeet?
That actually seems remarkably egotistically inappropriate.
 
i looked over his accounts , no such game of math.SE
 
"People think that when you're weightless, you've escaped the pull of gravity. But when the elevator that you're in slams into the floor, then you'll know that you were wrong." ~ Dr. Ramamurti Shankar
@Compass No, you should credit the guy who wrote them
I know I've linked to this before, but some of you who weren't here can read this crazy physics lecturer's quotes here: spurstalk.com/forums/showthread.php?t=145015
 
I am loving LCR circuits ;)
 
@Rainbolt Whoever originally wrote them, Jon was the OP for that answer: meta.stackexchange.com/revisions/9182/1
 
6:52 PM
@Geobits I.... didn't notice that
I only saw community wiki
7 revs, 5 users 53%
unknown
 
Yea, that's the downside of CW.
 
history
 
I didn't think about it before the sandbox went CW, or I'd have mentioned it as a possible issue.
 
@Geobits can you add it to my answer ?
 
@Geobits @randomra I kept brainstorming around the transparent dice faces a bit... it turned out to be something quite different, but I've sandboxed it now. :)
 
6:54 PM
My favorite physics quote: "Prediction is very difficult, especially about the future." - Niels Bohr
will read soon
 
Prediction about past is more difficult
soon == as soon as the link pops up here
 
Anyone who wants to watch the lectures from Dr. Shankar can watch them here: Physics I, Physics II
He'll teach it better than your college professor ever will
 
(they are fantastic)
 
Using large handwavy arguments when necessary
 
and invoking Tenure when it gets really bad
 
6:56 PM
Hahaha I can tell you have been wrapped up in this
 
my brother and I are half way through Physics 2
 
Since like... last year?
 
0
A: Sandbox for Proposed Challenges

Martin BüttnerAdding 7-Segment Displays code-golfarithmeticnumber Hey, check this out, I found a new way to add numbers! E.g. 1+1+3+4. Write them out as 7-segment displays: _ | + | + _| + |_| | | _| | (Note that 1 is always written with the two segments on t...

 
started with Physics 1 in September, I think, we aren't rushing ;)
 
Ah, I see
 
6:57 PM
@MartinBüttner is there a decent chance that Books on shelf will be solved with like 1 or 2 functions in Mathematica?
 
we are really slow at all the calculus, so each 1 and a bit hour installment takes well over 2 hours
 
I rushed Physics I because I was studying for finals. I watched Physics II in conjunction with lectures
 
we're just doing it for fun, so we haven't set deadlines or anything like that, just enjoying Shankar, and the new understanding
he is most entertaining
 
@Rainbolt Hah, I am right on the Internet
I was away for a few minutes there but I am glad to have proven that Jon Skeet is declared.
 
normally I would complain about misuse of the word "prove", but when Skeet is involved, I'll let it slide
 
7:01 PM
I wonder if there is a parody of Get Low by Lil Jon Skeet
I'd be very surprised to not find one
First result: youtube.com/watch?v=2vda2t68VT0 but I can't listen to it at work
 
@MartinBüttner with single digits it might become a magic expression contest which might be your goal might not
 
With single digits any case with 9 becomes really easy, 8 only slightly harder :P
 
(magic-expression contest, not magic expression-contest) :)
 
@randomra I don't think so, but I don't know.
 
how many valid combos are?
 
7:04 PM
infinitely many, if you consider adding zeroes :P
 
with max 1 zero?
 
I haven't counted them yet, but not too few.
I probably should though
 
I like the question especially if you can't easily circumvent dealing with the actual layout
if it isn't clear multiple digits could probably help but otherwise they don't seem important
 
I think you always can if you really want to.
(even with multiple digits)
but I think that's a good thing, because it allows several approaches
I just need to check that circumventing the layout isn't too cheap.
 
It comes down to a bit representation of each layout, or'd together, I'd think. Just or them up and compare to the sum.
 
7:09 PM
right, but encoding (and/or decoding) might be longer than using some logic to work out the resulting number directly without going through the representation.
 
right, maybe magic numbers don't have a huge advantage
 
@Geobits hm, that's actually an argument against the challenge if circumventing the 7-segment display isn't feasible.
(because 7-segment conversion itself has pretty much been done to death... although I don't know if there has been one that didn't require the actual ascii layout anywhere)
 
That's pretty much how I meant it. The conversion is easy, and the added comparison would be really short.
 
I'll checkout the valid combinations later... although there are definitely too many of them in case of multi-digit numbers. only very few combinations result in a non-digit.
of course, I could also still make this a probability theory question.
 
those are not elegant
this is unique in this way imo
 
7:17 PM
ugh
 
I despise and avoid all floating point numbers though.
you would need a much deeper understanding of them to safely use than most people have (including me)
 
@randomra I would probably require rationals
 
the only clean way :)
 
can one get a job via code golf skills?
 
Well, without looking hard to cut characters, doing this in a straightforward way, I have 112 in java:
boolean f(int[]z){int t=0,o=0,s[]={63,6,91,79,102,109,125,7,127,111};for(int a:z){t+=a;o|=s[a];}return s[t]==o;}
 
7:25 PM
right, that's pretty lame
 
|= what is this
 
@MartinBüttner when talking about adding in the 7 segment mode, why not name it as Overlapping ?
 
@Compass or-equals. Like +=, but with or.
 
@Compass o = o|s[a]; where | is bitwise or.
 
Wow. Java, you still scary.
 
7:26 PM
@Optimizer changed it to "overlaying" as I called it earlier, thanks
 
@MartinBüttner that works too
 
i have a question for all of you fine programmers
 
@Geobits I'll consider rewriting it as a probability theory question, but that would be much harder to motivate. ;)
back to exam revision for now...
 
is anyone interested in a non-ppcg-related project? i have a very large python+kivy thing that i need to rework and finish. if someone is interested in seriously helping me get it going, you'd get your name as an author on the paper
 
Can I get my name on it despite not helping and not knowing much python? ;)
 
7:29 PM
@Geobits make me an offer
 
I will upvote your next 5 posts, regardless of content.
(I probably shouldn't be saying this in chat)
 
haha not good enough, sorry. my advisor would frown on me selling it so cheaply
 
And as such, 5 answers consisting of the word "Poop" became active in historical posts.
 
Right, this is where you come back with a counteroffer.
 
I'll do 8
 
7:32 PM
@Geobits ok then, how about this: you pay for my postdoctoral support for next year. :D
 
@MartinBüttner btw, my answer has overtaken yours
@sirpercival how much is that ?
 
@Optimizer ~$40k
 
@sirpercival Wow, that's quite a jump from five upvotes...
 
@Optimizer because I know what answer you're talking about...
 
@Geobits authorship on a paper is better than most people. other people who support students & postdocs get acknowledgements in the text, is all
it's a good deal XD
 
7:35 PM
Right, but think of the prestige of having upvoted answers :P
 
you drive a hard bargain my friend
 
Tell you what, I'll throw in an uplifting comment on each one, also.
 
@Geobits i'm sorry, but i can't take your offer - i promised my mother never to steal, and what you've offered is too much. you're clearly far too generous for me to do business with
 
Are you sure? Just to be clear, the content of these comments would be something like: "+1, very nicely golfed" or "This answer saved my baby from a fire. Words can't express my gratitude."
5
 
I want to use the second comment on principle
 
7:42 PM
@Geobits such words are not worthy of being sullied by base dealings such as we're discussing
 
User search for "principle" finds no matches.
 
@Geobits that is some xkcd level golfing
 
@randomra You know they onebox if you make a bare link? With hover text and everything...
 
@trichoplax I don't want to take away 1/4 of your screens
 
lol it would take away all of mine
 
7:48 PM
has anyone ever tried to do a secret santa-style golf?
 
I draw your name from a hat and golf you a program to stick under the tree?
 
@sirpercival I have no idea how that would work but it sounds full of potential
The identicon challenge was different for different languages. Would it be a challenge that is different for different user ids?
 
basically, the idea is that everyone interested in participating has to answer with "i want to participate!" or something like that, before a certain date. then, after the date, the judge randomly assigns each participant another participant. (more)
 
Did Geobits comment at the top of the starboard just change from 11m ago to 10m ago. I can't help feeling that isn't usual
I was looking right at it as it happened
 
Crap, I think I've been discovered.
 
7:52 PM
Is this how you ninja people @Geobits?? Time travel?
Taking part in your own simulated world was always going to end in tears
 
you have to write a golfed code which produces your target's user ID in some way of your choice - either just printed text to STDOUT, hashed, etc.
your score is number of bytes divided by the length of time it takes for your target to figure out it's them
 
or code golf telephone
 
I don't like the "length of time" thing.
 
(they have to edit it into their answer with a time stamp)
 
Yes the time thing seems unfair. Geobits has a huge advantage
 
7:54 PM
haha
 
What's to stop me from targeting someone who hasn't been here in a few months?
 
@Geobits i'm just spitballing here, any other suggestions?
oh, no, it's only people who are participating
and you're assigned someone by the judge
 
I take it you don't choose your target though - once assigned you can't swap with anyone, right?
 
who does it randomly
right
 
Then it seems it would just randomly benefit people based on time zones or activity levels. I dunno, seems weird.
 
7:56 PM
it's kinda like cops&robbers, i guess?
 
But it still leaves a big discrepancy between people with different schedules. Some of us don't work or sleep and can watch the site 24 hours a day. Others can only drop in at weekends.
 
yeah, it's an issue
suggestions?
 
The identicon challenge seemed to work well without a time aspect
 
that's true, so you'd need to enforce some challenging output mechanism for the userid
i liked the guessing aspect, though :(
 
Some kind of guessing aspect would be cool - fits with the theme
 

« first day (1557 days earlier)      last day (3278 days later) »