« first day (1784 days earlier)      last day (3356 days later) » 

06:01
Every time I refresh, the "hats are fun" post has one less star
anyone here familiar with formal parsing theory?
neup, not me
06:18
I've heard the term before now
Ruby:
 > 4/10
 => 0
what
Try 4./10 or 4/10..
0
A: Sandbox for Proposed Challenges

Downgoat Sandbox Note: Haven't thought of a title In this challenge, you will be writing programs that when directly appended to the previous program, will output the associated number, if that program is run directly, it should output the next program in the sequence Example Let's say my programs ...

I love how well all these hats work with my profile pic
me too
06:33
And then look at mine...
This is the best fitting hat I could find
Check out my hat - I think it fits well.
...fucking showoff
@isaac I also had that one, then the Star Wars one and now this.
I was more talking about the fact that most hats don't fit well on nebulae.
I decided not to do it in the end
but I could
06:38
I wouldn't have expected @isaac to work, but it looks like it does. @Pietu
There was some discussion about this at some point. @isaa
Got both
You think putting a hat on a nebula is hard? Try putting a hat on a platypus with only 1 visible eye
(ignore this)
2
A: Russian Roulette, Reloaded

isaacgPyth, 23 bytes VO6"*click*" w;"*BANG!* Really simple. A random number of iterations 0 - 5 display click and request a line of input, followed by a bang at the end.

+3 bytes yeeeeeees
If only I had remembered to commit when I was done, I could have beaten pyth...
06:55
@Cyoce perry?
platypus + hat has to be perry (en.wikipedia.org/wiki/Perry_the_Platypus)
not necessarily
that is an unfortunate stereotype which is resented in the platypus community.
Voting to close as because it does not have a hat...
06:58
...still no hat
It doesn't need a hat.
That's the only picture here without a hat
(hmmm... still experimenting with the input box...)
I'm not a great mousepusher and browserklicker
more used to weechat and other stuff running in xterm+screen
07:04
xD
well done
/me always feels like having 4 left thumbs when forced to GUI stuff
lol
Git GUI
/me shiver
What on earth is that
07:29
darkness fades away... time to get horizontal... _o/"
 
1 hour later…
08:42
@Pietu1998 it's a meta-level-9 generator function
09:24
Atom has git integration!
git-plus
 
2 hours later…
11:05
1
Q: Tips for golfing in Prolog

FatalizeWhat general tips do you have for golfing in Prolog? I am looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Prolog (e.g. one letter variables is not specific to Prolog to reduce the size of programs). Please indicate in your tips if it...

 
1 hour later…
12:06
only about 400 stars remaining
star(t) all the things
3
Q: How much presents did you get for Christmas?

Stewie GriffinLet's assume Christmas is over. Yes, how much, not how many... As we all know, a large present is far better than a small one. Therefore, the value of the presents should always be measured in total volume, not number of presents, weight or even combined price. As it's frowned upon to compa...

It's interesting how no matter how quiet the chat itself is, there are always PPCG people working on questions somewhere (see above). Warms my heart a bit that PPCG is always there to respond to a question no matter what time it is or how dumb the question is.
3
12:22
@Sherlock9 free time well spent
Hello CS and Sherlock
Hello @AndréMuta
12:47
0
Q: Please parse this aLL1en language

SztupYDue to some unfortunate accident during coding you are now teleported and stranded on an alien planet. You really hope that the locals will be helpful and point to the general direction of how to get home, but before trying to talk to them you want to decipher their language. Fortunately it looks...

