« first day (1832 days earlier)      last day (3012 days later) » 

9:00 PM
0
Q: Should you edit other people's answer with lower byte counts?

Elliot A.I've often come across answers like this: Python3, 40 bytes i=0 while i>10: i+=1 print(str(i)) When you could golf it down to Python3, 33 bytes for i in range(10): print(str(i)) Should you edit it, or leave it how it is and leave a helpful comment?

 
@AlexA. I have a suspicion, that's all. I think I know who it is.
 
@NewMetaPosts Q: Should you post a question to meta that has several duplicates?
 
@Geobits Nice Futurama reference. :D
At least, I think it is...?
 
Yep. Good ol' Bender.
 
9:02 PM
Ah, that's why it felt familiar.
 
@Geobits A: ¯\_(ツ)_/¯
 
@Geobits I see (and tend to upvote) all answers on my questions.
 
Interesting thing to think about: let's say we play a game where I flip a fair, unbiased coin until it comes up tails, and then pay you 2^n dollars where n is the number of heads. Let's also say that I charge you $100 to play it. Should you play?
 
Anonymous
@Dennis Yeah, it turns out I accidentally borked the last merge I did. The latest commit should have everything fixed.
 
@VoteToClose Oh! I didn't realize it was your challenge. I'll just slowly fade into the background now...
@El'endiaStarman For $100? I'm pretty sure it's not worth it.
 
9:13 PM
@El'endiaStarman Uh. No?
 
The odds of hitting a big payoff are terrible.
 
@mbomb007 That's good, since IE10 is obsolete anyway
 
@Geobits Alright then, what would be an appropriate charge?
 
That's a better question I think, but I hate probability :D
 
Anonymous
9:14 PM
$2
 
A sandwich and a six-pack
 
Anonymous
Well, $1
 
Anonymous
Actually no 50 cents
 
If he wants bias to win, he should charge 2 dollars.
 
Anonymous
Wait there's a simple solution for this that I'm derping on
 
9:15 PM
If he wants it to be fair, he should make it 1 dollar.
 
Let's go for total fairness.
Both parties should break even in the long run.
 
Anonymous
Yeah $1
 
Anonymous
The average number of heads you'll flip before getting a tail is 1
 
£2
 
Well the payout for every win is the inverse of the odds of getting that payout, right?
 
9:16 PM
@Mego .5
 
Anonymous
Err, $2, since it's $2^n
 
Anonymous
@VoteToClose (1-p)/p
 
@Geobits Yep.
 
Anonymous
Where p is 0.5
 
2,50€
 
Anonymous
9:17 PM
It's a geometric distribution
 
The expected value is infinite
 
@Mego The average price you'll flip before getting a tail is 1.
 
This ain't the Cauchy distribution, son
 
Yea, I've seen this problem somewhere, well explained. I just can't think of the name of it.
 
It's called a gambling problem
10
 
9:18 PM
What if I snag the coin out of the air an run away with it? Then I'm up the value of the coin.
 
I can quit any time I want to!
 
@Geobits This. (Spoilers.)
 
Anonymous
The expected value of a random variable drawn from a geometric distribution is (1-p)/p
 
@Mego You're not accounting properly for the varying payoff, I think.
 
@El'endiaStarman Thanks :)
 
Anonymous
9:19 PM
For a coin, that's 1. So, the cost to enter should be 2^1=2
 
@mbomb007 I meant something like this:
+`((?(1)\1|\d))+(?=.*_)_?
$#1$1
 
@Mego Ohhh, I was interpreting 0 as tails, heads as 1. Split the difference, get .5 chance of each. Then, you multiply the payment (2^n) by .5, and since you'll get an average of 1 head per tail, you do (2^1)*.5=1.
The entry price should be one.
 
E(x)=1/2*1+1/2*(2*E(x))=1/2+1/2(1+2*E(x))=1/2+1/2+1/2*(1+2*E(x))->infinity
 
@Mego and @VoteToClose, look at it this way: the probability of getting 1 head is 1/2, with a payoff of $2; the probability of getting 2 heads is 1/4, with a payoff of $4; the probability of getting 3 heads is 1/8, with a payoff of $8; and so on.
 
The probability of getting zero heads is 1/2.
 
9:24 PM
With a payoff of 0. That doesn't really affect the conclusion.
Or, if you like, the payoff is negative whatever you paid.
 
The payoff for 0 heads is 1
 
Right, but doesn't that mean the odds of one head are 1/4 instead?
 
@FricativeMelon Ack, whoops, what a simple mistake. -_-
 
It still doesn't change the conclusion I think.
 
@Geobits Oh yes, you're right.
 
9:25 PM
@FricativeMelon Wait, so I get a payoff no matter what?
 
And indeed, doesn't change the conclusion.
 
And the minimum payoff is $1?
 
@mbomb007 turns out you can actually save a byte by avoiding the conditional:
+`(\d)(?<1>\1)*(?=.*_)_?
$#1$1
 
