« first day (1626 days earlier)      last day (3224 days later) » 
02:00 - 21:0021:00 - 00:00

2:08 AM
@trichoplax Hmm that's a shame - it seemed like an interesting approach
 
3:07 AM
@Dennis Alright, I took a shot at writing an explanation for my answer. Let me know if it got clearer :)
 
3:37 AM
@BrainSteel Perfectly clear now. Thanks!
 
3:58 AM
0
Q: Fill in the Number Blanks

RyanYou are given a list of 2-tuples of positive integers, of the form: a1 b1, a2 b2, ..., an bn In other words, the 2-tuples are comma-separated, and the integers within each tuple are space-separated. All of the a numbers are in strictly increasing order, as well as the bs. Your goal is to "fill ...

 
 
1 hour later…
5:09 AM
@Sp3000 Even though it wasn't quick enough to beat the bounty deadline, maybe it will keep increasing given enough time...
 
5:44 AM
On the other hand, maybe it's like the boggle board packing challenge, where thinking didn't help anyone, and the winning strategy was to randomly slap things onto the grid
 
Trying to port to C but for some reason
#define SIZE 619
int main() { int grid[SIZE*SIZE] = {0}; int dists[SIZE*SIZE] = {0};	return 0; }
is giving me a segfault o_O
 
6:16 AM
@Sp3000 You're not the only one - maybe it's something about my challenge...
Jul 5 at 20:20, by aditsu
yay, segfault with no stack trace... the joys of C++ :)
 
A little research says it may be because the stack size isn't very large
malloc works fine though
 
6:56 AM
Hmm nvm this isn't going to work
 
default stack size is ~1MB usually
you shouldn't make giant stack allocations
 
Ah, k - I thought it'd be larger than that but I guess not
 
make grid global or use int* grid = new int[SIZE*SIZE]
 
 
1 hour later…
8:04 AM
hi
have there been any challenges about converting problems to instances of SAT?
 
8:34 AM
everyone asleep? :)
 
yes
 
@Optimizer me too :)
 
cool, now stop invading my dream
 
8:51 AM
you invited me! :)
 
 
2 hours later…
10:33 AM
0
A: Sandbox for Proposed Challenges

Jan Dvorakroll me back a game of hearts code-golf card-games Roll me back a game of hearts given just a deck of cards please. So, I've been playing a game of hearts (https://en.wikipedia.org/wiki/Hearts) with three of my friends but I'm not entirely sure if all of them were playing perfectly according t...

 
 
1 hour later…
11:55 AM
hi all
 
hello
 
 
1 hour later…
1:25 PM
0
Q: all non-empty sublists of a list

