« first day (1682 days earlier)      last day (3258 days later) » 

12:17 AM
If the Python and Ruby were drowning and I could save just one, it would be Python.
 
DSM
12:27 AM
If Python and Ruby were both drowning, I'd save Ruby. It's what Python would want, because she is open-hearted and generous.
 
If Python and Ruby were drowning, I'd import lifejackets and save them both :p
 
If Python and Ruby were drowning, it's obvious neither of them could handle it, so they should just go keep Poseidon company instead.
 
1:15 AM
@JRichardSnape If the Python and Ruby were drowning and I could save just one, it would be Python. If Python can swim, then I'd just walk away.
 
1:25 AM
:D
 
 
1 hour later…
2:45 AM
cbg
 
@AnttiHaapala cbg
 
 
1 hour later…
3:57 AM
http://finance.yahoo.com/q?s=CBG CBRE Group, Inc. (CBG) -NYSE
38.29 Up 0.04(0.10%) May 22, 4:07PM EDT
 
Somehow that got two upvotes. I don't get it.
 
4:21 AM
cbg
 
 
2 hours later…
6:19 AM
cbg
 
@JonClements cbg
 
Cabbage puppy :-)
 
6:35 AM
@Ffisegydd I'll raise your "copious amounts of apple juice" for my "don't drink my brothers 'home brew' moon shine"
Hahaha.... our PM is now trying to negotiate a "better deal" with the EU with the bloke he tried to block as EU council president...
 
7:03 AM
wtf? Cameron's already blocked any EU citizen in the UK from voting in the referendum
Seems unfair and a bit strange - since that'd no doubt bias the result as he'd like it...
 
Cbg
@JonClements oh, blimey
 
7:21 AM
@JonClements do you mean the advertisements?
 
strangely not :)
sadly not everything is the BBC :)
@JanDvorak don't see you around that often these days - how's things?
 
Mostly just lurking
 
@JanDvorak I found a d3 doc that explains that exact mystery from yesterday :)
 
thanks
Very nice indeed
 
7:36 AM
Yeah :)
It's written by the guy who made d3, so you'd hope it'd be good :)
@JonClements if you don't mind sharing, what did you decide about that job?
 
7:48 AM
@Robert still undecided :)
 
moneymoneymoney MONEY
 
is numpy more functional than scipy?
 
or one could go for being relatively happy and less stressed BobbyG :)
 
Well, true :)
I'm more of the "jump into a stressful job and figure it out" type, at least when applying for jobs
cortisolcortisolcortisol CORTISOL
 
8:12 AM
@JasonZhao they are different things
 
oh fantastic... looks like I'm going to be baby sitting a dog for the morning
little yappy bugger - can't wait
 
another dog.
 
well - it's already here in the garden
yapping away
already have a fairly good hangover... so yapping isn't exactly helping my head
not even exactly what I'd call a proper dog either
 
I misread as "little yappy burger". Was confused
 
@JanDvorak I don't think its owner would appreciate it if I did make it a burger
 
8:21 AM
Interesting how "Made it food" could mean "cooked for it" OR "cooked it"
 
although it's sorely tempting right now to just strangle the little git
 
8:57 AM
umm... that's a new one - plugging the phone via usb to the laptop causes some quite random behaviour
cbg @Flexo
 
@JonClements cbg
 
@Flexo potato?
 
you say potato I say potato
 
Ooh ooh I know! Lyrics that lose something when written down!
 
Money talks
But it don't sing and dance
And it don't walk
And long as I can have you
Here with me, I'd much rather be
Forever in blue jeans
 
9:02 AM
totally expected to get rickrolled then
 
Not a Neil Diamond fan then? :p
always find my playlist "interesting" when on random
 
Yeah, but what make of jeans
 
@RobertGrant well - mine are mostly £3 from ASDA :)
 
Wow that's amazing
I generally buy 1 pair that I like, wear them for 18 months then buy another pair
 
9:09 AM
Got a pair for £140 a few years ago
 
When you were in Primrose Hill? :)
What were they, second hand?
 
oh - they were on offer - down from £490
 
Ah, makes sense :)
The worst I ever did was spend 50 quid on a belt
 
can't see how they differ from my £3 ones :p
 
