« first day (2078 days earlier)      last day (2867 days later) » 

9:00 AM
I don't particularly like banks :P
 
Oh I don't know. I quite like my fitbit, my acer, my peugeo ... oh dear.
 
Google will save us.
 
Or Facebook. Martijn needs to get us all recession-proof FB jobs
 
9:01 AM
Brilliant
 
awww.. you were faster..
 
best (though still very sad) comic in a hungarian newspaper..
user image
9
 
Well, look at it this way:

a) It ain't over until it's over
b) We're not leaving Europe. We're still in every other major European organisation
 
@PeterVaro That is brilliant, if poignant
 
9:05 AM
@IntrepidBrit I thought you will start paddling..
:P
 
Just means the UK will rotate :P
 
:D :D :D
 
I feel like everybody in this caht is from UK
 
@IntrepidBrit True that. Also - now is the time to regroup, address the alienation of people who think this is somehow a working class protest and try to extract something good from uncertainty.
 
UK is Pythonland
 
9:06 AM
@khajvah I'm from hungary, though at this very moment I'm in the UK..
 
2nd referendum! Best 2/3!
 
That's what I keep saying about IndyRef. If it passes this time, will it be 2 out of 3?
 
Looking at the 10 recent speakers, at least 5 are either not currently in the UK or from the UK.
 
But ultimately don't forget - referendums aren't actually legally binding in the UK
 
@Ffisegydd Double of quits!
 
9:07 AM
Yeah that's what I wondered about
 
@IntrepidBrit that's a very thin hope you know...
 
@IntrepidBrit Already that story in the guardian about MPs trying to renege. They shouldn't though.
 
Half of the UK right now:
 
How can they renege? They didn't promise anything.
@MartijnPieters lol
I love Community
 
Think its relatively likely that some negotiators will push for continued membership of a common market even if that means freedom of movement. I suspect how totally free the movement is will be examined across the EU anyway.
 
9:09 AM
@MartijnPieters reminds me of how much I loved the first few seasons of that show..
 
Why don't you work models? Why do you fail me?
 
Apparently the new season will be better; they got rid of the guys who pushed out Dan Harmon
 
@RobertGrant renege the wrong word, but you know what I mean...
 
@Peter Troy was missed
 
@JRichardSnape nope :)
 
9:09 AM
Aww yeah. Loved community.
 
@Ffisegydd They're lazy and work shy. I suggest you vote to leave Data Science.
 
Just like 95% of how the UK works, it's mostly just historical precedent. Basically, we just ran the world's most comprehensive and expensive poll.
They should act on that referendum, but it's not like us Brits can arrest them for not doing it.
 
@RobertGrant I thought you linked the story above? I think I'm missing a joke. Would you have your fingers in your ears if we were IRL?
 
2 hours ago, by Ffisegydd
"Fizzy FizzySon resigns as Dark Council PM after referendum seeking to invade Europe is unsuccessful. More news incoming."
 
@JRichardSnape I mean I don't know why you think that MPs shouldn't do that
 
9:12 AM
Ah, I see.
 
For some reason my stdev is coming in as double of what it should be every time. Can't see a factor of 2 anywhere though.
 
Ffisegydd: Now twice as deviant.
 
It's not consistently 2 either D:
 
@RobertGrant I guess there is a point there. But you get into a debate about whether representative democracy trumps direct democracy or vice versa. Which is interesting and hard to resolve legalistically.
 
Why have you betrayed me MCMC? I thought we were friends.
 
9:14 AM
@JRichardSnape we are a parliamentary democracy, so I think that should win :)
 
Accidentally gone single sided when it should be double, perchance (or vice versa)
@RobertGrant How did I know you'd say that?
 
Ooooooooh I'm stupid.
 
@JRichardSnape you voted for me to decide things for you, so I now am the authority on what you'd say
 