mescalinumI had to write a code for finding all non-empty sublists of a list: def sublists(s): if s: for j in range(1, len(s)+1): for p in sublists(s[j:]): yield [s[:j]] + p else: yield [] I managed to shorten it (for Python 3.4+) to: def sublists(s, ...

 
1:37 PM
@Vioz- I'm waiting for OP to clarify the input/output format before I post mine :P (it's annoying, isn't it?)
 
Yes, very annoying :P
 
For starters, if you insert a tuple you can do "%d %d"%x I think
 
That gave me a much better idea :P
I don't know why I assumed I had to modify the existing list
 
:P
 
1:58 PM
Surely you can come up with a way that won't need two print statements? ;)
(I'm assuming it's possible somehow)
 
I believe I can
 
fly
@Sp3000 I bet if you put in your question, you will get lots of answers :P
 
Heh. As much as I'd like to, the title's actually parsed "(check over) hand values", rather than "check (over hand) values" :P
 
I think changing of the way the title is parsed is also overhanded
 
2:15 PM
I was wondering... have there been any challenges about converting problems to instances of SAT?
and might that interest anyone?
 
I only found these two SAT-related challenges so I'm don't think it's been done before
 
2:30 PM
"It has to be in the same format as given above." ouch
 
@Lembik I think it sounds interesting... I've wondered how that stuff about proving equivalence of the NP-complete problems worked
 
3:27 PM
hahahahahhaha Project Euler has been making a big deal of how secure they are being now, but they don't seem to be doing so well at it...
I just recovered my password using this procedure
My account was registered under email A, and I sent the recovery request with email B
And they sent the new password to email B!
 
> The email you send will go to one member of the team (euler) who will compare the address you provide in the body of the email with an archive of the Project Euler database which is located only on his local machine.
^ Sounds like that might not be entirely truthful...
Also, a terrible process all around IMO, but that's something else...
 
@Geobits which part do you suspect is untruthful?
 
Its all overhanded
 
@Optimizer you clearly really want this tag to exist :P
 
Maybe I'm misreading, but you sent an email from a totally different account than the one registered, and they sent your new password to it?
 
3:39 PM
@feersum haha, "underhanded underhanded overhand shuffle", reminds me of a Penn & Teller video
let me see if I can find it..
 
man, they stopped making penn and teller series
where magicians challenge them
 
I correctly identified the email with which the account was registered in the body of the message
But this would allow an account to be taken over by knowing only username and email, which are not in general private
 
Ah... so they're not lying, just terribly insecure. Got it ;)
 
@feersum youtube.com/watch?v=TgtgOs_OkTU (one of the few instances when Teller speaks)
 
@feersum Now that this is public knowledge someone should probably tell them so they can fix this behaviour...
 
3:43 PM
@aditsu wow. how did he do that
 
It was @feersum's brilliant plan to leak this news to the whole internet... via a small programming puzzle forum...
 
How dare you call it a forum? :P
 
@Optimizer what, how did Teller speak? or how did the other magician do fake sleights?
 
the first slight was real
its clearly visible in the video.
the only plausible reasoning is that he had 2 balls.
 
I think he dropped it back before covering it
slow down the video
 
3:49 PM
ah yeah
 
@Optimizer well, he probably does have 2 balls, but that's irrelevant.. wait, what are we talking about?
 
I sent PE a reply pointing out the potential flaw in their procedures, so hopefully you don't have to :P
 
@Optimizer yeah, "fool us" was nice; I found another series called "wizard wars", it's different and not as good, but still fun
and speaking of cups and balls (and a little bit related to "wizard wars"), I also want to mention this clip: youtube.com/watch?v=pJN1iMOfgAc
it's quite amazing
 
does the table has holes?
 
haha, no, he's just really good
 
4:01 PM
he just vanished a ball from inside a glass tumbler without even moving it.
that is one heck of really
even if you see it frame by frame, the just appears inside.
while we are at magic. youtube.com/watch?v=IEJeV4xvg04
 
That clip reminds me that magicians often have the most insane facial expressions ever.
If I did that at work I'd either be fired or committed.
 
ughh.. ruining the mood, just because you wanted some stars...
 
Says the guy talking about balls :P
 
@Optimizer I need one of those hottie makers :p
 
But seriously, it's the first thing I notice when I see those acts. The over-the-top expressions kill the act for me. The Jason Latimer clip just exemplifies it.
 
4:08 PM
@aditsu maker :D
but yeah, it was really nice trick. The base is not big enough for 3 girls..
in that order
 
Nice. I like acts like that much better. Where the magician doesn't need to act constantly amazed at himself. Very nice flipbook deck, too :D
 
that is so good :)
 
the best part is that first and second are connected.
he is this year's runner up at BGT
lost to a dog
 
I like the lemon trick, but the first was better.
 
