« first day (1749 days earlier)      last day (3184 days later) » 

8:03 PM
I went with a subclassed RuntimeError
 
Is there a way to execute operations conditionally in oneliner, like IF(cond, operatorToExecute)?
 
if cond: operatorToExecute()
or a ternary expression: operatorToExecute() if cond else somethingelse()
 
Can you use pass as the else in a ternary? If you wanted a nop?
 
Nah, pass is a statement so you can't put it inside an expression.
I guess you could do a if b else None but that doesn't strike me as idiomatic.
 
def my_if(cond, func):
    if cond:
        func()
my_if(cond, operatorToExecute)
Agree with Kevin.
 
8:08 PM
You can also use the short-circuiting behavior of and and or, but that's more Perl-y than Pythonic.
 
expressions return a value, so use the complex statement, if
 
cond or f() only executes f when cond is falsey
 
@Kevin I've been known to use that from time to time.
 
cond and f() would also do it, but I would have to hunt you down and sit on your chest while reading PEP 8 to you.
 
I came up with this oneliner (a() if (1 < 2) else None) ; (b() if (2 < 3) else None). But, it is bit ugly. How can I get rid of else None?
 
8:10 PM
@RecognizeEvilasWaste Why do you want to do this as a one-liner?
 
He aspires to be as smart as Feynman.
 
DSM
I just spent an hour talking planetary formation in my office with one of Canada's most famous and beloved football players. This is a strange day.
 
(1<2) and a(); (2<3) and b(), I guess, but I don't like it
 
@RecognizeEvilasWaste just do a(); b() since both conditions always evaluate true
 
They don't in reality.
 
8:13 PM
I know, I was making fun of your example.
 
@DSM Canada has football?
 
DSM
@MorganThrapp: all four kinds!
 
Man, our hat continues to surprise me. ;)
 
I only know of the soccer and handegg variants.
 
I have a somewhat surprising hat at home. Maybe I could continue making chat surprising with it.
Actually, I have two somewhat surprising hats.
I don't even wear hats.
 
8:21 PM
Angry birds 2 :o
 
I aspire to be like Feynman too. He was a sharp cookie.
 
DSM
He was very sharp, but I have to admit he was kind of a jerk. Historically those haven't been incompatible, of course.
 
I must have only a shallow knowledge of him, how did he come by this reputation?
 
I always figured the autobiography was a bit tongue in cheek, that he didn't actually act that bad but was playing up the story. Were there other sources that painted him as a jerk?
 
isn't trained on Feynman, thinks he can make an averagely accurate statement about the man
 
8:32 PM
Yeah as far as I was aware he was a jackass
At times anyway
 
One of these days I'll have 10k rep. :/
 
DSM
@davidism: I don't have any sources at hand, but that was the common view. Apart from the stories he tells about himself which don't make himself look good, I know I've read anecdotes from other physicists about how he would treat people.
 
Bang! Zoom! Straight to the deleted questions!
 
> The setup: "I'm an expert web programmer, was a DBA for a few years, lots of background in security, yeah I know all about that"

The lowball: "Okay, so how would you go about preventing SQL Injection?"

The fumble: "Weeell, thats not really the type of thing I've ever dealt with... What is it exactly?"
 
8:34 PM
@DSM yeah, it's the general impression I hear as well, and I'm sure there were other accounts that I'd read, just couldn't think of any either.
Not to discount the work he did. His lectures are great, even if living with him wouldn't have been.
 
I reckon living with him would have been a laugh :P for a while at least
 
Until he crushed your will
 
DSM
I loved the Lectures, but I went in knowing a bunch of the stuff. I've read a paper which suggested his lectures weren't particularly helpful for his students, though, at least on average.
 
I've got his lectures as text books
 
I will say I really enjoyed Surely you must be joking, Mr. Feynmen
 
8:37 PM
Oh yeah I liked that
 
> In interviewing for a entry level tech position, I was asking a candidate to point out various components in an open PC. When I tested him to see if he was guessing and asked him to show me the "flux capacitor", I was amazed he immediately found one! Sadly, it turned out to be a video card.
 
I should read those again
 
Yeah, it was enjoyable, but if you go back and think about being the other people in his stories then you get this impression we're talking about.
Still funny though.
 
