« first day (1645 days earlier)      last day (3192 days later) » 

12:02 AM
@orlp I know you said not to ask, but isn't that trig??
 
@Maltysen haha
try it
 
ohh padded transpose, nice
thanks
 
pretty funny how we're transposing back and forth only to pad
so obscure :D
 
12:37 AM
@Maltysen found a bug in Pyth
.* doesn't work to unpack arguments into a special form, like left-map
xLhded can't be replaced with xL.*d sadly
 
@orlp what do you think the shortest way to get [(a, b), (c, d)] into the form [(a, d), (b, c)] would be?
 
@Maltysen I'm doing a different strategy that doesn't involve .D
 
ah
chopping it into an actual block?
 
nope
nearly done with my answer though
@Maltysen posted
 
@orlp you can use +d-CMr33 91`MT instead of the two ranges
 
12:50 AM
yeah, was just about to edit that
 
@orlp the online interpreter needs a test suite function
 
@Maltysen I don't develop the online interpreter
 
i know, just pointing it out
thinking of doing it myself
what do you think? would you use it?
 
I don't use the online interpreter, so no
but I don't object
 
 
4 hours later…
4:30 AM
@AlexA. Hey, I upvoted that question. Stupid wheel is broken. I guess I should spin the wheel to see whose fault that is...
(is that "checking in" enough for you?) :P
 
pokemon blue 151 catch'em all speed run
 
@Geobits It's that avatar. It makes you look guilty. :P
 
 
2 hours later…
6:55 AM
0
Q: Bijective Card-ary

MaltysenContext A single suite from a deck of cards has its cards arranged in this order: A, 2, 3, 4, 5, 6, 7, 8, 9, T, J, Q, K. (We use the symbol T for 10). A bijective base b numeration, where b is a positive integer, is a bijective positional notation that makes use of b symbols with associated val...

 
 
4 hours later…
10:30 AM
Whats with all these bi questions?
 
10:41 AM
0
Q: Heaviest increasing subsequence

orlpA subsequence is a sequence that can be derived from another sequence by deleting some elements without changing the order of the remaining elements. A strictly increasing subsequence is a subsequence in which every element is bigger than the preceding one. The heaviest increasing subsequence of...

 
10:54 AM
Hey Pyth users, is this (K365-1c.!K*^KQ.!-KQ) the shortest I could make my program?
It's calculating the probability that two people share the same birthday in a group of people of size n
 
11:08 AM
@BetaDecay no, inline assign the K
 
Oh that's cool
Pyth is so much nicer and cleaner than Golfscript
 
and here is the first number to cross a certain porbability: f>-1c.!K365*^KT.!-KTQ
run with .5 gives you 23
just 3 more chars
 
So... Is that a for loop or a while loop?
 
a filter :)
 
Ahh I see :)
 
11:13 AM
a filter with a numeric argument instead of a sequence returns the first value greater than the arg that passes the test
and the default for filter is 1
 
Mm. I see
Is that the same with Python?
 
well, in python there filter return an iterator and calling next() on a filter does that. itertools.count() is an infinte sequence which is also useful for this.
 
Ohh.
 
this reminds me: @orlp add 365 to your variable list under $y or something, it should be useful.
 
Is 365 used that often?
 
11:26 AM
no, but we have ~90 variables to fill up
 
Haha why not add 360 in there too
Useful for circle stuff
 
also, this should be shorter for birthday problem: csqMK^U365QlK
don't run it with 23 though, 2 at max, even then it doesn't finish online.
 
Mm thanks :)
 
actually, .OqM^U365Q
but I haven't tested that one, and .O doesn't work online yet
 
What does the capital P mean in Pmap and Ppow?
Does that separate it from the standard Python map and pow?
 
11:34 AM
yeah, and it stands for Pyth
 
I see.
 
and also about that birthday problem pyth has builtins for combinations/permutations
-1c.PK365Q^KQ, brute force is still shorter though
 
And those, I guess are the same as itertools.combinations and itertools.permutations
 
yeah, though on two ints, it calculates it analytically like you did with factorial.
And this has the benefit of working for n==0 and n>365
 
n>365? Does it just return 1.0?
 
11:39 AM
yeah
 
 
2 hours later…
1:40 PM
bonjour anyone here?
 
2:07 PM
0
Q: Symbolic Differentiation of Polynomials

hYPotenuserSymbolic Differentiation 1: Gone Coefishin' Task Write a program that takes in a polynomial in x from stdin (1 < deg(p) < 128) and differentiates it. The input polynomial will be a string of the following form: "a + bx + cx^2 + dx^3 +" ... where the coefficient of each term is an integer (-128

 
2:23 PM
I couldn't find an explicit rule on bitcoin prizes, but there is some meta discussion on real world prizes which people can contribute to. — trichoplax 1 min ago
 
 
1 hour later…
3:40 PM
@MartinBüttner regarding the Retina loops (github.com/mbuettner/retina/issues/24#issuecomment-124976185), as there is no mechanism to exit infinite loops I see very little reason not to exit if the string doesn't change. I like your proposed version. Mixed brackets look weird but that shouldn't be a major concern for a regex based language.
 
4:15 PM
@Dennis bring it on!
 
The one time I beat Pyth, Retina beats me. No fair.
:P
 
@MartinBüttner idk if unary is ok though, as OP said "Your output must have precisely the same form"
at least more motivation to implement unary-decimal conversion :P
 
@randomra Consensus in the linked post is that the unary default is only overridden if you specify that numbers have to be in decimal. I'd take his "Your output must have precisely the same form" to mean "the same form as the input" (regarding spaces, unary minus signs, 1-coefficients and omitted exponents)
 
right, it can be interpreted that way too
anyway I like to see well golfed Retina solutions which I can understand, and this could be one :)
 
4:29 PM
Would someone with Pyth knowledge like to offer some advice to this broken answer?
I don't have the knowledge to see where it's going wrong.
 
4:40 PM
@trichoplax That's very nice of you to seek help on behalf of another user.
@BrainSteel You're here!
 
@AlexA. It's my question, so I feel the answers are in some way my responsibility :)
 
@AlexA. Indeed! I took a trip this past week :D
 
Does anyone know if the online Pyth compiler has problems that would make a valid answer look incorrect?
 
I have the idea of making a challenge on pulley systems. But I have had trouble coming up with how to encode them. Any ideas?
 
Will the challenge be based solely on the number of pulleys, or will their radius be relevant too (for compound pulleys)?
 
4:42 PM
@trichoplax Not that I know of. The user base for Pyth is passionate enough that I think they'd fix anything like that immediately.
@BrainSteel Nice. Where'd you go?
 
@AlexA. I guess the answer really is broken then. It has an edit text "The online link isn't working properly", with the edit removing the link to the online compiler.
 
We went to Mammoth Cave National Park in Kentucky (which is incredible!) and then spent some time around Louisville.
 
Sounds wonderful. Family trip?
That would explain why I wasn't invited. :P
 
Haha, it was my immediate family and grandparents.
 
I'm basically immediate family. I'm at least someone's immediate family. Does that count?
 
4:48 PM
Well, so far as I can tell, you're not my brother or sister. And probably not my father. Probably.
 
@trichoplax ignore me I fundamentally misunderstood what a compound pulley is...
 
@BrainSteel He can't be your father, because I am.
 
@Doorknob We're both the father.
 
O_o But... But my father is currently downstairs...
 
@trichoplax It pulls compounds, right?
 
4:50 PM
Surely you can only have two parents. Doorknob, Martin, and no others.
 
@BrainSteel Yeah. @Doorknob and I are hanging out downstairs.
 
@AlexA. Great, another Doorknob sock-puppet...
 
I keep forgetting that all of you are Doorknob's bots.
By the way, did Doorknob change his avatar again?
 
I'm Squidward, he's Squidward, we're all Squidward.
 
Jul 18 at 0:19, by Optimizer
they really are our parents
(scroll a bit up from there :P)
@BrainSteel Huh what? No, not at all...
It's always been this way. Definitely didn't change to any different colors or anything, nope.
 
4:52 PM
Just how many image files of different colored Doorknobs do you have?
 
Just the one, obviously.
As he said, he didn't change it.
 
It's only one image. It just changes colour with mood.
 
He seems less radioactive today.
 
@trichoplax Haha like a mood knob?
 
That sounds... weird...
 
4:54 PM
@AlexA. I would assume that would be for altering mood, rather than indicating it
 
New treatment for mood disorders.
 
@trichoplax No I think it is complicated enough without differential pulleys=) I was thinking of pulley systems as used in rope access and sometimes climbing.
Let me find some examples
 
@flawr I have absolutely no idea what's going on in that image.
 
@flawr Yeah, I think that's quite complicated enough without introducing anything extra :) What would the challenge be?
 
Understanding the image.
 
4:59 PM
:)
 
Just smile and nod, Alex. Smile and nod.
 
I'm nodding but nobody can tell.
 
I can tell.
 
Because you're just upstairs and you can detect the disturbance in the air in the house. Right?
 
I'm guessing B would need very strong rope (for the leftmost pulley)
 
5:01 PM
Yeah, it's getting pretty windy up here.
 
Well these are different pulley systems. One nice job would be calculating the mechanical advantage. (rope access guys usually provide two different numbers fo the mechanical advantage: the theoretical ignoring friction / the practical considering friction) short TMA and PMA
 
I always theoretically ignore friction.
 
@AlexA. BrainSteel does not, so thats why he could tell!
 
:P
 
In theory, you practically ignore friction, but in practice, you can only theoretically ignore friction. Got it.
 
5:05 PM
... ಠ.ಠ
 
How about gravity?
 
Yeah, how about that?
 
Gravity gets me down.
 
i see=)
 
Clearly you just need a compound pulley.
 
5:07 PM
So what exactly do you mean by a 'compound pulley'?
 
I don't know. @trichoplax said it earlier.
I purged all physics knowledge from my mind immediately after finishing the university course.
 
Yes it was me who said that. Goodness knows what I meant
 
Haha
 
Well then lets ignore physics completely. It is way too usefull in real life anyway.
 
According to wikipedia:
> Compound: A combination of fixed and a movable pulleys forms a block and tackle. A block and tackle can have several pulleys mounted on the fixed and moving axles, further increasing the mechanical advantage.
 
5:10 PM
I mean all science is based on models which are inherently wrong, so lets ignore all this shit. Math is the real thing.
 
Yes only math(s) can be true
 
B)
 
What I was thinking when I said compound pulleys was two wheels on the same axis with different radii, but that's for gears, not pulleys, so I was using completely the wrong term. In short, just skip over my posts and read the useful stuff in between :)
 
You can usually ignore anything I say anyway.
 
@trichoplax There is something like this for ropes or at least chains
called differential pulley
 
5:13 PM
Oh right? Back to wikipedia!
A differential pulley, also called "Weston differential pulley", sometimes "chain hoist" or colloquially "chain fall", is used to manually lift very heavy objects like car engines. It is operated by pulling upon the slack section of a continuous chain that wraps around pulleys. The relative size of two connected pulleys determines the maximum weight that can be lifted by hand. == History == The differential pulley was invented in 1854 by Thomas Aldridge Weston from King's Norton, England. The pulleys were manufactured in collaboration with Richard and George Tangye. According to Richard Tangye...
@flawr yes - that is what I was thinking of - I just had the wrong name...
 
thats what I thought=)
Well anyway this is kind of a pulley i would NOT want to consider=)
 
@BrainSteel studies all kinds of electric pulleys
 
@AlexA. Do you and @BrainSteel know each other IRL?
 
@AlexA. Do they form part of his steel brain?
 
I'm trying to figure out what an electric pulley even is...
 
5:17 PM
@flawr Haha no, we're just well acquainted from PPCG chat.
 
@BrainSteel It's when you tug on wires that you really shouldn't tug on.
 
the electric pulley is something closely related to the WiFi cable
3
about as real as the WiFi cable i guess? ^^
 
@AlexA. Read that again carefully :P
 
I just had to unplug it because of my goldfish allergy
 
5:19 PM
Ah, the blissful moment of realization.
 
What? I was never confused.
 
You just never knew.
 
Haha
I never know anything.
 
Your steel brain always interpreted it as sexual arousal.
 
Uh what
 
5:20 PM
I'm still wondering what the possible benefit of running current through a pulley could be. I'm sure there is an application.
 
Wouldn't you get a magnetic field?
I imagine something like a railgun=)
 
I think you'd just electricuted.
 
That is very often the point of a gun.
 
I assumed an electric pulley was something much simpler. Just a weak electric motor using a pulley to apply more force.
 
@flawr Well, that's a given whenever you have current. I doubt the magnetic field would be terribly strong.
 
5:22 PM
You just have to get ENOUGH current=P
 
I am the romance expert around here.
 
 
@BrainSteel Nah, I think that's @Geobits. After all, he had to make his kid somehow.
@flawr Somebody has been playing too much Quake.
 
*Tremulous
 
I'd like to see a KotH with an alternative (simple) physics
 
5:24 PM
I have the most effective arsenal of pickup lines ever.
 
@flawr Why, what did I say? :P
 
Idk?
 
@BrainSteel I do hope you're planning to share some now that you've mentioned it.
 
@AlexA. lol we're going to have to start quoting your original comments when replying to them...
 
The edit wars!
 
5:26 PM
i didnt even know you could edit them
 
Really? Press the up arrow key
 
does anyone still remember Tremulous?
 
No
 
Or click on the down arrow to the left of the comment you want to edit
 
Hey baby, are you a Dirac Delta Function? 'Cause you just caused an instantaneous change... IN MY PANTS
 
5:27 PM
...
 
It works 60% of the time, every time.
 
@trichoplax it was a joke^^
 
@flawr D'oh
 
Whoa, Tremulous is FOSS?
3
 
yep
was my favourite game
you could be a spider(alien)
that could e.g. crawl on teh walls /ceiling
 
5:29 PM
Half-Life and its sequel will always be my favorite.
 
Whoa, why have I never heard of this game?!
 
too late now=/
community is almost dead
 
Can you no longer download it?
 
Did the aliens win?
 
yes
 
5:30 PM
@Optimizer plays non-AAA games? :P
 
no
not many
do mobile games count as non aaa?
 
yes you still can, and as it was opensource there were a ton of great mods
if you want i can open a server and could show you around?=)
 
== Freeware clients == Some free-to-play online first-person shooters use a client–server model, in which only the client is available for free. They may be associated with business models such as optional microtransactions or in-game advertising. Some of these may be MMOFPS, MMOTPS or MMORPG games. == Game engines == == References... ==
 
sometimes I feel like going to deep freeze sleep until SAO types game become reality
 
Black Mesa is a ridiculously awesome HL1 remake using the Source engine (better than Half-Life: Source)
 
5:32 PM
@orlp For heaviest increasing, can you try [1, 2, 4, 3, 4] for me? Your reference seems to give 11
 
I think it was never really that popular because it takes quite some time to understand the hole game and get used to the game play (especially when playing as an alien)
(referring to TRemulous)
oh and i forgot to mention there is a successor in development
 
@flawr Oh nice! Are you contributing?
 
that is still very similar to tremulous
i did some for the translatin but i am not good at programming
or at least not at using versio ncontrol systems^^
 
Oh what language for translation?
 
English->German
i was 'no one' or 'no one's cat'
 
5:35 PM
No one's cat...?
 
yeah that was my nick=)
 
Oh I see you in the list!
 
so they did finally update that=)
 
I didn't realize at first that you were saying what your nickname was. I thought you were just saying that you were a cat that belongs to no one.
 
haha=)
And i already hoped you were a player from back then who recognized that name=)
 
5:38 PM
@BrainSteel is no one's nautilus.
@flawr Unfortunately not. If that came out in 2005, I was too busy playing HL2 which came out in 2004.
 
Oh I am getting so nostalig feelings remembering the countless hours of tremulous gaming=)
Well there were a lot of players until about 2011
The great thing was that each game lasted usually about 45 min
 
"Nostalig" --> "nostalgic"?
 
sorry yes=)
 
Just making sure :P
 
writing too fast and thinking too slow^^
 
5:40 PM
Thinking too slow --> my entire existence
 
there is a swiss german saying, im trying to translate it:
 
Oh are you Swiss?
 
"How can I know what I think before I heard what I said?"
 
Haha
 
jep, on of those
 
5:42 PM
@AlexA. is no one's magpie?
 
Oh and today is 1. of august, swiss national holiday!
 
Happy whatever holiday!
 
So now I had an idea on how to encode certain pulley systems
just have to write it down and see if it really is unique...
where r u guys from?
 
US here
 
yes you there!
=P
 
5:52 PM
US here too, Washington state
 
oh I've just been there
 
@MartinBüttner (\^1)?1\b doesn't remove a single constant term (like 1111) just reduces it
 
@randomra that isn't for the constant term, but you're right, the component that should do that doesn't either...
@Dennis your code also breaks in that case ^
@randomra fixed. cost me 4 bytes, but I found a way to save one elsewhere
@randomra actually, that doesn't happen
the degree of the polynomial is at least two
 
@flawr Nice! Business or pleasure? Seattle area?
 
pleasure, no just the very south=)
i've been on a roadtrip from oregon->cali->oregon->washington st->oregon=)
first time on another continent=)
 
6:05 PM
@MartinBüttner Assuming that printing an empty string is the expected output for 1, my code "works". Not very clean though.
 
@Dennis oh true. but it doesn't matter
 
@flawr Cool! Let me know if you make it back up to Washington. It'd be fun to meet up for coffee or whatever.
 
hm, until the last two byte savings, my regex was actually reasonably readable...
 
@MartinBüttner whoops, sorry then
 
@MartinBüttner Because you're killing me anyway?
 
6:06 PM
@Dennis lol @ "works"
 
@Dennis because "(1 < deg(p) < 128)"
 
well I am at home in europe again
so i think thats not gonna happen anytime soon=)
still adjusting from the jetlag
 
Oh well. I hope you had a good time in the US!
 
definitely, somewhat hot but it was awesome nevertheless=)
 
You picked a good part of the country to visit.
 
6:09 PM
finnally got to try skittles and mt. dew
 
Haha was that a lifelong aspiration of yours?
 
of course=)
the only reason^^
 
Are they not available in Europe?
 
no we also made a trip to st helens which was very impressive too, and I think we were in about every national park there is on the west coast^^
I think not? Only knew both from the internet
 
Did you get to Mt. Rainier?
@flawr Having lived my entire life in the US, that is a very strange concept to me.
 
6:13 PM
Soo then you'll have to come over to europe=)
 
I've been to the UK, but that was about 8-9 years ago.
 
No I wanted to visit but our time ran out in the end=)
Well UK is not really europe
on the other hand: switzerland neither^^
 
EU == Europe?
 
not quite
 
Then why aren't the UK and Switzerland Europe?
 
6:15 PM
switzerland is against pretty everything that was not invented in switzerland^^
 
@flawr the UK likes to think that...
 
Haha
 
oh there was a video by gpc gray!
 
GPC == Great Panda Charles?
 
you see switzerland is in the middle of the EU but not in the EU
ah i just noticed that uk is in the eu but does not follow everything
e.g. currency and immigration
well it is helplessly complicated..
 
6:19 PM
This video is great
Very informative
 
@Dennis it's quite funny that the three other submissions are all 62 bytes of code despite being in entirely unrelated languages.
 
@flawr The UK does "follow immigration". What it doesn't do is participate in Schengen.
 
Ah thanks for clarifying, I know next to nothing about those topics, just that there are tons of exceptions everywhere=)
 
@MartinBüttner Yep. And how often do you see Perl neck to neck with Pyth?
 
I need to be getting stuff done but I've been sucked into GPC Grey videos.
 
6:28 PM
@Dennis I've seen it and fought it too
 
Oh, and FWIW Skittles are definitely available in the UK, and I think Mt. Dew is.
 
Speaking of beating Pyth: Is nobody going to post a non-Pyth answer for my four-square challenge?
 
@PeterTaylor Rather unfortunate, really. :P
 
Oh and I already miss the bagels=)
Which is something I've never seen here too=)
 
While the room is a bit more crowded (and Pyth is being discussed) does anyone know if the Pyth online compiler is reliable for judging answers?
 
6:34 PM
Are you asking generally or because of somthing specific? (No I do not know.)
 
I had an answer that doesn't work on the online compiler and I don't know Pyth so can't tell if that's a problem with the answer or the compiler.
(the answer has been temporarily deleted so not everyone will be able to follow that link)
 
@trichoplax It doesn't work with the Python interpreter either.
 
@Dennis Thanks - that's handy to know.
 
Dennis is handy to have around.
 
Indeed
 
6:43 PM
@trichoplax There are a couple of problems with that answer. For starters, the answer sets the width to 8, no matter what the input was.
Also, it converts one argument to binary, but doesn't zero-pad to the left.
 
@Dennis That would explain the distortion when the input side length is greater than 8 then.
I'd recommend adding comments but that's not possible until the answer is undeleted again.
Does @vihan use chat? The username shows up so hopefully this will be enough to highlight your points.
 
Yeah I've seen him in here
 
If his name pops up, he'll get pinged.
 
Oh good.
 
I've fixed a couple of bugs, but the distorsion remains.
 

« first day (1645 days earlier)      last day (3192 days later) »