I think he shouldn't have done the invisible deck trick.. that kinda cheapened it for me
(um.. if you don't already know it, searching for info might ruin it for you :p)
 
4:24 PM
i don't/ so tell me the time and which one of the video
you are referring to
 
oh, you want to ruin the magic? :p
 
no, I want to know which part you are referring to as invisible deck trick
 
Second clip, 7D face down in deck.
 
yeah, 2nd clip, with Simon..
 
It's a beginner trick that kids often learn.
 
4:28 PM
I, too, did not like that trick.
 
it's quite impressive to people who don't know it
but trivial to magicians
 
Yeah, and that rubs me the wrong way... It makes me wonder if the rest of his tricks were as gimmicky.
 
so he somehow knew that he's gonna chose 7D ?
 
No.
 
the lemon trick is actually clear, how he did. But its the way he does and presentation
 
4:30 PM
Ah, darn, now I have to watch it again. I missed it.
 
Yea, I've seen the lemon trick before, but it's still good the way he does it.
 
these "card to impossible place" tricks have similar ideas, but each one may have different details about when and how the card ends up there
 
I've never seen it with a fruit before.
 
how to you justify the one where the guy has duct tape all over his mouth and card ends in his mouth
 
Penn and Teller made a mobile phone appear inside a fish :p
 
4:36 PM
@aditsu For good measure, I think it might be good to have a second example in overhanded shuffle where there's 0 cards implicitly placed on top at the end of a line
 
one of the test cases covers that
 
"second example" :P I dunno, might not be necessary to have another but it was something that broke one of my approaches
 
I may have had some poor judgment while trying out drawing a dragon curve using it's Lindenmayer system
This has been running for nearly 40 minutes..
 
I don't see any poor judgement...
 
Weird splotchy bit in the upper right?
 
4:40 PM
What input did you give it?
 
n = 16
 
@Sp3000 I could add 2 to the 2nd line in the example, what do you think?
 
Well there's your poor judgement :P
 
So approximately 196,000 moves
or 'actions'
@BrainSteel the weird blotch is the turtle
I did not have the foresight to realize I should have made it invisible.. oh well
 
@aditsu A single number sounds like a very good idea, I don't think you have that yet
 
4:41 PM
that's not what I said..
 
Oh... what did you mean? Sorry
@Vioz- Did you turn tracer off?
 
4 2 2 instead of 4 2
 
Nope :(
 
Oh that example, yeah that sounds good :)
Sorry for the demands
 
np
 
4:44 PM
(in case you were wondering, the idea was to replace newlines with " 52 ")
 
Finally finished :P
 
(edited)
 
How is it possible to take 40 minutes for only 2^16 segments?
 
Well, the L-system isn't perfect, it goes over a lot of lines that already exist
Coupled that with the fact that turtle, even at it's max speed, isn't very quick, and that my work computer is a dinosaur, makes it pretty slow
 
So Jamie's first 7H trick is also a popular trick ?
 
4:48 PM
@Sp3000 I don't know how that would help, but whatever
 
So that I didn't need to handle putting the rest of the hand on top separately
 
@Optimizer I don't think I've seen that before
 
@Vioz- tracer(n=1000) makes the drawing take only a few seconds :P
 
@Optimizer I think I understand how that one works, and my guess is that it is similar. I've never seen that particular trick before, though.
 
but the 7H was the last card he stopped at..
 
4:50 PM
there is a trick where the card appears drawn on your arm, not sure if it's related
 
its not same as invi card
 
0
A: Sandbox for Proposed Challenges

Beta DecayReturn of the 5318008 Introduction A week or so ago, I posted the challenge 5318008, with a massive reaction. Now, I want you to do the same again but with musical notes. Challenge Given a word list, you must output a list of words which can be formed using musical notes. However, the word mu...

 
@Sp3000 That just seems to crash the turtle window instantly, also is apparently deprecated :(
 
You're probably looking at 2.7 docs - it's not deprecated in Python 3 for some reason
 
Weird
Yep, just a few seconds.. my hardship was for nothing! :P
 
4:58 PM
If it makes you feel any better, it took me a week of messing around in turtle before I found out about tracer :P (I found speed pretty quickly, but that's still slow)
 
did martin post his "superinposing 7-segment digits" challenge?
or is deep into the sandbox where I can't find?
 
@randomra Found it. Wasn't too deep
"Abandoned for not being interesting enough... might rewrite it as a probability-theory challenge later."
 
5:16 PM
ok, I think I know how he did it, there's just one part they didn't show
it requires a little sleight of hand
also, you can buy the trick online :p
 
which one ?
 
the 7♥ one
 
oh. how?
 
if you really want to know.. it's called card-toon
 
but when did he do that sleight ?
 
5:24 PM
probably when the camera cut to Heidi
 
its BGT
not AGT
 
uh.. I'll call her Heidi anyway :D
 
@Sp3000 Thanks, my idea with that: given a number find the largest sum of digits if superimposing digits is also allowed, so e.g. 123 => 1&3 + 2 = 8 + 2 = 10
 
here's a demonstration (without reveal): penguinmagic.com/p/353 ; as you can see from the comment dates, it's not a new trick
he may have used a different method
 
@randomra Do you get to do 528 => 5&(2+8) => 5&10 => 90?
 
5:32 PM
0
A: Sandbox for Proposed Challenges

BrainSteelTranslate Treehugger to BrainF**k code-challenge (?) Overview This problem deals with two esoteric programming languages that I will briefly describe for completeness. Brainfuck is a language that has only 8 commands. Imagine a tape of values (generally 0-255) stretching infinitely to the rig...

 
I haven't thought about that, I thought to always start with the &'s
otherwise it might be a graph search which is not that interesting
 
@aditsu amanda or alesha
 
That's why I'm asking :P
 
@Sp3000 even if it has a simpler solution people might not care enough to find it as they don't know it exists
at least that's what I deducted from the 0 answers I received for this:
9
Q: Connecting Gaps with Tetris Pieces

randomraYou should write a program or function which given a list of tetris blocks as input outputs or returns the biggest gap between two points in the same height level which the pieces can connect. The 7 types of tetris pieces are the following: We will refer to these pieces by the letters I, J, L...

 
I think I had a WIP for that one but didn't try for too long because debugging was getting annoying
 
5:39 PM
@Sp3000 my reference code is 8 simple python lines
though I had another longer method to test if I did the math right with the short one
 
Maybe overthought it then, I dunno :P
 
6:37 PM
guys, someone just upvoted me .. I am so happyy
2 digits to 20K
 
Time to get out my (down)voting gloves.
 
Aren't you always wearing those gloves?
 
no, he is not wearing the gloves. The rest of the downvoting suit, yes, he is always wearing
 
No, they don't breathe very well so I don't wear them much in the summer. Still, the added wrist support is nice if I have to downvote someone massively. Otherwise my click-fatigue sets in.
Well of course I'm wearing the rest of the suit. That was a given.
 
6:53 PM
well, You could be in your pajamas, for all we know
 
Pajamas are for suckers.
 
or a nightgown
 
^ sounds more like a bits!
 
Nope, no nightgown either. I don't really see the point in clothes made for sleeping, tbh.
 
can you see the line ?
 
6:57 PM
More like a line segment, but yes.
 
'ok, that's a good start.
now try visualizing a circle in there
can you see it ?
 
In the line segment..? Not really sure how that works.
 
around it
 
Oh, then yes.
 
can you see another ?
 
6:59 PM
No, just the one you told me to visualize.
 
ok, visualize another
 
Got it.
 
good
 
Since codegolf.stackexchange.com/q/53027/194 still has only two close votes, I assume there must be a lot of people who understand what he's asking. Would one of them mind doing a major edit to make it clear in the question?
 
I think its quite clear from the two bullet points
not sure what you don't understand
 
7:03 PM
His comment replying to my comment did not clarify things at all.
 
I think the bullet points describe the problem incorrectly
You want "a[i]+0, a[i]+1, ..." not "a[i+0], a[i+1], ..."
Ah, someone edited it!
 
Thanks, Jimmy.
 
I really just: read the post, got confused, looked at the example, went "oh".
also, I'm really proud of my Haskell solution. ;v; it's pretty!
 
its like a crying bird
 
@randomra I heard your cry :p
 
7:22 PM
Would an L-system interpreter be too similar to this question? codegolf.stackexchange.com/questions/48697/…
 
@aditsu I felt good about myself that no one else found the simple solution :)
 
so, are you still feeling good?
 
the feeling never goes away :)
 
ok :) I wonder if it was similar to mine or something else
 
