« first day (1469 days earlier)      last day (3359 days later) » 

12:00 AM
@feersum not with floating point numbers :P
 
unless it does
 
12:30 AM
@MartinBüttner "Input and output may be in any convenient list or string format" So... I can't do F(N,S)? Or is that a list format?
 
12:41 AM
@Geobits The 100 bots 25 rounds thing is over, but the majority of bots were rejected as faulty.
which makes no sense
I assume those are due to time-outs.
It's like the game slows down as it progresses.
If I want to salvage the results in any meaningful way, I'll have to use something other than the final scores.
 
Joy
the two answers on this question codegolf.stackexchange.com/questions/45059/… differ
but only after n=8
 
that's weird
 
@MartinBüttner Might be wrong, but I think Mathematica or Matlab might make a killing with the normal question, with sqrt(2) * erf^-1(2*random() - 1) where erf is the error function
 
1:25 AM
@NathanMerrill, trichoplax version is incorrect. I explained it in the comments.
 
even C has erf... and most languages provide access to the C math library
 
Yeah but you need the inverse of that
(Which, annoyingly, Python doesn't have in its math library)
 
oh, you mean in the sense of an inverse function
 
lol, I just got the message "You haven't voted on questions in a while; Questions need votes too!"
 
Inverse is an unfortunately ambiguous word - it's frustrating, isn't it?
 
1:55 AM
This print N^2 characters challenge is strangely addicting for me..now I'm trying ///
 
Ahaha let's get all the esolangs in there
 
2:18 AM
String a="";
System.out.println(a);a+="xx";//
:D
Esoteric enough for ya? ;)
 
I think I've just exceeded myself in obfuscation
 
better to use print and start with 1 char..
 
True, I could save one that way....
 
aditsu's CJam chords almost looks like Malbolge
 
But I'm not posting it anyway. It's a terrible ripoff :P
 
2:21 AM
thanks for the compliment (I guess :p)
 
@Geobits Do you think there is a way to salvage my random tournament data?
I have the list of which opponent won which match, but most opponents were rejected as faulty near the end of the tournament.
33 4x12x13x5X0x0x6x14X0x0x6x9
29 0x0x8x7X4x12x13x1X1x3x14x9
29 0x0x8x11X1x3x9x14X0x0x14x7
27 1x3x13x14X0x0x13x1X4x12x2x5
24 2x6x4x8X3x9x2x5X4x12x1x4
24 1x3x6x9X1x3x9x5X3x9x10x6
22 1x3x12x10X2x6x14x2X4x12x11x10
20 4x12x3x2X2x6x0x2X3x9x3x11
20 0x0x9x12X0x0x12x10X2x6x8x5
18 1x3x8x5X3x9x10x7X3x9x2x5
18 3x9x8x3X4x12x10x11X4x12x4x9
16 4x12x2x14X4x12x9x14X1x3x8x6
15 2x6x2x1X2x6x2x4X0x0x11x6
 
I dunno, I've taken the day off from Codemon. I'm not sure what you can get out of partials. The timeout thing is weird, though. Both you and Martin seem to have bots timing out randomly, but I haven't figured out why.
 
garbage collection? lol
 
If it helps, you can just disable the turn timer in Team.java:sendReceive().
I can't see how anything would cause them to take more than 1.5s per turn though, even if crazy GC happens :P
 
I don't think that will solve anything.
The logic is just "generate a random number 0-2, if that move is used up then go with 0 (the basic attack)"
 
2:25 AM
Well the only thing that should kick them out during the tourney is timeout or malformed commands.
 
it doesn't print the reason for kicks?
 
I think I could use an elo system....
 
is there an Elo rating golf?
 
If you have the logs, you can search for "Timeout" to confirm that's what's happening.
@feersum There probably should be :)
 
I don't have the reason for the kicks recorded, just the match results log (debug = 2).
 
2:28 AM
Hmm. It might still be there, IIRC it's a printStackTrace() for that, not running through the logger class.
 
you'd think getting kicked from the tournament would be one of the highest priority log messages
 
		if(System.currentTimeMillis() - start > 1500){
			throw new Exception("Timeout for " + name);
		}
That should bubble up and print no matter the log level.
 
I think I remember seeing some of those while running it. (I ran it printing to STDOUT, but then saved the output to a file.)
So error messages weren't recorded.
 