I have a puzzle in my mind but I have no idea how to formulate the math of it.
Its a mix of probability and geometry, most geometry I think.
Can someone help me?
Start explaining it and we'll see what we can do?
Okay
Suppose I have a 10x10 area
You will get an input of (xy, r, r2)
xy are cordinates of a circle of radious r
What is the probability that a circle of radius r2 in a random coordinate overlaps the first circle
What should be the output
At first I thought it wouldnt be so hard but now I have no idea how to calculate it
oh, and the circles will always be inside the area
13:12
First, what do you mean by coordinates of a circle? It's center?
yeah, the where the center lies on the area
So x,y for the center of the first circle and radius r1 for the first circle and radius r2 for the second circle?
for the randomly centered circle, in what range can it be in?
Ok second, what area? Is it the infinite plane? Some small region? Can you be more specific?
13:13
@AndréMuta The probability of an overlap is the same as the probability of the second point lying within a circle of size r1+r2 centered on the first point
because if its in R ^2 the probability is 0
@Sherlock9 10x10 area, he already said
suppose the area is a 1x1 square
@isaacg Oop sorry.
and the two circles will be inside it
13:14
ah ok
will the entire second circle be inside it, or just the center
what about the first circle
What will be more simple?
Just the center?
Or just some overlap between the circles?
What do you mean Sherlock?
hi all
13:17
Well, Maltysen asked if the entire second circle should be inside it, just the center or, as you originally stated, that the second circle "overlaps the first circle"
Hello Lembik
@Sherlock9 no I meant inside the 10x10 square
Oh whoops
Let it be entirely
Both will lie entirely inside the square
kk
are these ints or floats?
Floats
13:19
so a solution to this would simply be: pi*(r1+r2)^2/100
Damn, I knew there must have been a simple equation for that
So it is no challenge at all
did I do that right? I think it should just be that
Wait
Suppose the first circle have 5 of radius
0
A: Sandbox for Proposed Challenges

Martin BüttnerConvert to the xkcd date format code-golfdateascii-art In his xkcd about the ISO 8601 standard date format Randall snuck in a rather curious alternative notation: The large numbers are all the digits that appear in the current date, and the small numbers are 1-based indices of the occurrence...

I am not sure Maltysen, the equation is pi*((ri+r2)^2)/100?
Nevermind, it seems right
Thank you
13:34
0
Q: Caesar Shift Catalog

muddyfishA Caesar shift is probably something we're all familiar with. (You might be even doing it as a homework task. If so, please don't copy these answers, your teacher almost certainly doesn't want anything like the answers here.) Just in case you aren't, a Caesar shift is a very simple form of cip...

But can you do me a brief explain of this formula Maltysen?
What would be truthy and falsey values in Marbelous?
0
A: 1/N probability (Simple)

overactorMarbelous, 21 bytes }0 # takes one input n -- # decrements n ?? # random value from range 0..n (inclusive) =0?0 # push right if not equal to 0, fall through otherwise | convert to zero ++ # increment | no-op {0// # output | push left I've taken 0 to be falsey and 1 to be truthy, ...

14:29
0
A: Sandbox for Proposed Challenges

SuperJedi224Inverse Champernowne Substrings The Champernowne Constant is the irrational number 0.1234567891011... extending ad infinum. We've done a question about it before. But this question is about its reciprocal, known as the Inverse Champernowne Constant. This is approximately 8.10000007. Given a ...

14:40
0
A: Sandbox for Proposed Challenges

EumelI was thinking about a challenge on wrapping time. I am a member here for 33 days now. I would have expected for the date to wrap to 1 month. The challenge would be to write a code to do that, given a joining date. Round to the nearest full unit. Example: In: 2015-12-10 Out: 8 Days In: 2015-...

@StewieGriffin You know, the title of your latest challenge is making my inner grammar pedant really yell at me, no matter how many times I tell myself it's technically not wrong. :P
(well, I guess it should be "how much present"...)
@Doorknob冰 I'm not sure it matters much, at present
That's a stretch ;)
XD I know
14:57
  o  - pretend to optimize your code, but actually introduce bugs
thanks Perl >_<
15:10
There's a variable in this code called "_writeSemahore"
So my coworker refactors the code and that field gets absorbed by the public field that it was backing
Now it's a public field called WriteSemahore
You'd think that while he was refactoring that he might have corrected the spelling...
*WriteSemawhore
Writes-him-a-whore
@Dennis Oh, OK. I'll correct it now. (On the bright side I think this is the second-shortest non-esoteric answer) — ASCIIThenANSI 20 hours ago
@Rainbolt We've suddenly entered a Nora Roberts novel ...
@Dennis That's pretty funny.
I just posted my last answer required for gold [code-golf]. \o/
15:25
Oh dear lord, why would someone do such a thing ... esolangs.org/wiki/C%2B
@Doorknob冰 Do you still get gold even if we downvote it?
@Rainbolt Unless you manage to downvote it 400 times, yes
Geobits we need you
user image
7
\o/ \o/ \o/
@Doorknob冰 clicks furiously
15:28
@Doorknob冰 Congrats!
@Doorknob冰 wooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​o
Gratz!
Wooo first Darkness answer
Yo guys, can I has some feeback? meta.codegolf.stackexchange.com/a/7754
I will try to finish it later
Link no work
Link work now.
15:44
grumble grumble how am I supposed to vote on questions with no votes left
:D
oh wait, you don't have to print stuff?
btw, that language is fantastic @sweerpotato :D
any hats today?
@Doorknob冰 ¯\_(ಠ_ಠ)_/¯
@Doorknob冰 Thank you!
Still working on it
I need a system for if-clauses
15:47
0
A: Sandbox for Proposed Challenges