oh, just saw your submission, I would guess this is similar to my longer version
 
7:29 PM
huh, so there's a simpler one?
 
yep
does this try all orientation of all pieces? where each orientation is described with an y-dif, x-dif pair?
 
kind of... multiple pairs, and only one orientation for I
e.g. J can jump by (3 -1), (3 0), (2 0), (2 1) or (2 2)
 
why do you have only 1 orientation for I?
 
because I don't think a vertical I is ever useful
 
well, that is a start for the shorter solution
(I mean your observation)
 
7:36 PM
heh, got a new badge :p
 
@Mauris What is ;v;?
 
so.. I need more analysis
 
A smiley face! Well, a tears-of-joy-y face.
 
Okay, I see the semicolons as the crying eyes, but what's the v?
 
It's a happy mouth! Maybe ;u; is more obvious. Or ;â—¡;.
 
7:45 PM
The last one there is obvious to me.
 
@Mauris I was sure that v is a big nose
 
Haha
Also, @Mauris, did you draw your avatar?
 
A friend drew it for me! I like it.
 
Yeah, it's neat.
@randomra Seems like you've been bitten by the Retina bug. (Which I'm realizing now has a very different connotation in the context of programming, but I'll go with this outdated slang anyway.) Going to change your name to retinara?
 
By that logic, you should be Julia A., right? ;)
 