gotta use 2>
 
I'm pretty sure they were timing out.
 
2:35 AM
Your PRNG must be extremely slow :P
 
regardless, I'm writing a program to take the output and calculate elo scores
 
No, but seriously, I have no idea why. I haven't had a bot time out at all, except once when I had some zombie processes killing my CPU.
 
¯\_(ツ)_/¯
 
That's sure an elaborate way to say 'tsu' :)
 
Σ(゚д゚lll)
 
2:41 AM
I can only assume that's some sort of gilled slime monster being stabbed in the face by a fork.
 
2:56 AM
damn, I can't stop
 
3:20 AM
Randombot elo ratings calculated!
 
3:36 AM
4x12x4x11X1x3x8x10X4x12x14x5        :      1704.92 /        21.00 =        81.19
3x9x5x10X3x9x0x2X3x9x4x10           :      2645.07 /        16.00 =       165.32
0x0x14x9X3x9x6x2X0x0x2x10           :      3750.35 /        18.00 =       208.35
2x6x3x2X3x9x3x5X0x0x14x7            :      4180.04 /        20.00 =       209.00
2x6x0x13X1x3x10x14X2x6x3x4          :      3061.49 /        14.00 =       218.68
4x12x5x10X2x6x4x7X3x9x2x10          :      3970.83 /        18.00 =       220.60
0x0x6x8X0x0x2x9X3x9x4x5             :      4512.70 /        20.00 =       225.63
That is including only bots that played at least 10 out of 25 rounds.
 
3:55 AM
I found a way to reduce timeouts....
well, kinda
I built the bot's logic into the Team class's SendReceive method
40 rounds x 100 bots in 7 seconds
@Geobits ^
400 rounds x 100 bots:
------- Final Results -------

681		1x3x13x6X1x3x13x12X1x3x13x4
677		3x9x3x7X0x0x10x13X1x3x13x12
660		2x6x13x1X0x0x8x13X1x3x7x9
649		4x12x10x13X1x3x13x12X0x0x14x7
609		0x0x7x10X1x3x7x6X1x3x8x7
597		3x9x4x8X1x3x6x13X0x0x10x13
590		3x9x6x0X2x6x7x13X1x3x9x7
589		2x6x0x7X1x3x7x8X3x9x7x4
585		2x6x13x3X1x3x7x13X3x9x5x0
572		1x3x4x13X4x12x1x14X1x3x9x7
558		4x12x13x10X1x3x7x10X0x0x8x9
550		2x6x1x7X1x3x9x6X4x12x13x4
546		1x3x14x4X3x9x7x3X0x0x12x13
541		0x0x8x13X1x3x6x8X2x6x2x13
530		2x6x14x4X0x0x8x13X0x0x9x7
10 rounds x 1000 bots in 15 seconds
5000 battles in 15 seconds
2000 rounds in 7 seconds
25000 seconds times 250 battles per second...
over 6 million battles....
I'm starting a 5000-bot 2000-round game... results should be available in the morning.
 
 
5 hours later…
9:00 AM
@Calvin'sHobbies (re terminating) well that's a shame... I would have had a somewhat nontrivial submission for you ;) (at least one with a score that isn't a power of 95)
@Sp3000 oh thanks, copy-paste mistake
@feersum did you manage to beat me? ;)
 
Nothing yet
 
@feersum I don't think so
@Sp3000 in Mathematica it's InverseErf
(in Matlab it's erfinv)
hm, I'll probably disallow that
I've tried wording it such that you can still integrate the Gaussian yourself and invert the function if you want (in Mathematica at least)
oh, Movies & TV graduated
I like their badges
 
9:53 AM
@MartinBüttner you can post it here :)
 
@MartinBüttner Maybe disallow builtin Gaussian/Error functions altogether? Or is that going too far?
Oh I guess if you want to integrate the Gaussian probably not...
 
 
2 hours later…
11:32 AM
2000 rounds x 5000 bots is complete.
The winner: 3381 0x0x13x1X0x0x13x7X1x3x13x7
This team had 3 poison and 2 burn
In fact, all of the top 20 teams had a poison move.
Loser team:
1733		2x6x2x8X2x6x8x2X2x6x2x8
What's the chance of three identical pokemon being created?
Fireball, Slow, and Sharpen
 
