« first day (2084 days earlier)      last day (2855 days later) » 

1:47 AM
Hi guys, I am new here. If nobody answered my question in the main site, what should I do?
 
DSM
Officially, this. Bounties don't really apply to newbies, but editing to make it clear exactly what you've tried, and where the blocker is, doesn't hurt.
That said, I'll take a look.
For each name, is there always only one value of Skill and Magic?
 
DSM
2:18 AM
.. well, now I feel silly -- the OP has vanished! Anyway, for posterity's sake:
>>> !cat mana.tsv
Name	Skill	Magic	wo_mana	wi_mana
Ben	true	false	Strength = 1.10	Int = 1.20
			Speed = 1.50
Tom	true	true	Agility = 1.60	Int = 1.40
>>> for row in open("mana.tsv"):
    print(repr(row))
...
'Name\tSkill\tMagic\two_mana\twi_mana\n'
'Ben\ttrue\tfalse\tStrength = 1.10\tInt = 1.20\n'
'\t\t\tSpeed = 1.50\t\n'
'Tom\ttrue\ttrue\tAgility = 1.60\tInt = 1.40\n'
 
 
4 hours later…
6:08 AM
cbg
 
6:33 AM
cbg
 
this encryption stuff is cool
 
6:46 AM
hey guys, anyone aware of example/project developed in Django that can make functionality of website like this: msistone.com/kitchen-visualizer.aspx#?id=main_image5
where I can change object colors in real time
are the images get reloaded when we change the color or there is different way to make it happen
hope I am asking at right place.
 
Wow that website is awful.
Incidentally, the way they do it is to stuff like this:
 
@ff
 
@Ffisegydd indeed
aha
so each time they fill color
gradient, matt etc
 
They layer multiple images on top of each other.
 
6:52 AM
but how image reloading possible so fast?
 
It's not that fast.
And the images aren't exactly massive.
 
is there any way to achieve this in Django/pyhon/Flask?
 
Yes.
 
I mean if I create images dictionary and depending on choice specific image will be reloaded?
@Ffisegydd anything specific you prefer or I should try?
 
This is a very easy thing to do, just write some code to do it.
Instead of cargo-culting and copying from "example projects", just sit down and write your own code.
 
6:55 AM
:D
yes that's true, I was asking for raw_method so could get head start
 
No, you were asking for someone else to do the work for you.
Go away, write the code, do your own job.
 
No, @Ffisegydd great programmers re-use :P
 
You come in here a lot and look for example projects and advice, I'd suggest you learn to solve your own problems instead.
I'm not really willing to argue over this.
 
That's true,
sometimes we can ask if we don't get idea, no/
?
 
Cargo cult programming is a style of computer programming characterized by the ritual inclusion of code or program structures that serve no real purpose. Cargo cult programming is typically symptomatic of a programmer not understanding either a bug they were attempting to solve or the apparent solution (compare shotgun debugging, deep magic). The term cargo cult programmer may apply when an unskilled or novice computer programmer (or one inexperienced with the problem at hand) copies some program code from one place to another with little or no understanding of how it works or whether it is required...
 
7:00 AM
thanks
 
You come into my chat on the day my code is to be written, and you ask me to do your code for no money. What have I ever done to make you treat me so disrespectfully?
 
On the "great programmers re-use" trope ... that's really about noticing that you're doing basically the same thing in multiple places, and abstracting out the fundamental mechanism. It's not the same thing as installing two dozen plugins into Wordpress and claiming to be a developer.
6
 
:D
 
lmao
Gosh darnit, those unnecessary facts and procedures! Such a pain! Argh!
Let's just copy other peoples work instead and call it "re-use"! That's the key! Let's not learn anything for ourselves!
Oh, wait, I've got a complex problem to do that no one has tried to solve before using this particular field, what do I do now!? I have no one to copy from!?
 
7:08 AM
So the actual used knowledge is ctrl-c&ctrl-v?
 
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO! Looks like Fizzy was right all along! Curses!
 