André MutaRandom Walk Printer Draw a program that will write to STDOUT every m miliseconds and n times a string that contains a dot . at the location of the walker. A random walk is a mathematical formalization of a path that consists of a succession of random steps (wiki), such that every new step will ...

0
Q: Create a compiler for "Counter"

ghosts_in_the_code"Counter" is a language I've created for the purpose of this question. Rules Commands are read from left to right from the first character. A program is written in exactly one line. Data is stored in counters. At the start, there is exactly one counter. More can be created and deleted. A count...

@Doorknob冰, hehehe =) I guess a few people have looked at only the title and thought... "I have to correct that immediately! How is it that no one has done it yet??" =P
@StewieGriffin That's what I immediately thought when I first saw it :)
@StewieGriffin I don't know if I interpreted your precision requirement correctly. The highest radius with an output below 1e5 is 13, so I assumed that 13³ times the absolute difference between my constant and the real value must be smaller than 0.005? 1. Is that what you had in mind? 2. Could you simply specify a maximal absolute difference for the Pi constant to make the rules easier to understand?
16:07
@Dennis, yes, that was what I had in mind. I won't be in front of a computer until tomorrow so I can't change the question text myself ATM (I'm quite sure I'll screw it up somehow).
0
Q: "Daily vote limit reached. Please go vote more!"

Doorknob 冰I just voted on an answer and got this: Daily vote limit reached; vote again in 8 hours. You haven't voted on questions in a while; questions need votes too! The idea of the message itself makes sense (putting aside the fact that by the very nature of the Programming Puzzles & Cod...

/me shamelessly plugs PPCG
@Dennis, I think you understand it correctly. If you want to, you may edit the challenge to make it more clear for others... :)
@StewieGriffin OK, since 4 / 3 * 13 ** 3 * 0.000001707 = 0.0050004, the error in the Pi constant should be lower than 0.000001707, and an error in a 4Pi/3 constant should be lower than 0.000002276. If you confirm that, I'll edit it into the challenge.
I'm pretty sure there's a 2 byte solution to the simple 1/N probability question.
@Doorknob冰 ಠ_ಠ
16:18
I think APL always had changeable index origin, and I read on Wikipedia that some old dialect used monadic ~ for logical NOT.
So zero-based ~? would work on that hypothetical dialect, if it atops.
If there's a one-based APL that hooks, then =? would work.
=? would work in old versions of ngn, which still used hooks. Sadly, ngn has IO 0.
Hi guys, I'm back with my Sandbox challenge.
-2
A: Sandbox for Proposed Challenges

ASCIIThenANSIBroken FizzBuzz - Greg Is Confused underhanded popularity-contest (FizzBuzz suggested by quartata in chat) Meet Greg. Greg is a programmer. He deals with checking programs to see if they work. If they don't, he tries to find why. Greg is rather new to programming and understands the basics, bu...

@ThomasKwa =? looks like a very confused smiley.
I personally think it's ready, but I want some other input since it had some problems previously.
just to follow up my story from yesterday, it seems like Avira did all the weird stuff on the PC as pushing it's product
16:31
@randomra That's probably not intentional, just buggy adware. ;)
@Dennis yeah, probably that is the case
I'm not a big fan of anti-malware software any way. It has done more harm than good on my computers.
I mean, I wouldn't recommend my mom to uninstall her virus scanner, but some computer knowledge plus the necessary precautions work better that any virus scanner possible could.
16:58
You guys think it is good to go?
0
A: Sandbox for Proposed Challenges