Which was partially a currency conversion error on my part
And by the time I realised, I was already paying and was too embarrassed not to buy it
@JanDvorak very awesome d3 tutorial. Starts off very basic (as in: what is a variable in javascript) but quickly works its way up to very useful stuff
 
9:12 AM
Neil Diamond -> 50 Cent - interesting mix
@RobertGrant Thanks - that reminds me I need to replace my belt - it broke the other week
 
You obviously underspent by 45 pounds
 
Well - it was a gift from a friend - so no idea how much it'd cost etc...
OMG - there's a creeper in the room - run run run away!
cbg @Ivan0x32
 
I'm only joking :)
 
ahh.... another ND track - one of my fav's...
 
Okay. Data question. Is 20 degrees C twice as hot as 10 degrees C?
 
9:23 AM
Ah. Interesting question.
 
@Robert fairly sure that's how C works
 
Can I guess before you tell me?
So my instant reaction was: yes. But then I thought that actually -273 degrees C is the real zero, so the actual ratio between the temperatures is 283:293
Okay, now tell me :)
 
I would say "No, because it's Interval data as opposed to Ratio."
 
Yes, that was my exact thought
Having just read this
 
Interval data has a meaningful order and has the quality of equal intervals between
measurements, representing equal changes in the quantity of whatever is being
measured. The most common example of the interval level of measurement is the
Fahrenheit temperature scale. If you describe temperature using the Fahrenheit
scale, the difference between 10 degrees and 25 degrees (a difference of 15 degrees)
represents the same amount of temperature change as the difference between 60 and
75 degrees. Addition and subtraction are appropriate with interval scales because a
Taken from Statistics In A Nutshell, Boslaugh 2013.
 
9:26 AM
That definition of interval vs ratio is what prompted the question. Very glad it works the way I understood it.
Thanks :)
 
It's an interesting distinction, but doesn't make much difference in everyday life.
 
"I'm more than cool - I'm 0K"
 
Yeah
@JonClements :)
 
old joke - but still a goody :)
 
Besides, if you touch something that's 30 degrees C and then something that's 300 degrees C, you'll quickly realise that the second one isn't 10 times hotter, it's one billion times hotter. #proofbynaiveundergrad
 
9:29 AM
Exactly, especially when you compare it to 3 vs 30.
 
okay - but no one in their right mind would touch something 300C?
 
That's why it's double blind
 
I have and I'm pretty sure I'm in my right mind.
I once pulled something out of a furnace in a rush. Luckily I had nitrile gloves on which didn't completely melt onto my fingers.
I was very quick though :P
 
@Ffisegydd you're an RO here... I think you should re-think your sanity :p
I almost got expelled from school once for err.... let's say that potassium and water don't mix
successfully destroyed a testing chamber - yay me and all that
 
call that "too much enthusiasm"
 
9:35 AM
@JanDvorak I'll go for that
was never good at chemistry :)
 
How much potassium did you drop into water, exactly?
 
enough to explode and get the science building evac'd
luckily the test chamber had enough resistance
 
@JonClements I'd say they mix a bit too vigorously, really. Although true they don't mix in the strict chemical sense.
 
@JRichardSnape never worked out chemistry - covalent and what's the other one
 
9:41 AM
ta
 
also, metallic
 
I imagine your experiment was more iconic in the eyes of your compatriots
 
van der Waals too.
 
Not sure about how metallic bonds are classed. Tries to recall 18 years ago
 
Hydrogen bonds too
 
9:43 AM
Don't they have a cloud of free electrons or something?
 
Before you count vand der Waals forces, you should include the much stronger hydrogen bonds
 
@JRichardSnape I can't even remember how many states of matter there are now
 
Wow - it's all coming flooding back
 
metallic = bound by a cloud of free electrons
 
@JonClements I'll guess 4
 
9:44 AM
Metallic is similar to ionic except the electrons are "free" and so can move (part of why metals can conduct IIRC), as opposed to ionic where they're static.
 
solid, liquid, gas and plasma?
 