11:59 AM
Here's the chance of three identical *Codemon:
There are 5 types/primary moves X 11 second slot moves X 10 third slot moves.
Dividing by 2 because the second and third moves can be swapped, 5*11*10/2 = 275.
 
@Peter, can you think of a simple wording (for the PRNG range) that would allow languages which don't have such a range (by generating multiple random numbers over a smaller range M and interpreting them as the digits of a base-M number)?
 
1 / 275^2 = .0000132
 
@MartinBüttner "If your available uniform RNG has a smaller range, you must either first build a uniform RNG with a sufficiently large range on top of the built-in one or you must implement your own suitable RNG using the seed. This page may be helpful for that."
 
Thank you
I'll incorporate that when I get home
 
 
2 hours later…
1:44 PM
@PhiNotPi I'm surprised Confusion did not come on top too. It's deadly.
 
I found a somewhat more interesting answer to CH's not-so-popular challenge:
0
A: How many contiguous "strings" can you find in a set of strings?

Martin Büttner///, 6634204313747905 > 958 From string/.~~~~~/0 to string/0 /.~ This relies on the program not being required to terminate. I started from a core-range of 958 much like the other solutions, from string// to string//~~~~~~~~ However, in this case, // is not a comment. In...

 
2:25 PM
@Lembik do you know about the Bloom filter? for k-mers it might be useful although the time limit is really tight to do more than 1 hash per strings or chars
 
I wonder how many days I can go without Googling k-mers
Fail. I just Googled it
Stating my apathy made it weaker
 
2:41 PM
@randomra I do know about bloom filters but how would you deal with the false positives?
 
@Lembik for k=16 it would be 1 in 2^80, so ~0, but if you want 100% correct than it wouldn't work
 
@randomra ok thanks.. for this one I am going for 100% correct :)
@randomra I don't yet understand why FUZxxl's new solution takes >6 minutes
when making the suffix array is <30 seconds
 
haven't checked that one, will do now...
 
actually he just said
or she did :)
 
outputting 1GB could take quite some time alone
 
2:53 PM
Someone ping me and then unping me?
Oh, he probably typed out @ra and then pressed tab
 
@randomra why do you need to output 1GB ?
@Rainbolt it was me .. sorry
 
Np. I like mini puzzles
 
do you mean to make the suffix array?
 
no, output for k=1,2...250 000 000
 
@randomra oh I see. well up to 17 would do at the moment :)
 
2:56 PM
but he does all k's
 
yes he does. I was just saying that if he/she could do it up to 20 quicker that would also be great
time head -c 1G /dev/zero > /dev/null is pretty quick though :)
 
3:08 PM
I've edited the recent suggestions into the normal distribution draft and (hopefully) improved the formatting a bit:
2
A: Sandbox for Proposed Challenges

Martin BüttnerRandom Golf of the Day code-golfrandom Meta: I am running this as a little series of challenges revolving around the topic of randomness - in the form of a 9-hole golf course. I'm maintainingn a leaderboard across all challenges in the series, and offer a large bounty to the person competing in...

does that look good to go?
(@Peter ^)
@Doorknob can you let me know when/if Vim.SE goes public?
 
@Lembik > I don't yet understand why FUZxxl's new solution takes >6 minutes
suffix array takes O(n), step 3 takes O(n*p) where p is the average common prefix of 2 neighbor suffix's
 
3:30 PM
@randomra that is interesting for a number of reasons... thanks
 
@MartinBüttner You could always get into the "private" beta through the Area 51 page, but sure.
 
ah yeah, but I don't think I'll really contribute anyway, because I'm not using Vim at the moment... but I'd be interested in browsing a bit... I'm sure you've got some interesting content ;)
 
3:49 PM
@MartinBüttner Hmm. There seems to be a disconnect between (effectively) "you must use a PRNG which can be seeded with S" and "If you do use the built-in RNG, you may also rely on its seeding functionality (if it has one)".
 
I intended that to mean "you can pass S on to the PRNG if it takes a seed"
 
But if it doesn't take a seed, you can't use it.
 
yes
should I just remove the seeding part altogether?
and just write something like "your submission must be able to produce at least 2^16 different sequences"?
 
People who don't have a suitable built-in will need a seed in order to implement their own PRNG.
 
they could always hardcode it to the current time
do you have a better suggestion?
 
