« first day (1470 days earlier)      last day (1839 days later) » 

12:00 AM
exec in a function never works out
 
def h(x):
 print(x)
 exec("x=x+1")
 print(x)
 return x

print(h(1))
prints only 1's
indeed, it works totally fine outside a function
 
actually, it works in Python 2 lol
 
 
2 hours later…
2:07 AM
@MartinBüttner At least it wasn't just me that noticed that. I thought about saying something when I saw it, but figured it would sound petty coming from me ;)
 
:D
I know what you mean...
 
2:36 AM
Wow, Box Muller's as short as erfinv, basically
 
yeah, it's not too long
the amount of answers I get on these challenges where the authors know they are invalid, but don't fix or delete them is crazy.
 
2:54 AM
Really? How so?
 
well I don't know, but there are several answers on #1 where the OP is aware of the answer being incorrect (as mentioned in the comments), and now also the first one on #2
 
 
11 hours later…
1:44 PM
One day this will come out and Python will be a fair bit golfier... (hopes)
 
 
3 hours later…
5:05 PM
Congratulations on reaching 10,000 reputation, @ugoren!
5
 
5:37 PM
0
A: Sandbox for Proposed Challenges

DJ McMayhemBrick your boss's computer So the idea for my challenge has a little bit of a story behind it. You are a double agent. You work for company A, but company B has hired you to do software design. Company B is a giant evil company, and it's your job to take them down. So you decide to crash compan...

 
5:52 PM
0
A: Sandbox for Proposed Challenges

EllBest Approximating Polynomial code-golf math polynomials (higher-order-function?) Let f(x) and g(x) be two continuous real-valued functions over the interval [a, b], where a < b.  The mean squared error (or simply "error" hereafter) between f(x) and g(x) is defined as Roughly speaking, the s...

 
 
1 hour later…
7:06 PM
@Doorknob the sidebar is giving away how a superping works :P
(well not that it would work for anyone else... but still... seems buggy)
can you ping anyone with their user ID?
@59776
 
@@112128 nope
 
nope
@Doorknob is this worth a bug report on MSE?
@aditsu thanks for adding permalinks btw
also, remind me, did you plan to add UTF-8 bytecount to 0.6.4?
 
you're welcome, and I'm not planning that yet
 
k
should I add a ticket, just in case?
 
sure
do you often use non-ascii characters?
 
7:20 PM
reasonably often
 
7:36 PM
@MartinBüttner Only moderators can.
 
@ProgramFOX well I didn't mean superping
I meant, someone I can ping with their name anyway
 
ah
then I don't think you can
 
yeah I figured :D
 
are you aware of the sidebar thing being known?
(that superpings show as user IDs)
 
7:39 PM
I've never seen it before, so no. I'll search on meta.
 
I tried finding it, but no luck
if you can't find it either, I'll post another bug report
 
same here, no results
 
k
0
Q: Superpings don't show user name in sidebar

Martin BüttnerDoorknob just superpinged someone in our chat. The message got starred and ended up in the sidebar. However, the superping syntax and user ID weren't replaced with the normal ping and user name there (as they are in the actual message): Click for larger version I don't think it's a big deal, b...

 
thx :)
this has a pretty mad vote/view ratio :D meta.stackexchange.com/q/247112/201409
 
7:52 PM
Saturday!
 
you don't say
 
@@31414 test
 
By the way, even if you can superping, that wouldn't ping you (which you wanted to try, I think). I see that you tried to ping yourself with your codegolf id, but then you'd have to use @@31414@codegolf.stackexchange.com, because if you don't provide a site, it uses your chat.SE id.
 
@@88521 like this ?
I did right .. why is it not pinging/ converting to name .
 
@@126828 No, like this, because 126828 is your chat.SE id. But you are not a moderator, so you cannot superping.
 
8:03 PM
lol
I did correctly only then for u
that is your chat.se id
 
... oh, lol, I don't even know my own IDs :P
 
@MartinBüttner Heh, whoops... edited, hopefully he still gets the ping
 
Hm, after your edit, the star is still yellow for me on the starboard, but not anymore next to the message.
 
same here
 
another bug report incoming
 
8:04 PM
I've seen that happen a few times
@ProgramFOX this one's for you ;)
 