My answer to "why shouldn't they?" to be honest is pragmatic - I think it would lead to civil unrest on a large scale. While that's one way to shake things up, it's not my preferred method.
wonders when he elected Bobby, but congratulates past Snape on a good voting decision
 
Wasn't turnout 72%? So about 35% of the country's voters want to leave
 
9:17 AM
35% of the voters wonder why the Queen tolerated all this wasteful chitchat.
 
@RobertGrant I know - as I said about 4am, I wonder what on earth the 12m registered voters that did not vote were up to?
 
They were spoiling their ballots and writing BRECTUM on them
 
... man
I wish I had written BRECTUM on my spoiled ballot
 
Already had the boss of BT on the radio saying "60% chose to remain or abstain". I wonder if he's hoping to champion "remain or abstain" as a campaign slogan.
 
In lighter news, my new hard drive sounds like someone squeaking out a fart when it starts up.
 
9:19 AM
Hmm - amusing, but also worrying.
 
What I don't get about it is a) why do it in the first place, and b) why not put conditions on action following it, e.g. minimum 75% voter turnout and 65% majority
 
Happened with the 1979 Scottish home rule referendum. It was not popular.
 
@Ffisegydd Go on - reveal your stupidity ;)
 
I think there were rules like "abstaining counts as an implicit vote for remain in uk" and as such, the majority had to explicitly be FOR home rule
 
Oh yeah, that's even simpler
 
But I'm sure it wasn't too popular as it stacked the deck
 
@PeterVaro Told ya ;)
 
sorry for the edits.. (and therefore pings)
yeah you did..
 
@PeterVaro that's cool
 
@JRichardSnape tau = 1/sigma !!!!!!!!!========= tau = 1/sigma**2
Where !!!!!!!!!========= is the dude_can_you_not_read_of_course_they_arent_equal operator that's coming in 3.7
 
9:23 AM
As they said in Independence Day:

*holds out cigar* "Not until the fat lady sings."
 
@IntrepidBrit which Independence Day? Farage stated, yesterday was the one :P
 
I'll never call it our Independence Day. You'd have to be pressing a bayonet to my forehead before I'd grudgingly say it
 
They're already vying for Corbyn too.
 
@IntrepidBrit I was very sarcastic you see.. That Farage fellow.. it is a tragedy, that everywhere in europe all the nationalists, radicals, and far rights are getting stronger and stronger..
 
@Ffisegydd Hahaha they can try ...
 
9:28 AM
and we all know what that actually means, or where this thing is heading forward to..
 
@ZeroPiraeus I wouldn't be surprised if they didn't, and I wouldn't be too surprised if they succeeded.
Fixed my bugs. Me and MCMC and best buds again.
 
anywho.. since I cannot change the UK people, nor change the way they voted yesterday by only sitting in a window and smoking cigarettes, and talking utter nonsense in a software development chat room online -- I think it is time to take a shower and start the day :)
 
They have absolutely no chance of defeating him; those extra quarter million new members didn't sign up because they're fans of Liz Kendall.
 
All I have to say is AAAARRRRGGGGHHHH. Now we can talk about something else :)
 