cbg everyone
completly out of the blue and also probably because I've been thinking about it for sometime, I realized yesterday that all the points on SO are meaningless. Seeking knowledge never stops and points are almost useless measurement
 
cbg all
 
The road to real knowledge, Mastery, is a long one
 
7:14 AM
That's a starrin'
 
The SO points are only counting participation
Though there was someone who made a website where you could sort out a user's points to see only answers
 
You can take my points when you pry them from my cold, dead sockpuppet ring.
 
@AndyK that's a bit of a fallacy, but yeah there are various ways to get points. The main way is ask good questions and write high quality answers, so overall it's a pretty good system.
 
To mine bitcoins you have to perform complex mathematical calculations, to get FizzyCoins you just have to give me your rep.
 
Any resemblance between FizzyCoins and Alka-Seltzer is purely coincidental.
3
 
7:47 AM
Government can't steal them if you dunk them in water! It's a security feature.
 
@RobertGrant fair enough.
 
cbg, all
 
cbg @holdenweb
 
The fight to stabilise our release, build and deployment procedures goes on. I am beginning to feel a little like a primary school teacher
 
@holdenweb :D
@Ffisegydd todo: create device that dunks government in water
 
8:10 AM
@holdenweb "The CI success notification's for me, not for you"
 
@holdenweb I probably shouldn't have told them to install this as a joke
 
lol nice
 
Cabbage!
 
8:27 AM
cbg
 
cbg
 
Dunking is a form of corporal punishment used in the medieval and Early Modern (17th-18th century) period; however, it was more prominent in the middle of the 17th century. == As trial == Ordeal by water was associated with the witch hunts of the 16th and 17th centuries: an accused who sank was considered innocent, while floating indicated witchcraft. Some argued that witches floated because they had renounced baptism when entering the Devil's service. King James VI of Scotland (later also James I of England) claimed in his Daemonologie that water was so pure an element that it repelled the guilty...
 
8:41 AM
mornin' yawns
 
cbg brit
 
Why're we dunking people?
 
I do it do discipline my son. I say "That's a paddlin'... pool."
 
Ethics in Data Science? Pah.
Grumble grumble Wired. Grumble grumble ad blocker blocker.
 
Yeah, who needs ethics when they're Sciencing, eh? ;)
 
8:52 AM
Ethics just get in the way of SCIENCE.
 
A quick skim of that document has me smirking about "tools with minimal intrusion". I need to get out more.
 
I feel like a Cave Johnson quote would fit well here.
> You're not part of the control group, by the way. You get the gel. Last poor son of a gun got blue paint. Hahaha. All joking aside, that did happen - broke every bone in his legs. Tragic. But informative. Or so I'm told.
> We haven't entirely nailed down what element it is yet, but I'll tell you this: it's a lively one, and it does NOT like the human skeleton.
> All these science spheres are made of asbestos, by the way. Keeps out the rats. Let us know if you feel a shortness of breath, a persistent dry cough or your heart stopping. Because that's not part of the test. That's asbestos.
 
:)
> “Science isn't about WHY, it's about WHY NOT!”
A quick internet search makes me smile.
 
I know slam dunk(ing) en.wikipedia.org/wiki/Slam_dunk
 
Today, I have read more about Oliver Heaviside. Now there's a Sciencer.
 
8:57 AM
And what a layer!
 
> Just a heads up: We're gonna have a superconductor turned up full blast and pointed at you for the duration of this next test. I'll be honest, we're throwing science at the wall here to see what sticks. No idea what it'll do. Probably nothing. Best-case scenario, you might get some superpowers. Worst case, some tumors, which we'll cut out.
 
dunking is a form of waterboarding
 
Layer... geddit? waggles eyebrows
Layer
 
Oh, @Robert. And here we were, politely ignoring you in our very English way.
;)
 
LAYER
 
9:10 AM
Still don't get it, could you explain it in picture form?
 
Layer.
 
I lost.
 
Gove has announced for the Tory leadership.
 