André MutaRandom Walk Printer Draw a program that will write to STDOUT every m miliseconds and n times a string that contains a dot . at the location of the walker. A random walk is a mathematical formalization of a path that consists of a succession of random steps (wiki), such that every new step will ...

@AndréMuta every "m milliseconds" is not really easy for some OSes
@Cyoce It's a viscous cycle!
What should be more okay?
one line per second?
roughly?
every s seconds will be
17:07
and not insisting in hyper-exact timing...
every s seconds as integer or float
nevermind the float
x ; sleep 1 ; y will not really make the start of x be 1 second before the start of y
you would need to take the duration of x into account and that blows up the code in an uninteresting detail...
I would suggest that repeated digits are placed next to each other with no spaces and that the space between digits is (highest number of digits on top or bottom) + 1. I also think the idea of a related compainion challenge would be good. — ASCIIThenANSI 2 mins ago
^ any opinions on this? actually sounds like quite a good option to me.
so allowing 1 line per second OR 1 second between the lines both should be ok
but the duration of the code should be negligible in my case doesn't it?
17:10
there always is someone who had exactness cookies for breakfast... endless discussions focussing on a minor detail...
@ASCIIThenANSI if I make the change you suggested I probably wouldn't even use the +1
   1423
01234568
657    8
2 3 1 4
0 1 2 3 7
5   67  8
" The program also need to wait ´s` seconds after line." @yeti
@AndréMuta I'd allow both: a line every s seconds or s seconds between lines. better ask others too...
Just sent it to main
0
Q: The Random Walker Printer

André MutaDraw a program that will write to STDOUT n times a string that contains a dot . at the location of the walker. The program also needs to write a line every s seconds (or wait s seconds after each line). A random walk is a mathematical formalization of a path that consists of a succession of rand...