@ZeroPiraeus They don't get to vote though, and if they can spin it so it's his fault that we're leaving due to his previous opinions on Europe and his poor showing during the referendum?
(they don't get to vote in a leadership challenge)
(I assume)
(but yes I know that they can vote with their feet and oppose any challengers in that sense)
(but he'd still be out)
(I like brackets)
 
9:39 AM
There's some disagreement about whether he's automatically on the ballot if there's a challenge, but even if that argument were lost, there are enough MPs in the PLP who recognise that excluding him from consideration would be catastrophic that it wouldn't happen. If he's on the ballot, he gets a bigger majority than last time.
Also, who says he had a poor showing? He got 70% of Labour voters to back his position; Cameron got 40% of Tory voters to back his.
He's also closer to the mood of the country (not an EU superfan, but pro on balance) than any challenger.
 
I wonder what will be the next possible step for UKIP, I mean they truly fulfilled their purpose, right? no one really needs them anymore..
 
They'll go full Nazi and say "that's step one, now lets finish the job and get rid of all the foreigners". Hard to say how successful they'll be with it.
 
you think so? the other moment I just read that UKIP wants free access to the EU market after the brexit.. will they change their goals now?
will they campaign to connect to the EU back again?
that would be awesome, the best troll party ever :)
 
UK Integration Party
 
:D :D :D
 
9:48 AM
@Zero to be fair, I don't know much about the Labour internal politics, I was just going by what little I know :P
And also by what talking heads on the beeb say.
 
The most onerous interpretation of the rules is that he needs 35 nominations from MPs to get on the ballot. The least onerous interpretation is that he qualifies automatically as sitting leader. He nearly didn't get the 35 last time, but that was when he was a 500-1 outsider. MPs in many constituencies will have it made very clear to them that if they try to stop him from standing, they will be deselected by their constituency parties.
 
Incidentally, again from the little I know, I'd say that a lot of other labour members got that 70%, Corbyn hasn't been seen to be out there throwing it about with his pro EU speeches.
At least compared to other Labour politicians.
 
cabbage
just heard about the brubbish situation
 
One of the MPs has already gone on record saying that a change in leadership is needed (I know it's just one, but it could be a start)
 
I assume we'll all be living in interesting times
 
9:55 AM
I prefer interestgin times.
 
Only if they lower house prices, preferably in the next two weeks
 
@Ffisegydd He's not Pro-EU. He campaigned against joining it in the first place.
 
Exactly.
That was my point, though it may not have come across well in text.
 
Ah sorry, I thought it was mild pondering.
 
No I was basically saying that he never got out there and seemed to really passionately fight for it. I'd be interested to know how he actually voted in the end.
 
10:01 AM
with a brectum
 
@PeterVaro Maybe that should make you ("you" being the rEU nations) question how the EU is operating and hopefully reform it before other countries start trying to replicate Brexit. If you can take away their veil of pseudo legitimacy, I think they'd return to whence they came and remain minority racist parties.
 
My thing is still just the waste involved in moving the EU every 6 months. Possibly I've got it wrong, but that seems utterly pointless.
 
I'm mildly worried about paying customers of the EU dispersing in a heartbeat now
 
Swedish and Dutch parties have already made announcements calling on their gov'ts to have referendums.
 
but I don't know how economics work so I'm only mildly worried
 
10:05 AM
@AndrasDeak Don't. Germany will keep some form of the EU beating because it helps to keep their currency devalued. The problem with the Deutsche Mark was that the German economy was so strong that it meant no-one could afford German goods. Other Euro countries help to depress the value.
 
anybody using django rest?
 
@IntrepidBrit oh we should really switch to Euro then. I wonder how much the Germans would be willing to pay for that:D
 
(Not saying the other EU countries don't benefit from the arrangement, nor that Germany is doing anything wrong. Just alleviating your worry about ALL the paying members leaving)
 
@Ffisegydd Honestly, that's just not true. I get emails from the party as a member, so I know he's been running all over the country, making the case for in. It's certainly true that his position has been that of a critical friend rather than a zealot on the issue, but he's been quite clear where he stands. From what I've been able to see from over here, the UK media has preferred to cover the civil war inside the conservative party instead.
 
when using model viewset i get full url for image fields in reponse. But when using APIView only related path to file is returned in response. How to get full url even when using API view?
serializers for both model viewset and api viewset are same
 
10:08 AM
@ZeroPiraeus If one party emerges that says: "we'll fix the UK private media" without being some psychotic Randian freemarketeer, they'd get my vote.
 
[cough] Ed Miliband vs. Rupert Murdoch.
 
Haha, I didn't say they'd be successful
 
@ZeroPiraeus It is true that he seemed to never fight passionately about it, in the sense that that was the opinion that I got as an interested outsider to politics in general (which is the only data I had). That being said, I'm willing to believe you and accept otherwise if you say so, as you will undoubtedly have better information on it (even ignoring any potential biases you may or may not have :P).
 
Biased? Me? ;-)
 
Yeah I heard he was against Brexit, but that was about it
Oxford Hackspace is part-funded by EU money; that'll be fun for them!
 
10:14 AM
IF the Tories are sensible (this batch aren't), then they'll promise to at least match ALL the existing EU funding to minimise the market shock
 
Heh. Like that £150m that could be spent on the NHS, or whatever it was?
 
Oh, UK voting to leave was enough to make it to the front page of news sites. The "50 people injured in Germany shooting" news didn't seem more important than football.
 
That also lessens the fears that places like Cornwall and Northern Ireland will be completely scuppered by leaving.
@sudheeshks Looks like the answer to that is no. But if you've got a question, just ask. No need to ask to ask (sopython.com/chatroom)
Sorry, just re-read your question. Does REST have access to Django's urlresolvers?
 
10:35 AM
@sudheeshks yes
 
@Ffisegydd (these aren't brackets, they are parentheses)
 
Corwall voted to leave. But please don't take our EU funding when we do!
Did those voters even think?
 
@MartijnPieters I thought voters are people:P
 
10:43 AM
<3
they're voters, what you'd think they'd be thinking about
 
Sturgeon has already said that 2nd Scottish ref. is on table.
Bai Intrepid!
 
<3
lol
hmm swedish original referendum was 52-48~
in Finland 57-43
 
as I said earlier, I think somewhere around midnight last night, we entered into a parallel universe.. well, it looks quite funny from this POV :P
 
Is Antti a python 2 evangelist in this world?
 
10:45 AM
She can yam right off on the horse she rode in on.
 
@AndrasDeak nah, he will be a PHP evangelist
 
:D
gotta go now, so let me just note again that people are a bunch of bastards
most of history's unfortunate turns can be explained by that:D
 
@AndrasDeak still luv it :)
take care!
 
bye @Péter:)
 
11:12 AM
cbg
 
ah
so Cameron resigned
gooooood gooooooooooooooooood
you'll get what you ordered...
 
Yeah, like 4 hours ago :)
We're already at the second or third stage of grief here
 
... or well into our second or third drink ...
 
I think I need to go buy more beer:D
 
11:29 AM
@AnttiHaapala What are you referring to there?
 
Apparently 96% of Gibraltar voted to stay in the EU
That'll be interesting
 
Did every country suddenly vote? I’m confused.
 
It's a British territory
 
@poke 1994
 
Ah, I see
 
11:32 AM
this is getting rather insane
 
But now, will it leave Britain and become independent, or join Spain?
 
people who do not even give a shit to actually go and vote for politicians now want to only decide on the "biggest" questions
 
Yeah, and using the smallest of brains
 
@RobertGrant is gibraltar in schengen? :P
 
Dunno actually
No, apparently
 
11:34 AM
ah no :D
lol, what a shitty place that'd be
 
One guy here shorted the pound last night. Smart.
 
:P
gambling nonetheless
hmmm
The changes Cameron negotiated in February will not come into effect,
so now Britain will now stay 2 years in the union without those...
 
@RobertGrant Probably shared sovereignty, if Gibraltar wants it.
And despite being a staunch defender of Gib. remaining in the UK, I think shared sov. might be better for them if we leave the EU
 
11:49 AM
why'd you actually care? :D
 
If they want to stay in the UK, I've got their backs.
I'm handy with a screwdriver
 
I'd be pretty happy to give Åland to Sweden if Åland wanted it... and Sweden would accept.
hmm
stupid swedes didn't want to take Åland in exchange for some Finnish-speaking areas up north.
British invasions abroad.
British sailships also attacked my hometown. Smart move.
They attacked here and burned the pine tar storage area...
 
@AnttiHaapala Why not?
 
that had the pine tar they needed for their ships... and was actually paid already, by British companies
@IntrepidBrit they didn't want to do an exchange methinks
 
We're equal opportunity invaders Antti
@AnttiHaapala So, they wanted Åland AND those Finnish-speaking areas up North?
Aside: how does one pronounce Å?
 
12:04 PM
Long o, (aw in awful/awesome in most dialects)
@IntrepidBrit the division of those areas up North were made by Sweden and Russian empire in 1809...
and Finland offered an exchange in 1918
currently the problem is that Åland gets more tax transfers from mainland than they pay taxes; mainland people are not free to move there to live, and they don't have conscription like the mainland does and so on...
... yet they whine a lot
 
Sounds familiar ;)
But I guess the residency thing makes sense. It's the same with Crown Depencies and Overseas territories for the UK
 