7:58 PM
@Geobits Oh I haven't done that yet? Brb
(Not actually going to--don't want a Maria Tidal Tug situation)
You'd be Javabits. Little bits of Java, like coffee grounds.
 
Sounds about right I guess. Better than Geojava for sure.
 
Way better.
When you grow up will you be Geobytes?
 
0
Q: Implement bzip2's run-length encoding

DennisBackground After applying the BWT (as seen in Burrows, Wheeler and Back) and the MTF (as seen in Move to the printable ASCII front), the bzip2 compressor applies a rather unique form of run-length encoding. Definition For the purpose of this challenge, we define the transformation BRLE as foll...

 
Or perhaps your father is Geobytes, your grandfather Geomegabytes, his father Geogigabytes.
 
@AlexA. No, I'm grown already. Besides, "bits" covers everything "bytes" can.
 
8:02 PM
@Geobits Are you sure about that? I seem to remember a few "that's what she said" jokes. ;)
 
Oh, there's a difference between grown and "serious at all times" :P
Only the saddest grownups don't recognize that.
 
@Geobits Very true. I'm sure you'll teach that to your son, Geoqubits, in due time.
 
groanups don't appreciate poor puns
3
 
@trichoplax Grooooooooaaaaaannnnnn
 
Have a star, good sir.
 
8:07 PM
And another
 
@AlexA. I've got my effortless instant puns down to 4 minutes...
 
@trichoplax Now that is something to be proud of. :)
 
Just need to tweak the algorithm a little
 
@Geobits Have you taught your son how to downvote yet?
 
Not quite yet. He needs to learn to contribute to get the necessary 125 rep first.
 
8:09 PM
Hahaha
 
He does thumbs up/down videos on youtube, though, so I guess that counts.
 
Life lessons.
Yes, it counts.
 
@AlexA. It's fun to use a weird language which has a little use outside of PPCG too.
 
I agree. :) I've been meaning to test Retina on Mono.
 
I'd be worried about what that would do to my color vision.
 
8:13 PM
Not that Retina, not that Mono.
Also not mononucleosis
 
damn.
 
:)
 
perfect timing
 
I had a feeling he'd go there.
My Geosenses were tingling.
 
If I hadn't double checked my spelling... Lifetip, kids, never ever proofread your work :D
 
8:15 PM
There are two options: slow and unpredictable, or predictable but super fast
 
@Geobits I also double checked my spelling XD
 
Only proofread before posting if there isn't an edit option
 
@trichoplax I usually don't proofread in those cases either
 
So you just did it to show off? :P
 
I thought that was how you spell it, but I just wanted to make sure...
 
8:17 PM
Just to check: Retina isn't a typo for Retsina? We're not talking about rescuing the Greek economy?
 
Are they rescuing it via wine production?
 
Trade euros for gyros
Actually, I think that's just selling gyros.
 
How else do you rescue an economy?
 
Tax and spend? :D
 
8:36 PM
Have we had an international debt and money printing KotH yet?
 
No, but I don't have any interest
2
 
lol
brilliant
 
in recent news, 50 cents files for bankruptcy. More like 0 cents now
4
gonna sleep. Good night peeps.
 
@randomra how about now?
@Optimizer OMG the whole world is gonna laugh at him
 
@aditsu Nice work figuring out what I assume is the short way randomra was referring to ;)
 
8:50 PM
thanks :) I wonder if that's what it was
 
Looks pretty damn simple to me, I hardly understand CJam and that was really easy to comprehend
 
I don't understand CJam. But I like gyros.
 
anyway, it was kinda cool to auto-assign variables, it's convenient that they're uppercase letters
 
It's Alex!
 
It's me!
I think.
 
8:56 PM
I hope so, anyway.
 
If one spots a magpie in the room in the middle of the day Pacific time, one can assume that the magpie is getting nothing at all done at work.
 
@aditsu Nice! As far as I can understand this is the same as my solution.
 
I'm writing a brief explanation
 
Wisdom from Alex A. today.
 
In Soviet Russia, stack exchanges you.
In Soviet Russia, code golfs you.
 
02:00 - 21:0021:00 - 00:00

« first day (1626 days earlier)      last day (3224 days later) »