3:54 PM
I think requiring a seed and reproducibility is reasonable. But it could be better worded to make it clear that the options are using a seedable built-in or implementing your own PRNG.
 
that does rule out CJam again (well not rule it out, but it becomes very cumbersome). I guess in GS you can seed the PRNG through Ruby?
 
Maybe, although it might be shorter to implement an LCG.
 
k
hm... I wonder... "you must implement your own suitable RNG using the seed" ... does that need a definition of how good the RNG must be to be "suitable"?
 
7
A: Standard definitions of terms within specifications

Doorknob"random" The term "random" means that you may: Use your language's built-in random number generator, Use /dev/random, or Create a RNG that is equivalent to a standard RNG (such as the Mersenne Twister).

 
awesome
I'll link to that
How is that for better wording, regarding the seed?
 
4:20 PM
Vote to close because not self contained. Relies on external standard definition.
 
I could start an argument about the meaning of "external" now, but I'm not in the mood
(that being said "This post is meant to be a collection of "standard" definitions that may be assumed in every question, and do not need to be specified within the challenge.")
 
Oh good. I can remove the bit about explaining how to play Connect Four from my challenge because I can link to a "standard", "official" document explaining how to play.
Is is safe to assume that the official rules of Connect Four apply to Connect Four?
 
@Rainbolt by all means, please do whatever you think makes your question most approachable
 
I'm perfectly capable of deciding whether my question is approachable. Whether people will decide to close it for arbitrary reasons is another question.
 
I don't know... I guess it's a fuzzy question of how much you can expect people to know. We obviously don't need to include the definition of "function" or "ASCII" or "array" in every question, because the target audience knows what you're talking about. Likewise, I doubt that the chess challenges need to outline the entire rules of chess... the few people who don't know chess probably won't enjoy the challenge much if they learn the rules just for that purpose anyway. and in that case including a link for the eventuality seems sufficient.
as for Connect 4, I couldn't tell you if most people know it or not.
 
4:35 PM
If input, output, and flow of communication are well defined in that Magic challenge, I wouldn't call it unclear.
 
but the flow of communication is exactly the relevant rules of the game, no?
or do you mean something else?
 
I mean "The controller will send you X, and you will respond with Y. Then, it will send your opponent Z, and your opponent will respond with whatever comes after Z. Then [...]"
 
oh okay
 
Connect 4 is very popular among middle school kids in France. I doubt many French people who studied enough to learn programming would need an explanation about it. But that might be different in other parts of the world.
 
I don't care how many people have the Connect Four rules memorized. I will link to them.
There was some debate last week about whether that was good practice
 
4:39 PM
Mmmm... So much for my attempt at lightening the mood.
 
All my challenge will say then is "I will give you the board state. You will respond with a column number. Then I will do the same for your opponent. This will continue until a player wins."
That seems simple no?
It cuts the size of my sandbox post in half if I don't try to reinvent the rules.
I also don't have to use my new word octilinearly
 
Like you said, as long as I/O is well defined, I don't see a problem with a link to the official rules. That said, it's mostly because the rules are so simple and clear (and well known). For something more obscure, technical, or complex, I'd expect at least a basic outline in the challenge itself. This is so that people have a rough grasp of the problem before heading out on a link. I don't think Connect Four has that problem.
You could also argue that since the rules are so simple and clear, it wouldn't be a burden to include them. Judgement call on the asker, but I wouldn't close it either way.
 
I don't think that something so subjective should be a determinant in whether the question is open or closed. If the rules are technical and complex, but they are at least complete, then downvote. You could, if you felt like it, figure it out on your own. You just don't want to. That's what downvotes exist for.
This attitude is empowering. It allows me, the author, to decide if I want to sacrifice readability to explain something.
 
4:56 PM
At Sp3000's request I'm kicking off the next challenge in parallel to the last one (which will need a few more days before being posted)
You can still join the discussion about the Data Structures challenge in the previous chatroom.
2
 
I imagine that by the time it is posted my star will have fallen off of the transcript
So I starred
 
5:20 PM
sings the song about falling stars
 
@Lembik the example of a shape that can't be made can be narrowed by 4 units (exactly the same shape - just remove a 4 unit wide strip from the middle). That brings the shape down to a length of 40. Any further narrowing allows the shape to be unfolded.
I'm not aware of a shape shorter than 40 that cannot be unfolded, which means so far the first number for which I'm confident your sequence will diverge from OEIS is 40. My code runs out of memory on my machine at 17...
I don't have a proof that 40 is the shortest un-unfoldable shape - I'd like to hear from anyone who can either prove this or provide a counter-example
 