States of matter: {laughing, no laughing, doesn't, legal} iirc
5
 
And a Bose-Einstein condensate I think.
 
People usually forget plasma, but that's my favourite
 
@JonClements yes. Although I like @JRichardSnape's ones.
 
9:45 AM
also, degenerate matter in the middle of neutron stars or quark stars
also, blackholeium
 
think there's 7 now ?
 
Is that not just plasma (the centre of neutron stars etc)?
 
I'm sure our @Ffisegydd will know this :)
 
Is blackholeium a thing? heads to google. I also thought plasma was in the centre of stars
But am very much prepared to stand corrected
 
plasma is in the centre of ordinary stars
 
9:46 AM
In physics, a state of matter is one of the distinct forms that matter takes on. Four states of matter are observable in everyday life: solid, liquid, gas, and plasma. Many other states are known such as Bose–Einstein condensates and neutron-degenerate matter but these only occur in extreme situations such as ultra cold or ultra dense matter. Other states, such as quark–gluon plasmas, are believed to be possible but remain theoretical for now. For a complete list of all exotic states of matter, see the list of states of matter. Historically, the distinction is made based on qualitative differences...
 
neutron stars are made out of neutrons; electrons got squished together with protons by the sheer amount of pressure
 
Don't speak to me about neutrons. If I could live in a hydrogen house I'd die a happy man.
 
Ahh - I see the distinction. Nice to have someone who knows what they're on about around - checks the nonsense I spout a little
 
quark stars are a theoretical construct where the gravity is too big even for neutrons
 
Ummm "Four states of matter are observable in everyday life: solid, liquid, gas, and plasma" - when do I ever observe plasma in "everyday life"
 
9:48 AM
lightning
not every day, but you get plasma in the path of lightning bolts (again, if i remember right)
 
fire
 
Some types of lighting bulbs
 
thought that was just electrons... not plasma
and I thought lightning was just EM
 
Plasma TVs :P
 
lightning bolt = tons of electricity rushing through ionised air
 
Plasma in your blood runs
 
fluorescent bulbs are essentially an inert gas that is kept ionised by a steady stream of electricity
 
Well - I have learnt that the range of plasmas is far wider than I thought. And with that, I'd better go and do Bank Holiday things. Thanks for prompting thinking once again, all :) Rbrb
 
plus a coating that turn the resulting emissions into visible light
 
@Ffisegydd yeah - can't argue that point can I... good job sir :)
 
9:56 AM
It's funny how much you forget, even when you're surrounded by science.
 
wow - just going around the news - new world land speed record to be set
seriously... is 763mph not enough for a car?
 
and now the aim is 1050mph
 
I think a more useful thing to do would be to put massive funding into battery tech by making the Le Mans electric-only, and you can't swap out the battery.
 
it's great we can do these things - but wow - 1000mph in a car
 
10:02 AM
Wow, though Audi won in 2012 in an etron R8
 
My old one only did 180 after de-limiting
and then you can't drive more than 70 in the UK anyway
 
WHO ARE YOU
 
I just get occasional glimpses of fabulous wealth :)
Oh wait. Maybe you didn't mean you had an R8.
 
an M5 actually :p
 
10:08 AM
Oh, okay. Not quite an R8, but still, pretty zoomarrific
 
@Robert pretty much this model actually youtube.com/watch?v=rnFGLg_-z1o
 
No youtube here :(
 
use to have an RS4 as well
 
Hey all
Is filtering in a list comprehension done after map?
 
greetings @Bartlomie
 
10:13 AM
Example?
 
[tuple(map(sum, x, pos)) for x in positions if x != (0,0)]
 
The filtered values won't be operated on.
 
forgot about this one - but a scary vid: youtube.com/watch?v=jJ5Ur3H9svg
(would not want to be in a car with that driver)
 
11:08 AM
D3 maps - it's like magic.
 
11:34 AM
Afternoon folks
collapses into chair
Another presentation done
Only one person falling asleep
 
Was it you? Did you fall asleep in your own presentation?
 
If the star charts are any judge, I guess some congrats go out to Fizzy!
No I didn't! Was a near thing though
 
Well done :)
 
@IntrepidBrit In my screen @davidism has 17 :D
 
Did you give out 3D printed stuff in the end?
 
11:36 AM
@RobertGrant Yep. No-one took them this time. Blessing and a curse haha
 
What are they?
 
Two little concentric toroids printed at different angles.
One is done "the best way", and the other is printed at an odd angle
 
Guess the output.
1 and 0 and 2 or []
 
False?
Tries
Oh.
Yeah, of course lol
 