Further cementing his relationships with the old Etonians.
Boris won't even be on the ballot to the party, I reckon
 
There's a lot of teachers in this country...
I'm wagering on May.
 
He who wields the dagger never wears the crown.
 
Genius.
@JRichardSnape Clearly you've never seen Macbeth. He wore the crown...for a bit...
 
@ZeroPiraeus f'ing brilliant. Sums up my feelings about Gove to a tee.
@Ffisegydd I know mate - I'm an oik from't North, sithee.
May must be the bookies choice now, surely. scurries off to check ladbrokes
 
And if Eagle tips over Corbyn, we'd have female gov't leader and leader of the opposition.
Which is something, at least :P
 
Ha yes, Gove ~7/2, Boris out to 5/1
Eagle is a disaster.
 
9:24 AM
@Ffisegydd Five.
 
As I tweeted the other day, the PLP appear to think they should choose the lesser of two Eagles.
 
That's what I meant to say, @Zero
No idea what you're talking about.
Need your eyesight checking.
 
I'm getting old, you see, Fizzy
Surely no way Eagle would beat Corbyn. I have never, ever heard her say anything with meaning or conviction.
 
I don't have enough data to form an opinion.
 
9:27 AM
Public Service Announcement Sorry to anyone not interested in UK politics - we will Python for anyone who wants to.
 
I went looking for video of her when it started to look like she might be the challenger since I hadn't actually seen her in action. Was not impressed.
 
@Ffisegydd indeed - a problem in itself.
 
/an opinion/a justified opinion/
I could form opinions all day long - I think JRS smells of elderberries.
Whether they're justified, who knows? (I do, he really does)
 
@ZeroPiraeus She is useless. My "lesser of two Eagles" gag is literally what they used to say when my partner worked in the civil service.
I do, you know, its really true.
 
She's reputedly been one of those reduced to tears by the debacle in the PLP. So definitely up to the pressure.
 
9:30 AM
She was - I watched that one.
 
Was that on World At One? I think I listened to it.
 
Say what you like about Corbyn, no-one can say he doesn't have resolve.
 
I think it was tears at watching the horse she backed running out of the Stadium. and as Third Way rounds the bend, oh.. oh.. it's fallen at the last
 
Say what you like about Corbyn, and they will, at length.
 
yes, they will. People fail to understand, he's been an outsider for 30 years. He is used to people thinking he's ridiculous, pillorying his position etc, etc. He's not going to simply roll over to a bunch of careerists.
That's going to toughen you up.
 
9:34 AM
Mon the Liberal Democrats?
 
Unfortunately, I happen to also think he's better at opposing bad positions than proposing good ones. But I'll still back him - what the PLP is doing at the moment trying to break him as a person is odious.
I'm very proud my MP is Jon Ashworth - one of the few not to stick the knife in.
(yet) nervously checks the news
@IntrepidBrit Aye - tough cookies too, no doubt. Especially now.
 
Reading about using ML to detect pictures of naked people, truly a noble endeavour.
 
I just wonder what the Labour self-promotists will do if Corbyn gets re-elected leader with a significant majority
 
You can almost certainly outsource that to a clickfarm cheaper.
@holdenweb I would be amazed if they don't already have the branding for SDP2 already commissioned.
 
@ZeroPiraeus Maybe not. A cloud VM wouldn't be that expensive and would be much faster.
For anyone interested (slow day at work)
 
9:41 AM
I dunno ... I am really quite good at detecting nudity, and my rates are very reasonable.
 
But could you handle the work rate?
 
@holdenweb re-invigorate the lib dems?
 
Would we have to pay for your therapy after making you sift through 100,000 potentially naked images and classifying them though?
 
@JRichardSnape No idea what Farron's attitude would be, but I would love to see the press conference where he tells them "we don't want your sort".
@IntrepidBrit ^ thoughts?
 
@ZeroPiraeus watching some of them squirm would be Schadenfreude indeed.
 