@trichoplax maybe if you make it narrower but add one more turn at the ends?
 
@trichoplax snake 101012211211121112121 if i didnt messed up, length 22
 
5:38 PM
@randomra I believe that can be converted to other shapes. I don't have an immediate example but my code is taking a while on it so it doesn't look like it is isolated (or else it highlights another bug in my code...)
 
@trichoplax right, i messed up, its openable
will correct it, i think it will be still under 40, probably under 30
 
@randomra Anything under 40 will be great. I'm going to adjust the code so it can give the shapes reachable in one step rather than freezing up trying to look for everything. Then I can test any further suggestions plus @MartinBüttner's suggestion
 
@trichoplax snake 10101221121112111121211 length 24
 
0
Q: Random Golf of the Day #2: Numbers from a Normal Distribution

Martin BüttnerAbout the Series First off, you may treat this like any other code golf challenge, and answer it without worrying about the series at all. However, there is a leaderboard across all challenges. You can find the leaderboard along with some more information about the series in the first post. Hol...

 
it shouldn't be movable at all
 
5:51 PM
@randomra not looking good.... I'll let you know once I can test single steps
 
now i miswritten it...
snake 1010112211121112111121211 length 26
 
@randomra We can use the existing function neighbours(snake, excluded) to give the immediate neighbours (just leave excluded as () ). Using this, your example has 4 neighbours (reachable with a single bend)
(1, 0, 1, 0, 1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 0, 1, 1, 2, 1, 2, 1, 1)
(1, 0, 1, 0, 1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 0, 1, 2, 1, 2, 1, 1)
(1, 0, 1, 0, 1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 0, 2, 1, 2, 1, 1)
Sorry, 3 neighbours...
 
@trichoplax thx, will use that
i didnt checked bending straight joints...
 
6:35 PM
@Rainbolt @Geobits would one of you kindly be able to verify the Java submission to the normal distribution?
 
If you mention someone in a sentence and put 's after their name, do they still get a ping? Just curious...
 
@trichoplax's Does this work?
 
@Martin Doesn't seem to work on ideone.
 
yeah, something's fishy
 
Just plays the batman intro.
Even if it came out with numbers, the format would be strange. Using print() instead of println() with no separator.
 
6:44 PM
the main problem is the log1p I think. it makes the argument to sqrt negative
nice, the cross-challenge leaderboard works
 
@ProgramFOX It does! Thank you :)
 
no problem
 
@trichoplaxfoo does it work if I write something that's not punctuation after your name? ;)
 
@MartinBüttner Nope
 
6:52 PM
@MartinBüttner_test how about this?
 
nah
@trichoplax1 ?
 
@Mar's this?
 
@MartinBüttner No
 
@̡̺̟̹̙̹͎̹̪̟͚̒́͒̀̏ͥ̔̄̂͐ͧ̉ͤ̂ͤ́M̵̷̤͇̺̭̟̣̳͉̭͙̙͋ͧ̎̓̓̇ͭͮ̒̌̽̈̽̐̔̏̒̀̀̀͡â̴̅̈́͛́̒ͤ͌ͮ̌ͯ̈́ͤ͘͝‌​̖̺̬͚͇̩r̢͔̟̦͎͙͔̭̞͕̟͈͈̻̲ͯ̐̈̾̄̒͊ͮt̷̷̜̲͎͚̙̟͕͖̝͙͖̜͉͇̄̀̿ͫ̒́͡͠ͅi̢̦̘̳̺̳͚̗͉̲͂́̐̀͊̅̎͝nͦ̇ͪ͗̾‌​̢̨̲̳͙̹̫̙̩̮̫̬ͥͭ̔̃̏ͫ͐ͦͯͮ͛͘͠ This works though, I think.
 
6:52 PM
I'm pretty sure they just regex it with \b
@ProgramFOX it does, but it's not highlighted
 
I don't have sound at the moment so I've just been going by whether it's highlighted and gives me a number on my icon
 
ProgramFOX's post did give me a number on the avatar, but the name isn't highlighted in the message
 
@trichoplax oh ! So the same shape with 4 along the top can be unfolded?
 