hmmm sorry I got it wrong, one can move to Åland but cannot have real property there :P
unlike, I move to sweden and say: "hey I buy this" - "ok"
so you just need to rent an apartment there for 5 years, prove that you can speak Swedish and you can apply for a permit to actually own real estate there :d
 
Weird. TIL that you can trick Python into having multiple "identical" keys in a dict: stackoverflow.com/a/38012975/4014959
 
12:20 PM
Except they are not identical? :P
 
That's fun. And wow that OP
 
>>> class RandomKey:
        x = 0
        def __hash__(self):
            self.x += 1
            return self.x

>>> k = RandomKey()
>>> d = {k: 'foo', k: 'bar', k: 'baz' }
>>> d
{<__main__.RandomKey object at 0x000000DB45F95E80>: 'foo', <__main__.RandomKey object at 0x000000DB45F95E80>: 'bar', <__main__.RandomKey object at 0x000000DB45F95E80>: 'baz'}
Having multiple identical keys ;P (without quotes)
 
Heh
Yeah, it's really just the hash. I seem to have a vague recollection that you can provide a tuple containing a mutable type -_- but I'm not sure
 
It’s not just the hash, it’s hash + equality… but hash comes first :P
 
I wonder if that's on dontusethiscode yet
 
12:25 PM
@PM2Ring there would be nothing interesting there,
 
