hwiechers
Re:Adding Empty Set Literals to Python
on Saturday March 16, 2013 @03:05AM (#5384740)
I think it would be best if empty dictionary was {:} and empty set was {}. Of course, it would be insane to make this change.
Re:Gondor expands its Django hosting to any Python WSGI app
on Tuesday June 19, 2012 @03:35PM (#4133685)
> Gondor 1.1 is an optional upgrade, but we will force everyone to upgrade by the end of September.
So then it's not optional.
Re:Path-finding simulator for grid based games
on Saturday April 21, 2012 @07:56AM (#3871572)
I thought A* _was_ Best-first-search.
https://en.wikipedia.org/wiki/Best-first_search
Can someone explain the difference here?
Re:The story of TextMate, VIM and SublimeText
on Monday January 30, 2012 @08:12AM (#3528612)
"When art critics get together they talk about Form and Structure and Meaning. When artists get together they talk about where you can buy cheap turpentine."
- Pablo Picasso
Re:Why I'm a Pirate
on Wednesday January 18, 2012 @11:44PM (#3483231)
At least two of those composers died in poverty so they might have actually thought that copyright is a good thing.
Re:Think you understand Monty Hall? Try the Tuesday boy problem.
on Tuesday November 29, 2011 @04:53PM (#3292379)
I finally understand it.
Here are my events (taking 2 children as given):
B = I have a boy
BT = I have a boy and he was born on Tuesday
2B = I have 2 boys
B+G = I have a boy and a firl
Using Bayes' Theorem: Pr(2B|BT) = Pr(BT|2B)Pr(2B)/c
Pr(B+G|BT) = Pr(BT|B+G)Pr(B+G)/c
where c = Pr(2B|BT) + Pr(B+G|BT)
Pr(BT|2B) = 1/7 + 1/7 - 1/49 = 13/49
Pr(2B) = 1/4
Pr(BT|B+G) = 1/7
PR(B+G) = 1/2
So c = 13/49 * 1/4 + 1/7 * 1/2 = 27/49
Pr(2B|BT and 2C) = (13/49 * 1/4) / (27/49) = 13/27
Pr(B+G| BT and 2C) = (1/7 * 1/2) / (27/49) = 14/27
They main reason Pr(2B|BT) is around 50% is that
Pr(2B|BT) is proportional to Pr(BT|2B) while
Pr(B+G|BT) is proportional to Pr(BT|B+G) and
Pr(BT|2B) is about 2 * Pr(BT|B+G).It's much more likely you have a boy born on Tuesday given that you have 2 boys (rather than you have a girl and a boy) so it's more likely that you have 2 boys given that we know you have a boy born on Tuesday.
Re:Stanford class on Information Theory
on Wednesday November 23, 2011 @03:35AM (#3269309)
I noticed that this one starts in March 2012. Since the others start in Jan and seem to last about 10 weeks (AFAIK), they'll probably be complete before this one starts.
Keep that in mind if you've already signed up for others.
Re:Python: copying a list the right way
on Sunday November 06, 2011 @01:06AM (#3201905)
list(x) is also used for converting a sequence x to a list.
x[:] is actually more explicit because it only means 'copy x'.
Re:Nobody Knows My Password; Not Even Me
on Saturday July 09, 2011 @04:09AM (#2745294)
But even if you're typing your password in, malware could just log your keys. If malware is on your box, the game is over.