@TimmyD Well 2^0 is 1 :)
 
It means that spending $1 means you can't lose money, so the average value you want to bet should be greater than that, at least
 
9:26 PM
So, the most I'll bet is $1. And I'll just continue playing the game again and again until you give me all your money.
 
@TimmyD Hahaha. The game master, having been forewarned of your tactic, will only let you play one game.
 
Fine. I'll still only bet $1. Cheap way to get up on stage in Las Vegas.
 
@mbomb007 hah, this also works (saving 3 more):
 
If I can only play it once, I'll just toss a buck in for kicks and not expect anything.
 
9:27 PM
+`(\d)(\1?)*(?=.*_)_?
$#2$1
 
I'll bet $1 then trick a bunch of friends into playing your game too, and take their money once they're done.
 
Anonymous
@El'endiaStarman Please do not edit the challenge after answers have already been posted which would be invalidated by the edit(s).
2
 
XD
 
@Mego Yes, it seems to be working now.
 
9:29 PM
This reminds me of a game show that was on US television a while back. After the game, the two players would secretly choose friend or foe. If they both chose friend, they split the winnings. If one chose foe and the other friend, the foe won the whole amount and the friend won nothing. If both chose foe, no one received the winnings.
 
Anonymous
@Dennis Sorry about messing it up :P Merging is hard when your trunk is 12 commits ahead of the pr
 
Anonymous
@TimmyD Prisoners Dilemma?
 
@Mego Trunk? What is this, subversion?
 
@Mego Sounds exactly like it.
 
@Mego Pretty much. But it was surprising how often the results were friend/foe with one person winning the whole pot.
 
Anonymous
9:30 PM
@AlexA. No it's my brain reverting to svn lingo because I couldn't remember the word "head"
 
@TimmyD Not too surprising. People are dicks.
 
@Mego So you had that thought in your trunk then?
 
Anonymous
@AlexA. Yep, it was junk
 
It was maybe a 25%/25%/50% split friend-friend / foe-foe / friend-foe
 
@Geobits Especially people named Richard.
 
9:30 PM
@Geobits The surprising part is how often one of them wasn't.
 
@Mego No worries. I constantly mess up my commits, but since I also manage TIO, nobody notices. :P
 
Anonymous
@Dennis goes and snoops through your commits
 
I delete messed up commits. :P
 
I should make a little webpage for playing that game mentioned up there.
The answer, by the way, is that you should play it at any price.
 
@TimmyD This is called Golden Balls in England.
 
9:32 PM
The expected value (i.e., the average winnings in the long run) is infinite.
 
@El'endiaStarman Provided I have an infinite amount of time to play it.
 
@VoteToClose ( ͡° ͜ʖ ͡°)
 
Anonymous
@Dennis I don't. That's why Seriously's commit history is so full of crap
 
Golden Balls is a British daytime game show presented by Jasper Carrott. It aired on the ITV network from 18 June 2007 to 18 December 2009. It was filmed at the BBC Television Centre. From 25 February 2008 to 13 February 2009, the show was sponsored by ITV Bingo (powered by Party Gaming) (STV Bingo in Scotland); from 2 November to 18 December 2009, the show was sponsored by Carpet Right; and from January 2013 to February 2013, whilst repeated on Challenge, the show was sponsored by Sky Bingo. Golden Balls Ltd licensed their name to Endemol for the game show and merchandise. == GameplayEdit == ...
 
Leave it to the British to name it Golden Balls.
 
9:32 PM
Hey, at least they aren't blue.
 
@TimmyD Even if you only have a finite amount of time, the more time you have, the more you are likely to win.
 
> ...they will discuss who they think is lying, and try to establish who has the worst set of balls.
 
@TimmyD I know it is, but that doesn't mean everyone will upgrade. It's be much easier if companies would use Firefox or Chrome...
 
Friend or Foe? is an American game show based on knowledge and trust which aired on Game Show Network. Three teams of two strangers attempted to persuade their partner into sharing their accumulated winnings rather than stealing it for themselves. The show premiered June 3, 2002, and aired for two seasons totaling 130 episodes. It was hosted by Kennedy, except for the April Fool's Day 2003 episode (the final first-run episode), in which Mark L. Walberg hosted. The show "re-debuted" in 2008, re-airing episodes from the series during that year. == RulesEdit == At the start of the game, three of the...
 
@Geobits "I'll show you mine if you show me yours."
 
9:34 PM
@MartinBüttner Wow, that's so much easier to understand at a glance.
 
@mbomb007 the only tricky bit is understanding why (\1?)* reliably gives you one more capture than it matches characters.
 
@mbomb007 Except that mass configuring things like security settings, home page, pushed bookmarks, etc., are waaaaaaaaaay easier in IE, if not outright impossible in other browsers.
 
Mass configuring home page should be outlawed anyway :P
 
Yeah, but users are stupid.
 
@TimmyD Any workplace that does that is too controlling.
I have IE which I use to run apps I work on, and I use Chrome for everything else
 
9:37 PM
I agree with the security settings (and possibly bookmarks, depending on policy), but home page is too far for my taste.
Worst is the ones that try to stickify the home page, so it has a habit of reverting. DoD used to do that.
 
If we didn't force the home page, I'm pretty convinced that users here wouldn't use the employee resource portal (which has links for things like ordering printer paper or toner, reporting broken light fixtures, requesting permissions changes, etc.) that flows through our multi-faceted ticketing system, and would instead just call the IT helpdesk for everything.
 
Meh. Facilitating the bad users at the expense of the better ones never made much sense to me ;)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Sure, it's installed automatically. :P
 
Uninstall it.
 
9:40 PM
It can be removed.
I have to have it for work.
 
It's a pain to uninstall on later versions, IIRC.
 
removes ಠ_ಠ
 
"I have IE which I use to run apps I work on"
 
Anonymous
@Geobits Forcing a home page isn't that big of a deal. It's n+1 keypresses at most to get to the site you want to be (with a URL of length n)
 
9:40 PM
Well, working on apps is different from using it for work.
 
I develop applications at work.
Some of the apps technically only support IE 11
 
I hang out on PPCG maintain the messaging environment.
2
 
@Mego Depends on the home page I guess. Ours was a portal page that took forever to load, and was pretty useless in general. When it appears at first glance to hang every time you open the browser, it's not optimal at the very least.
 
@TimmyD XD
 
Anonymous
@Geobits That's a problem with the website, then, not the policy
 
9:43 PM
@mbomb007 The company I work for currently has stuff like that. All of our official internal documents are accessed on Sharepoint, which is a huge POS and doesn't work well on Chrome.
 
@TimmyD I waste too much time constantly improve my skills.
 
Anonymous
Oh ye gods Sharepoint
 
Anonymous
@mbomb007 3 dashes
 
@mbomb007 ---
ninja'd
 
9:44 PM
@Mego wut
 
Anonymous
@AlexA. it's so bad
 
@Mego It's a problem with both IMO. I've yet to find a good reason to not only set an inital home page, but then check it every so often and revert to it if it's not set.
 
Anonymous
c-c-c-combo ninja
 
@Mego I was looking it up in the msg history
 
9:44 PM
@Mego Yes
 
SharePoint is fine ... if you have a dedicated team of SharePoint engineers that know WhatTF they're doing.
 
What Team Fortress? Probably 2.
3
 
@TimmyD Sharepoint is crap.
 
Anonymous
@Geobits The alternative policy is having users to check the home portal every so often. Good luck enforcing that.
 
@AlexA. TF classic sucks ;-;
 
9:46 PM
@AlexA. Yep.avi
 
@Mego That's what they do where I work. You're supposed to check it everyday. There's even a sign in the bathroom that reminds us to check it.
It says, "Have you checked Sharepoint today?" So I wrote on the sign in the bathroom, "Not in here I haven't."
 
@AlexA. Right next to the sign reminding people to wash their hands with soap?
 
I've yet to work somewhere that had a portal I needed to "check" for anything I guess. Most I've seen are just links to internal apps, which is easily accomplished with bookmarks.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I haven't played it in over 10 years but from what I remember it wasn't too bad.
@mbomb007 Haha no, but there's one of those too.
 
Anonymous
It's much easier and simpler to force the home page, mildly irritating the users who know how to change it and would be bothered by it (which is a really insignificant thing to get annoyed by) and helping out the less-tech-savvy users who couldn't navigate their way out of a paper sack, than to try to enforce regularly visiting the home portal.
 
9:48 PM
@AlexA. Well... Relatively speaking.
 
I've seen SharePoint, when configured correctly with the rest of the environment, work amaze-balls. The meeting organizer invited the room, which was connected into SharePoint, and so created a new workspace there. Invitees used OneNote, which recognized what meeting they were in based on calendar integration and automatically saved notes to that workspace. Recurring meetings with the same subject would be consolidated together.
 
Do you work for Microsoft? ;)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ MegaTF is best TF.
 
@AlexA. No, but the client was a deep Microsoft partner.
 
9:49 PM
Oh my, a deep partner?
4
 
Anonymous
( ͡° ͜ʖ ͡°)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ campu.org/infinity
 
@Mego I agree, depending on the environment. If you work for a tech company where >90% of the employees don't fall into the less-tech-savvy category...
 
@Mego ( ͡° ͜ʖ ͡°)
 
( ಠ ͜ʖಠ) deep
 
9:50 PM
I mean, cool, set me up a home page. But if I know how to change it, let me.
 
oh god that face
 
Anonymous
@Geobits Maybe. Most of my work experience comes from the banking and electrical wholesale industries. The average tech savviness of the employees there (not counting IT/devs) was negative.
 
lel
 
Oh I can believe that :)
 
9:51 PM
Hah. Truth.
 
Anonymous
Working in IT for a decent-sized local bank was exactly like The IT Crowd
 
I've seen my banking website, so I'm not even sure of their IT guys sometimes ;)
 
Thanks, @Lynn - I never thought of using characters in my functions names to make them easier to call =)
 
Anonymous
Including the server room with the gothic guy locked in it
 
9:52 PM
@Mego That's where he can steep in his nihilism
 
> "You know you're addicted to MegaTF when you steal the orange flag off a handicap persons wheelchair and run like hell." - HighChief
Oh god
What game is this
 
A game that disadvantages the disabled
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ It's called outside. We don't play it often.
 
haha
 
So, Team Fortress was a mod for Quake, way back in the late 90s.
 
9:54 PM
@TimmyD Yup!
iirc
 
@TimmyD s/Quake/Half-Life/
 
@Mego error FS0039: The value or constructor 'outside' is not defined
 
Anonymous
Everything can be traced back to a Quake/Doom/Unreal mod
 
Not sure what you're talking about
 
MegaTF was a mod of that mod that tweaked classes, added grappling hooks, etc.
 
9:55 PM
@Mego What about Quake?
 
@AlexA. Err, no, that was Team Fortress Classic ... different game.
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ Quake was a Quake mod
 
@TimmyD Oh! I didn't know that.
 
@Mego Oh, right.
 
Anonymous
Try not to think too hard about the implications
 
9:55 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Quaker Oats mod
 
@AlexA. It was made by some of the same programmers, but there were a lot of differences.
 
Team Fortress Classic was obviously superior though, being related to Half-Life.
 
It was, but a lot of that was also due to the fact that it came out like 3 years later.
 
Is it bad that I've never played any of the Quake games?
 
@AlexA. ಠ_ಠ
 
9:58 PM
@AlexA. ಠ_ಠ
 
@AlexA. ಠ_ಠ
 
@AlexA. ಠ_ಠ
 
Alright, so I guess I need to play Quake then.
 

« first day (1832 days earlier)      last day (3012 days later) »