9:47 AM
I don't have a "feel" for Farron yet. But if we're commenting on the Lib Dems right now, they need/crave legitimacy after the Coalition, and they're also unashamedly pro-EU. I think there would be some scope for adopting some of the Labour folk - but it would definitely be a case-by-case basis
But I'm not up to date on who's been sharpening their blades
 
It's hard to keep up to date with all 170+
 
They'll be desperate to not appear just like the "other two" traditionally big parties.
 
@Zero quick one - do you have the link to the data for that graph you produced yesterday? The one on voter turnout.
 
Ta love
 
10:00 AM
Hollow laugh Corbyn didn't deliver remain votes, see, his constituency was only 6th most remain in the country. We need someone who could have delivered more for remain. Look's like Dianne Abbott in Hackney has it, then...
 
Ha!
Scotland's turnout was less than rUKs
Sorry, excellent ammunition to use against some of my SNP inclined compatriots.
 
@JRichardSnape Yeah, but you gotta have someone electable, like Eagle (4th of 5 in last years deputy election). Someone with integrity, that will say what they really mean.
 
Good old Gibraltar.
 
So how to interpret that? What does the lopsidedness mean?
@Ffisegydd They're a rock.
 
Top class.
 
10:16 AM
> What does the lopsidedness mean?
Leave won.
 
It's a plotting probability, or counts effectively. So it basically describes the number of areas that voted with the % given by x.
 
sorry - couldn't resist
 
Ok, but wouldn't you expect a symmetrical curve centred on the overall result?
 
As always with a binned plot - you should try a few different bin edges before deciding what the distribution looks like.
 
Indeed, I went for the default, just a sec.
Remember that the plot doesn't take into account populations.
 
10:19 AM
Aye
 
So good old Gibraltar were 96% remain, but a tiny popl.
 
If you binned <30, 30-40, 40-50, 50-60,>60 - I reckon it would look fairly symmetrical around 40-50. I don't know whether the shape within that means something. It is interesting that there are no outliers towards 80-20 leave.
 
Related to turnout?
Not justification here, just spitballin'
 
The other thing I did yesterday was normalize each area's figures to what they'd be if there were uniform turnout everywhere ... which shifted the result from 48.11% remain to 48.28% remain.
 
That's basically re-creating part of your plot yesterday.
 
10:27 AM
Yeah.
Prettier though :-)
 
What can be inferred from it though?
 
Not much, the text in the top right corner is basically saying there's little correlation.
 
So differential turnout wasn't a factor ... is that a reasonable conclusion?
 
Yes, I'm going to actually try to model the linear model in a second, but eyeballing the chart yeah.
 
It's relevant in the context of the pretext for Corbyn's removal, is why I ask.
 
10:30 AM
Well, the plot shows that as you change the remain %, any change in turnout % is uncorrelated.
 
@IntrepidBrit do you know any email provider/client that has keybase integration?
 
IIRC keybase will generate and locally store GPG keys if you let it, which should mean any GPG-enabled mail client can work with that.
 
I want automatic search
I am thinking about writing it for enigmail
 
Not offhand, but I personally wouldn't trust a 3rd party to implement it in a way that wouldn't balls it up
Because I'm not in complete ownership of the keys, I wouldn't trust it with encrypting my email
 
fair enough.
 
10:45 AM
So that's the same scatter as earlier, but I've fit a linear model to it using pymc. PyMC returns a distribution for each parameter though, rather than a set value. So for each param (m and c in m*x + c) I've sampled it randomly and drawn a thin red line.
 
Alderaaaaaaaaaaaan!
 
Done that a few 100 times.
It shows the extreme spread that you get from the data, each of those lines is not the optimal fit (statistically speaking) but is a fit that could occur when you take chance into account.
Don't really know how to explain it proper like.
But funnily enough, if I take the mean of all of those samples to give "a value", then actually the graph decreases slightly, where yours increased slightly I think Zero.
 
oh
thanks
 
@Zero if you've got any analysis that you'd like based on the data then let me know, tis a slow day at work.
 