Try refreshing?
Err, don't do that yet
 
Take a screenshot, then refresh :P
 
yeah, that works, but now I cannot take the screenshot anymore :/
I refreshed before thinking about what I was doing.
 
doorknob has to edit again :P
 
8:05 PM
lol
 
There, comma removed :P
 
oh wait, it's already reported:
18
Q: Editing a starred post in chat breaks display for user who starred it

David X. RandomSteps to reproduce: User A posts a message User B stars it, the star next to the post appears yellow User A edits the post The display of the star in User B's view becomes black, as if they haven't starred it This is the worst bug ever in the history of StackExchange and makes the entire netw...

 
Well then. Commaness restored.
 
"I'm going to Yahoo! Answers until this is fixed." :D
 
If you can cope with Yahoo Answers, more power to you! — Danny Beckett Apr 30 '13 at 11:56
 
8:09 PM
Sandbox post from July I've resurrected:
http://meta.codegolf.stackexchange.com/a/1893/2867
And everybody leaves....
 
I was never here...
 
Even if I wanted to leave, I'm glued to the door, so...
 
8:25 PM
Note to self: it's door-knob not doork-nob
 
or dork-noob
 
@PhiNotPi Having read a bit about variants, it might be more interesting (and probably faster to run) to make it one big game and require the guesses to be modulo some number.
@Doorknob Shoddy work by the builders.
 
Say, @Peter, what happened to the Knishops?
 
@PeterTaylor If the game is played as a large group, there will be a lot more randomness involved.
A single uniformly random thrower will be able to make the whole sum (mod N) be uniformly random.
 
9:06 PM
this sounds like an interesting challenge:
2
Q: Calculate area under a polyline

user25235Consider the following code: tmp = {{0, 0}, {1, 1}, {2, 1}, {3, 2}, {1, 0.5}}; ListLinePlot[tmp, Filling -> Axis] Is there any easy way to compute filled area? Edit: Actual data consists of thousands of points, so some analytical solution would be the best

the desired area is this:
Here is a more elaborate example: {{0, 0}, {1, 1}, {2, 1}, {3, 2}, {1, 0.5}, {2.5, 1}, {1.5, 1.5}}
 
Working on a Morra controller right now.
The polyline area challenge seems like a good idea.
 
@MartinBüttner I forgot about that one. I've got some others on the back burner too.
@PhiNotPi Not if N is larger than the number the thrower is allowed to pick. But I get your point.
@MartinBüttner Area of a polygon? IIRC it's basically a simple fold. (And yes, it is the area of a polygon with a suitable winding rule: it just requires extending both ends down to the axis and then joining them).
 
9:22 PM
@PeterTaylor I just noticed ;) (and answered)
 
0
A: Sandbox for Proposed Challenges

randomraFactorize it! ...badly A curious kid uses a program which can factorize a number or an expression into the following form: p1^e1 * p2^e2 * ... * pn^en. Exponents equal to 1 are omitted e.g. 360 = 2^3 * 3^2 * 5 The kid types this output into the program as new input but she doesn't understand th...

 
@PeterTaylor it might still be an interesting challenge though if it hasn't been done
@PeterTaylor Yeah, I remember you had some combinatorial OEIS sequence a while back which never made it to main.
(or did you mean other ideas, that aren't even in the sandbox yet?)
 
9:51 PM
Almost done with a Java-only Morra controller.
I think there was somebody here who said they could write a language wrapper for it.
 
@Rainbolt ^
he probably won't see it before Monday though
 
@MartinBüttner There's the elliptic curve cryptography one in the sandbox too.
 
10:10 PM
wow, that's been there for longer than I've been an active member :D
 
I think it would be neat to sort through the entire sandbox.
I'm sure there's some very interesting idea in there. The problem is that they'll be on page 20 or whatever where nobody sees them.
 
I looked through the last few pages once, but I didn't find too much really interesting, I think... but I'm sure there are some gems in there
 
I've gotten the Morra controller to work when the submissions are Java classes.
 
11:17 PM
The Morra KOTH could be posted today, if I decided not to have a wrapper.
Or, the wrapper could be added later.
 

« first day (1470 days earlier)      last day (1839 days later) »