7:09 PM
@Lembik Yes anything shorter can be unfolder by bending one of the top row
The inside line just misses the row below it if you choose a pivot far enough to the left
You can use the function neighbours(snake, () ) to give the immediate (one bend) neighbours of any given shape
Its because 2 lots of sqrt(2) are just shorter than 3
 
thanks
that's my mistake!
 
So a joint 2 up and 2 right from the end point allows it to swing without touching the row below
I'll edit the answer to mention the neighbours function in case it helps someone find a smaller example
 
7:33 PM
@trichoplax snake 11110101122111211121111112121111 has 0 neighbors but I can't find a way to check if it intersects itself
(in theory it shouldnt)
 
@MartinBüttner Did Geobits satisfy or do you still need me?
 
@randomra Sounds like I need to make that visualisation... :)
 
I always satisfy >_>
3
 
@Rainbolt Geobits satisfied all my needs.
 
@trichoplax your code doesnt have that feature right?
 
7:34 PM
Although for now I can just draw it out...
 
@Rainbolt @Geobits you guys are welcome to do another Java Golf-Off though ;)
 
@randomra That's the next feature - the comment voting indicates a demand for it so I'm working on it
 
A quick look told me TheBestOne would be hard to beat on that one. It's 30-40 better than what I had.
 
subclassing Random was pretty clever
 
Yea, I thought so too.
 
7:38 PM
It comes more quickly to Java programmers. In C#, I think you use or manipulate threads. In Java, you are a thread.
 
I can get 200 using a different calculation method, but that's about it. That's even after stealing the extendoRandom bit :)
 
@Geobits Have you studied TheBestOne's answer?
 
Yea. It'll be hard to beat.
I'm probably going to post something later on, just to have something for hole 2, but I doubt it'll beat his.
 
Why does he loop from s=0 to n? Could he just loop from n to 0?
That way he doesn't have to reset s
 
Yea, that's why I added my comment about it. It doesn't serve a purpose I can see (and it works when modified).
 
7:50 PM
In other words:
        for(s=0;s++<n;System.out.println(Math.sqrt(-2*Math.log(nextDouble()))*Math.cos(2*Math.PI*nextDouble()))); // HIS
        for(;n-->0;System.out.println(Math.sqrt(-2*Math.log(nextDouble()))*Math.cos(2*Math.PI*nextDouble()))); // MINE
Oh ok
I missed your comment
I wonder how important it is to use exactly PI
as opposed to 3.14 , 3.1, or just 3
 
Probably pretty important :D
 
Well obviously Math.PI isn't exactly PI
 
Sure, but I'd expect it to need more than 4-5 digits of accuracy.
 
Why?
If I had to throw out a random guess I would say that you are probably right. But it might be worth understanding why to see if you can shave characters
 
> the algorithm you choose must yield a theoretically exact normal distribution (barring limitations of the underlying PRNG or limited-precision data types).
So I guess I'd say that chopping precision off (that's not due to the type limitations) wouldn't be kosher.
 
7:56 PM
Oh, I expected the challenge to set a threshold.
 
"Your implementation should use and return either floating-point numbers (at least 32 bits wide) or fixed-point numbers (at least 24 bits wide) and all arithmetic operations should make use of the full width of the chosen type."
should I include "constants" along with "operations"?
 
You are trying to define the "how".
I expected the challenge to set a threshold for the final product.
 
Nah, I'm pretty sure PI is legally 3 in some places (or was attempted to be made legal, anyway) ;)
 
@Rainbolt I talked to Peter about this, and his suggestion was to just make sure people use the necessary precision instead of starting to analyse each output with higher-order statistical features of the result to make sure they really are normal distributions as N -> ∞.
 
It seems like less work for the challenge author to say "If I run you X times, your distribution must look like Y with Z percent tolerance." where Z is a function of X.
 
8:00 PM
the tricky thing in that definition is "must look like"
 
Y is a function, not a shape that you are following with your eyeballs
You know what a perfect distribution looks like. You know that their distribution looks like. How hard is it to produce a number that describes the difference?
 
how do you define a continuous distribution/probability density from a finite sample? (I'm sure it's possible)
 
@MartinBüttner kernel density estimation?
 
anyway, I just went with Peter's suggestion here: chat.stackexchange.com/transcript/message/19901445#19901445 ... it seemed reasonable to me, and I'm not going to change it now. I might think about a different measure if I do a similar challenge again.
@Lembik yeah, looks like that might have worked. I'm not seeing how this would make the spec any clearer.
 