Shows: 1) the print angle matters for appearance 2) Shows what makes 3D printing ground-breaking (printed as a single object) 3) "Seams" that can appear in 3D printing
 
11:41 AM
I think that would make an interesting interview question ;)
 
I forget that...the key thing there...is like that
Also didn't even know that 1 and 0 gives the answer it does.
 
Hmmm, that is like that in JavaScript also ;)
 
Quite interesting
 
Oh, actually I think I remember this - with and it just returns the first falsy value, or if it's the last value it just returns that without checking if it's truthy or falsy
However my memory's terrible, so possibly not
 
Sounds about right.
So you get 0 or [] and because 0 is Falsey it returns []
 
11:51 AM
Yeah
So 2 and 3 and False gives False, but 2 and 3 and 0 gives 0
And 2 and 3 and '' gives ''
 
Yeah I know :)
Just weird that it doesn't resolve a boolean expression to a boolean value directly, but I guess it could be useful
 
Even that is documented ;)
 
And/or it was a performance enhancement, but I'm assuming that's pretty minimal
 
It's used quite often in Javascript or when golfing anywhere
 
11:56 AM
I guess though the or thing where it's something or [] is really useful, and uses the same principle, so maybe I just need to think more
 
But doesn't that break from the Zen?
 
even Perl has doSth or die
 
Explicit is better than implicit?
 
Its more commonly used in JS.
 
11:57 AM
is that why Python will never have explicit braces? :-D
or explicit variable declarations
 
@JanDvorak but it has explicit indentation instead :D
 
I find the indentation to be more explicit than braces ;)
 
@IntrepidBrit yeah that thing seems to really mean "Anything Guido reckons it should do automatically counts as explicit anyway"
@Ffisegydd back to you, did you turn down that job on Friday?
 
It's this Friday.
Can't talk at the moment sorry mate, busy busy.
 
Cool
Interesting: annotate.io
 
12:14 PM
>>> from dis import dis
>>> dis("1 and 0 and 2 or []")
  1           0 LOAD_CONST               0 (1)
              3 POP_JUMP_IF_FALSE       18
              6 LOAD_CONST               1 (0)
              9 POP_JUMP_IF_FALSE       18
             12 LOAD_CONST               2 (2)
             15 JUMP_IF_TRUE_OR_POP     21
        >>   18 BUILD_LIST               0
        >>   21 RETURN_VALUE
>>> dis("1 and 0 or 2 and []")
  1           0 LOAD_CONST               0 (1)
              3 POP_JUMP_IF_FALSE       12
 
nice
 
It looks like whenever there is a series of ands, on failure, it jumps to the next non-and expression
 
1:12 PM
morning everyone
 
What is the point of lines 20/21, 25/26, 30/31, 35/36?
 
F4z
it's to add 0 if it's not there
 
but it does something else
 
F4z
what do you mean it does something else?
 
1:21 PM
What does it do?
 
F4z
it returns 2 instead of 3, same structure of if and elif but for somereason this one doesn't work..
 
another hint: what is the output for "I do not want not to help"?
 
F4z
what do you mean>
 
Try it, then try to think about why
 
F4z
i've been trying, i came here for someone to help me figure out why this is happening or how I can achieve this
 
1:25 PM
read lines 17-36 aloud. Think about what they do. It's not what you want them to.
 
@F4z I think he IS trying to help you figure it out
 
F4z
i understand, i'm reading through lines 17-36 to figure out what's happening
 
Big hint: if word_dict doesn't have "is" and you encounter "is", what is word_dict["is"] going to be after each line? ultimately?
Big question: why do you even bother setting zeroes for keys that you don't want to count?
 
F4z
i want to display the value corresponding to the length, i.e. length of 1 : 0
 
That's not what you do. This counts the occurences of each word that is four characters or shorter
 
F4z
1:32 PM
i'm trying to count the occurrence of each word with specific lengths
 
big hint: lines 18-31 do not have an effect because of what happens on lines 33-36
 
I'm curious about this code, but can't get to dpaste.com :)
 
@RobertGrant It's very inefficient
 
F4z
lines 33-36 add 1 to the value of the key if the word is a length of 4, if not add 0
 
@F4z They don't
and if you meant += ... you might encounter another issue
I can compress lines 15-48 to 6 lines
 