@IntrepidBrit I really need some automated tests; I found a bug that tries to push the end date of a project until 9999, at which point Python barfs. Need tests!
 
I have the lectures as textbooks too, I really need to get through them at some point. I never really paid attention to physics at university.
 
DSM
8:39 PM
I know Gell-Mann thought Feynman spent half his time doing things just so he could boast using the anecdote later.
 
can I post another, or would that be too much?
 
I don't even know what you're posting
 
DSM
Quotes from the deleted question.
 
answers on a deleted question from long long ago: "Worst Interviewee Answer"
 
8:40 PM
@DSM I heard Gell-Mann thought all permutations of stuff in order to recount the correct thoughts knowingly later
 
for those of us with low rep
 
I think I'll reread his memoirs actually
 
your going to give me nightmares before my own interview
 
4 hours ago, by tristan
@RobertGrant Nightmares as a Service (NAAS)
 
8:47 PM
gasp...you mean you're doing it on purpose :O
 
It's a service we provide!
 
And charge for.
 
How do you turn it off!?
 
@JGreenwell read some Feynman, it will restore your confidence - with the possible side effect of turning you into an arrogant blowhard.
 
Fizzy and Bobby Ltd!
 
8:49 PM
Holds out hand for tip
 
DSM
That was creepy. Should I have recognized it?
 
it's kinda creepier that it disappeared
 
spooky
 
8:51 PM
The moving censor of fate has unwrit
And moves on
Sorry @davidism, didn't mean to scare anyone
 
is "arrogant blowhard" redundant?
 
DSM
No. Someone could be arrogant but very quiet.
 
Nope
 
@RobertGrant it's ok, I exorcised it in time
 
8:53 PM
No, one could also be an unintelligible blowhard
 
DSM
Awwwww.
 
I had a cat like that, then it died - Ghost Kitty!
 
@davidism that's good insight into your internal narrative
 
user559633
@JGreenwell You rang?
 
Utang?
 
8:55 PM
@RobertGrant I actually splashed holy water on my screen, but it didn't really carry through the internet.
 
Oh. That explains why the girl crawled out of my screen. Thought it was just the drugs.
 
DSM
Wu Tang.
Rhubarb stage right. Later days, everyone!
 
Filling chat with images \o/
 
You need to make your signature look less like actual letters.
 
I don't really have a signature, that's just what my writing looks like.
 
9:07 PM
That's really cool though, I didn't know that a thesis got bound as a book.
 
Nice - congratulations!
 
Even now it has pride of place acting as a doorstop in my front room.
 
The other books and that one rock must be so jealous.
 
You didn't go for some O'Reilly style image on the front - say a pair of Ray-Bans bungee jumping?
 
Puzzled and a little irked by the behaviour of the OP of this answer.
@Ffisegydd Wow!
First I get a downvote on my answer with an error message that indicates they are not using my answer correctly; so I added a demo to show the expected behaviour.
 
9:10 PM
I did thank the 4*10**22 neutrons that helped me get my results, that's about as close as I got to "silly"
 
Then they post an answer that makes little sense, only because the OP seemed to try to decode Twitter JSON where Tweepy already decoded that info, by producing a result that is not JSON but hey, there is the word JSON in the parser class they picked, right?
grump grump grump
Okay, rant over, all move on now.
 
Give in to your anger. Strike out with your mod powers and join the dark side.
I mean, you're already on the dark council and wearing a black ninja outfit, you're basically already there.
 
@davidism anger leads to hate, hate leads to .. suffering
(suffering because I've lost my mod appointment)
 
Dr. Fizzy, congrats?
 
9:22 PM
Only if you get caught. Surely you must have some way to plant evidence...
 
Martijn, why? FB?
 
@AaronHall why? Because abusing your mod powers leads to them being taken away due to breaching the agreement.
@Ffisegydd yeah, our actions are totally not logged.
 
I think Aaron thought you were stating that you had just lost your mod powers @MartijnPieters
 
Misdirection is the key. I'm sure you'll find a way. I have great faith in your ability to abuse the powers...
 
ok, I follow now
Hey, what's the agreement?
 
10:03 PM
Rbrb all :)
 
10:43 PM
Good night everybody!!!
 
re-cbg all
 
10/12 games - against blue deck players - that's quite an achievement
 

« first day (1749 days earlier)      last day (3184 days later) »