@MartinBüttner did you mean to reply to me? If so, I can't remember what we were talking about! sorry
 
8:05 PM
are you kidding me? :D
 
Maybe it is hard. Seems like you have to run multiple tests instead of just one
 
@MartinBüttner Oh I see... sorry :)
 
Charmaine recommended the following list of tests from the NIST suite for use on RANDOM.ORG:

Frequency Test: Monobit
Frequency Test: Block
Runs Test
Test for the Longest Runs of Ones in a Block
Binary Matrix Rank Test
Discrete Fourier Transform (Spectral Test)
Non-Overlapping Template Matching Test
Overlapping Template Matching Test
Maurer's Universal Statistical Test
Linear Complexity Test
Serial Test
Approximate Entropy Test
Cumulative Sums Test
Random Excursions Test
Random Excursions Variant Test
^ Get to it Martin.
 
alright, give me 4 minutes
 
I have an ice cold caffeinated beverage sitting in my somewhat cold car maybe 80 yards away. What a waste :(
 
8:12 PM
can't TheBestOne stuff the super(s) into the for initialiser now?
 
No, it complains that it isn't "the first statement", even though it (kinda) is.
 
Java is a bit funny about calls to superconstructors. Interestingly, the bytecode verifier is a bit more lax.
 
8:27 PM
@Rainbolt cold tea/coffee with lemon is fantastic
 
Who ruins perfectly good tea with lemon? (no offense melon/lemon)
 
I certainly do, can't stand milk
 
Tea doesn't really need milk either... it's just tea.
 
indeed, one day I was ordering Tea in a Cafe place, and when the guy asked if I wanted milk, I thought he meant more milk that normal, because I'm cultured and all, so I said "no thank you", and I got a Tea without milk
duly, I didn't explain the error, because I'm not like that, and I enjoyed a Tea without milk, and I have never looked back
except now I don't drink any hot beverages, because I don't drink anything except water with or without lemon
 
It depends on the tea.
 
8:31 PM
this is true.
 
Don't get me wrong, tea w/milk isn't terrible (like lemon), but it's definitely a take it or leave it for me.
 
I wouldn't dream of putting anything into a lightly fermented Chinese tea, or even an oolong, but a builder's brew can be quite bitter without something to bind the tannins.
 
Coffee, on the other hand, I ruin. Heavy cream and sugar all the way :D
 
Ugh. You probably think that Starbucks sells coffee :P
 
Sugar! Dreadful stuff
 
8:35 PM
Starbucks sells coffee-related drinks... I do like "good" coffee, just not black. It's probably a waste of money :P
Kinda like Kraft is kinda-cheese, Starbucks is kinda-coffee ;)
 
The way I see it, Starbuck's main business is selling milk.
 
Hot frothy milk at that. So mostly air ;)
 
majority is arguably plastic (or whatever the cups are made of .. thermocol ? )
 
@Geobits reminds me of this amazon review
 
Aww, they never put my cans of air in bags of air. They just put it in a box of air along with other bags of air.
Need 34 more rep on Skeptics to see vote counts... Must find unanswered question...
 
8:49 PM
@VisualMelon I was thinking more like Dr. Pepper. I am not a sophisticate.
I'm wearing a Mr. Pibb t-shirt because today is casual Friday (woohoo!)
 
Wearing a Pibb shirt and dreaming of Pepper? Blasphemy :P
 
9:28 PM
I said FidBit like five times in front of a customer today and my team finally told me afterwards that it's FitBit
@Geobids Id's embarassing
 
9:41 PM
@Geobits I like how two people upvoted my "+1" comment on your answer, and but no one else upvoted your answer -.-
@Rainbolt I'm not sure I'd hear the difference
 
10:03 PM
another 100% awesome answer to add to a long list of PPCG answers at codegolf.stackexchange.com/a/45426/9206
2
for those who are PPCG fans :)
 
 
2 hours later…
11:50 PM
def h(l):
 exec("l+='b'")
 return l

print(h('a'))
This prints a.
I assume this is some issue with scope that causes only an inner copy of l to update?
(Python 3)
 
what happens if you do print l inside h?
 

« first day (1469 days earlier)      last day (3359 days later) »