17:24
@MartinBüttner The reason the +1 is there is so it looks clearer.
@AndréMuta there still is a reference to m milliseconds
(-: afk 4 food ;-)
@yeti fixed
\o/
@ASCIIThenANSI hm yeah, it's actually not too bad. and the 2222-11-11 test case is bound to look odd anyway.
17:53
Hello
@flawr ಠ_ಠ
I must have called a thousand times
@SuperJedi224 Better now?
> to tell you I'm sorry, for pulling off that joke
17:57
remove the quote]
Why?
if I have two whole numbers x and y and x is chosen from one range and y from a non-overlapping range
and I give you x+ y.. what can you tell me about x and y?
this simple question is confusing me
Are they randomly chosen?
@AndréMuta yes
say x is from 1 to 1000 and y is from 2000 to 3000
18:02
what I really want know is how much you can tell me about x and y depending on what ranges they are chosen from
The best I can come up with is that is they are uniformely distributed
their sum will be normaly distributed
@Lembik x + y will always be greater than 2001 and never greater than 4000 (assuming those ranges and not any others)
If the sum is odd, then exactly one of x and y is odd.
@AndréMuta I don't think it's uniform, there's only one way to get 4000 (3000 + 1000), but plenty of ways to get 2050 (50 + 2000, 49 + 2001, etc.)
That is what I meant
The sum is normaly distributed
@AndréMuta No, it isn't.
It's no more normal than a roll of two dice.
Let A be 1000 random (uniform) picks from 1:1000 and B be 1000 random (uniform) picks from 1001:2000 then A+B is Normal
@SuperJedi224 Yeah, that's what I meant. I think the term is "binomial distribution".
No? :(
What does 'normal' mean in this case?
No not really.
A normal distribution has infinite support.
18:08
What is a infinite support?
A+B Is just going to be a triangle distribution
The support of a function is that part of the domain that will not be mapped to zero.
@AndréMuta its like Windows XP support
Well
That is true, sorry
Just tested it, shame on me
>> N = 1e5;
>> A = randi(1000,1,N);
>> B = randi(1000,1,N)+1000;
>> hist(A+B);
>> hist(A+B,100);
Almost a christmas tree.
you could get one by restricting the range a bit
18:11
@Cyoce What do you mean?
to get the right proportions
If you scale down the X-axis
s
The mean of the samples will be normaly distributed?
nooooo
I quit, hahaha
yes my message is back on the board
18:14
@flawr What are you using to make that graph?
@AndréMuta Nope, the mean will also not be outside of the given range.
@ASCIIThenANSI Matlab.
user image
4
that'll work too
Anonymous
Just gonna drop this here
Anonymous
user image
5
18:17
hey martin
Yay
Yeah, that was what I was thinking about
The mean of the samples of a uniformely distributed variable goes to normal
z <- sample(100000)
for(i in 1:1000){
k[i]=mean(sample(z,15))
}
hist(k, breaks=20)
@Cyoce who?
who ??
0
Q: LAN Party with Cross Cables

Compynerd255You decide to host a large LAN party at your college campus. However, instead of getting normal Ethernet cables and routers, the junkie that you put in charge of getting networking supplies decided to bring a bunch of Ethernet cross cables - i.e. they must be connected computer-to-computer. As yo...

18:22
@MartinBüttner martin, I think.
who ???
who's martin?
Knock Knock.
Martin Timberlake
18:22
@flawr a very bad movie?
/who \?+/
@Cyoce what about the space ??
What space
spaces won
spaaaaaaaaaaaace
I'm in space.
18:23
/spa+ce/
2
we all are
I find it very irritating that hats don't show up on the board on the right. Does anybody find it that way?
@RikerW A little, although some hats may block other people's icons/hats.
I know mine extends past the profile icon square.
Also, no hats on chat profiles.
@ASCIIThenANSI I am still sad though. :⊂
18:25
chat already has hat in it
@anOKsquirrel That's the last straw.
Doesn't Stack Exchange realize that hats are everything?
2
@anOKsquirrel I know, but i can still be dissapointed.
but then they just take the hats away every year
;-;
@anOKsquirrel Why isn't there a Summer Bash?
@ASCIIThenANSI I just want to keep the hats I got.
18:26
Did anybody else see when FlagAsSpam changed his pic to an old lady? Without the hat it was horrendous.
@anOKsquirrel Screenshot them. I did.
@RikerW ;-;
there has to be a better way
I love this wig!
See, proof.
:P
@anOKsquirrel Sue SE?
@RikerW Sounds great
@ASCIIThenANSI Correction: Stars are everything!
@Optimizer Lies! Upvotes are the true masters!
The only exception is John Skeet, he is the master of everything.
2
18:29
@ASCIIThenANSI What rubbish?? Everyone knows that Flags are the true masters!
@flawr thanks! I should draw more pictures :)
@flawr is that in R?
matlab
@Mods - those were NOT spam stars!
stop misusing your powers
@Optimizer No, I removed them.
:P
you starred all of them?
18:34
Back now, since apparently you missed the,.
@Optimizer Yep.
well, now you are spam starring :P
There, 3. That is enough.
Something interesting I found you can do in Perl:
0
A: Tips for golfing in Perl?

ASCIIThenANSIUse select(undef,undef,undef,$timeout) instead of Time::HiRes (Taken from http://stackoverflow.com/a/896928/4739548) Many challenges require you to sleep with greater precision than integers. select()'s timeout argument can do just that. select($u,$u,$u,0.1) is much more efficient than: imp...

For what type of applications is Perl usualy used?
18:37
jewelry
10
lol
@flawr I didn't know people still used matlab ;)
@Lembik That's mandatory in many research teams (as well as R).
@mınxomaτ that's a shame. I would like to see almost all of those teams move to python+R
it's a very small subset that actually need the proprietary matlab toolboxes imho
Yeah, but there is no reason to switch at all.
18:53
well there is!
matlab is not free
universities pay a lot of money for the licenses
The few licenses needed are curated by the local government programs.
@mınxomaτ which country?
and students know python already
I'm glad they agree on a few languages. Recommend a new language to a research team and all hell breaks loose.
@Lembik Germany.
@mınxomaτ interesting.. someone somewhere is paying for this :)
in costs of licenses and extra costs of hiring
also.. matlab questions aren't so easily answered on *.se :)
So what? The algorithms exist in those languages, why port it when everything works. I worked two years in Bioinformatics research. There is an incredible amount of proprietary algorithms and languages in this field (by the way, it doesn't matter what the student know, the research institutes that provide the data determine what you have to use). Eventually we agreed that every team member could write anything in any language they want, as long as it runs on the server.
But if you have to write the paper, you'll have to provide R (or Matlab) implementations.

« first day (1784 days earlier)      last day (3356 days later) »