10:53 AM
@Ffisegydd No, mine also decreased slightly. Very slightly, and with an R² of something like 0.009, which you will understand better than me, but as I understand it means "nothing to se here".
 
Ah I thought yours increased, must have misremembered.
And yeah in laymans terms, 1 means that there's perfect correlation (if x increases then y will increase by the same ratio), -1 means there's perfect anticorrelation (if x increases then y will decrease by the same ratio), and 0 means there's no correlation (if x increases you cannot judge whether y will increase or decrease)
So 0.009 means there's very close to no correlation.
 
I'm not sure where you'd go next analysing what there is ... I considered trying to match the data against the 2015 GE vote (because I'm particularly interested in seeing whether there's any evidence for the "Corbyn didn't get the vote out" claim), but unfortunately, as you've no doubt seen the areas are not constituencies, so it would be a tedious slog to match them up.
 
Yeah. I might just do some exploratory data analysis to see if there's any interesting nuggets, but if you thought of any questions "I wonder if..." then let me know, as I said, it's been a slow day.
 
Here's a thought ... district size vs either turnout or share.
If the districts are anything like constituencies, the more rural (and therefore less Labour) ones will have lower populations.
 
Yeah good shout, I'll have a look after lunch, my pasty is calling to me.
 
11:02 AM
Cool :-)
 
Johnson ruled himself out of contention.
 
Aww, no poisoned chalice for BoJo
 
He's too clever for it.
Especially with Gove.
 
Cabbage
While it's been kinda interesting to read all this Brit politics stuff, maybe you guys could get a dedicated room...
 
:D
 
11:11 AM
@PM2Ring Not on our united server though
 
:)
I got a pleasant surprise when I logged on today: an accept on an answer from October 2014.
But I just heard some sad news: Scotty Moore, who played guitar for Elvis in the early days, died a day or two ago, aged 84.
 
@Ffisegydd Bah.
@PM2Ring Apologies. British politics has gotten interesting and sometimes the room can be slow in the mornings. But point well taken
slaps own wrist
 
Alright then. So, Hillary vs. Trump anyone?
 
We've already sent a failed assassin :P
 
@IntrepidBrit Hey, I did say it's interesting. But yeah, it has been flooding the room a bit. And it'd be easier for you guys to find the political stuff if it were in its own room... presuming it's not against SO policy to make non-coding rooms.
 
11:22 AM
Hooray for not coding a thing before thinking it out. Been figuring out for 2 days how to refactor a part of our system. Realized today that what I thought yesterday was bollocks.
 
@PM2Ring I'm not saying you didn't, I was typing out the old cliché ^^. Should probably start a subreddit for sopythonpolitics...
@IljaEverilä In what way?
 
@IljaEverilä Premature coding is even worse than premature optimization. :)
 
Would've been a bit of a DB abuse, mainly denormalization where it was not called for.
 
guys, does anyone know any good, reliable and free IP to geo address databas or other services like that with a publicly available API?
 
@IljaEverilä "Realized today that what I thought yesterday was bollocks." The continued story of my life
 
11:37 AM
@PeterVaro I wonder what danasoft uses...
 
Hey PM, you're pretty close to me :P
 
:slaps Intrepid with a wet haddock:
3
 
I am actually near Leicester. Haven't seen any penguins, though.
remembers to go incognito at some point
 
eh mer gerd. haxor.
 
PM2 is l33t ;) Whois lookups FTW.
Should change my user agent to block info when I use windows, though embarassed face
Anyway - gotta go. Rbrb
 
11:52 AM
rbrb(JRS)
 
@PM2Ring hello from near hrazdan
 
    data = request.FILES.get('image')
    file_storage = FileSystemStorage(location=BASE_DIR + 'images/')
    file_storage.file_permissions_mode = 0644
    image = ContentFile(data)
    file_storage.save(data.name, image)
 
@AbhishekSachdeva ask you question
 
@khajvah I am saving file using this code
 

« first day (2084 days earlier)      last day (2855 days later) »