Note that my 1st example kinda works & it doesn't override __hash__ or __eq__
 
... except that json doesn't like anything else besides str (and unicode in Py2) as the keys.
 
morning everyone
 
evening
or gafternoon
 
12:28 PM
I need an idea for a really simple python program to build. Am teaching a friend how to code, and I'm at a loss for ideas. Thoughts?
 
morning cabbage corvid
 
My thoughts when I first started reading that question was that it's an XY problem. But then I saw the code for that class & got intrigued.
 
@EchoLogic Ask them what they would like to build. Failing that, my go-to is a guessing game. The computer "thinks of a number between 1-10" and the user has to guess what it is
 
@PM2Ring It still kind of is; OP should have made the form data encoding themselves instead of hacking into the dictionary imo
 
@EchoLogic Printing simple shapes like rectangles and triangles out of asterisks appears to be popular. :) I guess it's a reasonable way to learn about looping.
 
12:33 PM
@WayneWerner I did ask, they told me to think of whatever I believe to be appropriate :P
 
Morning cabbage.
 
@PM2Ring Yeah, I feel like that's a good path to go down.
 
@poke Yeah, I said something like that in a comment:
Ok, this is weird, but it's do-able. FWIW, I'd probably just construct the parameter string directly, rather than via a dict. But I'll post some code in a few minutes. — PM 2Ring 39 mins ago
 
cbg back. Morning @MorganThrapp
 
Hi, Dennis.
 
12:34 PM
I have this quick issue. What am I doing wrong? paste.ofcode.org/C9YB4Pa3sEC4G2Jw4ZgX4X
 
@WayneWerner James promised "(new post every day, except weekends)"...
but the last post was from 2013
 
@EchoLogic The guessing game is a pretty decent choice. It's fun, and it can be done in a reasonably few lines of code.
 
@AndyK results[i] is one past the end of the list.
 