F4z
1:39 PM
i just started python so give me a bit of space, either way, that's very interesting, i'm gonna keep trying
 
When you want to see the six-line solution, let me know. But hints for refactoring: do use inequality tests, then move some of the logic from then to else and have it execute unconditionally.
 
@F4z I haven't seen your code, so this isn't a comment on it, but what's your previous programming experience?
 
F4z
i know some basics of c# vb.net and i started with python a while back
i've been getting along finewith certain stuff, but for some reason this kind of thing is taking me a while
 
You might still be getting into how to think algorithmically
You'll get there :)
Just takes a bit of practice
 
F4z
definitely
 
2:10 PM
cbg all
Just wanted to ask if its possible to use .replace() with bytes object's. Ive tried to decode('UTF-8') then .replace("\x00" , '""), but the string still has all "\x00". Am i just decoding to the wrong codec or something?
oh i found what was going on. i have to encode outside of the for loop, im working with a list of byte object.
 
Woohoo, cloudy Jira
 
2:41 PM
Although cloudy Jira is quite slow
 
cbg all
 
3:01 PM
Cbg
Rbrb all
 
3:21 PM
@RobertGrant just signed up to get notified
 
 
1 hour later…
4:32 PM
cbg again all,
Im having a string step issue, the string"00440049004d002d0031007200"
im trying to turn it into "44494d2d3172" .the closest ive come is " [2::2]" witch outputs "404040203070". What am i doing wrong here,this is very confusing for me: /
 
Tried "00440049004d002d0031007200".replace('0', '')?
 
there are '0' in the string i need to keep.
not in this exact string but the list of string im changing this same way has "0" that need to stay.
 
>>> msg = [78, 111, 119, 32, 72, 105, 114, 105, 110, 103, 0]
>>> map(chr, msg)
['N', 'o', 'w', ' ', 'H', 'i', 'r', 'i', 'n', 'g', '\x00']
>>> ''.join(map(chr, msg))
'Now Hiring\x00'
>>> print ''.join(map(chr, msg))
Now Hiring
pretty cool ad
Probably reduce unqualified applicants that way.
 
5:02 PM
yeah .... there have been much harder ones ... thats a pretty low bar
that php one in c# though ... wtf
@Death_Dealer ''.join([y for x in zip(s[2::4],s[3::4]) for y in x])
 
That's why it's the daily wtf
 
Ok wow i wasnt even close.. im gonna have to study that. Thanks Joran^_^
 
5:46 PM
Three upvotes on this one today: ux.stackexchange.com/questions/51346/… WHY TODAY?!?!?!?
 
Joran i have to compliment you on the nested loop, its quite nice. This is something ive been trying to do for awhile thanks again.
 
at first i used itertools.chain ... but the nested loops is plenty clear here imho
@AaronHall werent we just haveing a big talk about that the other day?
 
@JoranBeasley you don't need to convert it to a list, you can just pass the generator to join.
(although maybe the list is more efficient since the length is known in advance)
 
It's memorial day, I think I'll visit UX SE and vote for Aaron Hall's question about credit cards, durdedur...
 
6:02 PM
@davidism hmm i guess that might be an argument for chain ..
for comprehensions though I think lists are faster ... unless memory is a problem of coarse
 
6:23 PM
Ramen noodles omnomnom (actual takeaway ramen, not the stuff out of a packet)
 
7:08 PM
happy memorial day, by the way.
 
7:33 PM
Cbg
@Ffisegydd got a d3 graph working! Looks fine in opera, chrome and ie; looks wrong in ffx. But it's a start :)
 
Link @Bob?
 
Nah just on my laptop
It's the world's simplest graph; nothing difficult :)
or impressive
Just thought I'd keep you posted :)
 
Cbg
In flight to Germany! :)
 
Cabbage and happy memorial day
 
7:50 PM
Happy memorial day!
 
 
3 hours later…
10:39 PM
Hi, sorry, I'm just writing my first ever chat message
 
@ytpillai Hey :)
 
@michaelpri hey back :)
 
What's up?
 
I'm trying to figure out how to install Hadoop on Koding.com
 
Sounds cool
 
10:42 PM
Yeah.....sorry man casual talk isn't my thing
 
Hehe, it's not my strong suit either
 
I'll brb, gotta go eat
 

« first day (1682 days earlier)      last day (3258 days later) »