And it's also seriously extensible. You can start with simply the computer creating a random number between 1 and 10 and just guessing what it is, something like...
 
hi @PM2Ring what do you mean? I should put results[i-1]...?
 
12:36 PM
Doom is 40% off on steam
@Programmer, today rise of the tomb raider is 35% off
 
import random

answer = random.randint(1,10)
guess = ''
while guess != answer:
    guess = int(input('Guess a number: '))
print('You win!')
 
@AndyK Give it a try & see what happens. :) Also throw in a print(i, results) at the top of your else section.
 
@AndyK also, not wrong but for i in range(5): will work perfectly fine. No need to turn it into a list before iterating over it
you only need a list if you're going to do something with the collection
 
@WayneWerner I'm with PY3
 
@AnttiHaapala I guess publicly declaring one's commitment doesn't always work :P
@AndyK for iterates over iterables. range returns an iterable
 
12:41 PM
Met James live the first time in October 2013. He told that this is his blog and he will post updates there. Well, didn't happen :D
 
it is like finding a needle in a haystack
 
@PM2Ring Much better.
No need to hack anything actually.
 
it must be simple but I don't know where to look at
 
I'm sure you've seen someone say something to the effect of "if you want to get the same behavior as range in Python3 that you had in Python2 you need to wrap range in list", but that's not really a clear picture
 
the thing is Python 3 range behaves mostly like python 2 xrange
 
12:43 PM
I nailed my issue
damn
 
and in Python 2 the idiom was for i in *xrange(n)*:
 
@poke I'll pay that. :)
 
good damn simple but very dumb actually
in the human logic, it makes sense
but not in the machine one
 
Back from pub lunch. Steak still tastes fine after the referendum, all is not lost.
 
@Ffisegydd good man
where is the yell button?
 
12:44 PM
@EchoLogic You can continue on from that simple example into something super lovely, with exception handling, telling the player that the number is too high/low, creating a scoreboard...
 
Quite a good tweet:
The most articulate take on #Brexit is actually this FT reader comment today. https://t.co/98b4DwsrTV
 
spent my morning with that stuff
 
In other news (cc. @Zero)
 
@PM2Ring, I upvoted @poke
 
Will be interesting to see how far it goes.
 
12:45 PM
and doesn't it also allow the iterable of 2-iterables/sequences?
 
That stupid Cameron, such a tw*t
 
@AnttiHaapala It allows any list of iterables
 
I mean instead of dict
 
@Ffisegydd Yeah, been reading about it. None of them had the balls to follow through on their threats in the Shadow Cabinet, apparently.
 
@AnttiHaapala So did I.
 
12:46 PM
@WayneWerner not sure to understand what you mean
 
in MATLAB and Octave, 1 hour ago, by Ander Biguri
@Dev-iL about academia.... I just meta guy who lost his PhD
in MATLAB and Octave, 1 hour ago, by Ander Biguri
he was meant to start in September, the funding agency backed
hooray for global panic?
 
@AndyK that was in reference to my guessing game
 
@Antti Yup, meant to say that in my answer too (just amended it).
 
Huh? Some weirdo has downvoted Poke's answer. :(
 
12:52 PM
No?
 
lol:D
 
@AndyK In your first block of code, what kind of output did you want in results? You've got an awful lot of list-y things going on, but it doesn't look like you have a real good grasp of what they're supposed to be doing :P
 
@WayneWerner you got it right
I don't have good grasp
yet ...
Let me put the whole code
 
forget about the whole code...
 
12:56 PM
like you will have a better understanding of what I'm trying to do
 
what is it that you want?
 
ah ok...
I want to do a merge and sort implementation
pseudo code would be like this
 
(how I feel most of the time when people are asking questions: youtu.be/MisNbd7uB58?t=52s)
;)
 
for i starting from 1 to 5;if ad (or a list with a single element) > results[i] and [ad] not in results then results.append(ad)
 

« first day (2078 days earlier)      last day (2867 days later) »